Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Martin v. Löwis | 147fbe5 | 2005-08-07 21:09:30 +0000 | [diff] [blame^] | 2 | # From configure.in Revision: 1.485 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.59 for python 2.5. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 6 | # Report bugs to <http://www.python.org/python-bugs>. |
| 7 | # |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8 | # Copyright (C) 2003 Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11 | ## --------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## --------------------- ## |
| 14 | |
| 15 | # Be Bourne compatible |
| 16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 17 | emulate sh |
| 18 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 20 | # is contrary to our usage. Disable this feature. |
| 21 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 23 | set -o posix |
| 24 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27 | # Support unset when possible. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 29 | as_unset=unset |
| 30 | else |
| 31 | as_unset=false |
| 32 | fi |
| 33 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 34 | |
| 35 | # Work around bugs in pre-3.0 UWIN ksh. |
| 36 | $as_unset ENV MAIL MAILPATH |
| 37 | PS1='$ ' |
| 38 | PS2='> ' |
| 39 | PS4='+ ' |
| 40 | |
| 41 | # NLS nuisances. |
| 42 | for as_var in \ |
| 43 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 44 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 45 | LC_TELEPHONE LC_TIME |
| 46 | do |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 47 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 48 | eval $as_var=C; export $as_var |
| 49 | else |
| 50 | $as_unset $as_var |
| 51 | fi |
| 52 | done |
| 53 | |
| 54 | # Required to use basename. |
| 55 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 56 | as_expr=expr |
| 57 | else |
| 58 | as_expr=false |
| 59 | fi |
| 60 | |
| 61 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 62 | as_basename=basename |
| 63 | else |
| 64 | as_basename=false |
| 65 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 66 | |
| 67 | |
| 68 | # Name of the executable. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 69 | as_me=`$as_basename "$0" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 70 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 71 | X"$0" : 'X\(//\)$' \| \ |
| 72 | X"$0" : 'X\(/\)$' \| \ |
| 73 | . : '\(.\)' 2>/dev/null || |
| 74 | echo X/"$0" | |
| 75 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 76 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 77 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 78 | s/.*/./; q'` |
| 79 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 80 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 81 | # PATH needs CR, and LINENO needs CR and PATH. |
| 82 | # Avoid depending upon Character Ranges. |
| 83 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 84 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 85 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 86 | as_cr_digits='0123456789' |
| 87 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 88 | |
| 89 | # The user is always right. |
| 90 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 91 | echo "#! /bin/sh" >conf$$.sh |
| 92 | echo "exit 0" >>conf$$.sh |
| 93 | chmod +x conf$$.sh |
| 94 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 95 | PATH_SEPARATOR=';' |
| 96 | else |
| 97 | PATH_SEPARATOR=: |
| 98 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 99 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 100 | fi |
| 101 | |
| 102 | |
| 103 | as_lineno_1=$LINENO |
| 104 | as_lineno_2=$LINENO |
| 105 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 106 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 107 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 108 | # Find who we are. Look in the path if we contain no path at all |
| 109 | # relative or not. |
| 110 | case $0 in |
| 111 | *[\\/]* ) as_myself=$0 ;; |
| 112 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 113 | for as_dir in $PATH |
| 114 | do |
| 115 | IFS=$as_save_IFS |
| 116 | test -z "$as_dir" && as_dir=. |
| 117 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 118 | done |
| 119 | |
| 120 | ;; |
| 121 | esac |
| 122 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 123 | # in which case we are not to be found in the path. |
| 124 | if test "x$as_myself" = x; then |
| 125 | as_myself=$0 |
| 126 | fi |
| 127 | if test ! -f "$as_myself"; then |
| 128 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 129 | { (exit 1); exit 1; }; } |
| 130 | fi |
| 131 | case $CONFIG_SHELL in |
| 132 | '') |
| 133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 134 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 135 | do |
| 136 | IFS=$as_save_IFS |
| 137 | test -z "$as_dir" && as_dir=. |
| 138 | for as_base in sh bash ksh sh5; do |
| 139 | case $as_dir in |
| 140 | /*) |
| 141 | if ("$as_dir/$as_base" -c ' |
| 142 | as_lineno_1=$LINENO |
| 143 | as_lineno_2=$LINENO |
| 144 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 145 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 146 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 147 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 148 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 149 | CONFIG_SHELL=$as_dir/$as_base |
| 150 | export CONFIG_SHELL |
| 151 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 152 | fi;; |
| 153 | esac |
| 154 | done |
| 155 | done |
| 156 | ;; |
| 157 | esac |
| 158 | |
| 159 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 160 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 161 | # line-number line before each line; the second 'sed' does the real |
| 162 | # work. The second script uses 'N' to pair each line-number line |
| 163 | # with the numbered line, and appends trailing '-' during |
| 164 | # substitution so that $LINENO is not a special case at line end. |
| 165 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 166 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 167 | sed '=' <$as_myself | |
| 168 | sed ' |
| 169 | N |
| 170 | s,$,-, |
| 171 | : loop |
| 172 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 173 | t loop |
| 174 | s,-$,, |
| 175 | s,^['$as_cr_digits']*\n,, |
| 176 | ' >$as_me.lineno && |
| 177 | chmod +x $as_me.lineno || |
| 178 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 179 | { (exit 1); exit 1; }; } |
| 180 | |
| 181 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 182 | # (the dirname of $[0] is not the place where we might find the |
| 183 | # original and so on. Autoconf is especially sensible to this). |
| 184 | . ./$as_me.lineno |
| 185 | # Exit status is that of the last command. |
| 186 | exit |
| 187 | } |
| 188 | |
| 189 | |
| 190 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 191 | *c*,-n*) ECHO_N= ECHO_C=' |
| 192 | ' ECHO_T=' ' ;; |
| 193 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 194 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 195 | esac |
| 196 | |
| 197 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 198 | as_expr=expr |
| 199 | else |
| 200 | as_expr=false |
| 201 | fi |
| 202 | |
| 203 | rm -f conf$$ conf$$.exe conf$$.file |
| 204 | echo >conf$$.file |
| 205 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 206 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 207 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 208 | if test -f conf$$.exe; then |
| 209 | # Don't use ln at all; we don't have any links |
| 210 | as_ln_s='cp -p' |
| 211 | else |
| 212 | as_ln_s='ln -s' |
| 213 | fi |
| 214 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 215 | as_ln_s=ln |
| 216 | else |
| 217 | as_ln_s='cp -p' |
| 218 | fi |
| 219 | rm -f conf$$ conf$$.exe conf$$.file |
| 220 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 221 | if mkdir -p . 2>/dev/null; then |
| 222 | as_mkdir_p=: |
| 223 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 224 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 225 | as_mkdir_p=false |
| 226 | fi |
| 227 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 228 | as_executable_p="test -f" |
| 229 | |
| 230 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 231 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 232 | |
| 233 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 234 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 235 | |
| 236 | |
| 237 | # IFS |
| 238 | # We need space, tab and new line, in precisely that order. |
| 239 | as_nl=' |
| 240 | ' |
| 241 | IFS=" $as_nl" |
| 242 | |
| 243 | # CDPATH. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 244 | $as_unset CDPATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 245 | |
| 246 | |
| 247 | # Name of the host. |
| 248 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 249 | # so uname gets run too. |
| 250 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 251 | |
| 252 | exec 6>&1 |
| 253 | |
| 254 | # |
| 255 | # Initializations. |
| 256 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 257 | ac_default_prefix=/usr/local |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 258 | ac_config_libobj_dir=. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 259 | cross_compiling=no |
| 260 | subdirs= |
| 261 | MFLAGS= |
| 262 | MAKEFLAGS= |
| 263 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 264 | |
| 265 | # Maximum number of lines to put in a shell here document. |
| 266 | # This variable seems obsolete. It should probably be removed, and |
| 267 | # only ac_max_sed_lines should be used. |
| 268 | : ${ac_max_here_lines=38} |
| 269 | |
| 270 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 271 | PACKAGE_NAME='python' |
| 272 | PACKAGE_TARNAME='python' |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 273 | PACKAGE_VERSION='2.5' |
| 274 | PACKAGE_STRING='python 2.5' |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 275 | PACKAGE_BUGREPORT='http://www.python.org/python-bugs' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 276 | |
| 277 | ac_unique_file="Include/object.h" |
| 278 | # Factoring default headers for most tests. |
| 279 | ac_includes_default="\ |
| 280 | #include <stdio.h> |
| 281 | #if HAVE_SYS_TYPES_H |
| 282 | # include <sys/types.h> |
| 283 | #endif |
| 284 | #if HAVE_SYS_STAT_H |
| 285 | # include <sys/stat.h> |
| 286 | #endif |
| 287 | #if STDC_HEADERS |
| 288 | # include <stdlib.h> |
| 289 | # include <stddef.h> |
| 290 | #else |
| 291 | # if HAVE_STDLIB_H |
| 292 | # include <stdlib.h> |
| 293 | # endif |
| 294 | #endif |
| 295 | #if HAVE_STRING_H |
| 296 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 297 | # include <memory.h> |
| 298 | # endif |
| 299 | # include <string.h> |
| 300 | #endif |
| 301 | #if HAVE_STRINGS_H |
| 302 | # include <strings.h> |
| 303 | #endif |
| 304 | #if HAVE_INTTYPES_H |
| 305 | # include <inttypes.h> |
| 306 | #else |
| 307 | # if HAVE_STDINT_H |
| 308 | # include <stdint.h> |
| 309 | # endif |
| 310 | #endif |
| 311 | #if HAVE_UNISTD_H |
| 312 | # include <unistd.h> |
| 313 | #endif" |
| 314 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 315 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION SOVERSION CONFIG_ARGS PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET CXX MAINOBJ EXEEXT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT CPP EGREP BUILDEXEEXT LIBRARY LDLIBRARY DLLLIBRARY BLDLIBRARY LDLIBRARYDIR INSTSONAME RUNSHARED LINKCC RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN OPT BASECFLAGS OTHER_LIBTOOL_OPT LIBTOOL_CRUFT SO LDSHARED BLDSHARED CCSHARED LINKFORSHARED CFLAGSFORSHARED SHLIBS USE_SIGNAL_MODULE SIGNAL_OBJS USE_THREAD_MODULE LDLAST THREADOBJ DLINCLDIR DYNLOADFILE MACHDEP_OBJS TRUE LIBOBJS HAVE_GETHOSTBYNAME_R_6_ARG HAVE_GETHOSTBYNAME_R_5_ARG HAVE_GETHOSTBYNAME_R_3_ARG HAVE_GETHOSTBYNAME_R HAVE_GETHOSTBYNAME LIBM LIBC UNICODE_OBJS THREADHEADERS SRCDIRS LTLIBOBJS' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 316 | ac_subst_files='' |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 317 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 318 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 319 | ac_init_help= |
| 320 | ac_init_version=false |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 321 | # The variables have the same names as the options, with |
| 322 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 323 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 324 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 325 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 326 | no_recursion= |
| 327 | prefix=NONE |
| 328 | program_prefix=NONE |
| 329 | program_suffix=NONE |
| 330 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 331 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 332 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 333 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 334 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 335 | x_includes=NONE |
| 336 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 337 | |
| 338 | # Installation directory options. |
| 339 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 340 | # and all the variables that are supposed to be based on exec_prefix |
| 341 | # by default will actually change. |
| 342 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 343 | bindir='${exec_prefix}/bin' |
| 344 | sbindir='${exec_prefix}/sbin' |
| 345 | libexecdir='${exec_prefix}/libexec' |
| 346 | datadir='${prefix}/share' |
| 347 | sysconfdir='${prefix}/etc' |
| 348 | sharedstatedir='${prefix}/com' |
| 349 | localstatedir='${prefix}/var' |
| 350 | libdir='${exec_prefix}/lib' |
| 351 | includedir='${prefix}/include' |
| 352 | oldincludedir='/usr/include' |
| 353 | infodir='${prefix}/info' |
| 354 | mandir='${prefix}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 355 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 356 | ac_prev= |
| 357 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 358 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 359 | # If the previous option needs an argument, assign it. |
| 360 | if test -n "$ac_prev"; then |
| 361 | eval "$ac_prev=\$ac_option" |
| 362 | ac_prev= |
| 363 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 364 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 365 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 366 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 367 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 368 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 369 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 370 | case $ac_option in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 371 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 372 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 373 | ac_prev=bindir ;; |
| 374 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 375 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 376 | |
| 377 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 378 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 379 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 380 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 381 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 382 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 383 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 384 | ac_prev=cache_file ;; |
| 385 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 386 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 387 | cache_file=$ac_optarg ;; |
| 388 | |
| 389 | --config-cache | -C) |
| 390 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 391 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 392 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 393 | ac_prev=datadir ;; |
| 394 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 395 | | --da=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 396 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 397 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 398 | -disable-* | --disable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 399 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 400 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 401 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 402 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 403 | { (exit 1); exit 1; }; } |
| 404 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 405 | eval "enable_$ac_feature=no" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 406 | |
| 407 | -enable-* | --enable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 408 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 409 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 410 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 411 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 412 | { (exit 1); exit 1; }; } |
| 413 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 414 | case $ac_option in |
| 415 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 416 | *) ac_optarg=yes ;; |
| 417 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 418 | eval "enable_$ac_feature='$ac_optarg'" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 419 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 420 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 421 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 422 | | --exec | --exe | --ex) |
| 423 | ac_prev=exec_prefix ;; |
| 424 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 425 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 426 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 427 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 428 | |
| 429 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 430 | # Obsolete; use --with-gas. |
| 431 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 432 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 433 | -help | --help | --hel | --he | -h) |
| 434 | ac_init_help=long ;; |
| 435 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 436 | ac_init_help=recursive ;; |
| 437 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 438 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 439 | |
| 440 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 441 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 442 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 443 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 444 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 445 | -includedir | --includedir | --includedi | --included | --include \ |
| 446 | | --includ | --inclu | --incl | --inc) |
| 447 | ac_prev=includedir ;; |
| 448 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 449 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 450 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 451 | |
| 452 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 453 | ac_prev=infodir ;; |
| 454 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 455 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 456 | |
| 457 | -libdir | --libdir | --libdi | --libd) |
| 458 | ac_prev=libdir ;; |
| 459 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 460 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 461 | |
| 462 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 463 | | --libexe | --libex | --libe) |
| 464 | ac_prev=libexecdir ;; |
| 465 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 466 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 467 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 468 | |
| 469 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 470 | | --localstate | --localstat | --localsta | --localst \ |
| 471 | | --locals | --local | --loca | --loc | --lo) |
| 472 | ac_prev=localstatedir ;; |
| 473 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 474 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 475 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 476 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 477 | |
| 478 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 479 | ac_prev=mandir ;; |
| 480 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 481 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 482 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 483 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 484 | # Obsolete; use --without-fp. |
| 485 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 486 | |
| 487 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 488 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 489 | no_create=yes ;; |
| 490 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 491 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 492 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 493 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 494 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 495 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 496 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 497 | | --oldin | --oldi | --old | --ol | --o) |
| 498 | ac_prev=oldincludedir ;; |
| 499 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 500 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 501 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 502 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 503 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 504 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 505 | ac_prev=prefix ;; |
| 506 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 507 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 508 | |
| 509 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 510 | | --program-pre | --program-pr | --program-p) |
| 511 | ac_prev=program_prefix ;; |
| 512 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 513 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 514 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 515 | |
| 516 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 517 | | --program-suf | --program-su | --program-s) |
| 518 | ac_prev=program_suffix ;; |
| 519 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 520 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 521 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 522 | |
| 523 | -program-transform-name | --program-transform-name \ |
| 524 | | --program-transform-nam | --program-transform-na \ |
| 525 | | --program-transform-n | --program-transform- \ |
| 526 | | --program-transform | --program-transfor \ |
| 527 | | --program-transfo | --program-transf \ |
| 528 | | --program-trans | --program-tran \ |
| 529 | | --progr-tra | --program-tr | --program-t) |
| 530 | ac_prev=program_transform_name ;; |
| 531 | -program-transform-name=* | --program-transform-name=* \ |
| 532 | | --program-transform-nam=* | --program-transform-na=* \ |
| 533 | | --program-transform-n=* | --program-transform-=* \ |
| 534 | | --program-transform=* | --program-transfor=* \ |
| 535 | | --program-transfo=* | --program-transf=* \ |
| 536 | | --program-trans=* | --program-tran=* \ |
| 537 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 538 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 539 | |
| 540 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 541 | | -silent | --silent | --silen | --sile | --sil) |
| 542 | silent=yes ;; |
| 543 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 544 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 545 | ac_prev=sbindir ;; |
| 546 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 547 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 548 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 549 | |
| 550 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 551 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 552 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 553 | | --sha | --sh) |
| 554 | ac_prev=sharedstatedir ;; |
| 555 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 556 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 557 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 558 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 559 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 560 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 561 | -site | --site | --sit) |
| 562 | ac_prev=site ;; |
| 563 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 564 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 565 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 566 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 567 | ac_prev=srcdir ;; |
| 568 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 569 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 570 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 571 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 572 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 573 | ac_prev=sysconfdir ;; |
| 574 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 575 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 576 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 577 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 578 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 579 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 580 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 581 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 582 | |
| 583 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 584 | verbose=yes ;; |
| 585 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 586 | -version | --version | --versio | --versi | --vers | -V) |
| 587 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 588 | |
| 589 | -with-* | --with-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 590 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 591 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 592 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 593 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 594 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 595 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 596 | case $ac_option in |
| 597 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 598 | *) ac_optarg=yes ;; |
| 599 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 600 | eval "with_$ac_package='$ac_optarg'" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 601 | |
| 602 | -without-* | --without-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 603 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 604 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 605 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 606 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 607 | { (exit 1); exit 1; }; } |
| 608 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 609 | eval "with_$ac_package=no" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 610 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 611 | --x) |
| 612 | # Obsolete; use --with-x. |
| 613 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 614 | |
| 615 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 616 | | --x-incl | --x-inc | --x-in | --x-i) |
| 617 | ac_prev=x_includes ;; |
| 618 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 619 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 620 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 621 | |
| 622 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 623 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 624 | ac_prev=x_libraries ;; |
| 625 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 626 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 627 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 628 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 629 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 630 | Try \`$0 --help' for more information." >&2 |
| 631 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 632 | ;; |
| 633 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 634 | *=*) |
| 635 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 636 | # Reject names that are not valid shell variable names. |
| 637 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 638 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 639 | { (exit 1); exit 1; }; } |
| 640 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 641 | eval "$ac_envvar='$ac_optarg'" |
| 642 | export $ac_envvar ;; |
| 643 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 644 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 645 | # FIXME: should be removed in autoconf 3.0. |
| 646 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 647 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 648 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 649 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 650 | ;; |
| 651 | |
| 652 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 653 | done |
| 654 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 655 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 656 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 657 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 658 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 659 | fi |
| 660 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 661 | # Be sure to have absolute paths. |
| 662 | for ac_var in exec_prefix prefix |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 663 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 664 | eval ac_val=$`echo $ac_var` |
| 665 | case $ac_val in |
| 666 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 667 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 668 | { (exit 1); exit 1; }; };; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 669 | esac |
| 670 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 671 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 672 | # Be sure to have absolute paths. |
| 673 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 674 | localstatedir libdir includedir oldincludedir infodir mandir |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 675 | do |
| 676 | eval ac_val=$`echo $ac_var` |
| 677 | case $ac_val in |
| 678 | [\\/$]* | ?:[\\/]* ) ;; |
| 679 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 680 | { (exit 1); exit 1; }; };; |
| 681 | esac |
| 682 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 683 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 684 | # There might be people who depend on the old broken behavior: `$host' |
| 685 | # used to hold the argument of --host etc. |
| 686 | # FIXME: To remove some day. |
| 687 | build=$build_alias |
| 688 | host=$host_alias |
| 689 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 690 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 691 | # FIXME: To remove some day. |
| 692 | if test "x$host_alias" != x; then |
| 693 | if test "x$build_alias" = x; then |
| 694 | cross_compiling=maybe |
| 695 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 696 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 697 | elif test "x$build_alias" != "x$host_alias"; then |
| 698 | cross_compiling=yes |
| 699 | fi |
| 700 | fi |
| 701 | |
| 702 | ac_tool_prefix= |
| 703 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 704 | |
| 705 | test "$silent" = yes && exec 6>/dev/null |
| 706 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 707 | |
| 708 | # Find the source files, if location was not specified. |
| 709 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 710 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 711 | # Try the directory containing this script, then its parent. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 712 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 713 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 714 | X"$0" : 'X\(//\)[^/]' \| \ |
| 715 | X"$0" : 'X\(//\)$' \| \ |
| 716 | X"$0" : 'X\(/\)' \| \ |
| 717 | . : '\(.\)' 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 718 | echo X"$0" | |
| 719 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 720 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 721 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 722 | /^X\(\/\).*/{ s//\1/; q; } |
| 723 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 724 | srcdir=$ac_confdir |
| 725 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 726 | srcdir=.. |
| 727 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 728 | else |
| 729 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 730 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 731 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 732 | if test "$ac_srcdir_defaulted" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 734 | { (exit 1); exit 1; }; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 735 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 736 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 737 | { (exit 1); exit 1; }; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 738 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 739 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 740 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 741 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 742 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 743 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 744 | ac_env_build_alias_set=${build_alias+set} |
| 745 | ac_env_build_alias_value=$build_alias |
| 746 | ac_cv_env_build_alias_set=${build_alias+set} |
| 747 | ac_cv_env_build_alias_value=$build_alias |
| 748 | ac_env_host_alias_set=${host_alias+set} |
| 749 | ac_env_host_alias_value=$host_alias |
| 750 | ac_cv_env_host_alias_set=${host_alias+set} |
| 751 | ac_cv_env_host_alias_value=$host_alias |
| 752 | ac_env_target_alias_set=${target_alias+set} |
| 753 | ac_env_target_alias_value=$target_alias |
| 754 | ac_cv_env_target_alias_set=${target_alias+set} |
| 755 | ac_cv_env_target_alias_value=$target_alias |
| 756 | ac_env_CC_set=${CC+set} |
| 757 | ac_env_CC_value=$CC |
| 758 | ac_cv_env_CC_set=${CC+set} |
| 759 | ac_cv_env_CC_value=$CC |
| 760 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 761 | ac_env_CFLAGS_value=$CFLAGS |
| 762 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 763 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 764 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 765 | ac_env_LDFLAGS_value=$LDFLAGS |
| 766 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 767 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 768 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 769 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 770 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 771 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 772 | ac_env_CPP_set=${CPP+set} |
| 773 | ac_env_CPP_value=$CPP |
| 774 | ac_cv_env_CPP_set=${CPP+set} |
| 775 | ac_cv_env_CPP_value=$CPP |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 776 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 777 | # |
| 778 | # Report the --help message. |
| 779 | # |
| 780 | if test "$ac_init_help" = "long"; then |
| 781 | # Omit some internal or obsolete options to make the list less imposing. |
| 782 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 783 | cat <<_ACEOF |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 784 | \`configure' configures python 2.5 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 785 | |
| 786 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 787 | |
| 788 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 789 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 790 | |
| 791 | Defaults for the options are specified in brackets. |
| 792 | |
| 793 | Configuration: |
| 794 | -h, --help display this help and exit |
| 795 | --help=short display options specific to this package |
| 796 | --help=recursive display the short help of all the included packages |
| 797 | -V, --version display version information and exit |
| 798 | -q, --quiet, --silent do not print \`checking...' messages |
| 799 | --cache-file=FILE cache test results in FILE [disabled] |
| 800 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 801 | -n, --no-create do not create output files |
| 802 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 803 | |
| 804 | _ACEOF |
| 805 | |
| 806 | cat <<_ACEOF |
| 807 | Installation directories: |
| 808 | --prefix=PREFIX install architecture-independent files in PREFIX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 809 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 810 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 811 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 812 | |
| 813 | By default, \`make install' will install all the files in |
| 814 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 815 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 816 | for instance \`--prefix=\$HOME'. |
| 817 | |
| 818 | For better control, use the options below. |
| 819 | |
| 820 | Fine tuning of the installation directories: |
| 821 | --bindir=DIR user executables [EPREFIX/bin] |
| 822 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 823 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 824 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 825 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 826 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 827 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 828 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 829 | --includedir=DIR C header files [PREFIX/include] |
| 830 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 831 | --infodir=DIR info documentation [PREFIX/info] |
| 832 | --mandir=DIR man documentation [PREFIX/man] |
| 833 | _ACEOF |
| 834 | |
| 835 | cat <<\_ACEOF |
| 836 | _ACEOF |
| 837 | fi |
| 838 | |
| 839 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 840 | case $ac_init_help in |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 841 | short | recursive ) echo "Configuration of python 2.5:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 842 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 843 | cat <<\_ACEOF |
| 844 | |
| 845 | Optional Features: |
| 846 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 847 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 848 | --enable-framework[=INSTALLDIR] |
| 849 | Build (MacOSX|Darwin) framework |
| 850 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 851 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 852 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 853 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 854 | --disable-ipv6 Disable ipv6 support |
| 855 | --enable-unicode[=ucs[24]] |
| 856 | Enable Unicode strings (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 857 | |
| 858 | Optional Packages: |
| 859 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 860 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 861 | --without-gcc never use gcc |
| 862 | --with-cxx=<compiler> enable C++ support |
| 863 | --with-suffix=.exe set executable suffix |
| 864 | --with-pydebug build with Py_DEBUG defined |
| 865 | --with-libs='lib1 ...' link against additional libs |
| 866 | --with-signal-module disable/enable signal module |
| 867 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 868 | --with(out)-threads[=DIRECTORY] |
| 869 | disable/enable thread support |
| 870 | --with(out)-thread[=DIRECTORY] |
| 871 | deprecated; use --with(out)-threads |
| 872 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 873 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 874 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 875 | --with(out)-pymalloc disable/enable specialized mallocs |
| 876 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 877 | --with-fpectl enable SIGFPE catching |
| 878 | --with-libm=STRING math library |
| 879 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 880 | |
| 881 | Some influential environment variables: |
| 882 | CC C compiler command |
| 883 | CFLAGS C compiler flags |
| 884 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 885 | nonstandard directory <lib dir> |
| 886 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 887 | headers in a nonstandard directory <include dir> |
| 888 | CPP C preprocessor |
| 889 | |
| 890 | Use these variables to override the choices made by `configure' or to help |
| 891 | it to find libraries and programs with nonstandard names/locations. |
| 892 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 893 | Report bugs to <http://www.python.org/python-bugs>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 894 | _ACEOF |
| 895 | fi |
| 896 | |
| 897 | if test "$ac_init_help" = "recursive"; then |
| 898 | # If there are subdirs, report their specific --help. |
| 899 | ac_popdir=`pwd` |
| 900 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 901 | test -d $ac_dir || continue |
| 902 | ac_builddir=. |
| 903 | |
| 904 | if test "$ac_dir" != .; then |
| 905 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 906 | # A "../" for each directory in $ac_dir_suffix. |
| 907 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 908 | else |
| 909 | ac_dir_suffix= ac_top_builddir= |
| 910 | fi |
| 911 | |
| 912 | case $srcdir in |
| 913 | .) # No --srcdir option. We are building in place. |
| 914 | ac_srcdir=. |
| 915 | if test -z "$ac_top_builddir"; then |
| 916 | ac_top_srcdir=. |
| 917 | else |
| 918 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 919 | fi ;; |
| 920 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 921 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 922 | ac_top_srcdir=$srcdir ;; |
| 923 | *) # Relative path. |
| 924 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 925 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 926 | esac |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 927 | |
| 928 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 929 | # the directories may not exist. |
| 930 | case `pwd` in |
| 931 | .) ac_abs_builddir="$ac_dir";; |
| 932 | *) |
| 933 | case "$ac_dir" in |
| 934 | .) ac_abs_builddir=`pwd`;; |
| 935 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 936 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 937 | esac;; |
| 938 | esac |
| 939 | case $ac_abs_builddir in |
| 940 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 941 | *) |
| 942 | case ${ac_top_builddir}. in |
| 943 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 944 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 945 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 946 | esac;; |
| 947 | esac |
| 948 | case $ac_abs_builddir in |
| 949 | .) ac_abs_srcdir=$ac_srcdir;; |
| 950 | *) |
| 951 | case $ac_srcdir in |
| 952 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 953 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 954 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 955 | esac;; |
| 956 | esac |
| 957 | case $ac_abs_builddir in |
| 958 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 959 | *) |
| 960 | case $ac_top_srcdir in |
| 961 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 962 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 963 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 964 | esac;; |
| 965 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 966 | |
| 967 | cd $ac_dir |
| 968 | # Check for guested configure; otherwise get Cygnus style configure. |
| 969 | if test -f $ac_srcdir/configure.gnu; then |
| 970 | echo |
| 971 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 972 | elif test -f $ac_srcdir/configure; then |
| 973 | echo |
| 974 | $SHELL $ac_srcdir/configure --help=recursive |
| 975 | elif test -f $ac_srcdir/configure.ac || |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 976 | test -f $ac_srcdir/configure.in; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 977 | echo |
| 978 | $ac_configure --help |
| 979 | else |
| 980 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 981 | fi |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 982 | cd $ac_popdir |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 983 | done |
| 984 | fi |
| 985 | |
| 986 | test -n "$ac_init_help" && exit 0 |
| 987 | if $ac_init_version; then |
| 988 | cat <<\_ACEOF |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 989 | python configure 2.5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 990 | generated by GNU Autoconf 2.59 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 991 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 992 | Copyright (C) 2003 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 993 | This configure script is free software; the Free Software Foundation |
| 994 | gives unlimited permission to copy, distribute and modify it. |
| 995 | _ACEOF |
| 996 | exit 0 |
| 997 | fi |
| 998 | exec 5>config.log |
| 999 | cat >&5 <<_ACEOF |
| 1000 | This file contains any messages produced by compilers while |
| 1001 | running configure, to aid debugging if configure makes a mistake. |
| 1002 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 1003 | It was created by python $as_me 2.5, which was |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1004 | generated by GNU Autoconf 2.59. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1005 | |
| 1006 | $ $0 $@ |
| 1007 | |
| 1008 | _ACEOF |
| 1009 | { |
| 1010 | cat <<_ASUNAME |
| 1011 | ## --------- ## |
| 1012 | ## Platform. ## |
| 1013 | ## --------- ## |
| 1014 | |
| 1015 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1016 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1017 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1018 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1019 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1020 | |
| 1021 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1022 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1023 | |
| 1024 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1025 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1026 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1027 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1028 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1029 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1030 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1031 | |
| 1032 | _ASUNAME |
| 1033 | |
| 1034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1035 | for as_dir in $PATH |
| 1036 | do |
| 1037 | IFS=$as_save_IFS |
| 1038 | test -z "$as_dir" && as_dir=. |
| 1039 | echo "PATH: $as_dir" |
| 1040 | done |
| 1041 | |
| 1042 | } >&5 |
| 1043 | |
| 1044 | cat >&5 <<_ACEOF |
| 1045 | |
| 1046 | |
| 1047 | ## ----------- ## |
| 1048 | ## Core tests. ## |
| 1049 | ## ----------- ## |
| 1050 | |
| 1051 | _ACEOF |
| 1052 | |
| 1053 | |
| 1054 | # Keep a trace of the command line. |
| 1055 | # Strip out --no-create and --no-recursion so they do not pile up. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1056 | # Strip out --silent because we don't want to record it for future runs. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1057 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1058 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1059 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1060 | ac_configure_args0= |
| 1061 | ac_configure_args1= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1062 | ac_sep= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1063 | ac_must_keep_next=false |
| 1064 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1065 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1066 | for ac_arg |
| 1067 | do |
| 1068 | case $ac_arg in |
| 1069 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1070 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1071 | | -silent | --silent | --silen | --sile | --sil) |
| 1072 | continue ;; |
| 1073 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1074 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1075 | esac |
| 1076 | case $ac_pass in |
| 1077 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1078 | 2) |
| 1079 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1080 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1081 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1082 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1083 | case $ac_arg in |
| 1084 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1085 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1086 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1087 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1088 | case "$ac_configure_args0 " in |
| 1089 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1090 | esac |
| 1091 | ;; |
| 1092 | -* ) ac_must_keep_next=true ;; |
| 1093 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1094 | fi |
| 1095 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1096 | # Get rid of the leading space. |
| 1097 | ac_sep=" " |
| 1098 | ;; |
| 1099 | esac |
| 1100 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1101 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1102 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1103 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1104 | |
| 1105 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1106 | # config.log. We remove comments because anyway the quotes in there |
| 1107 | # would cause problems or look ugly. |
| 1108 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1109 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1110 | trap 'exit_status=$? |
| 1111 | # Save into config.log some information that might help in debugging. |
| 1112 | { |
| 1113 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1114 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1115 | cat <<\_ASBOX |
| 1116 | ## ---------------- ## |
| 1117 | ## Cache variables. ## |
| 1118 | ## ---------------- ## |
| 1119 | _ASBOX |
| 1120 | echo |
| 1121 | # The following way of writing the cache mishandles newlines in values, |
| 1122 | { |
| 1123 | (set) 2>&1 | |
| 1124 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1125 | *ac_space=\ *) |
| 1126 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1127 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1128 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1129 | ;; |
| 1130 | *) |
| 1131 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1132 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1133 | ;; |
| 1134 | esac; |
| 1135 | } |
| 1136 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1137 | |
| 1138 | cat <<\_ASBOX |
| 1139 | ## ----------------- ## |
| 1140 | ## Output variables. ## |
| 1141 | ## ----------------- ## |
| 1142 | _ASBOX |
| 1143 | echo |
| 1144 | for ac_var in $ac_subst_vars |
| 1145 | do |
| 1146 | eval ac_val=$`echo $ac_var` |
| 1147 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1148 | done | sort |
| 1149 | echo |
| 1150 | |
| 1151 | if test -n "$ac_subst_files"; then |
| 1152 | cat <<\_ASBOX |
| 1153 | ## ------------- ## |
| 1154 | ## Output files. ## |
| 1155 | ## ------------- ## |
| 1156 | _ASBOX |
| 1157 | echo |
| 1158 | for ac_var in $ac_subst_files |
| 1159 | do |
| 1160 | eval ac_val=$`echo $ac_var` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1161 | echo "$ac_var='"'"'$ac_val'"'"'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1162 | done | sort |
| 1163 | echo |
| 1164 | fi |
| 1165 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1166 | if test -s confdefs.h; then |
| 1167 | cat <<\_ASBOX |
| 1168 | ## ----------- ## |
| 1169 | ## confdefs.h. ## |
| 1170 | ## ----------- ## |
| 1171 | _ASBOX |
| 1172 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1173 | sed "/^$/d" confdefs.h | sort |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1174 | echo |
| 1175 | fi |
| 1176 | test "$ac_signal" != 0 && |
| 1177 | echo "$as_me: caught signal $ac_signal" |
| 1178 | echo "$as_me: exit $exit_status" |
| 1179 | } >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1180 | rm -f core *.core && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1181 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1182 | exit $exit_status |
| 1183 | ' 0 |
| 1184 | for ac_signal in 1 2 13 15; do |
| 1185 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1186 | done |
| 1187 | ac_signal=0 |
| 1188 | |
| 1189 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1190 | rm -rf conftest* confdefs.h |
| 1191 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1192 | echo >confdefs.h |
| 1193 | |
| 1194 | # Predefined preprocessor variables. |
| 1195 | |
| 1196 | cat >>confdefs.h <<_ACEOF |
| 1197 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1198 | _ACEOF |
| 1199 | |
| 1200 | |
| 1201 | cat >>confdefs.h <<_ACEOF |
| 1202 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1203 | _ACEOF |
| 1204 | |
| 1205 | |
| 1206 | cat >>confdefs.h <<_ACEOF |
| 1207 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1208 | _ACEOF |
| 1209 | |
| 1210 | |
| 1211 | cat >>confdefs.h <<_ACEOF |
| 1212 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1213 | _ACEOF |
| 1214 | |
| 1215 | |
| 1216 | cat >>confdefs.h <<_ACEOF |
| 1217 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1218 | _ACEOF |
| 1219 | |
| 1220 | |
| 1221 | # Let the site file select an alternate cache file if it wants to. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1222 | # Prefer explicitly selected file to automatically selected ones. |
| 1223 | if test -z "$CONFIG_SITE"; then |
| 1224 | if test "x$prefix" != xNONE; then |
| 1225 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1226 | else |
| 1227 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1228 | fi |
| 1229 | fi |
| 1230 | for ac_site_file in $CONFIG_SITE; do |
| 1231 | if test -r "$ac_site_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1232 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1233 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1234 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1235 | . "$ac_site_file" |
| 1236 | fi |
| 1237 | done |
| 1238 | |
| 1239 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1240 | # Some versions of bash will fail to source /dev/null (special |
| 1241 | # files actually), so we avoid doing that. |
| 1242 | if test -f "$cache_file"; then |
| 1243 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1244 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1245 | case $cache_file in |
| 1246 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1247 | *) . ./$cache_file;; |
| 1248 | esac |
| 1249 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1250 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1251 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1252 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1253 | >$cache_file |
| 1254 | fi |
| 1255 | |
| 1256 | # Check that the precious variables saved in the cache have kept the same |
| 1257 | # value. |
| 1258 | ac_cache_corrupted=false |
| 1259 | for ac_var in `(set) 2>&1 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1260 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1261 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1262 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1263 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1264 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1265 | case $ac_old_set,$ac_new_set in |
| 1266 | set,) |
| 1267 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1268 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1269 | ac_cache_corrupted=: ;; |
| 1270 | ,set) |
| 1271 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1272 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1273 | ac_cache_corrupted=: ;; |
| 1274 | ,);; |
| 1275 | *) |
| 1276 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1277 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1278 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1279 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1280 | echo "$as_me: former value: $ac_old_val" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1281 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1282 | echo "$as_me: current value: $ac_new_val" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1283 | ac_cache_corrupted=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1284 | fi;; |
| 1285 | esac |
| 1286 | # Pass precious variables to config.status. |
| 1287 | if test "$ac_new_set" = set; then |
| 1288 | case $ac_new_val in |
| 1289 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1290 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1291 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1292 | esac |
| 1293 | case " $ac_configure_args " in |
| 1294 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1295 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1296 | esac |
| 1297 | fi |
| 1298 | done |
| 1299 | if $ac_cache_corrupted; then |
| 1300 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1301 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1302 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1303 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1304 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1305 | fi |
| 1306 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1307 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1308 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1309 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1310 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1311 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1312 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1313 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1314 | |
| 1315 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1316 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1317 | |
| 1318 | |
| 1319 | |
| 1320 | |
| 1321 | |
| 1322 | |
| 1323 | |
| 1324 | |
| 1325 | |
| 1326 | |
| 1327 | |
| 1328 | |
| 1329 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1330 | |
| 1331 | |
| 1332 | |
| 1333 | |
| 1334 | |
| 1335 | |
| 1336 | |
| 1337 | |
| 1338 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1339 | |
| 1340 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1341 | |
| 1342 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1343 | |
| 1344 | |
| 1345 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1346 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1347 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1348 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1349 | # with other autoconf-based packages that include Python.h |
| 1350 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1351 | rm confdefs.h |
| 1352 | mv confdefs.h.new confdefs.h |
| 1353 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1354 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 1355 | VERSION=2.5 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1356 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1357 | |
| 1358 | SOVERSION=1.0 |
| 1359 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1360 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1361 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1362 | |
| 1363 | cat >>confdefs.h <<\_ACEOF |
| 1364 | #define _GNU_SOURCE 1 |
| 1365 | _ACEOF |
| 1366 | |
| 1367 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1368 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1369 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1370 | # them. |
| 1371 | |
| 1372 | cat >>confdefs.h <<\_ACEOF |
| 1373 | #define _NETBSD_SOURCE 1 |
| 1374 | _ACEOF |
| 1375 | |
| 1376 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1377 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1378 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1379 | # them. |
| 1380 | |
| 1381 | cat >>confdefs.h <<\_ACEOF |
| 1382 | #define __BSD_VISIBLE 1 |
| 1383 | _ACEOF |
| 1384 | |
| 1385 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 1386 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1387 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 1388 | |
| 1389 | cat >>confdefs.h <<\_ACEOF |
| 1390 | #define _BSD_TYPES 1 |
| 1391 | _ACEOF |
| 1392 | |
| 1393 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1394 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1395 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1396 | # Arguments passed to configure. |
| 1397 | |
| 1398 | CONFIG_ARGS="$ac_configure_args" |
| 1399 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1400 | # Check whether --enable-framework or --disable-framework was given. |
| 1401 | if test "${enable_framework+set}" = set; then |
| 1402 | enableval="$enable_framework" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1403 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1404 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1405 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1406 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1407 | esac |
| 1408 | case $enableval in |
| 1409 | no) |
| 1410 | PYTHONFRAMEWORK= |
| 1411 | PYTHONFRAMEWORKDIR=no-framework |
| 1412 | PYTHONFRAMEWORKPREFIX= |
| 1413 | PYTHONFRAMEWORKINSTALLDIR= |
| 1414 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1415 | ;; |
| 1416 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1417 | PYTHONFRAMEWORK=Python |
| 1418 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1419 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1420 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
| 1421 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1422 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1423 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1424 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1425 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1426 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1427 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1428 | PYTHONFRAMEWORKPREFIX= |
| 1429 | PYTHONFRAMEWORKINSTALLDIR= |
| 1430 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1431 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1432 | fi; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1433 | |
| 1434 | |
| 1435 | |
| 1436 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1437 | |
| 1438 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1439 | ## AC_HELP_STRING(--with-dyld, |
| 1440 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1441 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1442 | # Set name for machine-dependent library files |
| 1443 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1444 | echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1445 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1446 | if test -z "$MACHDEP" |
| 1447 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1448 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 1449 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 1450 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1451 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1452 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1453 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1454 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1455 | ac_md_system=`echo $ac_sys_system | |
| 1456 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1457 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1458 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1459 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1460 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1461 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1462 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1463 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1464 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 1465 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1466 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1467 | esac |
| 1468 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1469 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1470 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 1471 | # disable features if it is defined, without any means to access these |
| 1472 | # features as extensions. For these systems, we skip the definition of |
| 1473 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 1474 | # some feature, make sure there is no alternative way to access this |
| 1475 | # feature. Also, when using wildcards, make sure you have verified the |
| 1476 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 1477 | # wildcard, and that the wildcard does not include future systems |
| 1478 | # (which may remove their limitations). |
| 1479 | case $ac_sys_system/$ac_sys_release in |
| 1480 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 1481 | # even though select is a POSIX function. Reported by J. Ribbens. |
Martin v. Löwis | 76bafc6 | 2003-10-03 13:47:44 +0000 | [diff] [blame] | 1482 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
Martin v. Löwis | 9996828 | 2004-09-15 06:02:54 +0000 | [diff] [blame] | 1483 | OpenBSD/2.* | OpenBSD/3.[0123456]) |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1484 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 1485 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 1486 | # of union __?sigval. Reported by Stuart Bishop. |
| 1487 | SunOS/5.6) |
| 1488 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1489 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 1490 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 1491 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 1492 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1493 | define_xopen_source=no;; |
| 1494 | # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE, |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 1495 | # but used in struct sockaddr.sa_family. Reported by Tim Rice. |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1496 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 1497 | define_xopen_source=no;; |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 1498 | # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that |
| 1499 | # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently, |
| 1500 | # this is fixed in 10.3, which identifies itself as Darwin/7.* |
| 1501 | # This should hopefully be fixed in FreeBSD 4.9 |
| 1502 | FreeBSD/4.8* | Darwin/6* ) |
| 1503 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 1504 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 1505 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 1506 | # or has another value. By not (re)defining it, the defaults come in place. |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 1507 | AIX/4) |
| 1508 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 1509 | AIX/5) |
| 1510 | if test `uname -r` -eq 1; then |
| 1511 | define_xopen_source=no |
| 1512 | fi |
| 1513 | ;; |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 1514 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 1515 | # disables platform specific features beyond repair. |
| 1516 | Darwin/8.*) |
| 1517 | define_xopen_source=no |
| 1518 | ;; |
| 1519 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1520 | esac |
| 1521 | |
| 1522 | if test $define_xopen_source = yes |
| 1523 | then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1524 | # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
| 1525 | # defined precisely as g++ defines it |
| 1526 | case $ac_sys_system/$ac_sys_release in |
| 1527 | SunOS/5.8|SunOS/5.9) |
| 1528 | |
| 1529 | cat >>confdefs.h <<\_ACEOF |
| 1530 | #define _XOPEN_SOURCE 500 |
| 1531 | _ACEOF |
| 1532 | |
| 1533 | ;; |
| 1534 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1535 | |
| 1536 | cat >>confdefs.h <<\_ACEOF |
| 1537 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1538 | _ACEOF |
| 1539 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1540 | ;; |
| 1541 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1542 | |
| 1543 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 1544 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 1545 | # several APIs are not declared. Since this is also needed in some |
| 1546 | # cases for HP-UX, we define it globally. |
| 1547 | |
| 1548 | |
| 1549 | cat >>confdefs.h <<\_ACEOF |
| 1550 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 1551 | _ACEOF |
| 1552 | |
| 1553 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 1554 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1555 | cat >>confdefs.h <<\_ACEOF |
| 1556 | #define _POSIX_C_SOURCE 200112L |
| 1557 | _ACEOF |
| 1558 | |
| 1559 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1560 | fi |
| 1561 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1562 | # |
| 1563 | # SGI compilers allow the specification of the both the ABI and the |
| 1564 | # ISA on the command line. Depending on the values of these switches, |
| 1565 | # different and often incompatable code will be generated. |
| 1566 | # |
| 1567 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 1568 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 1569 | # variable is also adjusted. |
| 1570 | # |
| 1571 | |
| 1572 | if test ! -z "$SGI_ABI" |
| 1573 | then |
| 1574 | CC="cc $SGI_ABI" |
| 1575 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 1576 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 1577 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1578 | echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 1579 | echo "${ECHO_T}$MACHDEP" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1580 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1581 | # And add extra plat-mac for darwin |
| 1582 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1583 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1584 | echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 1585 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6 |
| 1586 | if test -z "$EXTRAPLATDIR" |
| 1587 | then |
| 1588 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1589 | darwin) |
| 1590 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 1591 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 1592 | ;; |
| 1593 | *) |
| 1594 | EXTRAPLATDIR="" |
| 1595 | EXTRAMACHDEPPATH="" |
| 1596 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1597 | esac |
| 1598 | fi |
| 1599 | echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 1600 | echo "${ECHO_T}$EXTRAPLATDIR" >&6 |
| 1601 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 1602 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 1603 | # it may influence the way we can build extensions, so distutils |
| 1604 | # needs to check it |
| 1605 | |
| 1606 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
| 1607 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1608 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1609 | |
| 1610 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 1611 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 1612 | # just to get things to compile and link. Users are free to override OPT |
| 1613 | # when running configure or make. The build should not break if they do. |
| 1614 | # BASECFLAGS should generally not be messed with, however. |
| 1615 | |
| 1616 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 1617 | # on that fiddles with OPT and BASECFLAGS? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1618 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1619 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1620 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1621 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1622 | if test "${with_gcc+set}" = set; then |
| 1623 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1624 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1625 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1626 | no) CC=cc |
| 1627 | without_gcc=yes;; |
| 1628 | yes) CC=gcc |
| 1629 | without_gcc=no;; |
| 1630 | *) CC=$withval |
| 1631 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1632 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1633 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1634 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1635 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1636 | AIX*) CC=cc_r |
| 1637 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1638 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1639 | case $BE_HOST_CPU in |
| 1640 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1641 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1642 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1643 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 1644 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1645 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1646 | ;; |
| 1647 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1648 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1649 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1650 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1651 | ;; |
| 1652 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1653 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1654 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1655 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1656 | ;; |
| 1657 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1658 | AR="\$(srcdir)/Modules/ar_beos" |
| 1659 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1660 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1661 | Monterey*) |
| 1662 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1663 | without_gcc=;; |
| 1664 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1665 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1666 | fi; |
| 1667 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1668 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1669 | |
| 1670 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1671 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1672 | MAINOBJ=python.o |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1673 | echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5 |
| 1674 | echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6 |
| 1675 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1676 | # Check whether --with-cxx or --without-cxx was given. |
| 1677 | if test "${with_cxx+set}" = set; then |
| 1678 | withval="$with_cxx" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1679 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1680 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1681 | case $withval in |
| 1682 | no) CXX= |
| 1683 | with_cxx=no;; |
| 1684 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1685 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1686 | with_cxx=$withval;; |
| 1687 | esac |
| 1688 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1689 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1690 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1691 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1692 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1693 | fi; |
| 1694 | echo "$as_me:$LINENO: result: $with_cxx" >&5 |
| 1695 | echo "${ECHO_T}$with_cxx" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1696 | |
| 1697 | if test "$with_cxx" = "yes" |
| 1698 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1699 | { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5 |
| 1700 | echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;} |
| 1701 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1702 | fi |
| 1703 | |
| 1704 | |
| 1705 | |
| 1706 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1707 | if test "$check_cxx" = "yes" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1708 | then |
| 1709 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 1710 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1711 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1712 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1713 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1714 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1715 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1717 | else |
| 1718 | if test -n "$CXX"; then |
| 1719 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1720 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1721 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1722 | for as_dir in $PATH |
| 1723 | do |
| 1724 | IFS=$as_save_IFS |
| 1725 | test -z "$as_dir" && as_dir=. |
| 1726 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1727 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1728 | ac_cv_prog_CXX="$ac_prog" |
| 1729 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1730 | break 2 |
| 1731 | fi |
| 1732 | done |
| 1733 | done |
| 1734 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1735 | fi |
| 1736 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1737 | CXX=$ac_cv_prog_CXX |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1738 | if test -n "$CXX"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1739 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1740 | echo "${ECHO_T}$CXX" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1741 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1742 | echo "$as_me:$LINENO: result: no" >&5 |
| 1743 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1744 | fi |
| 1745 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1746 | test -n "$CXX" && break |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1747 | done |
| 1748 | test -n "$CXX" || CXX="notfound" |
| 1749 | |
| 1750 | if test "$CXX" = "notfound" |
| 1751 | then |
| 1752 | CXX= |
| 1753 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1754 | ac_ext=cc |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1755 | ac_cpp='$CXXCPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1756 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1757 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1758 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1759 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1760 | /* confdefs.h. */ |
| 1761 | _ACEOF |
| 1762 | cat confdefs.h >>conftest.$ac_ext |
| 1763 | cat >>conftest.$ac_ext <<_ACEOF |
| 1764 | /* end confdefs.h. */ |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1765 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1766 | int |
| 1767 | main () |
| 1768 | { |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1769 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1770 | ; |
| 1771 | return 0; |
| 1772 | } |
| 1773 | _ACEOF |
| 1774 | ac_clean_files_save=$ac_clean_files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1775 | 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] | 1776 | # Try to create an executable without -o first, disregard a.out. |
| 1777 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1778 | # of exeext. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1779 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
| 1780 | 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] | 1781 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1782 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1783 | (eval $ac_link_default) 2>&5 |
| 1784 | ac_status=$? |
| 1785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1786 | (exit $ac_status); }; then |
| 1787 | # Find the output, starting from the most likely. This scheme is |
| 1788 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1789 | # resort. |
| 1790 | |
| 1791 | # Be careful to initialize this variable, since it used to be cached. |
| 1792 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1793 | ac_cv_exeext= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1794 | # b.out is created by i960 compilers. |
| 1795 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1796 | do |
| 1797 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1798 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1799 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1800 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1801 | conftest.$ac_ext ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1802 | # This is the source file. |
| 1803 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1804 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1805 | # We found the default executable, but exeext='' is most |
| 1806 | # certainly right. |
| 1807 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1808 | *.* ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1809 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1810 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1811 | # but it would be cool to find out if it's true. Does anybody |
| 1812 | # maintain Libtool? --akim. |
| 1813 | export ac_cv_exeext |
| 1814 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1815 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1816 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1817 | esac |
| 1818 | done |
| 1819 | else |
| 1820 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1821 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1822 | |
| 1823 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
| 1824 | See \`config.log' for more details." >&5 |
| 1825 | echo "$as_me: error: C++ compiler cannot create executables |
| 1826 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1827 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1828 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1829 | |
| 1830 | ac_exeext=$ac_cv_exeext |
| 1831 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1832 | echo "${ECHO_T}$ac_file" >&6 |
| 1833 | |
| 1834 | # Check the compiler produces executables we can run. If not, either |
| 1835 | # the compiler is broken, or we cross compile. |
| 1836 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1837 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1838 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1839 | # If not cross compiling, check that we can run a simple program. |
| 1840 | if test "$cross_compiling" != yes; then |
| 1841 | if { ac_try='./$ac_file' |
| 1842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1843 | (eval $ac_try) 2>&5 |
| 1844 | ac_status=$? |
| 1845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1846 | (exit $ac_status); }; }; then |
| 1847 | cross_compiling=no |
| 1848 | else |
| 1849 | if test "$cross_compiling" = maybe; then |
| 1850 | cross_compiling=yes |
| 1851 | else |
| 1852 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1853 | If you meant to cross compile, use \`--host'. |
| 1854 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1855 | echo "$as_me: error: cannot run C++ compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1856 | If you meant to cross compile, use \`--host'. |
| 1857 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1858 | { (exit 1); exit 1; }; } |
| 1859 | fi |
| 1860 | fi |
| 1861 | fi |
| 1862 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1863 | echo "${ECHO_T}yes" >&6 |
| 1864 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1865 | 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] | 1866 | ac_clean_files=$ac_clean_files_save |
| 1867 | # Check the compiler produces executables we can run. If not, either |
| 1868 | # the compiler is broken, or we cross compile. |
| 1869 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1870 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1871 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1872 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1873 | |
| 1874 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1875 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1877 | (eval $ac_link) 2>&5 |
| 1878 | ac_status=$? |
| 1879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1880 | (exit $ac_status); }; then |
| 1881 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1882 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1883 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1884 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1885 | for ac_file in conftest.exe conftest conftest.*; do |
| 1886 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1887 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1888 | *.$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] | 1889 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1890 | export ac_cv_exeext |
| 1891 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1892 | * ) break;; |
| 1893 | esac |
| 1894 | done |
| 1895 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1896 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1897 | See \`config.log' for more details." >&5 |
| 1898 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1899 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1900 | { (exit 1); exit 1; }; } |
| 1901 | fi |
| 1902 | |
| 1903 | rm -f conftest$ac_cv_exeext |
| 1904 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1905 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1906 | |
| 1907 | rm -f conftest.$ac_ext |
| 1908 | EXEEXT=$ac_cv_exeext |
| 1909 | ac_exeext=$EXEEXT |
| 1910 | |
| 1911 | ac_ext=c |
| 1912 | ac_cpp='$CPP $CPPFLAGS' |
| 1913 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1914 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1915 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1916 | |
| 1917 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1918 | |
| 1919 | fi |
| 1920 | fi |
| 1921 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1922 | # If the user switches compilers, we can't believe the cache |
| 1923 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1924 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1925 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1926 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1927 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1928 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1929 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1930 | fi |
| 1931 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1932 | ac_ext=c |
| 1933 | ac_cpp='$CPP $CPPFLAGS' |
| 1934 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1935 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1936 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1937 | if test -n "$ac_tool_prefix"; then |
| 1938 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1939 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1940 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1941 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1942 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1944 | else |
| 1945 | if test -n "$CC"; then |
| 1946 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1947 | else |
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 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1956 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1957 | break 2 |
| 1958 | fi |
| 1959 | done |
| 1960 | done |
| 1961 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1962 | fi |
| 1963 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1964 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1965 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1966 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1967 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1968 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1969 | echo "$as_me:$LINENO: result: no" >&5 |
| 1970 | echo "${ECHO_T}no" >&6 |
| 1971 | fi |
| 1972 | |
| 1973 | fi |
| 1974 | if test -z "$ac_cv_prog_CC"; then |
| 1975 | ac_ct_CC=$CC |
| 1976 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1977 | set dummy gcc; ac_word=$2 |
| 1978 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1979 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1980 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1982 | else |
| 1983 | if test -n "$ac_ct_CC"; then |
| 1984 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1985 | else |
| 1986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1987 | for as_dir in $PATH |
| 1988 | do |
| 1989 | IFS=$as_save_IFS |
| 1990 | test -z "$as_dir" && as_dir=. |
| 1991 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1992 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1993 | ac_cv_prog_ac_ct_CC="gcc" |
| 1994 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1995 | break 2 |
| 1996 | fi |
| 1997 | done |
| 1998 | done |
| 1999 | |
| 2000 | fi |
| 2001 | fi |
| 2002 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2003 | if test -n "$ac_ct_CC"; then |
| 2004 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2005 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2006 | else |
| 2007 | echo "$as_me:$LINENO: result: no" >&5 |
| 2008 | echo "${ECHO_T}no" >&6 |
| 2009 | fi |
| 2010 | |
| 2011 | CC=$ac_ct_CC |
| 2012 | else |
| 2013 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2014 | fi |
| 2015 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2016 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2017 | if test -n "$ac_tool_prefix"; then |
| 2018 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2019 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2020 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2021 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2022 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2024 | else |
| 2025 | if test -n "$CC"; then |
| 2026 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2027 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2029 | for as_dir in $PATH |
| 2030 | do |
| 2031 | IFS=$as_save_IFS |
| 2032 | test -z "$as_dir" && as_dir=. |
| 2033 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2034 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2035 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2036 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2037 | break 2 |
| 2038 | fi |
| 2039 | done |
| 2040 | done |
| 2041 | |
| 2042 | fi |
| 2043 | fi |
| 2044 | CC=$ac_cv_prog_CC |
| 2045 | if test -n "$CC"; then |
| 2046 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2047 | echo "${ECHO_T}$CC" >&6 |
| 2048 | else |
| 2049 | echo "$as_me:$LINENO: result: no" >&5 |
| 2050 | echo "${ECHO_T}no" >&6 |
| 2051 | fi |
| 2052 | |
| 2053 | fi |
| 2054 | if test -z "$ac_cv_prog_CC"; then |
| 2055 | ac_ct_CC=$CC |
| 2056 | # Extract the first word of "cc", so it can be a program name with args. |
| 2057 | set dummy cc; ac_word=$2 |
| 2058 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2059 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2060 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2062 | else |
| 2063 | if test -n "$ac_ct_CC"; then |
| 2064 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2065 | else |
| 2066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2067 | for as_dir in $PATH |
| 2068 | do |
| 2069 | IFS=$as_save_IFS |
| 2070 | test -z "$as_dir" && as_dir=. |
| 2071 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2072 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2073 | ac_cv_prog_ac_ct_CC="cc" |
| 2074 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2075 | break 2 |
| 2076 | fi |
| 2077 | done |
| 2078 | done |
| 2079 | |
| 2080 | fi |
| 2081 | fi |
| 2082 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2083 | if test -n "$ac_ct_CC"; then |
| 2084 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2085 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2086 | else |
| 2087 | echo "$as_me:$LINENO: result: no" >&5 |
| 2088 | echo "${ECHO_T}no" >&6 |
| 2089 | fi |
| 2090 | |
| 2091 | CC=$ac_ct_CC |
| 2092 | else |
| 2093 | CC="$ac_cv_prog_CC" |
| 2094 | fi |
| 2095 | |
| 2096 | fi |
| 2097 | if test -z "$CC"; then |
| 2098 | # Extract the first word of "cc", so it can be a program name with args. |
| 2099 | set dummy cc; ac_word=$2 |
| 2100 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2101 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2102 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2104 | else |
| 2105 | if test -n "$CC"; then |
| 2106 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2107 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2108 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2110 | for as_dir in $PATH |
| 2111 | do |
| 2112 | IFS=$as_save_IFS |
| 2113 | test -z "$as_dir" && as_dir=. |
| 2114 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2115 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2116 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2117 | ac_prog_rejected=yes |
| 2118 | continue |
| 2119 | fi |
| 2120 | ac_cv_prog_CC="cc" |
| 2121 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2122 | break 2 |
| 2123 | fi |
| 2124 | done |
| 2125 | done |
| 2126 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2127 | if test $ac_prog_rejected = yes; then |
| 2128 | # We found a bogon in the path, so make sure we never use it. |
| 2129 | set dummy $ac_cv_prog_CC |
| 2130 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2131 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2132 | # We chose a different compiler from the bogus one. |
| 2133 | # However, it has the same basename, so the bogon will be chosen |
| 2134 | # first if we set CC to just the basename; use the full file name. |
| 2135 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2136 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2137 | fi |
| 2138 | fi |
| 2139 | fi |
| 2140 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2141 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2142 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2143 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2144 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2145 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2146 | echo "$as_me:$LINENO: result: no" >&5 |
| 2147 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2148 | fi |
| 2149 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2150 | fi |
| 2151 | if test -z "$CC"; then |
| 2152 | if test -n "$ac_tool_prefix"; then |
| 2153 | for ac_prog in cl |
| 2154 | do |
| 2155 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2156 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2157 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2158 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2159 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2161 | else |
| 2162 | if test -n "$CC"; then |
| 2163 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2164 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2166 | for as_dir in $PATH |
| 2167 | do |
| 2168 | IFS=$as_save_IFS |
| 2169 | test -z "$as_dir" && as_dir=. |
| 2170 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2171 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2172 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2173 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2174 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2175 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2176 | done |
| 2177 | done |
| 2178 | |
| 2179 | fi |
| 2180 | fi |
| 2181 | CC=$ac_cv_prog_CC |
| 2182 | if test -n "$CC"; then |
| 2183 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2184 | echo "${ECHO_T}$CC" >&6 |
| 2185 | else |
| 2186 | echo "$as_me:$LINENO: result: no" >&5 |
| 2187 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2188 | fi |
| 2189 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2190 | test -n "$CC" && break |
| 2191 | done |
| 2192 | fi |
| 2193 | if test -z "$CC"; then |
| 2194 | ac_ct_CC=$CC |
| 2195 | for ac_prog in cl |
| 2196 | do |
| 2197 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2198 | set dummy $ac_prog; ac_word=$2 |
| 2199 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2200 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2201 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2203 | else |
| 2204 | if test -n "$ac_ct_CC"; then |
| 2205 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2206 | else |
| 2207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2208 | for as_dir in $PATH |
| 2209 | do |
| 2210 | IFS=$as_save_IFS |
| 2211 | test -z "$as_dir" && as_dir=. |
| 2212 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2213 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2214 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2215 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2216 | break 2 |
| 2217 | fi |
| 2218 | done |
| 2219 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2220 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2221 | fi |
| 2222 | fi |
| 2223 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2224 | if test -n "$ac_ct_CC"; then |
| 2225 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2226 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2227 | else |
| 2228 | echo "$as_me:$LINENO: result: no" >&5 |
| 2229 | echo "${ECHO_T}no" >&6 |
| 2230 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2231 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2232 | test -n "$ac_ct_CC" && break |
| 2233 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2234 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2235 | CC=$ac_ct_CC |
| 2236 | fi |
| 2237 | |
| 2238 | fi |
| 2239 | |
| 2240 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2241 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2242 | See \`config.log' for more details." >&5 |
| 2243 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2244 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2245 | { (exit 1); exit 1; }; } |
| 2246 | |
| 2247 | # Provide some information about the compiler. |
| 2248 | echo "$as_me:$LINENO:" \ |
| 2249 | "checking for C compiler version" >&5 |
| 2250 | ac_compiler=`set X $ac_compile; echo $2` |
| 2251 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2252 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2253 | ac_status=$? |
| 2254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2255 | (exit $ac_status); } |
| 2256 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2257 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2258 | ac_status=$? |
| 2259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2260 | (exit $ac_status); } |
| 2261 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2262 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2263 | ac_status=$? |
| 2264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2265 | (exit $ac_status); } |
| 2266 | |
| 2267 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2268 | /* confdefs.h. */ |
| 2269 | _ACEOF |
| 2270 | cat confdefs.h >>conftest.$ac_ext |
| 2271 | cat >>conftest.$ac_ext <<_ACEOF |
| 2272 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2273 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2274 | int |
| 2275 | main () |
| 2276 | { |
| 2277 | |
| 2278 | ; |
| 2279 | return 0; |
| 2280 | } |
| 2281 | _ACEOF |
| 2282 | ac_clean_files_save=$ac_clean_files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2283 | 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] | 2284 | # Try to create an executable without -o first, disregard a.out. |
| 2285 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2286 | # of exeext. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2287 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2288 | 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] | 2289 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2290 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2291 | (eval $ac_link_default) 2>&5 |
| 2292 | ac_status=$? |
| 2293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2294 | (exit $ac_status); }; then |
| 2295 | # Find the output, starting from the most likely. This scheme is |
| 2296 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2297 | # resort. |
| 2298 | |
| 2299 | # Be careful to initialize this variable, since it used to be cached. |
| 2300 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2301 | ac_cv_exeext= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2302 | # b.out is created by i960 compilers. |
| 2303 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2304 | do |
| 2305 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2306 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2307 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2308 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2309 | conftest.$ac_ext ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2310 | # This is the source file. |
| 2311 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2312 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2313 | # We found the default executable, but exeext='' is most |
| 2314 | # certainly right. |
| 2315 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2316 | *.* ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2317 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2318 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2319 | # but it would be cool to find out if it's true. Does anybody |
| 2320 | # maintain Libtool? --akim. |
| 2321 | export ac_cv_exeext |
| 2322 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2323 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2324 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2325 | esac |
| 2326 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2327 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2328 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2329 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2330 | |
| 2331 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2332 | See \`config.log' for more details." >&5 |
| 2333 | echo "$as_me: error: C compiler cannot create executables |
| 2334 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2335 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2336 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2337 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2338 | ac_exeext=$ac_cv_exeext |
| 2339 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2340 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2341 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2342 | # Check the compiler produces executables we can run. If not, either |
| 2343 | # the compiler is broken, or we cross compile. |
| 2344 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2345 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2346 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2347 | # If not cross compiling, check that we can run a simple program. |
| 2348 | if test "$cross_compiling" != yes; then |
| 2349 | if { ac_try='./$ac_file' |
| 2350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2351 | (eval $ac_try) 2>&5 |
| 2352 | ac_status=$? |
| 2353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2354 | (exit $ac_status); }; }; then |
| 2355 | cross_compiling=no |
| 2356 | else |
| 2357 | if test "$cross_compiling" = maybe; then |
| 2358 | cross_compiling=yes |
| 2359 | else |
| 2360 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2361 | If you meant to cross compile, use \`--host'. |
| 2362 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2363 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2364 | If you meant to cross compile, use \`--host'. |
| 2365 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2366 | { (exit 1); exit 1; }; } |
| 2367 | fi |
| 2368 | fi |
| 2369 | fi |
| 2370 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2371 | echo "${ECHO_T}yes" >&6 |
| 2372 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2373 | 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] | 2374 | ac_clean_files=$ac_clean_files_save |
| 2375 | # Check the compiler produces executables we can run. If not, either |
| 2376 | # the compiler is broken, or we cross compile. |
| 2377 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2378 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2379 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2380 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2381 | |
| 2382 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2383 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2384 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2385 | (eval $ac_link) 2>&5 |
| 2386 | ac_status=$? |
| 2387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2388 | (exit $ac_status); }; then |
| 2389 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2390 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2391 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2392 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2393 | for ac_file in conftest.exe conftest conftest.*; do |
| 2394 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2395 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2396 | *.$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] | 2397 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2398 | export ac_cv_exeext |
| 2399 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2400 | * ) break;; |
| 2401 | esac |
| 2402 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2403 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2404 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2405 | See \`config.log' for more details." >&5 |
| 2406 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2407 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2408 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2409 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2410 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2411 | rm -f conftest$ac_cv_exeext |
| 2412 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2413 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2414 | |
| 2415 | rm -f conftest.$ac_ext |
| 2416 | EXEEXT=$ac_cv_exeext |
| 2417 | ac_exeext=$EXEEXT |
| 2418 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2419 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2420 | if test "${ac_cv_objext+set}" = set; then |
| 2421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2422 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2423 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2424 | /* confdefs.h. */ |
| 2425 | _ACEOF |
| 2426 | cat confdefs.h >>conftest.$ac_ext |
| 2427 | cat >>conftest.$ac_ext <<_ACEOF |
| 2428 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2429 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2430 | int |
| 2431 | main () |
| 2432 | { |
| 2433 | |
| 2434 | ; |
| 2435 | return 0; |
| 2436 | } |
| 2437 | _ACEOF |
| 2438 | rm -f conftest.o conftest.obj |
| 2439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2440 | (eval $ac_compile) 2>&5 |
| 2441 | ac_status=$? |
| 2442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2443 | (exit $ac_status); }; then |
| 2444 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2445 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2446 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2447 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2448 | break;; |
| 2449 | esac |
| 2450 | done |
| 2451 | else |
| 2452 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2453 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2454 | |
| 2455 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2456 | See \`config.log' for more details." >&5 |
| 2457 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2458 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2459 | { (exit 1); exit 1; }; } |
| 2460 | fi |
| 2461 | |
| 2462 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2463 | fi |
| 2464 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2465 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2466 | OBJEXT=$ac_cv_objext |
| 2467 | ac_objext=$OBJEXT |
| 2468 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2469 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2470 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2472 | else |
| 2473 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2474 | /* confdefs.h. */ |
| 2475 | _ACEOF |
| 2476 | cat confdefs.h >>conftest.$ac_ext |
| 2477 | cat >>conftest.$ac_ext <<_ACEOF |
| 2478 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2479 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2480 | int |
| 2481 | main () |
| 2482 | { |
| 2483 | #ifndef __GNUC__ |
| 2484 | choke me |
| 2485 | #endif |
| 2486 | |
| 2487 | ; |
| 2488 | return 0; |
| 2489 | } |
| 2490 | _ACEOF |
| 2491 | rm -f conftest.$ac_objext |
| 2492 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2493 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2494 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2495 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2496 | rm -f conftest.er1 |
| 2497 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2499 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2500 | { ac_try='test -z "$ac_c_werror_flag" |
| 2501 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2503 | (eval $ac_try) 2>&5 |
| 2504 | ac_status=$? |
| 2505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2506 | (exit $ac_status); }; } && |
| 2507 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2509 | (eval $ac_try) 2>&5 |
| 2510 | ac_status=$? |
| 2511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2512 | (exit $ac_status); }; }; then |
| 2513 | ac_compiler_gnu=yes |
| 2514 | else |
| 2515 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2516 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2517 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2518 | ac_compiler_gnu=no |
| 2519 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2520 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2521 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2522 | |
| 2523 | fi |
| 2524 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2525 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2526 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2527 | ac_test_CFLAGS=${CFLAGS+set} |
| 2528 | ac_save_CFLAGS=$CFLAGS |
| 2529 | CFLAGS="-g" |
| 2530 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2531 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2532 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2534 | else |
| 2535 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2536 | /* confdefs.h. */ |
| 2537 | _ACEOF |
| 2538 | cat confdefs.h >>conftest.$ac_ext |
| 2539 | cat >>conftest.$ac_ext <<_ACEOF |
| 2540 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2541 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2542 | int |
| 2543 | main () |
| 2544 | { |
| 2545 | |
| 2546 | ; |
| 2547 | return 0; |
| 2548 | } |
| 2549 | _ACEOF |
| 2550 | rm -f conftest.$ac_objext |
| 2551 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2552 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2553 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2554 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2555 | rm -f conftest.er1 |
| 2556 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2558 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2559 | { ac_try='test -z "$ac_c_werror_flag" |
| 2560 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2562 | (eval $ac_try) 2>&5 |
| 2563 | ac_status=$? |
| 2564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2565 | (exit $ac_status); }; } && |
| 2566 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2568 | (eval $ac_try) 2>&5 |
| 2569 | ac_status=$? |
| 2570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2571 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2572 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2573 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2574 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2576 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2577 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2578 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2579 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2580 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2581 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2582 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2583 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2584 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2585 | elif test $ac_cv_prog_cc_g = yes; then |
| 2586 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2587 | CFLAGS="-g -O2" |
| 2588 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2589 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2590 | fi |
| 2591 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2592 | if test "$GCC" = yes; then |
| 2593 | CFLAGS="-O2" |
| 2594 | else |
| 2595 | CFLAGS= |
| 2596 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2597 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2598 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2599 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2600 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2602 | else |
| 2603 | ac_cv_prog_cc_stdc=no |
| 2604 | ac_save_CC=$CC |
| 2605 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2606 | /* confdefs.h. */ |
| 2607 | _ACEOF |
| 2608 | cat confdefs.h >>conftest.$ac_ext |
| 2609 | cat >>conftest.$ac_ext <<_ACEOF |
| 2610 | /* end confdefs.h. */ |
| 2611 | #include <stdarg.h> |
| 2612 | #include <stdio.h> |
| 2613 | #include <sys/types.h> |
| 2614 | #include <sys/stat.h> |
| 2615 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2616 | struct buf { int x; }; |
| 2617 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2618 | static char *e (p, i) |
| 2619 | char **p; |
| 2620 | int i; |
| 2621 | { |
| 2622 | return p[i]; |
| 2623 | } |
| 2624 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2625 | { |
| 2626 | char *s; |
| 2627 | va_list v; |
| 2628 | va_start (v,p); |
| 2629 | s = g (p, va_arg (v,int)); |
| 2630 | va_end (v); |
| 2631 | return s; |
| 2632 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2633 | |
| 2634 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2635 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2636 | These don't provoke an error unfortunately, instead are silently treated |
| 2637 | as 'x'. The following induces an error, until -std1 is added to get |
| 2638 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2639 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2640 | that's true only with -std1. */ |
| 2641 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2642 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2643 | int test (int i, double x); |
| 2644 | struct s1 {int (*f) (int a);}; |
| 2645 | struct s2 {int (*f) (double a);}; |
| 2646 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2647 | int argc; |
| 2648 | char **argv; |
| 2649 | int |
| 2650 | main () |
| 2651 | { |
| 2652 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2653 | ; |
| 2654 | return 0; |
| 2655 | } |
| 2656 | _ACEOF |
| 2657 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2658 | # breaks some systems' header files. |
| 2659 | # AIX -qlanglvl=ansi |
| 2660 | # Ultrix and OSF/1 -std1 |
| 2661 | # HP-UX 10.20 and later -Ae |
| 2662 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2663 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2664 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2665 | do |
| 2666 | CC="$ac_save_CC $ac_arg" |
| 2667 | rm -f conftest.$ac_objext |
| 2668 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2669 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2670 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2672 | rm -f conftest.er1 |
| 2673 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2675 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2676 | { ac_try='test -z "$ac_c_werror_flag" |
| 2677 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2679 | (eval $ac_try) 2>&5 |
| 2680 | ac_status=$? |
| 2681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2682 | (exit $ac_status); }; } && |
| 2683 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2685 | (eval $ac_try) 2>&5 |
| 2686 | ac_status=$? |
| 2687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2688 | (exit $ac_status); }; }; then |
| 2689 | ac_cv_prog_cc_stdc=$ac_arg |
| 2690 | break |
| 2691 | else |
| 2692 | echo "$as_me: failed program was:" >&5 |
| 2693 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2694 | |
| 2695 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2696 | rm -f conftest.err conftest.$ac_objext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2697 | done |
| 2698 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2699 | CC=$ac_save_CC |
| 2700 | |
| 2701 | fi |
| 2702 | |
| 2703 | case "x$ac_cv_prog_cc_stdc" in |
| 2704 | x|xno) |
| 2705 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2706 | echo "${ECHO_T}none needed" >&6 ;; |
| 2707 | *) |
| 2708 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2709 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2710 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2711 | esac |
| 2712 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2713 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2714 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2715 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2716 | # the declaration of exit, since it's the most demanding environment. |
| 2717 | cat >conftest.$ac_ext <<_ACEOF |
| 2718 | #ifndef __cplusplus |
| 2719 | choke me |
| 2720 | #endif |
| 2721 | _ACEOF |
| 2722 | rm -f conftest.$ac_objext |
| 2723 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2724 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2725 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2726 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2727 | rm -f conftest.er1 |
| 2728 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2730 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2731 | { ac_try='test -z "$ac_c_werror_flag" |
| 2732 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2734 | (eval $ac_try) 2>&5 |
| 2735 | ac_status=$? |
| 2736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2737 | (exit $ac_status); }; } && |
| 2738 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2740 | (eval $ac_try) 2>&5 |
| 2741 | ac_status=$? |
| 2742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2743 | (exit $ac_status); }; }; then |
| 2744 | for ac_declaration in \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2745 | '' \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2746 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2747 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2748 | 'extern "C" void exit (int) throw ();' \ |
| 2749 | 'extern "C" void exit (int);' \ |
| 2750 | 'void exit (int);' |
| 2751 | do |
| 2752 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2753 | /* confdefs.h. */ |
| 2754 | _ACEOF |
| 2755 | cat confdefs.h >>conftest.$ac_ext |
| 2756 | cat >>conftest.$ac_ext <<_ACEOF |
| 2757 | /* end confdefs.h. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 2758 | $ac_declaration |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2759 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2760 | int |
| 2761 | main () |
| 2762 | { |
| 2763 | exit (42); |
| 2764 | ; |
| 2765 | return 0; |
| 2766 | } |
| 2767 | _ACEOF |
| 2768 | rm -f conftest.$ac_objext |
| 2769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2770 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2771 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2772 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2773 | rm -f conftest.er1 |
| 2774 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2776 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2777 | { ac_try='test -z "$ac_c_werror_flag" |
| 2778 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2780 | (eval $ac_try) 2>&5 |
| 2781 | ac_status=$? |
| 2782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2783 | (exit $ac_status); }; } && |
| 2784 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2786 | (eval $ac_try) 2>&5 |
| 2787 | ac_status=$? |
| 2788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2789 | (exit $ac_status); }; }; then |
| 2790 | : |
| 2791 | else |
| 2792 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2794 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2795 | continue |
| 2796 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2797 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2798 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2799 | /* confdefs.h. */ |
| 2800 | _ACEOF |
| 2801 | cat confdefs.h >>conftest.$ac_ext |
| 2802 | cat >>conftest.$ac_ext <<_ACEOF |
| 2803 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2804 | $ac_declaration |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2805 | int |
| 2806 | main () |
| 2807 | { |
| 2808 | exit (42); |
| 2809 | ; |
| 2810 | return 0; |
| 2811 | } |
| 2812 | _ACEOF |
| 2813 | rm -f conftest.$ac_objext |
| 2814 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2815 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2816 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2818 | rm -f conftest.er1 |
| 2819 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2821 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2822 | { ac_try='test -z "$ac_c_werror_flag" |
| 2823 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2825 | (eval $ac_try) 2>&5 |
| 2826 | ac_status=$? |
| 2827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2828 | (exit $ac_status); }; } && |
| 2829 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2831 | (eval $ac_try) 2>&5 |
| 2832 | ac_status=$? |
| 2833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2834 | (exit $ac_status); }; }; then |
| 2835 | break |
| 2836 | else |
| 2837 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2838 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2839 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2840 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2841 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2842 | done |
| 2843 | rm -f conftest* |
| 2844 | if test -n "$ac_declaration"; then |
| 2845 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2846 | echo $ac_declaration >>confdefs.h |
| 2847 | echo '#endif' >>confdefs.h |
| 2848 | fi |
| 2849 | |
| 2850 | else |
| 2851 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2853 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2854 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2855 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2856 | ac_ext=c |
| 2857 | ac_cpp='$CPP $CPPFLAGS' |
| 2858 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2859 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2860 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2861 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2862 | |
| 2863 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2864 | |
| 2865 | ac_ext=c |
| 2866 | ac_cpp='$CPP $CPPFLAGS' |
| 2867 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2868 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2869 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2870 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2871 | 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] | 2872 | # On Suns, sometimes $CPP names a directory. |
| 2873 | if test -n "$CPP" && test -d "$CPP"; then |
| 2874 | CPP= |
| 2875 | fi |
| 2876 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2877 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2879 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2880 | # Double quotes because CPP needs to be expanded |
| 2881 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2882 | do |
| 2883 | ac_preproc_ok=false |
| 2884 | for ac_c_preproc_warn_flag in '' yes |
| 2885 | do |
| 2886 | # Use a header file that comes with gcc, so configuring glibc |
| 2887 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2888 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2889 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2890 | # 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] | 2891 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2892 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2893 | /* confdefs.h. */ |
| 2894 | _ACEOF |
| 2895 | cat confdefs.h >>conftest.$ac_ext |
| 2896 | cat >>conftest.$ac_ext <<_ACEOF |
| 2897 | /* end confdefs.h. */ |
| 2898 | #ifdef __STDC__ |
| 2899 | # include <limits.h> |
| 2900 | #else |
| 2901 | # include <assert.h> |
| 2902 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2903 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2904 | _ACEOF |
| 2905 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2906 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2907 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2908 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2909 | rm -f conftest.er1 |
| 2910 | cat conftest.err >&5 |
| 2911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2912 | (exit $ac_status); } >/dev/null; then |
| 2913 | if test -s conftest.err; then |
| 2914 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2915 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2916 | else |
| 2917 | ac_cpp_err= |
| 2918 | fi |
| 2919 | else |
| 2920 | ac_cpp_err=yes |
| 2921 | fi |
| 2922 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2923 | : |
| 2924 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2925 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2926 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2927 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2928 | # Broken: fails on valid input. |
| 2929 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2930 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2931 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2932 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2933 | # OK, works on sane cases. Now check whether non-existent headers |
| 2934 | # can be detected and how. |
| 2935 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2936 | /* confdefs.h. */ |
| 2937 | _ACEOF |
| 2938 | cat confdefs.h >>conftest.$ac_ext |
| 2939 | cat >>conftest.$ac_ext <<_ACEOF |
| 2940 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2941 | #include <ac_nonexistent.h> |
| 2942 | _ACEOF |
| 2943 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2944 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2945 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2946 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2947 | rm -f conftest.er1 |
| 2948 | cat conftest.err >&5 |
| 2949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2950 | (exit $ac_status); } >/dev/null; then |
| 2951 | if test -s conftest.err; then |
| 2952 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2953 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2954 | else |
| 2955 | ac_cpp_err= |
| 2956 | fi |
| 2957 | else |
| 2958 | ac_cpp_err=yes |
| 2959 | fi |
| 2960 | if test -z "$ac_cpp_err"; then |
| 2961 | # Broken: success on invalid input. |
| 2962 | continue |
| 2963 | else |
| 2964 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2966 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2967 | # Passes both tests. |
| 2968 | ac_preproc_ok=: |
| 2969 | break |
| 2970 | fi |
| 2971 | rm -f conftest.err conftest.$ac_ext |
| 2972 | |
| 2973 | done |
| 2974 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2975 | rm -f conftest.err conftest.$ac_ext |
| 2976 | if $ac_preproc_ok; then |
| 2977 | break |
| 2978 | fi |
| 2979 | |
| 2980 | done |
| 2981 | ac_cv_prog_CPP=$CPP |
| 2982 | |
| 2983 | fi |
| 2984 | CPP=$ac_cv_prog_CPP |
| 2985 | else |
| 2986 | ac_cv_prog_CPP=$CPP |
| 2987 | fi |
| 2988 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2989 | echo "${ECHO_T}$CPP" >&6 |
| 2990 | ac_preproc_ok=false |
| 2991 | for ac_c_preproc_warn_flag in '' yes |
| 2992 | do |
| 2993 | # Use a header file that comes with gcc, so configuring glibc |
| 2994 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2995 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2996 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2997 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2998 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2999 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3000 | /* confdefs.h. */ |
| 3001 | _ACEOF |
| 3002 | cat confdefs.h >>conftest.$ac_ext |
| 3003 | cat >>conftest.$ac_ext <<_ACEOF |
| 3004 | /* end confdefs.h. */ |
| 3005 | #ifdef __STDC__ |
| 3006 | # include <limits.h> |
| 3007 | #else |
| 3008 | # include <assert.h> |
| 3009 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3010 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3011 | _ACEOF |
| 3012 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3013 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3014 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3015 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3016 | rm -f conftest.er1 |
| 3017 | cat conftest.err >&5 |
| 3018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3019 | (exit $ac_status); } >/dev/null; then |
| 3020 | if test -s conftest.err; then |
| 3021 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3022 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3023 | else |
| 3024 | ac_cpp_err= |
| 3025 | fi |
| 3026 | else |
| 3027 | ac_cpp_err=yes |
| 3028 | fi |
| 3029 | if test -z "$ac_cpp_err"; then |
| 3030 | : |
| 3031 | else |
| 3032 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3033 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3034 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3035 | # Broken: fails on valid input. |
| 3036 | continue |
| 3037 | fi |
| 3038 | rm -f conftest.err conftest.$ac_ext |
| 3039 | |
| 3040 | # OK, works on sane cases. Now check whether non-existent headers |
| 3041 | # can be detected and how. |
| 3042 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3043 | /* confdefs.h. */ |
| 3044 | _ACEOF |
| 3045 | cat confdefs.h >>conftest.$ac_ext |
| 3046 | cat >>conftest.$ac_ext <<_ACEOF |
| 3047 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3048 | #include <ac_nonexistent.h> |
| 3049 | _ACEOF |
| 3050 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3051 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3052 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3053 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3054 | rm -f conftest.er1 |
| 3055 | cat conftest.err >&5 |
| 3056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3057 | (exit $ac_status); } >/dev/null; then |
| 3058 | if test -s conftest.err; then |
| 3059 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3060 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3061 | else |
| 3062 | ac_cpp_err= |
| 3063 | fi |
| 3064 | else |
| 3065 | ac_cpp_err=yes |
| 3066 | fi |
| 3067 | if test -z "$ac_cpp_err"; then |
| 3068 | # Broken: success on invalid input. |
| 3069 | continue |
| 3070 | else |
| 3071 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3072 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3073 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3074 | # Passes both tests. |
| 3075 | ac_preproc_ok=: |
| 3076 | break |
| 3077 | fi |
| 3078 | rm -f conftest.err conftest.$ac_ext |
| 3079 | |
| 3080 | done |
| 3081 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3082 | rm -f conftest.err conftest.$ac_ext |
| 3083 | if $ac_preproc_ok; then |
| 3084 | : |
| 3085 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3086 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3087 | See \`config.log' for more details." >&5 |
| 3088 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3089 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3090 | { (exit 1); exit 1; }; } |
| 3091 | fi |
| 3092 | |
| 3093 | ac_ext=c |
| 3094 | ac_cpp='$CPP $CPPFLAGS' |
| 3095 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3096 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3097 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3098 | |
| 3099 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3100 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3101 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 3102 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 3103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3104 | else |
| 3105 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 3106 | then ac_cv_prog_egrep='grep -E' |
| 3107 | else ac_cv_prog_egrep='egrep' |
| 3108 | fi |
| 3109 | fi |
| 3110 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 3111 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 3112 | EGREP=$ac_cv_prog_egrep |
| 3113 | |
| 3114 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3115 | |
| 3116 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3117 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 3118 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3119 | /* confdefs.h. */ |
| 3120 | _ACEOF |
| 3121 | cat confdefs.h >>conftest.$ac_ext |
| 3122 | cat >>conftest.$ac_ext <<_ACEOF |
| 3123 | /* end confdefs.h. */ |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3124 | #ifdef _AIX |
| 3125 | yes |
| 3126 | #endif |
| 3127 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3128 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3129 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3130 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3131 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3132 | echo "${ECHO_T}yes" >&6 |
| 3133 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3134 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3135 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3136 | |
| 3137 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3138 | echo "$as_me:$LINENO: result: no" >&5 |
| 3139 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3140 | fi |
| 3141 | rm -f conftest* |
| 3142 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3143 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3144 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3145 | # Check for unsupported systems |
| 3146 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 3147 | Linux*/1*) |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3148 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3149 | echo See README for details. |
| 3150 | exit 1;; |
| 3151 | esac |
| 3152 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3153 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3154 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3155 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3156 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3157 | # Check whether --with-suffix or --without-suffix was given. |
| 3158 | if test "${with_suffix+set}" = set; then |
| 3159 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3160 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3161 | case $withval in |
| 3162 | no) EXEEXT=;; |
| 3163 | yes) EXEEXT=.exe;; |
| 3164 | *) EXEEXT=$withval;; |
| 3165 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3166 | fi; |
| 3167 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3168 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3169 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3170 | # Test whether we're running on a non-case-sensitive system, in which |
| 3171 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3172 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3173 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3174 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3175 | if test ! -d CaseSensitiveTestDir; then |
| 3176 | mkdir CaseSensitiveTestDir |
| 3177 | fi |
| 3178 | |
| 3179 | if test -d casesensitivetestdir |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3180 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3181 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3182 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3183 | BUILDEXEEXT=.exe |
| 3184 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3185 | echo "$as_me:$LINENO: result: no" >&5 |
| 3186 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3187 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3188 | fi |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3189 | rmdir CaseSensitiveTestDir |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3190 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3191 | case $MACHDEP in |
| 3192 | bsdos*) |
| 3193 | case $CC in |
| 3194 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3195 | esac;; |
| 3196 | esac |
| 3197 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3198 | case $ac_sys_system in |
| 3199 | hp*|HP*) |
| 3200 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3201 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3202 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3203 | Monterey*) |
| 3204 | case $CC in |
| 3205 | cc) CC="$CC -Wl,-Bexport";; |
| 3206 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3207 | SunOS*) |
| 3208 | # 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] | 3209 | |
| 3210 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3211 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3212 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3213 | |
| 3214 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3215 | esac |
| 3216 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3217 | |
| 3218 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3219 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3220 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3221 | if test -z "$LIBRARY" |
| 3222 | then |
| 3223 | LIBRARY='libpython$(VERSION).a' |
| 3224 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3225 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3226 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3227 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3228 | # 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] | 3229 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3230 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3231 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3232 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3233 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3234 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3235 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3236 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3237 | # RUNSHARED is used to run shared python without installed libraries |
| 3238 | # |
| 3239 | # INSTSONAME is the name of the shared library that will be use to install |
| 3240 | # on the system - some systems like version suffix, others don't |
| 3241 | |
| 3242 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3243 | |
| 3244 | |
| 3245 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3246 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3247 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3248 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3249 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3250 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3251 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3252 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3253 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3254 | # 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] | 3255 | # If CXX is set, and if it is needed to link a main function that was |
| 3256 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3257 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3258 | # 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] | 3259 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3260 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3261 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3262 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3263 | if test -z "$LINKCC" |
| 3264 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3265 | if test -z "$CXX"; then |
| 3266 | LINKCC="\$(PURIFY) \$(CC)" |
| 3267 | else |
Martin v. Löwis | 147fbe5 | 2005-08-07 21:09:30 +0000 | [diff] [blame^] | 3268 | echo 'extern "C" void foo();int main(){foo();}' > conftest_a.cc |
| 3269 | $CXX -c conftest_a.cc # 2>&5 |
| 3270 | echo 'void foo(){}' > conftest_b.$ac_ext |
| 3271 | $CC -c conftest_b.$ac_ext # 2>&5 |
| 3272 | if $CC -o conftest$ac_exeext conftest_a.$ac_objext conftest_b.$ac_objext 2>&5 \ |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3273 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3274 | then |
| 3275 | LINKCC="\$(PURIFY) \$(CC)" |
| 3276 | else |
| 3277 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3278 | fi |
| 3279 | rm -fr conftest* |
| 3280 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3281 | case $ac_sys_system in |
| 3282 | AIX*) |
Neal Norwitz | 0b27ff9 | 2003-03-31 15:53:49 +0000 | [diff] [blame] | 3283 | exp_extra="\"\"" |
| 3284 | if test $ac_sys_release -ge 5 -o \ |
| 3285 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3286 | exp_extra="." |
| 3287 | fi |
| 3288 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3289 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3290 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3291 | esac |
| 3292 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3293 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3294 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3295 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3296 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3297 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3298 | # Check whether --enable-shared or --disable-shared was given. |
| 3299 | if test "${enable_shared+set}" = set; then |
| 3300 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3301 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3302 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3303 | |
| 3304 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3305 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3306 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3307 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3308 | enable_shared="yes";; |
| 3309 | *) |
| 3310 | enable_shared="no";; |
| 3311 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3312 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3313 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3314 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3315 | |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3316 | echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 3317 | echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6 |
| 3318 | # Check whether --enable-profiling or --disable-profiling was given. |
| 3319 | if test "${enable_profiling+set}" = set; then |
| 3320 | enableval="$enable_profiling" |
| 3321 | ac_save_cc="$CC" |
| 3322 | CC="$CC -pg" |
| 3323 | if test "$cross_compiling" = yes; then |
| 3324 | ac_enable_profiling="no" |
| 3325 | else |
| 3326 | cat >conftest.$ac_ext <<_ACEOF |
| 3327 | /* confdefs.h. */ |
| 3328 | _ACEOF |
| 3329 | cat confdefs.h >>conftest.$ac_ext |
| 3330 | cat >>conftest.$ac_ext <<_ACEOF |
| 3331 | /* end confdefs.h. */ |
| 3332 | int main() { return 0; } |
| 3333 | _ACEOF |
| 3334 | rm -f conftest$ac_exeext |
| 3335 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3336 | (eval $ac_link) 2>&5 |
| 3337 | ac_status=$? |
| 3338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3339 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3341 | (eval $ac_try) 2>&5 |
| 3342 | ac_status=$? |
| 3343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3344 | (exit $ac_status); }; }; then |
| 3345 | ac_enable_profiling="yes" |
| 3346 | else |
| 3347 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3348 | echo "$as_me: failed program was:" >&5 |
| 3349 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3350 | |
| 3351 | ( exit $ac_status ) |
| 3352 | ac_enable_profiling="no" |
| 3353 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3354 | 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] | 3355 | fi |
| 3356 | CC="$ac_save_cc" |
| 3357 | fi; |
| 3358 | echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 3359 | echo "${ECHO_T}$ac_enable_profiling" >&6 |
| 3360 | |
| 3361 | case "$ac_enable_profiling" in |
| 3362 | "yes") |
| 3363 | BASECFLAGS="-pg $BASECFLAGS" |
| 3364 | LDFLAGS="-pg $LDFLAGS" |
| 3365 | ;; |
| 3366 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3367 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3368 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3369 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3370 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3371 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3372 | # library that we build, but we do not want to link against it (we |
| 3373 | # will find it with a -framework option). For this reason there is an |
| 3374 | # extra variable BLDLIBRARY against which Python and the extension |
| 3375 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3376 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3377 | if test "$enable_framework" |
| 3378 | then |
| 3379 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 3380 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3381 | BLDLIBRARY='' |
| 3382 | else |
| 3383 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3384 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3385 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3386 | # Other platforms follow |
| 3387 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3388 | |
| 3389 | cat >>confdefs.h <<\_ACEOF |
| 3390 | #define Py_ENABLE_SHARED 1 |
| 3391 | _ACEOF |
| 3392 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3393 | case $ac_sys_system in |
| 3394 | BeOS*) |
| 3395 | LDLIBRARY='libpython$(VERSION).so' |
| 3396 | ;; |
| 3397 | CYGWIN*) |
| 3398 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3399 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3400 | ;; |
| 3401 | SunOS*) |
| 3402 | LDLIBRARY='libpython$(VERSION).so' |
Martin v. Löwis | d141a8c | 2003-06-14 15:20:28 +0000 | [diff] [blame] | 3403 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3404 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 2389c41 | 2003-10-31 15:42:07 +0000 | [diff] [blame] | 3405 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3406 | ;; |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 3407 | Linux*|GNU*|NetBSD*|FreeBSD*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3408 | LDLIBRARY='libpython$(VERSION).so' |
| 3409 | BLDLIBRARY='-L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3410 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 3411 | case $ac_sys_system in |
| 3412 | FreeBSD*) |
| 3413 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 3414 | ;; |
| 3415 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3416 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3417 | ;; |
| 3418 | hp*|HP*) |
| 3419 | LDLIBRARY='libpython$(VERSION).sl' |
| 3420 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3421 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3422 | ;; |
| 3423 | OSF*) |
| 3424 | LDLIBRARY='libpython$(VERSION).so' |
| 3425 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3426 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3427 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3428 | atheos*) |
| 3429 | LDLIBRARY='libpython$(VERSION).so' |
| 3430 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3431 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3432 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3433 | esac |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 3434 | else # shared is disabled |
| 3435 | case $ac_sys_system in |
| 3436 | CYGWIN*) |
| 3437 | BLDLIBRARY='$(LIBRARY)' |
| 3438 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3439 | ;; |
| 3440 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3441 | fi |
| 3442 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3443 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3444 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3445 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3446 | if test -n "$ac_tool_prefix"; then |
| 3447 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3448 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3449 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3450 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3451 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3453 | else |
| 3454 | if test -n "$RANLIB"; then |
| 3455 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3456 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3458 | for as_dir in $PATH |
| 3459 | do |
| 3460 | IFS=$as_save_IFS |
| 3461 | test -z "$as_dir" && as_dir=. |
| 3462 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3463 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3464 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3465 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3466 | break 2 |
| 3467 | fi |
| 3468 | done |
| 3469 | done |
| 3470 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3471 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3472 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3473 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3474 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3475 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3476 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3477 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3478 | echo "$as_me:$LINENO: result: no" >&5 |
| 3479 | echo "${ECHO_T}no" >&6 |
| 3480 | fi |
| 3481 | |
| 3482 | fi |
| 3483 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3484 | ac_ct_RANLIB=$RANLIB |
| 3485 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3486 | set dummy ranlib; ac_word=$2 |
| 3487 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3488 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3489 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3491 | else |
| 3492 | if test -n "$ac_ct_RANLIB"; then |
| 3493 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3494 | else |
| 3495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3496 | for as_dir in $PATH |
| 3497 | do |
| 3498 | IFS=$as_save_IFS |
| 3499 | test -z "$as_dir" && as_dir=. |
| 3500 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3501 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3502 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3503 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3504 | break 2 |
| 3505 | fi |
| 3506 | done |
| 3507 | done |
| 3508 | |
| 3509 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3510 | fi |
| 3511 | fi |
| 3512 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3513 | if test -n "$ac_ct_RANLIB"; then |
| 3514 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3515 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3516 | else |
| 3517 | echo "$as_me:$LINENO: result: no" >&5 |
| 3518 | echo "${ECHO_T}no" >&6 |
| 3519 | fi |
| 3520 | |
| 3521 | RANLIB=$ac_ct_RANLIB |
| 3522 | else |
| 3523 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3524 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3525 | |
| 3526 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3527 | for ac_prog in ar aal |
| 3528 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3529 | # 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] | 3530 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3531 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3532 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3533 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3535 | else |
| 3536 | if test -n "$AR"; then |
| 3537 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3538 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3539 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3540 | for as_dir in $PATH |
| 3541 | do |
| 3542 | IFS=$as_save_IFS |
| 3543 | test -z "$as_dir" && as_dir=. |
| 3544 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3545 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3546 | ac_cv_prog_AR="$ac_prog" |
| 3547 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3548 | break 2 |
| 3549 | fi |
| 3550 | done |
| 3551 | done |
| 3552 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3553 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3554 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3555 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3556 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3557 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3558 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3559 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3560 | echo "$as_me:$LINENO: result: no" >&5 |
| 3561 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3562 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3563 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3564 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3565 | done |
| 3566 | test -n "$AR" || AR="ar" |
| 3567 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3568 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3569 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3570 | bsdos*|hp*|HP*) |
| 3571 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3572 | if test -z "$INSTALL" |
| 3573 | then |
| 3574 | INSTALL="${srcdir}/install-sh -c" |
| 3575 | fi |
| 3576 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3577 | ac_aux_dir= |
| 3578 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3579 | if test -f $ac_dir/install-sh; then |
| 3580 | ac_aux_dir=$ac_dir |
| 3581 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3582 | break |
| 3583 | elif test -f $ac_dir/install.sh; then |
| 3584 | ac_aux_dir=$ac_dir |
| 3585 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3586 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3587 | elif test -f $ac_dir/shtool; then |
| 3588 | ac_aux_dir=$ac_dir |
| 3589 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3590 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3591 | fi |
| 3592 | done |
| 3593 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3594 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3595 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3596 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3597 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3598 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3599 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3600 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3601 | |
| 3602 | # Find a good install program. We prefer a C program (faster), |
| 3603 | # so one script is as good as another. But avoid the broken or |
| 3604 | # incompatible versions: |
| 3605 | # SysV /etc/install, /usr/sbin/install |
| 3606 | # SunOS /usr/etc/install |
| 3607 | # IRIX /sbin/install |
| 3608 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3609 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3610 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3611 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3612 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3613 | # OS/2's system install, which has a completely different semantic |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3614 | # ./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] | 3615 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3616 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3617 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3618 | if test "${ac_cv_path_install+set}" = set; then |
| 3619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3620 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3622 | for as_dir in $PATH |
| 3623 | do |
| 3624 | IFS=$as_save_IFS |
| 3625 | test -z "$as_dir" && as_dir=. |
| 3626 | # Account for people who put trailing slashes in PATH elements. |
| 3627 | case $as_dir/ in |
| 3628 | ./ | .// | /cC/* | \ |
| 3629 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3630 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3631 | /usr/ucb/* ) ;; |
| 3632 | *) |
| 3633 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3634 | # Don't use installbsd from OSF since it installs stuff as root |
| 3635 | # by default. |
| 3636 | for ac_prog in ginstall scoinst install; do |
| 3637 | for ac_exec_ext in '' $ac_executable_extensions; do |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3638 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3639 | if test $ac_prog = install && |
| 3640 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3641 | # AIX install. It has an incompatible calling convention. |
| 3642 | : |
| 3643 | elif test $ac_prog = install && |
| 3644 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3645 | # program-specific install script used by HP pwplus--don't use. |
| 3646 | : |
| 3647 | else |
| 3648 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3649 | break 3 |
| 3650 | fi |
| 3651 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3652 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3653 | done |
| 3654 | ;; |
| 3655 | esac |
| 3656 | done |
| 3657 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3658 | |
| 3659 | fi |
| 3660 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3661 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3662 | else |
| 3663 | # As a last resort, use the slow shell script. We don't cache a |
| 3664 | # path for INSTALL within a source directory, because that will |
| 3665 | # break other packages using the cache if that directory is |
| 3666 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3667 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3668 | fi |
| 3669 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3670 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3671 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3672 | |
| 3673 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3674 | # It thinks the first close brace ends the variable substitution. |
| 3675 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3676 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3677 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3678 | |
| 3679 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3680 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3681 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3682 | # Not every filesystem supports hard links |
| 3683 | |
| 3684 | if test -z "$LN" ; then |
| 3685 | case $ac_sys_system in |
| 3686 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3687 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3688 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3689 | *) LN=ln;; |
| 3690 | esac |
| 3691 | fi |
| 3692 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3693 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3694 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3695 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3696 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3697 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3698 | if test "${with_pydebug+set}" = set; then |
| 3699 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3700 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3701 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3702 | then |
| 3703 | |
| 3704 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3705 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3706 | _ACEOF |
| 3707 | |
| 3708 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3709 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3710 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3711 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3712 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3713 | fi |
| 3714 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3715 | echo "$as_me:$LINENO: result: no" >&5 |
| 3716 | echo "${ECHO_T}no" >&6 |
| 3717 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3718 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3719 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 3720 | # merged with this chunk of code? |
| 3721 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3722 | # Optimizer/debugger flags |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3723 | # ------------------------ |
| 3724 | # (The following bit of code is complicated enough - please keep things |
| 3725 | # indented properly. Just pretend you're editing Python code. ;-) |
| 3726 | |
| 3727 | # There are two parallel sets of case statements below, one that checks to |
| 3728 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 3729 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 3730 | # user set OPT. |
| 3731 | |
| 3732 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 3733 | # it on the command line |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3734 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3735 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3736 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3737 | case $GCC in |
| 3738 | yes) |
| 3739 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3740 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3741 | if test "$Py_DEBUG" = 'true' ; then |
| 3742 | # Optimization messes up debuggers, so turn it off for |
| 3743 | # debug builds. |
| 3744 | OPT="-g -Wall -Wstrict-prototypes" |
| 3745 | else |
| 3746 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3747 | fi |
| 3748 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3749 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3750 | OPT="-O3 -Wall -Wstrict-prototypes" |
| 3751 | ;; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3752 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3753 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3754 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 3755 | ;; |
| 3756 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3757 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3758 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3759 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3760 | OPT="-O" |
| 3761 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3762 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3763 | |
| 3764 | # The current (beta) Monterey compiler dies with optimizations |
| 3765 | # 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] | 3766 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3767 | Monterey*) |
| 3768 | OPT="" |
| 3769 | ;; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3770 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3771 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3772 | fi |
| 3773 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3774 | |
| 3775 | # tweak BASECFLAGS based on compiler and platform |
| 3776 | case $GCC in |
| 3777 | yes) |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3778 | # Python violates C99 rules, by casting between incompatible |
| 3779 | # pointer types. GCC may generate bad code as a result of that, |
| 3780 | # so use -fno-strict-aliasing if supported. |
| 3781 | echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 3782 | echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6 |
| 3783 | ac_save_cc="$CC" |
| 3784 | CC="$CC -fno-strict-aliasing" |
| 3785 | if test "$cross_compiling" = yes; then |
| 3786 | ac_cv_no_strict_aliasing_ok=no |
| 3787 | else |
| 3788 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3789 | /* confdefs.h. */ |
| 3790 | _ACEOF |
| 3791 | cat confdefs.h >>conftest.$ac_ext |
| 3792 | cat >>conftest.$ac_ext <<_ACEOF |
| 3793 | /* end confdefs.h. */ |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3794 | int main() { return 0; } |
| 3795 | _ACEOF |
| 3796 | rm -f conftest$ac_exeext |
| 3797 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3798 | (eval $ac_link) 2>&5 |
| 3799 | ac_status=$? |
| 3800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3801 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3803 | (eval $ac_try) 2>&5 |
| 3804 | ac_status=$? |
| 3805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3806 | (exit $ac_status); }; }; then |
| 3807 | ac_cv_no_strict_aliasing_ok=yes |
| 3808 | else |
| 3809 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3810 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3812 | |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3813 | ( exit $ac_status ) |
| 3814 | ac_cv_no_strict_aliasing_ok=no |
| 3815 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3816 | 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] | 3817 | fi |
| 3818 | CC="$ac_save_cc" |
| 3819 | echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 3820 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6 |
| 3821 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 3822 | then |
| 3823 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 3824 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3825 | case $ac_sys_system in |
| 3826 | SCO_SV*) |
| 3827 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 3828 | ;; |
| 3829 | # is there any other compiler on Darwin besides gcc? |
| 3830 | Darwin*) |
Jack Jansen | e004041 | 2003-07-23 22:17:28 +0000 | [diff] [blame] | 3831 | BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3832 | ;; |
| 3833 | esac |
| 3834 | ;; |
| 3835 | |
| 3836 | *) |
| 3837 | case $ac_sys_system in |
| 3838 | OpenUNIX*|UnixWare*) |
| 3839 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 3840 | ;; |
Neal Norwitz | b44f165 | 2003-05-26 14:11:55 +0000 | [diff] [blame] | 3841 | OSF*) |
| 3842 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 3843 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3844 | SCO_SV*) |
| 3845 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 3846 | ;; |
| 3847 | esac |
| 3848 | ;; |
| 3849 | esac |
| 3850 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3851 | if test "$Py_DEBUG" = 'true'; then |
| 3852 | : |
| 3853 | else |
| 3854 | OPT="-DNDEBUG $OPT" |
| 3855 | fi |
| 3856 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3857 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3858 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3859 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3860 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3861 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3862 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3863 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3864 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3866 | else |
| 3867 | ac_save_cc="$CC" |
| 3868 | CC="$CC -OPT:Olimit=0" |
| 3869 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3870 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3871 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3872 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3873 | /* confdefs.h. */ |
| 3874 | _ACEOF |
| 3875 | cat confdefs.h >>conftest.$ac_ext |
| 3876 | cat >>conftest.$ac_ext <<_ACEOF |
| 3877 | /* end confdefs.h. */ |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3878 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3879 | _ACEOF |
| 3880 | rm -f conftest$ac_exeext |
| 3881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3882 | (eval $ac_link) 2>&5 |
| 3883 | ac_status=$? |
| 3884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3885 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3887 | (eval $ac_try) 2>&5 |
| 3888 | ac_status=$? |
| 3889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3890 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3891 | ac_cv_opt_olimit_ok=yes |
| 3892 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3893 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3894 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3895 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3896 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3897 | ( exit $ac_status ) |
| 3898 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3899 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3900 | 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] | 3901 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3902 | CC="$ac_save_cc" |
| 3903 | fi |
| 3904 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3905 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3906 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3907 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3908 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3909 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 3910 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 3911 | # environment? |
| 3912 | Darwin*) |
| 3913 | ;; |
| 3914 | *) |
| 3915 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 3916 | ;; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3917 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3918 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3919 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3920 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3921 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3923 | else |
| 3924 | ac_save_cc="$CC" |
| 3925 | CC="$CC -Olimit 1500" |
| 3926 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3927 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3928 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3929 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3930 | /* confdefs.h. */ |
| 3931 | _ACEOF |
| 3932 | cat confdefs.h >>conftest.$ac_ext |
| 3933 | cat >>conftest.$ac_ext <<_ACEOF |
| 3934 | /* end confdefs.h. */ |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3935 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3936 | _ACEOF |
| 3937 | rm -f conftest$ac_exeext |
| 3938 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3939 | (eval $ac_link) 2>&5 |
| 3940 | ac_status=$? |
| 3941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3942 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3944 | (eval $ac_try) 2>&5 |
| 3945 | ac_status=$? |
| 3946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3947 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3948 | ac_cv_olimit_ok=yes |
| 3949 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3950 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3951 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3953 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3954 | ( exit $ac_status ) |
| 3955 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 3956 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3957 | 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] | 3958 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3959 | CC="$ac_save_cc" |
| 3960 | fi |
| 3961 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3962 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 3963 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3964 | if test $ac_cv_olimit_ok = yes; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3965 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3966 | fi |
| 3967 | fi |
| 3968 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3969 | # On some compilers, pthreads are available without further options |
| 3970 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 3971 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 3972 | # So we have to see first whether pthreads are available without |
| 3973 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3974 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 3975 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 3976 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 3977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3978 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3979 | if test "$cross_compiling" = yes; then |
| 3980 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3981 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3982 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3983 | /* confdefs.h. */ |
| 3984 | _ACEOF |
| 3985 | cat confdefs.h >>conftest.$ac_ext |
| 3986 | cat >>conftest.$ac_ext <<_ACEOF |
| 3987 | /* end confdefs.h. */ |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3988 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3989 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3990 | |
| 3991 | void* routine(void* p){return NULL;} |
| 3992 | |
| 3993 | int main(){ |
| 3994 | pthread_t p; |
| 3995 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3996 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3997 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3998 | return 0; |
| 3999 | } |
| 4000 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4001 | _ACEOF |
| 4002 | rm -f conftest$ac_exeext |
| 4003 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4004 | (eval $ac_link) 2>&5 |
| 4005 | ac_status=$? |
| 4006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4007 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4009 | (eval $ac_try) 2>&5 |
| 4010 | ac_status=$? |
| 4011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4012 | (exit $ac_status); }; }; then |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4013 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4014 | ac_cv_pthread_is_default=yes |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4015 | ac_cv_kthread=no |
| 4016 | ac_cv_pthread=no |
| 4017 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4018 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4019 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4020 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4021 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4022 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4023 | ( exit $ac_status ) |
| 4024 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4025 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4026 | 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] | 4027 | fi |
| 4028 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4029 | fi |
| 4030 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4031 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 4032 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4033 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4034 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4035 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4036 | then |
| 4037 | ac_cv_kpthread=no |
| 4038 | else |
| 4039 | # -Kpthread, if available, provides the right #defines |
| 4040 | # and linker options to make pthread_create available |
| 4041 | # Some compilers won't report that they do not support -Kpthread, |
| 4042 | # so we need to run a program to see whether it really made the |
| 4043 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4044 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 4045 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 4046 | if test "${ac_cv_kpthread+set}" = set; then |
| 4047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4048 | else |
| 4049 | ac_save_cc="$CC" |
| 4050 | CC="$CC -Kpthread" |
| 4051 | if test "$cross_compiling" = yes; then |
| 4052 | ac_cv_kpthread=no |
| 4053 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4054 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4055 | /* confdefs.h. */ |
| 4056 | _ACEOF |
| 4057 | cat confdefs.h >>conftest.$ac_ext |
| 4058 | cat >>conftest.$ac_ext <<_ACEOF |
| 4059 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4060 | |
| 4061 | #include <pthread.h> |
| 4062 | |
| 4063 | void* routine(void* p){return NULL;} |
| 4064 | |
| 4065 | int main(){ |
| 4066 | pthread_t p; |
| 4067 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4068 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4069 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4070 | return 0; |
| 4071 | } |
| 4072 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4073 | _ACEOF |
| 4074 | rm -f conftest$ac_exeext |
| 4075 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4076 | (eval $ac_link) 2>&5 |
| 4077 | ac_status=$? |
| 4078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4079 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4081 | (eval $ac_try) 2>&5 |
| 4082 | ac_status=$? |
| 4083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4084 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4085 | ac_cv_kpthread=yes |
| 4086 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4087 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4088 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4089 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4090 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4091 | ( exit $ac_status ) |
| 4092 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4093 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4094 | 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] | 4095 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4096 | CC="$ac_save_cc" |
| 4097 | fi |
| 4098 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4099 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 4100 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4101 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4102 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4103 | 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] | 4104 | then |
| 4105 | # -Kthread, if available, provides the right #defines |
| 4106 | # and linker options to make pthread_create available |
| 4107 | # Some compilers won't report that they do not support -Kthread, |
| 4108 | # so we need to run a program to see whether it really made the |
| 4109 | # function available. |
| 4110 | echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 4111 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6 |
| 4112 | if test "${ac_cv_kthread+set}" = set; then |
| 4113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4114 | else |
| 4115 | ac_save_cc="$CC" |
| 4116 | CC="$CC -Kthread" |
| 4117 | if test "$cross_compiling" = yes; then |
| 4118 | ac_cv_kthread=no |
| 4119 | else |
| 4120 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4121 | /* confdefs.h. */ |
| 4122 | _ACEOF |
| 4123 | cat confdefs.h >>conftest.$ac_ext |
| 4124 | cat >>conftest.$ac_ext <<_ACEOF |
| 4125 | /* end confdefs.h. */ |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4126 | |
| 4127 | #include <pthread.h> |
| 4128 | |
| 4129 | void* routine(void* p){return NULL;} |
| 4130 | |
| 4131 | int main(){ |
| 4132 | pthread_t p; |
| 4133 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4134 | return 1; |
| 4135 | (void)pthread_detach(p); |
| 4136 | return 0; |
| 4137 | } |
| 4138 | |
| 4139 | _ACEOF |
| 4140 | rm -f conftest$ac_exeext |
| 4141 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4142 | (eval $ac_link) 2>&5 |
| 4143 | ac_status=$? |
| 4144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4145 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4147 | (eval $ac_try) 2>&5 |
| 4148 | ac_status=$? |
| 4149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4150 | (exit $ac_status); }; }; then |
| 4151 | ac_cv_kthread=yes |
| 4152 | else |
| 4153 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4154 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4155 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4156 | |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4157 | ( exit $ac_status ) |
| 4158 | ac_cv_kthread=no |
| 4159 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4160 | 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] | 4161 | fi |
| 4162 | CC="$ac_save_cc" |
| 4163 | fi |
| 4164 | |
| 4165 | echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 4166 | echo "${ECHO_T}$ac_cv_kthread" >&6 |
| 4167 | fi |
| 4168 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4169 | 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] | 4170 | then |
| 4171 | # -pthread, if available, provides the right #defines |
| 4172 | # and linker options to make pthread_create available |
| 4173 | # Some compilers won't report that they do not support -pthread, |
| 4174 | # so we need to run a program to see whether it really made the |
| 4175 | # function available. |
| 4176 | echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 4177 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6 |
| 4178 | if test "${ac_cv_thread+set}" = set; then |
| 4179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4180 | else |
| 4181 | ac_save_cc="$CC" |
| 4182 | CC="$CC -pthread" |
| 4183 | if test "$cross_compiling" = yes; then |
| 4184 | ac_cv_pthread=no |
| 4185 | else |
| 4186 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4187 | /* confdefs.h. */ |
| 4188 | _ACEOF |
| 4189 | cat confdefs.h >>conftest.$ac_ext |
| 4190 | cat >>conftest.$ac_ext <<_ACEOF |
| 4191 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4192 | |
| 4193 | #include <pthread.h> |
| 4194 | |
| 4195 | void* routine(void* p){return NULL;} |
| 4196 | |
| 4197 | int main(){ |
| 4198 | pthread_t p; |
| 4199 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4200 | return 1; |
| 4201 | (void)pthread_detach(p); |
| 4202 | return 0; |
| 4203 | } |
| 4204 | |
| 4205 | _ACEOF |
| 4206 | rm -f conftest$ac_exeext |
| 4207 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4208 | (eval $ac_link) 2>&5 |
| 4209 | ac_status=$? |
| 4210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4211 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4213 | (eval $ac_try) 2>&5 |
| 4214 | ac_status=$? |
| 4215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4216 | (exit $ac_status); }; }; then |
| 4217 | ac_cv_pthread=yes |
| 4218 | else |
| 4219 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4220 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4222 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4223 | ( exit $ac_status ) |
| 4224 | ac_cv_pthread=no |
| 4225 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4226 | 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] | 4227 | fi |
| 4228 | CC="$ac_save_cc" |
| 4229 | fi |
| 4230 | |
| 4231 | echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 4232 | echo "${ECHO_T}$ac_cv_pthread" >&6 |
| 4233 | fi |
| 4234 | |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4235 | # If we have set a CC compiler flag for thread support then |
| 4236 | # check if it works for CXX, too. |
| 4237 | ac_cv_cxx_thread=no |
| 4238 | if test ! -z "$CXX" |
| 4239 | then |
| 4240 | echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 4241 | echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6 |
| 4242 | ac_save_cxx="$CXX" |
| 4243 | |
| 4244 | if test "$ac_cv_kpthread" = "yes" |
| 4245 | then |
| 4246 | CXX="$CXX -Kpthread" |
| 4247 | ac_cv_cxx_thread=yes |
| 4248 | elif test "$ac_cv_kthread" = "yes" |
| 4249 | then |
| 4250 | CXX="$CXX -Kthread" |
| 4251 | ac_cv_cxx_thread=yes |
| 4252 | elif test "$ac_cv_pthread" = "yes" |
| 4253 | then |
| 4254 | CXX="$CXX -pthread" |
| 4255 | ac_cv_cxx_thread=yes |
| 4256 | fi |
| 4257 | |
| 4258 | if test $ac_cv_cxx_thread = yes |
| 4259 | then |
| 4260 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 4261 | $CXX -c conftest.$ac_ext 2>&5 |
| 4262 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 4263 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 4264 | then |
| 4265 | ac_cv_cxx_thread=yes |
| 4266 | else |
| 4267 | ac_cv_cxx_thread=no |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4268 | fi |
| 4269 | rm -fr conftest* |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4270 | fi |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4271 | echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 4272 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6 |
Brett Cannon | c601e0f | 2004-11-07 01:24:12 +0000 | [diff] [blame] | 4273 | fi |
| 4274 | CXX="$ac_save_cxx" |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4275 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4276 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4277 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4278 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4279 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4280 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4282 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4283 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4284 | /* confdefs.h. */ |
| 4285 | _ACEOF |
| 4286 | cat confdefs.h >>conftest.$ac_ext |
| 4287 | cat >>conftest.$ac_ext <<_ACEOF |
| 4288 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4289 | #include <stdlib.h> |
| 4290 | #include <stdarg.h> |
| 4291 | #include <string.h> |
| 4292 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4293 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4294 | int |
| 4295 | main () |
| 4296 | { |
| 4297 | |
| 4298 | ; |
| 4299 | return 0; |
| 4300 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4301 | _ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4302 | rm -f conftest.$ac_objext |
| 4303 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4304 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4305 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4306 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4307 | rm -f conftest.er1 |
| 4308 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4310 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4311 | { ac_try='test -z "$ac_c_werror_flag" |
| 4312 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4314 | (eval $ac_try) 2>&5 |
| 4315 | ac_status=$? |
| 4316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4317 | (exit $ac_status); }; } && |
| 4318 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4320 | (eval $ac_try) 2>&5 |
| 4321 | ac_status=$? |
| 4322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4323 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4324 | ac_cv_header_stdc=yes |
| 4325 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4326 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4327 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4328 | |
| 4329 | ac_cv_header_stdc=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4330 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4331 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4332 | |
| 4333 | if test $ac_cv_header_stdc = yes; then |
| 4334 | # 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] | 4335 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4336 | /* confdefs.h. */ |
| 4337 | _ACEOF |
| 4338 | cat confdefs.h >>conftest.$ac_ext |
| 4339 | cat >>conftest.$ac_ext <<_ACEOF |
| 4340 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4341 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4342 | |
| 4343 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4344 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4345 | $EGREP "memchr" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4346 | : |
| 4347 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4348 | ac_cv_header_stdc=no |
| 4349 | fi |
| 4350 | rm -f conftest* |
| 4351 | |
| 4352 | fi |
| 4353 | |
| 4354 | if test $ac_cv_header_stdc = yes; then |
| 4355 | # 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] | 4356 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4357 | /* confdefs.h. */ |
| 4358 | _ACEOF |
| 4359 | cat confdefs.h >>conftest.$ac_ext |
| 4360 | cat >>conftest.$ac_ext <<_ACEOF |
| 4361 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4362 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4363 | |
| 4364 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4365 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4366 | $EGREP "free" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4367 | : |
| 4368 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4369 | ac_cv_header_stdc=no |
| 4370 | fi |
| 4371 | rm -f conftest* |
| 4372 | |
| 4373 | fi |
| 4374 | |
| 4375 | if test $ac_cv_header_stdc = yes; then |
| 4376 | # /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] | 4377 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4378 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4379 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4380 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4381 | /* confdefs.h. */ |
| 4382 | _ACEOF |
| 4383 | cat confdefs.h >>conftest.$ac_ext |
| 4384 | cat >>conftest.$ac_ext <<_ACEOF |
| 4385 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4386 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4387 | #if ((' ' & 0x0FF) == 0x020) |
| 4388 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4389 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4390 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4391 | # define ISLOWER(c) \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4392 | (('a' <= (c) && (c) <= 'i') \ |
| 4393 | || ('j' <= (c) && (c) <= 'r') \ |
| 4394 | || ('s' <= (c) && (c) <= 'z')) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4395 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4396 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4397 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4398 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4399 | int |
| 4400 | main () |
| 4401 | { |
| 4402 | int i; |
| 4403 | for (i = 0; i < 256; i++) |
| 4404 | if (XOR (islower (i), ISLOWER (i)) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4405 | || toupper (i) != TOUPPER (i)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4406 | exit(2); |
| 4407 | exit (0); |
| 4408 | } |
| 4409 | _ACEOF |
| 4410 | rm -f conftest$ac_exeext |
| 4411 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4412 | (eval $ac_link) 2>&5 |
| 4413 | ac_status=$? |
| 4414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4415 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4417 | (eval $ac_try) 2>&5 |
| 4418 | ac_status=$? |
| 4419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4420 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4421 | : |
| 4422 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4423 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4424 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4425 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4426 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4427 | ( exit $ac_status ) |
| 4428 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4429 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4430 | 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] | 4431 | fi |
| 4432 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4433 | fi |
| 4434 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4435 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4436 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4437 | |
| 4438 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4439 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4440 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4441 | |
| 4442 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4443 | |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4444 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4445 | |
| 4446 | |
| 4447 | |
| 4448 | |
| 4449 | |
| 4450 | |
| 4451 | |
| 4452 | |
| 4453 | |
| 4454 | 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] | 4455 | inttypes.h stdint.h unistd.h |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4456 | do |
| 4457 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4458 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4459 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4460 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4462 | else |
| 4463 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4464 | /* confdefs.h. */ |
| 4465 | _ACEOF |
| 4466 | cat confdefs.h >>conftest.$ac_ext |
| 4467 | cat >>conftest.$ac_ext <<_ACEOF |
| 4468 | /* end confdefs.h. */ |
| 4469 | $ac_includes_default |
| 4470 | |
| 4471 | #include <$ac_header> |
| 4472 | _ACEOF |
| 4473 | rm -f conftest.$ac_objext |
| 4474 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4475 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4476 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4477 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4478 | rm -f conftest.er1 |
| 4479 | cat conftest.err >&5 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4481 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4482 | { ac_try='test -z "$ac_c_werror_flag" |
| 4483 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4485 | (eval $ac_try) 2>&5 |
| 4486 | ac_status=$? |
| 4487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4488 | (exit $ac_status); }; } && |
| 4489 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4491 | (eval $ac_try) 2>&5 |
| 4492 | ac_status=$? |
| 4493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4494 | (exit $ac_status); }; }; then |
| 4495 | eval "$as_ac_Header=yes" |
| 4496 | else |
| 4497 | echo "$as_me: failed program was:" >&5 |
| 4498 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4499 | |
| 4500 | eval "$as_ac_Header=no" |
| 4501 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4502 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4503 | fi |
| 4504 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4505 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4506 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4507 | cat >>confdefs.h <<_ACEOF |
| 4508 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4509 | _ACEOF |
| 4510 | |
| 4511 | fi |
| 4512 | |
| 4513 | done |
| 4514 | |
| 4515 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4516 | |
| 4517 | |
| 4518 | |
| 4519 | |
| 4520 | |
| 4521 | |
| 4522 | |
| 4523 | |
| 4524 | |
| 4525 | |
| 4526 | |
| 4527 | |
| 4528 | |
| 4529 | |
| 4530 | |
| 4531 | |
| 4532 | |
| 4533 | |
| 4534 | |
| 4535 | |
| 4536 | |
| 4537 | |
| 4538 | |
| 4539 | |
| 4540 | |
| 4541 | |
| 4542 | |
| 4543 | |
| 4544 | |
| 4545 | |
| 4546 | |
| 4547 | |
| 4548 | |
| 4549 | |
| 4550 | |
| 4551 | |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 4552 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 4553 | |
| 4554 | for ac_header in curses.h dlfcn.h fcntl.h grp.h shadow.h langinfo.h \ |
Skip Montanaro | 7befb99 | 2004-02-10 16:50:21 +0000 | [diff] [blame] | 4555 | libintl.h ncurses.h poll.h pthread.h \ |
| 4556 | stropts.h termios.h thread.h \ |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4557 | unistd.h utime.h \ |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 4558 | sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \ |
| 4559 | sys/modem.h \ |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4560 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 4561 | sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ |
Hye-Shik Chang | 8126860 | 2004-02-02 06:05:24 +0000 | [diff] [blame] | 4562 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
| 4563 | bluetooth/bluetooth.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4564 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4565 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4566 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4567 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4568 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4569 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4571 | fi |
| 4572 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4573 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4574 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4575 | # Is the header compilable? |
| 4576 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4577 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4578 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4579 | /* confdefs.h. */ |
| 4580 | _ACEOF |
| 4581 | cat confdefs.h >>conftest.$ac_ext |
| 4582 | cat >>conftest.$ac_ext <<_ACEOF |
| 4583 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4584 | $ac_includes_default |
| 4585 | #include <$ac_header> |
| 4586 | _ACEOF |
| 4587 | rm -f conftest.$ac_objext |
| 4588 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4589 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4590 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4591 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4592 | rm -f conftest.er1 |
| 4593 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4595 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4596 | { ac_try='test -z "$ac_c_werror_flag" |
| 4597 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4599 | (eval $ac_try) 2>&5 |
| 4600 | ac_status=$? |
| 4601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4602 | (exit $ac_status); }; } && |
| 4603 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4605 | (eval $ac_try) 2>&5 |
| 4606 | ac_status=$? |
| 4607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4608 | (exit $ac_status); }; }; then |
| 4609 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4610 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4611 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4612 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4613 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4614 | ac_header_compiler=no |
| 4615 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4616 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4617 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4618 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4619 | |
| 4620 | # Is the header present? |
| 4621 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4622 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4623 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4624 | /* confdefs.h. */ |
| 4625 | _ACEOF |
| 4626 | cat confdefs.h >>conftest.$ac_ext |
| 4627 | cat >>conftest.$ac_ext <<_ACEOF |
| 4628 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4629 | #include <$ac_header> |
| 4630 | _ACEOF |
| 4631 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4632 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4633 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4634 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4635 | rm -f conftest.er1 |
| 4636 | cat conftest.err >&5 |
| 4637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4638 | (exit $ac_status); } >/dev/null; then |
| 4639 | if test -s conftest.err; then |
| 4640 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4641 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4642 | else |
| 4643 | ac_cpp_err= |
| 4644 | fi |
| 4645 | else |
| 4646 | ac_cpp_err=yes |
| 4647 | fi |
| 4648 | if test -z "$ac_cpp_err"; then |
| 4649 | ac_header_preproc=yes |
| 4650 | else |
| 4651 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4653 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4654 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4655 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4656 | rm -f conftest.err conftest.$ac_ext |
| 4657 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4658 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4659 | |
| 4660 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4661 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4662 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4663 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4664 | 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] | 4665 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 4666 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 4667 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 4668 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4669 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 4670 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4671 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4672 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4673 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4674 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 4675 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 4676 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 4677 | 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] | 4678 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4679 | 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] | 4680 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 4681 | 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] | 4682 | ( |
| 4683 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 4684 | ## ------------------------------------------------ ## |
| 4685 | ## Report this to http://www.python.org/python-bugs ## |
| 4686 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4687 | _ASBOX |
| 4688 | ) | |
| 4689 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4690 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4691 | esac |
| 4692 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4693 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4694 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4696 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4697 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4698 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4699 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4700 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4701 | |
| 4702 | fi |
| 4703 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4704 | cat >>confdefs.h <<_ACEOF |
| 4705 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4706 | _ACEOF |
| 4707 | |
| 4708 | fi |
| 4709 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4710 | done |
| 4711 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4712 | |
| 4713 | |
| 4714 | |
| 4715 | |
| 4716 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4717 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4718 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 4719 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 4720 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 4721 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 4722 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4724 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4725 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4726 | /* confdefs.h. */ |
| 4727 | _ACEOF |
| 4728 | cat confdefs.h >>conftest.$ac_ext |
| 4729 | cat >>conftest.$ac_ext <<_ACEOF |
| 4730 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4731 | #include <sys/types.h> |
| 4732 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4733 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4734 | int |
| 4735 | main () |
| 4736 | { |
| 4737 | if ((DIR *) 0) |
| 4738 | return 0; |
| 4739 | ; |
| 4740 | return 0; |
| 4741 | } |
| 4742 | _ACEOF |
| 4743 | rm -f conftest.$ac_objext |
| 4744 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4745 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4746 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4747 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4748 | rm -f conftest.er1 |
| 4749 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4751 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4752 | { ac_try='test -z "$ac_c_werror_flag" |
| 4753 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4755 | (eval $ac_try) 2>&5 |
| 4756 | ac_status=$? |
| 4757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4758 | (exit $ac_status); }; } && |
| 4759 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4761 | (eval $ac_try) 2>&5 |
| 4762 | ac_status=$? |
| 4763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4764 | (exit $ac_status); }; }; then |
| 4765 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4766 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4767 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4769 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4770 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4771 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4772 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4773 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4774 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4775 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4776 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4777 | cat >>confdefs.h <<_ACEOF |
| 4778 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4779 | _ACEOF |
| 4780 | |
| 4781 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4782 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4783 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4784 | done |
| 4785 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4786 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4787 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4788 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4789 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4791 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4792 | ac_func_search_save_LIBS=$LIBS |
| 4793 | ac_cv_search_opendir=no |
| 4794 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4795 | /* confdefs.h. */ |
| 4796 | _ACEOF |
| 4797 | cat confdefs.h >>conftest.$ac_ext |
| 4798 | cat >>conftest.$ac_ext <<_ACEOF |
| 4799 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4800 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4801 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4802 | #ifdef __cplusplus |
| 4803 | extern "C" |
| 4804 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4805 | /* 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] | 4806 | builtin and then its argument prototype would still apply. */ |
| 4807 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4808 | int |
| 4809 | main () |
| 4810 | { |
| 4811 | opendir (); |
| 4812 | ; |
| 4813 | return 0; |
| 4814 | } |
| 4815 | _ACEOF |
| 4816 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4818 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4819 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4820 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4821 | rm -f conftest.er1 |
| 4822 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4824 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4825 | { ac_try='test -z "$ac_c_werror_flag" |
| 4826 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4828 | (eval $ac_try) 2>&5 |
| 4829 | ac_status=$? |
| 4830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4831 | (exit $ac_status); }; } && |
| 4832 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4834 | (eval $ac_try) 2>&5 |
| 4835 | ac_status=$? |
| 4836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4837 | (exit $ac_status); }; }; then |
| 4838 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4839 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4840 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4841 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4842 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4843 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4844 | rm -f conftest.err conftest.$ac_objext \ |
| 4845 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4846 | if test "$ac_cv_search_opendir" = no; then |
| 4847 | for ac_lib in dir; do |
| 4848 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4849 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4850 | /* confdefs.h. */ |
| 4851 | _ACEOF |
| 4852 | cat confdefs.h >>conftest.$ac_ext |
| 4853 | cat >>conftest.$ac_ext <<_ACEOF |
| 4854 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4855 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4856 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4857 | #ifdef __cplusplus |
| 4858 | extern "C" |
| 4859 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4860 | /* 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] | 4861 | builtin and then its argument prototype would still apply. */ |
| 4862 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4863 | int |
| 4864 | main () |
| 4865 | { |
| 4866 | opendir (); |
| 4867 | ; |
| 4868 | return 0; |
| 4869 | } |
| 4870 | _ACEOF |
| 4871 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4872 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4873 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4874 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4875 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4876 | rm -f conftest.er1 |
| 4877 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4879 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4880 | { ac_try='test -z "$ac_c_werror_flag" |
| 4881 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4883 | (eval $ac_try) 2>&5 |
| 4884 | ac_status=$? |
| 4885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4886 | (exit $ac_status); }; } && |
| 4887 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4889 | (eval $ac_try) 2>&5 |
| 4890 | ac_status=$? |
| 4891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4892 | (exit $ac_status); }; }; then |
| 4893 | ac_cv_search_opendir="-l$ac_lib" |
| 4894 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4895 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4896 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4897 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4898 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4899 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4900 | rm -f conftest.err conftest.$ac_objext \ |
| 4901 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4902 | done |
| 4903 | fi |
| 4904 | LIBS=$ac_func_search_save_LIBS |
| 4905 | fi |
| 4906 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4907 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4908 | if test "$ac_cv_search_opendir" != no; then |
| 4909 | 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] | 4910 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4911 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4912 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4913 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4914 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4915 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4916 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4918 | else |
| 4919 | ac_func_search_save_LIBS=$LIBS |
| 4920 | ac_cv_search_opendir=no |
| 4921 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4922 | /* confdefs.h. */ |
| 4923 | _ACEOF |
| 4924 | cat confdefs.h >>conftest.$ac_ext |
| 4925 | cat >>conftest.$ac_ext <<_ACEOF |
| 4926 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4927 | |
| 4928 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4929 | #ifdef __cplusplus |
| 4930 | extern "C" |
| 4931 | #endif |
| 4932 | /* We use char because int might match the return type of a gcc2 |
| 4933 | builtin and then its argument prototype would still apply. */ |
| 4934 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4935 | int |
| 4936 | main () |
| 4937 | { |
| 4938 | opendir (); |
| 4939 | ; |
| 4940 | return 0; |
| 4941 | } |
| 4942 | _ACEOF |
| 4943 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4944 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4945 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4946 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4947 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4948 | rm -f conftest.er1 |
| 4949 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4951 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4952 | { ac_try='test -z "$ac_c_werror_flag" |
| 4953 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4955 | (eval $ac_try) 2>&5 |
| 4956 | ac_status=$? |
| 4957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4958 | (exit $ac_status); }; } && |
| 4959 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4961 | (eval $ac_try) 2>&5 |
| 4962 | ac_status=$? |
| 4963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4964 | (exit $ac_status); }; }; then |
| 4965 | ac_cv_search_opendir="none required" |
| 4966 | else |
| 4967 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4968 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4969 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4970 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4971 | rm -f conftest.err conftest.$ac_objext \ |
| 4972 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4973 | if test "$ac_cv_search_opendir" = no; then |
| 4974 | for ac_lib in x; do |
| 4975 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4976 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4977 | /* confdefs.h. */ |
| 4978 | _ACEOF |
| 4979 | cat confdefs.h >>conftest.$ac_ext |
| 4980 | cat >>conftest.$ac_ext <<_ACEOF |
| 4981 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4982 | |
| 4983 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4984 | #ifdef __cplusplus |
| 4985 | extern "C" |
| 4986 | #endif |
| 4987 | /* We use char because int might match the return type of a gcc2 |
| 4988 | builtin and then its argument prototype would still apply. */ |
| 4989 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4990 | int |
| 4991 | main () |
| 4992 | { |
| 4993 | opendir (); |
| 4994 | ; |
| 4995 | return 0; |
| 4996 | } |
| 4997 | _ACEOF |
| 4998 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4999 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5000 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5001 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5002 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5003 | rm -f conftest.er1 |
| 5004 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5006 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5007 | { ac_try='test -z "$ac_c_werror_flag" |
| 5008 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5010 | (eval $ac_try) 2>&5 |
| 5011 | ac_status=$? |
| 5012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5013 | (exit $ac_status); }; } && |
| 5014 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5016 | (eval $ac_try) 2>&5 |
| 5017 | ac_status=$? |
| 5018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5019 | (exit $ac_status); }; }; then |
| 5020 | ac_cv_search_opendir="-l$ac_lib" |
| 5021 | break |
| 5022 | else |
| 5023 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5025 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5026 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5027 | rm -f conftest.err conftest.$ac_objext \ |
| 5028 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5029 | done |
| 5030 | fi |
| 5031 | LIBS=$ac_func_search_save_LIBS |
| 5032 | fi |
| 5033 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5034 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 5035 | if test "$ac_cv_search_opendir" != no; then |
| 5036 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 5037 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5038 | fi |
| 5039 | |
| 5040 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5041 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5042 | echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 5043 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 |
| 5044 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 5045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5046 | else |
| 5047 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5048 | /* confdefs.h. */ |
| 5049 | _ACEOF |
| 5050 | cat confdefs.h >>conftest.$ac_ext |
| 5051 | cat >>conftest.$ac_ext <<_ACEOF |
| 5052 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5053 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5054 | int |
| 5055 | main () |
| 5056 | { |
| 5057 | return makedev(0, 0); |
| 5058 | ; |
| 5059 | return 0; |
| 5060 | } |
| 5061 | _ACEOF |
| 5062 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5063 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5064 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5065 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5066 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5067 | rm -f conftest.er1 |
| 5068 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5070 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5071 | { ac_try='test -z "$ac_c_werror_flag" |
| 5072 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5074 | (eval $ac_try) 2>&5 |
| 5075 | ac_status=$? |
| 5076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5077 | (exit $ac_status); }; } && |
| 5078 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5080 | (eval $ac_try) 2>&5 |
| 5081 | ac_status=$? |
| 5082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5083 | (exit $ac_status); }; }; then |
| 5084 | ac_cv_header_sys_types_h_makedev=yes |
| 5085 | else |
| 5086 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5087 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5088 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5089 | ac_cv_header_sys_types_h_makedev=no |
| 5090 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5091 | rm -f conftest.err conftest.$ac_objext \ |
| 5092 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5093 | |
| 5094 | fi |
| 5095 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 5096 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 |
| 5097 | |
| 5098 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 5099 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5100 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5101 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 5102 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5104 | fi |
| 5105 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5106 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 5107 | else |
| 5108 | # Is the header compilable? |
| 5109 | echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 5110 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 |
| 5111 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5112 | /* confdefs.h. */ |
| 5113 | _ACEOF |
| 5114 | cat confdefs.h >>conftest.$ac_ext |
| 5115 | cat >>conftest.$ac_ext <<_ACEOF |
| 5116 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5117 | $ac_includes_default |
| 5118 | #include <sys/mkdev.h> |
| 5119 | _ACEOF |
| 5120 | rm -f conftest.$ac_objext |
| 5121 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5122 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5123 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5125 | rm -f conftest.er1 |
| 5126 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5128 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5129 | { ac_try='test -z "$ac_c_werror_flag" |
| 5130 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5132 | (eval $ac_try) 2>&5 |
| 5133 | ac_status=$? |
| 5134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5135 | (exit $ac_status); }; } && |
| 5136 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5138 | (eval $ac_try) 2>&5 |
| 5139 | ac_status=$? |
| 5140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5141 | (exit $ac_status); }; }; then |
| 5142 | ac_header_compiler=yes |
| 5143 | else |
| 5144 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5145 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5146 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5147 | ac_header_compiler=no |
| 5148 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5149 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5150 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5151 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5152 | |
| 5153 | # Is the header present? |
| 5154 | echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 5155 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 |
| 5156 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5157 | /* confdefs.h. */ |
| 5158 | _ACEOF |
| 5159 | cat confdefs.h >>conftest.$ac_ext |
| 5160 | cat >>conftest.$ac_ext <<_ACEOF |
| 5161 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5162 | #include <sys/mkdev.h> |
| 5163 | _ACEOF |
| 5164 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5165 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5166 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5167 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5168 | rm -f conftest.er1 |
| 5169 | cat conftest.err >&5 |
| 5170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5171 | (exit $ac_status); } >/dev/null; then |
| 5172 | if test -s conftest.err; then |
| 5173 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5174 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5175 | else |
| 5176 | ac_cpp_err= |
| 5177 | fi |
| 5178 | else |
| 5179 | ac_cpp_err=yes |
| 5180 | fi |
| 5181 | if test -z "$ac_cpp_err"; then |
| 5182 | ac_header_preproc=yes |
| 5183 | else |
| 5184 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5185 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5186 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5187 | ac_header_preproc=no |
| 5188 | fi |
| 5189 | rm -f conftest.err conftest.$ac_ext |
| 5190 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5191 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5192 | |
| 5193 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5194 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5195 | yes:no: ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5196 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5197 | 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] | 5198 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 5199 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;} |
| 5200 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5201 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5202 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5203 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 5204 | 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] | 5205 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 5206 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 5207 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 5208 | echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 5209 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5210 | 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] | 5211 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 5212 | 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] | 5213 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 5214 | 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] | 5215 | ( |
| 5216 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 5217 | ## ------------------------------------------------ ## |
| 5218 | ## Report this to http://www.python.org/python-bugs ## |
| 5219 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5220 | _ASBOX |
| 5221 | ) | |
| 5222 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5223 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5224 | esac |
| 5225 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5226 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 5227 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5229 | else |
| 5230 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 5231 | fi |
| 5232 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5233 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 5234 | |
| 5235 | fi |
| 5236 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 5237 | |
| 5238 | cat >>confdefs.h <<\_ACEOF |
| 5239 | #define MAJOR_IN_MKDEV 1 |
| 5240 | _ACEOF |
| 5241 | |
| 5242 | fi |
| 5243 | |
| 5244 | |
| 5245 | |
| 5246 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 5247 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5248 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 5249 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 5250 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5252 | fi |
| 5253 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 5254 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 5255 | else |
| 5256 | # Is the header compilable? |
| 5257 | echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 5258 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 |
| 5259 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5260 | /* confdefs.h. */ |
| 5261 | _ACEOF |
| 5262 | cat confdefs.h >>conftest.$ac_ext |
| 5263 | cat >>conftest.$ac_ext <<_ACEOF |
| 5264 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5265 | $ac_includes_default |
| 5266 | #include <sys/sysmacros.h> |
| 5267 | _ACEOF |
| 5268 | rm -f conftest.$ac_objext |
| 5269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5270 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5271 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5272 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5273 | rm -f conftest.er1 |
| 5274 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5276 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5277 | { ac_try='test -z "$ac_c_werror_flag" |
| 5278 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5280 | (eval $ac_try) 2>&5 |
| 5281 | ac_status=$? |
| 5282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5283 | (exit $ac_status); }; } && |
| 5284 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5286 | (eval $ac_try) 2>&5 |
| 5287 | ac_status=$? |
| 5288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5289 | (exit $ac_status); }; }; then |
| 5290 | ac_header_compiler=yes |
| 5291 | else |
| 5292 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5293 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5294 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5295 | ac_header_compiler=no |
| 5296 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5297 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5298 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5299 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5300 | |
| 5301 | # Is the header present? |
| 5302 | echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 5303 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 |
| 5304 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5305 | /* confdefs.h. */ |
| 5306 | _ACEOF |
| 5307 | cat confdefs.h >>conftest.$ac_ext |
| 5308 | cat >>conftest.$ac_ext <<_ACEOF |
| 5309 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5310 | #include <sys/sysmacros.h> |
| 5311 | _ACEOF |
| 5312 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5313 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5314 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5315 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5316 | rm -f conftest.er1 |
| 5317 | cat conftest.err >&5 |
| 5318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5319 | (exit $ac_status); } >/dev/null; then |
| 5320 | if test -s conftest.err; then |
| 5321 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5322 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5323 | else |
| 5324 | ac_cpp_err= |
| 5325 | fi |
| 5326 | else |
| 5327 | ac_cpp_err=yes |
| 5328 | fi |
| 5329 | if test -z "$ac_cpp_err"; then |
| 5330 | ac_header_preproc=yes |
| 5331 | else |
| 5332 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5333 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5334 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5335 | ac_header_preproc=no |
| 5336 | fi |
| 5337 | rm -f conftest.err conftest.$ac_ext |
| 5338 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5339 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5340 | |
| 5341 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5342 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5343 | yes:no: ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5344 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5345 | 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] | 5346 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 5347 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} |
| 5348 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5349 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5350 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5351 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 5352 | 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] | 5353 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 5354 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 5355 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 5356 | echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 5357 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5358 | 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] | 5359 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 5360 | 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] | 5361 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 5362 | 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] | 5363 | ( |
| 5364 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 5365 | ## ------------------------------------------------ ## |
| 5366 | ## Report this to http://www.python.org/python-bugs ## |
| 5367 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5368 | _ASBOX |
| 5369 | ) | |
| 5370 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5371 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5372 | esac |
| 5373 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 5374 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 5375 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5377 | else |
| 5378 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 5379 | fi |
| 5380 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 5381 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 5382 | |
| 5383 | fi |
| 5384 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 5385 | |
| 5386 | cat >>confdefs.h <<\_ACEOF |
| 5387 | #define MAJOR_IN_SYSMACROS 1 |
| 5388 | _ACEOF |
| 5389 | |
| 5390 | fi |
| 5391 | |
| 5392 | |
| 5393 | fi |
| 5394 | fi |
| 5395 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5396 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5397 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5398 | |
| 5399 | for ac_header in term.h |
| 5400 | do |
| 5401 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5402 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5403 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5404 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5406 | else |
| 5407 | cat >conftest.$ac_ext <<_ACEOF |
| 5408 | /* confdefs.h. */ |
| 5409 | _ACEOF |
| 5410 | cat confdefs.h >>conftest.$ac_ext |
| 5411 | cat >>conftest.$ac_ext <<_ACEOF |
| 5412 | /* end confdefs.h. */ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5413 | |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 5414 | #ifdef HAVE_CURSES_H |
| 5415 | #include <curses.h> |
| 5416 | #endif |
| 5417 | |
| 5418 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5419 | #include <$ac_header> |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5420 | _ACEOF |
| 5421 | rm -f conftest.$ac_objext |
| 5422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5423 | (eval $ac_compile) 2>conftest.er1 |
| 5424 | ac_status=$? |
| 5425 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5426 | rm -f conftest.er1 |
| 5427 | cat conftest.err >&5 |
| 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' |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +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' |
| 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 |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5443 | eval "$as_ac_Header=yes" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5444 | else |
| 5445 | echo "$as_me: failed program was:" >&5 |
| 5446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5447 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5448 | eval "$as_ac_Header=no" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5449 | fi |
| 5450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5451 | fi |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5452 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5453 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5454 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5455 | cat >>confdefs.h <<_ACEOF |
| 5456 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5457 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5458 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5459 | fi |
| 5460 | |
| 5461 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5462 | |
| 5463 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5464 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5465 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5466 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 5467 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 5468 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5469 | /* confdefs.h. */ |
| 5470 | _ACEOF |
| 5471 | cat confdefs.h >>conftest.$ac_ext |
| 5472 | cat >>conftest.$ac_ext <<_ACEOF |
| 5473 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5474 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5475 | |
| 5476 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5477 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5478 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5479 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5480 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5481 | |
| 5482 | |
| 5483 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5484 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5485 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5486 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 5487 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5488 | fi |
| 5489 | rm -f conftest* |
| 5490 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5491 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 5492 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5493 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5494 | # Check whether using makedev requires defining _OSF_SOURCE |
| 5495 | echo "$as_me:$LINENO: checking for makedev" >&5 |
| 5496 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6 |
| 5497 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5498 | /* confdefs.h. */ |
| 5499 | _ACEOF |
| 5500 | cat confdefs.h >>conftest.$ac_ext |
| 5501 | cat >>conftest.$ac_ext <<_ACEOF |
| 5502 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5503 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5504 | int |
| 5505 | main () |
| 5506 | { |
| 5507 | makedev(0, 0) |
| 5508 | ; |
| 5509 | return 0; |
| 5510 | } |
| 5511 | _ACEOF |
| 5512 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5514 | (eval $ac_link) 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5515 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5516 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5517 | rm -f conftest.er1 |
| 5518 | cat conftest.err >&5 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5520 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5521 | { ac_try='test -z "$ac_c_werror_flag" |
| 5522 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5524 | (eval $ac_try) 2>&5 |
| 5525 | ac_status=$? |
| 5526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5527 | (exit $ac_status); }; } && |
| 5528 | { ac_try='test -s conftest$ac_exeext' |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5530 | (eval $ac_try) 2>&5 |
| 5531 | ac_status=$? |
| 5532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5533 | (exit $ac_status); }; }; then |
| 5534 | ac_cv_has_makedev=yes |
| 5535 | else |
| 5536 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5538 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5539 | ac_cv_has_makedev=no |
| 5540 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5541 | rm -f conftest.err conftest.$ac_objext \ |
| 5542 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5543 | if test "$ac_cv_has_makedev" = "no"; then |
| 5544 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 5545 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5546 | /* confdefs.h. */ |
| 5547 | _ACEOF |
| 5548 | cat confdefs.h >>conftest.$ac_ext |
| 5549 | cat >>conftest.$ac_ext <<_ACEOF |
| 5550 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5551 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5552 | #define _OSF_SOURCE 1 |
| 5553 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5554 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5555 | int |
| 5556 | main () |
| 5557 | { |
| 5558 | makedev(0, 0) |
| 5559 | ; |
| 5560 | return 0; |
| 5561 | } |
| 5562 | _ACEOF |
| 5563 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5564 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5565 | (eval $ac_link) 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5566 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5567 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5568 | rm -f conftest.er1 |
| 5569 | cat conftest.err >&5 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5571 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5572 | { ac_try='test -z "$ac_c_werror_flag" |
| 5573 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5575 | (eval $ac_try) 2>&5 |
| 5576 | ac_status=$? |
| 5577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5578 | (exit $ac_status); }; } && |
| 5579 | { ac_try='test -s conftest$ac_exeext' |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5581 | (eval $ac_try) 2>&5 |
| 5582 | ac_status=$? |
| 5583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5584 | (exit $ac_status); }; }; then |
| 5585 | ac_cv_has_makedev=yes |
| 5586 | else |
| 5587 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5589 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5590 | ac_cv_has_makedev=no |
| 5591 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5592 | rm -f conftest.err conftest.$ac_objext \ |
| 5593 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5594 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5595 | |
| 5596 | cat >>confdefs.h <<\_ACEOF |
| 5597 | #define _OSF_SOURCE 1 |
| 5598 | _ACEOF |
| 5599 | |
| 5600 | fi |
| 5601 | fi |
| 5602 | echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 5603 | echo "${ECHO_T}$ac_cv_has_makedev" >&6 |
| 5604 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5605 | |
| 5606 | cat >>confdefs.h <<\_ACEOF |
| 5607 | #define HAVE_MAKEDEV 1 |
| 5608 | _ACEOF |
| 5609 | |
| 5610 | fi |
| 5611 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5612 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 5613 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 5614 | # defined, but the compiler does not support pragma redefine_extname, |
| 5615 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 5616 | # structures (such as rlimit64) without declaring them. As a |
| 5617 | # work-around, disable LFS on such configurations |
| 5618 | |
| 5619 | use_lfs=yes |
| 5620 | echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 5621 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6 |
| 5622 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5623 | /* confdefs.h. */ |
| 5624 | _ACEOF |
| 5625 | cat confdefs.h >>conftest.$ac_ext |
| 5626 | cat >>conftest.$ac_ext <<_ACEOF |
| 5627 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5628 | |
| 5629 | #define _LARGEFILE_SOURCE 1 |
| 5630 | #define _FILE_OFFSET_BITS 64 |
| 5631 | #include <sys/resource.h> |
| 5632 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5633 | int |
| 5634 | main () |
| 5635 | { |
| 5636 | struct rlimit foo; |
| 5637 | ; |
| 5638 | return 0; |
| 5639 | } |
| 5640 | _ACEOF |
| 5641 | rm -f conftest.$ac_objext |
| 5642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5643 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5644 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5645 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5646 | rm -f conftest.er1 |
| 5647 | cat conftest.err >&5 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5649 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5650 | { ac_try='test -z "$ac_c_werror_flag" |
| 5651 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5653 | (eval $ac_try) 2>&5 |
| 5654 | ac_status=$? |
| 5655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5656 | (exit $ac_status); }; } && |
| 5657 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5659 | (eval $ac_try) 2>&5 |
| 5660 | ac_status=$? |
| 5661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5662 | (exit $ac_status); }; }; then |
| 5663 | sol_lfs_bug=no |
| 5664 | else |
| 5665 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5667 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5668 | sol_lfs_bug=yes |
| 5669 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5670 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5671 | echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 5672 | echo "${ECHO_T}$sol_lfs_bug" >&6 |
| 5673 | if test "$sol_lfs_bug" = "yes"; then |
| 5674 | use_lfs=no |
| 5675 | fi |
| 5676 | |
| 5677 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5678 | # Two defines needed to enable largefile support on various platforms |
| 5679 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5680 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5681 | cat >>confdefs.h <<\_ACEOF |
| 5682 | #define _LARGEFILE_SOURCE 1 |
| 5683 | _ACEOF |
| 5684 | |
| 5685 | |
| 5686 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5687 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5688 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5689 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5690 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5691 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 5692 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 5693 | cat >> confdefs.h <<\EOF |
| 5694 | #if defined(SCO_DS) |
| 5695 | #undef _OFF_T |
| 5696 | #endif |
| 5697 | EOF |
| 5698 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5699 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5700 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 5701 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 5702 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 5703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5704 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5705 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5706 | /* confdefs.h. */ |
| 5707 | _ACEOF |
| 5708 | cat confdefs.h >>conftest.$ac_ext |
| 5709 | cat >>conftest.$ac_ext <<_ACEOF |
| 5710 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5711 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5712 | int |
| 5713 | main () |
| 5714 | { |
| 5715 | if ((mode_t *) 0) |
| 5716 | return 0; |
| 5717 | if (sizeof (mode_t)) |
| 5718 | return 0; |
| 5719 | ; |
| 5720 | return 0; |
| 5721 | } |
| 5722 | _ACEOF |
| 5723 | rm -f conftest.$ac_objext |
| 5724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5725 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5726 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5727 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5728 | rm -f conftest.er1 |
| 5729 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5731 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5732 | { ac_try='test -z "$ac_c_werror_flag" |
| 5733 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5735 | (eval $ac_try) 2>&5 |
| 5736 | ac_status=$? |
| 5737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5738 | (exit $ac_status); }; } && |
| 5739 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5741 | (eval $ac_try) 2>&5 |
| 5742 | ac_status=$? |
| 5743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5744 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5745 | ac_cv_type_mode_t=yes |
| 5746 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5747 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5749 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5750 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5751 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5752 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5753 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5754 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 5755 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 5756 | if test $ac_cv_type_mode_t = yes; then |
| 5757 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5758 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5759 | |
| 5760 | cat >>confdefs.h <<_ACEOF |
| 5761 | #define mode_t int |
| 5762 | _ACEOF |
| 5763 | |
| 5764 | fi |
| 5765 | |
| 5766 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5767 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 5768 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5770 | else |
| 5771 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5772 | /* confdefs.h. */ |
| 5773 | _ACEOF |
| 5774 | cat confdefs.h >>conftest.$ac_ext |
| 5775 | cat >>conftest.$ac_ext <<_ACEOF |
| 5776 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5777 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5778 | int |
| 5779 | main () |
| 5780 | { |
| 5781 | if ((off_t *) 0) |
| 5782 | return 0; |
| 5783 | if (sizeof (off_t)) |
| 5784 | return 0; |
| 5785 | ; |
| 5786 | return 0; |
| 5787 | } |
| 5788 | _ACEOF |
| 5789 | rm -f conftest.$ac_objext |
| 5790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5791 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5792 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5793 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5794 | rm -f conftest.er1 |
| 5795 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5797 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5798 | { ac_try='test -z "$ac_c_werror_flag" |
| 5799 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5801 | (eval $ac_try) 2>&5 |
| 5802 | ac_status=$? |
| 5803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5804 | (exit $ac_status); }; } && |
| 5805 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5807 | (eval $ac_try) 2>&5 |
| 5808 | ac_status=$? |
| 5809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5810 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5811 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5812 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5813 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5814 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5815 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5816 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5817 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5818 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5819 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5820 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5821 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 5822 | if test $ac_cv_type_off_t = yes; then |
| 5823 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5824 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5825 | |
| 5826 | cat >>confdefs.h <<_ACEOF |
| 5827 | #define off_t long |
| 5828 | _ACEOF |
| 5829 | |
| 5830 | fi |
| 5831 | |
| 5832 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 5833 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 5834 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 5835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5836 | else |
| 5837 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5838 | /* confdefs.h. */ |
| 5839 | _ACEOF |
| 5840 | cat confdefs.h >>conftest.$ac_ext |
| 5841 | cat >>conftest.$ac_ext <<_ACEOF |
| 5842 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5843 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5844 | int |
| 5845 | main () |
| 5846 | { |
| 5847 | if ((pid_t *) 0) |
| 5848 | return 0; |
| 5849 | if (sizeof (pid_t)) |
| 5850 | return 0; |
| 5851 | ; |
| 5852 | return 0; |
| 5853 | } |
| 5854 | _ACEOF |
| 5855 | rm -f conftest.$ac_objext |
| 5856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5857 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5858 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5859 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5860 | rm -f conftest.er1 |
| 5861 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5863 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5864 | { ac_try='test -z "$ac_c_werror_flag" |
| 5865 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5867 | (eval $ac_try) 2>&5 |
| 5868 | ac_status=$? |
| 5869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5870 | (exit $ac_status); }; } && |
| 5871 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5873 | (eval $ac_try) 2>&5 |
| 5874 | ac_status=$? |
| 5875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5876 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5877 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5878 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5879 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5880 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5881 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5882 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5883 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5884 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5885 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5886 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 5887 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 5888 | if test $ac_cv_type_pid_t = yes; then |
| 5889 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5890 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5891 | |
| 5892 | cat >>confdefs.h <<_ACEOF |
| 5893 | #define pid_t int |
| 5894 | _ACEOF |
| 5895 | |
| 5896 | fi |
| 5897 | |
| 5898 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 5899 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 5900 | if test "${ac_cv_type_signal+set}" = set; then |
| 5901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5902 | else |
| 5903 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5904 | /* confdefs.h. */ |
| 5905 | _ACEOF |
| 5906 | cat confdefs.h >>conftest.$ac_ext |
| 5907 | cat >>conftest.$ac_ext <<_ACEOF |
| 5908 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5909 | #include <sys/types.h> |
| 5910 | #include <signal.h> |
| 5911 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5912 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5913 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5914 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5915 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 5916 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5917 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5918 | #endif |
| 5919 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5920 | int |
| 5921 | main () |
| 5922 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5923 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5924 | ; |
| 5925 | return 0; |
| 5926 | } |
| 5927 | _ACEOF |
| 5928 | rm -f conftest.$ac_objext |
| 5929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5930 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5931 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5932 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5933 | rm -f conftest.er1 |
| 5934 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5936 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5937 | { ac_try='test -z "$ac_c_werror_flag" |
| 5938 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5940 | (eval $ac_try) 2>&5 |
| 5941 | ac_status=$? |
| 5942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5943 | (exit $ac_status); }; } && |
| 5944 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5946 | (eval $ac_try) 2>&5 |
| 5947 | ac_status=$? |
| 5948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5949 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5950 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5951 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5952 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5953 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5954 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5955 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5956 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5957 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5958 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5959 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 5960 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5961 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5962 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5963 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5964 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5965 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5966 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5967 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5968 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 5969 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5971 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5972 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5973 | /* confdefs.h. */ |
| 5974 | _ACEOF |
| 5975 | cat confdefs.h >>conftest.$ac_ext |
| 5976 | cat >>conftest.$ac_ext <<_ACEOF |
| 5977 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5978 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5979 | int |
| 5980 | main () |
| 5981 | { |
| 5982 | if ((size_t *) 0) |
| 5983 | return 0; |
| 5984 | if (sizeof (size_t)) |
| 5985 | return 0; |
| 5986 | ; |
| 5987 | return 0; |
| 5988 | } |
| 5989 | _ACEOF |
| 5990 | rm -f conftest.$ac_objext |
| 5991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5992 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5993 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5994 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5995 | rm -f conftest.er1 |
| 5996 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5998 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5999 | { ac_try='test -z "$ac_c_werror_flag" |
| 6000 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6002 | (eval $ac_try) 2>&5 |
| 6003 | ac_status=$? |
| 6004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6005 | (exit $ac_status); }; } && |
| 6006 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6008 | (eval $ac_try) 2>&5 |
| 6009 | ac_status=$? |
| 6010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6011 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6012 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6013 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6014 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6016 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6017 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6018 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6019 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6020 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6021 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 6022 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 6023 | if test $ac_cv_type_size_t = yes; then |
| 6024 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6025 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6026 | |
| 6027 | cat >>confdefs.h <<_ACEOF |
| 6028 | #define size_t unsigned |
| 6029 | _ACEOF |
| 6030 | |
| 6031 | fi |
| 6032 | |
| 6033 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 6034 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 6035 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 6036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6037 | else |
| 6038 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6039 | /* confdefs.h. */ |
| 6040 | _ACEOF |
| 6041 | cat confdefs.h >>conftest.$ac_ext |
| 6042 | cat >>conftest.$ac_ext <<_ACEOF |
| 6043 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6044 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6045 | |
| 6046 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6047 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6048 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6049 | ac_cv_type_uid_t=yes |
| 6050 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6051 | ac_cv_type_uid_t=no |
| 6052 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6053 | rm -f conftest* |
| 6054 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6055 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6056 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 6057 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6058 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6059 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6060 | cat >>confdefs.h <<\_ACEOF |
| 6061 | #define uid_t int |
| 6062 | _ACEOF |
| 6063 | |
| 6064 | |
| 6065 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6066 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6067 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6068 | |
| 6069 | fi |
| 6070 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6071 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6072 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 6073 | # 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] | 6074 | echo "$as_me:$LINENO: checking for int" >&5 |
| 6075 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 6076 | if test "${ac_cv_type_int+set}" = set; then |
| 6077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6078 | else |
| 6079 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6080 | /* confdefs.h. */ |
| 6081 | _ACEOF |
| 6082 | cat confdefs.h >>conftest.$ac_ext |
| 6083 | cat >>conftest.$ac_ext <<_ACEOF |
| 6084 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6085 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6086 | int |
| 6087 | main () |
| 6088 | { |
| 6089 | if ((int *) 0) |
| 6090 | return 0; |
| 6091 | if (sizeof (int)) |
| 6092 | return 0; |
| 6093 | ; |
| 6094 | return 0; |
| 6095 | } |
| 6096 | _ACEOF |
| 6097 | rm -f conftest.$ac_objext |
| 6098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6099 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6100 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6101 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6102 | rm -f conftest.er1 |
| 6103 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6105 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6106 | { ac_try='test -z "$ac_c_werror_flag" |
| 6107 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6109 | (eval $ac_try) 2>&5 |
| 6110 | ac_status=$? |
| 6111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6112 | (exit $ac_status); }; } && |
| 6113 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6115 | (eval $ac_try) 2>&5 |
| 6116 | ac_status=$? |
| 6117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6118 | (exit $ac_status); }; }; then |
| 6119 | ac_cv_type_int=yes |
| 6120 | else |
| 6121 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6122 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6123 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6124 | ac_cv_type_int=no |
| 6125 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6126 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6127 | fi |
| 6128 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 6129 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 6130 | |
| 6131 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 6132 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 6133 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 6134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6135 | else |
| 6136 | if test "$ac_cv_type_int" = yes; then |
| 6137 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6138 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6139 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6140 | # This bug is HP SR number 8606223364. |
| 6141 | if test "$cross_compiling" = yes; then |
| 6142 | # Depending upon the size, compute the lo and hi bounds. |
| 6143 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6144 | /* confdefs.h. */ |
| 6145 | _ACEOF |
| 6146 | cat confdefs.h >>conftest.$ac_ext |
| 6147 | cat >>conftest.$ac_ext <<_ACEOF |
| 6148 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6149 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6150 | int |
| 6151 | main () |
| 6152 | { |
| 6153 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 6154 | test_array [0] = 0 |
| 6155 | |
| 6156 | ; |
| 6157 | return 0; |
| 6158 | } |
| 6159 | _ACEOF |
| 6160 | rm -f conftest.$ac_objext |
| 6161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6162 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6163 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6164 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6165 | rm -f conftest.er1 |
| 6166 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6168 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6169 | { ac_try='test -z "$ac_c_werror_flag" |
| 6170 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6172 | (eval $ac_try) 2>&5 |
| 6173 | ac_status=$? |
| 6174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6175 | (exit $ac_status); }; } && |
| 6176 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6178 | (eval $ac_try) 2>&5 |
| 6179 | ac_status=$? |
| 6180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6181 | (exit $ac_status); }; }; then |
| 6182 | ac_lo=0 ac_mid=0 |
| 6183 | while :; do |
| 6184 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6185 | /* confdefs.h. */ |
| 6186 | _ACEOF |
| 6187 | cat confdefs.h >>conftest.$ac_ext |
| 6188 | cat >>conftest.$ac_ext <<_ACEOF |
| 6189 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6190 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6191 | int |
| 6192 | main () |
| 6193 | { |
| 6194 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 6195 | test_array [0] = 0 |
| 6196 | |
| 6197 | ; |
| 6198 | return 0; |
| 6199 | } |
| 6200 | _ACEOF |
| 6201 | rm -f conftest.$ac_objext |
| 6202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6203 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6204 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6205 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6206 | rm -f conftest.er1 |
| 6207 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6209 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6210 | { ac_try='test -z "$ac_c_werror_flag" |
| 6211 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6213 | (eval $ac_try) 2>&5 |
| 6214 | ac_status=$? |
| 6215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6216 | (exit $ac_status); }; } && |
| 6217 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6219 | (eval $ac_try) 2>&5 |
| 6220 | ac_status=$? |
| 6221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6222 | (exit $ac_status); }; }; then |
| 6223 | ac_hi=$ac_mid; break |
| 6224 | else |
| 6225 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6226 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6227 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6228 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6229 | if test $ac_lo -le $ac_mid; then |
| 6230 | ac_lo= ac_hi= |
| 6231 | break |
| 6232 | fi |
| 6233 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6234 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6235 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6236 | done |
| 6237 | else |
| 6238 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6239 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6240 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6241 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6242 | /* confdefs.h. */ |
| 6243 | _ACEOF |
| 6244 | cat confdefs.h >>conftest.$ac_ext |
| 6245 | cat >>conftest.$ac_ext <<_ACEOF |
| 6246 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6247 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6248 | int |
| 6249 | main () |
| 6250 | { |
| 6251 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 6252 | test_array [0] = 0 |
| 6253 | |
| 6254 | ; |
| 6255 | return 0; |
| 6256 | } |
| 6257 | _ACEOF |
| 6258 | rm -f conftest.$ac_objext |
| 6259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6260 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6261 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6262 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6263 | rm -f conftest.er1 |
| 6264 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6266 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6267 | { ac_try='test -z "$ac_c_werror_flag" |
| 6268 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6270 | (eval $ac_try) 2>&5 |
| 6271 | ac_status=$? |
| 6272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6273 | (exit $ac_status); }; } && |
| 6274 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6276 | (eval $ac_try) 2>&5 |
| 6277 | ac_status=$? |
| 6278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6279 | (exit $ac_status); }; }; then |
| 6280 | ac_hi=-1 ac_mid=-1 |
| 6281 | while :; do |
| 6282 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6283 | /* confdefs.h. */ |
| 6284 | _ACEOF |
| 6285 | cat confdefs.h >>conftest.$ac_ext |
| 6286 | cat >>conftest.$ac_ext <<_ACEOF |
| 6287 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6288 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6289 | int |
| 6290 | main () |
| 6291 | { |
| 6292 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 6293 | test_array [0] = 0 |
| 6294 | |
| 6295 | ; |
| 6296 | return 0; |
| 6297 | } |
| 6298 | _ACEOF |
| 6299 | rm -f conftest.$ac_objext |
| 6300 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6301 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6302 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6303 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6304 | rm -f conftest.er1 |
| 6305 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6307 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6308 | { ac_try='test -z "$ac_c_werror_flag" |
| 6309 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6311 | (eval $ac_try) 2>&5 |
| 6312 | ac_status=$? |
| 6313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6314 | (exit $ac_status); }; } && |
| 6315 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6317 | (eval $ac_try) 2>&5 |
| 6318 | ac_status=$? |
| 6319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6320 | (exit $ac_status); }; }; then |
| 6321 | ac_lo=$ac_mid; break |
| 6322 | else |
| 6323 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6325 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6326 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6327 | if test $ac_mid -le $ac_hi; then |
| 6328 | ac_lo= ac_hi= |
| 6329 | break |
| 6330 | fi |
| 6331 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6332 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6333 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6334 | done |
| 6335 | else |
| 6336 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6337 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6338 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6339 | ac_lo= ac_hi= |
| 6340 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6341 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6342 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6343 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6344 | # Binary search between lo and hi bounds. |
| 6345 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6346 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6347 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6348 | /* confdefs.h. */ |
| 6349 | _ACEOF |
| 6350 | cat confdefs.h >>conftest.$ac_ext |
| 6351 | cat >>conftest.$ac_ext <<_ACEOF |
| 6352 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6353 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6354 | int |
| 6355 | main () |
| 6356 | { |
| 6357 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 6358 | test_array [0] = 0 |
| 6359 | |
| 6360 | ; |
| 6361 | return 0; |
| 6362 | } |
| 6363 | _ACEOF |
| 6364 | rm -f conftest.$ac_objext |
| 6365 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6366 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6367 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6368 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6369 | rm -f conftest.er1 |
| 6370 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6372 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6373 | { ac_try='test -z "$ac_c_werror_flag" |
| 6374 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6376 | (eval $ac_try) 2>&5 |
| 6377 | ac_status=$? |
| 6378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6379 | (exit $ac_status); }; } && |
| 6380 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6382 | (eval $ac_try) 2>&5 |
| 6383 | ac_status=$? |
| 6384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6385 | (exit $ac_status); }; }; then |
| 6386 | ac_hi=$ac_mid |
| 6387 | else |
| 6388 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6389 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6390 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6391 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6392 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6393 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6394 | done |
| 6395 | case $ac_lo in |
| 6396 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6397 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 6398 | See \`config.log' for more details." >&5 |
| 6399 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 6400 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6401 | { (exit 1); exit 1; }; } ;; |
| 6402 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6403 | else |
| 6404 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6405 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6406 | See \`config.log' for more details." >&5 |
| 6407 | echo "$as_me: error: cannot run test program while cross compiling |
| 6408 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6409 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6410 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6411 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6412 | /* confdefs.h. */ |
| 6413 | _ACEOF |
| 6414 | cat confdefs.h >>conftest.$ac_ext |
| 6415 | cat >>conftest.$ac_ext <<_ACEOF |
| 6416 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6417 | $ac_includes_default |
| 6418 | long longval () { return (long) (sizeof (int)); } |
| 6419 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6420 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6421 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6422 | int |
| 6423 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6424 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6425 | |
| 6426 | FILE *f = fopen ("conftest.val", "w"); |
| 6427 | if (! f) |
| 6428 | exit (1); |
| 6429 | if (((long) (sizeof (int))) < 0) |
| 6430 | { |
| 6431 | long i = longval (); |
| 6432 | if (i != ((long) (sizeof (int)))) |
| 6433 | exit (1); |
| 6434 | fprintf (f, "%ld\n", i); |
| 6435 | } |
| 6436 | else |
| 6437 | { |
| 6438 | unsigned long i = ulongval (); |
| 6439 | if (i != ((long) (sizeof (int)))) |
| 6440 | exit (1); |
| 6441 | fprintf (f, "%lu\n", i); |
| 6442 | } |
| 6443 | exit (ferror (f) || fclose (f) != 0); |
| 6444 | |
| 6445 | ; |
| 6446 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6447 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6448 | _ACEOF |
| 6449 | rm -f conftest$ac_exeext |
| 6450 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6451 | (eval $ac_link) 2>&5 |
| 6452 | ac_status=$? |
| 6453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6454 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6456 | (eval $ac_try) 2>&5 |
| 6457 | ac_status=$? |
| 6458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6459 | (exit $ac_status); }; }; then |
| 6460 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6461 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6462 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6463 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6464 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6465 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6466 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6467 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 6468 | See \`config.log' for more details." >&5 |
| 6469 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 6470 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6471 | { (exit 1); exit 1; }; } |
| 6472 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6473 | 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] | 6474 | fi |
| 6475 | fi |
| 6476 | rm -f conftest.val |
| 6477 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6478 | ac_cv_sizeof_int=0 |
| 6479 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6480 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6481 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 6482 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 6483 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6484 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6485 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6486 | |
| 6487 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6488 | echo "$as_me:$LINENO: checking for long" >&5 |
| 6489 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 6490 | if test "${ac_cv_type_long+set}" = set; then |
| 6491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6492 | else |
| 6493 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6494 | /* confdefs.h. */ |
| 6495 | _ACEOF |
| 6496 | cat confdefs.h >>conftest.$ac_ext |
| 6497 | cat >>conftest.$ac_ext <<_ACEOF |
| 6498 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6499 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6500 | int |
| 6501 | main () |
| 6502 | { |
| 6503 | if ((long *) 0) |
| 6504 | return 0; |
| 6505 | if (sizeof (long)) |
| 6506 | return 0; |
| 6507 | ; |
| 6508 | return 0; |
| 6509 | } |
| 6510 | _ACEOF |
| 6511 | rm -f conftest.$ac_objext |
| 6512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6513 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6514 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6515 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6516 | rm -f conftest.er1 |
| 6517 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6519 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6520 | { ac_try='test -z "$ac_c_werror_flag" |
| 6521 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6523 | (eval $ac_try) 2>&5 |
| 6524 | ac_status=$? |
| 6525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6526 | (exit $ac_status); }; } && |
| 6527 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6529 | (eval $ac_try) 2>&5 |
| 6530 | ac_status=$? |
| 6531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6532 | (exit $ac_status); }; }; then |
| 6533 | ac_cv_type_long=yes |
| 6534 | else |
| 6535 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6536 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6537 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6538 | ac_cv_type_long=no |
| 6539 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6540 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6541 | fi |
| 6542 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 6543 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 6544 | |
| 6545 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 6546 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 6547 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 6548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6549 | else |
| 6550 | if test "$ac_cv_type_long" = yes; then |
| 6551 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6552 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6553 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6554 | # This bug is HP SR number 8606223364. |
| 6555 | if test "$cross_compiling" = yes; then |
| 6556 | # Depending upon the size, compute the lo and hi bounds. |
| 6557 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6558 | /* confdefs.h. */ |
| 6559 | _ACEOF |
| 6560 | cat confdefs.h >>conftest.$ac_ext |
| 6561 | cat >>conftest.$ac_ext <<_ACEOF |
| 6562 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6563 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6564 | int |
| 6565 | main () |
| 6566 | { |
| 6567 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 6568 | test_array [0] = 0 |
| 6569 | |
| 6570 | ; |
| 6571 | return 0; |
| 6572 | } |
| 6573 | _ACEOF |
| 6574 | rm -f conftest.$ac_objext |
| 6575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6576 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6577 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6578 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6579 | rm -f conftest.er1 |
| 6580 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6582 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6583 | { ac_try='test -z "$ac_c_werror_flag" |
| 6584 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6586 | (eval $ac_try) 2>&5 |
| 6587 | ac_status=$? |
| 6588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6589 | (exit $ac_status); }; } && |
| 6590 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6592 | (eval $ac_try) 2>&5 |
| 6593 | ac_status=$? |
| 6594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6595 | (exit $ac_status); }; }; then |
| 6596 | ac_lo=0 ac_mid=0 |
| 6597 | while :; do |
| 6598 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6599 | /* confdefs.h. */ |
| 6600 | _ACEOF |
| 6601 | cat confdefs.h >>conftest.$ac_ext |
| 6602 | cat >>conftest.$ac_ext <<_ACEOF |
| 6603 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6604 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6605 | int |
| 6606 | main () |
| 6607 | { |
| 6608 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 6609 | test_array [0] = 0 |
| 6610 | |
| 6611 | ; |
| 6612 | return 0; |
| 6613 | } |
| 6614 | _ACEOF |
| 6615 | rm -f conftest.$ac_objext |
| 6616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6617 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6618 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6620 | rm -f conftest.er1 |
| 6621 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6623 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6624 | { ac_try='test -z "$ac_c_werror_flag" |
| 6625 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6627 | (eval $ac_try) 2>&5 |
| 6628 | ac_status=$? |
| 6629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6630 | (exit $ac_status); }; } && |
| 6631 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6633 | (eval $ac_try) 2>&5 |
| 6634 | ac_status=$? |
| 6635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6636 | (exit $ac_status); }; }; then |
| 6637 | ac_hi=$ac_mid; break |
| 6638 | else |
| 6639 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6641 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6642 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6643 | if test $ac_lo -le $ac_mid; then |
| 6644 | ac_lo= ac_hi= |
| 6645 | break |
| 6646 | fi |
| 6647 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6648 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6649 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6650 | done |
| 6651 | else |
| 6652 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6654 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6655 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6656 | /* confdefs.h. */ |
| 6657 | _ACEOF |
| 6658 | cat confdefs.h >>conftest.$ac_ext |
| 6659 | cat >>conftest.$ac_ext <<_ACEOF |
| 6660 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6661 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6662 | int |
| 6663 | main () |
| 6664 | { |
| 6665 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 6666 | test_array [0] = 0 |
| 6667 | |
| 6668 | ; |
| 6669 | return 0; |
| 6670 | } |
| 6671 | _ACEOF |
| 6672 | rm -f conftest.$ac_objext |
| 6673 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6674 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6675 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6676 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6677 | rm -f conftest.er1 |
| 6678 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6680 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6681 | { ac_try='test -z "$ac_c_werror_flag" |
| 6682 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6684 | (eval $ac_try) 2>&5 |
| 6685 | ac_status=$? |
| 6686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6687 | (exit $ac_status); }; } && |
| 6688 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6690 | (eval $ac_try) 2>&5 |
| 6691 | ac_status=$? |
| 6692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6693 | (exit $ac_status); }; }; then |
| 6694 | ac_hi=-1 ac_mid=-1 |
| 6695 | while :; do |
| 6696 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6697 | /* confdefs.h. */ |
| 6698 | _ACEOF |
| 6699 | cat confdefs.h >>conftest.$ac_ext |
| 6700 | cat >>conftest.$ac_ext <<_ACEOF |
| 6701 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6702 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6703 | int |
| 6704 | main () |
| 6705 | { |
| 6706 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 6707 | test_array [0] = 0 |
| 6708 | |
| 6709 | ; |
| 6710 | return 0; |
| 6711 | } |
| 6712 | _ACEOF |
| 6713 | rm -f conftest.$ac_objext |
| 6714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6715 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6716 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6717 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6718 | rm -f conftest.er1 |
| 6719 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6721 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6722 | { ac_try='test -z "$ac_c_werror_flag" |
| 6723 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6725 | (eval $ac_try) 2>&5 |
| 6726 | ac_status=$? |
| 6727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6728 | (exit $ac_status); }; } && |
| 6729 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6731 | (eval $ac_try) 2>&5 |
| 6732 | ac_status=$? |
| 6733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6734 | (exit $ac_status); }; }; then |
| 6735 | ac_lo=$ac_mid; break |
| 6736 | else |
| 6737 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6738 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6739 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6740 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6741 | if test $ac_mid -le $ac_hi; then |
| 6742 | ac_lo= ac_hi= |
| 6743 | break |
| 6744 | fi |
| 6745 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6746 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6747 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6748 | done |
| 6749 | else |
| 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 | ac_lo= ac_hi= |
| 6754 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6755 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6756 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6757 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6758 | # Binary search between lo and hi bounds. |
| 6759 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6760 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6761 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6762 | /* confdefs.h. */ |
| 6763 | _ACEOF |
| 6764 | cat confdefs.h >>conftest.$ac_ext |
| 6765 | cat >>conftest.$ac_ext <<_ACEOF |
| 6766 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6767 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6768 | int |
| 6769 | main () |
| 6770 | { |
| 6771 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 6772 | test_array [0] = 0 |
| 6773 | |
| 6774 | ; |
| 6775 | return 0; |
| 6776 | } |
| 6777 | _ACEOF |
| 6778 | rm -f conftest.$ac_objext |
| 6779 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6780 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6781 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6782 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6783 | rm -f conftest.er1 |
| 6784 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6786 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6787 | { ac_try='test -z "$ac_c_werror_flag" |
| 6788 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6790 | (eval $ac_try) 2>&5 |
| 6791 | ac_status=$? |
| 6792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6793 | (exit $ac_status); }; } && |
| 6794 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6796 | (eval $ac_try) 2>&5 |
| 6797 | ac_status=$? |
| 6798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6799 | (exit $ac_status); }; }; then |
| 6800 | ac_hi=$ac_mid |
| 6801 | else |
| 6802 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6803 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6804 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6805 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6806 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6807 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6808 | done |
| 6809 | case $ac_lo in |
| 6810 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6811 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 6812 | See \`config.log' for more details." >&5 |
| 6813 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 6814 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6815 | { (exit 1); exit 1; }; } ;; |
| 6816 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6817 | else |
| 6818 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6819 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6820 | See \`config.log' for more details." >&5 |
| 6821 | echo "$as_me: error: cannot run test program while cross compiling |
| 6822 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6823 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6824 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6825 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6826 | /* confdefs.h. */ |
| 6827 | _ACEOF |
| 6828 | cat confdefs.h >>conftest.$ac_ext |
| 6829 | cat >>conftest.$ac_ext <<_ACEOF |
| 6830 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6831 | $ac_includes_default |
| 6832 | long longval () { return (long) (sizeof (long)); } |
| 6833 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6834 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6835 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6836 | int |
| 6837 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6838 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6839 | |
| 6840 | FILE *f = fopen ("conftest.val", "w"); |
| 6841 | if (! f) |
| 6842 | exit (1); |
| 6843 | if (((long) (sizeof (long))) < 0) |
| 6844 | { |
| 6845 | long i = longval (); |
| 6846 | if (i != ((long) (sizeof (long)))) |
| 6847 | exit (1); |
| 6848 | fprintf (f, "%ld\n", i); |
| 6849 | } |
| 6850 | else |
| 6851 | { |
| 6852 | unsigned long i = ulongval (); |
| 6853 | if (i != ((long) (sizeof (long)))) |
| 6854 | exit (1); |
| 6855 | fprintf (f, "%lu\n", i); |
| 6856 | } |
| 6857 | exit (ferror (f) || fclose (f) != 0); |
| 6858 | |
| 6859 | ; |
| 6860 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6861 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6862 | _ACEOF |
| 6863 | rm -f conftest$ac_exeext |
| 6864 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6865 | (eval $ac_link) 2>&5 |
| 6866 | ac_status=$? |
| 6867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6868 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6870 | (eval $ac_try) 2>&5 |
| 6871 | ac_status=$? |
| 6872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6873 | (exit $ac_status); }; }; then |
| 6874 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6875 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6876 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6877 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6879 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6880 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6881 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 6882 | See \`config.log' for more details." >&5 |
| 6883 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 6884 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6885 | { (exit 1); exit 1; }; } |
| 6886 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6887 | 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] | 6888 | fi |
| 6889 | fi |
| 6890 | rm -f conftest.val |
| 6891 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6892 | ac_cv_sizeof_long=0 |
| 6893 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6894 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6895 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 6896 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 6897 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6898 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6899 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6900 | |
| 6901 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6902 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 6903 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 6904 | if test "${ac_cv_type_void_p+set}" = set; then |
| 6905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6906 | else |
| 6907 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6908 | /* confdefs.h. */ |
| 6909 | _ACEOF |
| 6910 | cat confdefs.h >>conftest.$ac_ext |
| 6911 | cat >>conftest.$ac_ext <<_ACEOF |
| 6912 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6913 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6914 | int |
| 6915 | main () |
| 6916 | { |
| 6917 | if ((void * *) 0) |
| 6918 | return 0; |
| 6919 | if (sizeof (void *)) |
| 6920 | return 0; |
| 6921 | ; |
| 6922 | return 0; |
| 6923 | } |
| 6924 | _ACEOF |
| 6925 | rm -f conftest.$ac_objext |
| 6926 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6927 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6928 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6929 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6930 | rm -f conftest.er1 |
| 6931 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6933 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6934 | { ac_try='test -z "$ac_c_werror_flag" |
| 6935 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6937 | (eval $ac_try) 2>&5 |
| 6938 | ac_status=$? |
| 6939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6940 | (exit $ac_status); }; } && |
| 6941 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6943 | (eval $ac_try) 2>&5 |
| 6944 | ac_status=$? |
| 6945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6946 | (exit $ac_status); }; }; then |
| 6947 | ac_cv_type_void_p=yes |
| 6948 | else |
| 6949 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6951 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6952 | ac_cv_type_void_p=no |
| 6953 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6955 | fi |
| 6956 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 6957 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 6958 | |
| 6959 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 6960 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 6961 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 6962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6963 | else |
| 6964 | if test "$ac_cv_type_void_p" = yes; then |
| 6965 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6966 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6967 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6968 | # This bug is HP SR number 8606223364. |
| 6969 | if test "$cross_compiling" = yes; then |
| 6970 | # Depending upon the size, compute the lo and hi bounds. |
| 6971 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6972 | /* confdefs.h. */ |
| 6973 | _ACEOF |
| 6974 | cat confdefs.h >>conftest.$ac_ext |
| 6975 | cat >>conftest.$ac_ext <<_ACEOF |
| 6976 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6977 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6978 | int |
| 6979 | main () |
| 6980 | { |
| 6981 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 6982 | test_array [0] = 0 |
| 6983 | |
| 6984 | ; |
| 6985 | return 0; |
| 6986 | } |
| 6987 | _ACEOF |
| 6988 | rm -f conftest.$ac_objext |
| 6989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6990 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6991 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6993 | rm -f conftest.er1 |
| 6994 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6996 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6997 | { ac_try='test -z "$ac_c_werror_flag" |
| 6998 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7000 | (eval $ac_try) 2>&5 |
| 7001 | ac_status=$? |
| 7002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7003 | (exit $ac_status); }; } && |
| 7004 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7006 | (eval $ac_try) 2>&5 |
| 7007 | ac_status=$? |
| 7008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7009 | (exit $ac_status); }; }; then |
| 7010 | ac_lo=0 ac_mid=0 |
| 7011 | while :; do |
| 7012 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7013 | /* confdefs.h. */ |
| 7014 | _ACEOF |
| 7015 | cat confdefs.h >>conftest.$ac_ext |
| 7016 | cat >>conftest.$ac_ext <<_ACEOF |
| 7017 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7018 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7019 | int |
| 7020 | main () |
| 7021 | { |
| 7022 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 7023 | test_array [0] = 0 |
| 7024 | |
| 7025 | ; |
| 7026 | return 0; |
| 7027 | } |
| 7028 | _ACEOF |
| 7029 | rm -f conftest.$ac_objext |
| 7030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7031 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7032 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7033 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7034 | rm -f conftest.er1 |
| 7035 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7037 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7038 | { ac_try='test -z "$ac_c_werror_flag" |
| 7039 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7041 | (eval $ac_try) 2>&5 |
| 7042 | ac_status=$? |
| 7043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7044 | (exit $ac_status); }; } && |
| 7045 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7047 | (eval $ac_try) 2>&5 |
| 7048 | ac_status=$? |
| 7049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7050 | (exit $ac_status); }; }; then |
| 7051 | ac_hi=$ac_mid; break |
| 7052 | else |
| 7053 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7054 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7055 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7056 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7057 | if test $ac_lo -le $ac_mid; then |
| 7058 | ac_lo= ac_hi= |
| 7059 | break |
| 7060 | fi |
| 7061 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7062 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7063 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7064 | done |
| 7065 | else |
| 7066 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7068 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7069 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7070 | /* confdefs.h. */ |
| 7071 | _ACEOF |
| 7072 | cat confdefs.h >>conftest.$ac_ext |
| 7073 | cat >>conftest.$ac_ext <<_ACEOF |
| 7074 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7075 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7076 | int |
| 7077 | main () |
| 7078 | { |
| 7079 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 7080 | test_array [0] = 0 |
| 7081 | |
| 7082 | ; |
| 7083 | return 0; |
| 7084 | } |
| 7085 | _ACEOF |
| 7086 | rm -f conftest.$ac_objext |
| 7087 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7088 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7089 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7090 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7091 | rm -f conftest.er1 |
| 7092 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7094 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7095 | { ac_try='test -z "$ac_c_werror_flag" |
| 7096 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7098 | (eval $ac_try) 2>&5 |
| 7099 | ac_status=$? |
| 7100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7101 | (exit $ac_status); }; } && |
| 7102 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7104 | (eval $ac_try) 2>&5 |
| 7105 | ac_status=$? |
| 7106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7107 | (exit $ac_status); }; }; then |
| 7108 | ac_hi=-1 ac_mid=-1 |
| 7109 | while :; do |
| 7110 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7111 | /* confdefs.h. */ |
| 7112 | _ACEOF |
| 7113 | cat confdefs.h >>conftest.$ac_ext |
| 7114 | cat >>conftest.$ac_ext <<_ACEOF |
| 7115 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7116 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7117 | int |
| 7118 | main () |
| 7119 | { |
| 7120 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 7121 | test_array [0] = 0 |
| 7122 | |
| 7123 | ; |
| 7124 | return 0; |
| 7125 | } |
| 7126 | _ACEOF |
| 7127 | rm -f conftest.$ac_objext |
| 7128 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7129 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7130 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7131 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7132 | rm -f conftest.er1 |
| 7133 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7135 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7136 | { ac_try='test -z "$ac_c_werror_flag" |
| 7137 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7139 | (eval $ac_try) 2>&5 |
| 7140 | ac_status=$? |
| 7141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7142 | (exit $ac_status); }; } && |
| 7143 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7145 | (eval $ac_try) 2>&5 |
| 7146 | ac_status=$? |
| 7147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7148 | (exit $ac_status); }; }; then |
| 7149 | ac_lo=$ac_mid; break |
| 7150 | else |
| 7151 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7152 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7153 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7154 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7155 | if test $ac_mid -le $ac_hi; then |
| 7156 | ac_lo= ac_hi= |
| 7157 | break |
| 7158 | fi |
| 7159 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7160 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7161 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7162 | done |
| 7163 | else |
| 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 | ac_lo= ac_hi= |
| 7168 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7169 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7170 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7171 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7172 | # Binary search between lo and hi bounds. |
| 7173 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7174 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7175 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7176 | /* confdefs.h. */ |
| 7177 | _ACEOF |
| 7178 | cat confdefs.h >>conftest.$ac_ext |
| 7179 | cat >>conftest.$ac_ext <<_ACEOF |
| 7180 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7181 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7182 | int |
| 7183 | main () |
| 7184 | { |
| 7185 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 7186 | test_array [0] = 0 |
| 7187 | |
| 7188 | ; |
| 7189 | return 0; |
| 7190 | } |
| 7191 | _ACEOF |
| 7192 | rm -f conftest.$ac_objext |
| 7193 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7194 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7195 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7196 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7197 | rm -f conftest.er1 |
| 7198 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7200 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7201 | { ac_try='test -z "$ac_c_werror_flag" |
| 7202 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7204 | (eval $ac_try) 2>&5 |
| 7205 | ac_status=$? |
| 7206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7207 | (exit $ac_status); }; } && |
| 7208 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7210 | (eval $ac_try) 2>&5 |
| 7211 | ac_status=$? |
| 7212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7213 | (exit $ac_status); }; }; then |
| 7214 | ac_hi=$ac_mid |
| 7215 | else |
| 7216 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7217 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7218 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7219 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7220 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7221 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7222 | done |
| 7223 | case $ac_lo in |
| 7224 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7225 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 7226 | See \`config.log' for more details." >&5 |
| 7227 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 7228 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7229 | { (exit 1); exit 1; }; } ;; |
| 7230 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7231 | else |
| 7232 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7233 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7234 | See \`config.log' for more details." >&5 |
| 7235 | echo "$as_me: error: cannot run test program while cross compiling |
| 7236 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7237 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7238 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7239 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7240 | /* confdefs.h. */ |
| 7241 | _ACEOF |
| 7242 | cat confdefs.h >>conftest.$ac_ext |
| 7243 | cat >>conftest.$ac_ext <<_ACEOF |
| 7244 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7245 | $ac_includes_default |
| 7246 | long longval () { return (long) (sizeof (void *)); } |
| 7247 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7248 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7249 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7250 | int |
| 7251 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7252 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7253 | |
| 7254 | FILE *f = fopen ("conftest.val", "w"); |
| 7255 | if (! f) |
| 7256 | exit (1); |
| 7257 | if (((long) (sizeof (void *))) < 0) |
| 7258 | { |
| 7259 | long i = longval (); |
| 7260 | if (i != ((long) (sizeof (void *)))) |
| 7261 | exit (1); |
| 7262 | fprintf (f, "%ld\n", i); |
| 7263 | } |
| 7264 | else |
| 7265 | { |
| 7266 | unsigned long i = ulongval (); |
| 7267 | if (i != ((long) (sizeof (void *)))) |
| 7268 | exit (1); |
| 7269 | fprintf (f, "%lu\n", i); |
| 7270 | } |
| 7271 | exit (ferror (f) || fclose (f) != 0); |
| 7272 | |
| 7273 | ; |
| 7274 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7275 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7276 | _ACEOF |
| 7277 | rm -f conftest$ac_exeext |
| 7278 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7279 | (eval $ac_link) 2>&5 |
| 7280 | ac_status=$? |
| 7281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7282 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7284 | (eval $ac_try) 2>&5 |
| 7285 | ac_status=$? |
| 7286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7287 | (exit $ac_status); }; }; then |
| 7288 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7289 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7290 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7291 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7292 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7293 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7294 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7295 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 7296 | See \`config.log' for more details." >&5 |
| 7297 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 7298 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7299 | { (exit 1); exit 1; }; } |
| 7300 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7301 | 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] | 7302 | fi |
| 7303 | fi |
| 7304 | rm -f conftest.val |
| 7305 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7306 | ac_cv_sizeof_void_p=0 |
| 7307 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7308 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7309 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 7310 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 7311 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7312 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7313 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7314 | |
| 7315 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7316 | echo "$as_me:$LINENO: checking for short" >&5 |
| 7317 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 7318 | if test "${ac_cv_type_short+set}" = set; then |
| 7319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7320 | else |
| 7321 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7322 | /* confdefs.h. */ |
| 7323 | _ACEOF |
| 7324 | cat confdefs.h >>conftest.$ac_ext |
| 7325 | cat >>conftest.$ac_ext <<_ACEOF |
| 7326 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7327 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7328 | int |
| 7329 | main () |
| 7330 | { |
| 7331 | if ((short *) 0) |
| 7332 | return 0; |
| 7333 | if (sizeof (short)) |
| 7334 | return 0; |
| 7335 | ; |
| 7336 | return 0; |
| 7337 | } |
| 7338 | _ACEOF |
| 7339 | rm -f conftest.$ac_objext |
| 7340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7341 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7342 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7343 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7344 | rm -f conftest.er1 |
| 7345 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7347 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7348 | { ac_try='test -z "$ac_c_werror_flag" |
| 7349 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7351 | (eval $ac_try) 2>&5 |
| 7352 | ac_status=$? |
| 7353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7354 | (exit $ac_status); }; } && |
| 7355 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7357 | (eval $ac_try) 2>&5 |
| 7358 | ac_status=$? |
| 7359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7360 | (exit $ac_status); }; }; then |
| 7361 | ac_cv_type_short=yes |
| 7362 | else |
| 7363 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7364 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7365 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7366 | ac_cv_type_short=no |
| 7367 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7368 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7369 | fi |
| 7370 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 7371 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 7372 | |
| 7373 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 7374 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 7375 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 7376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7377 | else |
| 7378 | if test "$ac_cv_type_short" = yes; then |
| 7379 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7380 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7381 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7382 | # This bug is HP SR number 8606223364. |
| 7383 | if test "$cross_compiling" = yes; then |
| 7384 | # Depending upon the size, compute the lo and hi bounds. |
| 7385 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7386 | /* confdefs.h. */ |
| 7387 | _ACEOF |
| 7388 | cat confdefs.h >>conftest.$ac_ext |
| 7389 | cat >>conftest.$ac_ext <<_ACEOF |
| 7390 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7391 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7392 | int |
| 7393 | main () |
| 7394 | { |
| 7395 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 7396 | test_array [0] = 0 |
| 7397 | |
| 7398 | ; |
| 7399 | return 0; |
| 7400 | } |
| 7401 | _ACEOF |
| 7402 | rm -f conftest.$ac_objext |
| 7403 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7404 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7405 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7406 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7407 | rm -f conftest.er1 |
| 7408 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7410 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7411 | { ac_try='test -z "$ac_c_werror_flag" |
| 7412 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7414 | (eval $ac_try) 2>&5 |
| 7415 | ac_status=$? |
| 7416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7417 | (exit $ac_status); }; } && |
| 7418 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7420 | (eval $ac_try) 2>&5 |
| 7421 | ac_status=$? |
| 7422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7423 | (exit $ac_status); }; }; then |
| 7424 | ac_lo=0 ac_mid=0 |
| 7425 | while :; do |
| 7426 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7427 | /* confdefs.h. */ |
| 7428 | _ACEOF |
| 7429 | cat confdefs.h >>conftest.$ac_ext |
| 7430 | cat >>conftest.$ac_ext <<_ACEOF |
| 7431 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7432 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7433 | int |
| 7434 | main () |
| 7435 | { |
| 7436 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7437 | test_array [0] = 0 |
| 7438 | |
| 7439 | ; |
| 7440 | return 0; |
| 7441 | } |
| 7442 | _ACEOF |
| 7443 | rm -f conftest.$ac_objext |
| 7444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7445 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7446 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7447 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7448 | rm -f conftest.er1 |
| 7449 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7451 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7452 | { ac_try='test -z "$ac_c_werror_flag" |
| 7453 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7455 | (eval $ac_try) 2>&5 |
| 7456 | ac_status=$? |
| 7457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7458 | (exit $ac_status); }; } && |
| 7459 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7461 | (eval $ac_try) 2>&5 |
| 7462 | ac_status=$? |
| 7463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7464 | (exit $ac_status); }; }; then |
| 7465 | ac_hi=$ac_mid; break |
| 7466 | else |
| 7467 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7468 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7469 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7470 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7471 | if test $ac_lo -le $ac_mid; then |
| 7472 | ac_lo= ac_hi= |
| 7473 | break |
| 7474 | fi |
| 7475 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7476 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7477 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7478 | done |
| 7479 | else |
| 7480 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7482 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7483 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7484 | /* confdefs.h. */ |
| 7485 | _ACEOF |
| 7486 | cat confdefs.h >>conftest.$ac_ext |
| 7487 | cat >>conftest.$ac_ext <<_ACEOF |
| 7488 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7489 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7490 | int |
| 7491 | main () |
| 7492 | { |
| 7493 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 7494 | test_array [0] = 0 |
| 7495 | |
| 7496 | ; |
| 7497 | return 0; |
| 7498 | } |
| 7499 | _ACEOF |
| 7500 | rm -f conftest.$ac_objext |
| 7501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7502 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7503 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7505 | rm -f conftest.er1 |
| 7506 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7508 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7509 | { ac_try='test -z "$ac_c_werror_flag" |
| 7510 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7512 | (eval $ac_try) 2>&5 |
| 7513 | ac_status=$? |
| 7514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7515 | (exit $ac_status); }; } && |
| 7516 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7518 | (eval $ac_try) 2>&5 |
| 7519 | ac_status=$? |
| 7520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7521 | (exit $ac_status); }; }; then |
| 7522 | ac_hi=-1 ac_mid=-1 |
| 7523 | while :; do |
| 7524 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7525 | /* confdefs.h. */ |
| 7526 | _ACEOF |
| 7527 | cat confdefs.h >>conftest.$ac_ext |
| 7528 | cat >>conftest.$ac_ext <<_ACEOF |
| 7529 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7530 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7531 | int |
| 7532 | main () |
| 7533 | { |
| 7534 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 7535 | test_array [0] = 0 |
| 7536 | |
| 7537 | ; |
| 7538 | return 0; |
| 7539 | } |
| 7540 | _ACEOF |
| 7541 | rm -f conftest.$ac_objext |
| 7542 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7543 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7544 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7545 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7546 | rm -f conftest.er1 |
| 7547 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7549 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7550 | { ac_try='test -z "$ac_c_werror_flag" |
| 7551 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7553 | (eval $ac_try) 2>&5 |
| 7554 | ac_status=$? |
| 7555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7556 | (exit $ac_status); }; } && |
| 7557 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7559 | (eval $ac_try) 2>&5 |
| 7560 | ac_status=$? |
| 7561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7562 | (exit $ac_status); }; }; then |
| 7563 | ac_lo=$ac_mid; break |
| 7564 | else |
| 7565 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7566 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7567 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7568 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7569 | if test $ac_mid -le $ac_hi; then |
| 7570 | ac_lo= ac_hi= |
| 7571 | break |
| 7572 | fi |
| 7573 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7574 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7575 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7576 | done |
| 7577 | else |
| 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 | ac_lo= ac_hi= |
| 7582 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7583 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7584 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7585 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7586 | # Binary search between lo and hi bounds. |
| 7587 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7588 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7589 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7590 | /* confdefs.h. */ |
| 7591 | _ACEOF |
| 7592 | cat confdefs.h >>conftest.$ac_ext |
| 7593 | cat >>conftest.$ac_ext <<_ACEOF |
| 7594 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7595 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7596 | int |
| 7597 | main () |
| 7598 | { |
| 7599 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7600 | test_array [0] = 0 |
| 7601 | |
| 7602 | ; |
| 7603 | return 0; |
| 7604 | } |
| 7605 | _ACEOF |
| 7606 | rm -f conftest.$ac_objext |
| 7607 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7608 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7609 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7610 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7611 | rm -f conftest.er1 |
| 7612 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7614 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7615 | { ac_try='test -z "$ac_c_werror_flag" |
| 7616 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7618 | (eval $ac_try) 2>&5 |
| 7619 | ac_status=$? |
| 7620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7621 | (exit $ac_status); }; } && |
| 7622 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7624 | (eval $ac_try) 2>&5 |
| 7625 | ac_status=$? |
| 7626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7627 | (exit $ac_status); }; }; then |
| 7628 | ac_hi=$ac_mid |
| 7629 | else |
| 7630 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7631 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7632 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7633 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7634 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7635 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7636 | done |
| 7637 | case $ac_lo in |
| 7638 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7639 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 7640 | See \`config.log' for more details." >&5 |
| 7641 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 7642 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7643 | { (exit 1); exit 1; }; } ;; |
| 7644 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7645 | else |
| 7646 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7647 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7648 | See \`config.log' for more details." >&5 |
| 7649 | echo "$as_me: error: cannot run test program while cross compiling |
| 7650 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7651 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7652 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7653 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7654 | /* confdefs.h. */ |
| 7655 | _ACEOF |
| 7656 | cat confdefs.h >>conftest.$ac_ext |
| 7657 | cat >>conftest.$ac_ext <<_ACEOF |
| 7658 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7659 | $ac_includes_default |
| 7660 | long longval () { return (long) (sizeof (short)); } |
| 7661 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7662 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7663 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7664 | int |
| 7665 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7666 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7667 | |
| 7668 | FILE *f = fopen ("conftest.val", "w"); |
| 7669 | if (! f) |
| 7670 | exit (1); |
| 7671 | if (((long) (sizeof (short))) < 0) |
| 7672 | { |
| 7673 | long i = longval (); |
| 7674 | if (i != ((long) (sizeof (short)))) |
| 7675 | exit (1); |
| 7676 | fprintf (f, "%ld\n", i); |
| 7677 | } |
| 7678 | else |
| 7679 | { |
| 7680 | unsigned long i = ulongval (); |
| 7681 | if (i != ((long) (sizeof (short)))) |
| 7682 | exit (1); |
| 7683 | fprintf (f, "%lu\n", i); |
| 7684 | } |
| 7685 | exit (ferror (f) || fclose (f) != 0); |
| 7686 | |
| 7687 | ; |
| 7688 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7689 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7690 | _ACEOF |
| 7691 | rm -f conftest$ac_exeext |
| 7692 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7693 | (eval $ac_link) 2>&5 |
| 7694 | ac_status=$? |
| 7695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7696 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7698 | (eval $ac_try) 2>&5 |
| 7699 | ac_status=$? |
| 7700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7701 | (exit $ac_status); }; }; then |
| 7702 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7703 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7704 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7705 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7706 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7707 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7708 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7709 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 7710 | See \`config.log' for more details." >&5 |
| 7711 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 7712 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7713 | { (exit 1); exit 1; }; } |
| 7714 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7715 | 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] | 7716 | fi |
| 7717 | fi |
| 7718 | rm -f conftest.val |
| 7719 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7720 | ac_cv_sizeof_short=0 |
| 7721 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7722 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7723 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 7724 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 7725 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7726 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7727 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7728 | |
| 7729 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7730 | echo "$as_me:$LINENO: checking for float" >&5 |
| 7731 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 7732 | if test "${ac_cv_type_float+set}" = set; then |
| 7733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7734 | else |
| 7735 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7736 | /* confdefs.h. */ |
| 7737 | _ACEOF |
| 7738 | cat confdefs.h >>conftest.$ac_ext |
| 7739 | cat >>conftest.$ac_ext <<_ACEOF |
| 7740 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7741 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7742 | int |
| 7743 | main () |
| 7744 | { |
| 7745 | if ((float *) 0) |
| 7746 | return 0; |
| 7747 | if (sizeof (float)) |
| 7748 | return 0; |
| 7749 | ; |
| 7750 | return 0; |
| 7751 | } |
| 7752 | _ACEOF |
| 7753 | rm -f conftest.$ac_objext |
| 7754 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7755 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7756 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7757 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7758 | rm -f conftest.er1 |
| 7759 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7761 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7762 | { ac_try='test -z "$ac_c_werror_flag" |
| 7763 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7765 | (eval $ac_try) 2>&5 |
| 7766 | ac_status=$? |
| 7767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7768 | (exit $ac_status); }; } && |
| 7769 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7771 | (eval $ac_try) 2>&5 |
| 7772 | ac_status=$? |
| 7773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7774 | (exit $ac_status); }; }; then |
| 7775 | ac_cv_type_float=yes |
| 7776 | else |
| 7777 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7778 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7779 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7780 | ac_cv_type_float=no |
| 7781 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7782 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7783 | fi |
| 7784 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 7785 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 7786 | |
| 7787 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 7788 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 7789 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 7790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7791 | else |
| 7792 | if test "$ac_cv_type_float" = yes; then |
| 7793 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7794 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7795 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7796 | # This bug is HP SR number 8606223364. |
| 7797 | if test "$cross_compiling" = yes; then |
| 7798 | # Depending upon the size, compute the lo and hi bounds. |
| 7799 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7800 | /* confdefs.h. */ |
| 7801 | _ACEOF |
| 7802 | cat confdefs.h >>conftest.$ac_ext |
| 7803 | cat >>conftest.$ac_ext <<_ACEOF |
| 7804 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7805 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7806 | int |
| 7807 | main () |
| 7808 | { |
| 7809 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 7810 | test_array [0] = 0 |
| 7811 | |
| 7812 | ; |
| 7813 | return 0; |
| 7814 | } |
| 7815 | _ACEOF |
| 7816 | rm -f conftest.$ac_objext |
| 7817 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7818 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7819 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7820 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7821 | rm -f conftest.er1 |
| 7822 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7824 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7825 | { ac_try='test -z "$ac_c_werror_flag" |
| 7826 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7828 | (eval $ac_try) 2>&5 |
| 7829 | ac_status=$? |
| 7830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7831 | (exit $ac_status); }; } && |
| 7832 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7834 | (eval $ac_try) 2>&5 |
| 7835 | ac_status=$? |
| 7836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7837 | (exit $ac_status); }; }; then |
| 7838 | ac_lo=0 ac_mid=0 |
| 7839 | while :; do |
| 7840 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7841 | /* confdefs.h. */ |
| 7842 | _ACEOF |
| 7843 | cat confdefs.h >>conftest.$ac_ext |
| 7844 | cat >>conftest.$ac_ext <<_ACEOF |
| 7845 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7846 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7847 | int |
| 7848 | main () |
| 7849 | { |
| 7850 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7851 | test_array [0] = 0 |
| 7852 | |
| 7853 | ; |
| 7854 | return 0; |
| 7855 | } |
| 7856 | _ACEOF |
| 7857 | rm -f conftest.$ac_objext |
| 7858 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7859 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7860 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7861 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7862 | rm -f conftest.er1 |
| 7863 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7865 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7866 | { ac_try='test -z "$ac_c_werror_flag" |
| 7867 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7869 | (eval $ac_try) 2>&5 |
| 7870 | ac_status=$? |
| 7871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7872 | (exit $ac_status); }; } && |
| 7873 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7875 | (eval $ac_try) 2>&5 |
| 7876 | ac_status=$? |
| 7877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7878 | (exit $ac_status); }; }; then |
| 7879 | ac_hi=$ac_mid; break |
| 7880 | else |
| 7881 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7882 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7883 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7884 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7885 | if test $ac_lo -le $ac_mid; then |
| 7886 | ac_lo= ac_hi= |
| 7887 | break |
| 7888 | fi |
| 7889 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7890 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7891 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7892 | done |
| 7893 | else |
| 7894 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7895 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7896 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7897 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7898 | /* confdefs.h. */ |
| 7899 | _ACEOF |
| 7900 | cat confdefs.h >>conftest.$ac_ext |
| 7901 | cat >>conftest.$ac_ext <<_ACEOF |
| 7902 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7903 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7904 | int |
| 7905 | main () |
| 7906 | { |
| 7907 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 7908 | test_array [0] = 0 |
| 7909 | |
| 7910 | ; |
| 7911 | return 0; |
| 7912 | } |
| 7913 | _ACEOF |
| 7914 | rm -f conftest.$ac_objext |
| 7915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7916 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7917 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7918 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7919 | rm -f conftest.er1 |
| 7920 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7922 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7923 | { ac_try='test -z "$ac_c_werror_flag" |
| 7924 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7926 | (eval $ac_try) 2>&5 |
| 7927 | ac_status=$? |
| 7928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7929 | (exit $ac_status); }; } && |
| 7930 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7932 | (eval $ac_try) 2>&5 |
| 7933 | ac_status=$? |
| 7934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7935 | (exit $ac_status); }; }; then |
| 7936 | ac_hi=-1 ac_mid=-1 |
| 7937 | while :; do |
| 7938 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7939 | /* confdefs.h. */ |
| 7940 | _ACEOF |
| 7941 | cat confdefs.h >>conftest.$ac_ext |
| 7942 | cat >>conftest.$ac_ext <<_ACEOF |
| 7943 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7944 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7945 | int |
| 7946 | main () |
| 7947 | { |
| 7948 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 7949 | test_array [0] = 0 |
| 7950 | |
| 7951 | ; |
| 7952 | return 0; |
| 7953 | } |
| 7954 | _ACEOF |
| 7955 | rm -f conftest.$ac_objext |
| 7956 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7957 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7958 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7959 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7960 | rm -f conftest.er1 |
| 7961 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7963 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7964 | { ac_try='test -z "$ac_c_werror_flag" |
| 7965 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7967 | (eval $ac_try) 2>&5 |
| 7968 | ac_status=$? |
| 7969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7970 | (exit $ac_status); }; } && |
| 7971 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7973 | (eval $ac_try) 2>&5 |
| 7974 | ac_status=$? |
| 7975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7976 | (exit $ac_status); }; }; then |
| 7977 | ac_lo=$ac_mid; break |
| 7978 | else |
| 7979 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7980 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7981 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7982 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7983 | if test $ac_mid -le $ac_hi; then |
| 7984 | ac_lo= ac_hi= |
| 7985 | break |
| 7986 | fi |
| 7987 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7988 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7989 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7990 | done |
| 7991 | else |
| 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 | ac_lo= ac_hi= |
| 7996 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7997 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7998 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7999 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8000 | # Binary search between lo and hi bounds. |
| 8001 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8002 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8003 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8004 | /* confdefs.h. */ |
| 8005 | _ACEOF |
| 8006 | cat confdefs.h >>conftest.$ac_ext |
| 8007 | cat >>conftest.$ac_ext <<_ACEOF |
| 8008 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8009 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8010 | int |
| 8011 | main () |
| 8012 | { |
| 8013 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 8014 | test_array [0] = 0 |
| 8015 | |
| 8016 | ; |
| 8017 | return 0; |
| 8018 | } |
| 8019 | _ACEOF |
| 8020 | rm -f conftest.$ac_objext |
| 8021 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8022 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8023 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8024 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8025 | rm -f conftest.er1 |
| 8026 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8028 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8029 | { ac_try='test -z "$ac_c_werror_flag" |
| 8030 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8032 | (eval $ac_try) 2>&5 |
| 8033 | ac_status=$? |
| 8034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8035 | (exit $ac_status); }; } && |
| 8036 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8038 | (eval $ac_try) 2>&5 |
| 8039 | ac_status=$? |
| 8040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8041 | (exit $ac_status); }; }; then |
| 8042 | ac_hi=$ac_mid |
| 8043 | else |
| 8044 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8045 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8046 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8047 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8048 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8049 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8050 | done |
| 8051 | case $ac_lo in |
| 8052 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8053 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| 8054 | See \`config.log' for more details." >&5 |
| 8055 | echo "$as_me: error: cannot compute sizeof (float), 77 |
| 8056 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8057 | { (exit 1); exit 1; }; } ;; |
| 8058 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8059 | else |
| 8060 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8061 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8062 | See \`config.log' for more details." >&5 |
| 8063 | echo "$as_me: error: cannot run test program while cross compiling |
| 8064 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8065 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8066 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8067 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8068 | /* confdefs.h. */ |
| 8069 | _ACEOF |
| 8070 | cat confdefs.h >>conftest.$ac_ext |
| 8071 | cat >>conftest.$ac_ext <<_ACEOF |
| 8072 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8073 | $ac_includes_default |
| 8074 | long longval () { return (long) (sizeof (float)); } |
| 8075 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8076 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8077 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8078 | int |
| 8079 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8080 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8081 | |
| 8082 | FILE *f = fopen ("conftest.val", "w"); |
| 8083 | if (! f) |
| 8084 | exit (1); |
| 8085 | if (((long) (sizeof (float))) < 0) |
| 8086 | { |
| 8087 | long i = longval (); |
| 8088 | if (i != ((long) (sizeof (float)))) |
| 8089 | exit (1); |
| 8090 | fprintf (f, "%ld\n", i); |
| 8091 | } |
| 8092 | else |
| 8093 | { |
| 8094 | unsigned long i = ulongval (); |
| 8095 | if (i != ((long) (sizeof (float)))) |
| 8096 | exit (1); |
| 8097 | fprintf (f, "%lu\n", i); |
| 8098 | } |
| 8099 | exit (ferror (f) || fclose (f) != 0); |
| 8100 | |
| 8101 | ; |
| 8102 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8103 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8104 | _ACEOF |
| 8105 | rm -f conftest$ac_exeext |
| 8106 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8107 | (eval $ac_link) 2>&5 |
| 8108 | ac_status=$? |
| 8109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8110 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8112 | (eval $ac_try) 2>&5 |
| 8113 | ac_status=$? |
| 8114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8115 | (exit $ac_status); }; }; then |
| 8116 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8117 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8118 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8119 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8121 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8122 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8123 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| 8124 | See \`config.log' for more details." >&5 |
| 8125 | echo "$as_me: error: cannot compute sizeof (float), 77 |
| 8126 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8127 | { (exit 1); exit 1; }; } |
| 8128 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8129 | 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] | 8130 | fi |
| 8131 | fi |
| 8132 | rm -f conftest.val |
| 8133 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8134 | ac_cv_sizeof_float=0 |
| 8135 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8136 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8137 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 8138 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 8139 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8140 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8141 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8142 | |
| 8143 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8144 | echo "$as_me:$LINENO: checking for double" >&5 |
| 8145 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 8146 | if test "${ac_cv_type_double+set}" = set; then |
| 8147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8148 | else |
| 8149 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8150 | /* confdefs.h. */ |
| 8151 | _ACEOF |
| 8152 | cat confdefs.h >>conftest.$ac_ext |
| 8153 | cat >>conftest.$ac_ext <<_ACEOF |
| 8154 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8155 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8156 | int |
| 8157 | main () |
| 8158 | { |
| 8159 | if ((double *) 0) |
| 8160 | return 0; |
| 8161 | if (sizeof (double)) |
| 8162 | return 0; |
| 8163 | ; |
| 8164 | return 0; |
| 8165 | } |
| 8166 | _ACEOF |
| 8167 | rm -f conftest.$ac_objext |
| 8168 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8169 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8170 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8171 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8172 | rm -f conftest.er1 |
| 8173 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8175 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8176 | { ac_try='test -z "$ac_c_werror_flag" |
| 8177 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8179 | (eval $ac_try) 2>&5 |
| 8180 | ac_status=$? |
| 8181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8182 | (exit $ac_status); }; } && |
| 8183 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8185 | (eval $ac_try) 2>&5 |
| 8186 | ac_status=$? |
| 8187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8188 | (exit $ac_status); }; }; then |
| 8189 | ac_cv_type_double=yes |
| 8190 | else |
| 8191 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8192 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8193 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8194 | ac_cv_type_double=no |
| 8195 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8196 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8197 | fi |
| 8198 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 8199 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 8200 | |
| 8201 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 8202 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 8203 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 8204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8205 | else |
| 8206 | if test "$ac_cv_type_double" = yes; then |
| 8207 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8208 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8209 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8210 | # This bug is HP SR number 8606223364. |
| 8211 | if test "$cross_compiling" = yes; then |
| 8212 | # Depending upon the size, compute the lo and hi bounds. |
| 8213 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8214 | /* confdefs.h. */ |
| 8215 | _ACEOF |
| 8216 | cat confdefs.h >>conftest.$ac_ext |
| 8217 | cat >>conftest.$ac_ext <<_ACEOF |
| 8218 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8219 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8220 | int |
| 8221 | main () |
| 8222 | { |
| 8223 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 8224 | test_array [0] = 0 |
| 8225 | |
| 8226 | ; |
| 8227 | return 0; |
| 8228 | } |
| 8229 | _ACEOF |
| 8230 | rm -f conftest.$ac_objext |
| 8231 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8232 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8233 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8234 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8235 | rm -f conftest.er1 |
| 8236 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8238 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8239 | { ac_try='test -z "$ac_c_werror_flag" |
| 8240 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8242 | (eval $ac_try) 2>&5 |
| 8243 | ac_status=$? |
| 8244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8245 | (exit $ac_status); }; } && |
| 8246 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8248 | (eval $ac_try) 2>&5 |
| 8249 | ac_status=$? |
| 8250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8251 | (exit $ac_status); }; }; then |
| 8252 | ac_lo=0 ac_mid=0 |
| 8253 | while :; do |
| 8254 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8255 | /* confdefs.h. */ |
| 8256 | _ACEOF |
| 8257 | cat confdefs.h >>conftest.$ac_ext |
| 8258 | cat >>conftest.$ac_ext <<_ACEOF |
| 8259 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8260 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8261 | int |
| 8262 | main () |
| 8263 | { |
| 8264 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 8265 | test_array [0] = 0 |
| 8266 | |
| 8267 | ; |
| 8268 | return 0; |
| 8269 | } |
| 8270 | _ACEOF |
| 8271 | rm -f conftest.$ac_objext |
| 8272 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8273 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8274 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8275 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8276 | rm -f conftest.er1 |
| 8277 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8279 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8280 | { ac_try='test -z "$ac_c_werror_flag" |
| 8281 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8283 | (eval $ac_try) 2>&5 |
| 8284 | ac_status=$? |
| 8285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8286 | (exit $ac_status); }; } && |
| 8287 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8289 | (eval $ac_try) 2>&5 |
| 8290 | ac_status=$? |
| 8291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8292 | (exit $ac_status); }; }; then |
| 8293 | ac_hi=$ac_mid; break |
| 8294 | else |
| 8295 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8297 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8298 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8299 | if test $ac_lo -le $ac_mid; then |
| 8300 | ac_lo= ac_hi= |
| 8301 | break |
| 8302 | fi |
| 8303 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8304 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8305 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8306 | done |
| 8307 | else |
| 8308 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8310 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8311 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8312 | /* confdefs.h. */ |
| 8313 | _ACEOF |
| 8314 | cat confdefs.h >>conftest.$ac_ext |
| 8315 | cat >>conftest.$ac_ext <<_ACEOF |
| 8316 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8317 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8318 | int |
| 8319 | main () |
| 8320 | { |
| 8321 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 8322 | test_array [0] = 0 |
| 8323 | |
| 8324 | ; |
| 8325 | return 0; |
| 8326 | } |
| 8327 | _ACEOF |
| 8328 | rm -f conftest.$ac_objext |
| 8329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8330 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8331 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8333 | rm -f conftest.er1 |
| 8334 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8336 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8337 | { ac_try='test -z "$ac_c_werror_flag" |
| 8338 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8340 | (eval $ac_try) 2>&5 |
| 8341 | ac_status=$? |
| 8342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8343 | (exit $ac_status); }; } && |
| 8344 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8346 | (eval $ac_try) 2>&5 |
| 8347 | ac_status=$? |
| 8348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8349 | (exit $ac_status); }; }; then |
| 8350 | ac_hi=-1 ac_mid=-1 |
| 8351 | while :; do |
| 8352 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8353 | /* confdefs.h. */ |
| 8354 | _ACEOF |
| 8355 | cat confdefs.h >>conftest.$ac_ext |
| 8356 | cat >>conftest.$ac_ext <<_ACEOF |
| 8357 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8358 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8359 | int |
| 8360 | main () |
| 8361 | { |
| 8362 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 8363 | test_array [0] = 0 |
| 8364 | |
| 8365 | ; |
| 8366 | return 0; |
| 8367 | } |
| 8368 | _ACEOF |
| 8369 | rm -f conftest.$ac_objext |
| 8370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8371 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8372 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8373 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8374 | rm -f conftest.er1 |
| 8375 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8377 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8378 | { ac_try='test -z "$ac_c_werror_flag" |
| 8379 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8381 | (eval $ac_try) 2>&5 |
| 8382 | ac_status=$? |
| 8383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8384 | (exit $ac_status); }; } && |
| 8385 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8387 | (eval $ac_try) 2>&5 |
| 8388 | ac_status=$? |
| 8389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8390 | (exit $ac_status); }; }; then |
| 8391 | ac_lo=$ac_mid; break |
| 8392 | else |
| 8393 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8394 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8395 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8396 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8397 | if test $ac_mid -le $ac_hi; then |
| 8398 | ac_lo= ac_hi= |
| 8399 | break |
| 8400 | fi |
| 8401 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8402 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8403 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8404 | done |
| 8405 | else |
| 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 | ac_lo= ac_hi= |
| 8410 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8411 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8412 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8414 | # Binary search between lo and hi bounds. |
| 8415 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8416 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8417 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8418 | /* confdefs.h. */ |
| 8419 | _ACEOF |
| 8420 | cat confdefs.h >>conftest.$ac_ext |
| 8421 | cat >>conftest.$ac_ext <<_ACEOF |
| 8422 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8423 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8424 | int |
| 8425 | main () |
| 8426 | { |
| 8427 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 8428 | test_array [0] = 0 |
| 8429 | |
| 8430 | ; |
| 8431 | return 0; |
| 8432 | } |
| 8433 | _ACEOF |
| 8434 | rm -f conftest.$ac_objext |
| 8435 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8436 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8437 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8438 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8439 | rm -f conftest.er1 |
| 8440 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8442 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8443 | { ac_try='test -z "$ac_c_werror_flag" |
| 8444 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8446 | (eval $ac_try) 2>&5 |
| 8447 | ac_status=$? |
| 8448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8449 | (exit $ac_status); }; } && |
| 8450 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8452 | (eval $ac_try) 2>&5 |
| 8453 | ac_status=$? |
| 8454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8455 | (exit $ac_status); }; }; then |
| 8456 | ac_hi=$ac_mid |
| 8457 | else |
| 8458 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8459 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8460 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8461 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8462 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8463 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8464 | done |
| 8465 | case $ac_lo in |
| 8466 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8467 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| 8468 | See \`config.log' for more details." >&5 |
| 8469 | echo "$as_me: error: cannot compute sizeof (double), 77 |
| 8470 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8471 | { (exit 1); exit 1; }; } ;; |
| 8472 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8473 | else |
| 8474 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8475 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8476 | See \`config.log' for more details." >&5 |
| 8477 | echo "$as_me: error: cannot run test program while cross compiling |
| 8478 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8479 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8480 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8481 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8482 | /* confdefs.h. */ |
| 8483 | _ACEOF |
| 8484 | cat confdefs.h >>conftest.$ac_ext |
| 8485 | cat >>conftest.$ac_ext <<_ACEOF |
| 8486 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8487 | $ac_includes_default |
| 8488 | long longval () { return (long) (sizeof (double)); } |
| 8489 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8490 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8491 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8492 | int |
| 8493 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8494 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8495 | |
| 8496 | FILE *f = fopen ("conftest.val", "w"); |
| 8497 | if (! f) |
| 8498 | exit (1); |
| 8499 | if (((long) (sizeof (double))) < 0) |
| 8500 | { |
| 8501 | long i = longval (); |
| 8502 | if (i != ((long) (sizeof (double)))) |
| 8503 | exit (1); |
| 8504 | fprintf (f, "%ld\n", i); |
| 8505 | } |
| 8506 | else |
| 8507 | { |
| 8508 | unsigned long i = ulongval (); |
| 8509 | if (i != ((long) (sizeof (double)))) |
| 8510 | exit (1); |
| 8511 | fprintf (f, "%lu\n", i); |
| 8512 | } |
| 8513 | exit (ferror (f) || fclose (f) != 0); |
| 8514 | |
| 8515 | ; |
| 8516 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8517 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8518 | _ACEOF |
| 8519 | rm -f conftest$ac_exeext |
| 8520 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8521 | (eval $ac_link) 2>&5 |
| 8522 | ac_status=$? |
| 8523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8524 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8526 | (eval $ac_try) 2>&5 |
| 8527 | ac_status=$? |
| 8528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8529 | (exit $ac_status); }; }; then |
| 8530 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8531 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8532 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8533 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8535 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8536 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8537 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| 8538 | See \`config.log' for more details." >&5 |
| 8539 | echo "$as_me: error: cannot compute sizeof (double), 77 |
| 8540 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8541 | { (exit 1); exit 1; }; } |
| 8542 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8543 | 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] | 8544 | fi |
| 8545 | fi |
| 8546 | rm -f conftest.val |
| 8547 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8548 | ac_cv_sizeof_double=0 |
| 8549 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8550 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8551 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 8552 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 8553 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8554 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8555 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8556 | |
| 8557 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8558 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 8559 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 8560 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 8561 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8562 | else |
| 8563 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8564 | /* confdefs.h. */ |
| 8565 | _ACEOF |
| 8566 | cat confdefs.h >>conftest.$ac_ext |
| 8567 | cat >>conftest.$ac_ext <<_ACEOF |
| 8568 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8569 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8570 | int |
| 8571 | main () |
| 8572 | { |
| 8573 | if ((fpos_t *) 0) |
| 8574 | return 0; |
| 8575 | if (sizeof (fpos_t)) |
| 8576 | return 0; |
| 8577 | ; |
| 8578 | return 0; |
| 8579 | } |
| 8580 | _ACEOF |
| 8581 | rm -f conftest.$ac_objext |
| 8582 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8583 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8584 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8585 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8586 | rm -f conftest.er1 |
| 8587 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8589 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8590 | { ac_try='test -z "$ac_c_werror_flag" |
| 8591 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8593 | (eval $ac_try) 2>&5 |
| 8594 | ac_status=$? |
| 8595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8596 | (exit $ac_status); }; } && |
| 8597 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8599 | (eval $ac_try) 2>&5 |
| 8600 | ac_status=$? |
| 8601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8602 | (exit $ac_status); }; }; then |
| 8603 | ac_cv_type_fpos_t=yes |
| 8604 | else |
| 8605 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8606 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8607 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8608 | ac_cv_type_fpos_t=no |
| 8609 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8610 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8611 | fi |
| 8612 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 8613 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 8614 | |
| 8615 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 8616 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 8617 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 8618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8619 | else |
| 8620 | if test "$ac_cv_type_fpos_t" = yes; then |
| 8621 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8622 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8623 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8624 | # This bug is HP SR number 8606223364. |
| 8625 | if test "$cross_compiling" = yes; then |
| 8626 | # Depending upon the size, compute the lo and hi bounds. |
| 8627 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8628 | /* confdefs.h. */ |
| 8629 | _ACEOF |
| 8630 | cat confdefs.h >>conftest.$ac_ext |
| 8631 | cat >>conftest.$ac_ext <<_ACEOF |
| 8632 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8633 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8634 | int |
| 8635 | main () |
| 8636 | { |
| 8637 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 8638 | test_array [0] = 0 |
| 8639 | |
| 8640 | ; |
| 8641 | return 0; |
| 8642 | } |
| 8643 | _ACEOF |
| 8644 | rm -f conftest.$ac_objext |
| 8645 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8646 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8647 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8648 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8649 | rm -f conftest.er1 |
| 8650 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8652 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8653 | { ac_try='test -z "$ac_c_werror_flag" |
| 8654 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8656 | (eval $ac_try) 2>&5 |
| 8657 | ac_status=$? |
| 8658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8659 | (exit $ac_status); }; } && |
| 8660 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8662 | (eval $ac_try) 2>&5 |
| 8663 | ac_status=$? |
| 8664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8665 | (exit $ac_status); }; }; then |
| 8666 | ac_lo=0 ac_mid=0 |
| 8667 | while :; do |
| 8668 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8669 | /* confdefs.h. */ |
| 8670 | _ACEOF |
| 8671 | cat confdefs.h >>conftest.$ac_ext |
| 8672 | cat >>conftest.$ac_ext <<_ACEOF |
| 8673 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8674 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8675 | int |
| 8676 | main () |
| 8677 | { |
| 8678 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8679 | test_array [0] = 0 |
| 8680 | |
| 8681 | ; |
| 8682 | return 0; |
| 8683 | } |
| 8684 | _ACEOF |
| 8685 | rm -f conftest.$ac_objext |
| 8686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8687 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8688 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8689 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8690 | rm -f conftest.er1 |
| 8691 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8693 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8694 | { ac_try='test -z "$ac_c_werror_flag" |
| 8695 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8697 | (eval $ac_try) 2>&5 |
| 8698 | ac_status=$? |
| 8699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8700 | (exit $ac_status); }; } && |
| 8701 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8703 | (eval $ac_try) 2>&5 |
| 8704 | ac_status=$? |
| 8705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8706 | (exit $ac_status); }; }; then |
| 8707 | ac_hi=$ac_mid; break |
| 8708 | else |
| 8709 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8710 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8711 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8712 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8713 | if test $ac_lo -le $ac_mid; then |
| 8714 | ac_lo= ac_hi= |
| 8715 | break |
| 8716 | fi |
| 8717 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8718 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8719 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8720 | done |
| 8721 | else |
| 8722 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8724 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8725 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8726 | /* confdefs.h. */ |
| 8727 | _ACEOF |
| 8728 | cat confdefs.h >>conftest.$ac_ext |
| 8729 | cat >>conftest.$ac_ext <<_ACEOF |
| 8730 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8731 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8732 | int |
| 8733 | main () |
| 8734 | { |
| 8735 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 8736 | test_array [0] = 0 |
| 8737 | |
| 8738 | ; |
| 8739 | return 0; |
| 8740 | } |
| 8741 | _ACEOF |
| 8742 | rm -f conftest.$ac_objext |
| 8743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8744 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8745 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8746 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8747 | rm -f conftest.er1 |
| 8748 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8750 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8751 | { ac_try='test -z "$ac_c_werror_flag" |
| 8752 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8754 | (eval $ac_try) 2>&5 |
| 8755 | ac_status=$? |
| 8756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8757 | (exit $ac_status); }; } && |
| 8758 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8760 | (eval $ac_try) 2>&5 |
| 8761 | ac_status=$? |
| 8762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8763 | (exit $ac_status); }; }; then |
| 8764 | ac_hi=-1 ac_mid=-1 |
| 8765 | while :; do |
| 8766 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8767 | /* confdefs.h. */ |
| 8768 | _ACEOF |
| 8769 | cat confdefs.h >>conftest.$ac_ext |
| 8770 | cat >>conftest.$ac_ext <<_ACEOF |
| 8771 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8772 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8773 | int |
| 8774 | main () |
| 8775 | { |
| 8776 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 8777 | test_array [0] = 0 |
| 8778 | |
| 8779 | ; |
| 8780 | return 0; |
| 8781 | } |
| 8782 | _ACEOF |
| 8783 | rm -f conftest.$ac_objext |
| 8784 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8785 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8786 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8787 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8788 | rm -f conftest.er1 |
| 8789 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8791 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8792 | { ac_try='test -z "$ac_c_werror_flag" |
| 8793 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8795 | (eval $ac_try) 2>&5 |
| 8796 | ac_status=$? |
| 8797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8798 | (exit $ac_status); }; } && |
| 8799 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8801 | (eval $ac_try) 2>&5 |
| 8802 | ac_status=$? |
| 8803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8804 | (exit $ac_status); }; }; then |
| 8805 | ac_lo=$ac_mid; break |
| 8806 | else |
| 8807 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8808 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8809 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8810 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8811 | if test $ac_mid -le $ac_hi; then |
| 8812 | ac_lo= ac_hi= |
| 8813 | break |
| 8814 | fi |
| 8815 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8816 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8817 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8818 | done |
| 8819 | else |
| 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 | ac_lo= ac_hi= |
| 8824 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8825 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8826 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8827 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8828 | # Binary search between lo and hi bounds. |
| 8829 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8830 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8831 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8832 | /* confdefs.h. */ |
| 8833 | _ACEOF |
| 8834 | cat confdefs.h >>conftest.$ac_ext |
| 8835 | cat >>conftest.$ac_ext <<_ACEOF |
| 8836 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8837 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8838 | int |
| 8839 | main () |
| 8840 | { |
| 8841 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8842 | test_array [0] = 0 |
| 8843 | |
| 8844 | ; |
| 8845 | return 0; |
| 8846 | } |
| 8847 | _ACEOF |
| 8848 | rm -f conftest.$ac_objext |
| 8849 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8850 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8851 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8852 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8853 | rm -f conftest.er1 |
| 8854 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8856 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8857 | { ac_try='test -z "$ac_c_werror_flag" |
| 8858 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8860 | (eval $ac_try) 2>&5 |
| 8861 | ac_status=$? |
| 8862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8863 | (exit $ac_status); }; } && |
| 8864 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8866 | (eval $ac_try) 2>&5 |
| 8867 | ac_status=$? |
| 8868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8869 | (exit $ac_status); }; }; then |
| 8870 | ac_hi=$ac_mid |
| 8871 | else |
| 8872 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8873 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8874 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8875 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8876 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8877 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8878 | done |
| 8879 | case $ac_lo in |
| 8880 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8881 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| 8882 | See \`config.log' for more details." >&5 |
| 8883 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| 8884 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8885 | { (exit 1); exit 1; }; } ;; |
| 8886 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8887 | else |
| 8888 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8889 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8890 | See \`config.log' for more details." >&5 |
| 8891 | echo "$as_me: error: cannot run test program while cross compiling |
| 8892 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8893 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8894 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8895 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8896 | /* confdefs.h. */ |
| 8897 | _ACEOF |
| 8898 | cat confdefs.h >>conftest.$ac_ext |
| 8899 | cat >>conftest.$ac_ext <<_ACEOF |
| 8900 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8901 | $ac_includes_default |
| 8902 | long longval () { return (long) (sizeof (fpos_t)); } |
| 8903 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8904 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8905 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8906 | int |
| 8907 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8908 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8909 | |
| 8910 | FILE *f = fopen ("conftest.val", "w"); |
| 8911 | if (! f) |
| 8912 | exit (1); |
| 8913 | if (((long) (sizeof (fpos_t))) < 0) |
| 8914 | { |
| 8915 | long i = longval (); |
| 8916 | if (i != ((long) (sizeof (fpos_t)))) |
| 8917 | exit (1); |
| 8918 | fprintf (f, "%ld\n", i); |
| 8919 | } |
| 8920 | else |
| 8921 | { |
| 8922 | unsigned long i = ulongval (); |
| 8923 | if (i != ((long) (sizeof (fpos_t)))) |
| 8924 | exit (1); |
| 8925 | fprintf (f, "%lu\n", i); |
| 8926 | } |
| 8927 | exit (ferror (f) || fclose (f) != 0); |
| 8928 | |
| 8929 | ; |
| 8930 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8931 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8932 | _ACEOF |
| 8933 | rm -f conftest$ac_exeext |
| 8934 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8935 | (eval $ac_link) 2>&5 |
| 8936 | ac_status=$? |
| 8937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8938 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8940 | (eval $ac_try) 2>&5 |
| 8941 | ac_status=$? |
| 8942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8943 | (exit $ac_status); }; }; then |
| 8944 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8945 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8946 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8947 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8948 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8949 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8950 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8951 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| 8952 | See \`config.log' for more details." >&5 |
| 8953 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| 8954 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8955 | { (exit 1); exit 1; }; } |
| 8956 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8957 | 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] | 8958 | fi |
| 8959 | fi |
| 8960 | rm -f conftest.val |
| 8961 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8962 | ac_cv_sizeof_fpos_t=0 |
| 8963 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8964 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8965 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 8966 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 8967 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8968 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8969 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8970 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8971 | |
| 8972 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8973 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 8974 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8975 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8976 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8977 | /* confdefs.h. */ |
| 8978 | _ACEOF |
| 8979 | cat confdefs.h >>conftest.$ac_ext |
| 8980 | cat >>conftest.$ac_ext <<_ACEOF |
| 8981 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8982 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8983 | int |
| 8984 | main () |
| 8985 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8986 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8987 | ; |
| 8988 | return 0; |
| 8989 | } |
| 8990 | _ACEOF |
| 8991 | rm -f conftest.$ac_objext |
| 8992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8993 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8994 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8995 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8996 | rm -f conftest.er1 |
| 8997 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8999 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9000 | { ac_try='test -z "$ac_c_werror_flag" |
| 9001 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9003 | (eval $ac_try) 2>&5 |
| 9004 | ac_status=$? |
| 9005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9006 | (exit $ac_status); }; } && |
| 9007 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9009 | (eval $ac_try) 2>&5 |
| 9010 | ac_status=$? |
| 9011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9012 | (exit $ac_status); }; }; then |
| 9013 | |
| 9014 | |
| 9015 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9016 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9017 | _ACEOF |
| 9018 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 9019 | have_long_long=yes |
| 9020 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9021 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9022 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9024 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9025 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9026 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9027 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 9028 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 9029 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9030 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 9031 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 9032 | if test "${ac_cv_type_long_long+set}" = set; then |
| 9033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9034 | else |
| 9035 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9036 | /* confdefs.h. */ |
| 9037 | _ACEOF |
| 9038 | cat confdefs.h >>conftest.$ac_ext |
| 9039 | cat >>conftest.$ac_ext <<_ACEOF |
| 9040 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9041 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9042 | int |
| 9043 | main () |
| 9044 | { |
| 9045 | if ((long long *) 0) |
| 9046 | return 0; |
| 9047 | if (sizeof (long long)) |
| 9048 | return 0; |
| 9049 | ; |
| 9050 | return 0; |
| 9051 | } |
| 9052 | _ACEOF |
| 9053 | rm -f conftest.$ac_objext |
| 9054 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9055 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9056 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9057 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9058 | rm -f conftest.er1 |
| 9059 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9061 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9062 | { ac_try='test -z "$ac_c_werror_flag" |
| 9063 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9065 | (eval $ac_try) 2>&5 |
| 9066 | ac_status=$? |
| 9067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9068 | (exit $ac_status); }; } && |
| 9069 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9071 | (eval $ac_try) 2>&5 |
| 9072 | ac_status=$? |
| 9073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9074 | (exit $ac_status); }; }; then |
| 9075 | ac_cv_type_long_long=yes |
| 9076 | else |
| 9077 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9078 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9079 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9080 | ac_cv_type_long_long=no |
| 9081 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9082 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9083 | fi |
| 9084 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 9085 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 9086 | |
| 9087 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 9088 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 9089 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 9090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9091 | else |
| 9092 | if test "$ac_cv_type_long_long" = yes; then |
| 9093 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 9094 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9095 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9096 | # This bug is HP SR number 8606223364. |
| 9097 | if test "$cross_compiling" = yes; then |
| 9098 | # Depending upon the size, compute the lo and hi bounds. |
| 9099 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9100 | /* confdefs.h. */ |
| 9101 | _ACEOF |
| 9102 | cat confdefs.h >>conftest.$ac_ext |
| 9103 | cat >>conftest.$ac_ext <<_ACEOF |
| 9104 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9105 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9106 | int |
| 9107 | main () |
| 9108 | { |
| 9109 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 9110 | test_array [0] = 0 |
| 9111 | |
| 9112 | ; |
| 9113 | return 0; |
| 9114 | } |
| 9115 | _ACEOF |
| 9116 | rm -f conftest.$ac_objext |
| 9117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9118 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9119 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9120 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9121 | rm -f conftest.er1 |
| 9122 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9124 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9125 | { ac_try='test -z "$ac_c_werror_flag" |
| 9126 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9128 | (eval $ac_try) 2>&5 |
| 9129 | ac_status=$? |
| 9130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9131 | (exit $ac_status); }; } && |
| 9132 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9134 | (eval $ac_try) 2>&5 |
| 9135 | ac_status=$? |
| 9136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9137 | (exit $ac_status); }; }; then |
| 9138 | ac_lo=0 ac_mid=0 |
| 9139 | while :; do |
| 9140 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9141 | /* confdefs.h. */ |
| 9142 | _ACEOF |
| 9143 | cat confdefs.h >>conftest.$ac_ext |
| 9144 | cat >>conftest.$ac_ext <<_ACEOF |
| 9145 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9146 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9147 | int |
| 9148 | main () |
| 9149 | { |
| 9150 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 9151 | test_array [0] = 0 |
| 9152 | |
| 9153 | ; |
| 9154 | return 0; |
| 9155 | } |
| 9156 | _ACEOF |
| 9157 | rm -f conftest.$ac_objext |
| 9158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9159 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9160 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9162 | rm -f conftest.er1 |
| 9163 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9165 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9166 | { ac_try='test -z "$ac_c_werror_flag" |
| 9167 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9169 | (eval $ac_try) 2>&5 |
| 9170 | ac_status=$? |
| 9171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9172 | (exit $ac_status); }; } && |
| 9173 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9175 | (eval $ac_try) 2>&5 |
| 9176 | ac_status=$? |
| 9177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9178 | (exit $ac_status); }; }; then |
| 9179 | ac_hi=$ac_mid; break |
| 9180 | else |
| 9181 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9183 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9184 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9185 | if test $ac_lo -le $ac_mid; then |
| 9186 | ac_lo= ac_hi= |
| 9187 | break |
| 9188 | fi |
| 9189 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9190 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9191 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9192 | done |
| 9193 | else |
| 9194 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9195 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9196 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9197 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9198 | /* confdefs.h. */ |
| 9199 | _ACEOF |
| 9200 | cat confdefs.h >>conftest.$ac_ext |
| 9201 | cat >>conftest.$ac_ext <<_ACEOF |
| 9202 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9203 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9204 | int |
| 9205 | main () |
| 9206 | { |
| 9207 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 9208 | test_array [0] = 0 |
| 9209 | |
| 9210 | ; |
| 9211 | return 0; |
| 9212 | } |
| 9213 | _ACEOF |
| 9214 | rm -f conftest.$ac_objext |
| 9215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9216 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9217 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9218 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9219 | rm -f conftest.er1 |
| 9220 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9222 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9223 | { ac_try='test -z "$ac_c_werror_flag" |
| 9224 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9226 | (eval $ac_try) 2>&5 |
| 9227 | ac_status=$? |
| 9228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9229 | (exit $ac_status); }; } && |
| 9230 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9232 | (eval $ac_try) 2>&5 |
| 9233 | ac_status=$? |
| 9234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9235 | (exit $ac_status); }; }; then |
| 9236 | ac_hi=-1 ac_mid=-1 |
| 9237 | while :; do |
| 9238 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9239 | /* confdefs.h. */ |
| 9240 | _ACEOF |
| 9241 | cat confdefs.h >>conftest.$ac_ext |
| 9242 | cat >>conftest.$ac_ext <<_ACEOF |
| 9243 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9244 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9245 | int |
| 9246 | main () |
| 9247 | { |
| 9248 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 9249 | test_array [0] = 0 |
| 9250 | |
| 9251 | ; |
| 9252 | return 0; |
| 9253 | } |
| 9254 | _ACEOF |
| 9255 | rm -f conftest.$ac_objext |
| 9256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9257 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9258 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9259 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9260 | rm -f conftest.er1 |
| 9261 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9263 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9264 | { ac_try='test -z "$ac_c_werror_flag" |
| 9265 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9267 | (eval $ac_try) 2>&5 |
| 9268 | ac_status=$? |
| 9269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9270 | (exit $ac_status); }; } && |
| 9271 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9273 | (eval $ac_try) 2>&5 |
| 9274 | ac_status=$? |
| 9275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9276 | (exit $ac_status); }; }; then |
| 9277 | ac_lo=$ac_mid; break |
| 9278 | else |
| 9279 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9280 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9281 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9282 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9283 | if test $ac_mid -le $ac_hi; then |
| 9284 | ac_lo= ac_hi= |
| 9285 | break |
| 9286 | fi |
| 9287 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9288 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9289 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9290 | done |
| 9291 | else |
| 9292 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9293 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9294 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9295 | ac_lo= ac_hi= |
| 9296 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9297 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9298 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9299 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9300 | # Binary search between lo and hi bounds. |
| 9301 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9302 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9303 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9304 | /* confdefs.h. */ |
| 9305 | _ACEOF |
| 9306 | cat confdefs.h >>conftest.$ac_ext |
| 9307 | cat >>conftest.$ac_ext <<_ACEOF |
| 9308 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9309 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9310 | int |
| 9311 | main () |
| 9312 | { |
| 9313 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 9314 | test_array [0] = 0 |
| 9315 | |
| 9316 | ; |
| 9317 | return 0; |
| 9318 | } |
| 9319 | _ACEOF |
| 9320 | rm -f conftest.$ac_objext |
| 9321 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9322 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9323 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9324 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9325 | rm -f conftest.er1 |
| 9326 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9328 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9329 | { ac_try='test -z "$ac_c_werror_flag" |
| 9330 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9332 | (eval $ac_try) 2>&5 |
| 9333 | ac_status=$? |
| 9334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9335 | (exit $ac_status); }; } && |
| 9336 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9338 | (eval $ac_try) 2>&5 |
| 9339 | ac_status=$? |
| 9340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9341 | (exit $ac_status); }; }; then |
| 9342 | ac_hi=$ac_mid |
| 9343 | else |
| 9344 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9345 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9346 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9347 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9348 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9349 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9350 | done |
| 9351 | case $ac_lo in |
| 9352 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9353 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 9354 | See \`config.log' for more details." >&5 |
| 9355 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 9356 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9357 | { (exit 1); exit 1; }; } ;; |
| 9358 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9359 | else |
| 9360 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9361 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 9362 | See \`config.log' for more details." >&5 |
| 9363 | echo "$as_me: error: cannot run test program while cross compiling |
| 9364 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9365 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9366 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9367 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9368 | /* confdefs.h. */ |
| 9369 | _ACEOF |
| 9370 | cat confdefs.h >>conftest.$ac_ext |
| 9371 | cat >>conftest.$ac_ext <<_ACEOF |
| 9372 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9373 | $ac_includes_default |
| 9374 | long longval () { return (long) (sizeof (long long)); } |
| 9375 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9376 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9377 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9378 | int |
| 9379 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9380 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9381 | |
| 9382 | FILE *f = fopen ("conftest.val", "w"); |
| 9383 | if (! f) |
| 9384 | exit (1); |
| 9385 | if (((long) (sizeof (long long))) < 0) |
| 9386 | { |
| 9387 | long i = longval (); |
| 9388 | if (i != ((long) (sizeof (long long)))) |
| 9389 | exit (1); |
| 9390 | fprintf (f, "%ld\n", i); |
| 9391 | } |
| 9392 | else |
| 9393 | { |
| 9394 | unsigned long i = ulongval (); |
| 9395 | if (i != ((long) (sizeof (long long)))) |
| 9396 | exit (1); |
| 9397 | fprintf (f, "%lu\n", i); |
| 9398 | } |
| 9399 | exit (ferror (f) || fclose (f) != 0); |
| 9400 | |
| 9401 | ; |
| 9402 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9403 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9404 | _ACEOF |
| 9405 | rm -f conftest$ac_exeext |
| 9406 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9407 | (eval $ac_link) 2>&5 |
| 9408 | ac_status=$? |
| 9409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9410 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9412 | (eval $ac_try) 2>&5 |
| 9413 | ac_status=$? |
| 9414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9415 | (exit $ac_status); }; }; then |
| 9416 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9417 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9418 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9419 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9420 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9421 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9422 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9423 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 9424 | See \`config.log' for more details." >&5 |
| 9425 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 9426 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9427 | { (exit 1); exit 1; }; } |
| 9428 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9429 | 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] | 9430 | fi |
| 9431 | fi |
| 9432 | rm -f conftest.val |
| 9433 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9434 | ac_cv_sizeof_long_long=0 |
| 9435 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9436 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9437 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 9438 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 9439 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9440 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9441 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9442 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9443 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9444 | fi |
| 9445 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9446 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 9447 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9448 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9449 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9450 | /* confdefs.h. */ |
| 9451 | _ACEOF |
| 9452 | cat confdefs.h >>conftest.$ac_ext |
| 9453 | cat >>conftest.$ac_ext <<_ACEOF |
| 9454 | /* end confdefs.h. */ |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9455 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9456 | int |
| 9457 | main () |
| 9458 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9459 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9460 | ; |
| 9461 | return 0; |
| 9462 | } |
| 9463 | _ACEOF |
| 9464 | rm -f conftest.$ac_objext |
| 9465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9466 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9467 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9468 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9469 | rm -f conftest.er1 |
| 9470 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9472 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9473 | { ac_try='test -z "$ac_c_werror_flag" |
| 9474 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9476 | (eval $ac_try) 2>&5 |
| 9477 | ac_status=$? |
| 9478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9479 | (exit $ac_status); }; } && |
| 9480 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9482 | (eval $ac_try) 2>&5 |
| 9483 | ac_status=$? |
| 9484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9485 | (exit $ac_status); }; }; then |
| 9486 | |
| 9487 | |
| 9488 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9489 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9490 | _ACEOF |
| 9491 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 9492 | have_uintptr_t=yes |
| 9493 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9494 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9495 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9496 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9497 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9498 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9499 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9500 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 9501 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9502 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9503 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 9504 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 9505 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 9506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9507 | else |
| 9508 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9509 | /* confdefs.h. */ |
| 9510 | _ACEOF |
| 9511 | cat confdefs.h >>conftest.$ac_ext |
| 9512 | cat >>conftest.$ac_ext <<_ACEOF |
| 9513 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9514 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9515 | int |
| 9516 | main () |
| 9517 | { |
| 9518 | if ((uintptr_t *) 0) |
| 9519 | return 0; |
| 9520 | if (sizeof (uintptr_t)) |
| 9521 | return 0; |
| 9522 | ; |
| 9523 | return 0; |
| 9524 | } |
| 9525 | _ACEOF |
| 9526 | rm -f conftest.$ac_objext |
| 9527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9528 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9529 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9530 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9531 | rm -f conftest.er1 |
| 9532 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9534 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9535 | { ac_try='test -z "$ac_c_werror_flag" |
| 9536 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9538 | (eval $ac_try) 2>&5 |
| 9539 | ac_status=$? |
| 9540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9541 | (exit $ac_status); }; } && |
| 9542 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9544 | (eval $ac_try) 2>&5 |
| 9545 | ac_status=$? |
| 9546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9547 | (exit $ac_status); }; }; then |
| 9548 | ac_cv_type_uintptr_t=yes |
| 9549 | else |
| 9550 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9552 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9553 | ac_cv_type_uintptr_t=no |
| 9554 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9555 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9556 | fi |
| 9557 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 9558 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 9559 | |
| 9560 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 9561 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 9562 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 9563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9564 | else |
| 9565 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 9566 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 9567 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9568 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9569 | # This bug is HP SR number 8606223364. |
| 9570 | if test "$cross_compiling" = yes; then |
| 9571 | # Depending upon the size, compute the lo and hi bounds. |
| 9572 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9573 | /* confdefs.h. */ |
| 9574 | _ACEOF |
| 9575 | cat confdefs.h >>conftest.$ac_ext |
| 9576 | cat >>conftest.$ac_ext <<_ACEOF |
| 9577 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9578 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9579 | int |
| 9580 | main () |
| 9581 | { |
| 9582 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 9583 | test_array [0] = 0 |
| 9584 | |
| 9585 | ; |
| 9586 | return 0; |
| 9587 | } |
| 9588 | _ACEOF |
| 9589 | rm -f conftest.$ac_objext |
| 9590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9591 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9592 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9593 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9594 | rm -f conftest.er1 |
| 9595 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9597 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9598 | { ac_try='test -z "$ac_c_werror_flag" |
| 9599 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9601 | (eval $ac_try) 2>&5 |
| 9602 | ac_status=$? |
| 9603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9604 | (exit $ac_status); }; } && |
| 9605 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9607 | (eval $ac_try) 2>&5 |
| 9608 | ac_status=$? |
| 9609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9610 | (exit $ac_status); }; }; then |
| 9611 | ac_lo=0 ac_mid=0 |
| 9612 | while :; do |
| 9613 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9614 | /* confdefs.h. */ |
| 9615 | _ACEOF |
| 9616 | cat confdefs.h >>conftest.$ac_ext |
| 9617 | cat >>conftest.$ac_ext <<_ACEOF |
| 9618 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9619 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9620 | int |
| 9621 | main () |
| 9622 | { |
| 9623 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 9624 | test_array [0] = 0 |
| 9625 | |
| 9626 | ; |
| 9627 | return 0; |
| 9628 | } |
| 9629 | _ACEOF |
| 9630 | rm -f conftest.$ac_objext |
| 9631 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9632 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9633 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9634 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9635 | rm -f conftest.er1 |
| 9636 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9638 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9639 | { ac_try='test -z "$ac_c_werror_flag" |
| 9640 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9642 | (eval $ac_try) 2>&5 |
| 9643 | ac_status=$? |
| 9644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9645 | (exit $ac_status); }; } && |
| 9646 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9648 | (eval $ac_try) 2>&5 |
| 9649 | ac_status=$? |
| 9650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9651 | (exit $ac_status); }; }; then |
| 9652 | ac_hi=$ac_mid; break |
| 9653 | else |
| 9654 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9655 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9656 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9657 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9658 | if test $ac_lo -le $ac_mid; then |
| 9659 | ac_lo= ac_hi= |
| 9660 | break |
| 9661 | fi |
| 9662 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9663 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9664 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9665 | done |
| 9666 | else |
| 9667 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9668 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9669 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9670 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9671 | /* confdefs.h. */ |
| 9672 | _ACEOF |
| 9673 | cat confdefs.h >>conftest.$ac_ext |
| 9674 | cat >>conftest.$ac_ext <<_ACEOF |
| 9675 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9676 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9677 | int |
| 9678 | main () |
| 9679 | { |
| 9680 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 9681 | test_array [0] = 0 |
| 9682 | |
| 9683 | ; |
| 9684 | return 0; |
| 9685 | } |
| 9686 | _ACEOF |
| 9687 | rm -f conftest.$ac_objext |
| 9688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9689 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9690 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9691 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9692 | rm -f conftest.er1 |
| 9693 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9695 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9696 | { ac_try='test -z "$ac_c_werror_flag" |
| 9697 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9699 | (eval $ac_try) 2>&5 |
| 9700 | ac_status=$? |
| 9701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9702 | (exit $ac_status); }; } && |
| 9703 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9705 | (eval $ac_try) 2>&5 |
| 9706 | ac_status=$? |
| 9707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9708 | (exit $ac_status); }; }; then |
| 9709 | ac_hi=-1 ac_mid=-1 |
| 9710 | while :; do |
| 9711 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9712 | /* confdefs.h. */ |
| 9713 | _ACEOF |
| 9714 | cat confdefs.h >>conftest.$ac_ext |
| 9715 | cat >>conftest.$ac_ext <<_ACEOF |
| 9716 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9717 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9718 | int |
| 9719 | main () |
| 9720 | { |
| 9721 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 9722 | test_array [0] = 0 |
| 9723 | |
| 9724 | ; |
| 9725 | return 0; |
| 9726 | } |
| 9727 | _ACEOF |
| 9728 | rm -f conftest.$ac_objext |
| 9729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9730 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9731 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9732 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9733 | rm -f conftest.er1 |
| 9734 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9736 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9737 | { ac_try='test -z "$ac_c_werror_flag" |
| 9738 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9740 | (eval $ac_try) 2>&5 |
| 9741 | ac_status=$? |
| 9742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9743 | (exit $ac_status); }; } && |
| 9744 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9746 | (eval $ac_try) 2>&5 |
| 9747 | ac_status=$? |
| 9748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9749 | (exit $ac_status); }; }; then |
| 9750 | ac_lo=$ac_mid; break |
| 9751 | else |
| 9752 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9753 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9754 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9755 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9756 | if test $ac_mid -le $ac_hi; then |
| 9757 | ac_lo= ac_hi= |
| 9758 | break |
| 9759 | fi |
| 9760 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9761 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9762 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9763 | done |
| 9764 | else |
| 9765 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9766 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9767 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9768 | ac_lo= ac_hi= |
| 9769 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9770 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9771 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9772 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9773 | # Binary search between lo and hi bounds. |
| 9774 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9775 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9776 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9777 | /* confdefs.h. */ |
| 9778 | _ACEOF |
| 9779 | cat confdefs.h >>conftest.$ac_ext |
| 9780 | cat >>conftest.$ac_ext <<_ACEOF |
| 9781 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9782 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9783 | int |
| 9784 | main () |
| 9785 | { |
| 9786 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 9787 | test_array [0] = 0 |
| 9788 | |
| 9789 | ; |
| 9790 | return 0; |
| 9791 | } |
| 9792 | _ACEOF |
| 9793 | rm -f conftest.$ac_objext |
| 9794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9795 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9796 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9797 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9798 | rm -f conftest.er1 |
| 9799 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9801 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9802 | { ac_try='test -z "$ac_c_werror_flag" |
| 9803 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9805 | (eval $ac_try) 2>&5 |
| 9806 | ac_status=$? |
| 9807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9808 | (exit $ac_status); }; } && |
| 9809 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9811 | (eval $ac_try) 2>&5 |
| 9812 | ac_status=$? |
| 9813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9814 | (exit $ac_status); }; }; then |
| 9815 | ac_hi=$ac_mid |
| 9816 | else |
| 9817 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9818 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9819 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9820 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9821 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9822 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9823 | done |
| 9824 | case $ac_lo in |
| 9825 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9826 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| 9827 | See \`config.log' for more details." >&5 |
| 9828 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| 9829 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9830 | { (exit 1); exit 1; }; } ;; |
| 9831 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9832 | else |
| 9833 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9834 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 9835 | See \`config.log' for more details." >&5 |
| 9836 | echo "$as_me: error: cannot run test program while cross compiling |
| 9837 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9838 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9839 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9840 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9841 | /* confdefs.h. */ |
| 9842 | _ACEOF |
| 9843 | cat confdefs.h >>conftest.$ac_ext |
| 9844 | cat >>conftest.$ac_ext <<_ACEOF |
| 9845 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9846 | $ac_includes_default |
| 9847 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 9848 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9849 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9850 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9851 | int |
| 9852 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9853 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9854 | |
| 9855 | FILE *f = fopen ("conftest.val", "w"); |
| 9856 | if (! f) |
| 9857 | exit (1); |
| 9858 | if (((long) (sizeof (uintptr_t))) < 0) |
| 9859 | { |
| 9860 | long i = longval (); |
| 9861 | if (i != ((long) (sizeof (uintptr_t)))) |
| 9862 | exit (1); |
| 9863 | fprintf (f, "%ld\n", i); |
| 9864 | } |
| 9865 | else |
| 9866 | { |
| 9867 | unsigned long i = ulongval (); |
| 9868 | if (i != ((long) (sizeof (uintptr_t)))) |
| 9869 | exit (1); |
| 9870 | fprintf (f, "%lu\n", i); |
| 9871 | } |
| 9872 | exit (ferror (f) || fclose (f) != 0); |
| 9873 | |
| 9874 | ; |
| 9875 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9876 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9877 | _ACEOF |
| 9878 | rm -f conftest$ac_exeext |
| 9879 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9880 | (eval $ac_link) 2>&5 |
| 9881 | ac_status=$? |
| 9882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9883 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9885 | (eval $ac_try) 2>&5 |
| 9886 | ac_status=$? |
| 9887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9888 | (exit $ac_status); }; }; then |
| 9889 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9890 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9891 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9892 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9894 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9895 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9896 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| 9897 | See \`config.log' for more details." >&5 |
| 9898 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| 9899 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9900 | { (exit 1); exit 1; }; } |
| 9901 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9902 | 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] | 9903 | fi |
| 9904 | fi |
| 9905 | rm -f conftest.val |
| 9906 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9907 | ac_cv_sizeof_uintptr_t=0 |
| 9908 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9909 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9910 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 9911 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 9912 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9913 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9914 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9915 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9916 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9917 | fi |
| 9918 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9919 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9920 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 9921 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 9922 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 9923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9924 | else |
| 9925 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9926 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9927 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9928 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9929 | /* confdefs.h. */ |
| 9930 | _ACEOF |
| 9931 | cat confdefs.h >>conftest.$ac_ext |
| 9932 | cat >>conftest.$ac_ext <<_ACEOF |
| 9933 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9934 | #include <stdio.h> |
| 9935 | #include <sys/types.h> |
| 9936 | main() |
| 9937 | { |
| 9938 | FILE *f=fopen("conftestval", "w"); |
| 9939 | if (!f) exit(1); |
| 9940 | fprintf(f, "%d\n", sizeof(off_t)); |
| 9941 | exit(0); |
| 9942 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9943 | _ACEOF |
| 9944 | rm -f conftest$ac_exeext |
| 9945 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9946 | (eval $ac_link) 2>&5 |
| 9947 | ac_status=$? |
| 9948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9949 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9951 | (eval $ac_try) 2>&5 |
| 9952 | ac_status=$? |
| 9953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9954 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9955 | ac_cv_sizeof_off_t=`cat conftestval` |
| 9956 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9957 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9958 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9960 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9961 | ( exit $ac_status ) |
| 9962 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9963 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9964 | 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] | 9965 | fi |
| 9966 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9967 | fi |
| 9968 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9969 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 9970 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 9971 | |
| 9972 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9973 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9974 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9975 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9976 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9977 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 9978 | 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] | 9979 | if test "$have_long_long" = yes -a \ |
| 9980 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 9981 | "$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] | 9982 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9983 | cat >>confdefs.h <<\_ACEOF |
| 9984 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 9985 | _ACEOF |
| 9986 | |
| 9987 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9988 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9989 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9990 | echo "$as_me:$LINENO: result: no" >&5 |
| 9991 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9992 | fi |
| 9993 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9994 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9995 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 9996 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 9997 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 9998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9999 | else |
| 10000 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 10001 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10002 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10003 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10004 | /* confdefs.h. */ |
| 10005 | _ACEOF |
| 10006 | cat confdefs.h >>conftest.$ac_ext |
| 10007 | cat >>conftest.$ac_ext <<_ACEOF |
| 10008 | /* end confdefs.h. */ |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10009 | #include <stdio.h> |
| 10010 | #include <time.h> |
| 10011 | main() |
| 10012 | { |
| 10013 | FILE *f=fopen("conftestval", "w"); |
| 10014 | if (!f) exit(1); |
| 10015 | fprintf(f, "%d\n", sizeof(time_t)); |
| 10016 | exit(0); |
| 10017 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10018 | _ACEOF |
| 10019 | rm -f conftest$ac_exeext |
| 10020 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10021 | (eval $ac_link) 2>&5 |
| 10022 | ac_status=$? |
| 10023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10024 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10026 | (eval $ac_try) 2>&5 |
| 10027 | ac_status=$? |
| 10028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10029 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10030 | ac_cv_sizeof_time_t=`cat conftestval` |
| 10031 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10032 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10033 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10034 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10035 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10036 | ( exit $ac_status ) |
| 10037 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10038 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10039 | 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] | 10040 | fi |
| 10041 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10042 | fi |
| 10043 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10044 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 10045 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 10046 | |
| 10047 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10048 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10049 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10050 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10051 | |
| 10052 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10053 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10054 | ac_save_cc="$CC" |
| 10055 | if test "$ac_cv_kpthread" = "yes" |
| 10056 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10057 | elif test "$ac_cv_kthread" = "yes" |
| 10058 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10059 | elif test "$ac_cv_pthread" = "yes" |
| 10060 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10061 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10062 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 10063 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10064 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10065 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10066 | /* confdefs.h. */ |
| 10067 | _ACEOF |
| 10068 | cat confdefs.h >>conftest.$ac_ext |
| 10069 | cat >>conftest.$ac_ext <<_ACEOF |
| 10070 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10071 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10072 | int |
| 10073 | main () |
| 10074 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 10075 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10076 | ; |
| 10077 | return 0; |
| 10078 | } |
| 10079 | _ACEOF |
| 10080 | rm -f conftest.$ac_objext |
| 10081 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10082 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10083 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10084 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10085 | rm -f conftest.er1 |
| 10086 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10088 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10089 | { ac_try='test -z "$ac_c_werror_flag" |
| 10090 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10092 | (eval $ac_try) 2>&5 |
| 10093 | ac_status=$? |
| 10094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10095 | (exit $ac_status); }; } && |
| 10096 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10098 | (eval $ac_try) 2>&5 |
| 10099 | ac_status=$? |
| 10100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10101 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10102 | have_pthread_t=yes |
| 10103 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10104 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10105 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10106 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10107 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10108 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10109 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 10110 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10111 | if test "$have_pthread_t" = yes ; then |
| 10112 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10113 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 10114 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 10115 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 10116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10117 | else |
| 10118 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 10119 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10120 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10121 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10122 | /* confdefs.h. */ |
| 10123 | _ACEOF |
| 10124 | cat confdefs.h >>conftest.$ac_ext |
| 10125 | cat >>conftest.$ac_ext <<_ACEOF |
| 10126 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10127 | #include <stdio.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10128 | #include <pthread.h> |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10129 | main() |
| 10130 | { |
| 10131 | FILE *f=fopen("conftestval", "w"); |
| 10132 | if (!f) exit(1); |
| 10133 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 10134 | exit(0); |
| 10135 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10136 | _ACEOF |
| 10137 | rm -f conftest$ac_exeext |
| 10138 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10139 | (eval $ac_link) 2>&5 |
| 10140 | ac_status=$? |
| 10141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10142 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10144 | (eval $ac_try) 2>&5 |
| 10145 | ac_status=$? |
| 10146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10147 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10148 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 10149 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10150 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10151 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10152 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10153 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10154 | ( exit $ac_status ) |
| 10155 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10156 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10157 | 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] | 10158 | fi |
| 10159 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10160 | fi |
| 10161 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10162 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 10163 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 10164 | |
| 10165 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10166 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10167 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10168 | |
| 10169 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10170 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10171 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10172 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 10173 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10174 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 10175 | if test "${enable_toolbox_glue+set}" = set; then |
| 10176 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10177 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10178 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10179 | |
| 10180 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10181 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10182 | case $ac_sys_system/$ac_sys_release in |
| 10183 | Darwin/*) |
| 10184 | enable_toolbox_glue="yes";; |
| 10185 | *) |
| 10186 | enable_toolbox_glue="no";; |
| 10187 | esac |
| 10188 | fi |
| 10189 | case "$enable_toolbox_glue" in |
| 10190 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10191 | extra_machdep_objs="Python/mactoolboxglue.o" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 10192 | extra_undefs="-u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10193 | |
| 10194 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10195 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10196 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10197 | |
| 10198 | ;; |
| 10199 | *) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10200 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 10201 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10202 | ;; |
| 10203 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10204 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 10205 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10206 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10207 | |
| 10208 | case $ac_sys_system/$ac_sys_release in |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 10209 | Darwin/[01234567].*) |
| 10210 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 10211 | ;; |
| 10212 | Darwin/*) |
| 10213 | OTHER_LIBTOOL_OPT="" |
| 10214 | ;; |
| 10215 | esac |
| 10216 | |
| 10217 | |
| 10218 | case $ac_sys_system/$ac_sys_release in |
| 10219 | Darwin/[01234567].*) |
| 10220 | LIBTOOL_CRUFT="-framework System -lcc_dynamic -arch_only ppc" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 10221 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10222 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 10223 | Darwin/*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 10224 | gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3` |
| 10225 | if test ${gcc_version} '<' 4.0 |
| 10226 | then |
| 10227 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 10228 | else |
| 10229 | LIBTOOL_CRUFT="" |
| 10230 | fi |
| 10231 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -lSystem -lSystemStubs -arch_only ppc' |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 10232 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10233 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10234 | esac |
| 10235 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10236 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 10237 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10238 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10239 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10240 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10241 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10242 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10243 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10244 | cat >>confdefs.h <<\_ACEOF |
| 10245 | #define WITH_NEXT_FRAMEWORK 1 |
| 10246 | _ACEOF |
| 10247 | |
| 10248 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10249 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10250 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10251 | echo "$as_me:$LINENO: result: no" >&5 |
| 10252 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10253 | fi |
| 10254 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10255 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 10256 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10257 | case $ac_sys_system/$ac_sys_release in |
| 10258 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10259 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10260 | cat >>confdefs.h <<\_ACEOF |
| 10261 | #define WITH_DYLD 1 |
| 10262 | _ACEOF |
| 10263 | |
| 10264 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 10265 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10266 | ;; |
| 10267 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10268 | echo "$as_me:$LINENO: result: no" >&5 |
| 10269 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10270 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10271 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10272 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10273 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10274 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10275 | |
| 10276 | |
| 10277 | |
| 10278 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10279 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10280 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10281 | echo "$as_me:$LINENO: checking SO" >&5 |
| 10282 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10283 | if test -z "$SO" |
| 10284 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10285 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 10286 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10287 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 10288 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10289 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 10290 | else |
| 10291 | # this might also be a termcap variable, see #610332 |
| 10292 | echo |
| 10293 | echo '=====================================================================' |
| 10294 | echo '+ +' |
| 10295 | echo '+ WARNING: You have set SO in your environment. +' |
| 10296 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 10297 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 10298 | echo '+ +' |
| 10299 | echo '=====================================================================' |
| 10300 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10301 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10302 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 10303 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10304 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 10305 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10306 | # (Shared libraries in this instance are shared modules to be loaded into |
| 10307 | # 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] | 10308 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 10309 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10310 | if test -z "$LDSHARED" |
| 10311 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10312 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10313 | AIX*) |
| 10314 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 10315 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10316 | ;; |
| 10317 | BeOS*) |
| 10318 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 10319 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10320 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10321 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 10322 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10323 | SunOS/5*) |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 10324 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 10325 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 10326 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 10327 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10328 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 10329 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10330 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10331 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10332 | if test "$enable_framework" ; then |
| 10333 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10334 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 10335 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10336 | else |
| 10337 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10338 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10339 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10340 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10341 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10342 | if test "$enable_framework" ; then |
| 10343 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10344 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 10345 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10346 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 10347 | # No framework, use the Python app as bundle-loader |
| 10348 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 10349 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10350 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10351 | Darwin/*) |
| 10352 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 10353 | # This allows an extension to be used in any Python |
Jack Jansen | be95462 | 2004-12-26 23:07:48 +0000 | [diff] [blame] | 10354 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
Jack Jansen | c110f86 | 2005-01-07 10:49:32 +0000 | [diff] [blame] | 10355 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
Jack Jansen | be95462 | 2004-12-26 23:07:48 +0000 | [diff] [blame] | 10356 | if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10357 | then |
| 10358 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 10359 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10360 | else |
| 10361 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10362 | if test "$enable_framework" ; then |
| 10363 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10364 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 10365 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10366 | else |
| 10367 | # No framework, use the Python app as bundle-loader |
| 10368 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 10369 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 10370 | fi |
| 10371 | fi |
| 10372 | ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 10373 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 10374 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 10375 | OpenBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 10376 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 10377 | then |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 10378 | LDSHARED="$CC -shared ${LDFLAGS}" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 10379 | else |
| 10380 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 10381 | fi;; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 10382 | NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10383 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10384 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 10385 | then LDSHARED='$(CC) -shared' |
| 10386 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10387 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 10388 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10389 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10390 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10391 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10392 | *) LDSHARED="ld";; |
| 10393 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10394 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10395 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 10396 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10397 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10398 | # 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] | 10399 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10400 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 10401 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10402 | if test -z "$CCSHARED" |
| 10403 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10404 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 10405 | SunOS*) if test "$GCC" = yes; |
| 10406 | then CCSHARED="-fPIC"; |
| 10407 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 10408 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 10409 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 10410 | else CCSHARED="+z"; |
| 10411 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10412 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 10413 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 10414 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10415 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10416 | if test "$GCC" = "yes" |
| 10417 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10418 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10419 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 10420 | SCO_SV*) |
| 10421 | if test "$GCC" = "yes" |
| 10422 | then CCSHARED="-fPIC" |
| 10423 | else CCSHARED="-Kpic -belf" |
| 10424 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10425 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10426 | IRIX*/6*) case $CC in |
| 10427 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 10428 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10429 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10430 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10431 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10432 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10433 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 10434 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10435 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10436 | # 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] | 10437 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 10438 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10439 | if test -z "$LINKFORSHARED" |
| 10440 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10441 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10442 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 10443 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10444 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 10445 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 10446 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10447 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10448 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10449 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 10450 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 10451 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10452 | # not used by the core itself but which needs to be in the core so |
| 10453 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 10454 | # -prebind is no longer used, because it actually seems to give a |
| 10455 | # slowdown in stead of a speedup, maybe due to the large number of |
| 10456 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 10457 | |
| 10458 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10459 | if test "$enable_framework" |
| 10460 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10461 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10462 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 10463 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10464 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 10465 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 10466 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10467 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 10468 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 10469 | then |
| 10470 | LINKFORSHARED="-Wl,--export-dynamic" |
| 10471 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10472 | SunOS/5*) case $CC in |
| 10473 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 10474 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 10475 | then |
| 10476 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10477 | fi;; |
| 10478 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 10479 | CYGWIN*) |
| 10480 | if test $enable_shared = "no" |
| 10481 | then |
| 10482 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 10483 | fi;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10484 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10485 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10486 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 10487 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10488 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10489 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10490 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 10491 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10492 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 10493 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 10494 | case $ac_sys_system in |
| 10495 | CYGWIN*) |
| 10496 | # Cygwin needs CCSHARED when building extension DLLs |
| 10497 | # but not when building the interpreter DLL. |
| 10498 | CFLAGSFORSHARED='';; |
| 10499 | *) |
| 10500 | CFLAGSFORSHARED='$(CCSHARED)' |
| 10501 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10502 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10503 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 10504 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10505 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10506 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 10507 | # library (with --enable-shared). |
| 10508 | # 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] | 10509 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 10510 | # if it is not required, since it creates a dependency of the shared library |
| 10511 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 10512 | # don't need to link LIBS explicitly. The default should be only changed |
| 10513 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10514 | |
| 10515 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 10516 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 10517 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10518 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 10519 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10520 | esac |
| 10521 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 10522 | echo "${ECHO_T}$SHLIBS" >&6 |
| 10523 | |
| 10524 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10525 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10526 | |
| 10527 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10528 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 10529 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10531 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10532 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10533 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10534 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10535 | /* confdefs.h. */ |
| 10536 | _ACEOF |
| 10537 | cat confdefs.h >>conftest.$ac_ext |
| 10538 | cat >>conftest.$ac_ext <<_ACEOF |
| 10539 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10540 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10541 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10542 | #ifdef __cplusplus |
| 10543 | extern "C" |
| 10544 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10545 | /* 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] | 10546 | builtin and then its argument prototype would still apply. */ |
| 10547 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10548 | int |
| 10549 | main () |
| 10550 | { |
| 10551 | dlopen (); |
| 10552 | ; |
| 10553 | return 0; |
| 10554 | } |
| 10555 | _ACEOF |
| 10556 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10557 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10558 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10559 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10560 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10561 | rm -f conftest.er1 |
| 10562 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10564 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10565 | { ac_try='test -z "$ac_c_werror_flag" |
| 10566 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10568 | (eval $ac_try) 2>&5 |
| 10569 | ac_status=$? |
| 10570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10571 | (exit $ac_status); }; } && |
| 10572 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10574 | (eval $ac_try) 2>&5 |
| 10575 | ac_status=$? |
| 10576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10577 | (exit $ac_status); }; }; then |
| 10578 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10579 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10580 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10581 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10582 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10583 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10584 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10585 | rm -f conftest.err conftest.$ac_objext \ |
| 10586 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10587 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10588 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10589 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10590 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 10591 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 10592 | cat >>confdefs.h <<_ACEOF |
| 10593 | #define HAVE_LIBDL 1 |
| 10594 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10595 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10596 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10597 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10598 | fi |
| 10599 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10600 | |
| 10601 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10602 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 10603 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10605 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10606 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10607 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10608 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10609 | /* confdefs.h. */ |
| 10610 | _ACEOF |
| 10611 | cat confdefs.h >>conftest.$ac_ext |
| 10612 | cat >>conftest.$ac_ext <<_ACEOF |
| 10613 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10614 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10615 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10616 | #ifdef __cplusplus |
| 10617 | extern "C" |
| 10618 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10619 | /* 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] | 10620 | builtin and then its argument prototype would still apply. */ |
| 10621 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10622 | int |
| 10623 | main () |
| 10624 | { |
| 10625 | shl_load (); |
| 10626 | ; |
| 10627 | return 0; |
| 10628 | } |
| 10629 | _ACEOF |
| 10630 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10631 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10632 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10633 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10634 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10635 | rm -f conftest.er1 |
| 10636 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10638 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10639 | { ac_try='test -z "$ac_c_werror_flag" |
| 10640 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10642 | (eval $ac_try) 2>&5 |
| 10643 | ac_status=$? |
| 10644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10645 | (exit $ac_status); }; } && |
| 10646 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10648 | (eval $ac_try) 2>&5 |
| 10649 | ac_status=$? |
| 10650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10651 | (exit $ac_status); }; }; then |
| 10652 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10653 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10654 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10655 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10656 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10657 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10658 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10659 | rm -f conftest.err conftest.$ac_objext \ |
| 10660 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10661 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10662 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10663 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10664 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 10665 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 10666 | cat >>confdefs.h <<_ACEOF |
| 10667 | #define HAVE_LIBDLD 1 |
| 10668 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10669 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10670 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10671 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10672 | fi |
| 10673 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10674 | |
| 10675 | # only check for sem_ini if thread support is requested |
| 10676 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
| 10677 | 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] | 10678 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6 |
| 10679 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10681 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10682 | ac_func_search_save_LIBS=$LIBS |
| 10683 | ac_cv_search_sem_init=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10684 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10685 | /* confdefs.h. */ |
| 10686 | _ACEOF |
| 10687 | cat confdefs.h >>conftest.$ac_ext |
| 10688 | cat >>conftest.$ac_ext <<_ACEOF |
| 10689 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10690 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10691 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10692 | #ifdef __cplusplus |
| 10693 | extern "C" |
| 10694 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10695 | /* 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] | 10696 | builtin and then its argument prototype would still apply. */ |
| 10697 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10698 | int |
| 10699 | main () |
| 10700 | { |
| 10701 | sem_init (); |
| 10702 | ; |
| 10703 | return 0; |
| 10704 | } |
| 10705 | _ACEOF |
| 10706 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10707 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10708 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10709 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10710 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10711 | rm -f conftest.er1 |
| 10712 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10714 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10715 | { ac_try='test -z "$ac_c_werror_flag" |
| 10716 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10718 | (eval $ac_try) 2>&5 |
| 10719 | ac_status=$? |
| 10720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10721 | (exit $ac_status); }; } && |
| 10722 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10724 | (eval $ac_try) 2>&5 |
| 10725 | ac_status=$? |
| 10726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10727 | (exit $ac_status); }; }; then |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10728 | ac_cv_search_sem_init="none required" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10729 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10730 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10731 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10732 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10733 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10734 | rm -f conftest.err conftest.$ac_objext \ |
| 10735 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10736 | if test "$ac_cv_search_sem_init" = no; then |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 10737 | for ac_lib in pthread rt posix4; do |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10738 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10739 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10740 | /* confdefs.h. */ |
| 10741 | _ACEOF |
| 10742 | cat confdefs.h >>conftest.$ac_ext |
| 10743 | cat >>conftest.$ac_ext <<_ACEOF |
| 10744 | /* end confdefs.h. */ |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10745 | |
| 10746 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10747 | #ifdef __cplusplus |
| 10748 | extern "C" |
| 10749 | #endif |
| 10750 | /* We use char because int might match the return type of a gcc2 |
| 10751 | builtin and then its argument prototype would still apply. */ |
| 10752 | char sem_init (); |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10753 | int |
| 10754 | main () |
| 10755 | { |
| 10756 | sem_init (); |
| 10757 | ; |
| 10758 | return 0; |
| 10759 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10760 | _ACEOF |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10761 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10762 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10763 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10764 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10765 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10766 | rm -f conftest.er1 |
| 10767 | cat conftest.err >&5 |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10769 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10770 | { ac_try='test -z "$ac_c_werror_flag" |
| 10771 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10773 | (eval $ac_try) 2>&5 |
| 10774 | ac_status=$? |
| 10775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10776 | (exit $ac_status); }; } && |
| 10777 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10779 | (eval $ac_try) 2>&5 |
| 10780 | ac_status=$? |
| 10781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10782 | (exit $ac_status); }; }; then |
| 10783 | ac_cv_search_sem_init="-l$ac_lib" |
| 10784 | break |
| 10785 | else |
| 10786 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10787 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10788 | |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10789 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10790 | rm -f conftest.err conftest.$ac_objext \ |
| 10791 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10792 | done |
| 10793 | fi |
| 10794 | LIBS=$ac_func_search_save_LIBS |
| 10795 | fi |
| 10796 | echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 10797 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6 |
| 10798 | if test "$ac_cv_search_sem_init" != no; then |
| 10799 | 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] | 10800 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10801 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 10802 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10803 | # posix4 on Solaris 2.6 |
| 10804 | # pthread (first!) on Linux |
| 10805 | fi |
| 10806 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10807 | # check if we need libintl for locale functions |
| 10808 | echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 10809 | echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6 |
| 10810 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
| 10811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10812 | else |
| 10813 | ac_check_lib_save_LIBS=$LIBS |
| 10814 | LIBS="-lintl $LIBS" |
| 10815 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10816 | /* confdefs.h. */ |
| 10817 | _ACEOF |
| 10818 | cat confdefs.h >>conftest.$ac_ext |
| 10819 | cat >>conftest.$ac_ext <<_ACEOF |
| 10820 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10821 | |
| 10822 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10823 | #ifdef __cplusplus |
| 10824 | extern "C" |
| 10825 | #endif |
| 10826 | /* We use char because int might match the return type of a gcc2 |
| 10827 | builtin and then its argument prototype would still apply. */ |
| 10828 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10829 | int |
| 10830 | main () |
| 10831 | { |
| 10832 | textdomain (); |
| 10833 | ; |
| 10834 | return 0; |
| 10835 | } |
| 10836 | _ACEOF |
| 10837 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10839 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10840 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10841 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10842 | rm -f conftest.er1 |
| 10843 | cat conftest.err >&5 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10845 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10846 | { ac_try='test -z "$ac_c_werror_flag" |
| 10847 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10849 | (eval $ac_try) 2>&5 |
| 10850 | ac_status=$? |
| 10851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10852 | (exit $ac_status); }; } && |
| 10853 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 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 |
| 10859 | ac_cv_lib_intl_textdomain=yes |
| 10860 | else |
| 10861 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10862 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10863 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10864 | ac_cv_lib_intl_textdomain=no |
| 10865 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10866 | rm -f conftest.err conftest.$ac_objext \ |
| 10867 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10868 | LIBS=$ac_check_lib_save_LIBS |
| 10869 | fi |
| 10870 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 10871 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6 |
| 10872 | if test $ac_cv_lib_intl_textdomain = yes; then |
| 10873 | |
| 10874 | cat >>confdefs.h <<\_ACEOF |
| 10875 | #define WITH_LIBINTL 1 |
| 10876 | _ACEOF |
| 10877 | |
| 10878 | fi |
| 10879 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10880 | |
| 10881 | # checks for system dependent C++ extensions support |
| 10882 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10883 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 10884 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 10885 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10886 | /* confdefs.h. */ |
| 10887 | _ACEOF |
| 10888 | cat confdefs.h >>conftest.$ac_ext |
| 10889 | cat >>conftest.$ac_ext <<_ACEOF |
| 10890 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10891 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10892 | int |
| 10893 | main () |
| 10894 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10895 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10896 | ; |
| 10897 | return 0; |
| 10898 | } |
| 10899 | _ACEOF |
| 10900 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10901 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10902 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10903 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10904 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10905 | rm -f conftest.er1 |
| 10906 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10908 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10909 | { ac_try='test -z "$ac_c_werror_flag" |
| 10910 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10912 | (eval $ac_try) 2>&5 |
| 10913 | ac_status=$? |
| 10914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10915 | (exit $ac_status); }; } && |
| 10916 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10918 | (eval $ac_try) 2>&5 |
| 10919 | ac_status=$? |
| 10920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10921 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10922 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10923 | cat >>confdefs.h <<\_ACEOF |
| 10924 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 10925 | _ACEOF |
| 10926 | |
| 10927 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10928 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10929 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10930 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10931 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10932 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10933 | echo "$as_me:$LINENO: result: no" >&5 |
| 10934 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10935 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10936 | rm -f conftest.err conftest.$ac_objext \ |
| 10937 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10938 | *) ;; |
| 10939 | esac |
| 10940 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 10941 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10942 | # BeOS' sockets are stashed in libnet. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10943 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 10944 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 10945 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 10946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10947 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10948 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10949 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10950 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10951 | /* confdefs.h. */ |
| 10952 | _ACEOF |
| 10953 | cat confdefs.h >>conftest.$ac_ext |
| 10954 | cat >>conftest.$ac_ext <<_ACEOF |
| 10955 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10956 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10957 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10958 | #ifdef __cplusplus |
| 10959 | extern "C" |
| 10960 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10961 | /* 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] | 10962 | builtin and then its argument prototype would still apply. */ |
| 10963 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10964 | int |
| 10965 | main () |
| 10966 | { |
| 10967 | t_open (); |
| 10968 | ; |
| 10969 | return 0; |
| 10970 | } |
| 10971 | _ACEOF |
| 10972 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10973 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10974 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10975 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10976 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10977 | rm -f conftest.er1 |
| 10978 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10980 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10981 | { ac_try='test -z "$ac_c_werror_flag" |
| 10982 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10984 | (eval $ac_try) 2>&5 |
| 10985 | ac_status=$? |
| 10986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10987 | (exit $ac_status); }; } && |
| 10988 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10990 | (eval $ac_try) 2>&5 |
| 10991 | ac_status=$? |
| 10992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10993 | (exit $ac_status); }; }; then |
| 10994 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10995 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10996 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10997 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10998 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10999 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11000 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11001 | rm -f conftest.err conftest.$ac_objext \ |
| 11002 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11003 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11004 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11005 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 11006 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 11007 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11008 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11009 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 11010 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11011 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 11012 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 11013 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 11014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11015 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11016 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11017 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11018 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11019 | /* confdefs.h. */ |
| 11020 | _ACEOF |
| 11021 | cat confdefs.h >>conftest.$ac_ext |
| 11022 | cat >>conftest.$ac_ext <<_ACEOF |
| 11023 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11024 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11025 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11026 | #ifdef __cplusplus |
| 11027 | extern "C" |
| 11028 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11029 | /* 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] | 11030 | builtin and then its argument prototype would still apply. */ |
| 11031 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11032 | int |
| 11033 | main () |
| 11034 | { |
| 11035 | socket (); |
| 11036 | ; |
| 11037 | return 0; |
| 11038 | } |
| 11039 | _ACEOF |
| 11040 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11041 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11042 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11043 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11044 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11045 | rm -f conftest.er1 |
| 11046 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11048 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11049 | { ac_try='test -z "$ac_c_werror_flag" |
| 11050 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11052 | (eval $ac_try) 2>&5 |
| 11053 | ac_status=$? |
| 11054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11055 | (exit $ac_status); }; } && |
| 11056 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11058 | (eval $ac_try) 2>&5 |
| 11059 | ac_status=$? |
| 11060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11061 | (exit $ac_status); }; }; then |
| 11062 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11063 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11064 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11065 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11066 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11067 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11068 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11069 | rm -f conftest.err conftest.$ac_objext \ |
| 11070 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11071 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11072 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11073 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 11074 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 11075 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11076 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11077 | fi |
| 11078 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 11079 | |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 11080 | case "$ac_sys_system" in |
| 11081 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11082 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 11083 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 11084 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 11085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11086 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11087 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11088 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11089 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11090 | /* confdefs.h. */ |
| 11091 | _ACEOF |
| 11092 | cat confdefs.h >>conftest.$ac_ext |
| 11093 | cat >>conftest.$ac_ext <<_ACEOF |
| 11094 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11095 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11096 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11097 | #ifdef __cplusplus |
| 11098 | extern "C" |
| 11099 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11100 | /* 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] | 11101 | builtin and then its argument prototype would still apply. */ |
| 11102 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11103 | int |
| 11104 | main () |
| 11105 | { |
| 11106 | socket (); |
| 11107 | ; |
| 11108 | return 0; |
| 11109 | } |
| 11110 | _ACEOF |
| 11111 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11112 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11113 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11114 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11115 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11116 | rm -f conftest.er1 |
| 11117 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11119 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11120 | { ac_try='test -z "$ac_c_werror_flag" |
| 11121 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11123 | (eval $ac_try) 2>&5 |
| 11124 | ac_status=$? |
| 11125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11126 | (exit $ac_status); }; } && |
| 11127 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11129 | (eval $ac_try) 2>&5 |
| 11130 | ac_status=$? |
| 11131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11132 | (exit $ac_status); }; }; then |
| 11133 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11134 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11135 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11136 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11137 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11138 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11139 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11140 | rm -f conftest.err conftest.$ac_objext \ |
| 11141 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11142 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11143 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11144 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 11145 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 11146 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11147 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11148 | fi |
| 11149 | # BeOS |
| 11150 | ;; |
| 11151 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 11152 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11153 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 11154 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 11155 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 11156 | # Check whether --with-libs or --without-libs was given. |
| 11157 | if test "${with_libs+set}" = set; then |
| 11158 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11159 | |
| 11160 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11161 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 11162 | LIBS="$withval $LIBS" |
| 11163 | |
| 11164 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11165 | echo "$as_me:$LINENO: result: no" >&5 |
| 11166 | echo "${ECHO_T}no" >&6 |
| 11167 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11168 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11169 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11170 | |
| 11171 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11172 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 11173 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 11174 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11175 | # Check whether --with-signal-module or --without-signal-module was given. |
| 11176 | if test "${with_signal_module+set}" = set; then |
| 11177 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11178 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11179 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11180 | |
| 11181 | if test -z "$with_signal_module" |
| 11182 | then with_signal_module="yes" |
| 11183 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11184 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 11185 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11186 | |
| 11187 | if test "${with_signal_module}" = "yes"; then |
| 11188 | USE_SIGNAL_MODULE="" |
| 11189 | SIGNAL_OBJS="" |
| 11190 | else |
| 11191 | USE_SIGNAL_MODULE="#" |
| 11192 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 11193 | fi |
| 11194 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 11195 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 11196 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11197 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 11198 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11199 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 11200 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 11201 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11202 | |
| 11203 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 11204 | if test "${with_dec_threads+set}" = set; then |
| 11205 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11206 | |
| 11207 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11208 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11209 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 11210 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11211 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 11212 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11213 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11214 | echo "$as_me:$LINENO: result: no" >&5 |
| 11215 | echo "${ECHO_T}no" >&6 |
| 11216 | fi; |
| 11217 | |
| 11218 | # Templates for things AC_DEFINEd more than once. |
| 11219 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11220 | |
| 11221 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11222 | |
| 11223 | |
| 11224 | |
| 11225 | |
| 11226 | |
| 11227 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 11228 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 11229 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11230 | # Check whether --with-threads or --without-threads was given. |
| 11231 | if test "${with_threads+set}" = set; then |
| 11232 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11233 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11234 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11235 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11236 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11237 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11238 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11239 | if test "${with_thread+set}" = set; then |
| 11240 | withval="$with_thread" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11241 | with_threads=$with_thread |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11242 | fi; |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11243 | |
| 11244 | if test -z "$with_threads" |
| 11245 | then with_threads="yes" |
| 11246 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11247 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 11248 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11249 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11250 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11251 | if test "$with_threads" = "no" |
| 11252 | then |
| 11253 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11254 | elif test "$ac_cv_pthread_is_default" = yes |
| 11255 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11256 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11257 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11258 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11259 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11260 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11261 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11262 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11263 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11264 | |
| 11265 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11266 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11267 | elif test "$ac_cv_kpthread" = "yes" |
| 11268 | then |
| 11269 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11270 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 11271 | CXX="$CXX -Kpthread" |
| 11272 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11273 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 11274 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11275 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 11276 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11277 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11278 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 11279 | elif test "$ac_cv_kthread" = "yes" |
| 11280 | then |
| 11281 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11282 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 11283 | CXX="$CXX -Kthread" |
| 11284 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 11285 | cat >>confdefs.h <<\_ACEOF |
| 11286 | #define WITH_THREAD 1 |
| 11287 | _ACEOF |
| 11288 | |
| 11289 | posix_threads=yes |
| 11290 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11291 | elif test "$ac_cv_pthread" = "yes" |
| 11292 | then |
| 11293 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11294 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 11295 | CXX="$CXX -pthread" |
| 11296 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11297 | cat >>confdefs.h <<\_ACEOF |
| 11298 | #define WITH_THREAD 1 |
| 11299 | _ACEOF |
| 11300 | |
| 11301 | posix_threads=yes |
| 11302 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11303 | else |
| 11304 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 11305 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 11306 | fi |
| 11307 | if test ! -z "$withval" -a -d "$withval" |
| 11308 | then LDFLAGS="$LDFLAGS -L$withval" |
| 11309 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11310 | |
| 11311 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 11312 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 11313 | # (e.g. gnu pth with pthread emulation) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11314 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 11315 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 11316 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11317 | /* confdefs.h. */ |
| 11318 | _ACEOF |
| 11319 | cat confdefs.h >>conftest.$ac_ext |
| 11320 | cat >>conftest.$ac_ext <<_ACEOF |
| 11321 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 11322 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11323 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 11324 | #ifdef _POSIX_THREADS |
| 11325 | yes |
| 11326 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11327 | |
| 11328 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11329 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11330 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11331 | unistd_defines_pthreads=yes |
| 11332 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11333 | unistd_defines_pthreads=no |
| 11334 | fi |
| 11335 | rm -f conftest* |
| 11336 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11337 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 11338 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11339 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11340 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 11341 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11342 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 11343 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11344 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 11345 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 11346 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 11347 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 11348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11349 | fi |
| 11350 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 11351 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11352 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11353 | # Is the header compilable? |
| 11354 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 11355 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 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 | $ac_includes_default |
| 11363 | #include <cthreads.h> |
| 11364 | _ACEOF |
| 11365 | rm -f conftest.$ac_objext |
| 11366 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11367 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11368 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11369 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11370 | rm -f conftest.er1 |
| 11371 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11373 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11374 | { ac_try='test -z "$ac_c_werror_flag" |
| 11375 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11377 | (eval $ac_try) 2>&5 |
| 11378 | ac_status=$? |
| 11379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11380 | (exit $ac_status); }; } && |
| 11381 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11383 | (eval $ac_try) 2>&5 |
| 11384 | ac_status=$? |
| 11385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11386 | (exit $ac_status); }; }; then |
| 11387 | ac_header_compiler=yes |
| 11388 | else |
| 11389 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11390 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11391 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11392 | ac_header_compiler=no |
| 11393 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11394 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11395 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11396 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11397 | |
| 11398 | # Is the header present? |
| 11399 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 11400 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 11401 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11402 | /* confdefs.h. */ |
| 11403 | _ACEOF |
| 11404 | cat confdefs.h >>conftest.$ac_ext |
| 11405 | cat >>conftest.$ac_ext <<_ACEOF |
| 11406 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11407 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11408 | _ACEOF |
| 11409 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11410 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11411 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11412 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11413 | rm -f conftest.er1 |
| 11414 | cat conftest.err >&5 |
| 11415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11416 | (exit $ac_status); } >/dev/null; then |
| 11417 | if test -s conftest.err; then |
| 11418 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11419 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11420 | else |
| 11421 | ac_cpp_err= |
| 11422 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11423 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11424 | ac_cpp_err=yes |
| 11425 | fi |
| 11426 | if test -z "$ac_cpp_err"; then |
| 11427 | ac_header_preproc=yes |
| 11428 | else |
| 11429 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11430 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11431 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11432 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11433 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11434 | rm -f conftest.err conftest.$ac_ext |
| 11435 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11436 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11437 | |
| 11438 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11439 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11440 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11441 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11442 | 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] | 11443 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 11444 | echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;} |
| 11445 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11446 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11447 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11448 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 11449 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11450 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 11451 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 11452 | { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 11453 | echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 11454 | { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11455 | 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] | 11456 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 11457 | 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] | 11458 | { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 11459 | 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] | 11460 | ( |
| 11461 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 11462 | ## ------------------------------------------------ ## |
| 11463 | ## Report this to http://www.python.org/python-bugs ## |
| 11464 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11465 | _ASBOX |
| 11466 | ) | |
| 11467 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11468 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11469 | esac |
| 11470 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 11471 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 11472 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 11473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11474 | else |
| 11475 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11476 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11477 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 11478 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 11479 | |
| 11480 | fi |
| 11481 | if test $ac_cv_header_cthreads_h = yes; then |
| 11482 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11483 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11484 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11485 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11486 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11487 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11488 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11489 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11490 | |
| 11491 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11492 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11493 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11494 | |
| 11495 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11496 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11497 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11498 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11499 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11500 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 11501 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 11502 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11504 | fi |
| 11505 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 11506 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11507 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11508 | # Is the header compilable? |
| 11509 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 11510 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 11511 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11512 | /* confdefs.h. */ |
| 11513 | _ACEOF |
| 11514 | cat confdefs.h >>conftest.$ac_ext |
| 11515 | cat >>conftest.$ac_ext <<_ACEOF |
| 11516 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11517 | $ac_includes_default |
| 11518 | #include <mach/cthreads.h> |
| 11519 | _ACEOF |
| 11520 | rm -f conftest.$ac_objext |
| 11521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11522 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11523 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11524 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11525 | rm -f conftest.er1 |
| 11526 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11528 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11529 | { ac_try='test -z "$ac_c_werror_flag" |
| 11530 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11532 | (eval $ac_try) 2>&5 |
| 11533 | ac_status=$? |
| 11534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11535 | (exit $ac_status); }; } && |
| 11536 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11538 | (eval $ac_try) 2>&5 |
| 11539 | ac_status=$? |
| 11540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11541 | (exit $ac_status); }; }; then |
| 11542 | ac_header_compiler=yes |
| 11543 | else |
| 11544 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11546 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11547 | ac_header_compiler=no |
| 11548 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11549 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11550 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11551 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11552 | |
| 11553 | # Is the header present? |
| 11554 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 11555 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 11556 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11557 | /* confdefs.h. */ |
| 11558 | _ACEOF |
| 11559 | cat confdefs.h >>conftest.$ac_ext |
| 11560 | cat >>conftest.$ac_ext <<_ACEOF |
| 11561 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11562 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11563 | _ACEOF |
| 11564 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11565 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11566 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11567 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11568 | rm -f conftest.er1 |
| 11569 | cat conftest.err >&5 |
| 11570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11571 | (exit $ac_status); } >/dev/null; then |
| 11572 | if test -s conftest.err; then |
| 11573 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11574 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11575 | else |
| 11576 | ac_cpp_err= |
| 11577 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11578 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11579 | ac_cpp_err=yes |
| 11580 | fi |
| 11581 | if test -z "$ac_cpp_err"; then |
| 11582 | ac_header_preproc=yes |
| 11583 | else |
| 11584 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11585 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11586 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11587 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11588 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11589 | rm -f conftest.err conftest.$ac_ext |
| 11590 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11591 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11592 | |
| 11593 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11594 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11595 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11596 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11597 | 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] | 11598 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 11599 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;} |
| 11600 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11601 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11602 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11603 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 11604 | 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] | 11605 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 11606 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 11607 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 11608 | echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 11609 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11610 | 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] | 11611 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 11612 | 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] | 11613 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 11614 | 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] | 11615 | ( |
| 11616 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 11617 | ## ------------------------------------------------ ## |
| 11618 | ## Report this to http://www.python.org/python-bugs ## |
| 11619 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11620 | _ASBOX |
| 11621 | ) | |
| 11622 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11623 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11624 | esac |
| 11625 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 11626 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 11627 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11629 | else |
| 11630 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11631 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11632 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 11633 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 11634 | |
| 11635 | fi |
| 11636 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 11637 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11638 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11639 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11640 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11641 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11642 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11643 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11644 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11645 | |
| 11646 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11647 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11648 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11649 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11650 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11651 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11652 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11653 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 11654 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 11655 | |
| 11656 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11657 | if test "${with_pth+set}" = set; then |
| 11658 | withval="$with_pth" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11659 | echo "$as_me:$LINENO: result: $withval" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11660 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11661 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11662 | #define WITH_THREAD 1 |
| 11663 | _ACEOF |
| 11664 | |
| 11665 | |
| 11666 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11667 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11668 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11669 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11670 | LIBS="-lpth $LIBS" |
| 11671 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11672 | else |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11673 | echo "$as_me:$LINENO: result: no" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11674 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11675 | |
| 11676 | # Just looking for pthread_create in libpthread is not enough: |
| 11677 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 11678 | # So we really have to include pthread.h, and then link. |
| 11679 | _libs=$LIBS |
| 11680 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11681 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 11682 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 11683 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11684 | /* confdefs.h. */ |
| 11685 | _ACEOF |
| 11686 | cat confdefs.h >>conftest.$ac_ext |
| 11687 | cat >>conftest.$ac_ext <<_ACEOF |
| 11688 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11689 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11690 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11691 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11692 | int |
| 11693 | main () |
| 11694 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11695 | |
| 11696 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11697 | ; |
| 11698 | return 0; |
| 11699 | } |
| 11700 | _ACEOF |
| 11701 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11702 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11703 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11704 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11705 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11706 | rm -f conftest.er1 |
| 11707 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11709 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11710 | { ac_try='test -z "$ac_c_werror_flag" |
| 11711 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11713 | (eval $ac_try) 2>&5 |
| 11714 | ac_status=$? |
| 11715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11716 | (exit $ac_status); }; } && |
| 11717 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11719 | (eval $ac_try) 2>&5 |
| 11720 | ac_status=$? |
| 11721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11722 | (exit $ac_status); }; }; then |
| 11723 | |
| 11724 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11725 | echo "${ECHO_T}yes" >&6 |
| 11726 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11727 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11728 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11729 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11730 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11731 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11732 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11733 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11734 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11735 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11736 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11737 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11738 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 11739 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 11740 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 11741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11742 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11743 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11744 | /* confdefs.h. */ |
| 11745 | _ACEOF |
| 11746 | cat confdefs.h >>conftest.$ac_ext |
| 11747 | cat >>conftest.$ac_ext <<_ACEOF |
| 11748 | /* end confdefs.h. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11749 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11750 | which can conflict with char pthread_detach (); below. |
| 11751 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 11752 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 11753 | including <limits.h> includes <sys/time.h> and causes problems |
| 11754 | checking for functions defined therein. */ |
| 11755 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11756 | # include <limits.h> |
| 11757 | #else |
| 11758 | # include <assert.h> |
| 11759 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11760 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11761 | #ifdef __cplusplus |
| 11762 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11763 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11764 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11765 | /* 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] | 11766 | builtin and then its argument prototype would still apply. */ |
| 11767 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11768 | /* The GNU C library defines this for functions which it implements |
| 11769 | to always fail with ENOSYS. Some functions are actually named |
| 11770 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 11771 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11772 | choke me |
| 11773 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11774 | char (*f) () = pthread_detach; |
| 11775 | #endif |
| 11776 | #ifdef __cplusplus |
| 11777 | } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11778 | #endif |
| 11779 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11780 | int |
| 11781 | main () |
| 11782 | { |
| 11783 | return f != pthread_detach; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +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_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +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 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11819 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11820 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 11821 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 11822 | if test $ac_cv_func_pthread_detach = yes; then |
| 11823 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11824 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11825 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11826 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11827 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11828 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11829 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11830 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11831 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11832 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 11833 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 11834 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11836 | fi |
| 11837 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 11838 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 11839 | else |
| 11840 | # Is the header compilable? |
| 11841 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 11842 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 11843 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11844 | /* confdefs.h. */ |
| 11845 | _ACEOF |
| 11846 | cat confdefs.h >>conftest.$ac_ext |
| 11847 | cat >>conftest.$ac_ext <<_ACEOF |
| 11848 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11849 | $ac_includes_default |
| 11850 | #include <atheos/threads.h> |
| 11851 | _ACEOF |
| 11852 | rm -f conftest.$ac_objext |
| 11853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11854 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11855 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11856 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11857 | rm -f conftest.er1 |
| 11858 | cat conftest.err >&5 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11860 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11861 | { ac_try='test -z "$ac_c_werror_flag" |
| 11862 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11864 | (eval $ac_try) 2>&5 |
| 11865 | ac_status=$? |
| 11866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11867 | (exit $ac_status); }; } && |
| 11868 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11870 | (eval $ac_try) 2>&5 |
| 11871 | ac_status=$? |
| 11872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11873 | (exit $ac_status); }; }; then |
| 11874 | ac_header_compiler=yes |
| 11875 | else |
| 11876 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11878 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11879 | ac_header_compiler=no |
| 11880 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11881 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11882 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11883 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11884 | |
| 11885 | # Is the header present? |
| 11886 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 11887 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 11888 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11889 | /* confdefs.h. */ |
| 11890 | _ACEOF |
| 11891 | cat confdefs.h >>conftest.$ac_ext |
| 11892 | cat >>conftest.$ac_ext <<_ACEOF |
| 11893 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11894 | #include <atheos/threads.h> |
| 11895 | _ACEOF |
| 11896 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11897 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11898 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11899 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11900 | rm -f conftest.er1 |
| 11901 | cat conftest.err >&5 |
| 11902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11903 | (exit $ac_status); } >/dev/null; then |
| 11904 | if test -s conftest.err; then |
| 11905 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11906 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11907 | else |
| 11908 | ac_cpp_err= |
| 11909 | fi |
| 11910 | else |
| 11911 | ac_cpp_err=yes |
| 11912 | fi |
| 11913 | if test -z "$ac_cpp_err"; then |
| 11914 | ac_header_preproc=yes |
| 11915 | else |
| 11916 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11917 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11918 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11919 | ac_header_preproc=no |
| 11920 | fi |
| 11921 | rm -f conftest.err conftest.$ac_ext |
| 11922 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11923 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11924 | |
| 11925 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11926 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11927 | yes:no: ) |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11928 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11929 | 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] | 11930 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 11931 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;} |
| 11932 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11933 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11934 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11935 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 11936 | 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] | 11937 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 11938 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 11939 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 11940 | echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 11941 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11942 | 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] | 11943 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 11944 | 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] | 11945 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 11946 | 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] | 11947 | ( |
| 11948 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 11949 | ## ------------------------------------------------ ## |
| 11950 | ## Report this to http://www.python.org/python-bugs ## |
| 11951 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11952 | _ASBOX |
| 11953 | ) | |
| 11954 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11955 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11956 | esac |
| 11957 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 11958 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 11959 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11961 | else |
| 11962 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 11963 | fi |
| 11964 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 11965 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 11966 | |
| 11967 | fi |
| 11968 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 11969 | cat >>confdefs.h <<\_ACEOF |
| 11970 | #define WITH_THREAD 1 |
| 11971 | _ACEOF |
| 11972 | |
| 11973 | |
| 11974 | cat >>confdefs.h <<\_ACEOF |
| 11975 | #define ATHEOS_THREADS 1 |
| 11976 | _ACEOF |
| 11977 | |
| 11978 | THREADOBJ="Python/thread.o" |
| 11979 | else |
| 11980 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11981 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 11982 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 11983 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 11984 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 11985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11986 | fi |
| 11987 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 11988 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11989 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11990 | # Is the header compilable? |
| 11991 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 11992 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 11993 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11994 | /* confdefs.h. */ |
| 11995 | _ACEOF |
| 11996 | cat confdefs.h >>conftest.$ac_ext |
| 11997 | cat >>conftest.$ac_ext <<_ACEOF |
| 11998 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11999 | $ac_includes_default |
| 12000 | #include <kernel/OS.h> |
| 12001 | _ACEOF |
| 12002 | rm -f conftest.$ac_objext |
| 12003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12004 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12005 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12006 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12007 | rm -f conftest.er1 |
| 12008 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12010 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12011 | { ac_try='test -z "$ac_c_werror_flag" |
| 12012 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12014 | (eval $ac_try) 2>&5 |
| 12015 | ac_status=$? |
| 12016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12017 | (exit $ac_status); }; } && |
| 12018 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12020 | (eval $ac_try) 2>&5 |
| 12021 | ac_status=$? |
| 12022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12023 | (exit $ac_status); }; }; then |
| 12024 | ac_header_compiler=yes |
| 12025 | else |
| 12026 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12028 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12029 | ac_header_compiler=no |
| 12030 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12031 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12032 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12033 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12034 | |
| 12035 | # Is the header present? |
| 12036 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 12037 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 12038 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12039 | /* confdefs.h. */ |
| 12040 | _ACEOF |
| 12041 | cat confdefs.h >>conftest.$ac_ext |
| 12042 | cat >>conftest.$ac_ext <<_ACEOF |
| 12043 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12044 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12045 | _ACEOF |
| 12046 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12047 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12048 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12049 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12050 | rm -f conftest.er1 |
| 12051 | cat conftest.err >&5 |
| 12052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12053 | (exit $ac_status); } >/dev/null; then |
| 12054 | if test -s conftest.err; then |
| 12055 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12056 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12057 | else |
| 12058 | ac_cpp_err= |
| 12059 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12060 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12061 | ac_cpp_err=yes |
| 12062 | fi |
| 12063 | if test -z "$ac_cpp_err"; then |
| 12064 | ac_header_preproc=yes |
| 12065 | else |
| 12066 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12068 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12069 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12070 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12071 | rm -f conftest.err conftest.$ac_ext |
| 12072 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12073 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12074 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12075 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12076 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12077 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12078 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12079 | 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] | 12080 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5 |
| 12081 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;} |
| 12082 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12083 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12084 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12085 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 12086 | 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] | 12087 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 12088 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 12089 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5 |
| 12090 | echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;} |
| 12091 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 12092 | 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] | 12093 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 12094 | 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] | 12095 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5 |
| 12096 | 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] | 12097 | ( |
| 12098 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 12099 | ## ------------------------------------------------ ## |
| 12100 | ## Report this to http://www.python.org/python-bugs ## |
| 12101 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12102 | _ASBOX |
| 12103 | ) | |
| 12104 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12105 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12106 | esac |
| 12107 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 12108 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 12109 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 12110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12111 | else |
| 12112 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 12113 | fi |
| 12114 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 12115 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 12116 | |
| 12117 | fi |
| 12118 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 12119 | cat >>confdefs.h <<\_ACEOF |
| 12120 | #define WITH_THREAD 1 |
| 12121 | _ACEOF |
| 12122 | |
| 12123 | |
| 12124 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12125 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12126 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12127 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12128 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12129 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12130 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12131 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 12132 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 12133 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 12134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12135 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12136 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12137 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12138 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12139 | /* confdefs.h. */ |
| 12140 | _ACEOF |
| 12141 | cat confdefs.h >>conftest.$ac_ext |
| 12142 | cat >>conftest.$ac_ext <<_ACEOF |
| 12143 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12144 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12145 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12146 | #ifdef __cplusplus |
| 12147 | extern "C" |
| 12148 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12149 | /* 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] | 12150 | builtin and then its argument prototype would still apply. */ |
| 12151 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12152 | int |
| 12153 | main () |
| 12154 | { |
| 12155 | pthread_create (); |
| 12156 | ; |
| 12157 | return 0; |
| 12158 | } |
| 12159 | _ACEOF |
| 12160 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12161 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12162 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12163 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12164 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12165 | rm -f conftest.er1 |
| 12166 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12168 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12169 | { ac_try='test -z "$ac_c_werror_flag" |
| 12170 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12172 | (eval $ac_try) 2>&5 |
| 12173 | ac_status=$? |
| 12174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12175 | (exit $ac_status); }; } && |
| 12176 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12178 | (eval $ac_try) 2>&5 |
| 12179 | ac_status=$? |
| 12180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12181 | (exit $ac_status); }; }; then |
| 12182 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12183 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12184 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12185 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12186 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12187 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12188 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12189 | rm -f conftest.err conftest.$ac_objext \ |
| 12190 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12191 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12192 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12193 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 12194 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 12195 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 12196 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12197 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12198 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12199 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12200 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12201 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12202 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12203 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12204 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12205 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 12206 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 12207 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 12208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12209 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12210 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12211 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12212 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12213 | /* confdefs.h. */ |
| 12214 | _ACEOF |
| 12215 | cat confdefs.h >>conftest.$ac_ext |
| 12216 | cat >>conftest.$ac_ext <<_ACEOF |
| 12217 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12218 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12219 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12220 | #ifdef __cplusplus |
| 12221 | extern "C" |
| 12222 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12223 | /* 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] | 12224 | builtin and then its argument prototype would still apply. */ |
| 12225 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12226 | int |
| 12227 | main () |
| 12228 | { |
| 12229 | pthread_create (); |
| 12230 | ; |
| 12231 | return 0; |
| 12232 | } |
| 12233 | _ACEOF |
| 12234 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12235 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12236 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12237 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12238 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12239 | rm -f conftest.er1 |
| 12240 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12242 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12243 | { ac_try='test -z "$ac_c_werror_flag" |
| 12244 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12246 | (eval $ac_try) 2>&5 |
| 12247 | ac_status=$? |
| 12248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12249 | (exit $ac_status); }; } && |
| 12250 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12252 | (eval $ac_try) 2>&5 |
| 12253 | ac_status=$? |
| 12254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12255 | (exit $ac_status); }; }; then |
| 12256 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12257 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12258 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12259 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12260 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12261 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12262 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12263 | rm -f conftest.err conftest.$ac_objext \ |
| 12264 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12265 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12266 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12267 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 12268 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 12269 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 12270 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12271 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12272 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12273 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12274 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12275 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12276 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 12277 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 12278 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12279 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 12280 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 12281 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 12282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12283 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12284 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12285 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12286 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12287 | /* confdefs.h. */ |
| 12288 | _ACEOF |
| 12289 | cat confdefs.h >>conftest.$ac_ext |
| 12290 | cat >>conftest.$ac_ext <<_ACEOF |
| 12291 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12292 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12293 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12294 | #ifdef __cplusplus |
| 12295 | extern "C" |
| 12296 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12297 | /* 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] | 12298 | builtin and then its argument prototype would still apply. */ |
| 12299 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12300 | int |
| 12301 | main () |
| 12302 | { |
| 12303 | __pthread_create_system (); |
| 12304 | ; |
| 12305 | return 0; |
| 12306 | } |
| 12307 | _ACEOF |
| 12308 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12309 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12310 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12311 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12312 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12313 | rm -f conftest.er1 |
| 12314 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12316 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12317 | { ac_try='test -z "$ac_c_werror_flag" |
| 12318 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12320 | (eval $ac_try) 2>&5 |
| 12321 | ac_status=$? |
| 12322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12323 | (exit $ac_status); }; } && |
| 12324 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12326 | (eval $ac_try) 2>&5 |
| 12327 | ac_status=$? |
| 12328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12329 | (exit $ac_status); }; }; then |
| 12330 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12331 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12332 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12333 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12334 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12335 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12336 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12337 | rm -f conftest.err conftest.$ac_objext \ |
| 12338 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12339 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12340 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12341 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 12342 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 12343 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 12344 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12345 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12346 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12347 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12348 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12349 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12350 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12351 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12352 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12353 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 12354 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 12355 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 12356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12357 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12358 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12359 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12360 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12361 | /* confdefs.h. */ |
| 12362 | _ACEOF |
| 12363 | cat confdefs.h >>conftest.$ac_ext |
| 12364 | cat >>conftest.$ac_ext <<_ACEOF |
| 12365 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12366 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12367 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12368 | #ifdef __cplusplus |
| 12369 | extern "C" |
| 12370 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12371 | /* 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] | 12372 | builtin and then its argument prototype would still apply. */ |
| 12373 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12374 | int |
| 12375 | main () |
| 12376 | { |
| 12377 | pthread_create (); |
| 12378 | ; |
| 12379 | return 0; |
| 12380 | } |
| 12381 | _ACEOF |
| 12382 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12383 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12384 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12385 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12386 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12387 | rm -f conftest.er1 |
| 12388 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12390 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12391 | { ac_try='test -z "$ac_c_werror_flag" |
| 12392 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12394 | (eval $ac_try) 2>&5 |
| 12395 | ac_status=$? |
| 12396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12397 | (exit $ac_status); }; } && |
| 12398 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12400 | (eval $ac_try) 2>&5 |
| 12401 | ac_status=$? |
| 12402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12403 | (exit $ac_status); }; }; then |
| 12404 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12405 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12406 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12408 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12409 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12410 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12411 | rm -f conftest.err conftest.$ac_objext \ |
| 12412 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12413 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12414 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12415 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 12416 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 12417 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 12418 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12419 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12420 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12421 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12422 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12423 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12424 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12425 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 12426 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12427 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 12428 | fi |
| 12429 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12430 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12431 | fi |
| 12432 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 12433 | fi |
| 12434 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12435 | fi |
| 12436 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12437 | fi |
| 12438 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 12439 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12440 | fi |
| 12441 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12442 | |
| 12443 | fi |
| 12444 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12445 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12446 | rm -f conftest.err conftest.$ac_objext \ |
| 12447 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12448 | fi; |
| 12449 | fi |
| 12450 | |
| 12451 | |
| 12452 | fi |
| 12453 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12454 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12455 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12456 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 12457 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 12458 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 12459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12460 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12461 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12462 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12463 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12464 | /* confdefs.h. */ |
| 12465 | _ACEOF |
| 12466 | cat confdefs.h >>conftest.$ac_ext |
| 12467 | cat >>conftest.$ac_ext <<_ACEOF |
| 12468 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12469 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12470 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12471 | #ifdef __cplusplus |
| 12472 | extern "C" |
| 12473 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12474 | /* 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] | 12475 | builtin and then its argument prototype would still apply. */ |
| 12476 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12477 | int |
| 12478 | main () |
| 12479 | { |
| 12480 | usconfig (); |
| 12481 | ; |
| 12482 | return 0; |
| 12483 | } |
| 12484 | _ACEOF |
| 12485 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12486 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12487 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12488 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12489 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12490 | rm -f conftest.er1 |
| 12491 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12493 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12494 | { ac_try='test -z "$ac_c_werror_flag" |
| 12495 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12497 | (eval $ac_try) 2>&5 |
| 12498 | ac_status=$? |
| 12499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12500 | (exit $ac_status); }; } && |
| 12501 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12503 | (eval $ac_try) 2>&5 |
| 12504 | ac_status=$? |
| 12505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12506 | (exit $ac_status); }; }; then |
| 12507 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12508 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12509 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12511 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12512 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12513 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12514 | rm -f conftest.err conftest.$ac_objext \ |
| 12515 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12516 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12517 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12518 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 12519 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 12520 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 12521 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12522 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12523 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12524 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12525 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12526 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12527 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12528 | fi |
| 12529 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12530 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 12531 | if test "$posix_threads" != "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12532 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 12533 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 12534 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 12535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12536 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12537 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12538 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12539 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12540 | /* confdefs.h. */ |
| 12541 | _ACEOF |
| 12542 | cat confdefs.h >>conftest.$ac_ext |
| 12543 | cat >>conftest.$ac_ext <<_ACEOF |
| 12544 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12545 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12546 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12547 | #ifdef __cplusplus |
| 12548 | extern "C" |
| 12549 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12550 | /* 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] | 12551 | builtin and then its argument prototype would still apply. */ |
| 12552 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12553 | int |
| 12554 | main () |
| 12555 | { |
| 12556 | thr_create (); |
| 12557 | ; |
| 12558 | return 0; |
| 12559 | } |
| 12560 | _ACEOF |
| 12561 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12562 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12563 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12564 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12566 | rm -f conftest.er1 |
| 12567 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12569 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12570 | { ac_try='test -z "$ac_c_werror_flag" |
| 12571 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12573 | (eval $ac_try) 2>&5 |
| 12574 | ac_status=$? |
| 12575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12576 | (exit $ac_status); }; } && |
| 12577 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12579 | (eval $ac_try) 2>&5 |
| 12580 | ac_status=$? |
| 12581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12582 | (exit $ac_status); }; }; then |
| 12583 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12584 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12585 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12586 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12587 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12588 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12589 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12590 | rm -f conftest.err conftest.$ac_objext \ |
| 12591 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12592 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12593 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12594 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 12595 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 12596 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 12597 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12598 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12599 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12600 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12601 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12602 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12603 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12604 | fi |
| 12605 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12606 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12607 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12608 | if test "$USE_THREAD_MODULE" != "#" |
| 12609 | then |
| 12610 | # If the above checks didn't disable threads, (at least) OSF1 |
| 12611 | # needs this '-threads' argument during linking. |
| 12612 | case $ac_sys_system in |
| 12613 | OSF1) LDLAST=-threads;; |
| 12614 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 12615 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12616 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12617 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12618 | if test "$posix_threads" = "yes"; then |
| 12619 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12620 | |
| 12621 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12622 | #define _POSIX_THREADS 1 |
| 12623 | _ACEOF |
| 12624 | |
| 12625 | fi |
| 12626 | |
| 12627 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 12628 | case $ac_sys_system/$ac_sys_release in |
| 12629 | SunOS/5.6) |
| 12630 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12631 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 12632 | _ACEOF |
| 12633 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12634 | ;; |
| 12635 | SunOS/5.8) |
| 12636 | cat >>confdefs.h <<\_ACEOF |
| 12637 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 12638 | _ACEOF |
| 12639 | |
| 12640 | ;; |
| 12641 | esac |
| 12642 | |
| 12643 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 12644 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 12645 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 12646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12647 | else |
| 12648 | if test "$cross_compiling" = yes; then |
| 12649 | ac_cv_pthread_system_supported=no |
| 12650 | else |
| 12651 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12652 | /* confdefs.h. */ |
| 12653 | _ACEOF |
| 12654 | cat confdefs.h >>conftest.$ac_ext |
| 12655 | cat >>conftest.$ac_ext <<_ACEOF |
| 12656 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12657 | #include <pthread.h> |
| 12658 | void *foo(void *parm) { |
| 12659 | return NULL; |
| 12660 | } |
| 12661 | main() { |
| 12662 | pthread_attr_t attr; |
| 12663 | pthread_t id; |
| 12664 | if (pthread_attr_init(&attr)) exit(-1); |
| 12665 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 12666 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 12667 | exit(0); |
| 12668 | } |
| 12669 | _ACEOF |
| 12670 | rm -f conftest$ac_exeext |
| 12671 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12672 | (eval $ac_link) 2>&5 |
| 12673 | ac_status=$? |
| 12674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12675 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12677 | (eval $ac_try) 2>&5 |
| 12678 | ac_status=$? |
| 12679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12680 | (exit $ac_status); }; }; then |
| 12681 | ac_cv_pthread_system_supported=yes |
| 12682 | else |
| 12683 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12684 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12685 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12686 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12687 | ( exit $ac_status ) |
| 12688 | ac_cv_pthread_system_supported=no |
| 12689 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12690 | 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] | 12691 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12692 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12693 | fi |
| 12694 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12695 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 12696 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
| 12697 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 12698 | |
| 12699 | cat >>confdefs.h <<\_ACEOF |
| 12700 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 12701 | _ACEOF |
| 12702 | |
| 12703 | fi |
| 12704 | |
| 12705 | for ac_func in pthread_sigmask |
| 12706 | do |
| 12707 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12708 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12709 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12710 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12712 | else |
| 12713 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12714 | /* confdefs.h. */ |
| 12715 | _ACEOF |
| 12716 | cat confdefs.h >>conftest.$ac_ext |
| 12717 | cat >>conftest.$ac_ext <<_ACEOF |
| 12718 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12719 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12720 | which can conflict with char $ac_func (); below. |
| 12721 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 12722 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 12723 | including <limits.h> includes <sys/time.h> and causes problems |
| 12724 | checking for functions defined therein. */ |
| 12725 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12726 | # include <limits.h> |
| 12727 | #else |
| 12728 | # include <assert.h> |
| 12729 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12730 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12731 | #ifdef __cplusplus |
| 12732 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12733 | { |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12734 | #endif |
| 12735 | /* We use char because int might match the return type of a gcc2 |
| 12736 | builtin and then its argument prototype would still apply. */ |
| 12737 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12738 | /* The GNU C library defines this for functions which it implements |
| 12739 | to always fail with ENOSYS. Some functions are actually named |
| 12740 | something starting with __ and the normal name is an alias. */ |
| 12741 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12742 | choke me |
| 12743 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12744 | char (*f) () = $ac_func; |
| 12745 | #endif |
| 12746 | #ifdef __cplusplus |
| 12747 | } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12748 | #endif |
| 12749 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12750 | int |
| 12751 | main () |
| 12752 | { |
| 12753 | return f != $ac_func; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12754 | ; |
| 12755 | return 0; |
| 12756 | } |
| 12757 | _ACEOF |
| 12758 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12759 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12760 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12761 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12762 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12763 | rm -f conftest.er1 |
| 12764 | cat conftest.err >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12766 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12767 | { ac_try='test -z "$ac_c_werror_flag" |
| 12768 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12770 | (eval $ac_try) 2>&5 |
| 12771 | ac_status=$? |
| 12772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12773 | (exit $ac_status); }; } && |
| 12774 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12776 | (eval $ac_try) 2>&5 |
| 12777 | ac_status=$? |
| 12778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12779 | (exit $ac_status); }; }; then |
| 12780 | eval "$as_ac_var=yes" |
| 12781 | else |
| 12782 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12784 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12785 | eval "$as_ac_var=no" |
| 12786 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12787 | rm -f conftest.err conftest.$ac_objext \ |
| 12788 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12789 | fi |
| 12790 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12791 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12792 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12793 | cat >>confdefs.h <<_ACEOF |
| 12794 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12795 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 12796 | case $ac_sys_system in |
| 12797 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12798 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 12799 | cat >>confdefs.h <<\_ACEOF |
| 12800 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 12801 | _ACEOF |
| 12802 | |
| 12803 | ;; |
| 12804 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12805 | fi |
| 12806 | done |
| 12807 | |
| 12808 | fi |
| 12809 | |
| 12810 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12811 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12812 | |
| 12813 | |
| 12814 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 12815 | 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] | 12816 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 12817 | if test "${enable_ipv6+set}" = set; then |
| 12818 | enableval="$enable_ipv6" |
| 12819 | case "$enableval" in |
| 12820 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12821 | echo "$as_me:$LINENO: result: no" >&5 |
| 12822 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12823 | ipv6=no |
| 12824 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12825 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 12826 | echo "${ECHO_T}yes" >&6 |
| 12827 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12828 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12829 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12830 | |
| 12831 | ipv6=yes |
| 12832 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12833 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12834 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12835 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12836 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12837 | echo "$as_me:$LINENO: result: no" >&5 |
| 12838 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12839 | ipv6=no |
| 12840 | |
| 12841 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12842 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12843 | /* confdefs.h. */ |
| 12844 | _ACEOF |
| 12845 | cat confdefs.h >>conftest.$ac_ext |
| 12846 | cat >>conftest.$ac_ext <<_ACEOF |
| 12847 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12848 | /* AF_INET6 available check */ |
| 12849 | #include <sys/types.h> |
| 12850 | #include <sys/socket.h> |
| 12851 | main() |
| 12852 | { |
| 12853 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 12854 | exit(1); |
| 12855 | else |
| 12856 | exit(0); |
| 12857 | } |
| 12858 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12859 | _ACEOF |
| 12860 | rm -f conftest$ac_exeext |
| 12861 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12862 | (eval $ac_link) 2>&5 |
| 12863 | ac_status=$? |
| 12864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12865 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12867 | (eval $ac_try) 2>&5 |
| 12868 | ac_status=$? |
| 12869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12870 | (exit $ac_status); }; }; then |
| 12871 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12872 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12873 | ipv6=yes |
| 12874 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12875 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12876 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12878 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12879 | ( exit $ac_status ) |
| 12880 | echo "$as_me:$LINENO: result: no" >&5 |
| 12881 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12882 | ipv6=no |
| 12883 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12884 | 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] | 12885 | fi |
| 12886 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12887 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12888 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 12889 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 12890 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12891 | /* confdefs.h. */ |
| 12892 | _ACEOF |
| 12893 | cat confdefs.h >>conftest.$ac_ext |
| 12894 | cat >>conftest.$ac_ext <<_ACEOF |
| 12895 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12896 | #include <sys/types.h> |
| 12897 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12898 | int |
| 12899 | main () |
| 12900 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12901 | struct sockaddr_in6 x; |
| 12902 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12903 | ; |
| 12904 | return 0; |
| 12905 | } |
| 12906 | _ACEOF |
| 12907 | rm -f conftest.$ac_objext |
| 12908 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12909 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12910 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12911 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12912 | rm -f conftest.er1 |
| 12913 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12915 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12916 | { ac_try='test -z "$ac_c_werror_flag" |
| 12917 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12919 | (eval $ac_try) 2>&5 |
| 12920 | ac_status=$? |
| 12921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12922 | (exit $ac_status); }; } && |
| 12923 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12925 | (eval $ac_try) 2>&5 |
| 12926 | ac_status=$? |
| 12927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12928 | (exit $ac_status); }; }; then |
| 12929 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12930 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12931 | ipv6=yes |
| 12932 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12933 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12934 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12935 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12936 | echo "$as_me:$LINENO: result: no" >&5 |
| 12937 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12938 | ipv6=no |
| 12939 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12940 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12941 | fi |
| 12942 | |
| 12943 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12944 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12945 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12946 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12947 | |
| 12948 | fi |
| 12949 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12950 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12951 | |
| 12952 | ipv6type=unknown |
| 12953 | ipv6lib=none |
| 12954 | ipv6trylibc=no |
| 12955 | |
| 12956 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12957 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 12958 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 12959 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 12960 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12961 | case $i in |
| 12962 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12963 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12964 | /* confdefs.h. */ |
| 12965 | _ACEOF |
| 12966 | cat confdefs.h >>conftest.$ac_ext |
| 12967 | cat >>conftest.$ac_ext <<_ACEOF |
| 12968 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12969 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12970 | #include <netinet/in.h> |
| 12971 | #ifdef IPV6_INRIA_VERSION |
| 12972 | yes |
| 12973 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12974 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12975 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12976 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 12977 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12978 | fi |
| 12979 | rm -f conftest* |
| 12980 | |
| 12981 | ;; |
| 12982 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12983 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12984 | /* confdefs.h. */ |
| 12985 | _ACEOF |
| 12986 | cat confdefs.h >>conftest.$ac_ext |
| 12987 | cat >>conftest.$ac_ext <<_ACEOF |
| 12988 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12989 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12990 | #include <netinet/in.h> |
| 12991 | #ifdef __KAME__ |
| 12992 | yes |
| 12993 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12994 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12995 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12996 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12997 | ipv6type=$i; |
| 12998 | ipv6lib=inet6 |
| 12999 | ipv6libdir=/usr/local/v6/lib |
| 13000 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13001 | fi |
| 13002 | rm -f conftest* |
| 13003 | |
| 13004 | ;; |
| 13005 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13006 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13007 | /* confdefs.h. */ |
| 13008 | _ACEOF |
| 13009 | cat confdefs.h >>conftest.$ac_ext |
| 13010 | cat >>conftest.$ac_ext <<_ACEOF |
| 13011 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13012 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13013 | #include <features.h> |
| 13014 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 13015 | yes |
| 13016 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13017 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13018 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13019 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13020 | ipv6type=$i; |
| 13021 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13022 | fi |
| 13023 | rm -f conftest* |
| 13024 | |
| 13025 | ;; |
| 13026 | linux-inet6) |
| 13027 | if test -d /usr/inet6; then |
| 13028 | ipv6type=$i |
| 13029 | ipv6lib=inet6 |
| 13030 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 13031 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13032 | fi |
| 13033 | ;; |
| 13034 | solaris) |
| 13035 | if test -f /etc/netconfig; then |
| 13036 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 13037 | ipv6type=$i |
| 13038 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13039 | fi |
| 13040 | fi |
| 13041 | ;; |
| 13042 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13043 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13044 | /* confdefs.h. */ |
| 13045 | _ACEOF |
| 13046 | cat confdefs.h >>conftest.$ac_ext |
| 13047 | cat >>conftest.$ac_ext <<_ACEOF |
| 13048 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13049 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13050 | #include <sys/param.h> |
| 13051 | #ifdef _TOSHIBA_INET6 |
| 13052 | yes |
| 13053 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13054 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13055 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13056 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13057 | ipv6type=$i; |
| 13058 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 13059 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13060 | fi |
| 13061 | rm -f conftest* |
| 13062 | |
| 13063 | ;; |
| 13064 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13065 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13066 | /* confdefs.h. */ |
| 13067 | _ACEOF |
| 13068 | cat confdefs.h >>conftest.$ac_ext |
| 13069 | cat >>conftest.$ac_ext <<_ACEOF |
| 13070 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13071 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13072 | #include </usr/local/v6/include/sys/v6config.h> |
| 13073 | #ifdef __V6D__ |
| 13074 | yes |
| 13075 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13076 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13077 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13078 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13079 | ipv6type=$i; |
| 13080 | ipv6lib=v6; |
| 13081 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 13082 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13083 | fi |
| 13084 | rm -f conftest* |
| 13085 | |
| 13086 | ;; |
| 13087 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13088 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13089 | /* confdefs.h. */ |
| 13090 | _ACEOF |
| 13091 | cat confdefs.h >>conftest.$ac_ext |
| 13092 | cat >>conftest.$ac_ext <<_ACEOF |
| 13093 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13094 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13095 | #include <sys/param.h> |
| 13096 | #ifdef _ZETA_MINAMI_INET6 |
| 13097 | yes |
| 13098 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13099 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13100 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13101 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13102 | ipv6type=$i; |
| 13103 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 13104 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13105 | fi |
| 13106 | rm -f conftest* |
| 13107 | |
| 13108 | ;; |
| 13109 | esac |
| 13110 | if test "$ipv6type" != "unknown"; then |
| 13111 | break |
| 13112 | fi |
| 13113 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13114 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 13115 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13116 | fi |
| 13117 | |
| 13118 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 13119 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 13120 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 13121 | echo "using lib$ipv6lib" |
| 13122 | else |
| 13123 | if test $ipv6trylibc = "yes"; then |
| 13124 | echo "using libc" |
| 13125 | else |
| 13126 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 13127 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 13128 | echo 'ipv6 kit and compile beforehand.' |
| 13129 | exit 1 |
| 13130 | fi |
| 13131 | fi |
| 13132 | fi |
| 13133 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 13134 | # Check for --with-doc-strings |
| 13135 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 13136 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 13137 | |
| 13138 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 13139 | if test "${with_doc_strings+set}" = set; then |
| 13140 | withval="$with_doc_strings" |
| 13141 | |
| 13142 | fi; |
| 13143 | |
| 13144 | if test -z "$with_doc_strings" |
| 13145 | then with_doc_strings="yes" |
| 13146 | fi |
| 13147 | if test "$with_doc_strings" != "no" |
| 13148 | then |
| 13149 | |
| 13150 | cat >>confdefs.h <<\_ACEOF |
| 13151 | #define WITH_DOC_STRINGS 1 |
| 13152 | _ACEOF |
| 13153 | |
| 13154 | fi |
| 13155 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 13156 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 13157 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 13158 | # Check for Python-specific malloc support |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 13159 | echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 13160 | echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6 |
| 13161 | |
| 13162 | # Check whether --with-tsc or --without-tsc was given. |
| 13163 | if test "${with_tsc+set}" = set; then |
| 13164 | withval="$with_tsc" |
| 13165 | |
| 13166 | if test "$withval" != no |
| 13167 | then |
| 13168 | |
| 13169 | cat >>confdefs.h <<\_ACEOF |
| 13170 | #define WITH_TSC 1 |
| 13171 | _ACEOF |
| 13172 | |
| 13173 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13174 | echo "${ECHO_T}yes" >&6 |
| 13175 | else echo "$as_me:$LINENO: result: no" >&5 |
| 13176 | echo "${ECHO_T}no" >&6 |
| 13177 | fi |
| 13178 | else |
| 13179 | echo "$as_me:$LINENO: result: no" >&5 |
| 13180 | echo "${ECHO_T}no" >&6 |
| 13181 | fi; |
| 13182 | |
| 13183 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13184 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 13185 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 13186 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 13187 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 13188 | if test "${with_pymalloc+set}" = set; then |
| 13189 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13190 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13191 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 13192 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13193 | if test -z "$with_pymalloc" |
| 13194 | then with_pymalloc="yes" |
| 13195 | fi |
| 13196 | if test "$with_pymalloc" != "no" |
| 13197 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13198 | |
| 13199 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13200 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13201 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13202 | |
| 13203 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13204 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 13205 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13206 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13207 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13208 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 13209 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 13210 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13211 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 13212 | if test "${with_wctype_functions+set}" = set; then |
| 13213 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13214 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13215 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13216 | then |
| 13217 | |
| 13218 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13219 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13220 | _ACEOF |
| 13221 | |
| 13222 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13223 | echo "${ECHO_T}yes" >&6 |
| 13224 | else echo "$as_me:$LINENO: result: no" >&5 |
| 13225 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13226 | fi |
| 13227 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13228 | echo "$as_me:$LINENO: result: no" >&5 |
| 13229 | echo "${ECHO_T}no" >&6 |
| 13230 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13231 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13232 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13233 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 13234 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13235 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13236 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 13237 | # 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] | 13238 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13239 | for ac_func in dlopen |
| 13240 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13241 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13242 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13243 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13244 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13246 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13247 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13248 | /* confdefs.h. */ |
| 13249 | _ACEOF |
| 13250 | cat confdefs.h >>conftest.$ac_ext |
| 13251 | cat >>conftest.$ac_ext <<_ACEOF |
| 13252 | /* end confdefs.h. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13253 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13254 | which can conflict with char $ac_func (); below. |
| 13255 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13256 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13257 | including <limits.h> includes <sys/time.h> and causes problems |
| 13258 | checking for functions defined therein. */ |
| 13259 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13260 | # include <limits.h> |
| 13261 | #else |
| 13262 | # include <assert.h> |
| 13263 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13264 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13265 | #ifdef __cplusplus |
| 13266 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13267 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13268 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13269 | /* 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] | 13270 | builtin and then its argument prototype would still apply. */ |
| 13271 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13272 | /* The GNU C library defines this for functions which it implements |
| 13273 | to always fail with ENOSYS. Some functions are actually named |
| 13274 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13275 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13276 | choke me |
| 13277 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13278 | char (*f) () = $ac_func; |
| 13279 | #endif |
| 13280 | #ifdef __cplusplus |
| 13281 | } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13282 | #endif |
| 13283 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13284 | int |
| 13285 | main () |
| 13286 | { |
| 13287 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13288 | ; |
| 13289 | return 0; |
| 13290 | } |
| 13291 | _ACEOF |
| 13292 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13293 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13294 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13295 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13296 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13297 | rm -f conftest.er1 |
| 13298 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13300 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13301 | { ac_try='test -z "$ac_c_werror_flag" |
| 13302 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13304 | (eval $ac_try) 2>&5 |
| 13305 | ac_status=$? |
| 13306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13307 | (exit $ac_status); }; } && |
| 13308 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13310 | (eval $ac_try) 2>&5 |
| 13311 | ac_status=$? |
| 13312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13313 | (exit $ac_status); }; }; then |
| 13314 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13315 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13316 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13317 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13318 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13319 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13320 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13321 | rm -f conftest.err conftest.$ac_objext \ |
| 13322 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13323 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13324 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13325 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13326 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13327 | cat >>confdefs.h <<_ACEOF |
| 13328 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13329 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13330 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13331 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13332 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13333 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13334 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13335 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 13336 | # loading of modules. |
| 13337 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13338 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 13339 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13340 | if test -z "$DYNLOADFILE" |
| 13341 | then |
| 13342 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 13343 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 13344 | if test "$ac_cv_func_dlopen" = yes |
| 13345 | then DYNLOADFILE="dynload_shlib.o" |
| 13346 | else DYNLOADFILE="dynload_aix.o" |
| 13347 | fi |
| 13348 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13349 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 13350 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13351 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13352 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13353 | *) |
| 13354 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 13355 | # out any dynamic loading |
| 13356 | if test "$ac_cv_func_dlopen" = yes |
| 13357 | then DYNLOADFILE="dynload_shlib.o" |
| 13358 | else DYNLOADFILE="dynload_stub.o" |
| 13359 | fi |
| 13360 | ;; |
| 13361 | esac |
| 13362 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13363 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 13364 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13365 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 13366 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13367 | |
| 13368 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13369 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13370 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13371 | |
| 13372 | fi |
| 13373 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13374 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 13375 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13376 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13377 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 13378 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13379 | if test -z "$MACHDEP_OBJS" |
| 13380 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13381 | MACHDEP_OBJS=$extra_machdep_objs |
| 13382 | else |
| 13383 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13384 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13385 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 13386 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13387 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13388 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13389 | |
| 13390 | |
| 13391 | |
| 13392 | |
| 13393 | |
| 13394 | |
| 13395 | |
| 13396 | |
| 13397 | |
| 13398 | |
| 13399 | |
| 13400 | |
| 13401 | |
| 13402 | |
| 13403 | |
| 13404 | |
| 13405 | |
| 13406 | |
| 13407 | |
| 13408 | |
| 13409 | |
| 13410 | |
| 13411 | |
| 13412 | |
| 13413 | |
| 13414 | |
| 13415 | |
| 13416 | |
| 13417 | |
| 13418 | |
| 13419 | |
| 13420 | |
| 13421 | |
| 13422 | |
| 13423 | |
| 13424 | |
| 13425 | |
| 13426 | |
| 13427 | |
| 13428 | |
| 13429 | |
| 13430 | |
| 13431 | |
| 13432 | |
| 13433 | |
| 13434 | |
| 13435 | |
| 13436 | |
| 13437 | |
| 13438 | |
| 13439 | |
| 13440 | |
| 13441 | |
| 13442 | |
| 13443 | |
| 13444 | |
| 13445 | |
| 13446 | |
| 13447 | |
| 13448 | |
| 13449 | |
| 13450 | |
| 13451 | |
| 13452 | |
| 13453 | |
| 13454 | |
| 13455 | |
| 13456 | |
| 13457 | |
| 13458 | |
| 13459 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13460 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 13461 | |
| 13462 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13463 | for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \ |
| 13464 | execv fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 13465 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 13466 | getpriority getpwent getspnam getspent getsid getwd \ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13467 | kill killpg lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 13468 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 13469 | putenv readlink realpath \ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13470 | select setegid seteuid setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 13471 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 13472 | sigaction siginterrupt sigrelse strftime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 13473 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 13474 | truncate uname unsetenv utimes waitpid wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13475 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13476 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13477 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13478 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13479 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13481 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13482 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13483 | /* confdefs.h. */ |
| 13484 | _ACEOF |
| 13485 | cat confdefs.h >>conftest.$ac_ext |
| 13486 | cat >>conftest.$ac_ext <<_ACEOF |
| 13487 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13488 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13489 | which can conflict with char $ac_func (); below. |
| 13490 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13491 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13492 | including <limits.h> includes <sys/time.h> and causes problems |
| 13493 | checking for functions defined therein. */ |
| 13494 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13495 | # include <limits.h> |
| 13496 | #else |
| 13497 | # include <assert.h> |
| 13498 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13499 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13500 | #ifdef __cplusplus |
| 13501 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13502 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13503 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13504 | /* 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] | 13505 | builtin and then its argument prototype would still apply. */ |
| 13506 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13507 | /* The GNU C library defines this for functions which it implements |
| 13508 | to always fail with ENOSYS. Some functions are actually named |
| 13509 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13510 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13511 | choke me |
| 13512 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13513 | char (*f) () = $ac_func; |
| 13514 | #endif |
| 13515 | #ifdef __cplusplus |
| 13516 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13517 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13518 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13519 | int |
| 13520 | main () |
| 13521 | { |
| 13522 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13523 | ; |
| 13524 | return 0; |
| 13525 | } |
| 13526 | _ACEOF |
| 13527 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13528 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13529 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13530 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13531 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13532 | rm -f conftest.er1 |
| 13533 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13535 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13536 | { ac_try='test -z "$ac_c_werror_flag" |
| 13537 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13539 | (eval $ac_try) 2>&5 |
| 13540 | ac_status=$? |
| 13541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13542 | (exit $ac_status); }; } && |
| 13543 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13545 | (eval $ac_try) 2>&5 |
| 13546 | ac_status=$? |
| 13547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13548 | (exit $ac_status); }; }; then |
| 13549 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13550 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13551 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13553 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13554 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13555 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13556 | rm -f conftest.err conftest.$ac_objext \ |
| 13557 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13558 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13559 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13560 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13561 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13562 | cat >>confdefs.h <<_ACEOF |
| 13563 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13564 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13565 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13566 | fi |
| 13567 | done |
| 13568 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13569 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13570 | # For some functions, having a definition is not sufficient, since |
| 13571 | # we want to take their address. |
| 13572 | echo "$as_me:$LINENO: checking for chroot" >&5 |
| 13573 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6 |
| 13574 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13575 | /* confdefs.h. */ |
| 13576 | _ACEOF |
| 13577 | cat confdefs.h >>conftest.$ac_ext |
| 13578 | cat >>conftest.$ac_ext <<_ACEOF |
| 13579 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13580 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13581 | int |
| 13582 | main () |
| 13583 | { |
| 13584 | void *x=chroot |
| 13585 | ; |
| 13586 | return 0; |
| 13587 | } |
| 13588 | _ACEOF |
| 13589 | rm -f conftest.$ac_objext |
| 13590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13591 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13592 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13593 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13594 | rm -f conftest.er1 |
| 13595 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13597 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13598 | { ac_try='test -z "$ac_c_werror_flag" |
| 13599 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13601 | (eval $ac_try) 2>&5 |
| 13602 | ac_status=$? |
| 13603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13604 | (exit $ac_status); }; } && |
| 13605 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13607 | (eval $ac_try) 2>&5 |
| 13608 | ac_status=$? |
| 13609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13610 | (exit $ac_status); }; }; then |
| 13611 | |
| 13612 | cat >>confdefs.h <<\_ACEOF |
| 13613 | #define HAVE_CHROOT 1 |
| 13614 | _ACEOF |
| 13615 | |
| 13616 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13617 | echo "${ECHO_T}yes" >&6 |
| 13618 | else |
| 13619 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13621 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13622 | echo "$as_me:$LINENO: result: no" >&5 |
| 13623 | echo "${ECHO_T}no" >&6 |
| 13624 | |
| 13625 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13626 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13627 | echo "$as_me:$LINENO: checking for link" >&5 |
| 13628 | echo $ECHO_N "checking for link... $ECHO_C" >&6 |
| 13629 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13630 | /* confdefs.h. */ |
| 13631 | _ACEOF |
| 13632 | cat confdefs.h >>conftest.$ac_ext |
| 13633 | cat >>conftest.$ac_ext <<_ACEOF |
| 13634 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13635 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13636 | int |
| 13637 | main () |
| 13638 | { |
| 13639 | void *x=link |
| 13640 | ; |
| 13641 | return 0; |
| 13642 | } |
| 13643 | _ACEOF |
| 13644 | rm -f conftest.$ac_objext |
| 13645 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13646 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13647 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13648 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13649 | rm -f conftest.er1 |
| 13650 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13652 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13653 | { ac_try='test -z "$ac_c_werror_flag" |
| 13654 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13656 | (eval $ac_try) 2>&5 |
| 13657 | ac_status=$? |
| 13658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13659 | (exit $ac_status); }; } && |
| 13660 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13662 | (eval $ac_try) 2>&5 |
| 13663 | ac_status=$? |
| 13664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13665 | (exit $ac_status); }; }; then |
| 13666 | |
| 13667 | cat >>confdefs.h <<\_ACEOF |
| 13668 | #define HAVE_LINK 1 |
| 13669 | _ACEOF |
| 13670 | |
| 13671 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13672 | echo "${ECHO_T}yes" >&6 |
| 13673 | else |
| 13674 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13675 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13676 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13677 | echo "$as_me:$LINENO: result: no" >&5 |
| 13678 | echo "${ECHO_T}no" >&6 |
| 13679 | |
| 13680 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13681 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13682 | echo "$as_me:$LINENO: checking for symlink" >&5 |
| 13683 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6 |
| 13684 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13685 | /* confdefs.h. */ |
| 13686 | _ACEOF |
| 13687 | cat confdefs.h >>conftest.$ac_ext |
| 13688 | cat >>conftest.$ac_ext <<_ACEOF |
| 13689 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13690 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13691 | int |
| 13692 | main () |
| 13693 | { |
| 13694 | void *x=symlink |
| 13695 | ; |
| 13696 | return 0; |
| 13697 | } |
| 13698 | _ACEOF |
| 13699 | rm -f conftest.$ac_objext |
| 13700 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13701 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13702 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13704 | rm -f conftest.er1 |
| 13705 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13707 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13708 | { ac_try='test -z "$ac_c_werror_flag" |
| 13709 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13711 | (eval $ac_try) 2>&5 |
| 13712 | ac_status=$? |
| 13713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13714 | (exit $ac_status); }; } && |
| 13715 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13717 | (eval $ac_try) 2>&5 |
| 13718 | ac_status=$? |
| 13719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13720 | (exit $ac_status); }; }; then |
| 13721 | |
| 13722 | cat >>confdefs.h <<\_ACEOF |
| 13723 | #define HAVE_SYMLINK 1 |
| 13724 | _ACEOF |
| 13725 | |
| 13726 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13727 | echo "${ECHO_T}yes" >&6 |
| 13728 | else |
| 13729 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13730 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13731 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13732 | echo "$as_me:$LINENO: result: no" >&5 |
| 13733 | echo "${ECHO_T}no" >&6 |
| 13734 | |
| 13735 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13736 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13737 | echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 13738 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6 |
| 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 | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13745 | #include <unistd.h> |
| 13746 | int |
| 13747 | main () |
| 13748 | { |
| 13749 | void *x=fchdir |
| 13750 | ; |
| 13751 | return 0; |
| 13752 | } |
| 13753 | _ACEOF |
| 13754 | rm -f conftest.$ac_objext |
| 13755 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13756 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13757 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13759 | rm -f conftest.er1 |
| 13760 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13762 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13763 | { ac_try='test -z "$ac_c_werror_flag" |
| 13764 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13766 | (eval $ac_try) 2>&5 |
| 13767 | ac_status=$? |
| 13768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13769 | (exit $ac_status); }; } && |
| 13770 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13772 | (eval $ac_try) 2>&5 |
| 13773 | ac_status=$? |
| 13774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13775 | (exit $ac_status); }; }; then |
| 13776 | |
| 13777 | cat >>confdefs.h <<\_ACEOF |
| 13778 | #define HAVE_FCHDIR 1 |
| 13779 | _ACEOF |
| 13780 | |
| 13781 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13782 | echo "${ECHO_T}yes" >&6 |
| 13783 | else |
| 13784 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13785 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13786 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13787 | echo "$as_me:$LINENO: result: no" >&5 |
| 13788 | echo "${ECHO_T}no" >&6 |
| 13789 | |
| 13790 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13791 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13792 | echo "$as_me:$LINENO: checking for fsync" >&5 |
| 13793 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6 |
| 13794 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13795 | /* confdefs.h. */ |
| 13796 | _ACEOF |
| 13797 | cat confdefs.h >>conftest.$ac_ext |
| 13798 | cat >>conftest.$ac_ext <<_ACEOF |
| 13799 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13800 | #include <unistd.h> |
| 13801 | int |
| 13802 | main () |
| 13803 | { |
| 13804 | void *x=fsync |
| 13805 | ; |
| 13806 | return 0; |
| 13807 | } |
| 13808 | _ACEOF |
| 13809 | rm -f conftest.$ac_objext |
| 13810 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13811 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13812 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13813 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13814 | rm -f conftest.er1 |
| 13815 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13817 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13818 | { ac_try='test -z "$ac_c_werror_flag" |
| 13819 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13821 | (eval $ac_try) 2>&5 |
| 13822 | ac_status=$? |
| 13823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13824 | (exit $ac_status); }; } && |
| 13825 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13827 | (eval $ac_try) 2>&5 |
| 13828 | ac_status=$? |
| 13829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13830 | (exit $ac_status); }; }; then |
| 13831 | |
| 13832 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13833 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13834 | _ACEOF |
| 13835 | |
| 13836 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13837 | echo "${ECHO_T}yes" >&6 |
| 13838 | else |
| 13839 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13840 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13841 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13842 | echo "$as_me:$LINENO: result: no" >&5 |
| 13843 | echo "${ECHO_T}no" >&6 |
| 13844 | |
| 13845 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13846 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13847 | echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 13848 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6 |
| 13849 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13850 | /* confdefs.h. */ |
| 13851 | _ACEOF |
| 13852 | cat confdefs.h >>conftest.$ac_ext |
| 13853 | cat >>conftest.$ac_ext <<_ACEOF |
| 13854 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13855 | #include <unistd.h> |
| 13856 | int |
| 13857 | main () |
| 13858 | { |
| 13859 | void *x=fdatasync |
| 13860 | ; |
| 13861 | return 0; |
| 13862 | } |
| 13863 | _ACEOF |
| 13864 | rm -f conftest.$ac_objext |
| 13865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13866 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13867 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13868 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13869 | rm -f conftest.er1 |
| 13870 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13872 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13873 | { ac_try='test -z "$ac_c_werror_flag" |
| 13874 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13876 | (eval $ac_try) 2>&5 |
| 13877 | ac_status=$? |
| 13878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13879 | (exit $ac_status); }; } && |
| 13880 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13882 | (eval $ac_try) 2>&5 |
| 13883 | ac_status=$? |
| 13884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13885 | (exit $ac_status); }; }; then |
| 13886 | |
| 13887 | cat >>confdefs.h <<\_ACEOF |
| 13888 | #define HAVE_FDATASYNC 1 |
| 13889 | _ACEOF |
| 13890 | |
| 13891 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13892 | echo "${ECHO_T}yes" >&6 |
| 13893 | else |
| 13894 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13895 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13896 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13897 | echo "$as_me:$LINENO: result: no" >&5 |
| 13898 | echo "${ECHO_T}no" >&6 |
| 13899 | |
| 13900 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13901 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13902 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13903 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 13904 | # functions ctermid_r, setgroups in the library, but no prototype |
| 13905 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 13906 | # address to avoid compiler warnings and potential miscompilations |
| 13907 | # because of the missing prototypes. |
| 13908 | |
| 13909 | echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 13910 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6 |
| 13911 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13912 | /* confdefs.h. */ |
| 13913 | _ACEOF |
| 13914 | cat confdefs.h >>conftest.$ac_ext |
| 13915 | cat >>conftest.$ac_ext <<_ACEOF |
| 13916 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13917 | |
| 13918 | #include "confdefs.h" |
| 13919 | #include <stdio.h> |
| 13920 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13921 | int |
| 13922 | main () |
| 13923 | { |
| 13924 | void* p = ctermid_r |
| 13925 | ; |
| 13926 | return 0; |
| 13927 | } |
| 13928 | _ACEOF |
| 13929 | rm -f conftest.$ac_objext |
| 13930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13931 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13932 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13933 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13934 | rm -f conftest.er1 |
| 13935 | cat conftest.err >&5 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13937 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13938 | { ac_try='test -z "$ac_c_werror_flag" |
| 13939 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13941 | (eval $ac_try) 2>&5 |
| 13942 | ac_status=$? |
| 13943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13944 | (exit $ac_status); }; } && |
| 13945 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13947 | (eval $ac_try) 2>&5 |
| 13948 | ac_status=$? |
| 13949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13950 | (exit $ac_status); }; }; then |
| 13951 | |
| 13952 | cat >>confdefs.h <<\_ACEOF |
| 13953 | #define HAVE_CTERMID_R 1 |
| 13954 | _ACEOF |
| 13955 | |
| 13956 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13957 | echo "${ECHO_T}yes" >&6 |
| 13958 | else |
| 13959 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13960 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13961 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13962 | echo "$as_me:$LINENO: result: no" >&5 |
| 13963 | echo "${ECHO_T}no" >&6 |
| 13964 | |
| 13965 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13966 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13967 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13968 | echo "$as_me:$LINENO: checking for flock" >&5 |
| 13969 | echo $ECHO_N "checking for flock... $ECHO_C" >&6 |
| 13970 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13971 | /* confdefs.h. */ |
| 13972 | _ACEOF |
| 13973 | cat confdefs.h >>conftest.$ac_ext |
| 13974 | cat >>conftest.$ac_ext <<_ACEOF |
| 13975 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13976 | |
| 13977 | #include "confdefs.h" |
| 13978 | #include <sys/file.h> |
| 13979 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13980 | int |
| 13981 | main () |
| 13982 | { |
| 13983 | void* p = flock |
| 13984 | ; |
| 13985 | return 0; |
| 13986 | } |
| 13987 | _ACEOF |
| 13988 | rm -f conftest.$ac_objext |
| 13989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13990 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13991 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13993 | rm -f conftest.er1 |
| 13994 | cat conftest.err >&5 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13996 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13997 | { ac_try='test -z "$ac_c_werror_flag" |
| 13998 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14000 | (eval $ac_try) 2>&5 |
| 14001 | ac_status=$? |
| 14002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14003 | (exit $ac_status); }; } && |
| 14004 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14006 | (eval $ac_try) 2>&5 |
| 14007 | ac_status=$? |
| 14008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14009 | (exit $ac_status); }; }; then |
| 14010 | |
| 14011 | cat >>confdefs.h <<\_ACEOF |
| 14012 | #define HAVE_FLOCK 1 |
| 14013 | _ACEOF |
| 14014 | |
| 14015 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14016 | echo "${ECHO_T}yes" >&6 |
| 14017 | else |
| 14018 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14020 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14021 | echo "$as_me:$LINENO: result: no" >&5 |
| 14022 | echo "${ECHO_T}no" >&6 |
| 14023 | |
| 14024 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14025 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14026 | |
| 14027 | echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 14028 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 |
| 14029 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14030 | /* confdefs.h. */ |
| 14031 | _ACEOF |
| 14032 | cat confdefs.h >>conftest.$ac_ext |
| 14033 | cat >>conftest.$ac_ext <<_ACEOF |
| 14034 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14035 | |
| 14036 | #include "confdefs.h" |
| 14037 | #include <unistd.h> |
| 14038 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14039 | int |
| 14040 | main () |
| 14041 | { |
| 14042 | void* p = getpagesize |
| 14043 | ; |
| 14044 | return 0; |
| 14045 | } |
| 14046 | _ACEOF |
| 14047 | rm -f conftest.$ac_objext |
| 14048 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14049 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14050 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14051 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14052 | rm -f conftest.er1 |
| 14053 | cat conftest.err >&5 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14055 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14056 | { ac_try='test -z "$ac_c_werror_flag" |
| 14057 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14059 | (eval $ac_try) 2>&5 |
| 14060 | ac_status=$? |
| 14061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14062 | (exit $ac_status); }; } && |
| 14063 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14065 | (eval $ac_try) 2>&5 |
| 14066 | ac_status=$? |
| 14067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14068 | (exit $ac_status); }; }; then |
| 14069 | |
| 14070 | cat >>confdefs.h <<\_ACEOF |
| 14071 | #define HAVE_GETPAGESIZE 1 |
| 14072 | _ACEOF |
| 14073 | |
| 14074 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14075 | echo "${ECHO_T}yes" >&6 |
| 14076 | else |
| 14077 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14078 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14079 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14080 | echo "$as_me:$LINENO: result: no" >&5 |
| 14081 | echo "${ECHO_T}no" >&6 |
| 14082 | |
| 14083 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14084 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14085 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14086 | for ac_prog in true |
| 14087 | do |
| 14088 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 14089 | set dummy $ac_prog; ac_word=$2 |
| 14090 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14091 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 14092 | if test "${ac_cv_prog_TRUE+set}" = set; then |
| 14093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14094 | else |
| 14095 | if test -n "$TRUE"; then |
| 14096 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 14097 | else |
| 14098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14099 | for as_dir in $PATH |
| 14100 | do |
| 14101 | IFS=$as_save_IFS |
| 14102 | test -z "$as_dir" && as_dir=. |
| 14103 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14104 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14105 | ac_cv_prog_TRUE="$ac_prog" |
| 14106 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14107 | break 2 |
| 14108 | fi |
| 14109 | done |
| 14110 | done |
| 14111 | |
| 14112 | fi |
| 14113 | fi |
| 14114 | TRUE=$ac_cv_prog_TRUE |
| 14115 | if test -n "$TRUE"; then |
| 14116 | echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 14117 | echo "${ECHO_T}$TRUE" >&6 |
| 14118 | else |
| 14119 | echo "$as_me:$LINENO: result: no" >&5 |
| 14120 | echo "${ECHO_T}no" >&6 |
| 14121 | fi |
| 14122 | |
| 14123 | test -n "$TRUE" && break |
| 14124 | done |
| 14125 | test -n "$TRUE" || TRUE="/bin/true" |
| 14126 | |
| 14127 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14128 | echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 14129 | echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6 |
| 14130 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
| 14131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14132 | else |
| 14133 | ac_check_lib_save_LIBS=$LIBS |
| 14134 | LIBS="-lc $LIBS" |
| 14135 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14136 | /* confdefs.h. */ |
| 14137 | _ACEOF |
| 14138 | cat confdefs.h >>conftest.$ac_ext |
| 14139 | cat >>conftest.$ac_ext <<_ACEOF |
| 14140 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14141 | |
| 14142 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14143 | #ifdef __cplusplus |
| 14144 | extern "C" |
| 14145 | #endif |
| 14146 | /* We use char because int might match the return type of a gcc2 |
| 14147 | builtin and then its argument prototype would still apply. */ |
| 14148 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14149 | int |
| 14150 | main () |
| 14151 | { |
| 14152 | inet_aton (); |
| 14153 | ; |
| 14154 | return 0; |
| 14155 | } |
| 14156 | _ACEOF |
| 14157 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14158 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14159 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14160 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14162 | rm -f conftest.er1 |
| 14163 | cat conftest.err >&5 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14165 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14166 | { ac_try='test -z "$ac_c_werror_flag" |
| 14167 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14169 | (eval $ac_try) 2>&5 |
| 14170 | ac_status=$? |
| 14171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14172 | (exit $ac_status); }; } && |
| 14173 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14175 | (eval $ac_try) 2>&5 |
| 14176 | ac_status=$? |
| 14177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14178 | (exit $ac_status); }; }; then |
| 14179 | ac_cv_lib_c_inet_aton=yes |
| 14180 | else |
| 14181 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14183 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14184 | ac_cv_lib_c_inet_aton=no |
| 14185 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14186 | rm -f conftest.err conftest.$ac_objext \ |
| 14187 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14188 | LIBS=$ac_check_lib_save_LIBS |
| 14189 | fi |
| 14190 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 14191 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6 |
| 14192 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14193 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14194 | else |
| 14195 | |
| 14196 | echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 14197 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 |
| 14198 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 14199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14200 | else |
| 14201 | ac_check_lib_save_LIBS=$LIBS |
| 14202 | LIBS="-lresolv $LIBS" |
| 14203 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14204 | /* confdefs.h. */ |
| 14205 | _ACEOF |
| 14206 | cat confdefs.h >>conftest.$ac_ext |
| 14207 | cat >>conftest.$ac_ext <<_ACEOF |
| 14208 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14209 | |
| 14210 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14211 | #ifdef __cplusplus |
| 14212 | extern "C" |
| 14213 | #endif |
| 14214 | /* We use char because int might match the return type of a gcc2 |
| 14215 | builtin and then its argument prototype would still apply. */ |
| 14216 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14217 | int |
| 14218 | main () |
| 14219 | { |
| 14220 | inet_aton (); |
| 14221 | ; |
| 14222 | return 0; |
| 14223 | } |
| 14224 | _ACEOF |
| 14225 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14226 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14227 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14228 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14229 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14230 | rm -f conftest.er1 |
| 14231 | cat conftest.err >&5 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14233 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14234 | { ac_try='test -z "$ac_c_werror_flag" |
| 14235 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14237 | (eval $ac_try) 2>&5 |
| 14238 | ac_status=$? |
| 14239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14240 | (exit $ac_status); }; } && |
| 14241 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14243 | (eval $ac_try) 2>&5 |
| 14244 | ac_status=$? |
| 14245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14246 | (exit $ac_status); }; }; then |
| 14247 | ac_cv_lib_resolv_inet_aton=yes |
| 14248 | else |
| 14249 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14251 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14252 | ac_cv_lib_resolv_inet_aton=no |
| 14253 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14254 | rm -f conftest.err conftest.$ac_objext \ |
| 14255 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14256 | LIBS=$ac_check_lib_save_LIBS |
| 14257 | fi |
| 14258 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 14259 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 |
| 14260 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
| 14261 | cat >>confdefs.h <<_ACEOF |
| 14262 | #define HAVE_LIBRESOLV 1 |
| 14263 | _ACEOF |
| 14264 | |
| 14265 | LIBS="-lresolv $LIBS" |
| 14266 | |
| 14267 | fi |
| 14268 | |
| 14269 | |
| 14270 | fi |
| 14271 | |
| 14272 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14273 | echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 14274 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6 |
| 14275 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14276 | /* confdefs.h. */ |
| 14277 | _ACEOF |
| 14278 | cat confdefs.h >>conftest.$ac_ext |
| 14279 | cat >>conftest.$ac_ext <<_ACEOF |
| 14280 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14281 | |
| 14282 | #include "confdefs.h" |
| 14283 | #include <netdb.h> |
| 14284 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14285 | int |
| 14286 | main () |
| 14287 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14288 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14289 | ; |
| 14290 | return 0; |
| 14291 | } |
| 14292 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14293 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14294 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14295 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14296 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14297 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14298 | rm -f conftest.er1 |
| 14299 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14301 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14302 | { ac_try='test -z "$ac_c_werror_flag" |
| 14303 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14305 | (eval $ac_try) 2>&5 |
| 14306 | ac_status=$? |
| 14307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14308 | (exit $ac_status); }; } && |
| 14309 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14311 | (eval $ac_try) 2>&5 |
| 14312 | ac_status=$? |
| 14313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14314 | (exit $ac_status); }; }; then |
| 14315 | |
| 14316 | cat >>confdefs.h <<\_ACEOF |
| 14317 | #define HAVE_HSTRERROR 1 |
| 14318 | _ACEOF |
| 14319 | |
| 14320 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14321 | echo "${ECHO_T}yes" >&6 |
| 14322 | else |
| 14323 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14325 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14326 | echo "$as_me:$LINENO: result: no" >&5 |
| 14327 | echo "${ECHO_T}no" >&6 |
| 14328 | |
| 14329 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14330 | rm -f conftest.err conftest.$ac_objext \ |
| 14331 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14332 | |
| 14333 | echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 14334 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6 |
| 14335 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14336 | /* confdefs.h. */ |
| 14337 | _ACEOF |
| 14338 | cat confdefs.h >>conftest.$ac_ext |
| 14339 | cat >>conftest.$ac_ext <<_ACEOF |
| 14340 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14341 | |
| 14342 | #include "confdefs.h" |
| 14343 | #include <sys/socket.h> |
| 14344 | #include <netinet/in.h> |
| 14345 | #include <arpa/inet.h> |
| 14346 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14347 | int |
| 14348 | main () |
| 14349 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14350 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14351 | ; |
| 14352 | return 0; |
| 14353 | } |
| 14354 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14355 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14356 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14357 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14358 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14359 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14360 | rm -f conftest.er1 |
| 14361 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14363 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14364 | { ac_try='test -z "$ac_c_werror_flag" |
| 14365 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14367 | (eval $ac_try) 2>&5 |
| 14368 | ac_status=$? |
| 14369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14370 | (exit $ac_status); }; } && |
| 14371 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14373 | (eval $ac_try) 2>&5 |
| 14374 | ac_status=$? |
| 14375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14376 | (exit $ac_status); }; }; then |
| 14377 | |
| 14378 | cat >>confdefs.h <<\_ACEOF |
| 14379 | #define HAVE_INET_ATON 1 |
| 14380 | _ACEOF |
| 14381 | |
| 14382 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14383 | echo "${ECHO_T}yes" >&6 |
| 14384 | else |
| 14385 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14386 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14387 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14388 | echo "$as_me:$LINENO: result: no" >&5 |
| 14389 | echo "${ECHO_T}no" >&6 |
| 14390 | |
| 14391 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14392 | rm -f conftest.err conftest.$ac_objext \ |
| 14393 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14394 | |
| 14395 | echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 14396 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6 |
| 14397 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14398 | /* confdefs.h. */ |
| 14399 | _ACEOF |
| 14400 | cat confdefs.h >>conftest.$ac_ext |
| 14401 | cat >>conftest.$ac_ext <<_ACEOF |
| 14402 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14403 | |
| 14404 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 14405 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14406 | #include <sys/socket.h> |
| 14407 | #include <netinet/in.h> |
| 14408 | #include <arpa/inet.h> |
| 14409 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14410 | int |
| 14411 | main () |
| 14412 | { |
| 14413 | void* p = inet_pton |
| 14414 | ; |
| 14415 | return 0; |
| 14416 | } |
| 14417 | _ACEOF |
| 14418 | rm -f conftest.$ac_objext |
| 14419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14420 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14421 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14422 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14423 | rm -f conftest.er1 |
| 14424 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14426 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14427 | { ac_try='test -z "$ac_c_werror_flag" |
| 14428 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14430 | (eval $ac_try) 2>&5 |
| 14431 | ac_status=$? |
| 14432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14433 | (exit $ac_status); }; } && |
| 14434 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14436 | (eval $ac_try) 2>&5 |
| 14437 | ac_status=$? |
| 14438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14439 | (exit $ac_status); }; }; then |
| 14440 | |
| 14441 | cat >>confdefs.h <<\_ACEOF |
| 14442 | #define HAVE_INET_PTON 1 |
| 14443 | _ACEOF |
| 14444 | |
| 14445 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14446 | echo "${ECHO_T}yes" >&6 |
| 14447 | else |
| 14448 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14450 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14451 | echo "$as_me:$LINENO: result: no" >&5 |
| 14452 | echo "${ECHO_T}no" >&6 |
| 14453 | |
| 14454 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14455 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14456 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 14457 | # 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] | 14458 | echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 14459 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6 |
| 14460 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14461 | /* confdefs.h. */ |
| 14462 | _ACEOF |
| 14463 | cat confdefs.h >>conftest.$ac_ext |
| 14464 | cat >>conftest.$ac_ext <<_ACEOF |
| 14465 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14466 | |
| 14467 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 14468 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 14469 | #ifdef HAVE_GRP_H |
| 14470 | #include <grp.h> |
| 14471 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14472 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14473 | int |
| 14474 | main () |
| 14475 | { |
| 14476 | void* p = setgroups |
| 14477 | ; |
| 14478 | return 0; |
| 14479 | } |
| 14480 | _ACEOF |
| 14481 | rm -f conftest.$ac_objext |
| 14482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14483 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14484 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14485 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14486 | rm -f conftest.er1 |
| 14487 | cat conftest.err >&5 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14489 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14490 | { ac_try='test -z "$ac_c_werror_flag" |
| 14491 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14493 | (eval $ac_try) 2>&5 |
| 14494 | ac_status=$? |
| 14495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14496 | (exit $ac_status); }; } && |
| 14497 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14499 | (eval $ac_try) 2>&5 |
| 14500 | ac_status=$? |
| 14501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14502 | (exit $ac_status); }; }; then |
| 14503 | |
| 14504 | cat >>confdefs.h <<\_ACEOF |
| 14505 | #define HAVE_SETGROUPS 1 |
| 14506 | _ACEOF |
| 14507 | |
| 14508 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14509 | echo "${ECHO_T}yes" >&6 |
| 14510 | else |
| 14511 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14513 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14514 | echo "$as_me:$LINENO: result: no" >&5 |
| 14515 | echo "${ECHO_T}no" >&6 |
| 14516 | |
| 14517 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14518 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14519 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14520 | # check for openpty and forkpty |
| 14521 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14522 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14523 | for ac_func in openpty |
| 14524 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14525 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14526 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14527 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14528 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14530 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14531 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14532 | /* confdefs.h. */ |
| 14533 | _ACEOF |
| 14534 | cat confdefs.h >>conftest.$ac_ext |
| 14535 | cat >>conftest.$ac_ext <<_ACEOF |
| 14536 | /* end confdefs.h. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14537 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14538 | which can conflict with char $ac_func (); below. |
| 14539 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14540 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14541 | including <limits.h> includes <sys/time.h> and causes problems |
| 14542 | checking for functions defined therein. */ |
| 14543 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14544 | # include <limits.h> |
| 14545 | #else |
| 14546 | # include <assert.h> |
| 14547 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14548 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14549 | #ifdef __cplusplus |
| 14550 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14551 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14552 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14553 | /* 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] | 14554 | builtin and then its argument prototype would still apply. */ |
| 14555 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14556 | /* The GNU C library defines this for functions which it implements |
| 14557 | to always fail with ENOSYS. Some functions are actually named |
| 14558 | something starting with __ and the normal name is an alias. */ |
| 14559 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14560 | choke me |
| 14561 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14562 | char (*f) () = $ac_func; |
| 14563 | #endif |
| 14564 | #ifdef __cplusplus |
| 14565 | } |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14566 | #endif |
| 14567 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14568 | int |
| 14569 | main () |
| 14570 | { |
| 14571 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14572 | ; |
| 14573 | return 0; |
| 14574 | } |
| 14575 | _ACEOF |
| 14576 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14577 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14578 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14579 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14580 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14581 | rm -f conftest.er1 |
| 14582 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14584 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14585 | { ac_try='test -z "$ac_c_werror_flag" |
| 14586 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14588 | (eval $ac_try) 2>&5 |
| 14589 | ac_status=$? |
| 14590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14591 | (exit $ac_status); }; } && |
| 14592 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14594 | (eval $ac_try) 2>&5 |
| 14595 | ac_status=$? |
| 14596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14597 | (exit $ac_status); }; }; then |
| 14598 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14599 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14600 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14602 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14603 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14604 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14605 | rm -f conftest.err conftest.$ac_objext \ |
| 14606 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14607 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14608 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14609 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14610 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14611 | cat >>confdefs.h <<_ACEOF |
| 14612 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14613 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14614 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14615 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14616 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 14617 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 14618 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 14619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14620 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14621 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14622 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14623 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14624 | /* confdefs.h. */ |
| 14625 | _ACEOF |
| 14626 | cat confdefs.h >>conftest.$ac_ext |
| 14627 | cat >>conftest.$ac_ext <<_ACEOF |
| 14628 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14629 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14630 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14631 | #ifdef __cplusplus |
| 14632 | extern "C" |
| 14633 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14634 | /* 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] | 14635 | builtin and then its argument prototype would still apply. */ |
| 14636 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14637 | int |
| 14638 | main () |
| 14639 | { |
| 14640 | openpty (); |
| 14641 | ; |
| 14642 | return 0; |
| 14643 | } |
| 14644 | _ACEOF |
| 14645 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14646 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14647 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14648 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14649 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14650 | rm -f conftest.er1 |
| 14651 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14653 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14654 | { ac_try='test -z "$ac_c_werror_flag" |
| 14655 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14657 | (eval $ac_try) 2>&5 |
| 14658 | ac_status=$? |
| 14659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14660 | (exit $ac_status); }; } && |
| 14661 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14663 | (eval $ac_try) 2>&5 |
| 14664 | ac_status=$? |
| 14665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14666 | (exit $ac_status); }; }; then |
| 14667 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14668 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14669 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14670 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14671 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14672 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14673 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14674 | rm -f conftest.err conftest.$ac_objext \ |
| 14675 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14676 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14677 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14678 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 14679 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 14680 | if test $ac_cv_lib_util_openpty = yes; then |
| 14681 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14682 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14683 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14684 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14685 | fi |
| 14686 | |
| 14687 | fi |
| 14688 | done |
| 14689 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14690 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14691 | for ac_func in forkpty |
| 14692 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14693 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14694 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14695 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14696 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14698 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14699 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14700 | /* confdefs.h. */ |
| 14701 | _ACEOF |
| 14702 | cat confdefs.h >>conftest.$ac_ext |
| 14703 | cat >>conftest.$ac_ext <<_ACEOF |
| 14704 | /* end confdefs.h. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14705 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14706 | which can conflict with char $ac_func (); below. |
| 14707 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14708 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14709 | including <limits.h> includes <sys/time.h> and causes problems |
| 14710 | checking for functions defined therein. */ |
| 14711 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14712 | # include <limits.h> |
| 14713 | #else |
| 14714 | # include <assert.h> |
| 14715 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14716 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14717 | #ifdef __cplusplus |
| 14718 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14719 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14720 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14721 | /* 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] | 14722 | builtin and then its argument prototype would still apply. */ |
| 14723 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14724 | /* The GNU C library defines this for functions which it implements |
| 14725 | to always fail with ENOSYS. Some functions are actually named |
| 14726 | something starting with __ and the normal name is an alias. */ |
| 14727 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14728 | choke me |
| 14729 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14730 | char (*f) () = $ac_func; |
| 14731 | #endif |
| 14732 | #ifdef __cplusplus |
| 14733 | } |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14734 | #endif |
| 14735 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14736 | int |
| 14737 | main () |
| 14738 | { |
| 14739 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14740 | ; |
| 14741 | return 0; |
| 14742 | } |
| 14743 | _ACEOF |
| 14744 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14745 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14746 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14747 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14748 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14749 | rm -f conftest.er1 |
| 14750 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14752 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14753 | { ac_try='test -z "$ac_c_werror_flag" |
| 14754 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14756 | (eval $ac_try) 2>&5 |
| 14757 | ac_status=$? |
| 14758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14759 | (exit $ac_status); }; } && |
| 14760 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14762 | (eval $ac_try) 2>&5 |
| 14763 | ac_status=$? |
| 14764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14765 | (exit $ac_status); }; }; then |
| 14766 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14767 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14768 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14769 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14770 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14771 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14772 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14773 | rm -f conftest.err conftest.$ac_objext \ |
| 14774 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14775 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14776 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14777 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14778 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14779 | cat >>confdefs.h <<_ACEOF |
| 14780 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14781 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14782 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14783 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14784 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 14785 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 14786 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 14787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14788 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14789 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14790 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14791 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14792 | /* confdefs.h. */ |
| 14793 | _ACEOF |
| 14794 | cat confdefs.h >>conftest.$ac_ext |
| 14795 | cat >>conftest.$ac_ext <<_ACEOF |
| 14796 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14797 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14798 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14799 | #ifdef __cplusplus |
| 14800 | extern "C" |
| 14801 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14802 | /* 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] | 14803 | builtin and then its argument prototype would still apply. */ |
| 14804 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14805 | int |
| 14806 | main () |
| 14807 | { |
| 14808 | forkpty (); |
| 14809 | ; |
| 14810 | return 0; |
| 14811 | } |
| 14812 | _ACEOF |
| 14813 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14814 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14815 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14816 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14818 | rm -f conftest.er1 |
| 14819 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14821 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14822 | { ac_try='test -z "$ac_c_werror_flag" |
| 14823 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14825 | (eval $ac_try) 2>&5 |
| 14826 | ac_status=$? |
| 14827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14828 | (exit $ac_status); }; } && |
| 14829 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14831 | (eval $ac_try) 2>&5 |
| 14832 | ac_status=$? |
| 14833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14834 | (exit $ac_status); }; }; then |
| 14835 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14836 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14837 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14838 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14839 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14840 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14841 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14842 | rm -f conftest.err conftest.$ac_objext \ |
| 14843 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14844 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14845 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14846 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 14847 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 14848 | if test $ac_cv_lib_util_forkpty = yes; then |
| 14849 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14850 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14851 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14852 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14853 | fi |
| 14854 | |
| 14855 | fi |
| 14856 | done |
| 14857 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14858 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14859 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14860 | |
| 14861 | |
| 14862 | |
| 14863 | |
| 14864 | |
| 14865 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14866 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 14867 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14868 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14869 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14870 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14871 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14873 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14874 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14875 | /* confdefs.h. */ |
| 14876 | _ACEOF |
| 14877 | cat confdefs.h >>conftest.$ac_ext |
| 14878 | cat >>conftest.$ac_ext <<_ACEOF |
| 14879 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14880 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14881 | which can conflict with char $ac_func (); below. |
| 14882 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14883 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14884 | including <limits.h> includes <sys/time.h> and causes problems |
| 14885 | checking for functions defined therein. */ |
| 14886 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14887 | # include <limits.h> |
| 14888 | #else |
| 14889 | # include <assert.h> |
| 14890 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14891 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14892 | #ifdef __cplusplus |
| 14893 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14894 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14895 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14896 | /* 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] | 14897 | builtin and then its argument prototype would still apply. */ |
| 14898 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14899 | /* The GNU C library defines this for functions which it implements |
| 14900 | to always fail with ENOSYS. Some functions are actually named |
| 14901 | something starting with __ and the normal name is an alias. */ |
| 14902 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14903 | choke me |
| 14904 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14905 | char (*f) () = $ac_func; |
| 14906 | #endif |
| 14907 | #ifdef __cplusplus |
| 14908 | } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14909 | #endif |
| 14910 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14911 | int |
| 14912 | main () |
| 14913 | { |
| 14914 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14915 | ; |
| 14916 | return 0; |
| 14917 | } |
| 14918 | _ACEOF |
| 14919 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14920 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14921 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14922 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14923 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14924 | rm -f conftest.er1 |
| 14925 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14927 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14928 | { ac_try='test -z "$ac_c_werror_flag" |
| 14929 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14931 | (eval $ac_try) 2>&5 |
| 14932 | ac_status=$? |
| 14933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14934 | (exit $ac_status); }; } && |
| 14935 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14937 | (eval $ac_try) 2>&5 |
| 14938 | ac_status=$? |
| 14939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14940 | (exit $ac_status); }; }; then |
| 14941 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14942 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14943 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14944 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14945 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14946 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14947 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14948 | rm -f conftest.err conftest.$ac_objext \ |
| 14949 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14950 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14951 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14952 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14953 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14954 | cat >>confdefs.h <<_ACEOF |
| 14955 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14956 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14957 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14958 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14959 | done |
| 14960 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14961 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14962 | |
| 14963 | |
| 14964 | |
| 14965 | |
| 14966 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14967 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14968 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14969 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14970 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14971 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14972 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14974 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14975 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14976 | /* confdefs.h. */ |
| 14977 | _ACEOF |
| 14978 | cat confdefs.h >>conftest.$ac_ext |
| 14979 | cat >>conftest.$ac_ext <<_ACEOF |
| 14980 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14981 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14982 | which can conflict with char $ac_func (); below. |
| 14983 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14984 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14985 | including <limits.h> includes <sys/time.h> and causes problems |
| 14986 | checking for functions defined therein. */ |
| 14987 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14988 | # include <limits.h> |
| 14989 | #else |
| 14990 | # include <assert.h> |
| 14991 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14992 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14993 | #ifdef __cplusplus |
| 14994 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14995 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14996 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14997 | /* 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] | 14998 | builtin and then its argument prototype would still apply. */ |
| 14999 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15000 | /* The GNU C library defines this for functions which it implements |
| 15001 | to always fail with ENOSYS. Some functions are actually named |
| 15002 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15003 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15004 | choke me |
| 15005 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15006 | char (*f) () = $ac_func; |
| 15007 | #endif |
| 15008 | #ifdef __cplusplus |
| 15009 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15010 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15011 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15012 | int |
| 15013 | main () |
| 15014 | { |
| 15015 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15016 | ; |
| 15017 | return 0; |
| 15018 | } |
| 15019 | _ACEOF |
| 15020 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15021 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15022 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15023 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15024 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15025 | rm -f conftest.er1 |
| 15026 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15028 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15029 | { ac_try='test -z "$ac_c_werror_flag" |
| 15030 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15032 | (eval $ac_try) 2>&5 |
| 15033 | ac_status=$? |
| 15034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15035 | (exit $ac_status); }; } && |
| 15036 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15038 | (eval $ac_try) 2>&5 |
| 15039 | ac_status=$? |
| 15040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15041 | (exit $ac_status); }; }; then |
| 15042 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15043 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15044 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15045 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15046 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15047 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15048 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15049 | rm -f conftest.err conftest.$ac_objext \ |
| 15050 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15051 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15052 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15053 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15054 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15055 | cat >>confdefs.h <<_ACEOF |
| 15056 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15057 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15058 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15059 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15060 | case $LIBOBJS in |
| 15061 | "$ac_func.$ac_objext" | \ |
| 15062 | *" $ac_func.$ac_objext" | \ |
| 15063 | "$ac_func.$ac_objext "* | \ |
| 15064 | *" $ac_func.$ac_objext "* ) ;; |
| 15065 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; |
| 15066 | esac |
| 15067 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15068 | fi |
| 15069 | done |
| 15070 | |
| 15071 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15072 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15073 | for ac_func in getpgrp |
| 15074 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15075 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15076 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15077 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15078 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15080 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15081 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15082 | /* confdefs.h. */ |
| 15083 | _ACEOF |
| 15084 | cat confdefs.h >>conftest.$ac_ext |
| 15085 | cat >>conftest.$ac_ext <<_ACEOF |
| 15086 | /* end confdefs.h. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15087 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15088 | which can conflict with char $ac_func (); below. |
| 15089 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15090 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15091 | including <limits.h> includes <sys/time.h> and causes problems |
| 15092 | checking for functions defined therein. */ |
| 15093 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15094 | # include <limits.h> |
| 15095 | #else |
| 15096 | # include <assert.h> |
| 15097 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15098 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15099 | #ifdef __cplusplus |
| 15100 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15101 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15102 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15103 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15104 | builtin and then its argument prototype would still apply. */ |
| 15105 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15106 | /* The GNU C library defines this for functions which it implements |
| 15107 | to always fail with ENOSYS. Some functions are actually named |
| 15108 | something starting with __ and the normal name is an alias. */ |
| 15109 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15110 | choke me |
| 15111 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15112 | char (*f) () = $ac_func; |
| 15113 | #endif |
| 15114 | #ifdef __cplusplus |
| 15115 | } |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15116 | #endif |
| 15117 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15118 | int |
| 15119 | main () |
| 15120 | { |
| 15121 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15122 | ; |
| 15123 | return 0; |
| 15124 | } |
| 15125 | _ACEOF |
| 15126 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15127 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15128 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15129 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15130 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15131 | rm -f conftest.er1 |
| 15132 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15134 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15135 | { ac_try='test -z "$ac_c_werror_flag" |
| 15136 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15138 | (eval $ac_try) 2>&5 |
| 15139 | ac_status=$? |
| 15140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15141 | (exit $ac_status); }; } && |
| 15142 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15144 | (eval $ac_try) 2>&5 |
| 15145 | ac_status=$? |
| 15146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15147 | (exit $ac_status); }; }; then |
| 15148 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15149 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15150 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15152 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15153 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15154 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15155 | rm -f conftest.err conftest.$ac_objext \ |
| 15156 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15157 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15158 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15159 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15160 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15161 | cat >>confdefs.h <<_ACEOF |
| 15162 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15163 | _ACEOF |
| 15164 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15165 | /* confdefs.h. */ |
| 15166 | _ACEOF |
| 15167 | cat confdefs.h >>conftest.$ac_ext |
| 15168 | cat >>conftest.$ac_ext <<_ACEOF |
| 15169 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15170 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15171 | int |
| 15172 | main () |
| 15173 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15174 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15175 | ; |
| 15176 | return 0; |
| 15177 | } |
| 15178 | _ACEOF |
| 15179 | rm -f conftest.$ac_objext |
| 15180 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15181 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15182 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15183 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15184 | rm -f conftest.er1 |
| 15185 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15187 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15188 | { ac_try='test -z "$ac_c_werror_flag" |
| 15189 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +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); }; } && |
| 15195 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15197 | (eval $ac_try) 2>&5 |
| 15198 | ac_status=$? |
| 15199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15200 | (exit $ac_status); }; }; then |
| 15201 | |
| 15202 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15203 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15204 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15205 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15206 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15207 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15208 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15209 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15210 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15211 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15212 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15213 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15214 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15215 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15216 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15217 | |
| 15218 | for ac_func in setpgrp |
| 15219 | do |
| 15220 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15221 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15222 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15223 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15225 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15226 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15227 | /* confdefs.h. */ |
| 15228 | _ACEOF |
| 15229 | cat confdefs.h >>conftest.$ac_ext |
| 15230 | cat >>conftest.$ac_ext <<_ACEOF |
| 15231 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15232 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15233 | which can conflict with char $ac_func (); below. |
| 15234 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15235 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15236 | including <limits.h> includes <sys/time.h> and causes problems |
| 15237 | checking for functions defined therein. */ |
| 15238 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15239 | # include <limits.h> |
| 15240 | #else |
| 15241 | # include <assert.h> |
| 15242 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15243 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15244 | #ifdef __cplusplus |
| 15245 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15246 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15247 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15248 | /* We use char because int might match the return type of a gcc2 |
| 15249 | builtin and then its argument prototype would still apply. */ |
| 15250 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15251 | /* The GNU C library defines this for functions which it implements |
| 15252 | to always fail with ENOSYS. Some functions are actually named |
| 15253 | something starting with __ and the normal name is an alias. */ |
| 15254 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15255 | choke me |
| 15256 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15257 | char (*f) () = $ac_func; |
| 15258 | #endif |
| 15259 | #ifdef __cplusplus |
| 15260 | } |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15261 | #endif |
| 15262 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15263 | int |
| 15264 | main () |
| 15265 | { |
| 15266 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15267 | ; |
| 15268 | return 0; |
| 15269 | } |
| 15270 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15271 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15272 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15273 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15274 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15275 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15276 | rm -f conftest.er1 |
| 15277 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15279 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15280 | { ac_try='test -z "$ac_c_werror_flag" |
| 15281 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15283 | (eval $ac_try) 2>&5 |
| 15284 | ac_status=$? |
| 15285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15286 | (exit $ac_status); }; } && |
| 15287 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15289 | (eval $ac_try) 2>&5 |
| 15290 | ac_status=$? |
| 15291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15292 | (exit $ac_status); }; }; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15293 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15294 | else |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15295 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15297 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15298 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15299 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15300 | rm -f conftest.err conftest.$ac_objext \ |
| 15301 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15302 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15303 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15304 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15305 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15306 | cat >>confdefs.h <<_ACEOF |
| 15307 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15308 | _ACEOF |
| 15309 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15310 | /* confdefs.h. */ |
| 15311 | _ACEOF |
| 15312 | cat confdefs.h >>conftest.$ac_ext |
| 15313 | cat >>conftest.$ac_ext <<_ACEOF |
| 15314 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15315 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15316 | int |
| 15317 | main () |
| 15318 | { |
| 15319 | setpgrp(0,0); |
| 15320 | ; |
| 15321 | return 0; |
| 15322 | } |
| 15323 | _ACEOF |
| 15324 | rm -f conftest.$ac_objext |
| 15325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15326 | (eval $ac_compile) 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15327 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15328 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15329 | rm -f conftest.er1 |
| 15330 | cat conftest.err >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15332 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15333 | { ac_try='test -z "$ac_c_werror_flag" |
| 15334 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15336 | (eval $ac_try) 2>&5 |
| 15337 | ac_status=$? |
| 15338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15339 | (exit $ac_status); }; } && |
| 15340 | { ac_try='test -s conftest.$ac_objext' |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15342 | (eval $ac_try) 2>&5 |
| 15343 | ac_status=$? |
| 15344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15345 | (exit $ac_status); }; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15346 | |
| 15347 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15348 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15349 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 15350 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15351 | |
| 15352 | else |
| 15353 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15354 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15355 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 15356 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15358 | |
| 15359 | fi |
| 15360 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 15361 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15362 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15363 | for ac_func in gettimeofday |
| 15364 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15365 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15366 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15367 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15368 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15370 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15371 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15372 | /* confdefs.h. */ |
| 15373 | _ACEOF |
| 15374 | cat confdefs.h >>conftest.$ac_ext |
| 15375 | cat >>conftest.$ac_ext <<_ACEOF |
| 15376 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15377 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15378 | which can conflict with char $ac_func (); below. |
| 15379 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15380 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15381 | including <limits.h> includes <sys/time.h> and causes problems |
| 15382 | checking for functions defined therein. */ |
| 15383 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15384 | # include <limits.h> |
| 15385 | #else |
| 15386 | # include <assert.h> |
| 15387 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15388 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15389 | #ifdef __cplusplus |
| 15390 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15391 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15392 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15393 | /* 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] | 15394 | builtin and then its argument prototype would still apply. */ |
| 15395 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15396 | /* The GNU C library defines this for functions which it implements |
| 15397 | to always fail with ENOSYS. Some functions are actually named |
| 15398 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15399 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15400 | choke me |
| 15401 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15402 | char (*f) () = $ac_func; |
| 15403 | #endif |
| 15404 | #ifdef __cplusplus |
| 15405 | } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15406 | #endif |
| 15407 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15408 | int |
| 15409 | main () |
| 15410 | { |
| 15411 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15412 | ; |
| 15413 | return 0; |
| 15414 | } |
| 15415 | _ACEOF |
| 15416 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15417 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15418 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15419 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15420 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15421 | rm -f conftest.er1 |
| 15422 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15424 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15425 | { ac_try='test -z "$ac_c_werror_flag" |
| 15426 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15428 | (eval $ac_try) 2>&5 |
| 15429 | ac_status=$? |
| 15430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15431 | (exit $ac_status); }; } && |
| 15432 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15434 | (eval $ac_try) 2>&5 |
| 15435 | ac_status=$? |
| 15436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15437 | (exit $ac_status); }; }; then |
| 15438 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15439 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15440 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15441 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15442 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15443 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15444 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15445 | rm -f conftest.err conftest.$ac_objext \ |
| 15446 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15447 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15448 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15449 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15450 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15451 | cat >>confdefs.h <<_ACEOF |
| 15452 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15453 | _ACEOF |
| 15454 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15455 | /* confdefs.h. */ |
| 15456 | _ACEOF |
| 15457 | cat confdefs.h >>conftest.$ac_ext |
| 15458 | cat >>conftest.$ac_ext <<_ACEOF |
| 15459 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15460 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15461 | int |
| 15462 | main () |
| 15463 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15464 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15465 | ; |
| 15466 | return 0; |
| 15467 | } |
| 15468 | _ACEOF |
| 15469 | rm -f conftest.$ac_objext |
| 15470 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15471 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15472 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15473 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15474 | rm -f conftest.er1 |
| 15475 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15477 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15478 | { ac_try='test -z "$ac_c_werror_flag" |
| 15479 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +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); }; } && |
| 15485 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15487 | (eval $ac_try) 2>&5 |
| 15488 | ac_status=$? |
| 15489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15490 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15491 | : |
| 15492 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15493 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15495 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15496 | |
| 15497 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15498 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15499 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15500 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15501 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15502 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15503 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15504 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15505 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15506 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15507 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15508 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15509 | echo "$as_me:$LINENO: checking for major" >&5 |
| 15510 | echo $ECHO_N "checking for major... $ECHO_C" >&6 |
| 15511 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15512 | /* confdefs.h. */ |
| 15513 | _ACEOF |
| 15514 | cat confdefs.h >>conftest.$ac_ext |
| 15515 | cat >>conftest.$ac_ext <<_ACEOF |
| 15516 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15517 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15518 | #if defined(MAJOR_IN_MKDEV) |
| 15519 | #include <sys/mkdev.h> |
| 15520 | #elif defined(MAJOR_IN_SYSMACROS) |
| 15521 | #include <sys/sysmacros.h> |
| 15522 | #else |
| 15523 | #include <sys/types.h> |
| 15524 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15525 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15526 | int |
| 15527 | main () |
| 15528 | { |
| 15529 | |
| 15530 | makedev(major(0),minor(0)); |
| 15531 | |
| 15532 | ; |
| 15533 | return 0; |
| 15534 | } |
| 15535 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 15536 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15537 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15538 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15539 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15540 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15541 | rm -f conftest.er1 |
| 15542 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15544 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15545 | { ac_try='test -z "$ac_c_werror_flag" |
| 15546 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15548 | (eval $ac_try) 2>&5 |
| 15549 | ac_status=$? |
| 15550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15551 | (exit $ac_status); }; } && |
| 15552 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15554 | (eval $ac_try) 2>&5 |
| 15555 | ac_status=$? |
| 15556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15557 | (exit $ac_status); }; }; then |
| 15558 | |
| 15559 | |
| 15560 | cat >>confdefs.h <<\_ACEOF |
| 15561 | #define HAVE_DEVICE_MACROS 1 |
| 15562 | _ACEOF |
| 15563 | |
| 15564 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15565 | echo "${ECHO_T}yes" >&6 |
| 15566 | |
| 15567 | else |
| 15568 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15569 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15570 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15571 | |
| 15572 | echo "$as_me:$LINENO: result: no" >&5 |
| 15573 | echo "${ECHO_T}no" >&6 |
| 15574 | |
| 15575 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15576 | rm -f conftest.err conftest.$ac_objext \ |
| 15577 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15578 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15579 | # 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] | 15580 | # for [no]getaddrinfo in netdb.h. |
| 15581 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 15582 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 15583 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15584 | /* confdefs.h. */ |
| 15585 | _ACEOF |
| 15586 | cat confdefs.h >>conftest.$ac_ext |
| 15587 | cat >>conftest.$ac_ext <<_ACEOF |
| 15588 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15589 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 15590 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15591 | #include <sys/socket.h> |
| 15592 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 15593 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15594 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15595 | int |
| 15596 | main () |
| 15597 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15598 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15599 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15600 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15601 | ; |
| 15602 | return 0; |
| 15603 | } |
| 15604 | _ACEOF |
| 15605 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15606 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15607 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15608 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15609 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15610 | rm -f conftest.er1 |
| 15611 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15613 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15614 | { ac_try='test -z "$ac_c_werror_flag" |
| 15615 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15617 | (eval $ac_try) 2>&5 |
| 15618 | ac_status=$? |
| 15619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15620 | (exit $ac_status); }; } && |
| 15621 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15623 | (eval $ac_try) 2>&5 |
| 15624 | ac_status=$? |
| 15625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15626 | (exit $ac_status); }; }; then |
| 15627 | |
| 15628 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15629 | echo "${ECHO_T}yes" >&6 |
| 15630 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 15631 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15632 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15633 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 15634 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15635 | buggygetaddrinfo=yes |
| 15636 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15637 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15638 | /* confdefs.h. */ |
| 15639 | _ACEOF |
| 15640 | cat confdefs.h >>conftest.$ac_ext |
| 15641 | cat >>conftest.$ac_ext <<_ACEOF |
| 15642 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15643 | |
| 15644 | #include <sys/types.h> |
| 15645 | #include <netdb.h> |
| 15646 | #include <string.h> |
| 15647 | #include <sys/socket.h> |
| 15648 | #include <netinet/in.h> |
| 15649 | |
| 15650 | main() |
| 15651 | { |
| 15652 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 15653 | struct addrinfo hints, *ai, *aitop; |
| 15654 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 15655 | |
| 15656 | for (passive = 0; passive <= 1; passive++) { |
| 15657 | memset(&hints, 0, sizeof(hints)); |
| 15658 | hints.ai_family = AF_UNSPEC; |
| 15659 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 15660 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 15661 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15662 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 15663 | (void)gai_strerror(gaierr); |
| 15664 | goto bad; |
| 15665 | } |
| 15666 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 15667 | if (ai->ai_addr == NULL || |
| 15668 | ai->ai_addrlen == 0 || |
| 15669 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 15670 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 15671 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 15672 | goto bad; |
| 15673 | } |
| 15674 | switch (ai->ai_family) { |
| 15675 | case AF_INET: |
| 15676 | if (strcmp(strport, "54321") != 0) { |
| 15677 | goto bad; |
| 15678 | } |
| 15679 | if (passive) { |
| 15680 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 15681 | goto bad; |
| 15682 | } |
| 15683 | } else { |
| 15684 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 15685 | goto bad; |
| 15686 | } |
| 15687 | } |
| 15688 | inet4++; |
| 15689 | break; |
| 15690 | case AF_INET6: |
| 15691 | if (strcmp(strport, "54321") != 0) { |
| 15692 | goto bad; |
| 15693 | } |
| 15694 | if (passive) { |
| 15695 | if (strcmp(straddr, "::") != 0) { |
| 15696 | goto bad; |
| 15697 | } |
| 15698 | } else { |
| 15699 | if (strcmp(straddr, "::1") != 0) { |
| 15700 | goto bad; |
| 15701 | } |
| 15702 | } |
| 15703 | inet6++; |
| 15704 | break; |
| 15705 | case AF_UNSPEC: |
| 15706 | goto bad; |
| 15707 | break; |
| 15708 | default: |
| 15709 | /* another family support? */ |
| 15710 | break; |
| 15711 | } |
| 15712 | } |
| 15713 | } |
| 15714 | |
| 15715 | if (!(inet4 == 0 || inet4 == 2)) |
| 15716 | goto bad; |
| 15717 | if (!(inet6 == 0 || inet6 == 2)) |
| 15718 | goto bad; |
| 15719 | |
| 15720 | if (aitop) |
| 15721 | freeaddrinfo(aitop); |
| 15722 | exit(0); |
| 15723 | |
| 15724 | bad: |
| 15725 | if (aitop) |
| 15726 | freeaddrinfo(aitop); |
| 15727 | exit(1); |
| 15728 | } |
| 15729 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15730 | _ACEOF |
| 15731 | rm -f conftest$ac_exeext |
| 15732 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15733 | (eval $ac_link) 2>&5 |
| 15734 | ac_status=$? |
| 15735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15736 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15738 | (eval $ac_try) 2>&5 |
| 15739 | ac_status=$? |
| 15740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15741 | (exit $ac_status); }; }; then |
| 15742 | echo "$as_me:$LINENO: result: good" >&5 |
| 15743 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15744 | buggygetaddrinfo=no |
| 15745 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15746 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15747 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15749 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15750 | ( exit $ac_status ) |
| 15751 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 15752 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15753 | buggygetaddrinfo=yes |
| 15754 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15755 | 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] | 15756 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15757 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15758 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15759 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15760 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15761 | |
| 15762 | echo "$as_me:$LINENO: result: no" >&5 |
| 15763 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15764 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15765 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15766 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15767 | rm -f conftest.err conftest.$ac_objext \ |
| 15768 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15769 | |
| 15770 | if test "$buggygetaddrinfo" = "yes"; then |
| 15771 | if test "$ipv6" = "yes"; then |
| 15772 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 15773 | echo ' or you can specify "--disable-ipv6"'. |
| 15774 | exit 1 |
| 15775 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15776 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15777 | |
| 15778 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15779 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15780 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15781 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15782 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15783 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 15784 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15785 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15786 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15787 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15788 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15789 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15791 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15792 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15793 | /* confdefs.h. */ |
| 15794 | _ACEOF |
| 15795 | cat confdefs.h >>conftest.$ac_ext |
| 15796 | cat >>conftest.$ac_ext <<_ACEOF |
| 15797 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15798 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15799 | which can conflict with char $ac_func (); below. |
| 15800 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15801 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15802 | including <limits.h> includes <sys/time.h> and causes problems |
| 15803 | checking for functions defined therein. */ |
| 15804 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15805 | # include <limits.h> |
| 15806 | #else |
| 15807 | # include <assert.h> |
| 15808 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15809 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15810 | #ifdef __cplusplus |
| 15811 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15812 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15813 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15814 | /* 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] | 15815 | builtin and then its argument prototype would still apply. */ |
| 15816 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15817 | /* The GNU C library defines this for functions which it implements |
| 15818 | to always fail with ENOSYS. Some functions are actually named |
| 15819 | something starting with __ and the normal name is an alias. */ |
| 15820 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15821 | choke me |
| 15822 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15823 | char (*f) () = $ac_func; |
| 15824 | #endif |
| 15825 | #ifdef __cplusplus |
| 15826 | } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15827 | #endif |
| 15828 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15829 | int |
| 15830 | main () |
| 15831 | { |
| 15832 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15833 | ; |
| 15834 | return 0; |
| 15835 | } |
| 15836 | _ACEOF |
| 15837 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15839 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15840 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15841 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15842 | rm -f conftest.er1 |
| 15843 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15845 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15846 | { ac_try='test -z "$ac_c_werror_flag" |
| 15847 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15849 | (eval $ac_try) 2>&5 |
| 15850 | ac_status=$? |
| 15851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15852 | (exit $ac_status); }; } && |
| 15853 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15855 | (eval $ac_try) 2>&5 |
| 15856 | ac_status=$? |
| 15857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15858 | (exit $ac_status); }; }; then |
| 15859 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15860 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15861 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15862 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15863 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15864 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15865 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15866 | rm -f conftest.err conftest.$ac_objext \ |
| 15867 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15868 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15869 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15870 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15871 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15872 | cat >>confdefs.h <<_ACEOF |
| 15873 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15874 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15875 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15876 | fi |
| 15877 | done |
| 15878 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15879 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15880 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15881 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 15882 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 15883 | if test "${ac_cv_header_time+set}" = set; then |
| 15884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15885 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15886 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15887 | /* confdefs.h. */ |
| 15888 | _ACEOF |
| 15889 | cat confdefs.h >>conftest.$ac_ext |
| 15890 | cat >>conftest.$ac_ext <<_ACEOF |
| 15891 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15892 | #include <sys/types.h> |
| 15893 | #include <sys/time.h> |
| 15894 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15895 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15896 | int |
| 15897 | main () |
| 15898 | { |
| 15899 | if ((struct tm *) 0) |
| 15900 | return 0; |
| 15901 | ; |
| 15902 | return 0; |
| 15903 | } |
| 15904 | _ACEOF |
| 15905 | rm -f conftest.$ac_objext |
| 15906 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15907 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15908 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15909 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15910 | rm -f conftest.er1 |
| 15911 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15913 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15914 | { ac_try='test -z "$ac_c_werror_flag" |
| 15915 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15917 | (eval $ac_try) 2>&5 |
| 15918 | ac_status=$? |
| 15919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15920 | (exit $ac_status); }; } && |
| 15921 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15923 | (eval $ac_try) 2>&5 |
| 15924 | ac_status=$? |
| 15925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15926 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15927 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15928 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15929 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15931 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15932 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15933 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15934 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15935 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15936 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 15937 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15938 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15939 | |
| 15940 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15941 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15942 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15943 | |
| 15944 | fi |
| 15945 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15946 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 15947 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 15948 | if test "${ac_cv_struct_tm+set}" = set; then |
| 15949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15950 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15951 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15952 | /* confdefs.h. */ |
| 15953 | _ACEOF |
| 15954 | cat confdefs.h >>conftest.$ac_ext |
| 15955 | cat >>conftest.$ac_ext <<_ACEOF |
| 15956 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15957 | #include <sys/types.h> |
| 15958 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15959 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15960 | int |
| 15961 | main () |
| 15962 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15963 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15964 | ; |
| 15965 | return 0; |
| 15966 | } |
| 15967 | _ACEOF |
| 15968 | rm -f conftest.$ac_objext |
| 15969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15970 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15971 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15972 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15973 | rm -f conftest.er1 |
| 15974 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15976 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15977 | { ac_try='test -z "$ac_c_werror_flag" |
| 15978 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15980 | (eval $ac_try) 2>&5 |
| 15981 | ac_status=$? |
| 15982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15983 | (exit $ac_status); }; } && |
| 15984 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15986 | (eval $ac_try) 2>&5 |
| 15987 | ac_status=$? |
| 15988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15989 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15990 | ac_cv_struct_tm=time.h |
| 15991 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15992 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15994 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15995 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15996 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15997 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15998 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15999 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 16000 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16001 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16002 | |
| 16003 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16004 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16005 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16006 | |
| 16007 | fi |
| 16008 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16009 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 16010 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 16011 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 16012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16013 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16014 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16015 | /* confdefs.h. */ |
| 16016 | _ACEOF |
| 16017 | cat confdefs.h >>conftest.$ac_ext |
| 16018 | cat >>conftest.$ac_ext <<_ACEOF |
| 16019 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16020 | #include <sys/types.h> |
| 16021 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16022 | |
| 16023 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16024 | int |
| 16025 | main () |
| 16026 | { |
| 16027 | static struct tm ac_aggr; |
| 16028 | if (ac_aggr.tm_zone) |
| 16029 | return 0; |
| 16030 | ; |
| 16031 | return 0; |
| 16032 | } |
| 16033 | _ACEOF |
| 16034 | rm -f conftest.$ac_objext |
| 16035 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16036 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16037 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16038 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16039 | rm -f conftest.er1 |
| 16040 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16042 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16043 | { ac_try='test -z "$ac_c_werror_flag" |
| 16044 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16046 | (eval $ac_try) 2>&5 |
| 16047 | ac_status=$? |
| 16048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16049 | (exit $ac_status); }; } && |
| 16050 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16052 | (eval $ac_try) 2>&5 |
| 16053 | ac_status=$? |
| 16054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16055 | (exit $ac_status); }; }; then |
| 16056 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16057 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16058 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16060 | |
| 16061 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16062 | /* confdefs.h. */ |
| 16063 | _ACEOF |
| 16064 | cat confdefs.h >>conftest.$ac_ext |
| 16065 | cat >>conftest.$ac_ext <<_ACEOF |
| 16066 | /* end confdefs.h. */ |
| 16067 | #include <sys/types.h> |
| 16068 | #include <$ac_cv_struct_tm> |
| 16069 | |
| 16070 | |
| 16071 | int |
| 16072 | main () |
| 16073 | { |
| 16074 | static struct tm ac_aggr; |
| 16075 | if (sizeof ac_aggr.tm_zone) |
| 16076 | return 0; |
| 16077 | ; |
| 16078 | return 0; |
| 16079 | } |
| 16080 | _ACEOF |
| 16081 | rm -f conftest.$ac_objext |
| 16082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16083 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16084 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16085 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16086 | rm -f conftest.er1 |
| 16087 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16089 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16090 | { ac_try='test -z "$ac_c_werror_flag" |
| 16091 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16093 | (eval $ac_try) 2>&5 |
| 16094 | ac_status=$? |
| 16095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16096 | (exit $ac_status); }; } && |
| 16097 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16099 | (eval $ac_try) 2>&5 |
| 16100 | ac_status=$? |
| 16101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16102 | (exit $ac_status); }; }; then |
| 16103 | ac_cv_member_struct_tm_tm_zone=yes |
| 16104 | else |
| 16105 | echo "$as_me: failed program was:" >&5 |
| 16106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16107 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16108 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16109 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16110 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16111 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16112 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16113 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16114 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 16115 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 16116 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 16117 | |
| 16118 | cat >>confdefs.h <<_ACEOF |
| 16119 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 16120 | _ACEOF |
| 16121 | |
| 16122 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16123 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16124 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16125 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 16126 | |
| 16127 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16128 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16129 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16130 | |
| 16131 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16132 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 16133 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 16134 | if test "${ac_cv_var_tzname+set}" = set; then |
| 16135 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16136 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16137 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16138 | /* confdefs.h. */ |
| 16139 | _ACEOF |
| 16140 | cat confdefs.h >>conftest.$ac_ext |
| 16141 | cat >>conftest.$ac_ext <<_ACEOF |
| 16142 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16143 | #include <time.h> |
| 16144 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16145 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16146 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16147 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16148 | int |
| 16149 | main () |
| 16150 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16151 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16152 | ; |
| 16153 | return 0; |
| 16154 | } |
| 16155 | _ACEOF |
| 16156 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16157 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16158 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16159 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16160 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16161 | rm -f conftest.er1 |
| 16162 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16164 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16165 | { ac_try='test -z "$ac_c_werror_flag" |
| 16166 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16168 | (eval $ac_try) 2>&5 |
| 16169 | ac_status=$? |
| 16170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16171 | (exit $ac_status); }; } && |
| 16172 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16174 | (eval $ac_try) 2>&5 |
| 16175 | ac_status=$? |
| 16176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16177 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16178 | ac_cv_var_tzname=yes |
| 16179 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16180 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16182 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16183 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16184 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16185 | rm -f conftest.err conftest.$ac_objext \ |
| 16186 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16187 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16188 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 16189 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16190 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16191 | |
| 16192 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16193 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16194 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16195 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16196 | fi |
| 16197 | fi |
| 16198 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16199 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 16200 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 16201 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 16202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16203 | else |
| 16204 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16205 | /* confdefs.h. */ |
| 16206 | _ACEOF |
| 16207 | cat confdefs.h >>conftest.$ac_ext |
| 16208 | cat >>conftest.$ac_ext <<_ACEOF |
| 16209 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16210 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16211 | int |
| 16212 | main () |
| 16213 | { |
| 16214 | static struct stat ac_aggr; |
| 16215 | if (ac_aggr.st_rdev) |
| 16216 | return 0; |
| 16217 | ; |
| 16218 | return 0; |
| 16219 | } |
| 16220 | _ACEOF |
| 16221 | rm -f conftest.$ac_objext |
| 16222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16223 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16224 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16225 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16226 | rm -f conftest.er1 |
| 16227 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16229 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16230 | { ac_try='test -z "$ac_c_werror_flag" |
| 16231 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16233 | (eval $ac_try) 2>&5 |
| 16234 | ac_status=$? |
| 16235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16236 | (exit $ac_status); }; } && |
| 16237 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16239 | (eval $ac_try) 2>&5 |
| 16240 | ac_status=$? |
| 16241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16242 | (exit $ac_status); }; }; then |
| 16243 | ac_cv_member_struct_stat_st_rdev=yes |
| 16244 | else |
| 16245 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16246 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16247 | |
| 16248 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16249 | /* confdefs.h. */ |
| 16250 | _ACEOF |
| 16251 | cat confdefs.h >>conftest.$ac_ext |
| 16252 | cat >>conftest.$ac_ext <<_ACEOF |
| 16253 | /* end confdefs.h. */ |
| 16254 | $ac_includes_default |
| 16255 | int |
| 16256 | main () |
| 16257 | { |
| 16258 | static struct stat ac_aggr; |
| 16259 | if (sizeof ac_aggr.st_rdev) |
| 16260 | return 0; |
| 16261 | ; |
| 16262 | return 0; |
| 16263 | } |
| 16264 | _ACEOF |
| 16265 | rm -f conftest.$ac_objext |
| 16266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16267 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16268 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16269 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16270 | rm -f conftest.er1 |
| 16271 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16273 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16274 | { ac_try='test -z "$ac_c_werror_flag" |
| 16275 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16277 | (eval $ac_try) 2>&5 |
| 16278 | ac_status=$? |
| 16279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16280 | (exit $ac_status); }; } && |
| 16281 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16283 | (eval $ac_try) 2>&5 |
| 16284 | ac_status=$? |
| 16285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16286 | (exit $ac_status); }; }; then |
| 16287 | ac_cv_member_struct_stat_st_rdev=yes |
| 16288 | else |
| 16289 | echo "$as_me: failed program was:" >&5 |
| 16290 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16291 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16292 | ac_cv_member_struct_stat_st_rdev=no |
| 16293 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16294 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16295 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16296 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16297 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16298 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 16299 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 16300 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 16301 | |
| 16302 | cat >>confdefs.h <<_ACEOF |
| 16303 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 16304 | _ACEOF |
| 16305 | |
| 16306 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16307 | fi |
| 16308 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16309 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 16310 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 16311 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 16312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16313 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16314 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16315 | /* confdefs.h. */ |
| 16316 | _ACEOF |
| 16317 | cat confdefs.h >>conftest.$ac_ext |
| 16318 | cat >>conftest.$ac_ext <<_ACEOF |
| 16319 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16320 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16321 | int |
| 16322 | main () |
| 16323 | { |
| 16324 | static struct stat ac_aggr; |
| 16325 | if (ac_aggr.st_blksize) |
| 16326 | return 0; |
| 16327 | ; |
| 16328 | return 0; |
| 16329 | } |
| 16330 | _ACEOF |
| 16331 | rm -f conftest.$ac_objext |
| 16332 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16333 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16334 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16335 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16336 | rm -f conftest.er1 |
| 16337 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16339 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16340 | { ac_try='test -z "$ac_c_werror_flag" |
| 16341 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16343 | (eval $ac_try) 2>&5 |
| 16344 | ac_status=$? |
| 16345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16346 | (exit $ac_status); }; } && |
| 16347 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16349 | (eval $ac_try) 2>&5 |
| 16350 | ac_status=$? |
| 16351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16352 | (exit $ac_status); }; }; then |
| 16353 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16354 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16355 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16356 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16357 | |
| 16358 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16359 | /* confdefs.h. */ |
| 16360 | _ACEOF |
| 16361 | cat confdefs.h >>conftest.$ac_ext |
| 16362 | cat >>conftest.$ac_ext <<_ACEOF |
| 16363 | /* end confdefs.h. */ |
| 16364 | $ac_includes_default |
| 16365 | int |
| 16366 | main () |
| 16367 | { |
| 16368 | static struct stat ac_aggr; |
| 16369 | if (sizeof ac_aggr.st_blksize) |
| 16370 | return 0; |
| 16371 | ; |
| 16372 | return 0; |
| 16373 | } |
| 16374 | _ACEOF |
| 16375 | rm -f conftest.$ac_objext |
| 16376 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16377 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16378 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16379 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16380 | rm -f conftest.er1 |
| 16381 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16383 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16384 | { ac_try='test -z "$ac_c_werror_flag" |
| 16385 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16387 | (eval $ac_try) 2>&5 |
| 16388 | ac_status=$? |
| 16389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16390 | (exit $ac_status); }; } && |
| 16391 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16393 | (eval $ac_try) 2>&5 |
| 16394 | ac_status=$? |
| 16395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16396 | (exit $ac_status); }; }; then |
| 16397 | ac_cv_member_struct_stat_st_blksize=yes |
| 16398 | else |
| 16399 | echo "$as_me: failed program was:" >&5 |
| 16400 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16401 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16402 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16403 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16404 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16405 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16406 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16407 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16408 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 16409 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 16410 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16411 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16412 | cat >>confdefs.h <<_ACEOF |
| 16413 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 16414 | _ACEOF |
| 16415 | |
| 16416 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16417 | fi |
| 16418 | |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 16419 | echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 |
| 16420 | echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6 |
| 16421 | if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then |
| 16422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16423 | else |
| 16424 | cat >conftest.$ac_ext <<_ACEOF |
| 16425 | /* confdefs.h. */ |
| 16426 | _ACEOF |
| 16427 | cat confdefs.h >>conftest.$ac_ext |
| 16428 | cat >>conftest.$ac_ext <<_ACEOF |
| 16429 | /* end confdefs.h. */ |
| 16430 | $ac_includes_default |
| 16431 | int |
| 16432 | main () |
| 16433 | { |
| 16434 | static struct stat ac_aggr; |
| 16435 | if (ac_aggr.st_flags) |
| 16436 | return 0; |
| 16437 | ; |
| 16438 | return 0; |
| 16439 | } |
| 16440 | _ACEOF |
| 16441 | rm -f conftest.$ac_objext |
| 16442 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16443 | (eval $ac_compile) 2>conftest.er1 |
| 16444 | ac_status=$? |
| 16445 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16446 | rm -f conftest.er1 |
| 16447 | cat conftest.err >&5 |
| 16448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16449 | (exit $ac_status); } && |
| 16450 | { ac_try='test -z "$ac_c_werror_flag" |
| 16451 | || test ! -s conftest.err' |
| 16452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16453 | (eval $ac_try) 2>&5 |
| 16454 | ac_status=$? |
| 16455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16456 | (exit $ac_status); }; } && |
| 16457 | { ac_try='test -s conftest.$ac_objext' |
| 16458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16459 | (eval $ac_try) 2>&5 |
| 16460 | ac_status=$? |
| 16461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16462 | (exit $ac_status); }; }; then |
| 16463 | ac_cv_member_struct_stat_st_flags=yes |
| 16464 | else |
| 16465 | echo "$as_me: failed program was:" >&5 |
| 16466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16467 | |
| 16468 | cat >conftest.$ac_ext <<_ACEOF |
| 16469 | /* confdefs.h. */ |
| 16470 | _ACEOF |
| 16471 | cat confdefs.h >>conftest.$ac_ext |
| 16472 | cat >>conftest.$ac_ext <<_ACEOF |
| 16473 | /* end confdefs.h. */ |
| 16474 | $ac_includes_default |
| 16475 | int |
| 16476 | main () |
| 16477 | { |
| 16478 | static struct stat ac_aggr; |
| 16479 | if (sizeof ac_aggr.st_flags) |
| 16480 | return 0; |
| 16481 | ; |
| 16482 | return 0; |
| 16483 | } |
| 16484 | _ACEOF |
| 16485 | rm -f conftest.$ac_objext |
| 16486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16487 | (eval $ac_compile) 2>conftest.er1 |
| 16488 | ac_status=$? |
| 16489 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16490 | rm -f conftest.er1 |
| 16491 | cat conftest.err >&5 |
| 16492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16493 | (exit $ac_status); } && |
| 16494 | { ac_try='test -z "$ac_c_werror_flag" |
| 16495 | || test ! -s conftest.err' |
| 16496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16497 | (eval $ac_try) 2>&5 |
| 16498 | ac_status=$? |
| 16499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16500 | (exit $ac_status); }; } && |
| 16501 | { ac_try='test -s conftest.$ac_objext' |
| 16502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16503 | (eval $ac_try) 2>&5 |
| 16504 | ac_status=$? |
| 16505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16506 | (exit $ac_status); }; }; then |
| 16507 | ac_cv_member_struct_stat_st_flags=yes |
| 16508 | else |
| 16509 | echo "$as_me: failed program was:" >&5 |
| 16510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16511 | |
| 16512 | ac_cv_member_struct_stat_st_flags=no |
| 16513 | fi |
| 16514 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16515 | fi |
| 16516 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16517 | fi |
| 16518 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 |
| 16519 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6 |
| 16520 | if test $ac_cv_member_struct_stat_st_flags = yes; then |
| 16521 | |
| 16522 | cat >>confdefs.h <<_ACEOF |
| 16523 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 16524 | _ACEOF |
| 16525 | |
| 16526 | |
| 16527 | fi |
| 16528 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16529 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 16530 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 16531 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 16532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16533 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16534 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16535 | /* confdefs.h. */ |
| 16536 | _ACEOF |
| 16537 | cat confdefs.h >>conftest.$ac_ext |
| 16538 | cat >>conftest.$ac_ext <<_ACEOF |
| 16539 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16540 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16541 | int |
| 16542 | main () |
| 16543 | { |
| 16544 | static struct stat ac_aggr; |
| 16545 | if (ac_aggr.st_blocks) |
| 16546 | return 0; |
| 16547 | ; |
| 16548 | return 0; |
| 16549 | } |
| 16550 | _ACEOF |
| 16551 | rm -f conftest.$ac_objext |
| 16552 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16553 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16554 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16555 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16556 | rm -f conftest.er1 |
| 16557 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16559 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16560 | { ac_try='test -z "$ac_c_werror_flag" |
| 16561 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16563 | (eval $ac_try) 2>&5 |
| 16564 | ac_status=$? |
| 16565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16566 | (exit $ac_status); }; } && |
| 16567 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16569 | (eval $ac_try) 2>&5 |
| 16570 | ac_status=$? |
| 16571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16572 | (exit $ac_status); }; }; then |
| 16573 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16574 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16575 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16576 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16577 | |
| 16578 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16579 | /* confdefs.h. */ |
| 16580 | _ACEOF |
| 16581 | cat confdefs.h >>conftest.$ac_ext |
| 16582 | cat >>conftest.$ac_ext <<_ACEOF |
| 16583 | /* end confdefs.h. */ |
| 16584 | $ac_includes_default |
| 16585 | int |
| 16586 | main () |
| 16587 | { |
| 16588 | static struct stat ac_aggr; |
| 16589 | if (sizeof ac_aggr.st_blocks) |
| 16590 | return 0; |
| 16591 | ; |
| 16592 | return 0; |
| 16593 | } |
| 16594 | _ACEOF |
| 16595 | rm -f conftest.$ac_objext |
| 16596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16597 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16598 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16599 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16600 | rm -f conftest.er1 |
| 16601 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16603 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16604 | { ac_try='test -z "$ac_c_werror_flag" |
| 16605 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16607 | (eval $ac_try) 2>&5 |
| 16608 | ac_status=$? |
| 16609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16610 | (exit $ac_status); }; } && |
| 16611 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16613 | (eval $ac_try) 2>&5 |
| 16614 | ac_status=$? |
| 16615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16616 | (exit $ac_status); }; }; then |
| 16617 | ac_cv_member_struct_stat_st_blocks=yes |
| 16618 | else |
| 16619 | echo "$as_me: failed program was:" >&5 |
| 16620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16621 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16622 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16623 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16624 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16625 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16626 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16627 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16628 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 16629 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 16630 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16631 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16632 | cat >>confdefs.h <<_ACEOF |
| 16633 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 16634 | _ACEOF |
| 16635 | |
| 16636 | |
| 16637 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16638 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16639 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16640 | |
| 16641 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16642 | case $LIBOBJS in |
| 16643 | "fileblocks.$ac_objext" | \ |
| 16644 | *" fileblocks.$ac_objext" | \ |
| 16645 | "fileblocks.$ac_objext "* | \ |
| 16646 | *" fileblocks.$ac_objext "* ) ;; |
| 16647 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;; |
| 16648 | esac |
| 16649 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16650 | fi |
| 16651 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16652 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16653 | |
| 16654 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 16655 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 16656 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 16657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16658 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16659 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16660 | /* confdefs.h. */ |
| 16661 | _ACEOF |
| 16662 | cat confdefs.h >>conftest.$ac_ext |
| 16663 | cat >>conftest.$ac_ext <<_ACEOF |
| 16664 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16665 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16666 | int |
| 16667 | main () |
| 16668 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16669 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16670 | ; |
| 16671 | return 0; |
| 16672 | } |
| 16673 | _ACEOF |
| 16674 | rm -f conftest.$ac_objext |
| 16675 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16676 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16677 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16678 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16679 | rm -f conftest.er1 |
| 16680 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16682 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16683 | { ac_try='test -z "$ac_c_werror_flag" |
| 16684 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16686 | (eval $ac_try) 2>&5 |
| 16687 | ac_status=$? |
| 16688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16689 | (exit $ac_status); }; } && |
| 16690 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16692 | (eval $ac_try) 2>&5 |
| 16693 | ac_status=$? |
| 16694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16695 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16696 | ac_cv_header_time_altzone=yes |
| 16697 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16698 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16699 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16700 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16701 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16702 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16703 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16704 | fi |
| 16705 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16706 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 16707 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16708 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16709 | |
| 16710 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16711 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16712 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16713 | |
| 16714 | fi |
| 16715 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16716 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16717 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 16718 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 16719 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16720 | /* confdefs.h. */ |
| 16721 | _ACEOF |
| 16722 | cat confdefs.h >>conftest.$ac_ext |
| 16723 | cat >>conftest.$ac_ext <<_ACEOF |
| 16724 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16725 | |
| 16726 | #include <sys/types.h> |
| 16727 | #include <sys/select.h> |
| 16728 | #include <sys/time.h> |
| 16729 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16730 | int |
| 16731 | main () |
| 16732 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16733 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16734 | ; |
| 16735 | return 0; |
| 16736 | } |
| 16737 | _ACEOF |
| 16738 | rm -f conftest.$ac_objext |
| 16739 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16740 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16741 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16742 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16743 | rm -f conftest.er1 |
| 16744 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16746 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16747 | { ac_try='test -z "$ac_c_werror_flag" |
| 16748 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16750 | (eval $ac_try) 2>&5 |
| 16751 | ac_status=$? |
| 16752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16753 | (exit $ac_status); }; } && |
| 16754 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16756 | (eval $ac_try) 2>&5 |
| 16757 | ac_status=$? |
| 16758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16759 | (exit $ac_status); }; }; then |
| 16760 | |
| 16761 | |
| 16762 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16763 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16764 | _ACEOF |
| 16765 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16766 | was_it_defined=yes |
| 16767 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16768 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16769 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16770 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16771 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16772 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16773 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16774 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 16775 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16776 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16777 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 16778 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 16779 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 16780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16781 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16782 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16783 | /* confdefs.h. */ |
| 16784 | _ACEOF |
| 16785 | cat confdefs.h >>conftest.$ac_ext |
| 16786 | cat >>conftest.$ac_ext <<_ACEOF |
| 16787 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16788 | |
| 16789 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16790 | int |
| 16791 | main () |
| 16792 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16793 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16794 | ; |
| 16795 | return 0; |
| 16796 | } |
| 16797 | _ACEOF |
| 16798 | rm -f conftest.$ac_objext |
| 16799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16800 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16801 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16802 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16803 | rm -f conftest.er1 |
| 16804 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16806 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16807 | { ac_try='test -z "$ac_c_werror_flag" |
| 16808 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16810 | (eval $ac_try) 2>&5 |
| 16811 | ac_status=$? |
| 16812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16813 | (exit $ac_status); }; } && |
| 16814 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16816 | (eval $ac_try) 2>&5 |
| 16817 | ac_status=$? |
| 16818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16819 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16820 | ac_cv_struct_addrinfo=yes |
| 16821 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16822 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16824 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16825 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16826 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16827 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16828 | fi |
| 16829 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16830 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 16831 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16832 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16833 | |
| 16834 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16835 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16836 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16837 | |
| 16838 | fi |
| 16839 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16840 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 16841 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 16842 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 16843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16844 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16845 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16846 | /* confdefs.h. */ |
| 16847 | _ACEOF |
| 16848 | cat confdefs.h >>conftest.$ac_ext |
| 16849 | cat >>conftest.$ac_ext <<_ACEOF |
| 16850 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16851 | |
| 16852 | # include <sys/types.h> |
| 16853 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16854 | int |
| 16855 | main () |
| 16856 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16857 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16858 | ; |
| 16859 | return 0; |
| 16860 | } |
| 16861 | _ACEOF |
| 16862 | rm -f conftest.$ac_objext |
| 16863 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16864 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16865 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16866 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16867 | rm -f conftest.er1 |
| 16868 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16870 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16871 | { ac_try='test -z "$ac_c_werror_flag" |
| 16872 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16874 | (eval $ac_try) 2>&5 |
| 16875 | ac_status=$? |
| 16876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16877 | (exit $ac_status); }; } && |
| 16878 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16880 | (eval $ac_try) 2>&5 |
| 16881 | ac_status=$? |
| 16882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16883 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16884 | ac_cv_struct_sockaddr_storage=yes |
| 16885 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16886 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16887 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16888 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16889 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16890 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16891 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16892 | fi |
| 16893 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16894 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 16895 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16896 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16897 | |
| 16898 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16899 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16900 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16901 | |
| 16902 | fi |
| 16903 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16904 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16905 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16906 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16907 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 16908 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 16909 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 16910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16911 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16912 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16913 | /* confdefs.h. */ |
| 16914 | _ACEOF |
| 16915 | cat confdefs.h >>conftest.$ac_ext |
| 16916 | cat >>conftest.$ac_ext <<_ACEOF |
| 16917 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16918 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16919 | int |
| 16920 | main () |
| 16921 | { |
| 16922 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 16923 | test_array [0] = 0 |
| 16924 | |
| 16925 | ; |
| 16926 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16927 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16928 | _ACEOF |
| 16929 | rm -f conftest.$ac_objext |
| 16930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16931 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16932 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16933 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16934 | rm -f conftest.er1 |
| 16935 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16937 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16938 | { ac_try='test -z "$ac_c_werror_flag" |
| 16939 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16941 | (eval $ac_try) 2>&5 |
| 16942 | ac_status=$? |
| 16943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16944 | (exit $ac_status); }; } && |
| 16945 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16947 | (eval $ac_try) 2>&5 |
| 16948 | ac_status=$? |
| 16949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16950 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16951 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16952 | else |
| 16953 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16954 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16955 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16956 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16957 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16958 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16959 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16960 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 16961 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16962 | 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] | 16963 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16964 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16965 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16966 | |
| 16967 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16968 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16969 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 16970 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 16971 | if test "${ac_cv_c_const+set}" = set; then |
| 16972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16973 | else |
| 16974 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16975 | /* confdefs.h. */ |
| 16976 | _ACEOF |
| 16977 | cat confdefs.h >>conftest.$ac_ext |
| 16978 | cat >>conftest.$ac_ext <<_ACEOF |
| 16979 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16980 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16981 | int |
| 16982 | main () |
| 16983 | { |
| 16984 | /* FIXME: Include the comments suggested by Paul. */ |
| 16985 | #ifndef __cplusplus |
| 16986 | /* Ultrix mips cc rejects this. */ |
| 16987 | typedef int charset[2]; |
| 16988 | const charset x; |
| 16989 | /* SunOS 4.1.1 cc rejects this. */ |
| 16990 | char const *const *ccp; |
| 16991 | char **p; |
| 16992 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 16993 | struct point {int x, y;}; |
| 16994 | static struct point const zero = {0,0}; |
| 16995 | /* AIX XL C 1.02.0.0 rejects this. |
| 16996 | It does not let you subtract one const X* pointer from another in |
| 16997 | an arm of an if-expression whose if-part is not a constant |
| 16998 | expression */ |
| 16999 | const char *g = "string"; |
| 17000 | ccp = &g + (g ? g-g : 0); |
| 17001 | /* HPUX 7.0 cc rejects these. */ |
| 17002 | ++ccp; |
| 17003 | p = (char**) ccp; |
| 17004 | ccp = (char const *const *) p; |
| 17005 | { /* SCO 3.2v4 cc rejects this. */ |
| 17006 | char *t; |
| 17007 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17008 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17009 | *t++ = 0; |
| 17010 | } |
| 17011 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 17012 | int x[] = {25, 17}; |
| 17013 | const int *foo = &x[0]; |
| 17014 | ++foo; |
| 17015 | } |
| 17016 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 17017 | typedef const int *iptr; |
| 17018 | iptr p = 0; |
| 17019 | ++p; |
| 17020 | } |
| 17021 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 17022 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 17023 | struct s { int j; const int *ap[3]; }; |
| 17024 | struct s *b; b->j = 5; |
| 17025 | } |
| 17026 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 17027 | const int foo = 10; |
| 17028 | } |
| 17029 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17030 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17031 | ; |
| 17032 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17033 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17034 | _ACEOF |
| 17035 | rm -f conftest.$ac_objext |
| 17036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17037 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17038 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17039 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17040 | rm -f conftest.er1 |
| 17041 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17043 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17044 | { ac_try='test -z "$ac_c_werror_flag" |
| 17045 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17047 | (eval $ac_try) 2>&5 |
| 17048 | ac_status=$? |
| 17049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17050 | (exit $ac_status); }; } && |
| 17051 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17053 | (eval $ac_try) 2>&5 |
| 17054 | ac_status=$? |
| 17055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17056 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17057 | ac_cv_c_const=yes |
| 17058 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17059 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17060 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17061 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17062 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17063 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17064 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17065 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17066 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 17067 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17068 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17069 | |
| 17070 | cat >>confdefs.h <<\_ACEOF |
| 17071 | #define const |
| 17072 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17073 | |
| 17074 | fi |
| 17075 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17076 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17077 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17078 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 17079 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 17080 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17081 | /* confdefs.h. */ |
| 17082 | _ACEOF |
| 17083 | cat confdefs.h >>conftest.$ac_ext |
| 17084 | cat >>conftest.$ac_ext <<_ACEOF |
| 17085 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17086 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17087 | int |
| 17088 | main () |
| 17089 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17090 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17091 | ; |
| 17092 | return 0; |
| 17093 | } |
| 17094 | _ACEOF |
| 17095 | rm -f conftest.$ac_objext |
| 17096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17097 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17098 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17099 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17100 | rm -f conftest.er1 |
| 17101 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17103 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17104 | { ac_try='test -z "$ac_c_werror_flag" |
| 17105 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17107 | (eval $ac_try) 2>&5 |
| 17108 | ac_status=$? |
| 17109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17110 | (exit $ac_status); }; } && |
| 17111 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17113 | (eval $ac_try) 2>&5 |
| 17114 | ac_status=$? |
| 17115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17116 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17117 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17118 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17119 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17121 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17122 | |
| 17123 | cat >>confdefs.h <<\_ACEOF |
| 17124 | #define volatile |
| 17125 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17126 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17127 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17128 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17129 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17130 | echo "$as_me:$LINENO: result: $works" >&5 |
| 17131 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17132 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17133 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17134 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 17135 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 17136 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17137 | /* confdefs.h. */ |
| 17138 | _ACEOF |
| 17139 | cat confdefs.h >>conftest.$ac_ext |
| 17140 | cat >>conftest.$ac_ext <<_ACEOF |
| 17141 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 17142 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17143 | int |
| 17144 | main () |
| 17145 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17146 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17147 | ; |
| 17148 | return 0; |
| 17149 | } |
| 17150 | _ACEOF |
| 17151 | rm -f conftest.$ac_objext |
| 17152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17153 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17154 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17155 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17156 | rm -f conftest.er1 |
| 17157 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17159 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17160 | { ac_try='test -z "$ac_c_werror_flag" |
| 17161 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17163 | (eval $ac_try) 2>&5 |
| 17164 | ac_status=$? |
| 17165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17166 | (exit $ac_status); }; } && |
| 17167 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17169 | (eval $ac_try) 2>&5 |
| 17170 | ac_status=$? |
| 17171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17172 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17173 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 17174 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17175 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17177 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17178 | |
| 17179 | cat >>confdefs.h <<\_ACEOF |
| 17180 | #define signed |
| 17181 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17182 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17183 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17184 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17185 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17186 | echo "$as_me:$LINENO: result: $works" >&5 |
| 17187 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17188 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17189 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17190 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 17191 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 17192 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17193 | /* confdefs.h. */ |
| 17194 | _ACEOF |
| 17195 | cat confdefs.h >>conftest.$ac_ext |
| 17196 | cat >>conftest.$ac_ext <<_ACEOF |
| 17197 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17198 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17199 | int |
| 17200 | main () |
| 17201 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17202 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17203 | ; |
| 17204 | return 0; |
| 17205 | } |
| 17206 | _ACEOF |
| 17207 | rm -f conftest.$ac_objext |
| 17208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17209 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17210 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17211 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17212 | rm -f conftest.er1 |
| 17213 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17215 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17216 | { ac_try='test -z "$ac_c_werror_flag" |
| 17217 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17219 | (eval $ac_try) 2>&5 |
| 17220 | ac_status=$? |
| 17221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17222 | (exit $ac_status); }; } && |
| 17223 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17225 | (eval $ac_try) 2>&5 |
| 17226 | ac_status=$? |
| 17227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17228 | (exit $ac_status); }; }; then |
| 17229 | |
| 17230 | |
| 17231 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17232 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17233 | _ACEOF |
| 17234 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17235 | have_prototypes=yes |
| 17236 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 17237 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17238 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17239 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17240 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17241 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17242 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17243 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 17244 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17245 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17246 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17247 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 17248 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 17249 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17250 | /* confdefs.h. */ |
| 17251 | _ACEOF |
| 17252 | cat confdefs.h >>conftest.$ac_ext |
| 17253 | cat >>conftest.$ac_ext <<_ACEOF |
| 17254 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17255 | |
| 17256 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 17257 | int foo(int x, ...) { |
| 17258 | va_list va; |
| 17259 | va_start(va, x); |
| 17260 | va_arg(va, int); |
| 17261 | va_arg(va, char *); |
| 17262 | va_arg(va, double); |
| 17263 | return 0; |
| 17264 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17265 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17266 | int |
| 17267 | main () |
| 17268 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 17269 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17270 | ; |
| 17271 | return 0; |
| 17272 | } |
| 17273 | _ACEOF |
| 17274 | rm -f conftest.$ac_objext |
| 17275 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17276 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17277 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17278 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17279 | rm -f conftest.er1 |
| 17280 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17282 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17283 | { ac_try='test -z "$ac_c_werror_flag" |
| 17284 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17286 | (eval $ac_try) 2>&5 |
| 17287 | ac_status=$? |
| 17288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17289 | (exit $ac_status); }; } && |
| 17290 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17292 | (eval $ac_try) 2>&5 |
| 17293 | ac_status=$? |
| 17294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17295 | (exit $ac_status); }; }; then |
| 17296 | |
| 17297 | |
| 17298 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17299 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17300 | _ACEOF |
| 17301 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17302 | works=yes |
| 17303 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 17304 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17305 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17306 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17307 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17308 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17309 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17310 | echo "$as_me:$LINENO: result: $works" >&5 |
| 17311 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17312 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17313 | # check for socketpair |
| 17314 | echo "$as_me:$LINENO: checking for socketpair" >&5 |
| 17315 | echo $ECHO_N "checking for socketpair... $ECHO_C" >&6 |
| 17316 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17317 | /* confdefs.h. */ |
| 17318 | _ACEOF |
| 17319 | cat confdefs.h >>conftest.$ac_ext |
| 17320 | cat >>conftest.$ac_ext <<_ACEOF |
| 17321 | /* end confdefs.h. */ |
| 17322 | |
| 17323 | #include <sys/types.h> |
| 17324 | #include <sys/socket.h> |
| 17325 | |
| 17326 | int |
| 17327 | main () |
| 17328 | { |
| 17329 | void *x=socketpair |
| 17330 | ; |
| 17331 | return 0; |
| 17332 | } |
| 17333 | _ACEOF |
| 17334 | rm -f conftest.$ac_objext |
| 17335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17336 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17337 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17338 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17339 | rm -f conftest.er1 |
| 17340 | cat conftest.err >&5 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17342 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17343 | { ac_try='test -z "$ac_c_werror_flag" |
| 17344 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17346 | (eval $ac_try) 2>&5 |
| 17347 | ac_status=$? |
| 17348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17349 | (exit $ac_status); }; } && |
| 17350 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17352 | (eval $ac_try) 2>&5 |
| 17353 | ac_status=$? |
| 17354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17355 | (exit $ac_status); }; }; then |
| 17356 | |
| 17357 | cat >>confdefs.h <<\_ACEOF |
| 17358 | #define HAVE_SOCKETPAIR 1 |
| 17359 | _ACEOF |
| 17360 | |
| 17361 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17362 | echo "${ECHO_T}yes" >&6 |
| 17363 | else |
| 17364 | echo "$as_me: failed program was:" >&5 |
| 17365 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17366 | |
| 17367 | echo "$as_me:$LINENO: result: no" >&5 |
| 17368 | echo "${ECHO_T}no" >&6 |
| 17369 | |
| 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 | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17372 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17373 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17374 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 17375 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 17376 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17377 | /* confdefs.h. */ |
| 17378 | _ACEOF |
| 17379 | cat confdefs.h >>conftest.$ac_ext |
| 17380 | cat >>conftest.$ac_ext <<_ACEOF |
| 17381 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17382 | #include <sys/types.h> |
| 17383 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17384 | int |
| 17385 | main () |
| 17386 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17387 | struct sockaddr x; |
| 17388 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17389 | ; |
| 17390 | return 0; |
| 17391 | } |
| 17392 | _ACEOF |
| 17393 | rm -f conftest.$ac_objext |
| 17394 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17395 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17396 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17397 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17398 | rm -f conftest.er1 |
| 17399 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17401 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17402 | { ac_try='test -z "$ac_c_werror_flag" |
| 17403 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17405 | (eval $ac_try) 2>&5 |
| 17406 | ac_status=$? |
| 17407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17408 | (exit $ac_status); }; } && |
| 17409 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17411 | (eval $ac_try) 2>&5 |
| 17412 | ac_status=$? |
| 17413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17414 | (exit $ac_status); }; }; then |
| 17415 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17416 | echo "${ECHO_T}yes" >&6 |
| 17417 | |
| 17418 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17419 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17420 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17421 | |
| 17422 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17423 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17424 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17425 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17426 | echo "$as_me:$LINENO: result: no" >&5 |
| 17427 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17428 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17429 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17430 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17431 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17432 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 17433 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 17434 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17435 | /* confdefs.h. */ |
| 17436 | _ACEOF |
| 17437 | cat confdefs.h >>conftest.$ac_ext |
| 17438 | cat >>conftest.$ac_ext <<_ACEOF |
| 17439 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17440 | |
| 17441 | #ifdef HAVE_STDARG_PROTOTYPES |
| 17442 | #include <stdarg.h> |
| 17443 | #else |
| 17444 | #include <varargs.h> |
| 17445 | #endif |
| 17446 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17447 | int |
| 17448 | main () |
| 17449 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17450 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17451 | ; |
| 17452 | return 0; |
| 17453 | } |
| 17454 | _ACEOF |
| 17455 | rm -f conftest.$ac_objext |
| 17456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17457 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17458 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17459 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17460 | rm -f conftest.er1 |
| 17461 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17463 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17464 | { ac_try='test -z "$ac_c_werror_flag" |
| 17465 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17467 | (eval $ac_try) 2>&5 |
| 17468 | ac_status=$? |
| 17469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17470 | (exit $ac_status); }; } && |
| 17471 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17473 | (eval $ac_try) 2>&5 |
| 17474 | ac_status=$? |
| 17475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17476 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17477 | : |
| 17478 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17479 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17480 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17481 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17482 | |
| 17483 | |
| 17484 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17485 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17486 | _ACEOF |
| 17487 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17488 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17489 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17490 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17491 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17492 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 17493 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17494 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17495 | # 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] | 17496 | |
| 17497 | |
| 17498 | |
| 17499 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 17500 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 17501 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 17502 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17503 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17504 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17505 | /* confdefs.h. */ |
| 17506 | _ACEOF |
| 17507 | cat confdefs.h >>conftest.$ac_ext |
| 17508 | cat >>conftest.$ac_ext <<_ACEOF |
| 17509 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17510 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17511 | which can conflict with char gethostbyname_r (); below. |
| 17512 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 17513 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 17514 | including <limits.h> includes <sys/time.h> and causes problems |
| 17515 | checking for functions defined therein. */ |
| 17516 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17517 | # include <limits.h> |
| 17518 | #else |
| 17519 | # include <assert.h> |
| 17520 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17521 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17522 | #ifdef __cplusplus |
| 17523 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17524 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17525 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17526 | /* 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] | 17527 | builtin and then its argument prototype would still apply. */ |
| 17528 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17529 | /* The GNU C library defines this for functions which it implements |
| 17530 | to always fail with ENOSYS. Some functions are actually named |
| 17531 | something starting with __ and the normal name is an alias. */ |
| 17532 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 17533 | choke me |
| 17534 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17535 | char (*f) () = gethostbyname_r; |
| 17536 | #endif |
| 17537 | #ifdef __cplusplus |
| 17538 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17539 | #endif |
| 17540 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17541 | int |
| 17542 | main () |
| 17543 | { |
| 17544 | return f != gethostbyname_r; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17545 | ; |
| 17546 | return 0; |
| 17547 | } |
| 17548 | _ACEOF |
| 17549 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17550 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17551 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17552 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17553 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17554 | rm -f conftest.er1 |
| 17555 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17557 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17558 | { ac_try='test -z "$ac_c_werror_flag" |
| 17559 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17561 | (eval $ac_try) 2>&5 |
| 17562 | ac_status=$? |
| 17563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17564 | (exit $ac_status); }; } && |
| 17565 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17567 | (eval $ac_try) 2>&5 |
| 17568 | ac_status=$? |
| 17569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17570 | (exit $ac_status); }; }; then |
| 17571 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17572 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17573 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17575 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17576 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17577 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17578 | rm -f conftest.err conftest.$ac_objext \ |
| 17579 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17580 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17581 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 17582 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 17583 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17584 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17585 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17586 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17587 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17588 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17589 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 17590 | 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] | 17591 | OLD_CFLAGS=$CFLAGS |
| 17592 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17593 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17594 | /* confdefs.h. */ |
| 17595 | _ACEOF |
| 17596 | cat confdefs.h >>conftest.$ac_ext |
| 17597 | cat >>conftest.$ac_ext <<_ACEOF |
| 17598 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17599 | |
| 17600 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17601 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17602 | int |
| 17603 | main () |
| 17604 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17605 | |
| 17606 | char *name; |
| 17607 | struct hostent *he, *res; |
| 17608 | char buffer[2048]; |
| 17609 | int buflen = 2048; |
| 17610 | int h_errnop; |
| 17611 | |
| 17612 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17613 | |
| 17614 | ; |
| 17615 | return 0; |
| 17616 | } |
| 17617 | _ACEOF |
| 17618 | rm -f conftest.$ac_objext |
| 17619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17620 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17621 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17622 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17623 | rm -f conftest.er1 |
| 17624 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17626 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17627 | { ac_try='test -z "$ac_c_werror_flag" |
| 17628 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17630 | (eval $ac_try) 2>&5 |
| 17631 | ac_status=$? |
| 17632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17633 | (exit $ac_status); }; } && |
| 17634 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17636 | (eval $ac_try) 2>&5 |
| 17637 | ac_status=$? |
| 17638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17639 | (exit $ac_status); }; }; then |
| 17640 | |
| 17641 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 17642 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17643 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 17644 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17645 | |
| 17646 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17647 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17648 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17649 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17650 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17651 | echo "${ECHO_T}yes" >&6 |
| 17652 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17653 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17654 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17655 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17656 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17657 | |
| 17658 | echo "$as_me:$LINENO: result: no" >&5 |
| 17659 | echo "${ECHO_T}no" >&6 |
| 17660 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 17661 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 17662 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17663 | /* confdefs.h. */ |
| 17664 | _ACEOF |
| 17665 | cat confdefs.h >>conftest.$ac_ext |
| 17666 | cat >>conftest.$ac_ext <<_ACEOF |
| 17667 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17668 | |
| 17669 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17670 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17671 | int |
| 17672 | main () |
| 17673 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17674 | |
| 17675 | char *name; |
| 17676 | struct hostent *he; |
| 17677 | char buffer[2048]; |
| 17678 | int buflen = 2048; |
| 17679 | int h_errnop; |
| 17680 | |
| 17681 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17682 | |
| 17683 | ; |
| 17684 | return 0; |
| 17685 | } |
| 17686 | _ACEOF |
| 17687 | rm -f conftest.$ac_objext |
| 17688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17689 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17690 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17691 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17692 | rm -f conftest.er1 |
| 17693 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17695 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17696 | { ac_try='test -z "$ac_c_werror_flag" |
| 17697 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17699 | (eval $ac_try) 2>&5 |
| 17700 | ac_status=$? |
| 17701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17702 | (exit $ac_status); }; } && |
| 17703 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17705 | (eval $ac_try) 2>&5 |
| 17706 | ac_status=$? |
| 17707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17708 | (exit $ac_status); }; }; then |
| 17709 | |
| 17710 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 17711 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17712 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 17713 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17714 | |
| 17715 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17716 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17717 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17718 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17719 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17720 | echo "${ECHO_T}yes" >&6 |
| 17721 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17722 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17723 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17724 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17725 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17726 | |
| 17727 | echo "$as_me:$LINENO: result: no" >&5 |
| 17728 | echo "${ECHO_T}no" >&6 |
| 17729 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 17730 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 17731 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17732 | /* confdefs.h. */ |
| 17733 | _ACEOF |
| 17734 | cat confdefs.h >>conftest.$ac_ext |
| 17735 | cat >>conftest.$ac_ext <<_ACEOF |
| 17736 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17737 | |
| 17738 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17739 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17740 | int |
| 17741 | main () |
| 17742 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17743 | |
| 17744 | char *name; |
| 17745 | struct hostent *he; |
| 17746 | struct hostent_data data; |
| 17747 | |
| 17748 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17749 | |
| 17750 | ; |
| 17751 | return 0; |
| 17752 | } |
| 17753 | _ACEOF |
| 17754 | rm -f conftest.$ac_objext |
| 17755 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17756 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17757 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17759 | rm -f conftest.er1 |
| 17760 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17762 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17763 | { ac_try='test -z "$ac_c_werror_flag" |
| 17764 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17766 | (eval $ac_try) 2>&5 |
| 17767 | ac_status=$? |
| 17768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17769 | (exit $ac_status); }; } && |
| 17770 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17772 | (eval $ac_try) 2>&5 |
| 17773 | ac_status=$? |
| 17774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17775 | (exit $ac_status); }; }; then |
| 17776 | |
| 17777 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 17778 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17779 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 17780 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17781 | |
| 17782 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17783 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17784 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17785 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17786 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17787 | echo "${ECHO_T}yes" >&6 |
| 17788 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17789 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17790 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17791 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17792 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17793 | |
| 17794 | echo "$as_me:$LINENO: result: no" >&5 |
| 17795 | echo "${ECHO_T}no" >&6 |
| 17796 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17797 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17798 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17799 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17800 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17801 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17802 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17803 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17804 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17805 | CFLAGS=$OLD_CFLAGS |
| 17806 | |
| 17807 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17808 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17809 | |
| 17810 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17811 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17812 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17813 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17814 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 17815 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 17816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17817 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17818 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17819 | /* confdefs.h. */ |
| 17820 | _ACEOF |
| 17821 | cat confdefs.h >>conftest.$ac_ext |
| 17822 | cat >>conftest.$ac_ext <<_ACEOF |
| 17823 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17824 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17825 | which can conflict with char $ac_func (); below. |
| 17826 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 17827 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 17828 | including <limits.h> includes <sys/time.h> and causes problems |
| 17829 | checking for functions defined therein. */ |
| 17830 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17831 | # include <limits.h> |
| 17832 | #else |
| 17833 | # include <assert.h> |
| 17834 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17835 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17836 | #ifdef __cplusplus |
| 17837 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17838 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17839 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17840 | /* 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] | 17841 | builtin and then its argument prototype would still apply. */ |
| 17842 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17843 | /* The GNU C library defines this for functions which it implements |
| 17844 | to always fail with ENOSYS. Some functions are actually named |
| 17845 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17846 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17847 | choke me |
| 17848 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17849 | char (*f) () = $ac_func; |
| 17850 | #endif |
| 17851 | #ifdef __cplusplus |
| 17852 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17853 | #endif |
| 17854 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17855 | int |
| 17856 | main () |
| 17857 | { |
| 17858 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17859 | ; |
| 17860 | return 0; |
| 17861 | } |
| 17862 | _ACEOF |
| 17863 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17864 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17865 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17866 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17867 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17868 | rm -f conftest.er1 |
| 17869 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17871 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17872 | { ac_try='test -z "$ac_c_werror_flag" |
| 17873 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17875 | (eval $ac_try) 2>&5 |
| 17876 | ac_status=$? |
| 17877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17878 | (exit $ac_status); }; } && |
| 17879 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17881 | (eval $ac_try) 2>&5 |
| 17882 | ac_status=$? |
| 17883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17884 | (exit $ac_status); }; }; then |
| 17885 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17886 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17887 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17888 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17889 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17890 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17891 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17892 | rm -f conftest.err conftest.$ac_objext \ |
| 17893 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17894 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17895 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 17896 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 17897 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17898 | cat >>confdefs.h <<_ACEOF |
| 17899 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17900 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17901 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17902 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17903 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17904 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17905 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17906 | fi |
| 17907 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17908 | |
| 17909 | |
| 17910 | |
| 17911 | |
| 17912 | |
| 17913 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17914 | # checks for system services |
| 17915 | # (none yet) |
| 17916 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17917 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17918 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 17919 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 17920 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 17921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17922 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17923 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17924 | /* confdefs.h. */ |
| 17925 | _ACEOF |
| 17926 | cat confdefs.h >>conftest.$ac_ext |
| 17927 | cat >>conftest.$ac_ext <<_ACEOF |
| 17928 | /* end confdefs.h. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17929 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17930 | which can conflict with char __fpu_control (); below. |
| 17931 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 17932 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 17933 | including <limits.h> includes <sys/time.h> and causes problems |
| 17934 | checking for functions defined therein. */ |
| 17935 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17936 | # include <limits.h> |
| 17937 | #else |
| 17938 | # include <assert.h> |
| 17939 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17940 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17941 | #ifdef __cplusplus |
| 17942 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17943 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17944 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17945 | /* 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] | 17946 | builtin and then its argument prototype would still apply. */ |
| 17947 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17948 | /* The GNU C library defines this for functions which it implements |
| 17949 | to always fail with ENOSYS. Some functions are actually named |
| 17950 | something starting with __ and the normal name is an alias. */ |
| 17951 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 17952 | choke me |
| 17953 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17954 | char (*f) () = __fpu_control; |
| 17955 | #endif |
| 17956 | #ifdef __cplusplus |
| 17957 | } |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17958 | #endif |
| 17959 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17960 | int |
| 17961 | main () |
| 17962 | { |
| 17963 | return f != __fpu_control; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17964 | ; |
| 17965 | return 0; |
| 17966 | } |
| 17967 | _ACEOF |
| 17968 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17969 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17970 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17971 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17972 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17973 | rm -f conftest.er1 |
| 17974 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17976 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17977 | { ac_try='test -z "$ac_c_werror_flag" |
| 17978 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17980 | (eval $ac_try) 2>&5 |
| 17981 | ac_status=$? |
| 17982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17983 | (exit $ac_status); }; } && |
| 17984 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17986 | (eval $ac_try) 2>&5 |
| 17987 | ac_status=$? |
| 17988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17989 | (exit $ac_status); }; }; then |
| 17990 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17991 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17992 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17994 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17995 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17996 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17997 | rm -f conftest.err conftest.$ac_objext \ |
| 17998 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17999 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18000 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 18001 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 18002 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 18003 | : |
| 18004 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18005 | |
| 18006 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 18007 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 18008 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 18009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18010 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18011 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18012 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18013 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18014 | /* confdefs.h. */ |
| 18015 | _ACEOF |
| 18016 | cat confdefs.h >>conftest.$ac_ext |
| 18017 | cat >>conftest.$ac_ext <<_ACEOF |
| 18018 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18019 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18020 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18021 | #ifdef __cplusplus |
| 18022 | extern "C" |
| 18023 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18024 | /* 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] | 18025 | builtin and then its argument prototype would still apply. */ |
| 18026 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18027 | int |
| 18028 | main () |
| 18029 | { |
| 18030 | __fpu_control (); |
| 18031 | ; |
| 18032 | return 0; |
| 18033 | } |
| 18034 | _ACEOF |
| 18035 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18036 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18037 | (eval $ac_link) 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_exeext' |
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 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18058 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18059 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18060 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18061 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18062 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18063 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18064 | rm -f conftest.err conftest.$ac_objext \ |
| 18065 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18066 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18067 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18068 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 18069 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 18070 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 18071 | cat >>confdefs.h <<_ACEOF |
| 18072 | #define HAVE_LIBIEEE 1 |
| 18073 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18074 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18075 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18076 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18077 | fi |
| 18078 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18079 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 18080 | fi |
| 18081 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18082 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18083 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18084 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 18085 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 18086 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18087 | # Check whether --with-fpectl or --without-fpectl was given. |
| 18088 | if test "${with_fpectl+set}" = set; then |
| 18089 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18090 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18091 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18092 | then |
| 18093 | |
| 18094 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18095 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18096 | _ACEOF |
| 18097 | |
| 18098 | echo "$as_me:$LINENO: result: yes" >&5 |
| 18099 | echo "${ECHO_T}yes" >&6 |
| 18100 | else echo "$as_me:$LINENO: result: no" >&5 |
| 18101 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18102 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18103 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18104 | echo "$as_me:$LINENO: result: no" >&5 |
| 18105 | echo "${ECHO_T}no" >&6 |
| 18106 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18107 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18108 | # check for --with-libm=... |
| 18109 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 18110 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 18111 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 18112 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 18113 | *) LIBM=-lm |
| 18114 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18115 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 18116 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 18117 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18118 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18119 | if test "${with_libm+set}" = set; then |
| 18120 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18121 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18122 | if test "$withval" = no |
| 18123 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18124 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 18125 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18126 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18127 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18128 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 18129 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 18130 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 18131 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 18132 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18133 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18134 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18135 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 18136 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 18137 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18138 | |
| 18139 | # check for --with-libc=... |
| 18140 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18141 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 18142 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 18143 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18144 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18145 | if test "${with_libc+set}" = set; then |
| 18146 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18147 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18148 | if test "$withval" = no |
| 18149 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18150 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 18151 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18152 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18153 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18154 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 18155 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 18156 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 18157 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 18158 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18159 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18160 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18161 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 18162 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 18163 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18164 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18165 | # check for hypot() in math library |
| 18166 | LIBS_SAVE=$LIBS |
| 18167 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18168 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18169 | for ac_func in hypot |
| 18170 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18171 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18172 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18173 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 18174 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 18175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18176 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18177 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18178 | /* confdefs.h. */ |
| 18179 | _ACEOF |
| 18180 | cat confdefs.h >>conftest.$ac_ext |
| 18181 | cat >>conftest.$ac_ext <<_ACEOF |
| 18182 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18183 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18184 | which can conflict with char $ac_func (); below. |
| 18185 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 18186 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 18187 | including <limits.h> includes <sys/time.h> and causes problems |
| 18188 | checking for functions defined therein. */ |
| 18189 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18190 | # include <limits.h> |
| 18191 | #else |
| 18192 | # include <assert.h> |
| 18193 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18194 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18195 | #ifdef __cplusplus |
| 18196 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18197 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18198 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18199 | /* 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] | 18200 | builtin and then its argument prototype would still apply. */ |
| 18201 | char $ac_func (); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18202 | /* The GNU C library defines this for functions which it implements |
| 18203 | to always fail with ENOSYS. Some functions are actually named |
| 18204 | something starting with __ and the normal name is an alias. */ |
| 18205 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 18206 | choke me |
| 18207 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18208 | char (*f) () = $ac_func; |
| 18209 | #endif |
| 18210 | #ifdef __cplusplus |
| 18211 | } |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18212 | #endif |
| 18213 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18214 | int |
| 18215 | main () |
| 18216 | { |
| 18217 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18218 | ; |
| 18219 | return 0; |
| 18220 | } |
| 18221 | _ACEOF |
| 18222 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18223 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18224 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18225 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18226 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18227 | rm -f conftest.er1 |
| 18228 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18230 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18231 | { ac_try='test -z "$ac_c_werror_flag" |
| 18232 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18234 | (eval $ac_try) 2>&5 |
| 18235 | ac_status=$? |
| 18236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18237 | (exit $ac_status); }; } && |
| 18238 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18240 | (eval $ac_try) 2>&5 |
| 18241 | ac_status=$? |
| 18242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18243 | (exit $ac_status); }; }; then |
| 18244 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 18245 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18246 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18247 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18248 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18249 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18250 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18251 | rm -f conftest.err conftest.$ac_objext \ |
| 18252 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18253 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18254 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 18255 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 18256 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 18257 | cat >>confdefs.h <<_ACEOF |
| 18258 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18259 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18260 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18261 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18262 | case $LIBOBJS in |
| 18263 | "$ac_func.$ac_objext" | \ |
| 18264 | *" $ac_func.$ac_objext" | \ |
| 18265 | "$ac_func.$ac_objext "* | \ |
| 18266 | *" $ac_func.$ac_objext "* ) ;; |
| 18267 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; |
| 18268 | esac |
| 18269 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 18270 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 18271 | done |
| 18272 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18273 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18274 | LIBS=$LIBS_SAVE |
| 18275 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18276 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18277 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 18278 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 18279 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 18280 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 18281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18282 | fi |
| 18283 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 18284 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18285 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18286 | # Is the header compilable? |
| 18287 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 18288 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 18289 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18290 | /* confdefs.h. */ |
| 18291 | _ACEOF |
| 18292 | cat confdefs.h >>conftest.$ac_ext |
| 18293 | cat >>conftest.$ac_ext <<_ACEOF |
| 18294 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18295 | $ac_includes_default |
| 18296 | #include <wchar.h> |
| 18297 | _ACEOF |
| 18298 | rm -f conftest.$ac_objext |
| 18299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18300 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18301 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18302 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18303 | rm -f conftest.er1 |
| 18304 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18306 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18307 | { ac_try='test -z "$ac_c_werror_flag" |
| 18308 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18310 | (eval $ac_try) 2>&5 |
| 18311 | ac_status=$? |
| 18312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18313 | (exit $ac_status); }; } && |
| 18314 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18316 | (eval $ac_try) 2>&5 |
| 18317 | ac_status=$? |
| 18318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18319 | (exit $ac_status); }; }; then |
| 18320 | ac_header_compiler=yes |
| 18321 | else |
| 18322 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18323 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18324 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18325 | ac_header_compiler=no |
| 18326 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18327 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18328 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 18329 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 18330 | |
| 18331 | # Is the header present? |
| 18332 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 18333 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 18334 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18335 | /* confdefs.h. */ |
| 18336 | _ACEOF |
| 18337 | cat confdefs.h >>conftest.$ac_ext |
| 18338 | cat >>conftest.$ac_ext <<_ACEOF |
| 18339 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18340 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18341 | _ACEOF |
| 18342 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 18343 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 18344 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18345 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18346 | rm -f conftest.er1 |
| 18347 | cat conftest.err >&5 |
| 18348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18349 | (exit $ac_status); } >/dev/null; then |
| 18350 | if test -s conftest.err; then |
| 18351 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18352 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18353 | else |
| 18354 | ac_cpp_err= |
| 18355 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18356 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18357 | ac_cpp_err=yes |
| 18358 | fi |
| 18359 | if test -z "$ac_cpp_err"; then |
| 18360 | ac_header_preproc=yes |
| 18361 | else |
| 18362 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18363 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18364 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18365 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18366 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18367 | rm -f conftest.err conftest.$ac_ext |
| 18368 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 18369 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 18370 | |
| 18371 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18372 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 18373 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18374 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 18375 | 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] | 18376 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 18377 | echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;} |
| 18378 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 18379 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18380 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 18381 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 18382 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18383 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 18384 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 18385 | { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 18386 | echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 18387 | { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 18388 | 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] | 18389 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 18390 | 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] | 18391 | { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 18392 | 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] | 18393 | ( |
| 18394 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 18395 | ## ------------------------------------------------ ## |
| 18396 | ## Report this to http://www.python.org/python-bugs ## |
| 18397 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18398 | _ASBOX |
| 18399 | ) | |
| 18400 | sed "s/^/$as_me: WARNING: /" >&2 |
| 18401 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18402 | esac |
| 18403 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 18404 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 18405 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 18406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18407 | else |
| 18408 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18409 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18410 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 18411 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 18412 | |
| 18413 | fi |
| 18414 | if test $ac_cv_header_wchar_h = yes; then |
| 18415 | |
| 18416 | |
| 18417 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18418 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18419 | _ACEOF |
| 18420 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 18421 | wchar_h="yes" |
| 18422 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18423 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18424 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18425 | |
| 18426 | fi |
| 18427 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18428 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18429 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18430 | # determine wchar_t size |
| 18431 | if test "$wchar_h" = yes |
| 18432 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18433 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 18434 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 18435 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 18436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18437 | else |
| 18438 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18439 | /* confdefs.h. */ |
| 18440 | _ACEOF |
| 18441 | cat confdefs.h >>conftest.$ac_ext |
| 18442 | cat >>conftest.$ac_ext <<_ACEOF |
| 18443 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18444 | #include <wchar.h> |
| 18445 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18446 | int |
| 18447 | main () |
| 18448 | { |
| 18449 | if ((wchar_t *) 0) |
| 18450 | return 0; |
| 18451 | if (sizeof (wchar_t)) |
| 18452 | return 0; |
| 18453 | ; |
| 18454 | return 0; |
| 18455 | } |
| 18456 | _ACEOF |
| 18457 | rm -f conftest.$ac_objext |
| 18458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18459 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18460 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18461 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18462 | rm -f conftest.er1 |
| 18463 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18465 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18466 | { ac_try='test -z "$ac_c_werror_flag" |
| 18467 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18469 | (eval $ac_try) 2>&5 |
| 18470 | ac_status=$? |
| 18471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18472 | (exit $ac_status); }; } && |
| 18473 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18475 | (eval $ac_try) 2>&5 |
| 18476 | ac_status=$? |
| 18477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18478 | (exit $ac_status); }; }; then |
| 18479 | ac_cv_type_wchar_t=yes |
| 18480 | else |
| 18481 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18483 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18484 | ac_cv_type_wchar_t=no |
| 18485 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18486 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18487 | fi |
| 18488 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 18489 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 18490 | |
| 18491 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 18492 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 18493 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 18494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18495 | else |
| 18496 | if test "$ac_cv_type_wchar_t" = yes; then |
| 18497 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 18498 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 18499 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 18500 | # This bug is HP SR number 8606223364. |
| 18501 | if test "$cross_compiling" = yes; then |
| 18502 | # Depending upon the size, compute the lo and hi bounds. |
| 18503 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18504 | /* confdefs.h. */ |
| 18505 | _ACEOF |
| 18506 | cat confdefs.h >>conftest.$ac_ext |
| 18507 | cat >>conftest.$ac_ext <<_ACEOF |
| 18508 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18509 | #include <wchar.h> |
| 18510 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18511 | int |
| 18512 | main () |
| 18513 | { |
| 18514 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 18515 | test_array [0] = 0 |
| 18516 | |
| 18517 | ; |
| 18518 | return 0; |
| 18519 | } |
| 18520 | _ACEOF |
| 18521 | rm -f conftest.$ac_objext |
| 18522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18523 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18524 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18525 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18526 | rm -f conftest.er1 |
| 18527 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18529 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18530 | { ac_try='test -z "$ac_c_werror_flag" |
| 18531 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18533 | (eval $ac_try) 2>&5 |
| 18534 | ac_status=$? |
| 18535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18536 | (exit $ac_status); }; } && |
| 18537 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18539 | (eval $ac_try) 2>&5 |
| 18540 | ac_status=$? |
| 18541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18542 | (exit $ac_status); }; }; then |
| 18543 | ac_lo=0 ac_mid=0 |
| 18544 | while :; do |
| 18545 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18546 | /* confdefs.h. */ |
| 18547 | _ACEOF |
| 18548 | cat confdefs.h >>conftest.$ac_ext |
| 18549 | cat >>conftest.$ac_ext <<_ACEOF |
| 18550 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18551 | #include <wchar.h> |
| 18552 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18553 | int |
| 18554 | main () |
| 18555 | { |
| 18556 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 18557 | test_array [0] = 0 |
| 18558 | |
| 18559 | ; |
| 18560 | return 0; |
| 18561 | } |
| 18562 | _ACEOF |
| 18563 | rm -f conftest.$ac_objext |
| 18564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18565 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18566 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18567 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18568 | rm -f conftest.er1 |
| 18569 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18571 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18572 | { ac_try='test -z "$ac_c_werror_flag" |
| 18573 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18575 | (eval $ac_try) 2>&5 |
| 18576 | ac_status=$? |
| 18577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18578 | (exit $ac_status); }; } && |
| 18579 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18581 | (eval $ac_try) 2>&5 |
| 18582 | ac_status=$? |
| 18583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18584 | (exit $ac_status); }; }; then |
| 18585 | ac_hi=$ac_mid; break |
| 18586 | else |
| 18587 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18588 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18589 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18590 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18591 | if test $ac_lo -le $ac_mid; then |
| 18592 | ac_lo= ac_hi= |
| 18593 | break |
| 18594 | fi |
| 18595 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18596 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18597 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18598 | done |
| 18599 | else |
| 18600 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18601 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18602 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18603 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18604 | /* confdefs.h. */ |
| 18605 | _ACEOF |
| 18606 | cat confdefs.h >>conftest.$ac_ext |
| 18607 | cat >>conftest.$ac_ext <<_ACEOF |
| 18608 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18609 | #include <wchar.h> |
| 18610 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18611 | int |
| 18612 | main () |
| 18613 | { |
| 18614 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 18615 | test_array [0] = 0 |
| 18616 | |
| 18617 | ; |
| 18618 | return 0; |
| 18619 | } |
| 18620 | _ACEOF |
| 18621 | rm -f conftest.$ac_objext |
| 18622 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18623 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18624 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18625 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18626 | rm -f conftest.er1 |
| 18627 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18629 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18630 | { ac_try='test -z "$ac_c_werror_flag" |
| 18631 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18633 | (eval $ac_try) 2>&5 |
| 18634 | ac_status=$? |
| 18635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18636 | (exit $ac_status); }; } && |
| 18637 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18639 | (eval $ac_try) 2>&5 |
| 18640 | ac_status=$? |
| 18641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18642 | (exit $ac_status); }; }; then |
| 18643 | ac_hi=-1 ac_mid=-1 |
| 18644 | while :; do |
| 18645 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18646 | /* confdefs.h. */ |
| 18647 | _ACEOF |
| 18648 | cat confdefs.h >>conftest.$ac_ext |
| 18649 | cat >>conftest.$ac_ext <<_ACEOF |
| 18650 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18651 | #include <wchar.h> |
| 18652 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18653 | int |
| 18654 | main () |
| 18655 | { |
| 18656 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 18657 | test_array [0] = 0 |
| 18658 | |
| 18659 | ; |
| 18660 | return 0; |
| 18661 | } |
| 18662 | _ACEOF |
| 18663 | rm -f conftest.$ac_objext |
| 18664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18665 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18666 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18667 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18668 | rm -f conftest.er1 |
| 18669 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18671 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18672 | { ac_try='test -z "$ac_c_werror_flag" |
| 18673 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18675 | (eval $ac_try) 2>&5 |
| 18676 | ac_status=$? |
| 18677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18678 | (exit $ac_status); }; } && |
| 18679 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18681 | (eval $ac_try) 2>&5 |
| 18682 | ac_status=$? |
| 18683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18684 | (exit $ac_status); }; }; then |
| 18685 | ac_lo=$ac_mid; break |
| 18686 | else |
| 18687 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18689 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18690 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18691 | if test $ac_mid -le $ac_hi; then |
| 18692 | ac_lo= ac_hi= |
| 18693 | break |
| 18694 | fi |
| 18695 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18696 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18697 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18698 | done |
| 18699 | else |
| 18700 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18701 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18702 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18703 | ac_lo= ac_hi= |
| 18704 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18705 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18706 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18707 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18708 | # Binary search between lo and hi bounds. |
| 18709 | while test "x$ac_lo" != "x$ac_hi"; do |
| 18710 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 18711 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18712 | /* confdefs.h. */ |
| 18713 | _ACEOF |
| 18714 | cat confdefs.h >>conftest.$ac_ext |
| 18715 | cat >>conftest.$ac_ext <<_ACEOF |
| 18716 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18717 | #include <wchar.h> |
| 18718 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18719 | int |
| 18720 | main () |
| 18721 | { |
| 18722 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 18723 | test_array [0] = 0 |
| 18724 | |
| 18725 | ; |
| 18726 | return 0; |
| 18727 | } |
| 18728 | _ACEOF |
| 18729 | rm -f conftest.$ac_objext |
| 18730 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18731 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18732 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18733 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18734 | rm -f conftest.er1 |
| 18735 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18737 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18738 | { ac_try='test -z "$ac_c_werror_flag" |
| 18739 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18741 | (eval $ac_try) 2>&5 |
| 18742 | ac_status=$? |
| 18743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18744 | (exit $ac_status); }; } && |
| 18745 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18747 | (eval $ac_try) 2>&5 |
| 18748 | ac_status=$? |
| 18749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18750 | (exit $ac_status); }; }; then |
| 18751 | ac_hi=$ac_mid |
| 18752 | else |
| 18753 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18755 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18756 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 18757 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18758 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18759 | done |
| 18760 | case $ac_lo in |
| 18761 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18762 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 18763 | See \`config.log' for more details." >&5 |
| 18764 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 18765 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18766 | { (exit 1); exit 1; }; } ;; |
| 18767 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18768 | else |
| 18769 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18770 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 18771 | See \`config.log' for more details." >&5 |
| 18772 | echo "$as_me: error: cannot run test program while cross compiling |
| 18773 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18774 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18775 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18776 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18777 | /* confdefs.h. */ |
| 18778 | _ACEOF |
| 18779 | cat confdefs.h >>conftest.$ac_ext |
| 18780 | cat >>conftest.$ac_ext <<_ACEOF |
| 18781 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18782 | #include <wchar.h> |
| 18783 | |
| 18784 | long longval () { return (long) (sizeof (wchar_t)); } |
| 18785 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18786 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18787 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18788 | int |
| 18789 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18790 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18791 | |
| 18792 | FILE *f = fopen ("conftest.val", "w"); |
| 18793 | if (! f) |
| 18794 | exit (1); |
| 18795 | if (((long) (sizeof (wchar_t))) < 0) |
| 18796 | { |
| 18797 | long i = longval (); |
| 18798 | if (i != ((long) (sizeof (wchar_t)))) |
| 18799 | exit (1); |
| 18800 | fprintf (f, "%ld\n", i); |
| 18801 | } |
| 18802 | else |
| 18803 | { |
| 18804 | unsigned long i = ulongval (); |
| 18805 | if (i != ((long) (sizeof (wchar_t)))) |
| 18806 | exit (1); |
| 18807 | fprintf (f, "%lu\n", i); |
| 18808 | } |
| 18809 | exit (ferror (f) || fclose (f) != 0); |
| 18810 | |
| 18811 | ; |
| 18812 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18813 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18814 | _ACEOF |
| 18815 | rm -f conftest$ac_exeext |
| 18816 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18817 | (eval $ac_link) 2>&5 |
| 18818 | ac_status=$? |
| 18819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18820 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18822 | (eval $ac_try) 2>&5 |
| 18823 | ac_status=$? |
| 18824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18825 | (exit $ac_status); }; }; then |
| 18826 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18827 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18828 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18829 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18831 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18832 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18833 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 18834 | See \`config.log' for more details." >&5 |
| 18835 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 18836 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18837 | { (exit 1); exit 1; }; } |
| 18838 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18839 | 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] | 18840 | fi |
| 18841 | fi |
| 18842 | rm -f conftest.val |
| 18843 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18844 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18845 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18846 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18847 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 18848 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 18849 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18850 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18851 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18852 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18853 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18854 | fi |
| 18855 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18856 | echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 18857 | echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6 |
| 18858 | have_ucs4_tcl=no |
| 18859 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18860 | /* confdefs.h. */ |
| 18861 | _ACEOF |
| 18862 | cat confdefs.h >>conftest.$ac_ext |
| 18863 | cat >>conftest.$ac_ext <<_ACEOF |
| 18864 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18865 | |
| 18866 | #include <tcl.h> |
| 18867 | #if TCL_UTF_MAX != 6 |
| 18868 | # error "NOT UCS4_TCL" |
| 18869 | #endif |
| 18870 | int |
| 18871 | main () |
| 18872 | { |
| 18873 | |
| 18874 | ; |
| 18875 | return 0; |
| 18876 | } |
| 18877 | _ACEOF |
| 18878 | rm -f conftest.$ac_objext |
| 18879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18880 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18881 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18882 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18883 | rm -f conftest.er1 |
| 18884 | cat conftest.err >&5 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18886 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18887 | { ac_try='test -z "$ac_c_werror_flag" |
| 18888 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18890 | (eval $ac_try) 2>&5 |
| 18891 | ac_status=$? |
| 18892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18893 | (exit $ac_status); }; } && |
| 18894 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18896 | (eval $ac_try) 2>&5 |
| 18897 | ac_status=$? |
| 18898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18899 | (exit $ac_status); }; }; then |
| 18900 | |
| 18901 | |
| 18902 | cat >>confdefs.h <<\_ACEOF |
| 18903 | #define HAVE_UCS4_TCL 1 |
| 18904 | _ACEOF |
| 18905 | |
| 18906 | have_ucs4_tcl=yes |
| 18907 | |
| 18908 | else |
| 18909 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18910 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18911 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18912 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18913 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18914 | echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 18915 | echo "${ECHO_T}$have_ucs4_tcl" >&6 |
| 18916 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18917 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 18918 | if test "$wchar_h" = yes |
| 18919 | then |
| 18920 | # check whether wchar_t is signed or not |
| 18921 | echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 18922 | echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6 |
| 18923 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
| 18924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18925 | else |
| 18926 | |
| 18927 | if test "$cross_compiling" = yes; then |
| 18928 | ac_cv_wchar_t_signed=yes |
| 18929 | else |
| 18930 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18931 | /* confdefs.h. */ |
| 18932 | _ACEOF |
| 18933 | cat confdefs.h >>conftest.$ac_ext |
| 18934 | cat >>conftest.$ac_ext <<_ACEOF |
| 18935 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 18936 | |
| 18937 | #include <wchar.h> |
| 18938 | int main() |
| 18939 | { |
| 18940 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 1 : 0); |
| 18941 | } |
| 18942 | |
| 18943 | _ACEOF |
| 18944 | rm -f conftest$ac_exeext |
| 18945 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18946 | (eval $ac_link) 2>&5 |
| 18947 | ac_status=$? |
| 18948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18949 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18951 | (eval $ac_try) 2>&5 |
| 18952 | ac_status=$? |
| 18953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18954 | (exit $ac_status); }; }; then |
| 18955 | ac_cv_wchar_t_signed=yes |
| 18956 | else |
| 18957 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18958 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18960 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 18961 | ( exit $ac_status ) |
| 18962 | ac_cv_wchar_t_signed=no |
| 18963 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18964 | 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] | 18965 | fi |
| 18966 | fi |
| 18967 | |
| 18968 | echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 18969 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6 |
| 18970 | fi |
| 18971 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18972 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 18973 | 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] | 18974 | # Check whether --enable-unicode or --disable-unicode was given. |
| 18975 | if test "${enable_unicode+set}" = set; then |
| 18976 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18977 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18978 | else |
| 18979 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18980 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18981 | |
| 18982 | if test $enable_unicode = yes |
| 18983 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 18984 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18985 | case "$have_ucs4_tcl" in |
| 18986 | yes) enable_unicode="ucs4" |
| 18987 | ;; |
| 18988 | *) enable_unicode="ucs2" |
| 18989 | ;; |
| 18990 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18991 | fi |
| 18992 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 18993 | |
| 18994 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18995 | case "$enable_unicode" in |
| 18996 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18997 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18998 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18999 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19000 | |
| 19001 | ;; |
| 19002 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19003 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19004 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19005 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19006 | |
| 19007 | ;; |
| 19008 | esac |
| 19009 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19010 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19011 | |
| 19012 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 19013 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19014 | if test "$enable_unicode" = "no" |
| 19015 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 19016 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19017 | echo "$as_me:$LINENO: result: not used" >&5 |
| 19018 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19019 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 19020 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19021 | |
| 19022 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19023 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19024 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19025 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 19026 | |
| 19027 | # wchar_t is only usable if it maps to an unsigned type |
| 19028 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 19029 | -a "$ac_cv_wchar_t_signed" = "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19030 | then |
| 19031 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19032 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19033 | cat >>confdefs.h <<\_ACEOF |
| 19034 | #define HAVE_USABLE_WCHAR_T 1 |
| 19035 | _ACEOF |
| 19036 | |
| 19037 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19038 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19039 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19040 | |
| 19041 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 19042 | then |
| 19043 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19044 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19045 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19046 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19047 | |
| 19048 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 19049 | then |
| 19050 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19051 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19052 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19053 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19054 | |
| 19055 | else |
| 19056 | PY_UNICODE_TYPE="no type found" |
| 19057 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19058 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 19059 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19060 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19061 | |
| 19062 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19063 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 19064 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 19065 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 19066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19067 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19068 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 19069 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19070 | /* confdefs.h. */ |
| 19071 | _ACEOF |
| 19072 | cat confdefs.h >>conftest.$ac_ext |
| 19073 | cat >>conftest.$ac_ext <<_ACEOF |
| 19074 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19075 | #include <sys/types.h> |
| 19076 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19077 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19078 | int |
| 19079 | main () |
| 19080 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19081 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 19082 | bogus endian macros |
| 19083 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19084 | |
| 19085 | ; |
| 19086 | return 0; |
| 19087 | } |
| 19088 | _ACEOF |
| 19089 | rm -f conftest.$ac_objext |
| 19090 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19091 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19092 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19093 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19094 | rm -f conftest.er1 |
| 19095 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19097 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19098 | { ac_try='test -z "$ac_c_werror_flag" |
| 19099 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19101 | (eval $ac_try) 2>&5 |
| 19102 | ac_status=$? |
| 19103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19104 | (exit $ac_status); }; } && |
| 19105 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19107 | (eval $ac_try) 2>&5 |
| 19108 | ac_status=$? |
| 19109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19110 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19111 | # 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] | 19112 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19113 | /* confdefs.h. */ |
| 19114 | _ACEOF |
| 19115 | cat confdefs.h >>conftest.$ac_ext |
| 19116 | cat >>conftest.$ac_ext <<_ACEOF |
| 19117 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19118 | #include <sys/types.h> |
| 19119 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19120 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19121 | int |
| 19122 | main () |
| 19123 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19124 | #if BYTE_ORDER != BIG_ENDIAN |
| 19125 | not big endian |
| 19126 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19127 | |
| 19128 | ; |
| 19129 | return 0; |
| 19130 | } |
| 19131 | _ACEOF |
| 19132 | rm -f conftest.$ac_objext |
| 19133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19134 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19135 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19136 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19137 | rm -f conftest.er1 |
| 19138 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19140 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19141 | { ac_try='test -z "$ac_c_werror_flag" |
| 19142 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19144 | (eval $ac_try) 2>&5 |
| 19145 | ac_status=$? |
| 19146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19147 | (exit $ac_status); }; } && |
| 19148 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19150 | (eval $ac_try) 2>&5 |
| 19151 | ac_status=$? |
| 19152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19153 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19154 | ac_cv_c_bigendian=yes |
| 19155 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19156 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19158 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19159 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19160 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19161 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19162 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19163 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19164 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19165 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19166 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19167 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19168 | # 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] | 19169 | ac_cv_c_bigendian=unknown |
| 19170 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19171 | /* confdefs.h. */ |
| 19172 | _ACEOF |
| 19173 | cat confdefs.h >>conftest.$ac_ext |
| 19174 | cat >>conftest.$ac_ext <<_ACEOF |
| 19175 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19176 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 19177 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 19178 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 19179 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 19180 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 19181 | 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] | 19182 | int |
| 19183 | main () |
| 19184 | { |
| 19185 | _ascii (); _ebcdic (); |
| 19186 | ; |
| 19187 | return 0; |
| 19188 | } |
| 19189 | _ACEOF |
| 19190 | rm -f conftest.$ac_objext |
| 19191 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19192 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19193 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19194 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19195 | rm -f conftest.er1 |
| 19196 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19198 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19199 | { ac_try='test -z "$ac_c_werror_flag" |
| 19200 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19202 | (eval $ac_try) 2>&5 |
| 19203 | ac_status=$? |
| 19204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19205 | (exit $ac_status); }; } && |
| 19206 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19208 | (eval $ac_try) 2>&5 |
| 19209 | ac_status=$? |
| 19210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19211 | (exit $ac_status); }; }; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19212 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19213 | ac_cv_c_bigendian=yes |
| 19214 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19215 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19216 | if test "$ac_cv_c_bigendian" = unknown; then |
| 19217 | ac_cv_c_bigendian=no |
| 19218 | else |
| 19219 | # finding both strings is unlikely to happen, but who knows? |
| 19220 | ac_cv_c_bigendian=unknown |
| 19221 | fi |
| 19222 | fi |
| 19223 | else |
| 19224 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19225 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19226 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19227 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19228 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19229 | else |
| 19230 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19231 | /* confdefs.h. */ |
| 19232 | _ACEOF |
| 19233 | cat confdefs.h >>conftest.$ac_ext |
| 19234 | cat >>conftest.$ac_ext <<_ACEOF |
| 19235 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19236 | int |
| 19237 | main () |
| 19238 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19239 | /* Are we little or big endian? From Harbison&Steele. */ |
| 19240 | union |
| 19241 | { |
| 19242 | long l; |
| 19243 | char c[sizeof (long)]; |
| 19244 | } u; |
| 19245 | u.l = 1; |
| 19246 | exit (u.c[sizeof (long) - 1] == 1); |
| 19247 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19248 | _ACEOF |
| 19249 | rm -f conftest$ac_exeext |
| 19250 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19251 | (eval $ac_link) 2>&5 |
| 19252 | ac_status=$? |
| 19253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19254 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19256 | (eval $ac_try) 2>&5 |
| 19257 | ac_status=$? |
| 19258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19259 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19260 | ac_cv_c_bigendian=no |
| 19261 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19262 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19263 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19264 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19265 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19266 | ( exit $ac_status ) |
| 19267 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19268 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19269 | 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] | 19270 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19271 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19272 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19273 | fi |
| 19274 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 19275 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 19276 | case $ac_cv_c_bigendian in |
| 19277 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19278 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19279 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19280 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19281 | _ACEOF |
| 19282 | ;; |
| 19283 | no) |
| 19284 | ;; |
| 19285 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19286 | { { echo "$as_me:$LINENO: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19287 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19288 | echo "$as_me: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19289 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 19290 | { (exit 1); exit 1; }; } ;; |
| 19291 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19292 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19293 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19294 | # Check whether right shifting a negative integer extends the sign bit |
| 19295 | # 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] | 19296 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 19297 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 19298 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 19299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19300 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19301 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19302 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 19303 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19304 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19305 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19306 | /* confdefs.h. */ |
| 19307 | _ACEOF |
| 19308 | cat confdefs.h >>conftest.$ac_ext |
| 19309 | cat >>conftest.$ac_ext <<_ACEOF |
| 19310 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19311 | |
| 19312 | int main() |
| 19313 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19314 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19315 | } |
| 19316 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19317 | _ACEOF |
| 19318 | rm -f conftest$ac_exeext |
| 19319 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19320 | (eval $ac_link) 2>&5 |
| 19321 | ac_status=$? |
| 19322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19323 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19325 | (eval $ac_try) 2>&5 |
| 19326 | ac_status=$? |
| 19327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19328 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19329 | ac_cv_rshift_extends_sign=yes |
| 19330 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19331 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19332 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19333 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19334 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19335 | ( exit $ac_status ) |
| 19336 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19337 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19338 | 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] | 19339 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19340 | fi |
| 19341 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19342 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 19343 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19344 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19345 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19346 | |
| 19347 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19348 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19349 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19350 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19351 | fi |
| 19352 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19353 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19354 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 19355 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 19356 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 19357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19358 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19359 | |
| 19360 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19361 | /* confdefs.h. */ |
| 19362 | _ACEOF |
| 19363 | cat confdefs.h >>conftest.$ac_ext |
| 19364 | cat >>conftest.$ac_ext <<_ACEOF |
| 19365 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19366 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19367 | int |
| 19368 | main () |
| 19369 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19370 | |
| 19371 | FILE *f = fopen("/dev/null", "r"); |
| 19372 | flockfile(f); |
| 19373 | getc_unlocked(f); |
| 19374 | funlockfile(f); |
| 19375 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19376 | ; |
| 19377 | return 0; |
| 19378 | } |
| 19379 | _ACEOF |
| 19380 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19381 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19382 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19383 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19384 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19385 | rm -f conftest.er1 |
| 19386 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19388 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19389 | { ac_try='test -z "$ac_c_werror_flag" |
| 19390 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19392 | (eval $ac_try) 2>&5 |
| 19393 | ac_status=$? |
| 19394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19395 | (exit $ac_status); }; } && |
| 19396 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19398 | (eval $ac_try) 2>&5 |
| 19399 | ac_status=$? |
| 19400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19401 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19402 | ac_cv_have_getc_unlocked=yes |
| 19403 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19404 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19406 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19407 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19408 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19409 | rm -f conftest.err conftest.$ac_objext \ |
| 19410 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19411 | fi |
| 19412 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19413 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 19414 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19415 | if test "$ac_cv_have_getc_unlocked" = yes |
| 19416 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19417 | |
| 19418 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19419 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19420 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19421 | |
| 19422 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19423 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19424 | # check for readline 2.1 |
| 19425 | echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| 19426 | echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6 |
| 19427 | if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then |
| 19428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19429 | else |
| 19430 | ac_check_lib_save_LIBS=$LIBS |
| 19431 | LIBS="-lreadline -ltermcap $LIBS" |
| 19432 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19433 | /* confdefs.h. */ |
| 19434 | _ACEOF |
| 19435 | cat confdefs.h >>conftest.$ac_ext |
| 19436 | cat >>conftest.$ac_ext <<_ACEOF |
| 19437 | /* end confdefs.h. */ |
| 19438 | |
| 19439 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19440 | #ifdef __cplusplus |
| 19441 | extern "C" |
| 19442 | #endif |
| 19443 | /* We use char because int might match the return type of a gcc2 |
| 19444 | builtin and then its argument prototype would still apply. */ |
| 19445 | char rl_callback_handler_install (); |
| 19446 | int |
| 19447 | main () |
| 19448 | { |
| 19449 | rl_callback_handler_install (); |
| 19450 | ; |
| 19451 | return 0; |
| 19452 | } |
| 19453 | _ACEOF |
| 19454 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19455 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19456 | (eval $ac_link) 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19457 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19458 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19459 | rm -f conftest.er1 |
| 19460 | cat conftest.err >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19462 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19463 | { ac_try='test -z "$ac_c_werror_flag" |
| 19464 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19466 | (eval $ac_try) 2>&5 |
| 19467 | ac_status=$? |
| 19468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19469 | (exit $ac_status); }; } && |
| 19470 | { ac_try='test -s conftest$ac_exeext' |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19472 | (eval $ac_try) 2>&5 |
| 19473 | ac_status=$? |
| 19474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19475 | (exit $ac_status); }; }; then |
| 19476 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 19477 | else |
| 19478 | echo "$as_me: failed program was:" >&5 |
| 19479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19480 | |
| 19481 | ac_cv_lib_readline_rl_callback_handler_install=no |
| 19482 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19483 | rm -f conftest.err conftest.$ac_objext \ |
| 19484 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19485 | LIBS=$ac_check_lib_save_LIBS |
| 19486 | fi |
| 19487 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 19488 | echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6 |
| 19489 | if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then |
| 19490 | |
| 19491 | cat >>confdefs.h <<\_ACEOF |
| 19492 | #define HAVE_RL_CALLBACK 1 |
| 19493 | _ACEOF |
| 19494 | |
| 19495 | fi |
| 19496 | |
| 19497 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 19498 | # check for readline 2.2 |
| 19499 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19500 | /* confdefs.h. */ |
| 19501 | _ACEOF |
| 19502 | cat confdefs.h >>conftest.$ac_ext |
| 19503 | cat >>conftest.$ac_ext <<_ACEOF |
| 19504 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 19505 | #include <readline/readline.h> |
| 19506 | _ACEOF |
| 19507 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 19508 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 19509 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19510 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 19511 | rm -f conftest.er1 |
| 19512 | cat conftest.err >&5 |
| 19513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19514 | (exit $ac_status); } >/dev/null; then |
| 19515 | if test -s conftest.err; then |
| 19516 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19517 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 19518 | else |
| 19519 | ac_cpp_err= |
| 19520 | fi |
| 19521 | else |
| 19522 | ac_cpp_err=yes |
| 19523 | fi |
| 19524 | if test -z "$ac_cpp_err"; then |
| 19525 | have_readline=yes |
| 19526 | else |
| 19527 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19528 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19529 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 19530 | have_readline=no |
| 19531 | fi |
| 19532 | rm -f conftest.err conftest.$ac_ext |
| 19533 | if test $have_readline = yes |
| 19534 | then |
| 19535 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19536 | /* confdefs.h. */ |
| 19537 | _ACEOF |
| 19538 | cat confdefs.h >>conftest.$ac_ext |
| 19539 | cat >>conftest.$ac_ext <<_ACEOF |
| 19540 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 19541 | #include <readline/readline.h> |
| 19542 | |
| 19543 | _ACEOF |
| 19544 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19545 | $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] | 19546 | |
| 19547 | cat >>confdefs.h <<\_ACEOF |
| 19548 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 19549 | _ACEOF |
| 19550 | |
| 19551 | fi |
| 19552 | rm -f conftest* |
| 19553 | |
| 19554 | fi |
| 19555 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19556 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19557 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 19558 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 19559 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 19560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19561 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19562 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19563 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19564 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19565 | /* confdefs.h. */ |
| 19566 | _ACEOF |
| 19567 | cat confdefs.h >>conftest.$ac_ext |
| 19568 | cat >>conftest.$ac_ext <<_ACEOF |
| 19569 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19570 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19571 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19572 | #ifdef __cplusplus |
| 19573 | extern "C" |
| 19574 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19575 | /* 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] | 19576 | builtin and then its argument prototype would still apply. */ |
| 19577 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19578 | int |
| 19579 | main () |
| 19580 | { |
| 19581 | rl_pre_input_hook (); |
| 19582 | ; |
| 19583 | return 0; |
| 19584 | } |
| 19585 | _ACEOF |
| 19586 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19587 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19588 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19589 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19590 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19591 | rm -f conftest.er1 |
| 19592 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19594 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19595 | { ac_try='test -z "$ac_c_werror_flag" |
| 19596 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19598 | (eval $ac_try) 2>&5 |
| 19599 | ac_status=$? |
| 19600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19601 | (exit $ac_status); }; } && |
| 19602 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19604 | (eval $ac_try) 2>&5 |
| 19605 | ac_status=$? |
| 19606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19607 | (exit $ac_status); }; }; then |
| 19608 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19609 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19610 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19611 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19612 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19613 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19614 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19615 | rm -f conftest.err conftest.$ac_objext \ |
| 19616 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19617 | LIBS=$ac_check_lib_save_LIBS |
| 19618 | fi |
| 19619 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 19620 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 19621 | 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] | 19622 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19623 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19624 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19625 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19626 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19627 | fi |
| 19628 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19629 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19630 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19631 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 19632 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 19633 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 19634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19635 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19636 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19637 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19638 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19639 | /* confdefs.h. */ |
| 19640 | _ACEOF |
| 19641 | cat confdefs.h >>conftest.$ac_ext |
| 19642 | cat >>conftest.$ac_ext <<_ACEOF |
| 19643 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19644 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19645 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19646 | #ifdef __cplusplus |
| 19647 | extern "C" |
| 19648 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19649 | /* 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] | 19650 | builtin and then its argument prototype would still apply. */ |
| 19651 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19652 | int |
| 19653 | main () |
| 19654 | { |
| 19655 | rl_completion_matches (); |
| 19656 | ; |
| 19657 | return 0; |
| 19658 | } |
| 19659 | _ACEOF |
| 19660 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19661 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19662 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19663 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19664 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19665 | rm -f conftest.er1 |
| 19666 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19668 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19669 | { ac_try='test -z "$ac_c_werror_flag" |
| 19670 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19672 | (eval $ac_try) 2>&5 |
| 19673 | ac_status=$? |
| 19674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19675 | (exit $ac_status); }; } && |
| 19676 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19678 | (eval $ac_try) 2>&5 |
| 19679 | ac_status=$? |
| 19680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19681 | (exit $ac_status); }; }; then |
| 19682 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19683 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19684 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19685 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19686 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19687 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19688 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19689 | rm -f conftest.err conftest.$ac_objext \ |
| 19690 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19691 | LIBS=$ac_check_lib_save_LIBS |
| 19692 | fi |
| 19693 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 19694 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 19695 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19696 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19697 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19698 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19699 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19700 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19701 | fi |
| 19702 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19703 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19704 | # also in readline 4.2 |
| 19705 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19706 | /* confdefs.h. */ |
| 19707 | _ACEOF |
| 19708 | cat confdefs.h >>conftest.$ac_ext |
| 19709 | cat >>conftest.$ac_ext <<_ACEOF |
| 19710 | /* end confdefs.h. */ |
| 19711 | #include <readline/readline.h> |
| 19712 | _ACEOF |
| 19713 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 19714 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 19715 | ac_status=$? |
| 19716 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19717 | rm -f conftest.er1 |
| 19718 | cat conftest.err >&5 |
| 19719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19720 | (exit $ac_status); } >/dev/null; then |
| 19721 | if test -s conftest.err; then |
| 19722 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19723 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19724 | else |
| 19725 | ac_cpp_err= |
| 19726 | fi |
| 19727 | else |
| 19728 | ac_cpp_err=yes |
| 19729 | fi |
| 19730 | if test -z "$ac_cpp_err"; then |
| 19731 | have_readline=yes |
| 19732 | else |
| 19733 | echo "$as_me: failed program was:" >&5 |
| 19734 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19735 | |
| 19736 | have_readline=no |
| 19737 | fi |
| 19738 | rm -f conftest.err conftest.$ac_ext |
| 19739 | if test $have_readline = yes |
| 19740 | then |
| 19741 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19742 | /* confdefs.h. */ |
| 19743 | _ACEOF |
| 19744 | cat confdefs.h >>conftest.$ac_ext |
| 19745 | cat >>conftest.$ac_ext <<_ACEOF |
| 19746 | /* end confdefs.h. */ |
| 19747 | #include <readline/readline.h> |
| 19748 | |
| 19749 | _ACEOF |
| 19750 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 19751 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| 19752 | |
| 19753 | cat >>confdefs.h <<\_ACEOF |
| 19754 | #define HAVE_RL_CATCH_SIGNAL 1 |
| 19755 | _ACEOF |
| 19756 | |
| 19757 | fi |
| 19758 | rm -f conftest* |
| 19759 | |
| 19760 | fi |
| 19761 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19762 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 19763 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 19764 | if test "${ac_cv_broken_nice+set}" = set; then |
| 19765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19766 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19767 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19768 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 19769 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19770 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19771 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19772 | /* confdefs.h. */ |
| 19773 | _ACEOF |
| 19774 | cat confdefs.h >>conftest.$ac_ext |
| 19775 | cat >>conftest.$ac_ext <<_ACEOF |
| 19776 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19777 | |
| 19778 | int main() |
| 19779 | { |
| 19780 | int val1 = nice(1); |
| 19781 | if (val1 != -1 && val1 == nice(2)) |
| 19782 | exit(0); |
| 19783 | exit(1); |
| 19784 | } |
| 19785 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19786 | _ACEOF |
| 19787 | rm -f conftest$ac_exeext |
| 19788 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19789 | (eval $ac_link) 2>&5 |
| 19790 | ac_status=$? |
| 19791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19792 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19794 | (eval $ac_try) 2>&5 |
| 19795 | ac_status=$? |
| 19796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19797 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19798 | ac_cv_broken_nice=yes |
| 19799 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19800 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19801 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19803 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19804 | ( exit $ac_status ) |
| 19805 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19806 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19807 | 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] | 19808 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19809 | fi |
| 19810 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19811 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 19812 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19813 | if test "$ac_cv_broken_nice" = yes |
| 19814 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19815 | |
| 19816 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19817 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19818 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19819 | |
| 19820 | fi |
| 19821 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 19822 | echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 19823 | echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6 |
| 19824 | if test "$cross_compiling" = yes; then |
| 19825 | ac_cv_broken_poll=no |
| 19826 | else |
| 19827 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 19828 | /* confdefs.h. */ |
| 19829 | _ACEOF |
| 19830 | cat confdefs.h >>conftest.$ac_ext |
| 19831 | cat >>conftest.$ac_ext <<_ACEOF |
| 19832 | /* end confdefs.h. */ |
| 19833 | |
| 19834 | #include <poll.h> |
| 19835 | |
| 19836 | int main (void) |
| 19837 | { |
| 19838 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
| 19839 | |
| 19840 | close (42); |
| 19841 | |
| 19842 | int poll_test = poll (&poll_struct, 1, 0); |
| 19843 | |
| 19844 | if (poll_test < 0) |
| 19845 | { |
| 19846 | exit(0); |
| 19847 | } |
| 19848 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
| 19849 | { |
| 19850 | exit(0); |
| 19851 | } |
| 19852 | else |
| 19853 | { |
| 19854 | exit(1); |
| 19855 | } |
| 19856 | } |
| 19857 | |
| 19858 | _ACEOF |
| 19859 | rm -f conftest$ac_exeext |
| 19860 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19861 | (eval $ac_link) 2>&5 |
| 19862 | ac_status=$? |
| 19863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19864 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19866 | (eval $ac_try) 2>&5 |
| 19867 | ac_status=$? |
| 19868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19869 | (exit $ac_status); }; }; then |
| 19870 | ac_cv_broken_poll=yes |
| 19871 | else |
| 19872 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19873 | echo "$as_me: failed program was:" >&5 |
| 19874 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19875 | |
| 19876 | ( exit $ac_status ) |
| 19877 | ac_cv_broken_poll=no |
| 19878 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19879 | 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] | 19880 | fi |
| 19881 | echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 19882 | echo "${ECHO_T}$ac_cv_broken_poll" >&6 |
| 19883 | if test "$ac_cv_broken_poll" = yes |
| 19884 | then |
| 19885 | |
| 19886 | cat >>confdefs.h <<\_ACEOF |
| 19887 | #define HAVE_BROKEN_POLL 1 |
| 19888 | _ACEOF |
| 19889 | |
| 19890 | fi |
| 19891 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19892 | # 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] | 19893 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 19894 | # tzname[] |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19895 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 19896 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 19897 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 19898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19899 | else |
| 19900 | cat >conftest.$ac_ext <<_ACEOF |
| 19901 | /* confdefs.h. */ |
| 19902 | _ACEOF |
| 19903 | cat confdefs.h >>conftest.$ac_ext |
| 19904 | cat >>conftest.$ac_ext <<_ACEOF |
| 19905 | /* end confdefs.h. */ |
| 19906 | #include <sys/types.h> |
| 19907 | #include <$ac_cv_struct_tm> |
| 19908 | |
| 19909 | |
| 19910 | int |
| 19911 | main () |
| 19912 | { |
| 19913 | static struct tm ac_aggr; |
| 19914 | if (ac_aggr.tm_zone) |
| 19915 | return 0; |
| 19916 | ; |
| 19917 | return 0; |
| 19918 | } |
| 19919 | _ACEOF |
| 19920 | rm -f conftest.$ac_objext |
| 19921 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19922 | (eval $ac_compile) 2>conftest.er1 |
| 19923 | ac_status=$? |
| 19924 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19925 | rm -f conftest.er1 |
| 19926 | cat conftest.err >&5 |
| 19927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19928 | (exit $ac_status); } && |
| 19929 | { ac_try='test -z "$ac_c_werror_flag" |
| 19930 | || test ! -s conftest.err' |
| 19931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19932 | (eval $ac_try) 2>&5 |
| 19933 | ac_status=$? |
| 19934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19935 | (exit $ac_status); }; } && |
| 19936 | { ac_try='test -s conftest.$ac_objext' |
| 19937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19938 | (eval $ac_try) 2>&5 |
| 19939 | ac_status=$? |
| 19940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19941 | (exit $ac_status); }; }; then |
| 19942 | ac_cv_member_struct_tm_tm_zone=yes |
| 19943 | else |
| 19944 | echo "$as_me: failed program was:" >&5 |
| 19945 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19946 | |
| 19947 | cat >conftest.$ac_ext <<_ACEOF |
| 19948 | /* confdefs.h. */ |
| 19949 | _ACEOF |
| 19950 | cat confdefs.h >>conftest.$ac_ext |
| 19951 | cat >>conftest.$ac_ext <<_ACEOF |
| 19952 | /* end confdefs.h. */ |
| 19953 | #include <sys/types.h> |
| 19954 | #include <$ac_cv_struct_tm> |
| 19955 | |
| 19956 | |
| 19957 | int |
| 19958 | main () |
| 19959 | { |
| 19960 | static struct tm ac_aggr; |
| 19961 | if (sizeof ac_aggr.tm_zone) |
| 19962 | return 0; |
| 19963 | ; |
| 19964 | return 0; |
| 19965 | } |
| 19966 | _ACEOF |
| 19967 | rm -f conftest.$ac_objext |
| 19968 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19969 | (eval $ac_compile) 2>conftest.er1 |
| 19970 | ac_status=$? |
| 19971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19972 | rm -f conftest.er1 |
| 19973 | cat conftest.err >&5 |
| 19974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19975 | (exit $ac_status); } && |
| 19976 | { ac_try='test -z "$ac_c_werror_flag" |
| 19977 | || test ! -s conftest.err' |
| 19978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19979 | (eval $ac_try) 2>&5 |
| 19980 | ac_status=$? |
| 19981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19982 | (exit $ac_status); }; } && |
| 19983 | { ac_try='test -s conftest.$ac_objext' |
| 19984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19985 | (eval $ac_try) 2>&5 |
| 19986 | ac_status=$? |
| 19987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19988 | (exit $ac_status); }; }; then |
| 19989 | ac_cv_member_struct_tm_tm_zone=yes |
| 19990 | else |
| 19991 | echo "$as_me: failed program was:" >&5 |
| 19992 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19993 | |
| 19994 | ac_cv_member_struct_tm_tm_zone=no |
| 19995 | fi |
| 19996 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19997 | fi |
| 19998 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19999 | fi |
| 20000 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 20001 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 20002 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 20003 | |
| 20004 | cat >>confdefs.h <<_ACEOF |
| 20005 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 20006 | _ACEOF |
| 20007 | |
| 20008 | |
| 20009 | fi |
| 20010 | |
| 20011 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 20012 | |
| 20013 | cat >>confdefs.h <<\_ACEOF |
| 20014 | #define HAVE_TM_ZONE 1 |
| 20015 | _ACEOF |
| 20016 | |
| 20017 | else |
| 20018 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 20019 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 20020 | if test "${ac_cv_var_tzname+set}" = set; then |
| 20021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20022 | else |
| 20023 | cat >conftest.$ac_ext <<_ACEOF |
| 20024 | /* confdefs.h. */ |
| 20025 | _ACEOF |
| 20026 | cat confdefs.h >>conftest.$ac_ext |
| 20027 | cat >>conftest.$ac_ext <<_ACEOF |
| 20028 | /* end confdefs.h. */ |
| 20029 | #include <time.h> |
| 20030 | #ifndef tzname /* For SGI. */ |
| 20031 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
| 20032 | #endif |
| 20033 | |
| 20034 | int |
| 20035 | main () |
| 20036 | { |
| 20037 | atoi(*tzname); |
| 20038 | ; |
| 20039 | return 0; |
| 20040 | } |
| 20041 | _ACEOF |
| 20042 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20043 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20044 | (eval $ac_link) 2>conftest.er1 |
| 20045 | ac_status=$? |
| 20046 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20047 | rm -f conftest.er1 |
| 20048 | cat conftest.err >&5 |
| 20049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20050 | (exit $ac_status); } && |
| 20051 | { ac_try='test -z "$ac_c_werror_flag" |
| 20052 | || test ! -s conftest.err' |
| 20053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20054 | (eval $ac_try) 2>&5 |
| 20055 | ac_status=$? |
| 20056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20057 | (exit $ac_status); }; } && |
| 20058 | { ac_try='test -s conftest$ac_exeext' |
| 20059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20060 | (eval $ac_try) 2>&5 |
| 20061 | ac_status=$? |
| 20062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20063 | (exit $ac_status); }; }; then |
| 20064 | ac_cv_var_tzname=yes |
| 20065 | else |
| 20066 | echo "$as_me: failed program was:" >&5 |
| 20067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20068 | |
| 20069 | ac_cv_var_tzname=no |
| 20070 | fi |
| 20071 | rm -f conftest.err conftest.$ac_objext \ |
| 20072 | conftest$ac_exeext conftest.$ac_ext |
| 20073 | fi |
| 20074 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 20075 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
| 20076 | if test $ac_cv_var_tzname = yes; then |
| 20077 | |
| 20078 | cat >>confdefs.h <<\_ACEOF |
| 20079 | #define HAVE_TZNAME 1 |
| 20080 | _ACEOF |
| 20081 | |
| 20082 | fi |
| 20083 | fi |
| 20084 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 20085 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 20086 | # check tzset(3) exists and works like we expect it to |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20087 | echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 20088 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6 |
| 20089 | if test "${ac_cv_working_tzset+set}" = set; then |
| 20090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20091 | else |
| 20092 | |
| 20093 | if test "$cross_compiling" = yes; then |
| 20094 | ac_cv_working_tzset=no |
| 20095 | else |
| 20096 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20097 | /* confdefs.h. */ |
| 20098 | _ACEOF |
| 20099 | cat confdefs.h >>conftest.$ac_ext |
| 20100 | cat >>conftest.$ac_ext <<_ACEOF |
| 20101 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20102 | |
| 20103 | #include <stdlib.h> |
| 20104 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20105 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20106 | |
| 20107 | #if HAVE_TZNAME |
| 20108 | extern char *tzname[]; |
| 20109 | #endif |
| 20110 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20111 | int main() |
| 20112 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20113 | /* Note that we need to ensure that not only does tzset(3) |
| 20114 | do 'something' with localtime, but it works as documented |
| 20115 | 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] | 20116 | This includes making sure that tzname is set properly if |
| 20117 | tm->tm_zone does not exist since it is the alternative way |
| 20118 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20119 | |
| 20120 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 20121 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20122 | */ |
| 20123 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 20124 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20125 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 20126 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 20127 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20128 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20129 | if (localtime(&groundhogday)->tm_hour != 0) |
| 20130 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20131 | #if HAVE_TZNAME |
| 20132 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 20133 | if (strcmp(tzname[0], "UTC") || |
| 20134 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 20135 | exit(1); |
| 20136 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20137 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 20138 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20139 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20140 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20141 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20142 | #if HAVE_TZNAME |
| 20143 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 20144 | exit(1); |
| 20145 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20146 | |
| 20147 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 20148 | tzset(); |
| 20149 | if (localtime(&groundhogday)->tm_hour != 11) |
| 20150 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20151 | #if HAVE_TZNAME |
| 20152 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 20153 | exit(1); |
| 20154 | #endif |
| 20155 | |
| 20156 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20157 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 20158 | exit(1); |
| 20159 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 20160 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20161 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20162 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20163 | exit(0); |
| 20164 | } |
| 20165 | |
| 20166 | _ACEOF |
| 20167 | rm -f conftest$ac_exeext |
| 20168 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20169 | (eval $ac_link) 2>&5 |
| 20170 | ac_status=$? |
| 20171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20172 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20174 | (eval $ac_try) 2>&5 |
| 20175 | ac_status=$? |
| 20176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20177 | (exit $ac_status); }; }; then |
| 20178 | ac_cv_working_tzset=yes |
| 20179 | else |
| 20180 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20181 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20183 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20184 | ( exit $ac_status ) |
| 20185 | ac_cv_working_tzset=no |
| 20186 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20187 | 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] | 20188 | fi |
| 20189 | fi |
| 20190 | |
| 20191 | echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 20192 | echo "${ECHO_T}$ac_cv_working_tzset" >&6 |
| 20193 | if test "$ac_cv_working_tzset" = yes |
| 20194 | then |
| 20195 | |
| 20196 | cat >>confdefs.h <<\_ACEOF |
| 20197 | #define HAVE_WORKING_TZSET 1 |
| 20198 | _ACEOF |
| 20199 | |
| 20200 | fi |
| 20201 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20202 | # Look for subsecond timestamps in struct stat |
| 20203 | echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 20204 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6 |
| 20205 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 20206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20207 | else |
| 20208 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20209 | /* confdefs.h. */ |
| 20210 | _ACEOF |
| 20211 | cat confdefs.h >>conftest.$ac_ext |
| 20212 | cat >>conftest.$ac_ext <<_ACEOF |
| 20213 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20214 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20215 | int |
| 20216 | main () |
| 20217 | { |
| 20218 | |
| 20219 | struct stat st; |
| 20220 | st.st_mtim.tv_nsec = 1; |
| 20221 | |
| 20222 | ; |
| 20223 | return 0; |
| 20224 | } |
| 20225 | _ACEOF |
| 20226 | rm -f conftest.$ac_objext |
| 20227 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20228 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20229 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20230 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20231 | rm -f conftest.er1 |
| 20232 | cat conftest.err >&5 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20234 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20235 | { ac_try='test -z "$ac_c_werror_flag" |
| 20236 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20238 | (eval $ac_try) 2>&5 |
| 20239 | ac_status=$? |
| 20240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20241 | (exit $ac_status); }; } && |
| 20242 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20244 | (eval $ac_try) 2>&5 |
| 20245 | ac_status=$? |
| 20246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20247 | (exit $ac_status); }; }; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 20248 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20249 | else |
| 20250 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20252 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20253 | ac_cv_stat_tv_nsec=no |
| 20254 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20255 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20256 | fi |
| 20257 | |
| 20258 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 20259 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6 |
| 20260 | if test "$ac_cv_stat_tv_nsec" = yes |
| 20261 | then |
| 20262 | |
| 20263 | cat >>confdefs.h <<\_ACEOF |
| 20264 | #define HAVE_STAT_TV_NSEC 1 |
| 20265 | _ACEOF |
| 20266 | |
| 20267 | fi |
| 20268 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20269 | # 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] | 20270 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 20271 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 20272 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 20273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20274 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20275 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20276 | /* confdefs.h. */ |
| 20277 | _ACEOF |
| 20278 | cat confdefs.h >>conftest.$ac_ext |
| 20279 | cat >>conftest.$ac_ext <<_ACEOF |
| 20280 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20281 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20282 | int |
| 20283 | main () |
| 20284 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20285 | |
| 20286 | int rtn; |
| 20287 | rtn = mvwdelch(0,0,0); |
| 20288 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20289 | ; |
| 20290 | return 0; |
| 20291 | } |
| 20292 | _ACEOF |
| 20293 | rm -f conftest.$ac_objext |
| 20294 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20295 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20296 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20297 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20298 | rm -f conftest.er1 |
| 20299 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20301 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20302 | { ac_try='test -z "$ac_c_werror_flag" |
| 20303 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20305 | (eval $ac_try) 2>&5 |
| 20306 | ac_status=$? |
| 20307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20308 | (exit $ac_status); }; } && |
| 20309 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20311 | (eval $ac_try) 2>&5 |
| 20312 | ac_status=$? |
| 20313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20314 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20315 | ac_cv_mvwdelch_is_expression=yes |
| 20316 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20317 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20318 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20319 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20320 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20321 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20322 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20323 | fi |
| 20324 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20325 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 20326 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20327 | |
| 20328 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 20329 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20330 | |
| 20331 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20332 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20333 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20334 | |
| 20335 | fi |
| 20336 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20337 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 20338 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 20339 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 20340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20341 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20342 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20343 | /* confdefs.h. */ |
| 20344 | _ACEOF |
| 20345 | cat confdefs.h >>conftest.$ac_ext |
| 20346 | cat >>conftest.$ac_ext <<_ACEOF |
| 20347 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20348 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20349 | int |
| 20350 | main () |
| 20351 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20352 | |
| 20353 | WINDOW *w; |
| 20354 | w->_flags = 0; |
| 20355 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20356 | ; |
| 20357 | return 0; |
| 20358 | } |
| 20359 | _ACEOF |
| 20360 | rm -f conftest.$ac_objext |
| 20361 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20362 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20363 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20364 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20365 | rm -f conftest.er1 |
| 20366 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20368 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20369 | { ac_try='test -z "$ac_c_werror_flag" |
| 20370 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20372 | (eval $ac_try) 2>&5 |
| 20373 | ac_status=$? |
| 20374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20375 | (exit $ac_status); }; } && |
| 20376 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20378 | (eval $ac_try) 2>&5 |
| 20379 | ac_status=$? |
| 20380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20381 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20382 | ac_cv_window_has_flags=yes |
| 20383 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20384 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20385 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20386 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20387 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20388 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20389 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20390 | fi |
| 20391 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20392 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 20393 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20394 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20395 | |
| 20396 | if test "$ac_cv_window_has_flags" = yes |
| 20397 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20398 | |
| 20399 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20400 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20401 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20402 | |
| 20403 | fi |
| 20404 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 20405 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 20406 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
| 20407 | |
| 20408 | if test -e /dev/ptmx |
| 20409 | then |
| 20410 | echo "$as_me:$LINENO: result: yes" >&5 |
| 20411 | echo "${ECHO_T}yes" >&6 |
| 20412 | |
| 20413 | cat >>confdefs.h <<\_ACEOF |
| 20414 | #define HAVE_DEV_PTMX 1 |
| 20415 | _ACEOF |
| 20416 | |
| 20417 | else |
| 20418 | echo "$as_me:$LINENO: result: no" >&5 |
| 20419 | echo "${ECHO_T}no" >&6 |
| 20420 | fi |
| 20421 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 20422 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 20423 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
| 20424 | |
| 20425 | if test -e /dev/ptc |
| 20426 | then |
| 20427 | echo "$as_me:$LINENO: result: yes" >&5 |
| 20428 | echo "${ECHO_T}yes" >&6 |
| 20429 | |
| 20430 | cat >>confdefs.h <<\_ACEOF |
| 20431 | #define HAVE_DEV_PTC 1 |
| 20432 | _ACEOF |
| 20433 | |
| 20434 | else |
| 20435 | echo "$as_me:$LINENO: result: no" >&5 |
| 20436 | echo "${ECHO_T}no" >&6 |
| 20437 | fi |
| 20438 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20439 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 20440 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 20441 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 20442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 20443 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20444 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20445 | /* confdefs.h. */ |
| 20446 | _ACEOF |
| 20447 | cat confdefs.h >>conftest.$ac_ext |
| 20448 | cat >>conftest.$ac_ext <<_ACEOF |
| 20449 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 20450 | |
| 20451 | #ifdef HAVE_SYS_TYPES_H |
| 20452 | #include <sys/types.h> |
| 20453 | #endif |
| 20454 | #ifdef HAVE_SYS_SOCKET_H |
| 20455 | #include <sys/socket.h> |
| 20456 | #endif |
| 20457 | |
| 20458 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20459 | int |
| 20460 | main () |
| 20461 | { |
| 20462 | if ((socklen_t *) 0) |
| 20463 | return 0; |
| 20464 | if (sizeof (socklen_t)) |
| 20465 | return 0; |
| 20466 | ; |
| 20467 | return 0; |
| 20468 | } |
| 20469 | _ACEOF |
| 20470 | rm -f conftest.$ac_objext |
| 20471 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20472 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20473 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20474 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20475 | rm -f conftest.er1 |
| 20476 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20478 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20479 | { ac_try='test -z "$ac_c_werror_flag" |
| 20480 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20482 | (eval $ac_try) 2>&5 |
| 20483 | ac_status=$? |
| 20484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20485 | (exit $ac_status); }; } && |
| 20486 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20488 | (eval $ac_try) 2>&5 |
| 20489 | ac_status=$? |
| 20490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20491 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 20492 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 20493 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20494 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20495 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20496 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20497 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 20498 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20499 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20500 | fi |
| 20501 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 20502 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 20503 | if test $ac_cv_type_socklen_t = yes; then |
| 20504 | : |
| 20505 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 20506 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 20507 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 20508 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20509 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 20510 | |
| 20511 | fi |
| 20512 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20513 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20514 | |
| 20515 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 20516 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 20517 | do |
| 20518 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 20519 | done |
| 20520 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20521 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 20522 | SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20523 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 20524 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 20525 | for dir in $SRCDIRS; do |
| 20526 | if test ! -d $dir; then |
| 20527 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 20528 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 20529 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20530 | echo "$as_me:$LINENO: result: done" >&5 |
| 20531 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 20532 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20533 | # generate output files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20534 | 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] | 20535 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20536 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20537 | # This file is a shell script that caches the results of configure |
| 20538 | # 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] | 20539 | # scripts and configure runs, see configure's option --config-cache. |
| 20540 | # It is not useful on other systems. If it contains results you don't |
| 20541 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20542 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20543 | # config.status only pays attention to the cache file if you give it |
| 20544 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20545 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20546 | # `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] | 20547 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 20548 | # following values. |
| 20549 | |
| 20550 | _ACEOF |
| 20551 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 20552 | # The following way of writing the cache mishandles newlines in values, |
| 20553 | # but we know of no workaround that is simple, portable, and efficient. |
| 20554 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20555 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 20556 | # 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] | 20557 | { |
| 20558 | (set) 2>&1 | |
| 20559 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 20560 | *ac_space=\ *) |
| 20561 | # `set' does not quote correctly, so add quotes (double-quote |
| 20562 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 20563 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20564 | "s/'/'\\\\''/g; |
| 20565 | 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] | 20566 | ;; |
| 20567 | *) |
| 20568 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 20569 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20570 | "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] | 20571 | ;; |
| 20572 | esac; |
| 20573 | } | |
| 20574 | sed ' |
| 20575 | t clear |
| 20576 | : clear |
| 20577 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 20578 | t end |
| 20579 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 20580 | : end' >>confcache |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20581 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20582 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20583 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 20584 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20585 | else |
| 20586 | echo "not updating unwritable cache $cache_file" |
| 20587 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20588 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20589 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 20590 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20591 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 20592 | # Let make expand exec_prefix. |
| 20593 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 20594 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20595 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 20596 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 20597 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 20598 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20599 | if test "x$srcdir" = x.; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20600 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20601 | s/:*\$(srcdir):*/:/; |
| 20602 | s/:*\${srcdir}:*/:/; |
| 20603 | s/:*@srcdir@:*/:/; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20604 | s/^\([^=]*=[ ]*\):*/\1/; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20605 | s/:*$//; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20606 | s/^[^=]*=[ ]*$//; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20607 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20608 | fi |
| 20609 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20610 | DEFS=-DHAVE_CONFIG_H |
| 20611 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20612 | ac_libobjs= |
| 20613 | ac_ltlibobjs= |
| 20614 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 20615 | # 1. Remove the extension, and $U if already installed. |
| 20616 | ac_i=`echo "$ac_i" | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20617 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20618 | # 2. Add them. |
| 20619 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 20620 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 20621 | done |
| 20622 | LIBOBJS=$ac_libobjs |
| 20623 | |
| 20624 | LTLIBOBJS=$ac_ltlibobjs |
| 20625 | |
| 20626 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20627 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20628 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20629 | ac_clean_files_save=$ac_clean_files |
| 20630 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 20631 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 20632 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 20633 | cat >$CONFIG_STATUS <<_ACEOF |
| 20634 | #! $SHELL |
| 20635 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20636 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20637 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20638 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20639 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20640 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20641 | ac_cs_recheck=false |
| 20642 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20643 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 20644 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20645 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20646 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20647 | ## --------------------- ## |
| 20648 | ## M4sh Initialization. ## |
| 20649 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20650 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20651 | # Be Bourne compatible |
| 20652 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 20653 | emulate sh |
| 20654 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20655 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 20656 | # is contrary to our usage. Disable this feature. |
| 20657 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20658 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 20659 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20660 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20661 | DUALCASE=1; export DUALCASE # for MKS sh |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20662 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20663 | # Support unset when possible. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20664 | 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] | 20665 | as_unset=unset |
| 20666 | else |
| 20667 | as_unset=false |
| 20668 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20669 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20670 | |
| 20671 | # Work around bugs in pre-3.0 UWIN ksh. |
| 20672 | $as_unset ENV MAIL MAILPATH |
| 20673 | PS1='$ ' |
| 20674 | PS2='> ' |
| 20675 | PS4='+ ' |
| 20676 | |
| 20677 | # NLS nuisances. |
| 20678 | for as_var in \ |
| 20679 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 20680 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 20681 | LC_TELEPHONE LC_TIME |
| 20682 | do |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20683 | 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] | 20684 | eval $as_var=C; export $as_var |
| 20685 | else |
| 20686 | $as_unset $as_var |
| 20687 | fi |
| 20688 | done |
| 20689 | |
| 20690 | # Required to use basename. |
| 20691 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 20692 | as_expr=expr |
| 20693 | else |
| 20694 | as_expr=false |
| 20695 | fi |
| 20696 | |
| 20697 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 20698 | as_basename=basename |
| 20699 | else |
| 20700 | as_basename=false |
| 20701 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20702 | |
| 20703 | |
| 20704 | # Name of the executable. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20705 | as_me=`$as_basename "$0" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20706 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 20707 | X"$0" : 'X\(//\)$' \| \ |
| 20708 | X"$0" : 'X\(/\)$' \| \ |
| 20709 | . : '\(.\)' 2>/dev/null || |
| 20710 | echo X/"$0" | |
| 20711 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 20712 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 20713 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 20714 | s/.*/./; q'` |
| 20715 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20716 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20717 | # PATH needs CR, and LINENO needs CR and PATH. |
| 20718 | # Avoid depending upon Character Ranges. |
| 20719 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 20720 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 20721 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 20722 | as_cr_digits='0123456789' |
| 20723 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 20724 | |
| 20725 | # The user is always right. |
| 20726 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20727 | echo "#! /bin/sh" >conf$$.sh |
| 20728 | echo "exit 0" >>conf$$.sh |
| 20729 | chmod +x conf$$.sh |
| 20730 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20731 | PATH_SEPARATOR=';' |
| 20732 | else |
| 20733 | PATH_SEPARATOR=: |
| 20734 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20735 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20736 | fi |
| 20737 | |
| 20738 | |
| 20739 | as_lineno_1=$LINENO |
| 20740 | as_lineno_2=$LINENO |
| 20741 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 20742 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 20743 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 20744 | # Find who we are. Look in the path if we contain no path at all |
| 20745 | # relative or not. |
| 20746 | case $0 in |
| 20747 | *[\\/]* ) as_myself=$0 ;; |
| 20748 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20749 | for as_dir in $PATH |
| 20750 | do |
| 20751 | IFS=$as_save_IFS |
| 20752 | test -z "$as_dir" && as_dir=. |
| 20753 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 20754 | done |
| 20755 | |
| 20756 | ;; |
| 20757 | esac |
| 20758 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 20759 | # in which case we are not to be found in the path. |
| 20760 | if test "x$as_myself" = x; then |
| 20761 | as_myself=$0 |
| 20762 | fi |
| 20763 | if test ! -f "$as_myself"; then |
| 20764 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 20765 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 20766 | { (exit 1); exit 1; }; } |
| 20767 | fi |
| 20768 | case $CONFIG_SHELL in |
| 20769 | '') |
| 20770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20771 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 20772 | do |
| 20773 | IFS=$as_save_IFS |
| 20774 | test -z "$as_dir" && as_dir=. |
| 20775 | for as_base in sh bash ksh sh5; do |
| 20776 | case $as_dir in |
| 20777 | /*) |
| 20778 | if ("$as_dir/$as_base" -c ' |
| 20779 | as_lineno_1=$LINENO |
| 20780 | as_lineno_2=$LINENO |
| 20781 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 20782 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 20783 | 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] | 20784 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 20785 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20786 | CONFIG_SHELL=$as_dir/$as_base |
| 20787 | export CONFIG_SHELL |
| 20788 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 20789 | fi;; |
| 20790 | esac |
| 20791 | done |
| 20792 | done |
| 20793 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20794 | esac |
| 20795 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20796 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 20797 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 20798 | # line-number line before each line; the second 'sed' does the real |
| 20799 | # work. The second script uses 'N' to pair each line-number line |
| 20800 | # with the numbered line, and appends trailing '-' during |
| 20801 | # substitution so that $LINENO is not a special case at line end. |
| 20802 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 20803 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 20804 | sed '=' <$as_myself | |
| 20805 | sed ' |
| 20806 | N |
| 20807 | s,$,-, |
| 20808 | : loop |
| 20809 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 20810 | t loop |
| 20811 | s,-$,, |
| 20812 | s,^['$as_cr_digits']*\n,, |
| 20813 | ' >$as_me.lineno && |
| 20814 | chmod +x $as_me.lineno || |
| 20815 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 20816 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 20817 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20818 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20819 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 20820 | # (the dirname of $[0] is not the place where we might find the |
| 20821 | # original and so on. Autoconf is especially sensible to this). |
| 20822 | . ./$as_me.lineno |
| 20823 | # Exit status is that of the last command. |
| 20824 | exit |
| 20825 | } |
| 20826 | |
| 20827 | |
| 20828 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 20829 | *c*,-n*) ECHO_N= ECHO_C=' |
| 20830 | ' ECHO_T=' ' ;; |
| 20831 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 20832 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 20833 | esac |
| 20834 | |
| 20835 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 20836 | as_expr=expr |
| 20837 | else |
| 20838 | as_expr=false |
| 20839 | fi |
| 20840 | |
| 20841 | rm -f conf$$ conf$$.exe conf$$.file |
| 20842 | echo >conf$$.file |
| 20843 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 20844 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 20845 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 20846 | if test -f conf$$.exe; then |
| 20847 | # Don't use ln at all; we don't have any links |
| 20848 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20849 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20850 | as_ln_s='ln -s' |
| 20851 | fi |
| 20852 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 20853 | as_ln_s=ln |
| 20854 | else |
| 20855 | as_ln_s='cp -p' |
| 20856 | fi |
| 20857 | rm -f conf$$ conf$$.exe conf$$.file |
| 20858 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20859 | if mkdir -p . 2>/dev/null; then |
| 20860 | as_mkdir_p=: |
| 20861 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20862 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20863 | as_mkdir_p=false |
| 20864 | fi |
| 20865 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20866 | as_executable_p="test -f" |
| 20867 | |
| 20868 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20869 | 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] | 20870 | |
| 20871 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20872 | 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] | 20873 | |
| 20874 | |
| 20875 | # IFS |
| 20876 | # We need space, tab and new line, in precisely that order. |
| 20877 | as_nl=' |
| 20878 | ' |
| 20879 | IFS=" $as_nl" |
| 20880 | |
| 20881 | # CDPATH. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20882 | $as_unset CDPATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20883 | |
| 20884 | exec 6>&1 |
| 20885 | |
| 20886 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 20887 | # report actual input values of CONFIG_FILES etc. instead of their |
| 20888 | # values after options handling. Logging --version etc. is OK. |
| 20889 | exec 5>>config.log |
| 20890 | { |
| 20891 | echo |
| 20892 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 20893 | ## Running $as_me. ## |
| 20894 | _ASBOX |
| 20895 | } >&5 |
| 20896 | cat >&5 <<_CSEOF |
| 20897 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 20898 | This file was extended by python $as_me 2.5, which was |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20899 | generated by GNU Autoconf 2.59. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20900 | |
| 20901 | CONFIG_FILES = $CONFIG_FILES |
| 20902 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 20903 | CONFIG_LINKS = $CONFIG_LINKS |
| 20904 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 20905 | $ $0 $@ |
| 20906 | |
| 20907 | _CSEOF |
| 20908 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 20909 | echo >&5 |
| 20910 | _ACEOF |
| 20911 | |
| 20912 | # Files that config.status was made for. |
| 20913 | if test -n "$ac_config_files"; then |
| 20914 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 20915 | fi |
| 20916 | |
| 20917 | if test -n "$ac_config_headers"; then |
| 20918 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 20919 | fi |
| 20920 | |
| 20921 | if test -n "$ac_config_links"; then |
| 20922 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 20923 | fi |
| 20924 | |
| 20925 | if test -n "$ac_config_commands"; then |
| 20926 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 20927 | fi |
| 20928 | |
| 20929 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20930 | |
| 20931 | ac_cs_usage="\ |
| 20932 | \`$as_me' instantiates files from templates according to the |
| 20933 | current configuration. |
| 20934 | |
| 20935 | Usage: $0 [OPTIONS] [FILE]... |
| 20936 | |
| 20937 | -h, --help print this help, then exit |
| 20938 | -V, --version print version number, then exit |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20939 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20940 | -d, --debug don't remove temporary files |
| 20941 | --recheck update $as_me by reconfiguring in the same conditions |
| 20942 | --file=FILE[:TEMPLATE] |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20943 | instantiate the configuration file FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20944 | --header=FILE[:TEMPLATE] |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20945 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20946 | |
| 20947 | Configuration files: |
| 20948 | $config_files |
| 20949 | |
| 20950 | Configuration headers: |
| 20951 | $config_headers |
| 20952 | |
| 20953 | Report bugs to <bug-autoconf@gnu.org>." |
| 20954 | _ACEOF |
| 20955 | |
| 20956 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20957 | ac_cs_version="\\ |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 20958 | python config.status 2.5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20959 | configured by $0, generated by GNU Autoconf 2.59, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20960 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 20961 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20962 | Copyright (C) 2003 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20963 | This config.status script is free software; the Free Software Foundation |
| 20964 | gives unlimited permission to copy, distribute and modify it." |
| 20965 | srcdir=$srcdir |
| 20966 | INSTALL="$INSTALL" |
| 20967 | _ACEOF |
| 20968 | |
| 20969 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20970 | # If no file are specified by the user, then we need to provide default |
| 20971 | # value. By we need to know if files were specified by the user. |
| 20972 | ac_need_defaults=: |
| 20973 | while test $# != 0 |
| 20974 | do |
| 20975 | case $1 in |
| 20976 | --*=*) |
| 20977 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 20978 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20979 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20980 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20981 | -*) |
| 20982 | ac_option=$1 |
| 20983 | ac_optarg=$2 |
| 20984 | ac_shift=shift |
| 20985 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20986 | *) # This is not an option, so the user has probably given explicit |
| 20987 | # arguments. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20988 | ac_option=$1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20989 | ac_need_defaults=false;; |
| 20990 | esac |
| 20991 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20992 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20993 | # Handling of the options. |
| 20994 | _ACEOF |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 20995 | cat >>$CONFIG_STATUS <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20996 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 20997 | ac_cs_recheck=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20998 | --version | --vers* | -V ) |
| 20999 | echo "$ac_cs_version"; exit 0 ;; |
| 21000 | --he | --h) |
| 21001 | # Conflict between --help and --header |
| 21002 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 21003 | Try \`$0 --help' for more information." >&5 |
| 21004 | echo "$as_me: error: ambiguous option: $1 |
| 21005 | Try \`$0 --help' for more information." >&2;} |
| 21006 | { (exit 1); exit 1; }; };; |
| 21007 | --help | --hel | -h ) |
| 21008 | echo "$ac_cs_usage"; exit 0 ;; |
| 21009 | --debug | --d* | -d ) |
| 21010 | debug=: ;; |
| 21011 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21012 | $ac_shift |
| 21013 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21014 | ac_need_defaults=false;; |
| 21015 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21016 | $ac_shift |
| 21017 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21018 | ac_need_defaults=false;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21019 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 21020 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 21021 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21022 | |
| 21023 | # This is an error. |
| 21024 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 21025 | Try \`$0 --help' for more information." >&5 |
| 21026 | echo "$as_me: error: unrecognized option: $1 |
| 21027 | Try \`$0 --help' for more information." >&2;} |
| 21028 | { (exit 1); exit 1; }; } ;; |
| 21029 | |
| 21030 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 21031 | |
| 21032 | esac |
| 21033 | shift |
| 21034 | done |
| 21035 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21036 | ac_configure_extra_args= |
| 21037 | |
| 21038 | if $ac_cs_silent; then |
| 21039 | exec 6>/dev/null |
| 21040 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 21041 | fi |
| 21042 | |
| 21043 | _ACEOF |
| 21044 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21045 | if \$ac_cs_recheck; then |
| 21046 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 21047 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 21048 | fi |
| 21049 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21050 | _ACEOF |
| 21051 | |
| 21052 | |
| 21053 | |
| 21054 | |
| 21055 | |
| 21056 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21057 | for ac_config_target in $ac_config_targets |
| 21058 | do |
| 21059 | case "$ac_config_target" in |
| 21060 | # Handling of arguments. |
| 21061 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 21062 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 21063 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 21064 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 21065 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 21066 | { (exit 1); exit 1; }; };; |
| 21067 | esac |
| 21068 | done |
| 21069 | |
| 21070 | # If the user did not use the arguments to specify the items to instantiate, |
| 21071 | # then the envvar interface is used. Set only those that are not. |
| 21072 | # We use the long form for the default assignment because of an extremely |
| 21073 | # bizarre bug on SunOS 4.1.3. |
| 21074 | if $ac_need_defaults; then |
| 21075 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 21076 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 21077 | fi |
| 21078 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21079 | # Have a temporary directory for convenience. Make it in the build tree |
| 21080 | # simply because there is no reason to put it here, and in addition, |
| 21081 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21082 | # Create a temporary directory, and hook for its removal unless debugging. |
| 21083 | $debug || |
| 21084 | { |
| 21085 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 21086 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 21087 | } |
| 21088 | |
| 21089 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21090 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21091 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21092 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21093 | test -n "$tmp" && test -d "$tmp" |
| 21094 | } || |
| 21095 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21096 | tmp=./confstat$$-$RANDOM |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21097 | (umask 077 && mkdir $tmp) |
| 21098 | } || |
| 21099 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21100 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21101 | { (exit 1); exit 1; } |
| 21102 | } |
| 21103 | |
| 21104 | _ACEOF |
| 21105 | |
| 21106 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21107 | |
| 21108 | # |
| 21109 | # CONFIG_FILES section. |
| 21110 | # |
| 21111 | |
| 21112 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 21113 | # This happens for instance when ./config.status config.h |
| 21114 | if test -n "\$CONFIG_FILES"; then |
| 21115 | # Protect against being on the right side of a sed subst in config.status. |
| 21116 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 21117 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 21118 | s,@SHELL@,$SHELL,;t t |
| 21119 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 21120 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 21121 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 21122 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 21123 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 21124 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 21125 | s,@exec_prefix@,$exec_prefix,;t t |
| 21126 | s,@prefix@,$prefix,;t t |
| 21127 | s,@program_transform_name@,$program_transform_name,;t t |
| 21128 | s,@bindir@,$bindir,;t t |
| 21129 | s,@sbindir@,$sbindir,;t t |
| 21130 | s,@libexecdir@,$libexecdir,;t t |
| 21131 | s,@datadir@,$datadir,;t t |
| 21132 | s,@sysconfdir@,$sysconfdir,;t t |
| 21133 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 21134 | s,@localstatedir@,$localstatedir,;t t |
| 21135 | s,@libdir@,$libdir,;t t |
| 21136 | s,@includedir@,$includedir,;t t |
| 21137 | s,@oldincludedir@,$oldincludedir,;t t |
| 21138 | s,@infodir@,$infodir,;t t |
| 21139 | s,@mandir@,$mandir,;t t |
| 21140 | s,@build_alias@,$build_alias,;t t |
| 21141 | s,@host_alias@,$host_alias,;t t |
| 21142 | s,@target_alias@,$target_alias,;t t |
| 21143 | s,@DEFS@,$DEFS,;t t |
| 21144 | s,@ECHO_C@,$ECHO_C,;t t |
| 21145 | s,@ECHO_N@,$ECHO_N,;t t |
| 21146 | s,@ECHO_T@,$ECHO_T,;t t |
| 21147 | s,@LIBS@,$LIBS,;t t |
| 21148 | s,@VERSION@,$VERSION,;t t |
| 21149 | s,@SOVERSION@,$SOVERSION,;t t |
| 21150 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 21151 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 21152 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 21153 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 21154 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 21155 | s,@MACHDEP@,$MACHDEP,;t t |
| 21156 | s,@SGI_ABI@,$SGI_ABI,;t t |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 21157 | s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 21158 | s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 21159 | s,@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@,$CONFIGURE_MACOSX_DEPLOYMENT_TARGET,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21160 | s,@CXX@,$CXX,;t t |
| 21161 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 21162 | s,@EXEEXT@,$EXEEXT,;t t |
| 21163 | s,@CC@,$CC,;t t |
| 21164 | s,@CFLAGS@,$CFLAGS,;t t |
| 21165 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 21166 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 21167 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 21168 | s,@OBJEXT@,$OBJEXT,;t t |
| 21169 | s,@CPP@,$CPP,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21170 | s,@EGREP@,$EGREP,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21171 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 21172 | s,@LIBRARY@,$LIBRARY,;t t |
| 21173 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 21174 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 21175 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 21176 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 21177 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 21178 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 21179 | s,@LINKCC@,$LINKCC,;t t |
| 21180 | s,@RANLIB@,$RANLIB,;t t |
| 21181 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 21182 | s,@AR@,$AR,;t t |
| 21183 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 21184 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 21185 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 21186 | s,@LN@,$LN,;t t |
| 21187 | s,@OPT@,$OPT,;t t |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 21188 | s,@BASECFLAGS@,$BASECFLAGS,;t t |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 21189 | s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21190 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 21191 | s,@SO@,$SO,;t t |
| 21192 | s,@LDSHARED@,$LDSHARED,;t t |
| 21193 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 21194 | s,@CCSHARED@,$CCSHARED,;t t |
| 21195 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 21196 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 21197 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21198 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 21199 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 21200 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 21201 | s,@LDLAST@,$LDLAST,;t t |
| 21202 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 21203 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 21204 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 21205 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 21206 | s,@TRUE@,$TRUE,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21207 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 21208 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 21209 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 21210 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 21211 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 21212 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 21213 | s,@LIBM@,$LIBM,;t t |
| 21214 | s,@LIBC@,$LIBC,;t t |
| 21215 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 21216 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 21217 | s,@SRCDIRS@,$SRCDIRS,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21218 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21219 | CEOF |
| 21220 | |
| 21221 | _ACEOF |
| 21222 | |
| 21223 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21224 | # Split the substitutions into bite-sized pieces for seds with |
| 21225 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 21226 | ac_max_sed_lines=48 |
| 21227 | ac_sed_frag=1 # Number of current file. |
| 21228 | ac_beg=1 # First line for current file. |
| 21229 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 21230 | ac_more_lines=: |
| 21231 | ac_sed_cmds= |
| 21232 | while $ac_more_lines; do |
| 21233 | if test $ac_beg -gt 1; then |
| 21234 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 21235 | else |
| 21236 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 21237 | fi |
| 21238 | if test ! -s $tmp/subs.frag; then |
| 21239 | ac_more_lines=false |
| 21240 | else |
| 21241 | # The purpose of the label and of the branching condition is to |
| 21242 | # speed up the sed processing (if there are no `@' at all, there |
| 21243 | # is no need to browse any of the substitutions). |
| 21244 | # These are the two extra sed commands mentioned above. |
| 21245 | (echo ':t |
| 21246 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 21247 | if test -z "$ac_sed_cmds"; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21248 | 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] | 21249 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21250 | 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] | 21251 | fi |
| 21252 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 21253 | ac_beg=$ac_end |
| 21254 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 21255 | fi |
| 21256 | done |
| 21257 | if test -z "$ac_sed_cmds"; then |
| 21258 | ac_sed_cmds=cat |
| 21259 | fi |
| 21260 | fi # test -n "$CONFIG_FILES" |
| 21261 | |
| 21262 | _ACEOF |
| 21263 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21264 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 21265 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 21266 | case $ac_file in |
| 21267 | - | *:- | *:-:* ) # input from stdin |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21268 | cat >$tmp/stdin |
| 21269 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 21270 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21271 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21272 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21273 | * ) ac_file_in=$ac_file.in ;; |
| 21274 | esac |
| 21275 | |
| 21276 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 21277 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 21278 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21279 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 21280 | X"$ac_file" : 'X\(//\)$' \| \ |
| 21281 | X"$ac_file" : 'X\(/\)' \| \ |
| 21282 | . : '\(.\)' 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21283 | echo X"$ac_file" | |
| 21284 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21285 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21286 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21287 | /^X\(\/\).*/{ s//\1/; q; } |
| 21288 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21289 | { if $as_mkdir_p; then |
| 21290 | mkdir -p "$ac_dir" |
| 21291 | else |
| 21292 | as_dir="$ac_dir" |
| 21293 | as_dirs= |
| 21294 | while test ! -d "$as_dir"; do |
| 21295 | as_dirs="$as_dir $as_dirs" |
| 21296 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 21297 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21298 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21299 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21300 | X"$as_dir" : 'X\(/\)' \| \ |
| 21301 | . : '\(.\)' 2>/dev/null || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21302 | echo X"$as_dir" | |
| 21303 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21304 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21305 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21306 | /^X\(\/\).*/{ s//\1/; q; } |
| 21307 | s/.*/./; q'` |
| 21308 | done |
| 21309 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 21310 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 21311 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 21312 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21313 | |
| 21314 | ac_builddir=. |
| 21315 | |
| 21316 | if test "$ac_dir" != .; then |
| 21317 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 21318 | # A "../" for each directory in $ac_dir_suffix. |
| 21319 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 21320 | else |
| 21321 | ac_dir_suffix= ac_top_builddir= |
| 21322 | fi |
| 21323 | |
| 21324 | case $srcdir in |
| 21325 | .) # No --srcdir option. We are building in place. |
| 21326 | ac_srcdir=. |
| 21327 | if test -z "$ac_top_builddir"; then |
| 21328 | ac_top_srcdir=. |
| 21329 | else |
| 21330 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 21331 | fi ;; |
| 21332 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 21333 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 21334 | ac_top_srcdir=$srcdir ;; |
| 21335 | *) # Relative path. |
| 21336 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 21337 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 21338 | esac |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21339 | |
| 21340 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 21341 | # the directories may not exist. |
| 21342 | case `pwd` in |
| 21343 | .) ac_abs_builddir="$ac_dir";; |
| 21344 | *) |
| 21345 | case "$ac_dir" in |
| 21346 | .) ac_abs_builddir=`pwd`;; |
| 21347 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 21348 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 21349 | esac;; |
| 21350 | esac |
| 21351 | case $ac_abs_builddir in |
| 21352 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 21353 | *) |
| 21354 | case ${ac_top_builddir}. in |
| 21355 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 21356 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 21357 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 21358 | esac;; |
| 21359 | esac |
| 21360 | case $ac_abs_builddir in |
| 21361 | .) ac_abs_srcdir=$ac_srcdir;; |
| 21362 | *) |
| 21363 | case $ac_srcdir in |
| 21364 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 21365 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 21366 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 21367 | esac;; |
| 21368 | esac |
| 21369 | case $ac_abs_builddir in |
| 21370 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 21371 | *) |
| 21372 | case $ac_top_srcdir in |
| 21373 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 21374 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 21375 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 21376 | esac;; |
| 21377 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21378 | |
| 21379 | |
| 21380 | case $INSTALL in |
| 21381 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 21382 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 21383 | esac |
| 21384 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21385 | if test x"$ac_file" != x-; then |
| 21386 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 21387 | echo "$as_me: creating $ac_file" >&6;} |
| 21388 | rm -f "$ac_file" |
| 21389 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21390 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 21391 | # use $as_me), people would be surprised to read: |
| 21392 | # /* config.h. Generated by config.status. */ |
| 21393 | if test x"$ac_file" = x-; then |
| 21394 | configure_input= |
| 21395 | else |
| 21396 | configure_input="$ac_file. " |
| 21397 | fi |
| 21398 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21399 | sed 's,.*/,,'` by configure." |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21400 | |
| 21401 | # First look for the input files in the build tree, otherwise in the |
| 21402 | # src tree. |
| 21403 | ac_file_inputs=`IFS=: |
| 21404 | for f in $ac_file_in; do |
| 21405 | case $f in |
| 21406 | -) echo $tmp/stdin ;; |
| 21407 | [\\/$]*) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21408 | # Absolute (can't be DOS-style, as IFS=:) |
| 21409 | 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] | 21410 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21411 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21412 | echo "$f";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21413 | *) # Relative |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21414 | if test -f "$f"; then |
| 21415 | # Build tree |
| 21416 | echo "$f" |
| 21417 | elif test -f "$srcdir/$f"; then |
| 21418 | # Source tree |
| 21419 | echo "$srcdir/$f" |
| 21420 | else |
| 21421 | # /dev/null tree |
| 21422 | { { 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] | 21423 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21424 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21425 | fi;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21426 | esac |
| 21427 | done` || { (exit 1); exit 1; } |
| 21428 | _ACEOF |
| 21429 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21430 | sed "$ac_vpsub |
| 21431 | $extrasub |
| 21432 | _ACEOF |
| 21433 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21434 | :t |
| 21435 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 21436 | s,@configure_input@,$configure_input,;t t |
| 21437 | s,@srcdir@,$ac_srcdir,;t t |
| 21438 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 21439 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 21440 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 21441 | s,@builddir@,$ac_builddir,;t t |
| 21442 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 21443 | s,@top_builddir@,$ac_top_builddir,;t t |
| 21444 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 21445 | s,@INSTALL@,$ac_INSTALL,;t t |
| 21446 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 21447 | rm -f $tmp/stdin |
| 21448 | if test x"$ac_file" != x-; then |
| 21449 | mv $tmp/out $ac_file |
| 21450 | else |
| 21451 | cat $tmp/out |
| 21452 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21453 | fi |
| 21454 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21455 | done |
| 21456 | _ACEOF |
| 21457 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21458 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21459 | # |
| 21460 | # CONFIG_HEADER section. |
| 21461 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21462 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21463 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 21464 | # 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] | 21465 | # |
| 21466 | # ac_d sets the value in "#define NAME VALUE" lines. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21467 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 21468 | ac_dB='[ ].*$,\1#\2' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21469 | ac_dC=' ' |
| 21470 | ac_dD=',;t' |
| 21471 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21472 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21473 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21474 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21475 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21476 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21477 | 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] | 21478 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21479 | case $ac_file in |
| 21480 | - | *:- | *:-:* ) # input from stdin |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21481 | cat >$tmp/stdin |
| 21482 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 21483 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21484 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21485 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21486 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21487 | esac |
| 21488 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21489 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 21490 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21491 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21492 | # First look for the input files in the build tree, otherwise in the |
| 21493 | # src tree. |
| 21494 | ac_file_inputs=`IFS=: |
| 21495 | for f in $ac_file_in; do |
| 21496 | case $f in |
| 21497 | -) echo $tmp/stdin ;; |
| 21498 | [\\/$]*) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21499 | # Absolute (can't be DOS-style, as IFS=:) |
| 21500 | 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] | 21501 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21502 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21503 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 21504 | echo "$f";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21505 | *) # Relative |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21506 | if test -f "$f"; then |
| 21507 | # Build tree |
| 21508 | echo "$f" |
| 21509 | elif test -f "$srcdir/$f"; then |
| 21510 | # Source tree |
| 21511 | echo "$srcdir/$f" |
| 21512 | else |
| 21513 | # /dev/null tree |
| 21514 | { { 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] | 21515 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21516 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21517 | fi;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21518 | esac |
| 21519 | done` || { (exit 1); exit 1; } |
| 21520 | # Remove the trailing spaces. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21521 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21522 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21523 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21524 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21525 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 21526 | # `conftest.undefs', that substitutes the proper values into |
| 21527 | # config.h.in to produce config.h. The first handles `#define' |
| 21528 | # templates, and the second `#undef' templates. |
| 21529 | # And first: Protect against being on the right side of a sed subst in |
| 21530 | # config.status. Protect against being in an unquoted here document |
| 21531 | # in config.status. |
| 21532 | rm -f conftest.defines conftest.undefs |
| 21533 | # Using a here document instead of a string reduces the quoting nightmare. |
| 21534 | # Putting comments in sed scripts is not portable. |
| 21535 | # |
| 21536 | # `end' is used to avoid that the second main sed command (meant for |
| 21537 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 21538 | # See the Autoconf documentation for `clear'. |
| 21539 | cat >confdef2sed.sed <<\_ACEOF |
| 21540 | s/[\\&,]/\\&/g |
| 21541 | s,[\\$`],\\&,g |
| 21542 | t clear |
| 21543 | : clear |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21544 | 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] | 21545 | t end |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21546 | 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] | 21547 | : end |
| 21548 | _ACEOF |
| 21549 | # If some macros were called several times there might be several times |
| 21550 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 21551 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 21552 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 21553 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 21554 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21555 | |
| 21556 | # This sed command replaces #undef with comments. This is necessary, for |
| 21557 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 21558 | # 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] | 21559 | cat >>conftest.undefs <<\_ACEOF |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21560 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21561 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21562 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21563 | # Break up conftest.defines because some shells have a limit on the size |
| 21564 | # of here documents, and old seds have small limits too (100 cmds). |
| 21565 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21566 | 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] | 21567 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 21568 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21569 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21570 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21571 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21572 | # Write a limited-size here document to $tmp/defines.sed. |
| 21573 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 21574 | # Speed up: don't consider the non `#define' lines. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21575 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21576 | # Work around the forget-to-reset-the-flag bug. |
| 21577 | echo 't clr' >>$CONFIG_STATUS |
| 21578 | echo ': clr' >>$CONFIG_STATUS |
| 21579 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21580 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21581 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 21582 | rm -f $tmp/in |
| 21583 | mv $tmp/out $tmp/in |
| 21584 | ' >>$CONFIG_STATUS |
| 21585 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 21586 | rm -f conftest.defines |
| 21587 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21588 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21589 | rm -f conftest.defines |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21590 | echo ' fi # grep' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21591 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21592 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21593 | # Break up conftest.undefs because some shells have a limit on the size |
| 21594 | # of here documents, and old seds have small limits too (100 cmds). |
| 21595 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 21596 | rm -f conftest.tail |
| 21597 | while grep . conftest.undefs >/dev/null |
| 21598 | do |
| 21599 | # Write a limited-size here document to $tmp/undefs.sed. |
| 21600 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 21601 | # Speed up: don't consider the non `#undef' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21602 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21603 | # Work around the forget-to-reset-the-flag bug. |
| 21604 | echo 't clr' >>$CONFIG_STATUS |
| 21605 | echo ': clr' >>$CONFIG_STATUS |
| 21606 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 21607 | echo 'CEOF |
| 21608 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 21609 | rm -f $tmp/in |
| 21610 | mv $tmp/out $tmp/in |
| 21611 | ' >>$CONFIG_STATUS |
| 21612 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 21613 | rm -f conftest.undefs |
| 21614 | mv conftest.tail conftest.undefs |
| 21615 | done |
| 21616 | rm -f conftest.undefs |
| 21617 | |
| 21618 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21619 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 21620 | # use $as_me), people would be surprised to read: |
| 21621 | # /* config.h. Generated by config.status. */ |
| 21622 | if test x"$ac_file" = x-; then |
| 21623 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21624 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21625 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21626 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21627 | cat $tmp/in >>$tmp/config.h |
| 21628 | rm -f $tmp/in |
| 21629 | if test x"$ac_file" != x-; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21630 | 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] | 21631 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 21632 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 21633 | else |
| 21634 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 21635 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21636 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 21637 | X"$ac_file" : 'X\(//\)$' \| \ |
| 21638 | X"$ac_file" : 'X\(/\)' \| \ |
| 21639 | . : '\(.\)' 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21640 | echo X"$ac_file" | |
| 21641 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21642 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21643 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21644 | /^X\(\/\).*/{ s//\1/; q; } |
| 21645 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21646 | { if $as_mkdir_p; then |
| 21647 | mkdir -p "$ac_dir" |
| 21648 | else |
| 21649 | as_dir="$ac_dir" |
| 21650 | as_dirs= |
| 21651 | while test ! -d "$as_dir"; do |
| 21652 | as_dirs="$as_dir $as_dirs" |
| 21653 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 21654 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21655 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21656 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21657 | X"$as_dir" : 'X\(/\)' \| \ |
| 21658 | . : '\(.\)' 2>/dev/null || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21659 | echo X"$as_dir" | |
| 21660 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21661 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21662 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21663 | /^X\(\/\).*/{ s//\1/; q; } |
| 21664 | s/.*/./; q'` |
| 21665 | done |
| 21666 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 21667 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 21668 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 21669 | { (exit 1); exit 1; }; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21670 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21671 | rm -f $ac_file |
| 21672 | mv $tmp/config.h $ac_file |
| 21673 | fi |
| 21674 | else |
| 21675 | cat $tmp/config.h |
| 21676 | rm -f $tmp/config.h |
| 21677 | fi |
| 21678 | done |
| 21679 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21680 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21681 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21682 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21683 | { (exit 0); exit 0; } |
| 21684 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21685 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21686 | ac_clean_files=$ac_clean_files_save |
| 21687 | |
| 21688 | |
| 21689 | # configure is writing to config.log, and then calls config.status. |
| 21690 | # config.status does its own redirection, appending to config.log. |
| 21691 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 21692 | # by configure, so config.status won't be able to write to it; its |
| 21693 | # output is simply discarded. So we exec the FD to /dev/null, |
| 21694 | # effectively closing config.log, so it can be properly (re)opened and |
| 21695 | # appended to by config.status. When coming back to configure, we |
| 21696 | # need to make the FD available again. |
| 21697 | if test "$no_create" != yes; then |
| 21698 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21699 | ac_config_status_args= |
| 21700 | test "$silent" = yes && |
| 21701 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21702 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21703 | $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] | 21704 | exec 5>>config.log |
| 21705 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 21706 | # would make configure fail if this is the last instruction. |
| 21707 | $ac_cs_success || { (exit 1); exit 1; } |
| 21708 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21709 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 21710 | |
| 21711 | echo "creating Setup" |
| 21712 | if test ! -f Modules/Setup |
| 21713 | then |
| 21714 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 21715 | fi |
| 21716 | |
| 21717 | echo "creating Setup.local" |
| 21718 | if test ! -f Modules/Setup.local |
| 21719 | then |
| 21720 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 21721 | fi |
| 21722 | |
| 21723 | echo "creating Makefile" |
| 21724 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 21725 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 21726 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 21727 | mv config.c Modules |