Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 1.484 . |
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 | 1931ca7 | 2002-06-01 21:39:58 +0000 | [diff] [blame] | 3268 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3269 | $CXX -c conftest.$ac_ext 2>&5 |
| 3270 | if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 3271 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3272 | then |
| 3273 | LINKCC="\$(PURIFY) \$(CC)" |
| 3274 | else |
| 3275 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3276 | fi |
| 3277 | rm -fr conftest* |
| 3278 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3279 | case $ac_sys_system in |
| 3280 | AIX*) |
Neal Norwitz | 0b27ff9 | 2003-03-31 15:53:49 +0000 | [diff] [blame] | 3281 | exp_extra="\"\"" |
| 3282 | if test $ac_sys_release -ge 5 -o \ |
| 3283 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3284 | exp_extra="." |
| 3285 | fi |
| 3286 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3287 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3288 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3289 | esac |
| 3290 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3291 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3292 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3293 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3294 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3295 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3296 | # Check whether --enable-shared or --disable-shared was given. |
| 3297 | if test "${enable_shared+set}" = set; then |
| 3298 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3299 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3300 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3301 | |
| 3302 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3303 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3304 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3305 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3306 | enable_shared="yes";; |
| 3307 | *) |
| 3308 | enable_shared="no";; |
| 3309 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3310 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3311 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3312 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3313 | |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3314 | echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 3315 | echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6 |
| 3316 | # Check whether --enable-profiling or --disable-profiling was given. |
| 3317 | if test "${enable_profiling+set}" = set; then |
| 3318 | enableval="$enable_profiling" |
| 3319 | ac_save_cc="$CC" |
| 3320 | CC="$CC -pg" |
| 3321 | if test "$cross_compiling" = yes; then |
| 3322 | ac_enable_profiling="no" |
| 3323 | else |
| 3324 | cat >conftest.$ac_ext <<_ACEOF |
| 3325 | /* confdefs.h. */ |
| 3326 | _ACEOF |
| 3327 | cat confdefs.h >>conftest.$ac_ext |
| 3328 | cat >>conftest.$ac_ext <<_ACEOF |
| 3329 | /* end confdefs.h. */ |
| 3330 | int main() { return 0; } |
| 3331 | _ACEOF |
| 3332 | rm -f conftest$ac_exeext |
| 3333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3334 | (eval $ac_link) 2>&5 |
| 3335 | ac_status=$? |
| 3336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3337 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3339 | (eval $ac_try) 2>&5 |
| 3340 | ac_status=$? |
| 3341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3342 | (exit $ac_status); }; }; then |
| 3343 | ac_enable_profiling="yes" |
| 3344 | else |
| 3345 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3346 | echo "$as_me: failed program was:" >&5 |
| 3347 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3348 | |
| 3349 | ( exit $ac_status ) |
| 3350 | ac_enable_profiling="no" |
| 3351 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3352 | 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] | 3353 | fi |
| 3354 | CC="$ac_save_cc" |
| 3355 | fi; |
| 3356 | echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 3357 | echo "${ECHO_T}$ac_enable_profiling" >&6 |
| 3358 | |
| 3359 | case "$ac_enable_profiling" in |
| 3360 | "yes") |
| 3361 | BASECFLAGS="-pg $BASECFLAGS" |
| 3362 | LDFLAGS="-pg $LDFLAGS" |
| 3363 | ;; |
| 3364 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3365 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3366 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3367 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3368 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3369 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3370 | # library that we build, but we do not want to link against it (we |
| 3371 | # will find it with a -framework option). For this reason there is an |
| 3372 | # extra variable BLDLIBRARY against which Python and the extension |
| 3373 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3374 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3375 | if test "$enable_framework" |
| 3376 | then |
| 3377 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 3378 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3379 | BLDLIBRARY='' |
| 3380 | else |
| 3381 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3382 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3383 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3384 | # Other platforms follow |
| 3385 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3386 | |
| 3387 | cat >>confdefs.h <<\_ACEOF |
| 3388 | #define Py_ENABLE_SHARED 1 |
| 3389 | _ACEOF |
| 3390 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3391 | case $ac_sys_system in |
| 3392 | BeOS*) |
| 3393 | LDLIBRARY='libpython$(VERSION).so' |
| 3394 | ;; |
| 3395 | CYGWIN*) |
| 3396 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3397 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3398 | ;; |
| 3399 | SunOS*) |
| 3400 | LDLIBRARY='libpython$(VERSION).so' |
Martin v. Löwis | d141a8c | 2003-06-14 15:20:28 +0000 | [diff] [blame] | 3401 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3402 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 2389c41 | 2003-10-31 15:42:07 +0000 | [diff] [blame] | 3403 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3404 | ;; |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 3405 | Linux*|GNU*|NetBSD*|FreeBSD*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3406 | LDLIBRARY='libpython$(VERSION).so' |
| 3407 | BLDLIBRARY='-L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3408 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 3409 | case $ac_sys_system in |
| 3410 | FreeBSD*) |
| 3411 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 3412 | ;; |
| 3413 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3414 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3415 | ;; |
| 3416 | hp*|HP*) |
| 3417 | LDLIBRARY='libpython$(VERSION).sl' |
| 3418 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3419 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3420 | ;; |
| 3421 | OSF*) |
| 3422 | LDLIBRARY='libpython$(VERSION).so' |
| 3423 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3424 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3425 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3426 | atheos*) |
| 3427 | LDLIBRARY='libpython$(VERSION).so' |
| 3428 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3429 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3430 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3431 | esac |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 3432 | else # shared is disabled |
| 3433 | case $ac_sys_system in |
| 3434 | CYGWIN*) |
| 3435 | BLDLIBRARY='$(LIBRARY)' |
| 3436 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3437 | ;; |
| 3438 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3439 | fi |
| 3440 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3441 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3442 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3443 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3444 | if test -n "$ac_tool_prefix"; then |
| 3445 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3446 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3447 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3448 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3449 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3451 | else |
| 3452 | if test -n "$RANLIB"; then |
| 3453 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3454 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3456 | for as_dir in $PATH |
| 3457 | do |
| 3458 | IFS=$as_save_IFS |
| 3459 | test -z "$as_dir" && as_dir=. |
| 3460 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3461 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3462 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3463 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3464 | break 2 |
| 3465 | fi |
| 3466 | done |
| 3467 | done |
| 3468 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3469 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3470 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3471 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3472 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3473 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3474 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3475 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3476 | echo "$as_me:$LINENO: result: no" >&5 |
| 3477 | echo "${ECHO_T}no" >&6 |
| 3478 | fi |
| 3479 | |
| 3480 | fi |
| 3481 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3482 | ac_ct_RANLIB=$RANLIB |
| 3483 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3484 | set dummy ranlib; ac_word=$2 |
| 3485 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3486 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3487 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3489 | else |
| 3490 | if test -n "$ac_ct_RANLIB"; then |
| 3491 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3492 | else |
| 3493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3494 | for as_dir in $PATH |
| 3495 | do |
| 3496 | IFS=$as_save_IFS |
| 3497 | test -z "$as_dir" && as_dir=. |
| 3498 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3499 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3500 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3501 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3502 | break 2 |
| 3503 | fi |
| 3504 | done |
| 3505 | done |
| 3506 | |
| 3507 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3508 | fi |
| 3509 | fi |
| 3510 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3511 | if test -n "$ac_ct_RANLIB"; then |
| 3512 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3513 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3514 | else |
| 3515 | echo "$as_me:$LINENO: result: no" >&5 |
| 3516 | echo "${ECHO_T}no" >&6 |
| 3517 | fi |
| 3518 | |
| 3519 | RANLIB=$ac_ct_RANLIB |
| 3520 | else |
| 3521 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3522 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3523 | |
| 3524 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3525 | for ac_prog in ar aal |
| 3526 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3527 | # 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] | 3528 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3529 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3530 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3531 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3532 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3533 | else |
| 3534 | if test -n "$AR"; then |
| 3535 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3536 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3538 | for as_dir in $PATH |
| 3539 | do |
| 3540 | IFS=$as_save_IFS |
| 3541 | test -z "$as_dir" && as_dir=. |
| 3542 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3543 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3544 | ac_cv_prog_AR="$ac_prog" |
| 3545 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3546 | break 2 |
| 3547 | fi |
| 3548 | done |
| 3549 | done |
| 3550 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3551 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3552 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3553 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3554 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3555 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3556 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3557 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3558 | echo "$as_me:$LINENO: result: no" >&5 |
| 3559 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3560 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3561 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3562 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3563 | done |
| 3564 | test -n "$AR" || AR="ar" |
| 3565 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3566 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3567 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3568 | bsdos*|hp*|HP*) |
| 3569 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3570 | if test -z "$INSTALL" |
| 3571 | then |
| 3572 | INSTALL="${srcdir}/install-sh -c" |
| 3573 | fi |
| 3574 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3575 | ac_aux_dir= |
| 3576 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3577 | if test -f $ac_dir/install-sh; then |
| 3578 | ac_aux_dir=$ac_dir |
| 3579 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3580 | break |
| 3581 | elif test -f $ac_dir/install.sh; then |
| 3582 | ac_aux_dir=$ac_dir |
| 3583 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3584 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3585 | elif test -f $ac_dir/shtool; then |
| 3586 | ac_aux_dir=$ac_dir |
| 3587 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3588 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3589 | fi |
| 3590 | done |
| 3591 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3592 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3593 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3594 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3595 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3596 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3597 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3598 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3599 | |
| 3600 | # Find a good install program. We prefer a C program (faster), |
| 3601 | # so one script is as good as another. But avoid the broken or |
| 3602 | # incompatible versions: |
| 3603 | # SysV /etc/install, /usr/sbin/install |
| 3604 | # SunOS /usr/etc/install |
| 3605 | # IRIX /sbin/install |
| 3606 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3607 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3608 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3609 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3610 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3611 | # OS/2's system install, which has a completely different semantic |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3612 | # ./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] | 3613 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3614 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3615 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3616 | if test "${ac_cv_path_install+set}" = set; then |
| 3617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3618 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3620 | for as_dir in $PATH |
| 3621 | do |
| 3622 | IFS=$as_save_IFS |
| 3623 | test -z "$as_dir" && as_dir=. |
| 3624 | # Account for people who put trailing slashes in PATH elements. |
| 3625 | case $as_dir/ in |
| 3626 | ./ | .// | /cC/* | \ |
| 3627 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3628 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3629 | /usr/ucb/* ) ;; |
| 3630 | *) |
| 3631 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3632 | # Don't use installbsd from OSF since it installs stuff as root |
| 3633 | # by default. |
| 3634 | for ac_prog in ginstall scoinst install; do |
| 3635 | for ac_exec_ext in '' $ac_executable_extensions; do |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3636 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3637 | if test $ac_prog = install && |
| 3638 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3639 | # AIX install. It has an incompatible calling convention. |
| 3640 | : |
| 3641 | elif test $ac_prog = install && |
| 3642 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3643 | # program-specific install script used by HP pwplus--don't use. |
| 3644 | : |
| 3645 | else |
| 3646 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3647 | break 3 |
| 3648 | fi |
| 3649 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3650 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3651 | done |
| 3652 | ;; |
| 3653 | esac |
| 3654 | done |
| 3655 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3656 | |
| 3657 | fi |
| 3658 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3659 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3660 | else |
| 3661 | # As a last resort, use the slow shell script. We don't cache a |
| 3662 | # path for INSTALL within a source directory, because that will |
| 3663 | # break other packages using the cache if that directory is |
| 3664 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3665 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3666 | fi |
| 3667 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3668 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3669 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3670 | |
| 3671 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3672 | # It thinks the first close brace ends the variable substitution. |
| 3673 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3674 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3675 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3676 | |
| 3677 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3678 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3679 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3680 | # Not every filesystem supports hard links |
| 3681 | |
| 3682 | if test -z "$LN" ; then |
| 3683 | case $ac_sys_system in |
| 3684 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3685 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3686 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3687 | *) LN=ln;; |
| 3688 | esac |
| 3689 | fi |
| 3690 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3691 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3692 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3693 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3694 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3695 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3696 | if test "${with_pydebug+set}" = set; then |
| 3697 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3698 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3699 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3700 | then |
| 3701 | |
| 3702 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3703 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3704 | _ACEOF |
| 3705 | |
| 3706 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3707 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3708 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3709 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3710 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3711 | fi |
| 3712 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3713 | echo "$as_me:$LINENO: result: no" >&5 |
| 3714 | echo "${ECHO_T}no" >&6 |
| 3715 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3716 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3717 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 3718 | # merged with this chunk of code? |
| 3719 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3720 | # Optimizer/debugger flags |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3721 | # ------------------------ |
| 3722 | # (The following bit of code is complicated enough - please keep things |
| 3723 | # indented properly. Just pretend you're editing Python code. ;-) |
| 3724 | |
| 3725 | # There are two parallel sets of case statements below, one that checks to |
| 3726 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 3727 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 3728 | # user set OPT. |
| 3729 | |
| 3730 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 3731 | # it on the command line |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3732 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3733 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3734 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3735 | case $GCC in |
| 3736 | yes) |
| 3737 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3738 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3739 | if test "$Py_DEBUG" = 'true' ; then |
| 3740 | # Optimization messes up debuggers, so turn it off for |
| 3741 | # debug builds. |
| 3742 | OPT="-g -Wall -Wstrict-prototypes" |
| 3743 | else |
| 3744 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3745 | fi |
| 3746 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3747 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3748 | OPT="-O3 -Wall -Wstrict-prototypes" |
| 3749 | ;; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3750 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3751 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3752 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 3753 | ;; |
| 3754 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3755 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3756 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3757 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3758 | OPT="-O" |
| 3759 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3760 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3761 | |
| 3762 | # The current (beta) Monterey compiler dies with optimizations |
| 3763 | # 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] | 3764 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3765 | Monterey*) |
| 3766 | OPT="" |
| 3767 | ;; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3768 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3769 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3770 | fi |
| 3771 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3772 | |
| 3773 | # tweak BASECFLAGS based on compiler and platform |
| 3774 | case $GCC in |
| 3775 | yes) |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3776 | # Python violates C99 rules, by casting between incompatible |
| 3777 | # pointer types. GCC may generate bad code as a result of that, |
| 3778 | # so use -fno-strict-aliasing if supported. |
| 3779 | echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 3780 | echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6 |
| 3781 | ac_save_cc="$CC" |
| 3782 | CC="$CC -fno-strict-aliasing" |
| 3783 | if test "$cross_compiling" = yes; then |
| 3784 | ac_cv_no_strict_aliasing_ok=no |
| 3785 | else |
| 3786 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3787 | /* confdefs.h. */ |
| 3788 | _ACEOF |
| 3789 | cat confdefs.h >>conftest.$ac_ext |
| 3790 | cat >>conftest.$ac_ext <<_ACEOF |
| 3791 | /* end confdefs.h. */ |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3792 | int main() { return 0; } |
| 3793 | _ACEOF |
| 3794 | rm -f conftest$ac_exeext |
| 3795 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3796 | (eval $ac_link) 2>&5 |
| 3797 | ac_status=$? |
| 3798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3799 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3801 | (eval $ac_try) 2>&5 |
| 3802 | ac_status=$? |
| 3803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3804 | (exit $ac_status); }; }; then |
| 3805 | ac_cv_no_strict_aliasing_ok=yes |
| 3806 | else |
| 3807 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3808 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3809 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3810 | |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3811 | ( exit $ac_status ) |
| 3812 | ac_cv_no_strict_aliasing_ok=no |
| 3813 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3814 | 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] | 3815 | fi |
| 3816 | CC="$ac_save_cc" |
| 3817 | echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 3818 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6 |
| 3819 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 3820 | then |
| 3821 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 3822 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3823 | case $ac_sys_system in |
| 3824 | SCO_SV*) |
| 3825 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 3826 | ;; |
| 3827 | # is there any other compiler on Darwin besides gcc? |
| 3828 | Darwin*) |
Jack Jansen | e004041 | 2003-07-23 22:17:28 +0000 | [diff] [blame] | 3829 | BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3830 | ;; |
| 3831 | esac |
| 3832 | ;; |
| 3833 | |
| 3834 | *) |
| 3835 | case $ac_sys_system in |
| 3836 | OpenUNIX*|UnixWare*) |
| 3837 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 3838 | ;; |
Neal Norwitz | b44f165 | 2003-05-26 14:11:55 +0000 | [diff] [blame] | 3839 | OSF*) |
| 3840 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 3841 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3842 | SCO_SV*) |
| 3843 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 3844 | ;; |
| 3845 | esac |
| 3846 | ;; |
| 3847 | esac |
| 3848 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3849 | if test "$Py_DEBUG" = 'true'; then |
| 3850 | : |
| 3851 | else |
| 3852 | OPT="-DNDEBUG $OPT" |
| 3853 | fi |
| 3854 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3855 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3856 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3857 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3858 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3859 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3860 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3861 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3862 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3864 | else |
| 3865 | ac_save_cc="$CC" |
| 3866 | CC="$CC -OPT:Olimit=0" |
| 3867 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3868 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3869 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3870 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3871 | /* confdefs.h. */ |
| 3872 | _ACEOF |
| 3873 | cat confdefs.h >>conftest.$ac_ext |
| 3874 | cat >>conftest.$ac_ext <<_ACEOF |
| 3875 | /* end confdefs.h. */ |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3876 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3877 | _ACEOF |
| 3878 | rm -f conftest$ac_exeext |
| 3879 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3880 | (eval $ac_link) 2>&5 |
| 3881 | ac_status=$? |
| 3882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3883 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3885 | (eval $ac_try) 2>&5 |
| 3886 | ac_status=$? |
| 3887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3888 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3889 | ac_cv_opt_olimit_ok=yes |
| 3890 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3891 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3892 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3894 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3895 | ( exit $ac_status ) |
| 3896 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3897 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3898 | 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] | 3899 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3900 | CC="$ac_save_cc" |
| 3901 | fi |
| 3902 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3903 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3904 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3905 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3906 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3907 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 3908 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 3909 | # environment? |
| 3910 | Darwin*) |
| 3911 | ;; |
| 3912 | *) |
| 3913 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 3914 | ;; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3915 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3916 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3917 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3918 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3919 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3921 | else |
| 3922 | ac_save_cc="$CC" |
| 3923 | CC="$CC -Olimit 1500" |
| 3924 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3925 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3926 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3927 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3928 | /* confdefs.h. */ |
| 3929 | _ACEOF |
| 3930 | cat confdefs.h >>conftest.$ac_ext |
| 3931 | cat >>conftest.$ac_ext <<_ACEOF |
| 3932 | /* end confdefs.h. */ |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3933 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3934 | _ACEOF |
| 3935 | rm -f conftest$ac_exeext |
| 3936 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3937 | (eval $ac_link) 2>&5 |
| 3938 | ac_status=$? |
| 3939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3940 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3942 | (eval $ac_try) 2>&5 |
| 3943 | ac_status=$? |
| 3944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3945 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3946 | ac_cv_olimit_ok=yes |
| 3947 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3948 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3949 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3951 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3952 | ( exit $ac_status ) |
| 3953 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 3954 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3955 | 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] | 3956 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3957 | CC="$ac_save_cc" |
| 3958 | fi |
| 3959 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3960 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 3961 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3962 | if test $ac_cv_olimit_ok = yes; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3963 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3964 | fi |
| 3965 | fi |
| 3966 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3967 | # On some compilers, pthreads are available without further options |
| 3968 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 3969 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 3970 | # So we have to see first whether pthreads are available without |
| 3971 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3972 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 3973 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 3974 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 3975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3976 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3977 | if test "$cross_compiling" = yes; then |
| 3978 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3979 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3980 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3981 | /* confdefs.h. */ |
| 3982 | _ACEOF |
| 3983 | cat confdefs.h >>conftest.$ac_ext |
| 3984 | cat >>conftest.$ac_ext <<_ACEOF |
| 3985 | /* end confdefs.h. */ |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3986 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3987 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3988 | |
| 3989 | void* routine(void* p){return NULL;} |
| 3990 | |
| 3991 | int main(){ |
| 3992 | pthread_t p; |
| 3993 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3994 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3995 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3996 | return 0; |
| 3997 | } |
| 3998 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3999 | _ACEOF |
| 4000 | rm -f conftest$ac_exeext |
| 4001 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4002 | (eval $ac_link) 2>&5 |
| 4003 | ac_status=$? |
| 4004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4005 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4007 | (eval $ac_try) 2>&5 |
| 4008 | ac_status=$? |
| 4009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4010 | (exit $ac_status); }; }; then |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4011 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4012 | ac_cv_pthread_is_default=yes |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4013 | ac_cv_kthread=no |
| 4014 | ac_cv_pthread=no |
| 4015 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4016 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4017 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4018 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4020 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4021 | ( exit $ac_status ) |
| 4022 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4023 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4024 | 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] | 4025 | fi |
| 4026 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4027 | fi |
| 4028 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4029 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 4030 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4031 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4032 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4033 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4034 | then |
| 4035 | ac_cv_kpthread=no |
| 4036 | else |
| 4037 | # -Kpthread, if available, provides the right #defines |
| 4038 | # and linker options to make pthread_create available |
| 4039 | # Some compilers won't report that they do not support -Kpthread, |
| 4040 | # so we need to run a program to see whether it really made the |
| 4041 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4042 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 4043 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 4044 | if test "${ac_cv_kpthread+set}" = set; then |
| 4045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4046 | else |
| 4047 | ac_save_cc="$CC" |
| 4048 | CC="$CC -Kpthread" |
| 4049 | if test "$cross_compiling" = yes; then |
| 4050 | ac_cv_kpthread=no |
| 4051 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4052 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4053 | /* confdefs.h. */ |
| 4054 | _ACEOF |
| 4055 | cat confdefs.h >>conftest.$ac_ext |
| 4056 | cat >>conftest.$ac_ext <<_ACEOF |
| 4057 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4058 | |
| 4059 | #include <pthread.h> |
| 4060 | |
| 4061 | void* routine(void* p){return NULL;} |
| 4062 | |
| 4063 | int main(){ |
| 4064 | pthread_t p; |
| 4065 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4066 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4067 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4068 | return 0; |
| 4069 | } |
| 4070 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4071 | _ACEOF |
| 4072 | rm -f conftest$ac_exeext |
| 4073 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4074 | (eval $ac_link) 2>&5 |
| 4075 | ac_status=$? |
| 4076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4077 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4079 | (eval $ac_try) 2>&5 |
| 4080 | ac_status=$? |
| 4081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4082 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4083 | ac_cv_kpthread=yes |
| 4084 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4085 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4086 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4087 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4088 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4089 | ( exit $ac_status ) |
| 4090 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4091 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4092 | 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] | 4093 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4094 | CC="$ac_save_cc" |
| 4095 | fi |
| 4096 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4097 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 4098 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4099 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4100 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4101 | 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] | 4102 | then |
| 4103 | # -Kthread, if available, provides the right #defines |
| 4104 | # and linker options to make pthread_create available |
| 4105 | # Some compilers won't report that they do not support -Kthread, |
| 4106 | # so we need to run a program to see whether it really made the |
| 4107 | # function available. |
| 4108 | echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 4109 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6 |
| 4110 | if test "${ac_cv_kthread+set}" = set; then |
| 4111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4112 | else |
| 4113 | ac_save_cc="$CC" |
| 4114 | CC="$CC -Kthread" |
| 4115 | if test "$cross_compiling" = yes; then |
| 4116 | ac_cv_kthread=no |
| 4117 | else |
| 4118 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4119 | /* confdefs.h. */ |
| 4120 | _ACEOF |
| 4121 | cat confdefs.h >>conftest.$ac_ext |
| 4122 | cat >>conftest.$ac_ext <<_ACEOF |
| 4123 | /* end confdefs.h. */ |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4124 | |
| 4125 | #include <pthread.h> |
| 4126 | |
| 4127 | void* routine(void* p){return NULL;} |
| 4128 | |
| 4129 | int main(){ |
| 4130 | pthread_t p; |
| 4131 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4132 | return 1; |
| 4133 | (void)pthread_detach(p); |
| 4134 | return 0; |
| 4135 | } |
| 4136 | |
| 4137 | _ACEOF |
| 4138 | rm -f conftest$ac_exeext |
| 4139 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4140 | (eval $ac_link) 2>&5 |
| 4141 | ac_status=$? |
| 4142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4143 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4145 | (eval $ac_try) 2>&5 |
| 4146 | ac_status=$? |
| 4147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4148 | (exit $ac_status); }; }; then |
| 4149 | ac_cv_kthread=yes |
| 4150 | else |
| 4151 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4152 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4153 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4154 | |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4155 | ( exit $ac_status ) |
| 4156 | ac_cv_kthread=no |
| 4157 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4158 | 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] | 4159 | fi |
| 4160 | CC="$ac_save_cc" |
| 4161 | fi |
| 4162 | |
| 4163 | echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 4164 | echo "${ECHO_T}$ac_cv_kthread" >&6 |
| 4165 | fi |
| 4166 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4167 | 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] | 4168 | then |
| 4169 | # -pthread, if available, provides the right #defines |
| 4170 | # and linker options to make pthread_create available |
| 4171 | # Some compilers won't report that they do not support -pthread, |
| 4172 | # so we need to run a program to see whether it really made the |
| 4173 | # function available. |
| 4174 | echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 4175 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6 |
| 4176 | if test "${ac_cv_thread+set}" = set; then |
| 4177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4178 | else |
| 4179 | ac_save_cc="$CC" |
| 4180 | CC="$CC -pthread" |
| 4181 | if test "$cross_compiling" = yes; then |
| 4182 | ac_cv_pthread=no |
| 4183 | else |
| 4184 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4185 | /* confdefs.h. */ |
| 4186 | _ACEOF |
| 4187 | cat confdefs.h >>conftest.$ac_ext |
| 4188 | cat >>conftest.$ac_ext <<_ACEOF |
| 4189 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4190 | |
| 4191 | #include <pthread.h> |
| 4192 | |
| 4193 | void* routine(void* p){return NULL;} |
| 4194 | |
| 4195 | int main(){ |
| 4196 | pthread_t p; |
| 4197 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4198 | return 1; |
| 4199 | (void)pthread_detach(p); |
| 4200 | return 0; |
| 4201 | } |
| 4202 | |
| 4203 | _ACEOF |
| 4204 | rm -f conftest$ac_exeext |
| 4205 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4206 | (eval $ac_link) 2>&5 |
| 4207 | ac_status=$? |
| 4208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4209 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4211 | (eval $ac_try) 2>&5 |
| 4212 | ac_status=$? |
| 4213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4214 | (exit $ac_status); }; }; then |
| 4215 | ac_cv_pthread=yes |
| 4216 | else |
| 4217 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4218 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4219 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4220 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4221 | ( exit $ac_status ) |
| 4222 | ac_cv_pthread=no |
| 4223 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4224 | 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] | 4225 | fi |
| 4226 | CC="$ac_save_cc" |
| 4227 | fi |
| 4228 | |
| 4229 | echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 4230 | echo "${ECHO_T}$ac_cv_pthread" >&6 |
| 4231 | fi |
| 4232 | |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4233 | # If we have set a CC compiler flag for thread support then |
| 4234 | # check if it works for CXX, too. |
| 4235 | ac_cv_cxx_thread=no |
| 4236 | if test ! -z "$CXX" |
| 4237 | then |
| 4238 | echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 4239 | echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6 |
| 4240 | ac_save_cxx="$CXX" |
| 4241 | |
| 4242 | if test "$ac_cv_kpthread" = "yes" |
| 4243 | then |
| 4244 | CXX="$CXX -Kpthread" |
| 4245 | ac_cv_cxx_thread=yes |
| 4246 | elif test "$ac_cv_kthread" = "yes" |
| 4247 | then |
| 4248 | CXX="$CXX -Kthread" |
| 4249 | ac_cv_cxx_thread=yes |
| 4250 | elif test "$ac_cv_pthread" = "yes" |
| 4251 | then |
| 4252 | CXX="$CXX -pthread" |
| 4253 | ac_cv_cxx_thread=yes |
| 4254 | fi |
| 4255 | |
| 4256 | if test $ac_cv_cxx_thread = yes |
| 4257 | then |
| 4258 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 4259 | $CXX -c conftest.$ac_ext 2>&5 |
| 4260 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 4261 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 4262 | then |
| 4263 | ac_cv_cxx_thread=yes |
| 4264 | else |
| 4265 | ac_cv_cxx_thread=no |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4266 | fi |
| 4267 | rm -fr conftest* |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4268 | fi |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4269 | echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 4270 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6 |
Brett Cannon | c601e0f | 2004-11-07 01:24:12 +0000 | [diff] [blame] | 4271 | fi |
| 4272 | CXX="$ac_save_cxx" |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4273 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4274 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4275 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4276 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4277 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4278 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4280 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4281 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4282 | /* confdefs.h. */ |
| 4283 | _ACEOF |
| 4284 | cat confdefs.h >>conftest.$ac_ext |
| 4285 | cat >>conftest.$ac_ext <<_ACEOF |
| 4286 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4287 | #include <stdlib.h> |
| 4288 | #include <stdarg.h> |
| 4289 | #include <string.h> |
| 4290 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4291 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4292 | int |
| 4293 | main () |
| 4294 | { |
| 4295 | |
| 4296 | ; |
| 4297 | return 0; |
| 4298 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4299 | _ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4300 | rm -f conftest.$ac_objext |
| 4301 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4302 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4303 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4304 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4305 | rm -f conftest.er1 |
| 4306 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4308 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4309 | { ac_try='test -z "$ac_c_werror_flag" |
| 4310 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4312 | (eval $ac_try) 2>&5 |
| 4313 | ac_status=$? |
| 4314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4315 | (exit $ac_status); }; } && |
| 4316 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4318 | (eval $ac_try) 2>&5 |
| 4319 | ac_status=$? |
| 4320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4321 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4322 | ac_cv_header_stdc=yes |
| 4323 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4324 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4326 | |
| 4327 | ac_cv_header_stdc=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4328 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4329 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4330 | |
| 4331 | if test $ac_cv_header_stdc = yes; then |
| 4332 | # 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] | 4333 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4334 | /* confdefs.h. */ |
| 4335 | _ACEOF |
| 4336 | cat confdefs.h >>conftest.$ac_ext |
| 4337 | cat >>conftest.$ac_ext <<_ACEOF |
| 4338 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4339 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4340 | |
| 4341 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4342 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4343 | $EGREP "memchr" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4344 | : |
| 4345 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4346 | ac_cv_header_stdc=no |
| 4347 | fi |
| 4348 | rm -f conftest* |
| 4349 | |
| 4350 | fi |
| 4351 | |
| 4352 | if test $ac_cv_header_stdc = yes; then |
| 4353 | # 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] | 4354 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4355 | /* confdefs.h. */ |
| 4356 | _ACEOF |
| 4357 | cat confdefs.h >>conftest.$ac_ext |
| 4358 | cat >>conftest.$ac_ext <<_ACEOF |
| 4359 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4360 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4361 | |
| 4362 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4363 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4364 | $EGREP "free" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4365 | : |
| 4366 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4367 | ac_cv_header_stdc=no |
| 4368 | fi |
| 4369 | rm -f conftest* |
| 4370 | |
| 4371 | fi |
| 4372 | |
| 4373 | if test $ac_cv_header_stdc = yes; then |
| 4374 | # /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] | 4375 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4376 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4377 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4378 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4379 | /* confdefs.h. */ |
| 4380 | _ACEOF |
| 4381 | cat confdefs.h >>conftest.$ac_ext |
| 4382 | cat >>conftest.$ac_ext <<_ACEOF |
| 4383 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4384 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4385 | #if ((' ' & 0x0FF) == 0x020) |
| 4386 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4387 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4388 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4389 | # define ISLOWER(c) \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4390 | (('a' <= (c) && (c) <= 'i') \ |
| 4391 | || ('j' <= (c) && (c) <= 'r') \ |
| 4392 | || ('s' <= (c) && (c) <= 'z')) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4393 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4394 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4395 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4396 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4397 | int |
| 4398 | main () |
| 4399 | { |
| 4400 | int i; |
| 4401 | for (i = 0; i < 256; i++) |
| 4402 | if (XOR (islower (i), ISLOWER (i)) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4403 | || toupper (i) != TOUPPER (i)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4404 | exit(2); |
| 4405 | exit (0); |
| 4406 | } |
| 4407 | _ACEOF |
| 4408 | rm -f conftest$ac_exeext |
| 4409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4410 | (eval $ac_link) 2>&5 |
| 4411 | ac_status=$? |
| 4412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4413 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4415 | (eval $ac_try) 2>&5 |
| 4416 | ac_status=$? |
| 4417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4418 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4419 | : |
| 4420 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4421 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4422 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4424 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4425 | ( exit $ac_status ) |
| 4426 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4427 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4428 | 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] | 4429 | fi |
| 4430 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4431 | fi |
| 4432 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4433 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4434 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4435 | |
| 4436 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4437 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4438 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4439 | |
| 4440 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4441 | |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4442 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4443 | |
| 4444 | |
| 4445 | |
| 4446 | |
| 4447 | |
| 4448 | |
| 4449 | |
| 4450 | |
| 4451 | |
| 4452 | 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] | 4453 | inttypes.h stdint.h unistd.h |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4454 | do |
| 4455 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4456 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4457 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4458 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4460 | else |
| 4461 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4462 | /* confdefs.h. */ |
| 4463 | _ACEOF |
| 4464 | cat confdefs.h >>conftest.$ac_ext |
| 4465 | cat >>conftest.$ac_ext <<_ACEOF |
| 4466 | /* end confdefs.h. */ |
| 4467 | $ac_includes_default |
| 4468 | |
| 4469 | #include <$ac_header> |
| 4470 | _ACEOF |
| 4471 | rm -f conftest.$ac_objext |
| 4472 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4473 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4474 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4475 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4476 | rm -f conftest.er1 |
| 4477 | cat conftest.err >&5 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4479 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4480 | { ac_try='test -z "$ac_c_werror_flag" |
| 4481 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4483 | (eval $ac_try) 2>&5 |
| 4484 | ac_status=$? |
| 4485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4486 | (exit $ac_status); }; } && |
| 4487 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4489 | (eval $ac_try) 2>&5 |
| 4490 | ac_status=$? |
| 4491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4492 | (exit $ac_status); }; }; then |
| 4493 | eval "$as_ac_Header=yes" |
| 4494 | else |
| 4495 | echo "$as_me: failed program was:" >&5 |
| 4496 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4497 | |
| 4498 | eval "$as_ac_Header=no" |
| 4499 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4500 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4501 | fi |
| 4502 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4503 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4504 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4505 | cat >>confdefs.h <<_ACEOF |
| 4506 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4507 | _ACEOF |
| 4508 | |
| 4509 | fi |
| 4510 | |
| 4511 | done |
| 4512 | |
| 4513 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4514 | |
| 4515 | |
| 4516 | |
| 4517 | |
| 4518 | |
| 4519 | |
| 4520 | |
| 4521 | |
| 4522 | |
| 4523 | |
| 4524 | |
| 4525 | |
| 4526 | |
| 4527 | |
| 4528 | |
| 4529 | |
| 4530 | |
| 4531 | |
| 4532 | |
| 4533 | |
| 4534 | |
| 4535 | |
| 4536 | |
| 4537 | |
| 4538 | |
| 4539 | |
| 4540 | |
| 4541 | |
| 4542 | |
| 4543 | |
| 4544 | |
| 4545 | |
| 4546 | |
| 4547 | |
| 4548 | |
| 4549 | |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 4550 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 4551 | |
| 4552 | 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] | 4553 | libintl.h ncurses.h poll.h pthread.h \ |
| 4554 | stropts.h termios.h thread.h \ |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4555 | unistd.h utime.h \ |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 4556 | sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \ |
| 4557 | sys/modem.h \ |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4558 | 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] | 4559 | 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] | 4560 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
| 4561 | bluetooth/bluetooth.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4562 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4563 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4564 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4565 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4566 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4567 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4569 | fi |
| 4570 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4571 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4572 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4573 | # Is the header compilable? |
| 4574 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4575 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4576 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4577 | /* confdefs.h. */ |
| 4578 | _ACEOF |
| 4579 | cat confdefs.h >>conftest.$ac_ext |
| 4580 | cat >>conftest.$ac_ext <<_ACEOF |
| 4581 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4582 | $ac_includes_default |
| 4583 | #include <$ac_header> |
| 4584 | _ACEOF |
| 4585 | rm -f conftest.$ac_objext |
| 4586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4587 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4588 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4589 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4590 | rm -f conftest.er1 |
| 4591 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4593 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4594 | { ac_try='test -z "$ac_c_werror_flag" |
| 4595 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4597 | (eval $ac_try) 2>&5 |
| 4598 | ac_status=$? |
| 4599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4600 | (exit $ac_status); }; } && |
| 4601 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4603 | (eval $ac_try) 2>&5 |
| 4604 | ac_status=$? |
| 4605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4606 | (exit $ac_status); }; }; then |
| 4607 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4608 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4609 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4611 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4612 | ac_header_compiler=no |
| 4613 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4614 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4615 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4616 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4617 | |
| 4618 | # Is the header present? |
| 4619 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4620 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4621 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4622 | /* confdefs.h. */ |
| 4623 | _ACEOF |
| 4624 | cat confdefs.h >>conftest.$ac_ext |
| 4625 | cat >>conftest.$ac_ext <<_ACEOF |
| 4626 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4627 | #include <$ac_header> |
| 4628 | _ACEOF |
| 4629 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4630 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4631 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4632 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4633 | rm -f conftest.er1 |
| 4634 | cat conftest.err >&5 |
| 4635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4636 | (exit $ac_status); } >/dev/null; then |
| 4637 | if test -s conftest.err; then |
| 4638 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4639 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4640 | else |
| 4641 | ac_cpp_err= |
| 4642 | fi |
| 4643 | else |
| 4644 | ac_cpp_err=yes |
| 4645 | fi |
| 4646 | if test -z "$ac_cpp_err"; then |
| 4647 | ac_header_preproc=yes |
| 4648 | else |
| 4649 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4650 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4651 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4652 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4653 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4654 | rm -f conftest.err conftest.$ac_ext |
| 4655 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4656 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4657 | |
| 4658 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4659 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4660 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4661 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4662 | 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] | 4663 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 4664 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 4665 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 4666 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4667 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 4668 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4669 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4670 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4671 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4672 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 4673 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 4674 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 4675 | 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] | 4676 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4677 | 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] | 4678 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 4679 | 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] | 4680 | ( |
| 4681 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 4682 | ## ------------------------------------------------ ## |
| 4683 | ## Report this to http://www.python.org/python-bugs ## |
| 4684 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4685 | _ASBOX |
| 4686 | ) | |
| 4687 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4688 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4689 | esac |
| 4690 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4691 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4692 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4694 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4695 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4696 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4697 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4698 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4699 | |
| 4700 | fi |
| 4701 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4702 | cat >>confdefs.h <<_ACEOF |
| 4703 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4704 | _ACEOF |
| 4705 | |
| 4706 | fi |
| 4707 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4708 | done |
| 4709 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4710 | |
| 4711 | |
| 4712 | |
| 4713 | |
| 4714 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4715 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4716 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 4717 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 4718 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 4719 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 4720 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4722 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4723 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4724 | /* confdefs.h. */ |
| 4725 | _ACEOF |
| 4726 | cat confdefs.h >>conftest.$ac_ext |
| 4727 | cat >>conftest.$ac_ext <<_ACEOF |
| 4728 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4729 | #include <sys/types.h> |
| 4730 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4731 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4732 | int |
| 4733 | main () |
| 4734 | { |
| 4735 | if ((DIR *) 0) |
| 4736 | return 0; |
| 4737 | ; |
| 4738 | return 0; |
| 4739 | } |
| 4740 | _ACEOF |
| 4741 | rm -f conftest.$ac_objext |
| 4742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4743 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4744 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4745 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4746 | rm -f conftest.er1 |
| 4747 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4749 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4750 | { ac_try='test -z "$ac_c_werror_flag" |
| 4751 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4753 | (eval $ac_try) 2>&5 |
| 4754 | ac_status=$? |
| 4755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4756 | (exit $ac_status); }; } && |
| 4757 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4759 | (eval $ac_try) 2>&5 |
| 4760 | ac_status=$? |
| 4761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4762 | (exit $ac_status); }; }; then |
| 4763 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4764 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4765 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4766 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4767 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4768 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4769 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4770 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4771 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4772 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4773 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4774 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4775 | cat >>confdefs.h <<_ACEOF |
| 4776 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4777 | _ACEOF |
| 4778 | |
| 4779 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4780 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4781 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4782 | done |
| 4783 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4784 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4785 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4786 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4787 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4789 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4790 | ac_func_search_save_LIBS=$LIBS |
| 4791 | ac_cv_search_opendir=no |
| 4792 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4793 | /* confdefs.h. */ |
| 4794 | _ACEOF |
| 4795 | cat confdefs.h >>conftest.$ac_ext |
| 4796 | cat >>conftest.$ac_ext <<_ACEOF |
| 4797 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4798 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4799 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4800 | #ifdef __cplusplus |
| 4801 | extern "C" |
| 4802 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4803 | /* 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] | 4804 | builtin and then its argument prototype would still apply. */ |
| 4805 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4806 | int |
| 4807 | main () |
| 4808 | { |
| 4809 | opendir (); |
| 4810 | ; |
| 4811 | return 0; |
| 4812 | } |
| 4813 | _ACEOF |
| 4814 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4815 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4816 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4817 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4818 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4819 | rm -f conftest.er1 |
| 4820 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4822 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4823 | { ac_try='test -z "$ac_c_werror_flag" |
| 4824 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4826 | (eval $ac_try) 2>&5 |
| 4827 | ac_status=$? |
| 4828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4829 | (exit $ac_status); }; } && |
| 4830 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4832 | (eval $ac_try) 2>&5 |
| 4833 | ac_status=$? |
| 4834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4835 | (exit $ac_status); }; }; then |
| 4836 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4837 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4838 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4839 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4840 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4841 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4842 | rm -f conftest.err conftest.$ac_objext \ |
| 4843 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4844 | if test "$ac_cv_search_opendir" = no; then |
| 4845 | for ac_lib in dir; do |
| 4846 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4847 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4848 | /* confdefs.h. */ |
| 4849 | _ACEOF |
| 4850 | cat confdefs.h >>conftest.$ac_ext |
| 4851 | cat >>conftest.$ac_ext <<_ACEOF |
| 4852 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4853 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4854 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4855 | #ifdef __cplusplus |
| 4856 | extern "C" |
| 4857 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4858 | /* 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] | 4859 | builtin and then its argument prototype would still apply. */ |
| 4860 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4861 | int |
| 4862 | main () |
| 4863 | { |
| 4864 | opendir (); |
| 4865 | ; |
| 4866 | return 0; |
| 4867 | } |
| 4868 | _ACEOF |
| 4869 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4870 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4871 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4872 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4873 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4874 | rm -f conftest.er1 |
| 4875 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4877 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4878 | { ac_try='test -z "$ac_c_werror_flag" |
| 4879 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4881 | (eval $ac_try) 2>&5 |
| 4882 | ac_status=$? |
| 4883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4884 | (exit $ac_status); }; } && |
| 4885 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4887 | (eval $ac_try) 2>&5 |
| 4888 | ac_status=$? |
| 4889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4890 | (exit $ac_status); }; }; then |
| 4891 | ac_cv_search_opendir="-l$ac_lib" |
| 4892 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4893 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4894 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4895 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4896 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4897 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4898 | rm -f conftest.err conftest.$ac_objext \ |
| 4899 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4900 | done |
| 4901 | fi |
| 4902 | LIBS=$ac_func_search_save_LIBS |
| 4903 | fi |
| 4904 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4905 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4906 | if test "$ac_cv_search_opendir" != no; then |
| 4907 | 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] | 4908 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4909 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4910 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4911 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4912 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4913 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4914 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4916 | else |
| 4917 | ac_func_search_save_LIBS=$LIBS |
| 4918 | ac_cv_search_opendir=no |
| 4919 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4920 | /* confdefs.h. */ |
| 4921 | _ACEOF |
| 4922 | cat confdefs.h >>conftest.$ac_ext |
| 4923 | cat >>conftest.$ac_ext <<_ACEOF |
| 4924 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4925 | |
| 4926 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4927 | #ifdef __cplusplus |
| 4928 | extern "C" |
| 4929 | #endif |
| 4930 | /* We use char because int might match the return type of a gcc2 |
| 4931 | builtin and then its argument prototype would still apply. */ |
| 4932 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4933 | int |
| 4934 | main () |
| 4935 | { |
| 4936 | opendir (); |
| 4937 | ; |
| 4938 | return 0; |
| 4939 | } |
| 4940 | _ACEOF |
| 4941 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4942 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4943 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4944 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4946 | rm -f conftest.er1 |
| 4947 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4949 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4950 | { ac_try='test -z "$ac_c_werror_flag" |
| 4951 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4953 | (eval $ac_try) 2>&5 |
| 4954 | ac_status=$? |
| 4955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4956 | (exit $ac_status); }; } && |
| 4957 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4959 | (eval $ac_try) 2>&5 |
| 4960 | ac_status=$? |
| 4961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4962 | (exit $ac_status); }; }; then |
| 4963 | ac_cv_search_opendir="none required" |
| 4964 | else |
| 4965 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4966 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4967 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4968 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4969 | rm -f conftest.err conftest.$ac_objext \ |
| 4970 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4971 | if test "$ac_cv_search_opendir" = no; then |
| 4972 | for ac_lib in x; do |
| 4973 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4974 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4975 | /* confdefs.h. */ |
| 4976 | _ACEOF |
| 4977 | cat confdefs.h >>conftest.$ac_ext |
| 4978 | cat >>conftest.$ac_ext <<_ACEOF |
| 4979 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4980 | |
| 4981 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4982 | #ifdef __cplusplus |
| 4983 | extern "C" |
| 4984 | #endif |
| 4985 | /* We use char because int might match the return type of a gcc2 |
| 4986 | builtin and then its argument prototype would still apply. */ |
| 4987 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4988 | int |
| 4989 | main () |
| 4990 | { |
| 4991 | opendir (); |
| 4992 | ; |
| 4993 | return 0; |
| 4994 | } |
| 4995 | _ACEOF |
| 4996 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4997 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4998 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4999 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5000 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5001 | rm -f conftest.er1 |
| 5002 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5004 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5005 | { ac_try='test -z "$ac_c_werror_flag" |
| 5006 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5008 | (eval $ac_try) 2>&5 |
| 5009 | ac_status=$? |
| 5010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5011 | (exit $ac_status); }; } && |
| 5012 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5014 | (eval $ac_try) 2>&5 |
| 5015 | ac_status=$? |
| 5016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5017 | (exit $ac_status); }; }; then |
| 5018 | ac_cv_search_opendir="-l$ac_lib" |
| 5019 | break |
| 5020 | else |
| 5021 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5023 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5024 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5025 | rm -f conftest.err conftest.$ac_objext \ |
| 5026 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5027 | done |
| 5028 | fi |
| 5029 | LIBS=$ac_func_search_save_LIBS |
| 5030 | fi |
| 5031 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5032 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 5033 | if test "$ac_cv_search_opendir" != no; then |
| 5034 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 5035 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5036 | fi |
| 5037 | |
| 5038 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5039 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5040 | echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 5041 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 |
| 5042 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 5043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5044 | else |
| 5045 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5046 | /* confdefs.h. */ |
| 5047 | _ACEOF |
| 5048 | cat confdefs.h >>conftest.$ac_ext |
| 5049 | cat >>conftest.$ac_ext <<_ACEOF |
| 5050 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5051 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5052 | int |
| 5053 | main () |
| 5054 | { |
| 5055 | return makedev(0, 0); |
| 5056 | ; |
| 5057 | return 0; |
| 5058 | } |
| 5059 | _ACEOF |
| 5060 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5061 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5062 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5063 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5064 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5065 | rm -f conftest.er1 |
| 5066 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5068 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5069 | { ac_try='test -z "$ac_c_werror_flag" |
| 5070 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5072 | (eval $ac_try) 2>&5 |
| 5073 | ac_status=$? |
| 5074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5075 | (exit $ac_status); }; } && |
| 5076 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5078 | (eval $ac_try) 2>&5 |
| 5079 | ac_status=$? |
| 5080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5081 | (exit $ac_status); }; }; then |
| 5082 | ac_cv_header_sys_types_h_makedev=yes |
| 5083 | else |
| 5084 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5086 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5087 | ac_cv_header_sys_types_h_makedev=no |
| 5088 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5089 | rm -f conftest.err conftest.$ac_objext \ |
| 5090 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5091 | |
| 5092 | fi |
| 5093 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 5094 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 |
| 5095 | |
| 5096 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 5097 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5098 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5099 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 5100 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5102 | fi |
| 5103 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5104 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 5105 | else |
| 5106 | # Is the header compilable? |
| 5107 | echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 5108 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 |
| 5109 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5110 | /* confdefs.h. */ |
| 5111 | _ACEOF |
| 5112 | cat confdefs.h >>conftest.$ac_ext |
| 5113 | cat >>conftest.$ac_ext <<_ACEOF |
| 5114 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5115 | $ac_includes_default |
| 5116 | #include <sys/mkdev.h> |
| 5117 | _ACEOF |
| 5118 | rm -f conftest.$ac_objext |
| 5119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5120 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5121 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5122 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5123 | rm -f conftest.er1 |
| 5124 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5126 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5127 | { ac_try='test -z "$ac_c_werror_flag" |
| 5128 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5130 | (eval $ac_try) 2>&5 |
| 5131 | ac_status=$? |
| 5132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5133 | (exit $ac_status); }; } && |
| 5134 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5136 | (eval $ac_try) 2>&5 |
| 5137 | ac_status=$? |
| 5138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5139 | (exit $ac_status); }; }; then |
| 5140 | ac_header_compiler=yes |
| 5141 | else |
| 5142 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5143 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5144 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5145 | ac_header_compiler=no |
| 5146 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5147 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5148 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5149 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5150 | |
| 5151 | # Is the header present? |
| 5152 | echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 5153 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 |
| 5154 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5155 | /* confdefs.h. */ |
| 5156 | _ACEOF |
| 5157 | cat confdefs.h >>conftest.$ac_ext |
| 5158 | cat >>conftest.$ac_ext <<_ACEOF |
| 5159 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5160 | #include <sys/mkdev.h> |
| 5161 | _ACEOF |
| 5162 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5163 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5164 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5165 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5166 | rm -f conftest.er1 |
| 5167 | cat conftest.err >&5 |
| 5168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5169 | (exit $ac_status); } >/dev/null; then |
| 5170 | if test -s conftest.err; then |
| 5171 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5172 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5173 | else |
| 5174 | ac_cpp_err= |
| 5175 | fi |
| 5176 | else |
| 5177 | ac_cpp_err=yes |
| 5178 | fi |
| 5179 | if test -z "$ac_cpp_err"; then |
| 5180 | ac_header_preproc=yes |
| 5181 | else |
| 5182 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5184 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5185 | ac_header_preproc=no |
| 5186 | fi |
| 5187 | rm -f conftest.err conftest.$ac_ext |
| 5188 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5189 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5190 | |
| 5191 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5192 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5193 | yes:no: ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5194 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5195 | 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] | 5196 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 5197 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;} |
| 5198 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5199 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5200 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5201 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 5202 | 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] | 5203 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 5204 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 5205 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 5206 | echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 5207 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5208 | 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] | 5209 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 5210 | 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] | 5211 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 5212 | 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] | 5213 | ( |
| 5214 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 5215 | ## ------------------------------------------------ ## |
| 5216 | ## Report this to http://www.python.org/python-bugs ## |
| 5217 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5218 | _ASBOX |
| 5219 | ) | |
| 5220 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5221 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5222 | esac |
| 5223 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5224 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 5225 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5227 | else |
| 5228 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 5229 | fi |
| 5230 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5231 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 5232 | |
| 5233 | fi |
| 5234 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 5235 | |
| 5236 | cat >>confdefs.h <<\_ACEOF |
| 5237 | #define MAJOR_IN_MKDEV 1 |
| 5238 | _ACEOF |
| 5239 | |
| 5240 | fi |
| 5241 | |
| 5242 | |
| 5243 | |
| 5244 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 5245 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5246 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 5247 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 5248 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5250 | fi |
| 5251 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 5252 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 5253 | else |
| 5254 | # Is the header compilable? |
| 5255 | echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 5256 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 |
| 5257 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5258 | /* confdefs.h. */ |
| 5259 | _ACEOF |
| 5260 | cat confdefs.h >>conftest.$ac_ext |
| 5261 | cat >>conftest.$ac_ext <<_ACEOF |
| 5262 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5263 | $ac_includes_default |
| 5264 | #include <sys/sysmacros.h> |
| 5265 | _ACEOF |
| 5266 | rm -f conftest.$ac_objext |
| 5267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5268 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5269 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5270 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5271 | rm -f conftest.er1 |
| 5272 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5274 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5275 | { ac_try='test -z "$ac_c_werror_flag" |
| 5276 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5278 | (eval $ac_try) 2>&5 |
| 5279 | ac_status=$? |
| 5280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5281 | (exit $ac_status); }; } && |
| 5282 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5284 | (eval $ac_try) 2>&5 |
| 5285 | ac_status=$? |
| 5286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5287 | (exit $ac_status); }; }; then |
| 5288 | ac_header_compiler=yes |
| 5289 | else |
| 5290 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5291 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5292 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5293 | ac_header_compiler=no |
| 5294 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5295 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5296 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5297 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5298 | |
| 5299 | # Is the header present? |
| 5300 | echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 5301 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 |
| 5302 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5303 | /* confdefs.h. */ |
| 5304 | _ACEOF |
| 5305 | cat confdefs.h >>conftest.$ac_ext |
| 5306 | cat >>conftest.$ac_ext <<_ACEOF |
| 5307 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5308 | #include <sys/sysmacros.h> |
| 5309 | _ACEOF |
| 5310 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5311 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5312 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5313 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5314 | rm -f conftest.er1 |
| 5315 | cat conftest.err >&5 |
| 5316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5317 | (exit $ac_status); } >/dev/null; then |
| 5318 | if test -s conftest.err; then |
| 5319 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5320 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5321 | else |
| 5322 | ac_cpp_err= |
| 5323 | fi |
| 5324 | else |
| 5325 | ac_cpp_err=yes |
| 5326 | fi |
| 5327 | if test -z "$ac_cpp_err"; then |
| 5328 | ac_header_preproc=yes |
| 5329 | else |
| 5330 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5331 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5332 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5333 | ac_header_preproc=no |
| 5334 | fi |
| 5335 | rm -f conftest.err conftest.$ac_ext |
| 5336 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5337 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5338 | |
| 5339 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5340 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5341 | yes:no: ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5342 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5343 | 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] | 5344 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 5345 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} |
| 5346 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5347 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5348 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5349 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 5350 | 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] | 5351 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 5352 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 5353 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 5354 | echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 5355 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5356 | 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] | 5357 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 5358 | 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] | 5359 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 5360 | 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] | 5361 | ( |
| 5362 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 5363 | ## ------------------------------------------------ ## |
| 5364 | ## Report this to http://www.python.org/python-bugs ## |
| 5365 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5366 | _ASBOX |
| 5367 | ) | |
| 5368 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5369 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5370 | esac |
| 5371 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 5372 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 5373 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5375 | else |
| 5376 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 5377 | fi |
| 5378 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 5379 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 5380 | |
| 5381 | fi |
| 5382 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 5383 | |
| 5384 | cat >>confdefs.h <<\_ACEOF |
| 5385 | #define MAJOR_IN_SYSMACROS 1 |
| 5386 | _ACEOF |
| 5387 | |
| 5388 | fi |
| 5389 | |
| 5390 | |
| 5391 | fi |
| 5392 | fi |
| 5393 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5394 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5395 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5396 | |
| 5397 | for ac_header in term.h |
| 5398 | do |
| 5399 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5400 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5401 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5402 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5404 | else |
| 5405 | cat >conftest.$ac_ext <<_ACEOF |
| 5406 | /* confdefs.h. */ |
| 5407 | _ACEOF |
| 5408 | cat confdefs.h >>conftest.$ac_ext |
| 5409 | cat >>conftest.$ac_ext <<_ACEOF |
| 5410 | /* end confdefs.h. */ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5411 | |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 5412 | #ifdef HAVE_CURSES_H |
| 5413 | #include <curses.h> |
| 5414 | #endif |
| 5415 | |
| 5416 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5417 | #include <$ac_header> |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5418 | _ACEOF |
| 5419 | rm -f conftest.$ac_objext |
| 5420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5421 | (eval $ac_compile) 2>conftest.er1 |
| 5422 | ac_status=$? |
| 5423 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5424 | rm -f conftest.er1 |
| 5425 | cat conftest.err >&5 |
| 5426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5427 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5428 | { ac_try='test -z "$ac_c_werror_flag" |
| 5429 | || test ! -s conftest.err' |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5431 | (eval $ac_try) 2>&5 |
| 5432 | ac_status=$? |
| 5433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5434 | (exit $ac_status); }; } && |
| 5435 | { ac_try='test -s conftest.$ac_objext' |
| 5436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5437 | (eval $ac_try) 2>&5 |
| 5438 | ac_status=$? |
| 5439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5440 | (exit $ac_status); }; }; then |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5441 | eval "$as_ac_Header=yes" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5442 | else |
| 5443 | echo "$as_me: failed program was:" >&5 |
| 5444 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5445 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5446 | eval "$as_ac_Header=no" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5447 | fi |
| 5448 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5449 | fi |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5450 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5451 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5452 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5453 | cat >>confdefs.h <<_ACEOF |
| 5454 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5455 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5456 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5457 | fi |
| 5458 | |
| 5459 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5460 | |
| 5461 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5462 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5463 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5464 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 5465 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 5466 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5467 | /* confdefs.h. */ |
| 5468 | _ACEOF |
| 5469 | cat confdefs.h >>conftest.$ac_ext |
| 5470 | cat >>conftest.$ac_ext <<_ACEOF |
| 5471 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5472 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5473 | |
| 5474 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5475 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5476 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5477 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5478 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5479 | |
| 5480 | |
| 5481 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5482 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5483 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5484 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 5485 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5486 | fi |
| 5487 | rm -f conftest* |
| 5488 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5489 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 5490 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5491 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5492 | # Check whether using makedev requires defining _OSF_SOURCE |
| 5493 | echo "$as_me:$LINENO: checking for makedev" >&5 |
| 5494 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6 |
| 5495 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5496 | /* confdefs.h. */ |
| 5497 | _ACEOF |
| 5498 | cat confdefs.h >>conftest.$ac_ext |
| 5499 | cat >>conftest.$ac_ext <<_ACEOF |
| 5500 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5501 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5502 | int |
| 5503 | main () |
| 5504 | { |
| 5505 | makedev(0, 0) |
| 5506 | ; |
| 5507 | return 0; |
| 5508 | } |
| 5509 | _ACEOF |
| 5510 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5511 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5512 | (eval $ac_link) 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5513 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5514 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5515 | rm -f conftest.er1 |
| 5516 | cat conftest.err >&5 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5518 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5519 | { ac_try='test -z "$ac_c_werror_flag" |
| 5520 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5522 | (eval $ac_try) 2>&5 |
| 5523 | ac_status=$? |
| 5524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5525 | (exit $ac_status); }; } && |
| 5526 | { ac_try='test -s conftest$ac_exeext' |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5528 | (eval $ac_try) 2>&5 |
| 5529 | ac_status=$? |
| 5530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5531 | (exit $ac_status); }; }; then |
| 5532 | ac_cv_has_makedev=yes |
| 5533 | else |
| 5534 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5535 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5536 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5537 | ac_cv_has_makedev=no |
| 5538 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5539 | rm -f conftest.err conftest.$ac_objext \ |
| 5540 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5541 | if test "$ac_cv_has_makedev" = "no"; then |
| 5542 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 5543 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5544 | /* confdefs.h. */ |
| 5545 | _ACEOF |
| 5546 | cat confdefs.h >>conftest.$ac_ext |
| 5547 | cat >>conftest.$ac_ext <<_ACEOF |
| 5548 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5549 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5550 | #define _OSF_SOURCE 1 |
| 5551 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5552 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5553 | int |
| 5554 | main () |
| 5555 | { |
| 5556 | makedev(0, 0) |
| 5557 | ; |
| 5558 | return 0; |
| 5559 | } |
| 5560 | _ACEOF |
| 5561 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5562 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5563 | (eval $ac_link) 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5564 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5566 | rm -f conftest.er1 |
| 5567 | cat conftest.err >&5 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5569 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5570 | { ac_try='test -z "$ac_c_werror_flag" |
| 5571 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5573 | (eval $ac_try) 2>&5 |
| 5574 | ac_status=$? |
| 5575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5576 | (exit $ac_status); }; } && |
| 5577 | { ac_try='test -s conftest$ac_exeext' |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5579 | (eval $ac_try) 2>&5 |
| 5580 | ac_status=$? |
| 5581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5582 | (exit $ac_status); }; }; then |
| 5583 | ac_cv_has_makedev=yes |
| 5584 | else |
| 5585 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5586 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5587 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5588 | ac_cv_has_makedev=no |
| 5589 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5590 | rm -f conftest.err conftest.$ac_objext \ |
| 5591 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5592 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5593 | |
| 5594 | cat >>confdefs.h <<\_ACEOF |
| 5595 | #define _OSF_SOURCE 1 |
| 5596 | _ACEOF |
| 5597 | |
| 5598 | fi |
| 5599 | fi |
| 5600 | echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 5601 | echo "${ECHO_T}$ac_cv_has_makedev" >&6 |
| 5602 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5603 | |
| 5604 | cat >>confdefs.h <<\_ACEOF |
| 5605 | #define HAVE_MAKEDEV 1 |
| 5606 | _ACEOF |
| 5607 | |
| 5608 | fi |
| 5609 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5610 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 5611 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 5612 | # defined, but the compiler does not support pragma redefine_extname, |
| 5613 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 5614 | # structures (such as rlimit64) without declaring them. As a |
| 5615 | # work-around, disable LFS on such configurations |
| 5616 | |
| 5617 | use_lfs=yes |
| 5618 | echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 5619 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6 |
| 5620 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5621 | /* confdefs.h. */ |
| 5622 | _ACEOF |
| 5623 | cat confdefs.h >>conftest.$ac_ext |
| 5624 | cat >>conftest.$ac_ext <<_ACEOF |
| 5625 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5626 | |
| 5627 | #define _LARGEFILE_SOURCE 1 |
| 5628 | #define _FILE_OFFSET_BITS 64 |
| 5629 | #include <sys/resource.h> |
| 5630 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5631 | int |
| 5632 | main () |
| 5633 | { |
| 5634 | struct rlimit foo; |
| 5635 | ; |
| 5636 | return 0; |
| 5637 | } |
| 5638 | _ACEOF |
| 5639 | rm -f conftest.$ac_objext |
| 5640 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5641 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5642 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5643 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5644 | rm -f conftest.er1 |
| 5645 | cat conftest.err >&5 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5647 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5648 | { ac_try='test -z "$ac_c_werror_flag" |
| 5649 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5651 | (eval $ac_try) 2>&5 |
| 5652 | ac_status=$? |
| 5653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5654 | (exit $ac_status); }; } && |
| 5655 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5657 | (eval $ac_try) 2>&5 |
| 5658 | ac_status=$? |
| 5659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5660 | (exit $ac_status); }; }; then |
| 5661 | sol_lfs_bug=no |
| 5662 | else |
| 5663 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5665 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5666 | sol_lfs_bug=yes |
| 5667 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5668 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5669 | echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 5670 | echo "${ECHO_T}$sol_lfs_bug" >&6 |
| 5671 | if test "$sol_lfs_bug" = "yes"; then |
| 5672 | use_lfs=no |
| 5673 | fi |
| 5674 | |
| 5675 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5676 | # Two defines needed to enable largefile support on various platforms |
| 5677 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5678 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5679 | cat >>confdefs.h <<\_ACEOF |
| 5680 | #define _LARGEFILE_SOURCE 1 |
| 5681 | _ACEOF |
| 5682 | |
| 5683 | |
| 5684 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5685 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5686 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5687 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5688 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5689 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 5690 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 5691 | cat >> confdefs.h <<\EOF |
| 5692 | #if defined(SCO_DS) |
| 5693 | #undef _OFF_T |
| 5694 | #endif |
| 5695 | EOF |
| 5696 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5697 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5698 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 5699 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 5700 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 5701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5702 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5703 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5704 | /* confdefs.h. */ |
| 5705 | _ACEOF |
| 5706 | cat confdefs.h >>conftest.$ac_ext |
| 5707 | cat >>conftest.$ac_ext <<_ACEOF |
| 5708 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5709 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5710 | int |
| 5711 | main () |
| 5712 | { |
| 5713 | if ((mode_t *) 0) |
| 5714 | return 0; |
| 5715 | if (sizeof (mode_t)) |
| 5716 | return 0; |
| 5717 | ; |
| 5718 | return 0; |
| 5719 | } |
| 5720 | _ACEOF |
| 5721 | rm -f conftest.$ac_objext |
| 5722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5723 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5724 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5725 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5726 | rm -f conftest.er1 |
| 5727 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5729 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5730 | { ac_try='test -z "$ac_c_werror_flag" |
| 5731 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5733 | (eval $ac_try) 2>&5 |
| 5734 | ac_status=$? |
| 5735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5736 | (exit $ac_status); }; } && |
| 5737 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5739 | (eval $ac_try) 2>&5 |
| 5740 | ac_status=$? |
| 5741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5742 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5743 | ac_cv_type_mode_t=yes |
| 5744 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5745 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5747 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5748 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5749 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5750 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5751 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5752 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 5753 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 5754 | if test $ac_cv_type_mode_t = yes; then |
| 5755 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5756 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5757 | |
| 5758 | cat >>confdefs.h <<_ACEOF |
| 5759 | #define mode_t int |
| 5760 | _ACEOF |
| 5761 | |
| 5762 | fi |
| 5763 | |
| 5764 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5765 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 5766 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5768 | else |
| 5769 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5770 | /* confdefs.h. */ |
| 5771 | _ACEOF |
| 5772 | cat confdefs.h >>conftest.$ac_ext |
| 5773 | cat >>conftest.$ac_ext <<_ACEOF |
| 5774 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5775 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5776 | int |
| 5777 | main () |
| 5778 | { |
| 5779 | if ((off_t *) 0) |
| 5780 | return 0; |
| 5781 | if (sizeof (off_t)) |
| 5782 | return 0; |
| 5783 | ; |
| 5784 | return 0; |
| 5785 | } |
| 5786 | _ACEOF |
| 5787 | rm -f conftest.$ac_objext |
| 5788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5789 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5790 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5791 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5792 | rm -f conftest.er1 |
| 5793 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5795 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5796 | { ac_try='test -z "$ac_c_werror_flag" |
| 5797 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5799 | (eval $ac_try) 2>&5 |
| 5800 | ac_status=$? |
| 5801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5802 | (exit $ac_status); }; } && |
| 5803 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5805 | (eval $ac_try) 2>&5 |
| 5806 | ac_status=$? |
| 5807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5808 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5809 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5810 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5811 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5813 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5814 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5815 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5816 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5817 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5818 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5819 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 5820 | if test $ac_cv_type_off_t = yes; then |
| 5821 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5822 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5823 | |
| 5824 | cat >>confdefs.h <<_ACEOF |
| 5825 | #define off_t long |
| 5826 | _ACEOF |
| 5827 | |
| 5828 | fi |
| 5829 | |
| 5830 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 5831 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 5832 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 5833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5834 | else |
| 5835 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5836 | /* confdefs.h. */ |
| 5837 | _ACEOF |
| 5838 | cat confdefs.h >>conftest.$ac_ext |
| 5839 | cat >>conftest.$ac_ext <<_ACEOF |
| 5840 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5841 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5842 | int |
| 5843 | main () |
| 5844 | { |
| 5845 | if ((pid_t *) 0) |
| 5846 | return 0; |
| 5847 | if (sizeof (pid_t)) |
| 5848 | return 0; |
| 5849 | ; |
| 5850 | return 0; |
| 5851 | } |
| 5852 | _ACEOF |
| 5853 | rm -f conftest.$ac_objext |
| 5854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5855 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5856 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5857 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5858 | rm -f conftest.er1 |
| 5859 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5861 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5862 | { ac_try='test -z "$ac_c_werror_flag" |
| 5863 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5865 | (eval $ac_try) 2>&5 |
| 5866 | ac_status=$? |
| 5867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5868 | (exit $ac_status); }; } && |
| 5869 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5871 | (eval $ac_try) 2>&5 |
| 5872 | ac_status=$? |
| 5873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5874 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5875 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5876 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5877 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5879 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5880 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5881 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5882 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5883 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5884 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 5885 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 5886 | if test $ac_cv_type_pid_t = yes; then |
| 5887 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5888 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5889 | |
| 5890 | cat >>confdefs.h <<_ACEOF |
| 5891 | #define pid_t int |
| 5892 | _ACEOF |
| 5893 | |
| 5894 | fi |
| 5895 | |
| 5896 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 5897 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 5898 | if test "${ac_cv_type_signal+set}" = set; then |
| 5899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5900 | else |
| 5901 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5902 | /* confdefs.h. */ |
| 5903 | _ACEOF |
| 5904 | cat confdefs.h >>conftest.$ac_ext |
| 5905 | cat >>conftest.$ac_ext <<_ACEOF |
| 5906 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5907 | #include <sys/types.h> |
| 5908 | #include <signal.h> |
| 5909 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5910 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5911 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5912 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5913 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 5914 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5915 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5916 | #endif |
| 5917 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5918 | int |
| 5919 | main () |
| 5920 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5921 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5922 | ; |
| 5923 | return 0; |
| 5924 | } |
| 5925 | _ACEOF |
| 5926 | rm -f conftest.$ac_objext |
| 5927 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5928 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5929 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5930 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5931 | rm -f conftest.er1 |
| 5932 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5934 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5935 | { ac_try='test -z "$ac_c_werror_flag" |
| 5936 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5938 | (eval $ac_try) 2>&5 |
| 5939 | ac_status=$? |
| 5940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5941 | (exit $ac_status); }; } && |
| 5942 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5944 | (eval $ac_try) 2>&5 |
| 5945 | ac_status=$? |
| 5946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5947 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5948 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5949 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5950 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5951 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5952 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5953 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5954 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5955 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5956 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5957 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 5958 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5959 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5960 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5961 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5962 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5963 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5964 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5965 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5966 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 5967 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5969 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5970 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5971 | /* confdefs.h. */ |
| 5972 | _ACEOF |
| 5973 | cat confdefs.h >>conftest.$ac_ext |
| 5974 | cat >>conftest.$ac_ext <<_ACEOF |
| 5975 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5976 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5977 | int |
| 5978 | main () |
| 5979 | { |
| 5980 | if ((size_t *) 0) |
| 5981 | return 0; |
| 5982 | if (sizeof (size_t)) |
| 5983 | return 0; |
| 5984 | ; |
| 5985 | return 0; |
| 5986 | } |
| 5987 | _ACEOF |
| 5988 | rm -f conftest.$ac_objext |
| 5989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5990 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5991 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5992 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5993 | rm -f conftest.er1 |
| 5994 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5996 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5997 | { ac_try='test -z "$ac_c_werror_flag" |
| 5998 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6000 | (eval $ac_try) 2>&5 |
| 6001 | ac_status=$? |
| 6002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6003 | (exit $ac_status); }; } && |
| 6004 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6006 | (eval $ac_try) 2>&5 |
| 6007 | ac_status=$? |
| 6008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6009 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6010 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6011 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6012 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6013 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6014 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6015 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6016 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6017 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6018 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6019 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 6020 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 6021 | if test $ac_cv_type_size_t = yes; then |
| 6022 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6023 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6024 | |
| 6025 | cat >>confdefs.h <<_ACEOF |
| 6026 | #define size_t unsigned |
| 6027 | _ACEOF |
| 6028 | |
| 6029 | fi |
| 6030 | |
| 6031 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 6032 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 6033 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 6034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6035 | else |
| 6036 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6037 | /* confdefs.h. */ |
| 6038 | _ACEOF |
| 6039 | cat confdefs.h >>conftest.$ac_ext |
| 6040 | cat >>conftest.$ac_ext <<_ACEOF |
| 6041 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6042 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6043 | |
| 6044 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6045 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6046 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6047 | ac_cv_type_uid_t=yes |
| 6048 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6049 | ac_cv_type_uid_t=no |
| 6050 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6051 | rm -f conftest* |
| 6052 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6053 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6054 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 6055 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6056 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6057 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6058 | cat >>confdefs.h <<\_ACEOF |
| 6059 | #define uid_t int |
| 6060 | _ACEOF |
| 6061 | |
| 6062 | |
| 6063 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6064 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6065 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6066 | |
| 6067 | fi |
| 6068 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6069 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6070 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 6071 | # 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] | 6072 | echo "$as_me:$LINENO: checking for int" >&5 |
| 6073 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 6074 | if test "${ac_cv_type_int+set}" = set; then |
| 6075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6076 | else |
| 6077 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6078 | /* confdefs.h. */ |
| 6079 | _ACEOF |
| 6080 | cat confdefs.h >>conftest.$ac_ext |
| 6081 | cat >>conftest.$ac_ext <<_ACEOF |
| 6082 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6083 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6084 | int |
| 6085 | main () |
| 6086 | { |
| 6087 | if ((int *) 0) |
| 6088 | return 0; |
| 6089 | if (sizeof (int)) |
| 6090 | return 0; |
| 6091 | ; |
| 6092 | return 0; |
| 6093 | } |
| 6094 | _ACEOF |
| 6095 | rm -f conftest.$ac_objext |
| 6096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6097 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6098 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6099 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6100 | rm -f conftest.er1 |
| 6101 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6103 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6104 | { ac_try='test -z "$ac_c_werror_flag" |
| 6105 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6107 | (eval $ac_try) 2>&5 |
| 6108 | ac_status=$? |
| 6109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6110 | (exit $ac_status); }; } && |
| 6111 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6113 | (eval $ac_try) 2>&5 |
| 6114 | ac_status=$? |
| 6115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6116 | (exit $ac_status); }; }; then |
| 6117 | ac_cv_type_int=yes |
| 6118 | else |
| 6119 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6120 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6121 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6122 | ac_cv_type_int=no |
| 6123 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6124 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6125 | fi |
| 6126 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 6127 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 6128 | |
| 6129 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 6130 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 6131 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 6132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6133 | else |
| 6134 | if test "$ac_cv_type_int" = yes; then |
| 6135 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6136 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6137 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6138 | # This bug is HP SR number 8606223364. |
| 6139 | if test "$cross_compiling" = yes; then |
| 6140 | # Depending upon the size, compute the lo and hi bounds. |
| 6141 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6142 | /* confdefs.h. */ |
| 6143 | _ACEOF |
| 6144 | cat confdefs.h >>conftest.$ac_ext |
| 6145 | cat >>conftest.$ac_ext <<_ACEOF |
| 6146 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6147 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6148 | int |
| 6149 | main () |
| 6150 | { |
| 6151 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 6152 | test_array [0] = 0 |
| 6153 | |
| 6154 | ; |
| 6155 | return 0; |
| 6156 | } |
| 6157 | _ACEOF |
| 6158 | rm -f conftest.$ac_objext |
| 6159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6160 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6161 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6162 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6163 | rm -f conftest.er1 |
| 6164 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6166 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6167 | { ac_try='test -z "$ac_c_werror_flag" |
| 6168 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6170 | (eval $ac_try) 2>&5 |
| 6171 | ac_status=$? |
| 6172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6173 | (exit $ac_status); }; } && |
| 6174 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6176 | (eval $ac_try) 2>&5 |
| 6177 | ac_status=$? |
| 6178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6179 | (exit $ac_status); }; }; then |
| 6180 | ac_lo=0 ac_mid=0 |
| 6181 | while :; do |
| 6182 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6183 | /* confdefs.h. */ |
| 6184 | _ACEOF |
| 6185 | cat confdefs.h >>conftest.$ac_ext |
| 6186 | cat >>conftest.$ac_ext <<_ACEOF |
| 6187 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6188 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6189 | int |
| 6190 | main () |
| 6191 | { |
| 6192 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 6193 | test_array [0] = 0 |
| 6194 | |
| 6195 | ; |
| 6196 | return 0; |
| 6197 | } |
| 6198 | _ACEOF |
| 6199 | rm -f conftest.$ac_objext |
| 6200 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6201 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6202 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6203 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6204 | rm -f conftest.er1 |
| 6205 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6207 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6208 | { ac_try='test -z "$ac_c_werror_flag" |
| 6209 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6211 | (eval $ac_try) 2>&5 |
| 6212 | ac_status=$? |
| 6213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6214 | (exit $ac_status); }; } && |
| 6215 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6217 | (eval $ac_try) 2>&5 |
| 6218 | ac_status=$? |
| 6219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6220 | (exit $ac_status); }; }; then |
| 6221 | ac_hi=$ac_mid; break |
| 6222 | else |
| 6223 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6225 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6226 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6227 | if test $ac_lo -le $ac_mid; then |
| 6228 | ac_lo= ac_hi= |
| 6229 | break |
| 6230 | fi |
| 6231 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6232 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6233 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6234 | done |
| 6235 | else |
| 6236 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6237 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6238 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6239 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6240 | /* confdefs.h. */ |
| 6241 | _ACEOF |
| 6242 | cat confdefs.h >>conftest.$ac_ext |
| 6243 | cat >>conftest.$ac_ext <<_ACEOF |
| 6244 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6245 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6246 | int |
| 6247 | main () |
| 6248 | { |
| 6249 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 6250 | test_array [0] = 0 |
| 6251 | |
| 6252 | ; |
| 6253 | return 0; |
| 6254 | } |
| 6255 | _ACEOF |
| 6256 | rm -f conftest.$ac_objext |
| 6257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6258 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6259 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6260 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6261 | rm -f conftest.er1 |
| 6262 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6264 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6265 | { ac_try='test -z "$ac_c_werror_flag" |
| 6266 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6268 | (eval $ac_try) 2>&5 |
| 6269 | ac_status=$? |
| 6270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6271 | (exit $ac_status); }; } && |
| 6272 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6274 | (eval $ac_try) 2>&5 |
| 6275 | ac_status=$? |
| 6276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6277 | (exit $ac_status); }; }; then |
| 6278 | ac_hi=-1 ac_mid=-1 |
| 6279 | while :; do |
| 6280 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6281 | /* confdefs.h. */ |
| 6282 | _ACEOF |
| 6283 | cat confdefs.h >>conftest.$ac_ext |
| 6284 | cat >>conftest.$ac_ext <<_ACEOF |
| 6285 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6286 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6287 | int |
| 6288 | main () |
| 6289 | { |
| 6290 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 6291 | test_array [0] = 0 |
| 6292 | |
| 6293 | ; |
| 6294 | return 0; |
| 6295 | } |
| 6296 | _ACEOF |
| 6297 | rm -f conftest.$ac_objext |
| 6298 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6299 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6300 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6301 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6302 | rm -f conftest.er1 |
| 6303 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6305 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6306 | { ac_try='test -z "$ac_c_werror_flag" |
| 6307 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6309 | (eval $ac_try) 2>&5 |
| 6310 | ac_status=$? |
| 6311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6312 | (exit $ac_status); }; } && |
| 6313 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6315 | (eval $ac_try) 2>&5 |
| 6316 | ac_status=$? |
| 6317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6318 | (exit $ac_status); }; }; then |
| 6319 | ac_lo=$ac_mid; break |
| 6320 | else |
| 6321 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6322 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6323 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6324 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6325 | if test $ac_mid -le $ac_hi; then |
| 6326 | ac_lo= ac_hi= |
| 6327 | break |
| 6328 | fi |
| 6329 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6330 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6331 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6332 | done |
| 6333 | else |
| 6334 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6335 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6336 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6337 | ac_lo= ac_hi= |
| 6338 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6339 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | # Binary search between lo and hi bounds. |
| 6343 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6344 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6345 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6346 | /* confdefs.h. */ |
| 6347 | _ACEOF |
| 6348 | cat confdefs.h >>conftest.$ac_ext |
| 6349 | cat >>conftest.$ac_ext <<_ACEOF |
| 6350 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6351 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6352 | int |
| 6353 | main () |
| 6354 | { |
| 6355 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 6356 | test_array [0] = 0 |
| 6357 | |
| 6358 | ; |
| 6359 | return 0; |
| 6360 | } |
| 6361 | _ACEOF |
| 6362 | rm -f conftest.$ac_objext |
| 6363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6364 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6365 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6366 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6367 | rm -f conftest.er1 |
| 6368 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6370 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6371 | { ac_try='test -z "$ac_c_werror_flag" |
| 6372 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6374 | (eval $ac_try) 2>&5 |
| 6375 | ac_status=$? |
| 6376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6377 | (exit $ac_status); }; } && |
| 6378 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6380 | (eval $ac_try) 2>&5 |
| 6381 | ac_status=$? |
| 6382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6383 | (exit $ac_status); }; }; then |
| 6384 | ac_hi=$ac_mid |
| 6385 | else |
| 6386 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6387 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6388 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6389 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6390 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6391 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6392 | done |
| 6393 | case $ac_lo in |
| 6394 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6395 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 6396 | See \`config.log' for more details." >&5 |
| 6397 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 6398 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6399 | { (exit 1); exit 1; }; } ;; |
| 6400 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6401 | else |
| 6402 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6403 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6404 | See \`config.log' for more details." >&5 |
| 6405 | echo "$as_me: error: cannot run test program while cross compiling |
| 6406 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6407 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6408 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6409 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6410 | /* confdefs.h. */ |
| 6411 | _ACEOF |
| 6412 | cat confdefs.h >>conftest.$ac_ext |
| 6413 | cat >>conftest.$ac_ext <<_ACEOF |
| 6414 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6415 | $ac_includes_default |
| 6416 | long longval () { return (long) (sizeof (int)); } |
| 6417 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6418 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6419 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6420 | int |
| 6421 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6422 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6423 | |
| 6424 | FILE *f = fopen ("conftest.val", "w"); |
| 6425 | if (! f) |
| 6426 | exit (1); |
| 6427 | if (((long) (sizeof (int))) < 0) |
| 6428 | { |
| 6429 | long i = longval (); |
| 6430 | if (i != ((long) (sizeof (int)))) |
| 6431 | exit (1); |
| 6432 | fprintf (f, "%ld\n", i); |
| 6433 | } |
| 6434 | else |
| 6435 | { |
| 6436 | unsigned long i = ulongval (); |
| 6437 | if (i != ((long) (sizeof (int)))) |
| 6438 | exit (1); |
| 6439 | fprintf (f, "%lu\n", i); |
| 6440 | } |
| 6441 | exit (ferror (f) || fclose (f) != 0); |
| 6442 | |
| 6443 | ; |
| 6444 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6445 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6446 | _ACEOF |
| 6447 | rm -f conftest$ac_exeext |
| 6448 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6449 | (eval $ac_link) 2>&5 |
| 6450 | ac_status=$? |
| 6451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6452 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6454 | (eval $ac_try) 2>&5 |
| 6455 | ac_status=$? |
| 6456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6457 | (exit $ac_status); }; }; then |
| 6458 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6459 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6460 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6461 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6463 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6464 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6465 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 6466 | See \`config.log' for more details." >&5 |
| 6467 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 6468 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6469 | { (exit 1); exit 1; }; } |
| 6470 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6471 | 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] | 6472 | fi |
| 6473 | fi |
| 6474 | rm -f conftest.val |
| 6475 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6476 | ac_cv_sizeof_int=0 |
| 6477 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6478 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6479 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 6480 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 6481 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6482 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6483 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6484 | |
| 6485 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6486 | echo "$as_me:$LINENO: checking for long" >&5 |
| 6487 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 6488 | if test "${ac_cv_type_long+set}" = set; then |
| 6489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6490 | else |
| 6491 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6492 | /* confdefs.h. */ |
| 6493 | _ACEOF |
| 6494 | cat confdefs.h >>conftest.$ac_ext |
| 6495 | cat >>conftest.$ac_ext <<_ACEOF |
| 6496 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6497 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6498 | int |
| 6499 | main () |
| 6500 | { |
| 6501 | if ((long *) 0) |
| 6502 | return 0; |
| 6503 | if (sizeof (long)) |
| 6504 | return 0; |
| 6505 | ; |
| 6506 | return 0; |
| 6507 | } |
| 6508 | _ACEOF |
| 6509 | rm -f conftest.$ac_objext |
| 6510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6511 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6512 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6513 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6514 | rm -f conftest.er1 |
| 6515 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6517 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6518 | { ac_try='test -z "$ac_c_werror_flag" |
| 6519 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6521 | (eval $ac_try) 2>&5 |
| 6522 | ac_status=$? |
| 6523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6524 | (exit $ac_status); }; } && |
| 6525 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6527 | (eval $ac_try) 2>&5 |
| 6528 | ac_status=$? |
| 6529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6530 | (exit $ac_status); }; }; then |
| 6531 | ac_cv_type_long=yes |
| 6532 | else |
| 6533 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6535 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6536 | ac_cv_type_long=no |
| 6537 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6538 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6539 | fi |
| 6540 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 6541 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 6542 | |
| 6543 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 6544 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 6545 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 6546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6547 | else |
| 6548 | if test "$ac_cv_type_long" = yes; then |
| 6549 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6550 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6551 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6552 | # This bug is HP SR number 8606223364. |
| 6553 | if test "$cross_compiling" = yes; then |
| 6554 | # Depending upon the size, compute the lo and hi bounds. |
| 6555 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6556 | /* confdefs.h. */ |
| 6557 | _ACEOF |
| 6558 | cat confdefs.h >>conftest.$ac_ext |
| 6559 | cat >>conftest.$ac_ext <<_ACEOF |
| 6560 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6561 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6562 | int |
| 6563 | main () |
| 6564 | { |
| 6565 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 6566 | test_array [0] = 0 |
| 6567 | |
| 6568 | ; |
| 6569 | return 0; |
| 6570 | } |
| 6571 | _ACEOF |
| 6572 | rm -f conftest.$ac_objext |
| 6573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6574 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6575 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6576 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6577 | rm -f conftest.er1 |
| 6578 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6580 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6581 | { ac_try='test -z "$ac_c_werror_flag" |
| 6582 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6584 | (eval $ac_try) 2>&5 |
| 6585 | ac_status=$? |
| 6586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6587 | (exit $ac_status); }; } && |
| 6588 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6590 | (eval $ac_try) 2>&5 |
| 6591 | ac_status=$? |
| 6592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6593 | (exit $ac_status); }; }; then |
| 6594 | ac_lo=0 ac_mid=0 |
| 6595 | while :; do |
| 6596 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6597 | /* confdefs.h. */ |
| 6598 | _ACEOF |
| 6599 | cat confdefs.h >>conftest.$ac_ext |
| 6600 | cat >>conftest.$ac_ext <<_ACEOF |
| 6601 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6602 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6603 | int |
| 6604 | main () |
| 6605 | { |
| 6606 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 6607 | test_array [0] = 0 |
| 6608 | |
| 6609 | ; |
| 6610 | return 0; |
| 6611 | } |
| 6612 | _ACEOF |
| 6613 | rm -f conftest.$ac_objext |
| 6614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6615 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6616 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6617 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6618 | rm -f conftest.er1 |
| 6619 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6621 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6622 | { ac_try='test -z "$ac_c_werror_flag" |
| 6623 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6625 | (eval $ac_try) 2>&5 |
| 6626 | ac_status=$? |
| 6627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6628 | (exit $ac_status); }; } && |
| 6629 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6631 | (eval $ac_try) 2>&5 |
| 6632 | ac_status=$? |
| 6633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6634 | (exit $ac_status); }; }; then |
| 6635 | ac_hi=$ac_mid; break |
| 6636 | else |
| 6637 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6639 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6640 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6641 | if test $ac_lo -le $ac_mid; then |
| 6642 | ac_lo= ac_hi= |
| 6643 | break |
| 6644 | fi |
| 6645 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6646 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6647 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6648 | done |
| 6649 | else |
| 6650 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6651 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6652 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6653 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6654 | /* confdefs.h. */ |
| 6655 | _ACEOF |
| 6656 | cat confdefs.h >>conftest.$ac_ext |
| 6657 | cat >>conftest.$ac_ext <<_ACEOF |
| 6658 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6659 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6660 | int |
| 6661 | main () |
| 6662 | { |
| 6663 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 6664 | test_array [0] = 0 |
| 6665 | |
| 6666 | ; |
| 6667 | return 0; |
| 6668 | } |
| 6669 | _ACEOF |
| 6670 | rm -f conftest.$ac_objext |
| 6671 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6672 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6673 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6674 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6675 | rm -f conftest.er1 |
| 6676 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6678 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6679 | { ac_try='test -z "$ac_c_werror_flag" |
| 6680 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6682 | (eval $ac_try) 2>&5 |
| 6683 | ac_status=$? |
| 6684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6685 | (exit $ac_status); }; } && |
| 6686 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6688 | (eval $ac_try) 2>&5 |
| 6689 | ac_status=$? |
| 6690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6691 | (exit $ac_status); }; }; then |
| 6692 | ac_hi=-1 ac_mid=-1 |
| 6693 | while :; do |
| 6694 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6695 | /* confdefs.h. */ |
| 6696 | _ACEOF |
| 6697 | cat confdefs.h >>conftest.$ac_ext |
| 6698 | cat >>conftest.$ac_ext <<_ACEOF |
| 6699 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6700 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6701 | int |
| 6702 | main () |
| 6703 | { |
| 6704 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 6705 | test_array [0] = 0 |
| 6706 | |
| 6707 | ; |
| 6708 | return 0; |
| 6709 | } |
| 6710 | _ACEOF |
| 6711 | rm -f conftest.$ac_objext |
| 6712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6713 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6714 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6715 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6716 | rm -f conftest.er1 |
| 6717 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6719 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6720 | { ac_try='test -z "$ac_c_werror_flag" |
| 6721 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6723 | (eval $ac_try) 2>&5 |
| 6724 | ac_status=$? |
| 6725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6726 | (exit $ac_status); }; } && |
| 6727 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6729 | (eval $ac_try) 2>&5 |
| 6730 | ac_status=$? |
| 6731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6732 | (exit $ac_status); }; }; then |
| 6733 | ac_lo=$ac_mid; break |
| 6734 | else |
| 6735 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6736 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6737 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6738 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6739 | if test $ac_mid -le $ac_hi; then |
| 6740 | ac_lo= ac_hi= |
| 6741 | break |
| 6742 | fi |
| 6743 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6744 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6745 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6746 | done |
| 6747 | else |
| 6748 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6749 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6750 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6751 | ac_lo= ac_hi= |
| 6752 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6753 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | # Binary search between lo and hi bounds. |
| 6757 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6758 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6759 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6760 | /* confdefs.h. */ |
| 6761 | _ACEOF |
| 6762 | cat confdefs.h >>conftest.$ac_ext |
| 6763 | cat >>conftest.$ac_ext <<_ACEOF |
| 6764 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6765 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6766 | int |
| 6767 | main () |
| 6768 | { |
| 6769 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 6770 | test_array [0] = 0 |
| 6771 | |
| 6772 | ; |
| 6773 | return 0; |
| 6774 | } |
| 6775 | _ACEOF |
| 6776 | rm -f conftest.$ac_objext |
| 6777 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6778 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6779 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6780 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6781 | rm -f conftest.er1 |
| 6782 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6784 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6785 | { ac_try='test -z "$ac_c_werror_flag" |
| 6786 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6788 | (eval $ac_try) 2>&5 |
| 6789 | ac_status=$? |
| 6790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6791 | (exit $ac_status); }; } && |
| 6792 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6794 | (eval $ac_try) 2>&5 |
| 6795 | ac_status=$? |
| 6796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6797 | (exit $ac_status); }; }; then |
| 6798 | ac_hi=$ac_mid |
| 6799 | else |
| 6800 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6801 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6802 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6803 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6804 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6805 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6806 | done |
| 6807 | case $ac_lo in |
| 6808 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6809 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 6810 | See \`config.log' for more details." >&5 |
| 6811 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 6812 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6813 | { (exit 1); exit 1; }; } ;; |
| 6814 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6815 | else |
| 6816 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6817 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6818 | See \`config.log' for more details." >&5 |
| 6819 | echo "$as_me: error: cannot run test program while cross compiling |
| 6820 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6821 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6822 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6823 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6824 | /* confdefs.h. */ |
| 6825 | _ACEOF |
| 6826 | cat confdefs.h >>conftest.$ac_ext |
| 6827 | cat >>conftest.$ac_ext <<_ACEOF |
| 6828 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6829 | $ac_includes_default |
| 6830 | long longval () { return (long) (sizeof (long)); } |
| 6831 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6832 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6833 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6834 | int |
| 6835 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6836 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6837 | |
| 6838 | FILE *f = fopen ("conftest.val", "w"); |
| 6839 | if (! f) |
| 6840 | exit (1); |
| 6841 | if (((long) (sizeof (long))) < 0) |
| 6842 | { |
| 6843 | long i = longval (); |
| 6844 | if (i != ((long) (sizeof (long)))) |
| 6845 | exit (1); |
| 6846 | fprintf (f, "%ld\n", i); |
| 6847 | } |
| 6848 | else |
| 6849 | { |
| 6850 | unsigned long i = ulongval (); |
| 6851 | if (i != ((long) (sizeof (long)))) |
| 6852 | exit (1); |
| 6853 | fprintf (f, "%lu\n", i); |
| 6854 | } |
| 6855 | exit (ferror (f) || fclose (f) != 0); |
| 6856 | |
| 6857 | ; |
| 6858 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6859 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6860 | _ACEOF |
| 6861 | rm -f conftest$ac_exeext |
| 6862 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6863 | (eval $ac_link) 2>&5 |
| 6864 | ac_status=$? |
| 6865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6866 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6868 | (eval $ac_try) 2>&5 |
| 6869 | ac_status=$? |
| 6870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6871 | (exit $ac_status); }; }; then |
| 6872 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6873 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6874 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6875 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6876 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6877 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6878 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6879 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 6880 | See \`config.log' for more details." >&5 |
| 6881 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 6882 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6883 | { (exit 1); exit 1; }; } |
| 6884 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6885 | 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] | 6886 | fi |
| 6887 | fi |
| 6888 | rm -f conftest.val |
| 6889 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6890 | ac_cv_sizeof_long=0 |
| 6891 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6892 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6893 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 6894 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 6895 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6896 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6897 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6898 | |
| 6899 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6900 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 6901 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 6902 | if test "${ac_cv_type_void_p+set}" = set; then |
| 6903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6904 | else |
| 6905 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6906 | /* confdefs.h. */ |
| 6907 | _ACEOF |
| 6908 | cat confdefs.h >>conftest.$ac_ext |
| 6909 | cat >>conftest.$ac_ext <<_ACEOF |
| 6910 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6911 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6912 | int |
| 6913 | main () |
| 6914 | { |
| 6915 | if ((void * *) 0) |
| 6916 | return 0; |
| 6917 | if (sizeof (void *)) |
| 6918 | return 0; |
| 6919 | ; |
| 6920 | return 0; |
| 6921 | } |
| 6922 | _ACEOF |
| 6923 | rm -f conftest.$ac_objext |
| 6924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6925 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6926 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6927 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6928 | rm -f conftest.er1 |
| 6929 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6931 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6932 | { ac_try='test -z "$ac_c_werror_flag" |
| 6933 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6935 | (eval $ac_try) 2>&5 |
| 6936 | ac_status=$? |
| 6937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6938 | (exit $ac_status); }; } && |
| 6939 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6941 | (eval $ac_try) 2>&5 |
| 6942 | ac_status=$? |
| 6943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6944 | (exit $ac_status); }; }; then |
| 6945 | ac_cv_type_void_p=yes |
| 6946 | else |
| 6947 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6948 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6949 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6950 | ac_cv_type_void_p=no |
| 6951 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6952 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6953 | fi |
| 6954 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 6955 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 6956 | |
| 6957 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 6958 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 6959 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 6960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6961 | else |
| 6962 | if test "$ac_cv_type_void_p" = yes; then |
| 6963 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6964 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6965 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6966 | # This bug is HP SR number 8606223364. |
| 6967 | if test "$cross_compiling" = yes; then |
| 6968 | # Depending upon the size, compute the lo and hi bounds. |
| 6969 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6970 | /* confdefs.h. */ |
| 6971 | _ACEOF |
| 6972 | cat confdefs.h >>conftest.$ac_ext |
| 6973 | cat >>conftest.$ac_ext <<_ACEOF |
| 6974 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6975 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6976 | int |
| 6977 | main () |
| 6978 | { |
| 6979 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 6980 | test_array [0] = 0 |
| 6981 | |
| 6982 | ; |
| 6983 | return 0; |
| 6984 | } |
| 6985 | _ACEOF |
| 6986 | rm -f conftest.$ac_objext |
| 6987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6988 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6989 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6991 | rm -f conftest.er1 |
| 6992 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6994 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6995 | { ac_try='test -z "$ac_c_werror_flag" |
| 6996 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6998 | (eval $ac_try) 2>&5 |
| 6999 | ac_status=$? |
| 7000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7001 | (exit $ac_status); }; } && |
| 7002 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7004 | (eval $ac_try) 2>&5 |
| 7005 | ac_status=$? |
| 7006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7007 | (exit $ac_status); }; }; then |
| 7008 | ac_lo=0 ac_mid=0 |
| 7009 | while :; do |
| 7010 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7011 | /* confdefs.h. */ |
| 7012 | _ACEOF |
| 7013 | cat confdefs.h >>conftest.$ac_ext |
| 7014 | cat >>conftest.$ac_ext <<_ACEOF |
| 7015 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7016 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7017 | int |
| 7018 | main () |
| 7019 | { |
| 7020 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 7021 | test_array [0] = 0 |
| 7022 | |
| 7023 | ; |
| 7024 | return 0; |
| 7025 | } |
| 7026 | _ACEOF |
| 7027 | rm -f conftest.$ac_objext |
| 7028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7029 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7030 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7031 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7032 | rm -f conftest.er1 |
| 7033 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7035 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7036 | { ac_try='test -z "$ac_c_werror_flag" |
| 7037 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7039 | (eval $ac_try) 2>&5 |
| 7040 | ac_status=$? |
| 7041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7042 | (exit $ac_status); }; } && |
| 7043 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7045 | (eval $ac_try) 2>&5 |
| 7046 | ac_status=$? |
| 7047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7048 | (exit $ac_status); }; }; then |
| 7049 | ac_hi=$ac_mid; break |
| 7050 | else |
| 7051 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7052 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7053 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7054 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7055 | if test $ac_lo -le $ac_mid; then |
| 7056 | ac_lo= ac_hi= |
| 7057 | break |
| 7058 | fi |
| 7059 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7060 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7061 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7062 | done |
| 7063 | else |
| 7064 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7065 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7066 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7067 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7068 | /* confdefs.h. */ |
| 7069 | _ACEOF |
| 7070 | cat confdefs.h >>conftest.$ac_ext |
| 7071 | cat >>conftest.$ac_ext <<_ACEOF |
| 7072 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7073 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7074 | int |
| 7075 | main () |
| 7076 | { |
| 7077 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 7078 | test_array [0] = 0 |
| 7079 | |
| 7080 | ; |
| 7081 | return 0; |
| 7082 | } |
| 7083 | _ACEOF |
| 7084 | rm -f conftest.$ac_objext |
| 7085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7086 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7087 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7088 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7089 | rm -f conftest.er1 |
| 7090 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7092 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7093 | { ac_try='test -z "$ac_c_werror_flag" |
| 7094 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7096 | (eval $ac_try) 2>&5 |
| 7097 | ac_status=$? |
| 7098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7099 | (exit $ac_status); }; } && |
| 7100 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7102 | (eval $ac_try) 2>&5 |
| 7103 | ac_status=$? |
| 7104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7105 | (exit $ac_status); }; }; then |
| 7106 | ac_hi=-1 ac_mid=-1 |
| 7107 | while :; do |
| 7108 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7109 | /* confdefs.h. */ |
| 7110 | _ACEOF |
| 7111 | cat confdefs.h >>conftest.$ac_ext |
| 7112 | cat >>conftest.$ac_ext <<_ACEOF |
| 7113 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7114 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7115 | int |
| 7116 | main () |
| 7117 | { |
| 7118 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 7119 | test_array [0] = 0 |
| 7120 | |
| 7121 | ; |
| 7122 | return 0; |
| 7123 | } |
| 7124 | _ACEOF |
| 7125 | rm -f conftest.$ac_objext |
| 7126 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7127 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7128 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7130 | rm -f conftest.er1 |
| 7131 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7133 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7134 | { ac_try='test -z "$ac_c_werror_flag" |
| 7135 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7137 | (eval $ac_try) 2>&5 |
| 7138 | ac_status=$? |
| 7139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7140 | (exit $ac_status); }; } && |
| 7141 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7143 | (eval $ac_try) 2>&5 |
| 7144 | ac_status=$? |
| 7145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7146 | (exit $ac_status); }; }; then |
| 7147 | ac_lo=$ac_mid; break |
| 7148 | else |
| 7149 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7151 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7152 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7153 | if test $ac_mid -le $ac_hi; then |
| 7154 | ac_lo= ac_hi= |
| 7155 | break |
| 7156 | fi |
| 7157 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7158 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7159 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7160 | done |
| 7161 | else |
| 7162 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7163 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7164 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7165 | ac_lo= ac_hi= |
| 7166 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7167 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | # Binary search between lo and hi bounds. |
| 7171 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7172 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7173 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7174 | /* confdefs.h. */ |
| 7175 | _ACEOF |
| 7176 | cat confdefs.h >>conftest.$ac_ext |
| 7177 | cat >>conftest.$ac_ext <<_ACEOF |
| 7178 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7179 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7180 | int |
| 7181 | main () |
| 7182 | { |
| 7183 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 7184 | test_array [0] = 0 |
| 7185 | |
| 7186 | ; |
| 7187 | return 0; |
| 7188 | } |
| 7189 | _ACEOF |
| 7190 | rm -f conftest.$ac_objext |
| 7191 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7192 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7193 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7194 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7195 | rm -f conftest.er1 |
| 7196 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7198 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7199 | { ac_try='test -z "$ac_c_werror_flag" |
| 7200 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7202 | (eval $ac_try) 2>&5 |
| 7203 | ac_status=$? |
| 7204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7205 | (exit $ac_status); }; } && |
| 7206 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7208 | (eval $ac_try) 2>&5 |
| 7209 | ac_status=$? |
| 7210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7211 | (exit $ac_status); }; }; then |
| 7212 | ac_hi=$ac_mid |
| 7213 | else |
| 7214 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7215 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7216 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7217 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7218 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7219 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7220 | done |
| 7221 | case $ac_lo in |
| 7222 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7223 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 7224 | See \`config.log' for more details." >&5 |
| 7225 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 7226 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7227 | { (exit 1); exit 1; }; } ;; |
| 7228 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7229 | else |
| 7230 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7231 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7232 | See \`config.log' for more details." >&5 |
| 7233 | echo "$as_me: error: cannot run test program while cross compiling |
| 7234 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7235 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7236 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7237 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7238 | /* confdefs.h. */ |
| 7239 | _ACEOF |
| 7240 | cat confdefs.h >>conftest.$ac_ext |
| 7241 | cat >>conftest.$ac_ext <<_ACEOF |
| 7242 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7243 | $ac_includes_default |
| 7244 | long longval () { return (long) (sizeof (void *)); } |
| 7245 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7246 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7247 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7248 | int |
| 7249 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7250 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7251 | |
| 7252 | FILE *f = fopen ("conftest.val", "w"); |
| 7253 | if (! f) |
| 7254 | exit (1); |
| 7255 | if (((long) (sizeof (void *))) < 0) |
| 7256 | { |
| 7257 | long i = longval (); |
| 7258 | if (i != ((long) (sizeof (void *)))) |
| 7259 | exit (1); |
| 7260 | fprintf (f, "%ld\n", i); |
| 7261 | } |
| 7262 | else |
| 7263 | { |
| 7264 | unsigned long i = ulongval (); |
| 7265 | if (i != ((long) (sizeof (void *)))) |
| 7266 | exit (1); |
| 7267 | fprintf (f, "%lu\n", i); |
| 7268 | } |
| 7269 | exit (ferror (f) || fclose (f) != 0); |
| 7270 | |
| 7271 | ; |
| 7272 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7273 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7274 | _ACEOF |
| 7275 | rm -f conftest$ac_exeext |
| 7276 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7277 | (eval $ac_link) 2>&5 |
| 7278 | ac_status=$? |
| 7279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7280 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7282 | (eval $ac_try) 2>&5 |
| 7283 | ac_status=$? |
| 7284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7285 | (exit $ac_status); }; }; then |
| 7286 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7287 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7288 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7289 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7290 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7291 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7292 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7293 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 7294 | See \`config.log' for more details." >&5 |
| 7295 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 7296 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7297 | { (exit 1); exit 1; }; } |
| 7298 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7299 | 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] | 7300 | fi |
| 7301 | fi |
| 7302 | rm -f conftest.val |
| 7303 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7304 | ac_cv_sizeof_void_p=0 |
| 7305 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7306 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7307 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 7308 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 7309 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7310 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7311 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7312 | |
| 7313 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7314 | echo "$as_me:$LINENO: checking for short" >&5 |
| 7315 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 7316 | if test "${ac_cv_type_short+set}" = set; then |
| 7317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7318 | else |
| 7319 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7320 | /* confdefs.h. */ |
| 7321 | _ACEOF |
| 7322 | cat confdefs.h >>conftest.$ac_ext |
| 7323 | cat >>conftest.$ac_ext <<_ACEOF |
| 7324 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7325 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7326 | int |
| 7327 | main () |
| 7328 | { |
| 7329 | if ((short *) 0) |
| 7330 | return 0; |
| 7331 | if (sizeof (short)) |
| 7332 | return 0; |
| 7333 | ; |
| 7334 | return 0; |
| 7335 | } |
| 7336 | _ACEOF |
| 7337 | rm -f conftest.$ac_objext |
| 7338 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7339 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7340 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7341 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7342 | rm -f conftest.er1 |
| 7343 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7345 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7346 | { ac_try='test -z "$ac_c_werror_flag" |
| 7347 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7349 | (eval $ac_try) 2>&5 |
| 7350 | ac_status=$? |
| 7351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7352 | (exit $ac_status); }; } && |
| 7353 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7355 | (eval $ac_try) 2>&5 |
| 7356 | ac_status=$? |
| 7357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7358 | (exit $ac_status); }; }; then |
| 7359 | ac_cv_type_short=yes |
| 7360 | else |
| 7361 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7363 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7364 | ac_cv_type_short=no |
| 7365 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7366 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7367 | fi |
| 7368 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 7369 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 7370 | |
| 7371 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 7372 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 7373 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 7374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7375 | else |
| 7376 | if test "$ac_cv_type_short" = yes; then |
| 7377 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7378 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7379 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7380 | # This bug is HP SR number 8606223364. |
| 7381 | if test "$cross_compiling" = yes; then |
| 7382 | # Depending upon the size, compute the lo and hi bounds. |
| 7383 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7384 | /* confdefs.h. */ |
| 7385 | _ACEOF |
| 7386 | cat confdefs.h >>conftest.$ac_ext |
| 7387 | cat >>conftest.$ac_ext <<_ACEOF |
| 7388 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7389 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7390 | int |
| 7391 | main () |
| 7392 | { |
| 7393 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 7394 | test_array [0] = 0 |
| 7395 | |
| 7396 | ; |
| 7397 | return 0; |
| 7398 | } |
| 7399 | _ACEOF |
| 7400 | rm -f conftest.$ac_objext |
| 7401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7402 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7403 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7404 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7405 | rm -f conftest.er1 |
| 7406 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7408 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7409 | { ac_try='test -z "$ac_c_werror_flag" |
| 7410 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7412 | (eval $ac_try) 2>&5 |
| 7413 | ac_status=$? |
| 7414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7415 | (exit $ac_status); }; } && |
| 7416 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7418 | (eval $ac_try) 2>&5 |
| 7419 | ac_status=$? |
| 7420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7421 | (exit $ac_status); }; }; then |
| 7422 | ac_lo=0 ac_mid=0 |
| 7423 | while :; do |
| 7424 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7425 | /* confdefs.h. */ |
| 7426 | _ACEOF |
| 7427 | cat confdefs.h >>conftest.$ac_ext |
| 7428 | cat >>conftest.$ac_ext <<_ACEOF |
| 7429 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7430 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7431 | int |
| 7432 | main () |
| 7433 | { |
| 7434 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7435 | test_array [0] = 0 |
| 7436 | |
| 7437 | ; |
| 7438 | return 0; |
| 7439 | } |
| 7440 | _ACEOF |
| 7441 | rm -f conftest.$ac_objext |
| 7442 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7443 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7444 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7445 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7446 | rm -f conftest.er1 |
| 7447 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7449 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7450 | { ac_try='test -z "$ac_c_werror_flag" |
| 7451 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7453 | (eval $ac_try) 2>&5 |
| 7454 | ac_status=$? |
| 7455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7456 | (exit $ac_status); }; } && |
| 7457 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7459 | (eval $ac_try) 2>&5 |
| 7460 | ac_status=$? |
| 7461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7462 | (exit $ac_status); }; }; then |
| 7463 | ac_hi=$ac_mid; break |
| 7464 | else |
| 7465 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7467 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7468 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7469 | if test $ac_lo -le $ac_mid; then |
| 7470 | ac_lo= ac_hi= |
| 7471 | break |
| 7472 | fi |
| 7473 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7474 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7475 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7476 | done |
| 7477 | else |
| 7478 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7479 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7480 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7481 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7482 | /* confdefs.h. */ |
| 7483 | _ACEOF |
| 7484 | cat confdefs.h >>conftest.$ac_ext |
| 7485 | cat >>conftest.$ac_ext <<_ACEOF |
| 7486 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7487 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7488 | int |
| 7489 | main () |
| 7490 | { |
| 7491 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 7492 | test_array [0] = 0 |
| 7493 | |
| 7494 | ; |
| 7495 | return 0; |
| 7496 | } |
| 7497 | _ACEOF |
| 7498 | rm -f conftest.$ac_objext |
| 7499 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7500 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7501 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7502 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7503 | rm -f conftest.er1 |
| 7504 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7506 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7507 | { ac_try='test -z "$ac_c_werror_flag" |
| 7508 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7510 | (eval $ac_try) 2>&5 |
| 7511 | ac_status=$? |
| 7512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7513 | (exit $ac_status); }; } && |
| 7514 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7516 | (eval $ac_try) 2>&5 |
| 7517 | ac_status=$? |
| 7518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7519 | (exit $ac_status); }; }; then |
| 7520 | ac_hi=-1 ac_mid=-1 |
| 7521 | while :; do |
| 7522 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7523 | /* confdefs.h. */ |
| 7524 | _ACEOF |
| 7525 | cat confdefs.h >>conftest.$ac_ext |
| 7526 | cat >>conftest.$ac_ext <<_ACEOF |
| 7527 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7528 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7529 | int |
| 7530 | main () |
| 7531 | { |
| 7532 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 7533 | test_array [0] = 0 |
| 7534 | |
| 7535 | ; |
| 7536 | return 0; |
| 7537 | } |
| 7538 | _ACEOF |
| 7539 | rm -f conftest.$ac_objext |
| 7540 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7541 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7542 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7543 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7544 | rm -f conftest.er1 |
| 7545 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7547 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7548 | { ac_try='test -z "$ac_c_werror_flag" |
| 7549 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7551 | (eval $ac_try) 2>&5 |
| 7552 | ac_status=$? |
| 7553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7554 | (exit $ac_status); }; } && |
| 7555 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7557 | (eval $ac_try) 2>&5 |
| 7558 | ac_status=$? |
| 7559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7560 | (exit $ac_status); }; }; then |
| 7561 | ac_lo=$ac_mid; break |
| 7562 | else |
| 7563 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7565 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7566 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7567 | if test $ac_mid -le $ac_hi; then |
| 7568 | ac_lo= ac_hi= |
| 7569 | break |
| 7570 | fi |
| 7571 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7572 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7573 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7574 | done |
| 7575 | else |
| 7576 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7577 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7578 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7579 | ac_lo= ac_hi= |
| 7580 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7581 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | # Binary search between lo and hi bounds. |
| 7585 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7586 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7587 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7588 | /* confdefs.h. */ |
| 7589 | _ACEOF |
| 7590 | cat confdefs.h >>conftest.$ac_ext |
| 7591 | cat >>conftest.$ac_ext <<_ACEOF |
| 7592 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7593 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7594 | int |
| 7595 | main () |
| 7596 | { |
| 7597 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7598 | test_array [0] = 0 |
| 7599 | |
| 7600 | ; |
| 7601 | return 0; |
| 7602 | } |
| 7603 | _ACEOF |
| 7604 | rm -f conftest.$ac_objext |
| 7605 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7606 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7607 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7608 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7609 | rm -f conftest.er1 |
| 7610 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7612 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7613 | { ac_try='test -z "$ac_c_werror_flag" |
| 7614 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7616 | (eval $ac_try) 2>&5 |
| 7617 | ac_status=$? |
| 7618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7619 | (exit $ac_status); }; } && |
| 7620 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7622 | (eval $ac_try) 2>&5 |
| 7623 | ac_status=$? |
| 7624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7625 | (exit $ac_status); }; }; then |
| 7626 | ac_hi=$ac_mid |
| 7627 | else |
| 7628 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7629 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7630 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7631 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7632 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7633 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7634 | done |
| 7635 | case $ac_lo in |
| 7636 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7637 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 7638 | See \`config.log' for more details." >&5 |
| 7639 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 7640 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7641 | { (exit 1); exit 1; }; } ;; |
| 7642 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7643 | else |
| 7644 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7645 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7646 | See \`config.log' for more details." >&5 |
| 7647 | echo "$as_me: error: cannot run test program while cross compiling |
| 7648 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7649 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7650 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7651 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7652 | /* confdefs.h. */ |
| 7653 | _ACEOF |
| 7654 | cat confdefs.h >>conftest.$ac_ext |
| 7655 | cat >>conftest.$ac_ext <<_ACEOF |
| 7656 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7657 | $ac_includes_default |
| 7658 | long longval () { return (long) (sizeof (short)); } |
| 7659 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7660 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7661 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7662 | int |
| 7663 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7664 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7665 | |
| 7666 | FILE *f = fopen ("conftest.val", "w"); |
| 7667 | if (! f) |
| 7668 | exit (1); |
| 7669 | if (((long) (sizeof (short))) < 0) |
| 7670 | { |
| 7671 | long i = longval (); |
| 7672 | if (i != ((long) (sizeof (short)))) |
| 7673 | exit (1); |
| 7674 | fprintf (f, "%ld\n", i); |
| 7675 | } |
| 7676 | else |
| 7677 | { |
| 7678 | unsigned long i = ulongval (); |
| 7679 | if (i != ((long) (sizeof (short)))) |
| 7680 | exit (1); |
| 7681 | fprintf (f, "%lu\n", i); |
| 7682 | } |
| 7683 | exit (ferror (f) || fclose (f) != 0); |
| 7684 | |
| 7685 | ; |
| 7686 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7687 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7688 | _ACEOF |
| 7689 | rm -f conftest$ac_exeext |
| 7690 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7691 | (eval $ac_link) 2>&5 |
| 7692 | ac_status=$? |
| 7693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7694 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7696 | (eval $ac_try) 2>&5 |
| 7697 | ac_status=$? |
| 7698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7699 | (exit $ac_status); }; }; then |
| 7700 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7701 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7702 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7703 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7704 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7705 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7706 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7707 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 7708 | See \`config.log' for more details." >&5 |
| 7709 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 7710 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7711 | { (exit 1); exit 1; }; } |
| 7712 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7713 | 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] | 7714 | fi |
| 7715 | fi |
| 7716 | rm -f conftest.val |
| 7717 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7718 | ac_cv_sizeof_short=0 |
| 7719 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7720 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7721 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 7722 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 7723 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7724 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7725 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7726 | |
| 7727 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7728 | echo "$as_me:$LINENO: checking for float" >&5 |
| 7729 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 7730 | if test "${ac_cv_type_float+set}" = set; then |
| 7731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7732 | else |
| 7733 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7734 | /* confdefs.h. */ |
| 7735 | _ACEOF |
| 7736 | cat confdefs.h >>conftest.$ac_ext |
| 7737 | cat >>conftest.$ac_ext <<_ACEOF |
| 7738 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7739 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7740 | int |
| 7741 | main () |
| 7742 | { |
| 7743 | if ((float *) 0) |
| 7744 | return 0; |
| 7745 | if (sizeof (float)) |
| 7746 | return 0; |
| 7747 | ; |
| 7748 | return 0; |
| 7749 | } |
| 7750 | _ACEOF |
| 7751 | rm -f conftest.$ac_objext |
| 7752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7753 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7754 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7755 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7756 | rm -f conftest.er1 |
| 7757 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7759 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7760 | { ac_try='test -z "$ac_c_werror_flag" |
| 7761 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7763 | (eval $ac_try) 2>&5 |
| 7764 | ac_status=$? |
| 7765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7766 | (exit $ac_status); }; } && |
| 7767 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7769 | (eval $ac_try) 2>&5 |
| 7770 | ac_status=$? |
| 7771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7772 | (exit $ac_status); }; }; then |
| 7773 | ac_cv_type_float=yes |
| 7774 | else |
| 7775 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7776 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7777 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7778 | ac_cv_type_float=no |
| 7779 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7780 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7781 | fi |
| 7782 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 7783 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 7784 | |
| 7785 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 7786 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 7787 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 7788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7789 | else |
| 7790 | if test "$ac_cv_type_float" = yes; then |
| 7791 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7792 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7793 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7794 | # This bug is HP SR number 8606223364. |
| 7795 | if test "$cross_compiling" = yes; then |
| 7796 | # Depending upon the size, compute the lo and hi bounds. |
| 7797 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7798 | /* confdefs.h. */ |
| 7799 | _ACEOF |
| 7800 | cat confdefs.h >>conftest.$ac_ext |
| 7801 | cat >>conftest.$ac_ext <<_ACEOF |
| 7802 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7803 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7804 | int |
| 7805 | main () |
| 7806 | { |
| 7807 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 7808 | test_array [0] = 0 |
| 7809 | |
| 7810 | ; |
| 7811 | return 0; |
| 7812 | } |
| 7813 | _ACEOF |
| 7814 | rm -f conftest.$ac_objext |
| 7815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7816 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7817 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7818 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7819 | rm -f conftest.er1 |
| 7820 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7822 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7823 | { ac_try='test -z "$ac_c_werror_flag" |
| 7824 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7826 | (eval $ac_try) 2>&5 |
| 7827 | ac_status=$? |
| 7828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7829 | (exit $ac_status); }; } && |
| 7830 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7832 | (eval $ac_try) 2>&5 |
| 7833 | ac_status=$? |
| 7834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7835 | (exit $ac_status); }; }; then |
| 7836 | ac_lo=0 ac_mid=0 |
| 7837 | while :; do |
| 7838 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7839 | /* confdefs.h. */ |
| 7840 | _ACEOF |
| 7841 | cat confdefs.h >>conftest.$ac_ext |
| 7842 | cat >>conftest.$ac_ext <<_ACEOF |
| 7843 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7844 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7845 | int |
| 7846 | main () |
| 7847 | { |
| 7848 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7849 | test_array [0] = 0 |
| 7850 | |
| 7851 | ; |
| 7852 | return 0; |
| 7853 | } |
| 7854 | _ACEOF |
| 7855 | rm -f conftest.$ac_objext |
| 7856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7857 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7858 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7859 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7860 | rm -f conftest.er1 |
| 7861 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7863 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7864 | { ac_try='test -z "$ac_c_werror_flag" |
| 7865 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7867 | (eval $ac_try) 2>&5 |
| 7868 | ac_status=$? |
| 7869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7870 | (exit $ac_status); }; } && |
| 7871 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7873 | (eval $ac_try) 2>&5 |
| 7874 | ac_status=$? |
| 7875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7876 | (exit $ac_status); }; }; then |
| 7877 | ac_hi=$ac_mid; break |
| 7878 | else |
| 7879 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7880 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7881 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7882 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7883 | if test $ac_lo -le $ac_mid; then |
| 7884 | ac_lo= ac_hi= |
| 7885 | break |
| 7886 | fi |
| 7887 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7888 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7889 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7890 | done |
| 7891 | else |
| 7892 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7894 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7895 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7896 | /* confdefs.h. */ |
| 7897 | _ACEOF |
| 7898 | cat confdefs.h >>conftest.$ac_ext |
| 7899 | cat >>conftest.$ac_ext <<_ACEOF |
| 7900 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7901 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7902 | int |
| 7903 | main () |
| 7904 | { |
| 7905 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 7906 | test_array [0] = 0 |
| 7907 | |
| 7908 | ; |
| 7909 | return 0; |
| 7910 | } |
| 7911 | _ACEOF |
| 7912 | rm -f conftest.$ac_objext |
| 7913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7914 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7915 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7916 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7917 | rm -f conftest.er1 |
| 7918 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7920 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7921 | { ac_try='test -z "$ac_c_werror_flag" |
| 7922 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7924 | (eval $ac_try) 2>&5 |
| 7925 | ac_status=$? |
| 7926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7927 | (exit $ac_status); }; } && |
| 7928 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7930 | (eval $ac_try) 2>&5 |
| 7931 | ac_status=$? |
| 7932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7933 | (exit $ac_status); }; }; then |
| 7934 | ac_hi=-1 ac_mid=-1 |
| 7935 | while :; do |
| 7936 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7937 | /* confdefs.h. */ |
| 7938 | _ACEOF |
| 7939 | cat confdefs.h >>conftest.$ac_ext |
| 7940 | cat >>conftest.$ac_ext <<_ACEOF |
| 7941 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7942 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7943 | int |
| 7944 | main () |
| 7945 | { |
| 7946 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 7947 | test_array [0] = 0 |
| 7948 | |
| 7949 | ; |
| 7950 | return 0; |
| 7951 | } |
| 7952 | _ACEOF |
| 7953 | rm -f conftest.$ac_objext |
| 7954 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7955 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7956 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7957 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7958 | rm -f conftest.er1 |
| 7959 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7961 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7962 | { ac_try='test -z "$ac_c_werror_flag" |
| 7963 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7965 | (eval $ac_try) 2>&5 |
| 7966 | ac_status=$? |
| 7967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7968 | (exit $ac_status); }; } && |
| 7969 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7971 | (eval $ac_try) 2>&5 |
| 7972 | ac_status=$? |
| 7973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7974 | (exit $ac_status); }; }; then |
| 7975 | ac_lo=$ac_mid; break |
| 7976 | else |
| 7977 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7978 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7979 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7980 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7981 | if test $ac_mid -le $ac_hi; then |
| 7982 | ac_lo= ac_hi= |
| 7983 | break |
| 7984 | fi |
| 7985 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7986 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7987 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7988 | done |
| 7989 | else |
| 7990 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7991 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7992 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7993 | ac_lo= ac_hi= |
| 7994 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7995 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | # Binary search between lo and hi bounds. |
| 7999 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8000 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8001 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8002 | /* confdefs.h. */ |
| 8003 | _ACEOF |
| 8004 | cat confdefs.h >>conftest.$ac_ext |
| 8005 | cat >>conftest.$ac_ext <<_ACEOF |
| 8006 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8007 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8008 | int |
| 8009 | main () |
| 8010 | { |
| 8011 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 8012 | test_array [0] = 0 |
| 8013 | |
| 8014 | ; |
| 8015 | return 0; |
| 8016 | } |
| 8017 | _ACEOF |
| 8018 | rm -f conftest.$ac_objext |
| 8019 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8020 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8021 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8022 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8023 | rm -f conftest.er1 |
| 8024 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8026 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8027 | { ac_try='test -z "$ac_c_werror_flag" |
| 8028 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8030 | (eval $ac_try) 2>&5 |
| 8031 | ac_status=$? |
| 8032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8033 | (exit $ac_status); }; } && |
| 8034 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8036 | (eval $ac_try) 2>&5 |
| 8037 | ac_status=$? |
| 8038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8039 | (exit $ac_status); }; }; then |
| 8040 | ac_hi=$ac_mid |
| 8041 | else |
| 8042 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8044 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8045 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8046 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8047 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8048 | done |
| 8049 | case $ac_lo in |
| 8050 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8051 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| 8052 | See \`config.log' for more details." >&5 |
| 8053 | echo "$as_me: error: cannot compute sizeof (float), 77 |
| 8054 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8055 | { (exit 1); exit 1; }; } ;; |
| 8056 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8057 | else |
| 8058 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8059 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8060 | See \`config.log' for more details." >&5 |
| 8061 | echo "$as_me: error: cannot run test program while cross compiling |
| 8062 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8063 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8064 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8065 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8066 | /* confdefs.h. */ |
| 8067 | _ACEOF |
| 8068 | cat confdefs.h >>conftest.$ac_ext |
| 8069 | cat >>conftest.$ac_ext <<_ACEOF |
| 8070 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8071 | $ac_includes_default |
| 8072 | long longval () { return (long) (sizeof (float)); } |
| 8073 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8074 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8075 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8076 | int |
| 8077 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8078 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8079 | |
| 8080 | FILE *f = fopen ("conftest.val", "w"); |
| 8081 | if (! f) |
| 8082 | exit (1); |
| 8083 | if (((long) (sizeof (float))) < 0) |
| 8084 | { |
| 8085 | long i = longval (); |
| 8086 | if (i != ((long) (sizeof (float)))) |
| 8087 | exit (1); |
| 8088 | fprintf (f, "%ld\n", i); |
| 8089 | } |
| 8090 | else |
| 8091 | { |
| 8092 | unsigned long i = ulongval (); |
| 8093 | if (i != ((long) (sizeof (float)))) |
| 8094 | exit (1); |
| 8095 | fprintf (f, "%lu\n", i); |
| 8096 | } |
| 8097 | exit (ferror (f) || fclose (f) != 0); |
| 8098 | |
| 8099 | ; |
| 8100 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8101 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8102 | _ACEOF |
| 8103 | rm -f conftest$ac_exeext |
| 8104 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8105 | (eval $ac_link) 2>&5 |
| 8106 | ac_status=$? |
| 8107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8108 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8110 | (eval $ac_try) 2>&5 |
| 8111 | ac_status=$? |
| 8112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8113 | (exit $ac_status); }; }; then |
| 8114 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8115 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8116 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8117 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8118 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8119 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8120 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8121 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| 8122 | See \`config.log' for more details." >&5 |
| 8123 | echo "$as_me: error: cannot compute sizeof (float), 77 |
| 8124 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8125 | { (exit 1); exit 1; }; } |
| 8126 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8127 | 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] | 8128 | fi |
| 8129 | fi |
| 8130 | rm -f conftest.val |
| 8131 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8132 | ac_cv_sizeof_float=0 |
| 8133 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8134 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8135 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 8136 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 8137 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8138 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8139 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8140 | |
| 8141 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8142 | echo "$as_me:$LINENO: checking for double" >&5 |
| 8143 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 8144 | if test "${ac_cv_type_double+set}" = set; then |
| 8145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8146 | else |
| 8147 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8148 | /* confdefs.h. */ |
| 8149 | _ACEOF |
| 8150 | cat confdefs.h >>conftest.$ac_ext |
| 8151 | cat >>conftest.$ac_ext <<_ACEOF |
| 8152 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8153 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8154 | int |
| 8155 | main () |
| 8156 | { |
| 8157 | if ((double *) 0) |
| 8158 | return 0; |
| 8159 | if (sizeof (double)) |
| 8160 | return 0; |
| 8161 | ; |
| 8162 | return 0; |
| 8163 | } |
| 8164 | _ACEOF |
| 8165 | rm -f conftest.$ac_objext |
| 8166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8167 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8168 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8169 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8170 | rm -f conftest.er1 |
| 8171 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8173 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8174 | { ac_try='test -z "$ac_c_werror_flag" |
| 8175 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8177 | (eval $ac_try) 2>&5 |
| 8178 | ac_status=$? |
| 8179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8180 | (exit $ac_status); }; } && |
| 8181 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8183 | (eval $ac_try) 2>&5 |
| 8184 | ac_status=$? |
| 8185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8186 | (exit $ac_status); }; }; then |
| 8187 | ac_cv_type_double=yes |
| 8188 | else |
| 8189 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8190 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8191 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8192 | ac_cv_type_double=no |
| 8193 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8194 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8195 | fi |
| 8196 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 8197 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 8198 | |
| 8199 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 8200 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 8201 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 8202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8203 | else |
| 8204 | if test "$ac_cv_type_double" = yes; then |
| 8205 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8206 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8207 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8208 | # This bug is HP SR number 8606223364. |
| 8209 | if test "$cross_compiling" = yes; then |
| 8210 | # Depending upon the size, compute the lo and hi bounds. |
| 8211 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8212 | /* confdefs.h. */ |
| 8213 | _ACEOF |
| 8214 | cat confdefs.h >>conftest.$ac_ext |
| 8215 | cat >>conftest.$ac_ext <<_ACEOF |
| 8216 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8217 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8218 | int |
| 8219 | main () |
| 8220 | { |
| 8221 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 8222 | test_array [0] = 0 |
| 8223 | |
| 8224 | ; |
| 8225 | return 0; |
| 8226 | } |
| 8227 | _ACEOF |
| 8228 | rm -f conftest.$ac_objext |
| 8229 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8230 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8231 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8232 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8233 | rm -f conftest.er1 |
| 8234 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8236 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8237 | { ac_try='test -z "$ac_c_werror_flag" |
| 8238 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8240 | (eval $ac_try) 2>&5 |
| 8241 | ac_status=$? |
| 8242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8243 | (exit $ac_status); }; } && |
| 8244 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8246 | (eval $ac_try) 2>&5 |
| 8247 | ac_status=$? |
| 8248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8249 | (exit $ac_status); }; }; then |
| 8250 | ac_lo=0 ac_mid=0 |
| 8251 | while :; do |
| 8252 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8253 | /* confdefs.h. */ |
| 8254 | _ACEOF |
| 8255 | cat confdefs.h >>conftest.$ac_ext |
| 8256 | cat >>conftest.$ac_ext <<_ACEOF |
| 8257 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8258 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8259 | int |
| 8260 | main () |
| 8261 | { |
| 8262 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 8263 | test_array [0] = 0 |
| 8264 | |
| 8265 | ; |
| 8266 | return 0; |
| 8267 | } |
| 8268 | _ACEOF |
| 8269 | rm -f conftest.$ac_objext |
| 8270 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8271 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8272 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8273 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8274 | rm -f conftest.er1 |
| 8275 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8277 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8278 | { ac_try='test -z "$ac_c_werror_flag" |
| 8279 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8281 | (eval $ac_try) 2>&5 |
| 8282 | ac_status=$? |
| 8283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8284 | (exit $ac_status); }; } && |
| 8285 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8287 | (eval $ac_try) 2>&5 |
| 8288 | ac_status=$? |
| 8289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8290 | (exit $ac_status); }; }; then |
| 8291 | ac_hi=$ac_mid; break |
| 8292 | else |
| 8293 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8294 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8295 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8296 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8297 | if test $ac_lo -le $ac_mid; then |
| 8298 | ac_lo= ac_hi= |
| 8299 | break |
| 8300 | fi |
| 8301 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8302 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8303 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8304 | done |
| 8305 | else |
| 8306 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8307 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8308 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8309 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8310 | /* confdefs.h. */ |
| 8311 | _ACEOF |
| 8312 | cat confdefs.h >>conftest.$ac_ext |
| 8313 | cat >>conftest.$ac_ext <<_ACEOF |
| 8314 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8315 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8316 | int |
| 8317 | main () |
| 8318 | { |
| 8319 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 8320 | test_array [0] = 0 |
| 8321 | |
| 8322 | ; |
| 8323 | return 0; |
| 8324 | } |
| 8325 | _ACEOF |
| 8326 | rm -f conftest.$ac_objext |
| 8327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8328 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8329 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8330 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8331 | rm -f conftest.er1 |
| 8332 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8334 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8335 | { ac_try='test -z "$ac_c_werror_flag" |
| 8336 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8338 | (eval $ac_try) 2>&5 |
| 8339 | ac_status=$? |
| 8340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8341 | (exit $ac_status); }; } && |
| 8342 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8344 | (eval $ac_try) 2>&5 |
| 8345 | ac_status=$? |
| 8346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8347 | (exit $ac_status); }; }; then |
| 8348 | ac_hi=-1 ac_mid=-1 |
| 8349 | while :; do |
| 8350 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8351 | /* confdefs.h. */ |
| 8352 | _ACEOF |
| 8353 | cat confdefs.h >>conftest.$ac_ext |
| 8354 | cat >>conftest.$ac_ext <<_ACEOF |
| 8355 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8356 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8357 | int |
| 8358 | main () |
| 8359 | { |
| 8360 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 8361 | test_array [0] = 0 |
| 8362 | |
| 8363 | ; |
| 8364 | return 0; |
| 8365 | } |
| 8366 | _ACEOF |
| 8367 | rm -f conftest.$ac_objext |
| 8368 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8369 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8370 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8371 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8372 | rm -f conftest.er1 |
| 8373 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8375 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8376 | { ac_try='test -z "$ac_c_werror_flag" |
| 8377 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8379 | (eval $ac_try) 2>&5 |
| 8380 | ac_status=$? |
| 8381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8382 | (exit $ac_status); }; } && |
| 8383 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8385 | (eval $ac_try) 2>&5 |
| 8386 | ac_status=$? |
| 8387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8388 | (exit $ac_status); }; }; then |
| 8389 | ac_lo=$ac_mid; break |
| 8390 | else |
| 8391 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8393 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8394 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8395 | if test $ac_mid -le $ac_hi; then |
| 8396 | ac_lo= ac_hi= |
| 8397 | break |
| 8398 | fi |
| 8399 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8400 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8401 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8402 | done |
| 8403 | else |
| 8404 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8406 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8407 | ac_lo= ac_hi= |
| 8408 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8409 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | # Binary search between lo and hi bounds. |
| 8413 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8414 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8415 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8416 | /* confdefs.h. */ |
| 8417 | _ACEOF |
| 8418 | cat confdefs.h >>conftest.$ac_ext |
| 8419 | cat >>conftest.$ac_ext <<_ACEOF |
| 8420 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8421 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8422 | int |
| 8423 | main () |
| 8424 | { |
| 8425 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 8426 | test_array [0] = 0 |
| 8427 | |
| 8428 | ; |
| 8429 | return 0; |
| 8430 | } |
| 8431 | _ACEOF |
| 8432 | rm -f conftest.$ac_objext |
| 8433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8434 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8435 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8436 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8437 | rm -f conftest.er1 |
| 8438 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8440 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8441 | { ac_try='test -z "$ac_c_werror_flag" |
| 8442 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8444 | (eval $ac_try) 2>&5 |
| 8445 | ac_status=$? |
| 8446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8447 | (exit $ac_status); }; } && |
| 8448 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8450 | (eval $ac_try) 2>&5 |
| 8451 | ac_status=$? |
| 8452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8453 | (exit $ac_status); }; }; then |
| 8454 | ac_hi=$ac_mid |
| 8455 | else |
| 8456 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8457 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8458 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8459 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8460 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8461 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8462 | done |
| 8463 | case $ac_lo in |
| 8464 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8465 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| 8466 | See \`config.log' for more details." >&5 |
| 8467 | echo "$as_me: error: cannot compute sizeof (double), 77 |
| 8468 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8469 | { (exit 1); exit 1; }; } ;; |
| 8470 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8471 | else |
| 8472 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8473 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8474 | See \`config.log' for more details." >&5 |
| 8475 | echo "$as_me: error: cannot run test program while cross compiling |
| 8476 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8477 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8478 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8479 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8480 | /* confdefs.h. */ |
| 8481 | _ACEOF |
| 8482 | cat confdefs.h >>conftest.$ac_ext |
| 8483 | cat >>conftest.$ac_ext <<_ACEOF |
| 8484 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8485 | $ac_includes_default |
| 8486 | long longval () { return (long) (sizeof (double)); } |
| 8487 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8488 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8489 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8490 | int |
| 8491 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8492 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8493 | |
| 8494 | FILE *f = fopen ("conftest.val", "w"); |
| 8495 | if (! f) |
| 8496 | exit (1); |
| 8497 | if (((long) (sizeof (double))) < 0) |
| 8498 | { |
| 8499 | long i = longval (); |
| 8500 | if (i != ((long) (sizeof (double)))) |
| 8501 | exit (1); |
| 8502 | fprintf (f, "%ld\n", i); |
| 8503 | } |
| 8504 | else |
| 8505 | { |
| 8506 | unsigned long i = ulongval (); |
| 8507 | if (i != ((long) (sizeof (double)))) |
| 8508 | exit (1); |
| 8509 | fprintf (f, "%lu\n", i); |
| 8510 | } |
| 8511 | exit (ferror (f) || fclose (f) != 0); |
| 8512 | |
| 8513 | ; |
| 8514 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8515 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8516 | _ACEOF |
| 8517 | rm -f conftest$ac_exeext |
| 8518 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8519 | (eval $ac_link) 2>&5 |
| 8520 | ac_status=$? |
| 8521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8522 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8524 | (eval $ac_try) 2>&5 |
| 8525 | ac_status=$? |
| 8526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8527 | (exit $ac_status); }; }; then |
| 8528 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8529 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8530 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8531 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8533 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8534 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8535 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| 8536 | See \`config.log' for more details." >&5 |
| 8537 | echo "$as_me: error: cannot compute sizeof (double), 77 |
| 8538 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8539 | { (exit 1); exit 1; }; } |
| 8540 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8541 | 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] | 8542 | fi |
| 8543 | fi |
| 8544 | rm -f conftest.val |
| 8545 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8546 | ac_cv_sizeof_double=0 |
| 8547 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8548 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8549 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 8550 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 8551 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8552 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8553 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8554 | |
| 8555 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8556 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 8557 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 8558 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 8559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8560 | else |
| 8561 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8562 | /* confdefs.h. */ |
| 8563 | _ACEOF |
| 8564 | cat confdefs.h >>conftest.$ac_ext |
| 8565 | cat >>conftest.$ac_ext <<_ACEOF |
| 8566 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8567 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8568 | int |
| 8569 | main () |
| 8570 | { |
| 8571 | if ((fpos_t *) 0) |
| 8572 | return 0; |
| 8573 | if (sizeof (fpos_t)) |
| 8574 | return 0; |
| 8575 | ; |
| 8576 | return 0; |
| 8577 | } |
| 8578 | _ACEOF |
| 8579 | rm -f conftest.$ac_objext |
| 8580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8581 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8582 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8583 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8584 | rm -f conftest.er1 |
| 8585 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8587 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8588 | { ac_try='test -z "$ac_c_werror_flag" |
| 8589 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8591 | (eval $ac_try) 2>&5 |
| 8592 | ac_status=$? |
| 8593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8594 | (exit $ac_status); }; } && |
| 8595 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8597 | (eval $ac_try) 2>&5 |
| 8598 | ac_status=$? |
| 8599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8600 | (exit $ac_status); }; }; then |
| 8601 | ac_cv_type_fpos_t=yes |
| 8602 | else |
| 8603 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8604 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8605 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8606 | ac_cv_type_fpos_t=no |
| 8607 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8608 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8609 | fi |
| 8610 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 8611 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 8612 | |
| 8613 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 8614 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 8615 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 8616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8617 | else |
| 8618 | if test "$ac_cv_type_fpos_t" = yes; then |
| 8619 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8620 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8621 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8622 | # This bug is HP SR number 8606223364. |
| 8623 | if test "$cross_compiling" = yes; then |
| 8624 | # Depending upon the size, compute the lo and hi bounds. |
| 8625 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8626 | /* confdefs.h. */ |
| 8627 | _ACEOF |
| 8628 | cat confdefs.h >>conftest.$ac_ext |
| 8629 | cat >>conftest.$ac_ext <<_ACEOF |
| 8630 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8631 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8632 | int |
| 8633 | main () |
| 8634 | { |
| 8635 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 8636 | test_array [0] = 0 |
| 8637 | |
| 8638 | ; |
| 8639 | return 0; |
| 8640 | } |
| 8641 | _ACEOF |
| 8642 | rm -f conftest.$ac_objext |
| 8643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8644 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8645 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8646 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8647 | rm -f conftest.er1 |
| 8648 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8650 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8651 | { ac_try='test -z "$ac_c_werror_flag" |
| 8652 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8654 | (eval $ac_try) 2>&5 |
| 8655 | ac_status=$? |
| 8656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8657 | (exit $ac_status); }; } && |
| 8658 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8660 | (eval $ac_try) 2>&5 |
| 8661 | ac_status=$? |
| 8662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8663 | (exit $ac_status); }; }; then |
| 8664 | ac_lo=0 ac_mid=0 |
| 8665 | while :; do |
| 8666 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8667 | /* confdefs.h. */ |
| 8668 | _ACEOF |
| 8669 | cat confdefs.h >>conftest.$ac_ext |
| 8670 | cat >>conftest.$ac_ext <<_ACEOF |
| 8671 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8672 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8673 | int |
| 8674 | main () |
| 8675 | { |
| 8676 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8677 | test_array [0] = 0 |
| 8678 | |
| 8679 | ; |
| 8680 | return 0; |
| 8681 | } |
| 8682 | _ACEOF |
| 8683 | rm -f conftest.$ac_objext |
| 8684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8685 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8686 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8687 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8688 | rm -f conftest.er1 |
| 8689 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8691 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8692 | { ac_try='test -z "$ac_c_werror_flag" |
| 8693 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8695 | (eval $ac_try) 2>&5 |
| 8696 | ac_status=$? |
| 8697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8698 | (exit $ac_status); }; } && |
| 8699 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8701 | (eval $ac_try) 2>&5 |
| 8702 | ac_status=$? |
| 8703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8704 | (exit $ac_status); }; }; then |
| 8705 | ac_hi=$ac_mid; break |
| 8706 | else |
| 8707 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8708 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8709 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8710 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8711 | if test $ac_lo -le $ac_mid; then |
| 8712 | ac_lo= ac_hi= |
| 8713 | break |
| 8714 | fi |
| 8715 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8716 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8717 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8718 | done |
| 8719 | else |
| 8720 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8721 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8722 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8723 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8724 | /* confdefs.h. */ |
| 8725 | _ACEOF |
| 8726 | cat confdefs.h >>conftest.$ac_ext |
| 8727 | cat >>conftest.$ac_ext <<_ACEOF |
| 8728 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8729 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8730 | int |
| 8731 | main () |
| 8732 | { |
| 8733 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 8734 | test_array [0] = 0 |
| 8735 | |
| 8736 | ; |
| 8737 | return 0; |
| 8738 | } |
| 8739 | _ACEOF |
| 8740 | rm -f conftest.$ac_objext |
| 8741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8742 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8743 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8744 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8745 | rm -f conftest.er1 |
| 8746 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8748 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8749 | { ac_try='test -z "$ac_c_werror_flag" |
| 8750 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8752 | (eval $ac_try) 2>&5 |
| 8753 | ac_status=$? |
| 8754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8755 | (exit $ac_status); }; } && |
| 8756 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8758 | (eval $ac_try) 2>&5 |
| 8759 | ac_status=$? |
| 8760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8761 | (exit $ac_status); }; }; then |
| 8762 | ac_hi=-1 ac_mid=-1 |
| 8763 | while :; do |
| 8764 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8765 | /* confdefs.h. */ |
| 8766 | _ACEOF |
| 8767 | cat confdefs.h >>conftest.$ac_ext |
| 8768 | cat >>conftest.$ac_ext <<_ACEOF |
| 8769 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8770 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8771 | int |
| 8772 | main () |
| 8773 | { |
| 8774 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 8775 | test_array [0] = 0 |
| 8776 | |
| 8777 | ; |
| 8778 | return 0; |
| 8779 | } |
| 8780 | _ACEOF |
| 8781 | rm -f conftest.$ac_objext |
| 8782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8783 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8784 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8785 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8786 | rm -f conftest.er1 |
| 8787 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8789 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8790 | { ac_try='test -z "$ac_c_werror_flag" |
| 8791 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8793 | (eval $ac_try) 2>&5 |
| 8794 | ac_status=$? |
| 8795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8796 | (exit $ac_status); }; } && |
| 8797 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8799 | (eval $ac_try) 2>&5 |
| 8800 | ac_status=$? |
| 8801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8802 | (exit $ac_status); }; }; then |
| 8803 | ac_lo=$ac_mid; break |
| 8804 | else |
| 8805 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8806 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8807 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8808 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8809 | if test $ac_mid -le $ac_hi; then |
| 8810 | ac_lo= ac_hi= |
| 8811 | break |
| 8812 | fi |
| 8813 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8814 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8815 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8816 | done |
| 8817 | else |
| 8818 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8820 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8821 | ac_lo= ac_hi= |
| 8822 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8823 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | # Binary search between lo and hi bounds. |
| 8827 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8828 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8829 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8830 | /* confdefs.h. */ |
| 8831 | _ACEOF |
| 8832 | cat confdefs.h >>conftest.$ac_ext |
| 8833 | cat >>conftest.$ac_ext <<_ACEOF |
| 8834 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8835 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8836 | int |
| 8837 | main () |
| 8838 | { |
| 8839 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8840 | test_array [0] = 0 |
| 8841 | |
| 8842 | ; |
| 8843 | return 0; |
| 8844 | } |
| 8845 | _ACEOF |
| 8846 | rm -f conftest.$ac_objext |
| 8847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8848 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8849 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8850 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8851 | rm -f conftest.er1 |
| 8852 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8854 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8855 | { ac_try='test -z "$ac_c_werror_flag" |
| 8856 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8858 | (eval $ac_try) 2>&5 |
| 8859 | ac_status=$? |
| 8860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8861 | (exit $ac_status); }; } && |
| 8862 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8864 | (eval $ac_try) 2>&5 |
| 8865 | ac_status=$? |
| 8866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8867 | (exit $ac_status); }; }; then |
| 8868 | ac_hi=$ac_mid |
| 8869 | else |
| 8870 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8871 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8872 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8873 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8874 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8875 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8876 | done |
| 8877 | case $ac_lo in |
| 8878 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8879 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| 8880 | See \`config.log' for more details." >&5 |
| 8881 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| 8882 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8883 | { (exit 1); exit 1; }; } ;; |
| 8884 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8885 | else |
| 8886 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8887 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8888 | See \`config.log' for more details." >&5 |
| 8889 | echo "$as_me: error: cannot run test program while cross compiling |
| 8890 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8891 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8892 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8893 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8894 | /* confdefs.h. */ |
| 8895 | _ACEOF |
| 8896 | cat confdefs.h >>conftest.$ac_ext |
| 8897 | cat >>conftest.$ac_ext <<_ACEOF |
| 8898 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8899 | $ac_includes_default |
| 8900 | long longval () { return (long) (sizeof (fpos_t)); } |
| 8901 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8902 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8903 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8904 | int |
| 8905 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8906 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8907 | |
| 8908 | FILE *f = fopen ("conftest.val", "w"); |
| 8909 | if (! f) |
| 8910 | exit (1); |
| 8911 | if (((long) (sizeof (fpos_t))) < 0) |
| 8912 | { |
| 8913 | long i = longval (); |
| 8914 | if (i != ((long) (sizeof (fpos_t)))) |
| 8915 | exit (1); |
| 8916 | fprintf (f, "%ld\n", i); |
| 8917 | } |
| 8918 | else |
| 8919 | { |
| 8920 | unsigned long i = ulongval (); |
| 8921 | if (i != ((long) (sizeof (fpos_t)))) |
| 8922 | exit (1); |
| 8923 | fprintf (f, "%lu\n", i); |
| 8924 | } |
| 8925 | exit (ferror (f) || fclose (f) != 0); |
| 8926 | |
| 8927 | ; |
| 8928 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8929 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8930 | _ACEOF |
| 8931 | rm -f conftest$ac_exeext |
| 8932 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8933 | (eval $ac_link) 2>&5 |
| 8934 | ac_status=$? |
| 8935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8936 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8938 | (eval $ac_try) 2>&5 |
| 8939 | ac_status=$? |
| 8940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8941 | (exit $ac_status); }; }; then |
| 8942 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8943 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8944 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8945 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8946 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8947 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8948 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8949 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| 8950 | See \`config.log' for more details." >&5 |
| 8951 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| 8952 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8953 | { (exit 1); exit 1; }; } |
| 8954 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8955 | 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] | 8956 | fi |
| 8957 | fi |
| 8958 | rm -f conftest.val |
| 8959 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8960 | ac_cv_sizeof_fpos_t=0 |
| 8961 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8962 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8963 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 8964 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 8965 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8966 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8967 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8968 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8969 | |
| 8970 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8971 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 8972 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8973 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8974 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8975 | /* confdefs.h. */ |
| 8976 | _ACEOF |
| 8977 | cat confdefs.h >>conftest.$ac_ext |
| 8978 | cat >>conftest.$ac_ext <<_ACEOF |
| 8979 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8980 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8981 | int |
| 8982 | main () |
| 8983 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8984 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8985 | ; |
| 8986 | return 0; |
| 8987 | } |
| 8988 | _ACEOF |
| 8989 | rm -f conftest.$ac_objext |
| 8990 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8991 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8992 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8993 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8994 | rm -f conftest.er1 |
| 8995 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8997 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8998 | { ac_try='test -z "$ac_c_werror_flag" |
| 8999 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9001 | (eval $ac_try) 2>&5 |
| 9002 | ac_status=$? |
| 9003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9004 | (exit $ac_status); }; } && |
| 9005 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9007 | (eval $ac_try) 2>&5 |
| 9008 | ac_status=$? |
| 9009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9010 | (exit $ac_status); }; }; then |
| 9011 | |
| 9012 | |
| 9013 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9014 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9015 | _ACEOF |
| 9016 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 9017 | have_long_long=yes |
| 9018 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9019 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9020 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9021 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9022 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9023 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9024 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9025 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 9026 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 9027 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9028 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 9029 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 9030 | if test "${ac_cv_type_long_long+set}" = set; then |
| 9031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9032 | else |
| 9033 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9034 | /* confdefs.h. */ |
| 9035 | _ACEOF |
| 9036 | cat confdefs.h >>conftest.$ac_ext |
| 9037 | cat >>conftest.$ac_ext <<_ACEOF |
| 9038 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9039 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9040 | int |
| 9041 | main () |
| 9042 | { |
| 9043 | if ((long long *) 0) |
| 9044 | return 0; |
| 9045 | if (sizeof (long long)) |
| 9046 | return 0; |
| 9047 | ; |
| 9048 | return 0; |
| 9049 | } |
| 9050 | _ACEOF |
| 9051 | rm -f conftest.$ac_objext |
| 9052 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9053 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9054 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9055 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9056 | rm -f conftest.er1 |
| 9057 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9059 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9060 | { ac_try='test -z "$ac_c_werror_flag" |
| 9061 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9063 | (eval $ac_try) 2>&5 |
| 9064 | ac_status=$? |
| 9065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9066 | (exit $ac_status); }; } && |
| 9067 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9069 | (eval $ac_try) 2>&5 |
| 9070 | ac_status=$? |
| 9071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9072 | (exit $ac_status); }; }; then |
| 9073 | ac_cv_type_long_long=yes |
| 9074 | else |
| 9075 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9076 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9077 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9078 | ac_cv_type_long_long=no |
| 9079 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9080 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9081 | fi |
| 9082 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 9083 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 9084 | |
| 9085 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 9086 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 9087 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 9088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9089 | else |
| 9090 | if test "$ac_cv_type_long_long" = yes; then |
| 9091 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 9092 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9093 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9094 | # This bug is HP SR number 8606223364. |
| 9095 | if test "$cross_compiling" = yes; then |
| 9096 | # Depending upon the size, compute the lo and hi bounds. |
| 9097 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9098 | /* confdefs.h. */ |
| 9099 | _ACEOF |
| 9100 | cat confdefs.h >>conftest.$ac_ext |
| 9101 | cat >>conftest.$ac_ext <<_ACEOF |
| 9102 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9103 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9104 | int |
| 9105 | main () |
| 9106 | { |
| 9107 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 9108 | test_array [0] = 0 |
| 9109 | |
| 9110 | ; |
| 9111 | return 0; |
| 9112 | } |
| 9113 | _ACEOF |
| 9114 | rm -f conftest.$ac_objext |
| 9115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9116 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9117 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9118 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9119 | rm -f conftest.er1 |
| 9120 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9122 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9123 | { ac_try='test -z "$ac_c_werror_flag" |
| 9124 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9126 | (eval $ac_try) 2>&5 |
| 9127 | ac_status=$? |
| 9128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9129 | (exit $ac_status); }; } && |
| 9130 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9132 | (eval $ac_try) 2>&5 |
| 9133 | ac_status=$? |
| 9134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9135 | (exit $ac_status); }; }; then |
| 9136 | ac_lo=0 ac_mid=0 |
| 9137 | while :; do |
| 9138 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9139 | /* confdefs.h. */ |
| 9140 | _ACEOF |
| 9141 | cat confdefs.h >>conftest.$ac_ext |
| 9142 | cat >>conftest.$ac_ext <<_ACEOF |
| 9143 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9144 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9145 | int |
| 9146 | main () |
| 9147 | { |
| 9148 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 9149 | test_array [0] = 0 |
| 9150 | |
| 9151 | ; |
| 9152 | return 0; |
| 9153 | } |
| 9154 | _ACEOF |
| 9155 | rm -f conftest.$ac_objext |
| 9156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9157 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9158 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9159 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9160 | rm -f conftest.er1 |
| 9161 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9163 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9164 | { ac_try='test -z "$ac_c_werror_flag" |
| 9165 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9167 | (eval $ac_try) 2>&5 |
| 9168 | ac_status=$? |
| 9169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9170 | (exit $ac_status); }; } && |
| 9171 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9173 | (eval $ac_try) 2>&5 |
| 9174 | ac_status=$? |
| 9175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9176 | (exit $ac_status); }; }; then |
| 9177 | ac_hi=$ac_mid; break |
| 9178 | else |
| 9179 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9181 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9182 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9183 | if test $ac_lo -le $ac_mid; then |
| 9184 | ac_lo= ac_hi= |
| 9185 | break |
| 9186 | fi |
| 9187 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9188 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9189 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9190 | done |
| 9191 | else |
| 9192 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9193 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9194 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9195 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9196 | /* confdefs.h. */ |
| 9197 | _ACEOF |
| 9198 | cat confdefs.h >>conftest.$ac_ext |
| 9199 | cat >>conftest.$ac_ext <<_ACEOF |
| 9200 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9201 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9202 | int |
| 9203 | main () |
| 9204 | { |
| 9205 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 9206 | test_array [0] = 0 |
| 9207 | |
| 9208 | ; |
| 9209 | return 0; |
| 9210 | } |
| 9211 | _ACEOF |
| 9212 | rm -f conftest.$ac_objext |
| 9213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9214 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9215 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9216 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9217 | rm -f conftest.er1 |
| 9218 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9220 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9221 | { ac_try='test -z "$ac_c_werror_flag" |
| 9222 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9224 | (eval $ac_try) 2>&5 |
| 9225 | ac_status=$? |
| 9226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9227 | (exit $ac_status); }; } && |
| 9228 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9230 | (eval $ac_try) 2>&5 |
| 9231 | ac_status=$? |
| 9232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9233 | (exit $ac_status); }; }; then |
| 9234 | ac_hi=-1 ac_mid=-1 |
| 9235 | while :; do |
| 9236 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9237 | /* confdefs.h. */ |
| 9238 | _ACEOF |
| 9239 | cat confdefs.h >>conftest.$ac_ext |
| 9240 | cat >>conftest.$ac_ext <<_ACEOF |
| 9241 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9242 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9243 | int |
| 9244 | main () |
| 9245 | { |
| 9246 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 9247 | test_array [0] = 0 |
| 9248 | |
| 9249 | ; |
| 9250 | return 0; |
| 9251 | } |
| 9252 | _ACEOF |
| 9253 | rm -f conftest.$ac_objext |
| 9254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9255 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9256 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9257 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9258 | rm -f conftest.er1 |
| 9259 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9261 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9262 | { ac_try='test -z "$ac_c_werror_flag" |
| 9263 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9265 | (eval $ac_try) 2>&5 |
| 9266 | ac_status=$? |
| 9267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9268 | (exit $ac_status); }; } && |
| 9269 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9271 | (eval $ac_try) 2>&5 |
| 9272 | ac_status=$? |
| 9273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9274 | (exit $ac_status); }; }; then |
| 9275 | ac_lo=$ac_mid; break |
| 9276 | else |
| 9277 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9278 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9279 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9280 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9281 | if test $ac_mid -le $ac_hi; then |
| 9282 | ac_lo= ac_hi= |
| 9283 | break |
| 9284 | fi |
| 9285 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9286 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9288 | done |
| 9289 | else |
| 9290 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9291 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9292 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9293 | ac_lo= ac_hi= |
| 9294 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9295 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | # Binary search between lo and hi bounds. |
| 9299 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9300 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9301 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9302 | /* confdefs.h. */ |
| 9303 | _ACEOF |
| 9304 | cat confdefs.h >>conftest.$ac_ext |
| 9305 | cat >>conftest.$ac_ext <<_ACEOF |
| 9306 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9307 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9308 | int |
| 9309 | main () |
| 9310 | { |
| 9311 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 9312 | test_array [0] = 0 |
| 9313 | |
| 9314 | ; |
| 9315 | return 0; |
| 9316 | } |
| 9317 | _ACEOF |
| 9318 | rm -f conftest.$ac_objext |
| 9319 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9320 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9321 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9322 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9323 | rm -f conftest.er1 |
| 9324 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9326 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9327 | { ac_try='test -z "$ac_c_werror_flag" |
| 9328 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9330 | (eval $ac_try) 2>&5 |
| 9331 | ac_status=$? |
| 9332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9333 | (exit $ac_status); }; } && |
| 9334 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9336 | (eval $ac_try) 2>&5 |
| 9337 | ac_status=$? |
| 9338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9339 | (exit $ac_status); }; }; then |
| 9340 | ac_hi=$ac_mid |
| 9341 | else |
| 9342 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9343 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9344 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9345 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9346 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9347 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9348 | done |
| 9349 | case $ac_lo in |
| 9350 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9351 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 9352 | See \`config.log' for more details." >&5 |
| 9353 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 9354 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9355 | { (exit 1); exit 1; }; } ;; |
| 9356 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9357 | else |
| 9358 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9359 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 9360 | See \`config.log' for more details." >&5 |
| 9361 | echo "$as_me: error: cannot run test program while cross compiling |
| 9362 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9363 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9364 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9365 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9366 | /* confdefs.h. */ |
| 9367 | _ACEOF |
| 9368 | cat confdefs.h >>conftest.$ac_ext |
| 9369 | cat >>conftest.$ac_ext <<_ACEOF |
| 9370 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9371 | $ac_includes_default |
| 9372 | long longval () { return (long) (sizeof (long long)); } |
| 9373 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9374 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9375 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9376 | int |
| 9377 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9378 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9379 | |
| 9380 | FILE *f = fopen ("conftest.val", "w"); |
| 9381 | if (! f) |
| 9382 | exit (1); |
| 9383 | if (((long) (sizeof (long long))) < 0) |
| 9384 | { |
| 9385 | long i = longval (); |
| 9386 | if (i != ((long) (sizeof (long long)))) |
| 9387 | exit (1); |
| 9388 | fprintf (f, "%ld\n", i); |
| 9389 | } |
| 9390 | else |
| 9391 | { |
| 9392 | unsigned long i = ulongval (); |
| 9393 | if (i != ((long) (sizeof (long long)))) |
| 9394 | exit (1); |
| 9395 | fprintf (f, "%lu\n", i); |
| 9396 | } |
| 9397 | exit (ferror (f) || fclose (f) != 0); |
| 9398 | |
| 9399 | ; |
| 9400 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9401 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9402 | _ACEOF |
| 9403 | rm -f conftest$ac_exeext |
| 9404 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9405 | (eval $ac_link) 2>&5 |
| 9406 | ac_status=$? |
| 9407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9408 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9410 | (eval $ac_try) 2>&5 |
| 9411 | ac_status=$? |
| 9412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9413 | (exit $ac_status); }; }; then |
| 9414 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9415 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9416 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9417 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9418 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9419 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9420 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9421 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 9422 | See \`config.log' for more details." >&5 |
| 9423 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 9424 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9425 | { (exit 1); exit 1; }; } |
| 9426 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9427 | 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] | 9428 | fi |
| 9429 | fi |
| 9430 | rm -f conftest.val |
| 9431 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9432 | ac_cv_sizeof_long_long=0 |
| 9433 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9434 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9435 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 9436 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 9437 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9438 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9439 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9440 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9441 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9442 | fi |
| 9443 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9444 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 9445 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9446 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9447 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9448 | /* confdefs.h. */ |
| 9449 | _ACEOF |
| 9450 | cat confdefs.h >>conftest.$ac_ext |
| 9451 | cat >>conftest.$ac_ext <<_ACEOF |
| 9452 | /* end confdefs.h. */ |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9453 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9454 | int |
| 9455 | main () |
| 9456 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9457 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9458 | ; |
| 9459 | return 0; |
| 9460 | } |
| 9461 | _ACEOF |
| 9462 | rm -f conftest.$ac_objext |
| 9463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9464 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9465 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9466 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9467 | rm -f conftest.er1 |
| 9468 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9470 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9471 | { ac_try='test -z "$ac_c_werror_flag" |
| 9472 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9474 | (eval $ac_try) 2>&5 |
| 9475 | ac_status=$? |
| 9476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9477 | (exit $ac_status); }; } && |
| 9478 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9480 | (eval $ac_try) 2>&5 |
| 9481 | ac_status=$? |
| 9482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9483 | (exit $ac_status); }; }; then |
| 9484 | |
| 9485 | |
| 9486 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9487 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9488 | _ACEOF |
| 9489 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 9490 | have_uintptr_t=yes |
| 9491 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9492 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9493 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9495 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9496 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9497 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9498 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 9499 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9500 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9501 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 9502 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 9503 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 9504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9505 | else |
| 9506 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9507 | /* confdefs.h. */ |
| 9508 | _ACEOF |
| 9509 | cat confdefs.h >>conftest.$ac_ext |
| 9510 | cat >>conftest.$ac_ext <<_ACEOF |
| 9511 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9512 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9513 | int |
| 9514 | main () |
| 9515 | { |
| 9516 | if ((uintptr_t *) 0) |
| 9517 | return 0; |
| 9518 | if (sizeof (uintptr_t)) |
| 9519 | return 0; |
| 9520 | ; |
| 9521 | return 0; |
| 9522 | } |
| 9523 | _ACEOF |
| 9524 | rm -f conftest.$ac_objext |
| 9525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9526 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9527 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9528 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9529 | rm -f conftest.er1 |
| 9530 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9532 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9533 | { ac_try='test -z "$ac_c_werror_flag" |
| 9534 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9536 | (eval $ac_try) 2>&5 |
| 9537 | ac_status=$? |
| 9538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9539 | (exit $ac_status); }; } && |
| 9540 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9542 | (eval $ac_try) 2>&5 |
| 9543 | ac_status=$? |
| 9544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9545 | (exit $ac_status); }; }; then |
| 9546 | ac_cv_type_uintptr_t=yes |
| 9547 | else |
| 9548 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9549 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9550 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9551 | ac_cv_type_uintptr_t=no |
| 9552 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9553 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9554 | fi |
| 9555 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 9556 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 9557 | |
| 9558 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 9559 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 9560 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 9561 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9562 | else |
| 9563 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 9564 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 9565 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9566 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9567 | # This bug is HP SR number 8606223364. |
| 9568 | if test "$cross_compiling" = yes; then |
| 9569 | # Depending upon the size, compute the lo and hi bounds. |
| 9570 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9571 | /* confdefs.h. */ |
| 9572 | _ACEOF |
| 9573 | cat confdefs.h >>conftest.$ac_ext |
| 9574 | cat >>conftest.$ac_ext <<_ACEOF |
| 9575 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9576 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9577 | int |
| 9578 | main () |
| 9579 | { |
| 9580 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 9581 | test_array [0] = 0 |
| 9582 | |
| 9583 | ; |
| 9584 | return 0; |
| 9585 | } |
| 9586 | _ACEOF |
| 9587 | rm -f conftest.$ac_objext |
| 9588 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9589 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9590 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9591 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9592 | rm -f conftest.er1 |
| 9593 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9595 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9596 | { ac_try='test -z "$ac_c_werror_flag" |
| 9597 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9599 | (eval $ac_try) 2>&5 |
| 9600 | ac_status=$? |
| 9601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9602 | (exit $ac_status); }; } && |
| 9603 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9605 | (eval $ac_try) 2>&5 |
| 9606 | ac_status=$? |
| 9607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9608 | (exit $ac_status); }; }; then |
| 9609 | ac_lo=0 ac_mid=0 |
| 9610 | while :; do |
| 9611 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9612 | /* confdefs.h. */ |
| 9613 | _ACEOF |
| 9614 | cat confdefs.h >>conftest.$ac_ext |
| 9615 | cat >>conftest.$ac_ext <<_ACEOF |
| 9616 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9617 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9618 | int |
| 9619 | main () |
| 9620 | { |
| 9621 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 9622 | test_array [0] = 0 |
| 9623 | |
| 9624 | ; |
| 9625 | return 0; |
| 9626 | } |
| 9627 | _ACEOF |
| 9628 | rm -f conftest.$ac_objext |
| 9629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9630 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9631 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9633 | rm -f conftest.er1 |
| 9634 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9636 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9637 | { ac_try='test -z "$ac_c_werror_flag" |
| 9638 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9640 | (eval $ac_try) 2>&5 |
| 9641 | ac_status=$? |
| 9642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9643 | (exit $ac_status); }; } && |
| 9644 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9646 | (eval $ac_try) 2>&5 |
| 9647 | ac_status=$? |
| 9648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9649 | (exit $ac_status); }; }; then |
| 9650 | ac_hi=$ac_mid; break |
| 9651 | else |
| 9652 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9654 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9655 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9656 | if test $ac_lo -le $ac_mid; then |
| 9657 | ac_lo= ac_hi= |
| 9658 | break |
| 9659 | fi |
| 9660 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9661 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9662 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9663 | done |
| 9664 | else |
| 9665 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9667 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9668 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9669 | /* confdefs.h. */ |
| 9670 | _ACEOF |
| 9671 | cat confdefs.h >>conftest.$ac_ext |
| 9672 | cat >>conftest.$ac_ext <<_ACEOF |
| 9673 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9674 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9675 | int |
| 9676 | main () |
| 9677 | { |
| 9678 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 9679 | test_array [0] = 0 |
| 9680 | |
| 9681 | ; |
| 9682 | return 0; |
| 9683 | } |
| 9684 | _ACEOF |
| 9685 | rm -f conftest.$ac_objext |
| 9686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9687 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9688 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9689 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9690 | rm -f conftest.er1 |
| 9691 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9693 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9694 | { ac_try='test -z "$ac_c_werror_flag" |
| 9695 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9697 | (eval $ac_try) 2>&5 |
| 9698 | ac_status=$? |
| 9699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9700 | (exit $ac_status); }; } && |
| 9701 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9703 | (eval $ac_try) 2>&5 |
| 9704 | ac_status=$? |
| 9705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9706 | (exit $ac_status); }; }; then |
| 9707 | ac_hi=-1 ac_mid=-1 |
| 9708 | while :; do |
| 9709 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9710 | /* confdefs.h. */ |
| 9711 | _ACEOF |
| 9712 | cat confdefs.h >>conftest.$ac_ext |
| 9713 | cat >>conftest.$ac_ext <<_ACEOF |
| 9714 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9715 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9716 | int |
| 9717 | main () |
| 9718 | { |
| 9719 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 9720 | test_array [0] = 0 |
| 9721 | |
| 9722 | ; |
| 9723 | return 0; |
| 9724 | } |
| 9725 | _ACEOF |
| 9726 | rm -f conftest.$ac_objext |
| 9727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9728 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9729 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9730 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9731 | rm -f conftest.er1 |
| 9732 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9734 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9735 | { ac_try='test -z "$ac_c_werror_flag" |
| 9736 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9738 | (eval $ac_try) 2>&5 |
| 9739 | ac_status=$? |
| 9740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9741 | (exit $ac_status); }; } && |
| 9742 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9744 | (eval $ac_try) 2>&5 |
| 9745 | ac_status=$? |
| 9746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9747 | (exit $ac_status); }; }; then |
| 9748 | ac_lo=$ac_mid; break |
| 9749 | else |
| 9750 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9752 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9753 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9754 | if test $ac_mid -le $ac_hi; then |
| 9755 | ac_lo= ac_hi= |
| 9756 | break |
| 9757 | fi |
| 9758 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9759 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9760 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9761 | done |
| 9762 | else |
| 9763 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9764 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9765 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9766 | ac_lo= ac_hi= |
| 9767 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9768 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | # Binary search between lo and hi bounds. |
| 9772 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9773 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9774 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9775 | /* confdefs.h. */ |
| 9776 | _ACEOF |
| 9777 | cat confdefs.h >>conftest.$ac_ext |
| 9778 | cat >>conftest.$ac_ext <<_ACEOF |
| 9779 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9780 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9781 | int |
| 9782 | main () |
| 9783 | { |
| 9784 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 9785 | test_array [0] = 0 |
| 9786 | |
| 9787 | ; |
| 9788 | return 0; |
| 9789 | } |
| 9790 | _ACEOF |
| 9791 | rm -f conftest.$ac_objext |
| 9792 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9793 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9794 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9795 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9796 | rm -f conftest.er1 |
| 9797 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9799 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9800 | { ac_try='test -z "$ac_c_werror_flag" |
| 9801 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9803 | (eval $ac_try) 2>&5 |
| 9804 | ac_status=$? |
| 9805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9806 | (exit $ac_status); }; } && |
| 9807 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9809 | (eval $ac_try) 2>&5 |
| 9810 | ac_status=$? |
| 9811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9812 | (exit $ac_status); }; }; then |
| 9813 | ac_hi=$ac_mid |
| 9814 | else |
| 9815 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9817 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9818 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9819 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9821 | done |
| 9822 | case $ac_lo in |
| 9823 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9824 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| 9825 | See \`config.log' for more details." >&5 |
| 9826 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| 9827 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9828 | { (exit 1); exit 1; }; } ;; |
| 9829 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9830 | else |
| 9831 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9832 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 9833 | See \`config.log' for more details." >&5 |
| 9834 | echo "$as_me: error: cannot run test program while cross compiling |
| 9835 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9836 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9837 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9838 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9839 | /* confdefs.h. */ |
| 9840 | _ACEOF |
| 9841 | cat confdefs.h >>conftest.$ac_ext |
| 9842 | cat >>conftest.$ac_ext <<_ACEOF |
| 9843 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9844 | $ac_includes_default |
| 9845 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 9846 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9847 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9848 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9849 | int |
| 9850 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9851 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9852 | |
| 9853 | FILE *f = fopen ("conftest.val", "w"); |
| 9854 | if (! f) |
| 9855 | exit (1); |
| 9856 | if (((long) (sizeof (uintptr_t))) < 0) |
| 9857 | { |
| 9858 | long i = longval (); |
| 9859 | if (i != ((long) (sizeof (uintptr_t)))) |
| 9860 | exit (1); |
| 9861 | fprintf (f, "%ld\n", i); |
| 9862 | } |
| 9863 | else |
| 9864 | { |
| 9865 | unsigned long i = ulongval (); |
| 9866 | if (i != ((long) (sizeof (uintptr_t)))) |
| 9867 | exit (1); |
| 9868 | fprintf (f, "%lu\n", i); |
| 9869 | } |
| 9870 | exit (ferror (f) || fclose (f) != 0); |
| 9871 | |
| 9872 | ; |
| 9873 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9874 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9875 | _ACEOF |
| 9876 | rm -f conftest$ac_exeext |
| 9877 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9878 | (eval $ac_link) 2>&5 |
| 9879 | ac_status=$? |
| 9880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9881 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9883 | (eval $ac_try) 2>&5 |
| 9884 | ac_status=$? |
| 9885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9886 | (exit $ac_status); }; }; then |
| 9887 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9888 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9889 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9890 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9891 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9892 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9893 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9894 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| 9895 | See \`config.log' for more details." >&5 |
| 9896 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| 9897 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9898 | { (exit 1); exit 1; }; } |
| 9899 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9900 | 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] | 9901 | fi |
| 9902 | fi |
| 9903 | rm -f conftest.val |
| 9904 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9905 | ac_cv_sizeof_uintptr_t=0 |
| 9906 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9907 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9908 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 9909 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 9910 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9911 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9912 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9913 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9914 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9915 | fi |
| 9916 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9917 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9918 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 9919 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 9920 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 9921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9922 | else |
| 9923 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9924 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9925 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9926 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9927 | /* confdefs.h. */ |
| 9928 | _ACEOF |
| 9929 | cat confdefs.h >>conftest.$ac_ext |
| 9930 | cat >>conftest.$ac_ext <<_ACEOF |
| 9931 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9932 | #include <stdio.h> |
| 9933 | #include <sys/types.h> |
| 9934 | main() |
| 9935 | { |
| 9936 | FILE *f=fopen("conftestval", "w"); |
| 9937 | if (!f) exit(1); |
| 9938 | fprintf(f, "%d\n", sizeof(off_t)); |
| 9939 | exit(0); |
| 9940 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9941 | _ACEOF |
| 9942 | rm -f conftest$ac_exeext |
| 9943 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9944 | (eval $ac_link) 2>&5 |
| 9945 | ac_status=$? |
| 9946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9947 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9949 | (eval $ac_try) 2>&5 |
| 9950 | ac_status=$? |
| 9951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9952 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9953 | ac_cv_sizeof_off_t=`cat conftestval` |
| 9954 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9955 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9956 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9957 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9958 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9959 | ( exit $ac_status ) |
| 9960 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9961 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9962 | 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] | 9963 | fi |
| 9964 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9965 | fi |
| 9966 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9967 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 9968 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 9969 | |
| 9970 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9971 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9972 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9973 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9974 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9975 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 9976 | 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] | 9977 | if test "$have_long_long" = yes -a \ |
| 9978 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 9979 | "$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] | 9980 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9981 | cat >>confdefs.h <<\_ACEOF |
| 9982 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 9983 | _ACEOF |
| 9984 | |
| 9985 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9986 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9987 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9988 | echo "$as_me:$LINENO: result: no" >&5 |
| 9989 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9990 | fi |
| 9991 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9992 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9993 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 9994 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 9995 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 9996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9997 | else |
| 9998 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9999 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10000 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10001 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10002 | /* confdefs.h. */ |
| 10003 | _ACEOF |
| 10004 | cat confdefs.h >>conftest.$ac_ext |
| 10005 | cat >>conftest.$ac_ext <<_ACEOF |
| 10006 | /* end confdefs.h. */ |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10007 | #include <stdio.h> |
| 10008 | #include <time.h> |
| 10009 | main() |
| 10010 | { |
| 10011 | FILE *f=fopen("conftestval", "w"); |
| 10012 | if (!f) exit(1); |
| 10013 | fprintf(f, "%d\n", sizeof(time_t)); |
| 10014 | exit(0); |
| 10015 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10016 | _ACEOF |
| 10017 | rm -f conftest$ac_exeext |
| 10018 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10019 | (eval $ac_link) 2>&5 |
| 10020 | ac_status=$? |
| 10021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10022 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10024 | (eval $ac_try) 2>&5 |
| 10025 | ac_status=$? |
| 10026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10027 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10028 | ac_cv_sizeof_time_t=`cat conftestval` |
| 10029 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10030 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10031 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10032 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10033 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10034 | ( exit $ac_status ) |
| 10035 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10036 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10037 | 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] | 10038 | fi |
| 10039 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10040 | fi |
| 10041 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10042 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 10043 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 10044 | |
| 10045 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10046 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10047 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10048 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10049 | |
| 10050 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10051 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10052 | ac_save_cc="$CC" |
| 10053 | if test "$ac_cv_kpthread" = "yes" |
| 10054 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10055 | elif test "$ac_cv_kthread" = "yes" |
| 10056 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10057 | elif test "$ac_cv_pthread" = "yes" |
| 10058 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10059 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10060 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 10061 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10062 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10063 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10064 | /* confdefs.h. */ |
| 10065 | _ACEOF |
| 10066 | cat confdefs.h >>conftest.$ac_ext |
| 10067 | cat >>conftest.$ac_ext <<_ACEOF |
| 10068 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10069 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10070 | int |
| 10071 | main () |
| 10072 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 10073 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10074 | ; |
| 10075 | return 0; |
| 10076 | } |
| 10077 | _ACEOF |
| 10078 | rm -f conftest.$ac_objext |
| 10079 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10080 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10081 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10083 | rm -f conftest.er1 |
| 10084 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10086 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10087 | { ac_try='test -z "$ac_c_werror_flag" |
| 10088 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10090 | (eval $ac_try) 2>&5 |
| 10091 | ac_status=$? |
| 10092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10093 | (exit $ac_status); }; } && |
| 10094 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10096 | (eval $ac_try) 2>&5 |
| 10097 | ac_status=$? |
| 10098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10099 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10100 | have_pthread_t=yes |
| 10101 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10102 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10103 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10104 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10105 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10106 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10107 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 10108 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10109 | if test "$have_pthread_t" = yes ; then |
| 10110 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10111 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 10112 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 10113 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 10114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10115 | else |
| 10116 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 10117 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10118 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10119 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10120 | /* confdefs.h. */ |
| 10121 | _ACEOF |
| 10122 | cat confdefs.h >>conftest.$ac_ext |
| 10123 | cat >>conftest.$ac_ext <<_ACEOF |
| 10124 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10125 | #include <stdio.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10126 | #include <pthread.h> |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10127 | main() |
| 10128 | { |
| 10129 | FILE *f=fopen("conftestval", "w"); |
| 10130 | if (!f) exit(1); |
| 10131 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 10132 | exit(0); |
| 10133 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10134 | _ACEOF |
| 10135 | rm -f conftest$ac_exeext |
| 10136 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10137 | (eval $ac_link) 2>&5 |
| 10138 | ac_status=$? |
| 10139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10140 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10142 | (eval $ac_try) 2>&5 |
| 10143 | ac_status=$? |
| 10144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10145 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10146 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 10147 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10148 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10149 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10151 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10152 | ( exit $ac_status ) |
| 10153 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10154 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10155 | 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] | 10156 | fi |
| 10157 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10158 | fi |
| 10159 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10160 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 10161 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 10162 | |
| 10163 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10164 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10165 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10166 | |
| 10167 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10168 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10169 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10170 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 10171 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10172 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 10173 | if test "${enable_toolbox_glue+set}" = set; then |
| 10174 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10175 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10176 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10177 | |
| 10178 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10179 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10180 | case $ac_sys_system/$ac_sys_release in |
| 10181 | Darwin/*) |
| 10182 | enable_toolbox_glue="yes";; |
| 10183 | *) |
| 10184 | enable_toolbox_glue="no";; |
| 10185 | esac |
| 10186 | fi |
| 10187 | case "$enable_toolbox_glue" in |
| 10188 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10189 | extra_machdep_objs="Python/mactoolboxglue.o" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 10190 | extra_undefs="-u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10191 | |
| 10192 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10193 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10194 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10195 | |
| 10196 | ;; |
| 10197 | *) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10198 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 10199 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10200 | ;; |
| 10201 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10202 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 10203 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10204 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10205 | |
| 10206 | case $ac_sys_system/$ac_sys_release in |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 10207 | Darwin/[01234567].*) |
| 10208 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 10209 | ;; |
| 10210 | Darwin/*) |
| 10211 | OTHER_LIBTOOL_OPT="" |
| 10212 | ;; |
| 10213 | esac |
| 10214 | |
| 10215 | |
| 10216 | case $ac_sys_system/$ac_sys_release in |
| 10217 | Darwin/[01234567].*) |
| 10218 | LIBTOOL_CRUFT="-framework System -lcc_dynamic -arch_only ppc" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 10219 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10220 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 10221 | Darwin/*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 10222 | gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3` |
| 10223 | if test ${gcc_version} '<' 4.0 |
| 10224 | then |
| 10225 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 10226 | else |
| 10227 | LIBTOOL_CRUFT="" |
| 10228 | fi |
| 10229 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -lSystem -lSystemStubs -arch_only ppc' |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 10230 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10231 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10232 | esac |
| 10233 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10234 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 10235 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10236 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10237 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10238 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10239 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10240 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10241 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10242 | cat >>confdefs.h <<\_ACEOF |
| 10243 | #define WITH_NEXT_FRAMEWORK 1 |
| 10244 | _ACEOF |
| 10245 | |
| 10246 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10247 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10248 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10249 | echo "$as_me:$LINENO: result: no" >&5 |
| 10250 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10251 | fi |
| 10252 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10253 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 10254 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10255 | case $ac_sys_system/$ac_sys_release in |
| 10256 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10257 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10258 | cat >>confdefs.h <<\_ACEOF |
| 10259 | #define WITH_DYLD 1 |
| 10260 | _ACEOF |
| 10261 | |
| 10262 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 10263 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10264 | ;; |
| 10265 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10266 | echo "$as_me:$LINENO: result: no" >&5 |
| 10267 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10268 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10269 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10270 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10271 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10272 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10273 | |
| 10274 | |
| 10275 | |
| 10276 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10277 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10278 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10279 | echo "$as_me:$LINENO: checking SO" >&5 |
| 10280 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10281 | if test -z "$SO" |
| 10282 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10283 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 10284 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10285 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 10286 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10287 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 10288 | else |
| 10289 | # this might also be a termcap variable, see #610332 |
| 10290 | echo |
| 10291 | echo '=====================================================================' |
| 10292 | echo '+ +' |
| 10293 | echo '+ WARNING: You have set SO in your environment. +' |
| 10294 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 10295 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 10296 | echo '+ +' |
| 10297 | echo '=====================================================================' |
| 10298 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10299 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10300 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 10301 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10302 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 10303 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10304 | # (Shared libraries in this instance are shared modules to be loaded into |
| 10305 | # 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] | 10306 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 10307 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10308 | if test -z "$LDSHARED" |
| 10309 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10310 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10311 | AIX*) |
| 10312 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 10313 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10314 | ;; |
| 10315 | BeOS*) |
| 10316 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 10317 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10318 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10319 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 10320 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10321 | SunOS/5*) |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 10322 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 10323 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 10324 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 10325 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10326 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 10327 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10328 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10329 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10330 | if test "$enable_framework" ; then |
| 10331 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10332 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 10333 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10334 | else |
| 10335 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10336 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10337 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10338 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10339 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10340 | if test "$enable_framework" ; then |
| 10341 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10342 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 10343 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10344 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 10345 | # No framework, use the Python app as bundle-loader |
| 10346 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 10347 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10348 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10349 | Darwin/*) |
| 10350 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 10351 | # This allows an extension to be used in any Python |
Jack Jansen | be95462 | 2004-12-26 23:07:48 +0000 | [diff] [blame] | 10352 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
Jack Jansen | c110f86 | 2005-01-07 10:49:32 +0000 | [diff] [blame] | 10353 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
Jack Jansen | be95462 | 2004-12-26 23:07:48 +0000 | [diff] [blame] | 10354 | if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10355 | then |
| 10356 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 10357 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10358 | else |
| 10359 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10360 | if test "$enable_framework" ; then |
| 10361 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10362 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 10363 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10364 | else |
| 10365 | # No framework, use the Python app as bundle-loader |
| 10366 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 10367 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 10368 | fi |
| 10369 | fi |
| 10370 | ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 10371 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 10372 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 10373 | OpenBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 10374 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 10375 | then |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 10376 | LDSHARED="$CC -shared ${LDFLAGS}" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 10377 | else |
| 10378 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 10379 | fi;; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 10380 | NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10381 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10382 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 10383 | then LDSHARED='$(CC) -shared' |
| 10384 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10385 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 10386 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10387 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10388 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10389 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10390 | *) LDSHARED="ld";; |
| 10391 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10392 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10393 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 10394 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10395 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10396 | # 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] | 10397 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10398 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 10399 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10400 | if test -z "$CCSHARED" |
| 10401 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10402 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 10403 | SunOS*) if test "$GCC" = yes; |
| 10404 | then CCSHARED="-fPIC"; |
| 10405 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 10406 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 10407 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 10408 | else CCSHARED="+z"; |
| 10409 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10410 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 10411 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 10412 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10413 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10414 | if test "$GCC" = "yes" |
| 10415 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10416 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10417 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 10418 | SCO_SV*) |
| 10419 | if test "$GCC" = "yes" |
| 10420 | then CCSHARED="-fPIC" |
| 10421 | else CCSHARED="-Kpic -belf" |
| 10422 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10423 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10424 | IRIX*/6*) case $CC in |
| 10425 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 10426 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10427 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10428 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10429 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10430 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10431 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 10432 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10433 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10434 | # 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] | 10435 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 10436 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10437 | if test -z "$LINKFORSHARED" |
| 10438 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10439 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10440 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 10441 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 10442 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 10443 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 10444 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10445 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10446 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10447 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 10448 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 10449 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10450 | # not used by the core itself but which needs to be in the core so |
| 10451 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 10452 | # -prebind is no longer used, because it actually seems to give a |
| 10453 | # slowdown in stead of a speedup, maybe due to the large number of |
| 10454 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 10455 | |
| 10456 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10457 | if test "$enable_framework" |
| 10458 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10459 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10460 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 10461 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10462 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 10463 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 10464 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10465 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 10466 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 10467 | then |
| 10468 | LINKFORSHARED="-Wl,--export-dynamic" |
| 10469 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10470 | SunOS/5*) case $CC in |
| 10471 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 10472 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 10473 | then |
| 10474 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 10475 | fi;; |
| 10476 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 10477 | CYGWIN*) |
| 10478 | if test $enable_shared = "no" |
| 10479 | then |
| 10480 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 10481 | fi;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10482 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10483 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10484 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 10485 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10486 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10487 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10488 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 10489 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10490 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 10491 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 10492 | case $ac_sys_system in |
| 10493 | CYGWIN*) |
| 10494 | # Cygwin needs CCSHARED when building extension DLLs |
| 10495 | # but not when building the interpreter DLL. |
| 10496 | CFLAGSFORSHARED='';; |
| 10497 | *) |
| 10498 | CFLAGSFORSHARED='$(CCSHARED)' |
| 10499 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10500 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10501 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 10502 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 10503 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10504 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 10505 | # library (with --enable-shared). |
| 10506 | # 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] | 10507 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 10508 | # if it is not required, since it creates a dependency of the shared library |
| 10509 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 10510 | # don't need to link LIBS explicitly. The default should be only changed |
| 10511 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10512 | |
| 10513 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 10514 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 10515 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10516 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 10517 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10518 | esac |
| 10519 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 10520 | echo "${ECHO_T}$SHLIBS" >&6 |
| 10521 | |
| 10522 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10523 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10524 | |
| 10525 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 10526 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 10527 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 10528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10529 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10530 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10531 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10532 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10533 | /* confdefs.h. */ |
| 10534 | _ACEOF |
| 10535 | cat confdefs.h >>conftest.$ac_ext |
| 10536 | cat >>conftest.$ac_ext <<_ACEOF |
| 10537 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10538 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10539 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10540 | #ifdef __cplusplus |
| 10541 | extern "C" |
| 10542 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10543 | /* 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] | 10544 | builtin and then its argument prototype would still apply. */ |
| 10545 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10546 | int |
| 10547 | main () |
| 10548 | { |
| 10549 | dlopen (); |
| 10550 | ; |
| 10551 | return 0; |
| 10552 | } |
| 10553 | _ACEOF |
| 10554 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10555 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10556 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10557 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10558 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10559 | rm -f conftest.er1 |
| 10560 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10562 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10563 | { ac_try='test -z "$ac_c_werror_flag" |
| 10564 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10566 | (eval $ac_try) 2>&5 |
| 10567 | ac_status=$? |
| 10568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10569 | (exit $ac_status); }; } && |
| 10570 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10572 | (eval $ac_try) 2>&5 |
| 10573 | ac_status=$? |
| 10574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10575 | (exit $ac_status); }; }; then |
| 10576 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10577 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10578 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10580 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10581 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10582 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10583 | rm -f conftest.err conftest.$ac_objext \ |
| 10584 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10585 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10586 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10587 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10588 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 10589 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 10590 | cat >>confdefs.h <<_ACEOF |
| 10591 | #define HAVE_LIBDL 1 |
| 10592 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10593 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10594 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10595 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10596 | fi |
| 10597 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10598 | |
| 10599 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 10600 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 10601 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 10602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10603 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10604 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10605 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10606 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10607 | /* confdefs.h. */ |
| 10608 | _ACEOF |
| 10609 | cat confdefs.h >>conftest.$ac_ext |
| 10610 | cat >>conftest.$ac_ext <<_ACEOF |
| 10611 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10612 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10613 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10614 | #ifdef __cplusplus |
| 10615 | extern "C" |
| 10616 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10617 | /* 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] | 10618 | builtin and then its argument prototype would still apply. */ |
| 10619 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10620 | int |
| 10621 | main () |
| 10622 | { |
| 10623 | shl_load (); |
| 10624 | ; |
| 10625 | return 0; |
| 10626 | } |
| 10627 | _ACEOF |
| 10628 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10629 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10630 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10631 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10632 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10633 | rm -f conftest.er1 |
| 10634 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10636 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10637 | { ac_try='test -z "$ac_c_werror_flag" |
| 10638 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10640 | (eval $ac_try) 2>&5 |
| 10641 | ac_status=$? |
| 10642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10643 | (exit $ac_status); }; } && |
| 10644 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10646 | (eval $ac_try) 2>&5 |
| 10647 | ac_status=$? |
| 10648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10649 | (exit $ac_status); }; }; then |
| 10650 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10651 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10652 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10654 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10655 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10656 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10657 | rm -f conftest.err conftest.$ac_objext \ |
| 10658 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10659 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10660 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10661 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10662 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 10663 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 10664 | cat >>confdefs.h <<_ACEOF |
| 10665 | #define HAVE_LIBDLD 1 |
| 10666 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10667 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10668 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10669 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10670 | fi |
| 10671 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10672 | |
| 10673 | # only check for sem_ini if thread support is requested |
| 10674 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
| 10675 | 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] | 10676 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6 |
| 10677 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10679 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10680 | ac_func_search_save_LIBS=$LIBS |
| 10681 | ac_cv_search_sem_init=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10682 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10683 | /* confdefs.h. */ |
| 10684 | _ACEOF |
| 10685 | cat confdefs.h >>conftest.$ac_ext |
| 10686 | cat >>conftest.$ac_ext <<_ACEOF |
| 10687 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10688 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10689 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10690 | #ifdef __cplusplus |
| 10691 | extern "C" |
| 10692 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10693 | /* 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] | 10694 | builtin and then its argument prototype would still apply. */ |
| 10695 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10696 | int |
| 10697 | main () |
| 10698 | { |
| 10699 | sem_init (); |
| 10700 | ; |
| 10701 | return 0; |
| 10702 | } |
| 10703 | _ACEOF |
| 10704 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10705 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10706 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10707 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10708 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10709 | rm -f conftest.er1 |
| 10710 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10712 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10713 | { ac_try='test -z "$ac_c_werror_flag" |
| 10714 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10716 | (eval $ac_try) 2>&5 |
| 10717 | ac_status=$? |
| 10718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10719 | (exit $ac_status); }; } && |
| 10720 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10722 | (eval $ac_try) 2>&5 |
| 10723 | ac_status=$? |
| 10724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10725 | (exit $ac_status); }; }; then |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10726 | ac_cv_search_sem_init="none required" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10727 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10728 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10730 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10731 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10732 | rm -f conftest.err conftest.$ac_objext \ |
| 10733 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10734 | if test "$ac_cv_search_sem_init" = no; then |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 10735 | for ac_lib in pthread rt posix4; do |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10736 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10737 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10738 | /* confdefs.h. */ |
| 10739 | _ACEOF |
| 10740 | cat confdefs.h >>conftest.$ac_ext |
| 10741 | cat >>conftest.$ac_ext <<_ACEOF |
| 10742 | /* end confdefs.h. */ |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10743 | |
| 10744 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10745 | #ifdef __cplusplus |
| 10746 | extern "C" |
| 10747 | #endif |
| 10748 | /* We use char because int might match the return type of a gcc2 |
| 10749 | builtin and then its argument prototype would still apply. */ |
| 10750 | char sem_init (); |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10751 | int |
| 10752 | main () |
| 10753 | { |
| 10754 | sem_init (); |
| 10755 | ; |
| 10756 | return 0; |
| 10757 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10758 | _ACEOF |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10759 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10760 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10761 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10762 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10763 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10764 | rm -f conftest.er1 |
| 10765 | cat conftest.err >&5 |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10767 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10768 | { ac_try='test -z "$ac_c_werror_flag" |
| 10769 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10771 | (eval $ac_try) 2>&5 |
| 10772 | ac_status=$? |
| 10773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10774 | (exit $ac_status); }; } && |
| 10775 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10777 | (eval $ac_try) 2>&5 |
| 10778 | ac_status=$? |
| 10779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10780 | (exit $ac_status); }; }; then |
| 10781 | ac_cv_search_sem_init="-l$ac_lib" |
| 10782 | break |
| 10783 | else |
| 10784 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10785 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10786 | |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10787 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10788 | rm -f conftest.err conftest.$ac_objext \ |
| 10789 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 10790 | done |
| 10791 | fi |
| 10792 | LIBS=$ac_func_search_save_LIBS |
| 10793 | fi |
| 10794 | echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 10795 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6 |
| 10796 | if test "$ac_cv_search_sem_init" != no; then |
| 10797 | 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] | 10798 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 10799 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 10800 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 10801 | # posix4 on Solaris 2.6 |
| 10802 | # pthread (first!) on Linux |
| 10803 | fi |
| 10804 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10805 | # check if we need libintl for locale functions |
| 10806 | echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 10807 | echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6 |
| 10808 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
| 10809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10810 | else |
| 10811 | ac_check_lib_save_LIBS=$LIBS |
| 10812 | LIBS="-lintl $LIBS" |
| 10813 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10814 | /* confdefs.h. */ |
| 10815 | _ACEOF |
| 10816 | cat confdefs.h >>conftest.$ac_ext |
| 10817 | cat >>conftest.$ac_ext <<_ACEOF |
| 10818 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10819 | |
| 10820 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10821 | #ifdef __cplusplus |
| 10822 | extern "C" |
| 10823 | #endif |
| 10824 | /* We use char because int might match the return type of a gcc2 |
| 10825 | builtin and then its argument prototype would still apply. */ |
| 10826 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10827 | int |
| 10828 | main () |
| 10829 | { |
| 10830 | textdomain (); |
| 10831 | ; |
| 10832 | return 0; |
| 10833 | } |
| 10834 | _ACEOF |
| 10835 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10837 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10838 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10839 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10840 | rm -f conftest.er1 |
| 10841 | cat conftest.err >&5 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10843 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10844 | { ac_try='test -z "$ac_c_werror_flag" |
| 10845 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10847 | (eval $ac_try) 2>&5 |
| 10848 | ac_status=$? |
| 10849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10850 | (exit $ac_status); }; } && |
| 10851 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10853 | (eval $ac_try) 2>&5 |
| 10854 | ac_status=$? |
| 10855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10856 | (exit $ac_status); }; }; then |
| 10857 | ac_cv_lib_intl_textdomain=yes |
| 10858 | else |
| 10859 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10861 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10862 | ac_cv_lib_intl_textdomain=no |
| 10863 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10864 | rm -f conftest.err conftest.$ac_objext \ |
| 10865 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 10866 | LIBS=$ac_check_lib_save_LIBS |
| 10867 | fi |
| 10868 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 10869 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6 |
| 10870 | if test $ac_cv_lib_intl_textdomain = yes; then |
| 10871 | |
| 10872 | cat >>confdefs.h <<\_ACEOF |
| 10873 | #define WITH_LIBINTL 1 |
| 10874 | _ACEOF |
| 10875 | |
| 10876 | fi |
| 10877 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10878 | |
| 10879 | # checks for system dependent C++ extensions support |
| 10880 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10881 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 10882 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 10883 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10884 | /* confdefs.h. */ |
| 10885 | _ACEOF |
| 10886 | cat confdefs.h >>conftest.$ac_ext |
| 10887 | cat >>conftest.$ac_ext <<_ACEOF |
| 10888 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10889 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10890 | int |
| 10891 | main () |
| 10892 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10893 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10894 | ; |
| 10895 | return 0; |
| 10896 | } |
| 10897 | _ACEOF |
| 10898 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10899 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10900 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10901 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10902 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10903 | rm -f conftest.er1 |
| 10904 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10906 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10907 | { ac_try='test -z "$ac_c_werror_flag" |
| 10908 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10910 | (eval $ac_try) 2>&5 |
| 10911 | ac_status=$? |
| 10912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10913 | (exit $ac_status); }; } && |
| 10914 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10916 | (eval $ac_try) 2>&5 |
| 10917 | ac_status=$? |
| 10918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10919 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10920 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10921 | cat >>confdefs.h <<\_ACEOF |
| 10922 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 10923 | _ACEOF |
| 10924 | |
| 10925 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10926 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10927 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10928 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10930 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10931 | echo "$as_me:$LINENO: result: no" >&5 |
| 10932 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10933 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10934 | rm -f conftest.err conftest.$ac_objext \ |
| 10935 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 10936 | *) ;; |
| 10937 | esac |
| 10938 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 10939 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10940 | # BeOS' sockets are stashed in libnet. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10941 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 10942 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 10943 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 10944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10945 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10946 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10947 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10948 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10949 | /* confdefs.h. */ |
| 10950 | _ACEOF |
| 10951 | cat confdefs.h >>conftest.$ac_ext |
| 10952 | cat >>conftest.$ac_ext <<_ACEOF |
| 10953 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10954 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10955 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10956 | #ifdef __cplusplus |
| 10957 | extern "C" |
| 10958 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10959 | /* 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] | 10960 | builtin and then its argument prototype would still apply. */ |
| 10961 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10962 | int |
| 10963 | main () |
| 10964 | { |
| 10965 | t_open (); |
| 10966 | ; |
| 10967 | return 0; |
| 10968 | } |
| 10969 | _ACEOF |
| 10970 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10971 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10972 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10973 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10974 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10975 | rm -f conftest.er1 |
| 10976 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10978 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10979 | { ac_try='test -z "$ac_c_werror_flag" |
| 10980 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10982 | (eval $ac_try) 2>&5 |
| 10983 | ac_status=$? |
| 10984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10985 | (exit $ac_status); }; } && |
| 10986 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10988 | (eval $ac_try) 2>&5 |
| 10989 | ac_status=$? |
| 10990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10991 | (exit $ac_status); }; }; then |
| 10992 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10993 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10994 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10995 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10996 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10997 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10998 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10999 | rm -f conftest.err conftest.$ac_objext \ |
| 11000 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11001 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11002 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11003 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 11004 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 11005 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11006 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11007 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 11008 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11009 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 11010 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 11011 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 11012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11013 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11014 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11015 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11016 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11017 | /* confdefs.h. */ |
| 11018 | _ACEOF |
| 11019 | cat confdefs.h >>conftest.$ac_ext |
| 11020 | cat >>conftest.$ac_ext <<_ACEOF |
| 11021 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11022 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11023 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11024 | #ifdef __cplusplus |
| 11025 | extern "C" |
| 11026 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11027 | /* 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] | 11028 | builtin and then its argument prototype would still apply. */ |
| 11029 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11030 | int |
| 11031 | main () |
| 11032 | { |
| 11033 | socket (); |
| 11034 | ; |
| 11035 | return 0; |
| 11036 | } |
| 11037 | _ACEOF |
| 11038 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11039 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11040 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11041 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11043 | rm -f conftest.er1 |
| 11044 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11046 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11047 | { ac_try='test -z "$ac_c_werror_flag" |
| 11048 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11050 | (eval $ac_try) 2>&5 |
| 11051 | ac_status=$? |
| 11052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11053 | (exit $ac_status); }; } && |
| 11054 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11056 | (eval $ac_try) 2>&5 |
| 11057 | ac_status=$? |
| 11058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11059 | (exit $ac_status); }; }; then |
| 11060 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11061 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11062 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11064 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11065 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11066 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11067 | rm -f conftest.err conftest.$ac_objext \ |
| 11068 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11069 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11070 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11071 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 11072 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 11073 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11074 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11075 | fi |
| 11076 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 11077 | |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 11078 | case "$ac_sys_system" in |
| 11079 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11080 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 11081 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 11082 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 11083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11084 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11085 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11086 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11087 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11088 | /* confdefs.h. */ |
| 11089 | _ACEOF |
| 11090 | cat confdefs.h >>conftest.$ac_ext |
| 11091 | cat >>conftest.$ac_ext <<_ACEOF |
| 11092 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11093 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11094 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11095 | #ifdef __cplusplus |
| 11096 | extern "C" |
| 11097 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11098 | /* 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] | 11099 | builtin and then its argument prototype would still apply. */ |
| 11100 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11101 | int |
| 11102 | main () |
| 11103 | { |
| 11104 | socket (); |
| 11105 | ; |
| 11106 | return 0; |
| 11107 | } |
| 11108 | _ACEOF |
| 11109 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11110 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11111 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11112 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11113 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11114 | rm -f conftest.er1 |
| 11115 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11117 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11118 | { ac_try='test -z "$ac_c_werror_flag" |
| 11119 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11121 | (eval $ac_try) 2>&5 |
| 11122 | ac_status=$? |
| 11123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11124 | (exit $ac_status); }; } && |
| 11125 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11127 | (eval $ac_try) 2>&5 |
| 11128 | ac_status=$? |
| 11129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11130 | (exit $ac_status); }; }; then |
| 11131 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11132 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11133 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11134 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11135 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11136 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11137 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11138 | rm -f conftest.err conftest.$ac_objext \ |
| 11139 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11140 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11141 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11142 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 11143 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 11144 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11145 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11146 | fi |
| 11147 | # BeOS |
| 11148 | ;; |
| 11149 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 11150 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11151 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 11152 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 11153 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 11154 | # Check whether --with-libs or --without-libs was given. |
| 11155 | if test "${with_libs+set}" = set; then |
| 11156 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11157 | |
| 11158 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11159 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 11160 | LIBS="$withval $LIBS" |
| 11161 | |
| 11162 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11163 | echo "$as_me:$LINENO: result: no" >&5 |
| 11164 | echo "${ECHO_T}no" >&6 |
| 11165 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11166 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11167 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11168 | |
| 11169 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11170 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 11171 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 11172 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11173 | # Check whether --with-signal-module or --without-signal-module was given. |
| 11174 | if test "${with_signal_module+set}" = set; then |
| 11175 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11176 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11177 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11178 | |
| 11179 | if test -z "$with_signal_module" |
| 11180 | then with_signal_module="yes" |
| 11181 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11182 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 11183 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11184 | |
| 11185 | if test "${with_signal_module}" = "yes"; then |
| 11186 | USE_SIGNAL_MODULE="" |
| 11187 | SIGNAL_OBJS="" |
| 11188 | else |
| 11189 | USE_SIGNAL_MODULE="#" |
| 11190 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 11191 | fi |
| 11192 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 11193 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 11194 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11195 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 11196 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11197 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 11198 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 11199 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11200 | |
| 11201 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 11202 | if test "${with_dec_threads+set}" = set; then |
| 11203 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11204 | |
| 11205 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11206 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11207 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 11208 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11209 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 11210 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11211 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11212 | echo "$as_me:$LINENO: result: no" >&5 |
| 11213 | echo "${ECHO_T}no" >&6 |
| 11214 | fi; |
| 11215 | |
| 11216 | # Templates for things AC_DEFINEd more than once. |
| 11217 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11218 | |
| 11219 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11220 | |
| 11221 | |
| 11222 | |
| 11223 | |
| 11224 | |
| 11225 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 11226 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 11227 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11228 | # Check whether --with-threads or --without-threads was given. |
| 11229 | if test "${with_threads+set}" = set; then |
| 11230 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11231 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11232 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11233 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11234 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11235 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11236 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11237 | if test "${with_thread+set}" = set; then |
| 11238 | withval="$with_thread" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11239 | with_threads=$with_thread |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11240 | fi; |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11241 | |
| 11242 | if test -z "$with_threads" |
| 11243 | then with_threads="yes" |
| 11244 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11245 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 11246 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11247 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11248 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11249 | if test "$with_threads" = "no" |
| 11250 | then |
| 11251 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11252 | elif test "$ac_cv_pthread_is_default" = yes |
| 11253 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11254 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11255 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11256 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11257 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11258 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11259 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11260 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11261 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11262 | |
| 11263 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11264 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11265 | elif test "$ac_cv_kpthread" = "yes" |
| 11266 | then |
| 11267 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11268 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 11269 | CXX="$CXX -Kpthread" |
| 11270 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11271 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 11272 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11273 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 11274 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11275 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11276 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 11277 | elif test "$ac_cv_kthread" = "yes" |
| 11278 | then |
| 11279 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11280 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 11281 | CXX="$CXX -Kthread" |
| 11282 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 11283 | cat >>confdefs.h <<\_ACEOF |
| 11284 | #define WITH_THREAD 1 |
| 11285 | _ACEOF |
| 11286 | |
| 11287 | posix_threads=yes |
| 11288 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11289 | elif test "$ac_cv_pthread" = "yes" |
| 11290 | then |
| 11291 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11292 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 11293 | CXX="$CXX -pthread" |
| 11294 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11295 | cat >>confdefs.h <<\_ACEOF |
| 11296 | #define WITH_THREAD 1 |
| 11297 | _ACEOF |
| 11298 | |
| 11299 | posix_threads=yes |
| 11300 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11301 | else |
| 11302 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 11303 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 11304 | fi |
| 11305 | if test ! -z "$withval" -a -d "$withval" |
| 11306 | then LDFLAGS="$LDFLAGS -L$withval" |
| 11307 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11308 | |
| 11309 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 11310 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 11311 | # (e.g. gnu pth with pthread emulation) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11312 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 11313 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 11314 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11315 | /* confdefs.h. */ |
| 11316 | _ACEOF |
| 11317 | cat confdefs.h >>conftest.$ac_ext |
| 11318 | cat >>conftest.$ac_ext <<_ACEOF |
| 11319 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 11320 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11321 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 11322 | #ifdef _POSIX_THREADS |
| 11323 | yes |
| 11324 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11325 | |
| 11326 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11327 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11328 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11329 | unistd_defines_pthreads=yes |
| 11330 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11331 | unistd_defines_pthreads=no |
| 11332 | fi |
| 11333 | rm -f conftest* |
| 11334 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11335 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 11336 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11337 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11338 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 11339 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11340 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 11341 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11342 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 11343 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 11344 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 11345 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 11346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11347 | fi |
| 11348 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 11349 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11350 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11351 | # Is the header compilable? |
| 11352 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 11353 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 11354 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11355 | /* confdefs.h. */ |
| 11356 | _ACEOF |
| 11357 | cat confdefs.h >>conftest.$ac_ext |
| 11358 | cat >>conftest.$ac_ext <<_ACEOF |
| 11359 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11360 | $ac_includes_default |
| 11361 | #include <cthreads.h> |
| 11362 | _ACEOF |
| 11363 | rm -f conftest.$ac_objext |
| 11364 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11365 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11366 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11367 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11368 | rm -f conftest.er1 |
| 11369 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11371 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11372 | { ac_try='test -z "$ac_c_werror_flag" |
| 11373 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11375 | (eval $ac_try) 2>&5 |
| 11376 | ac_status=$? |
| 11377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11378 | (exit $ac_status); }; } && |
| 11379 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11381 | (eval $ac_try) 2>&5 |
| 11382 | ac_status=$? |
| 11383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11384 | (exit $ac_status); }; }; then |
| 11385 | ac_header_compiler=yes |
| 11386 | else |
| 11387 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11388 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11389 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11390 | ac_header_compiler=no |
| 11391 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11392 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11393 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11394 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11395 | |
| 11396 | # Is the header present? |
| 11397 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 11398 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 11399 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11400 | /* confdefs.h. */ |
| 11401 | _ACEOF |
| 11402 | cat confdefs.h >>conftest.$ac_ext |
| 11403 | cat >>conftest.$ac_ext <<_ACEOF |
| 11404 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11405 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11406 | _ACEOF |
| 11407 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11408 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11409 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11410 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11411 | rm -f conftest.er1 |
| 11412 | cat conftest.err >&5 |
| 11413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11414 | (exit $ac_status); } >/dev/null; then |
| 11415 | if test -s conftest.err; then |
| 11416 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11417 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11418 | else |
| 11419 | ac_cpp_err= |
| 11420 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11421 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11422 | ac_cpp_err=yes |
| 11423 | fi |
| 11424 | if test -z "$ac_cpp_err"; then |
| 11425 | ac_header_preproc=yes |
| 11426 | else |
| 11427 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11428 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11429 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11430 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11431 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11432 | rm -f conftest.err conftest.$ac_ext |
| 11433 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11434 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11435 | |
| 11436 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11437 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11438 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11439 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11440 | 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] | 11441 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 11442 | echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;} |
| 11443 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11444 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11445 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11446 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 11447 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11448 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 11449 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 11450 | { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 11451 | echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 11452 | { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11453 | 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] | 11454 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 11455 | 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] | 11456 | { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 11457 | 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] | 11458 | ( |
| 11459 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 11460 | ## ------------------------------------------------ ## |
| 11461 | ## Report this to http://www.python.org/python-bugs ## |
| 11462 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11463 | _ASBOX |
| 11464 | ) | |
| 11465 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11466 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11467 | esac |
| 11468 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 11469 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 11470 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 11471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11472 | else |
| 11473 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11474 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11475 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 11476 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 11477 | |
| 11478 | fi |
| 11479 | if test $ac_cv_header_cthreads_h = yes; then |
| 11480 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11481 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11482 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11483 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11484 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11485 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11486 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11487 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11488 | |
| 11489 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11490 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11491 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11492 | |
| 11493 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11494 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11495 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11496 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11497 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11498 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 11499 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 11500 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11502 | fi |
| 11503 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 11504 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11505 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11506 | # Is the header compilable? |
| 11507 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 11508 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 11509 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11510 | /* confdefs.h. */ |
| 11511 | _ACEOF |
| 11512 | cat confdefs.h >>conftest.$ac_ext |
| 11513 | cat >>conftest.$ac_ext <<_ACEOF |
| 11514 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11515 | $ac_includes_default |
| 11516 | #include <mach/cthreads.h> |
| 11517 | _ACEOF |
| 11518 | rm -f conftest.$ac_objext |
| 11519 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11520 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11521 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11522 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11523 | rm -f conftest.er1 |
| 11524 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11526 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11527 | { ac_try='test -z "$ac_c_werror_flag" |
| 11528 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11530 | (eval $ac_try) 2>&5 |
| 11531 | ac_status=$? |
| 11532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11533 | (exit $ac_status); }; } && |
| 11534 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11536 | (eval $ac_try) 2>&5 |
| 11537 | ac_status=$? |
| 11538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11539 | (exit $ac_status); }; }; then |
| 11540 | ac_header_compiler=yes |
| 11541 | else |
| 11542 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11543 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11544 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11545 | ac_header_compiler=no |
| 11546 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11547 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11548 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11549 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11550 | |
| 11551 | # Is the header present? |
| 11552 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 11553 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 11554 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11555 | /* confdefs.h. */ |
| 11556 | _ACEOF |
| 11557 | cat confdefs.h >>conftest.$ac_ext |
| 11558 | cat >>conftest.$ac_ext <<_ACEOF |
| 11559 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11560 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11561 | _ACEOF |
| 11562 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11563 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11564 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11565 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11566 | rm -f conftest.er1 |
| 11567 | cat conftest.err >&5 |
| 11568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11569 | (exit $ac_status); } >/dev/null; then |
| 11570 | if test -s conftest.err; then |
| 11571 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11572 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11573 | else |
| 11574 | ac_cpp_err= |
| 11575 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11576 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11577 | ac_cpp_err=yes |
| 11578 | fi |
| 11579 | if test -z "$ac_cpp_err"; then |
| 11580 | ac_header_preproc=yes |
| 11581 | else |
| 11582 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11583 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11584 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11585 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11586 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11587 | rm -f conftest.err conftest.$ac_ext |
| 11588 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11589 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11590 | |
| 11591 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11592 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11593 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11594 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11595 | 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] | 11596 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 11597 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;} |
| 11598 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11599 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11600 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11601 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 11602 | 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] | 11603 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 11604 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 11605 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 11606 | echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 11607 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11608 | 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] | 11609 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 11610 | 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] | 11611 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 11612 | 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] | 11613 | ( |
| 11614 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 11615 | ## ------------------------------------------------ ## |
| 11616 | ## Report this to http://www.python.org/python-bugs ## |
| 11617 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11618 | _ASBOX |
| 11619 | ) | |
| 11620 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11621 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11622 | esac |
| 11623 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 11624 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 11625 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 11626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11627 | else |
| 11628 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11629 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11630 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 11631 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 11632 | |
| 11633 | fi |
| 11634 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 11635 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11636 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11637 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11638 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11639 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11640 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11641 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11642 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11643 | |
| 11644 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11645 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11646 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11647 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11648 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11649 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11650 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11651 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 11652 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 11653 | |
| 11654 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11655 | if test "${with_pth+set}" = set; then |
| 11656 | withval="$with_pth" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11657 | echo "$as_me:$LINENO: result: $withval" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11658 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11659 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11660 | #define WITH_THREAD 1 |
| 11661 | _ACEOF |
| 11662 | |
| 11663 | |
| 11664 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11665 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11666 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11667 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11668 | LIBS="-lpth $LIBS" |
| 11669 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 11670 | else |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11671 | echo "$as_me:$LINENO: result: no" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11672 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11673 | |
| 11674 | # Just looking for pthread_create in libpthread is not enough: |
| 11675 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 11676 | # So we really have to include pthread.h, and then link. |
| 11677 | _libs=$LIBS |
| 11678 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11679 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 11680 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 11681 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11682 | /* confdefs.h. */ |
| 11683 | _ACEOF |
| 11684 | cat confdefs.h >>conftest.$ac_ext |
| 11685 | cat >>conftest.$ac_ext <<_ACEOF |
| 11686 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11687 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11688 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11689 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11690 | int |
| 11691 | main () |
| 11692 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11693 | |
| 11694 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11695 | ; |
| 11696 | return 0; |
| 11697 | } |
| 11698 | _ACEOF |
| 11699 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11700 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11701 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11702 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11704 | rm -f conftest.er1 |
| 11705 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11707 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11708 | { ac_try='test -z "$ac_c_werror_flag" |
| 11709 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11711 | (eval $ac_try) 2>&5 |
| 11712 | ac_status=$? |
| 11713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11714 | (exit $ac_status); }; } && |
| 11715 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11717 | (eval $ac_try) 2>&5 |
| 11718 | ac_status=$? |
| 11719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11720 | (exit $ac_status); }; }; then |
| 11721 | |
| 11722 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11723 | echo "${ECHO_T}yes" >&6 |
| 11724 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11725 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11726 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11727 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11728 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11729 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 11730 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11731 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11732 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11733 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11734 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 11735 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11736 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 11737 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 11738 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 11739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11740 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11741 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11742 | /* confdefs.h. */ |
| 11743 | _ACEOF |
| 11744 | cat confdefs.h >>conftest.$ac_ext |
| 11745 | cat >>conftest.$ac_ext <<_ACEOF |
| 11746 | /* end confdefs.h. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11747 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11748 | which can conflict with char pthread_detach (); below. |
| 11749 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 11750 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 11751 | including <limits.h> includes <sys/time.h> and causes problems |
| 11752 | checking for functions defined therein. */ |
| 11753 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11754 | # include <limits.h> |
| 11755 | #else |
| 11756 | # include <assert.h> |
| 11757 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11758 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11759 | #ifdef __cplusplus |
| 11760 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11761 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11762 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11763 | /* 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] | 11764 | builtin and then its argument prototype would still apply. */ |
| 11765 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11766 | /* The GNU C library defines this for functions which it implements |
| 11767 | to always fail with ENOSYS. Some functions are actually named |
| 11768 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 11769 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11770 | choke me |
| 11771 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11772 | char (*f) () = pthread_detach; |
| 11773 | #endif |
| 11774 | #ifdef __cplusplus |
| 11775 | } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11776 | #endif |
| 11777 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11778 | int |
| 11779 | main () |
| 11780 | { |
| 11781 | return f != pthread_detach; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11782 | ; |
| 11783 | return 0; |
| 11784 | } |
| 11785 | _ACEOF |
| 11786 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11787 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11788 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11789 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11790 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11791 | rm -f conftest.er1 |
| 11792 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11794 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11795 | { ac_try='test -z "$ac_c_werror_flag" |
| 11796 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11798 | (eval $ac_try) 2>&5 |
| 11799 | ac_status=$? |
| 11800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11801 | (exit $ac_status); }; } && |
| 11802 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11804 | (eval $ac_try) 2>&5 |
| 11805 | ac_status=$? |
| 11806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11807 | (exit $ac_status); }; }; then |
| 11808 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11809 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11810 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11812 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11813 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11814 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11815 | rm -f conftest.err conftest.$ac_objext \ |
| 11816 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11817 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11818 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 11819 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 11820 | if test $ac_cv_func_pthread_detach = yes; then |
| 11821 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11822 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11823 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11824 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11825 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11826 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11827 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11828 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11829 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11830 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 11831 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 11832 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11834 | fi |
| 11835 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 11836 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 11837 | else |
| 11838 | # Is the header compilable? |
| 11839 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 11840 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 11841 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11842 | /* confdefs.h. */ |
| 11843 | _ACEOF |
| 11844 | cat confdefs.h >>conftest.$ac_ext |
| 11845 | cat >>conftest.$ac_ext <<_ACEOF |
| 11846 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11847 | $ac_includes_default |
| 11848 | #include <atheos/threads.h> |
| 11849 | _ACEOF |
| 11850 | rm -f conftest.$ac_objext |
| 11851 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11852 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11853 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11854 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11855 | rm -f conftest.er1 |
| 11856 | cat conftest.err >&5 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11858 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11859 | { ac_try='test -z "$ac_c_werror_flag" |
| 11860 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11862 | (eval $ac_try) 2>&5 |
| 11863 | ac_status=$? |
| 11864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11865 | (exit $ac_status); }; } && |
| 11866 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11868 | (eval $ac_try) 2>&5 |
| 11869 | ac_status=$? |
| 11870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11871 | (exit $ac_status); }; }; then |
| 11872 | ac_header_compiler=yes |
| 11873 | else |
| 11874 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11875 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11876 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11877 | ac_header_compiler=no |
| 11878 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11879 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11880 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11881 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 11882 | |
| 11883 | # Is the header present? |
| 11884 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 11885 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 11886 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11887 | /* confdefs.h. */ |
| 11888 | _ACEOF |
| 11889 | cat confdefs.h >>conftest.$ac_ext |
| 11890 | cat >>conftest.$ac_ext <<_ACEOF |
| 11891 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11892 | #include <atheos/threads.h> |
| 11893 | _ACEOF |
| 11894 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 11895 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11896 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11897 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11898 | rm -f conftest.er1 |
| 11899 | cat conftest.err >&5 |
| 11900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11901 | (exit $ac_status); } >/dev/null; then |
| 11902 | if test -s conftest.err; then |
| 11903 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11904 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11905 | else |
| 11906 | ac_cpp_err= |
| 11907 | fi |
| 11908 | else |
| 11909 | ac_cpp_err=yes |
| 11910 | fi |
| 11911 | if test -z "$ac_cpp_err"; then |
| 11912 | ac_header_preproc=yes |
| 11913 | else |
| 11914 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11915 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11916 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11917 | ac_header_preproc=no |
| 11918 | fi |
| 11919 | rm -f conftest.err conftest.$ac_ext |
| 11920 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11921 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 11922 | |
| 11923 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11924 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11925 | yes:no: ) |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11926 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11927 | 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] | 11928 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 11929 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;} |
| 11930 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11931 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11932 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 11933 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 11934 | 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] | 11935 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 11936 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 11937 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 11938 | echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 11939 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 11940 | 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] | 11941 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 11942 | 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] | 11943 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 11944 | 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] | 11945 | ( |
| 11946 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 11947 | ## ------------------------------------------------ ## |
| 11948 | ## Report this to http://www.python.org/python-bugs ## |
| 11949 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11950 | _ASBOX |
| 11951 | ) | |
| 11952 | sed "s/^/$as_me: WARNING: /" >&2 |
| 11953 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11954 | esac |
| 11955 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 11956 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 11957 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 11958 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11959 | else |
| 11960 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 11961 | fi |
| 11962 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 11963 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 11964 | |
| 11965 | fi |
| 11966 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 11967 | cat >>confdefs.h <<\_ACEOF |
| 11968 | #define WITH_THREAD 1 |
| 11969 | _ACEOF |
| 11970 | |
| 11971 | |
| 11972 | cat >>confdefs.h <<\_ACEOF |
| 11973 | #define ATHEOS_THREADS 1 |
| 11974 | _ACEOF |
| 11975 | |
| 11976 | THREADOBJ="Python/thread.o" |
| 11977 | else |
| 11978 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11979 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 11980 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 11981 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 11982 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 11983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11984 | fi |
| 11985 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 11986 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11987 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11988 | # Is the header compilable? |
| 11989 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 11990 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 11991 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11992 | /* confdefs.h. */ |
| 11993 | _ACEOF |
| 11994 | cat confdefs.h >>conftest.$ac_ext |
| 11995 | cat >>conftest.$ac_ext <<_ACEOF |
| 11996 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11997 | $ac_includes_default |
| 11998 | #include <kernel/OS.h> |
| 11999 | _ACEOF |
| 12000 | rm -f conftest.$ac_objext |
| 12001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12002 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12003 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12004 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12005 | rm -f conftest.er1 |
| 12006 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12008 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12009 | { ac_try='test -z "$ac_c_werror_flag" |
| 12010 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12012 | (eval $ac_try) 2>&5 |
| 12013 | ac_status=$? |
| 12014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12015 | (exit $ac_status); }; } && |
| 12016 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12018 | (eval $ac_try) 2>&5 |
| 12019 | ac_status=$? |
| 12020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12021 | (exit $ac_status); }; }; then |
| 12022 | ac_header_compiler=yes |
| 12023 | else |
| 12024 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12026 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12027 | ac_header_compiler=no |
| 12028 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12029 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12030 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12031 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12032 | |
| 12033 | # Is the header present? |
| 12034 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 12035 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 12036 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12037 | /* confdefs.h. */ |
| 12038 | _ACEOF |
| 12039 | cat confdefs.h >>conftest.$ac_ext |
| 12040 | cat >>conftest.$ac_ext <<_ACEOF |
| 12041 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12042 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12043 | _ACEOF |
| 12044 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12045 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12046 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12047 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12048 | rm -f conftest.er1 |
| 12049 | cat conftest.err >&5 |
| 12050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12051 | (exit $ac_status); } >/dev/null; then |
| 12052 | if test -s conftest.err; then |
| 12053 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12054 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12055 | else |
| 12056 | ac_cpp_err= |
| 12057 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12058 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12059 | ac_cpp_err=yes |
| 12060 | fi |
| 12061 | if test -z "$ac_cpp_err"; then |
| 12062 | ac_header_preproc=yes |
| 12063 | else |
| 12064 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12065 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12066 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12067 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12068 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12069 | rm -f conftest.err conftest.$ac_ext |
| 12070 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12071 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12072 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12073 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12074 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12075 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12076 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12077 | 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] | 12078 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5 |
| 12079 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;} |
| 12080 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12081 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12082 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12083 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 12084 | 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] | 12085 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 12086 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 12087 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5 |
| 12088 | echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;} |
| 12089 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 12090 | 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] | 12091 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 12092 | 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] | 12093 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5 |
| 12094 | 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] | 12095 | ( |
| 12096 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 12097 | ## ------------------------------------------------ ## |
| 12098 | ## Report this to http://www.python.org/python-bugs ## |
| 12099 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12100 | _ASBOX |
| 12101 | ) | |
| 12102 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12103 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12104 | esac |
| 12105 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 12106 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 12107 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 12108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12109 | else |
| 12110 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 12111 | fi |
| 12112 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 12113 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 12114 | |
| 12115 | fi |
| 12116 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 12117 | cat >>confdefs.h <<\_ACEOF |
| 12118 | #define WITH_THREAD 1 |
| 12119 | _ACEOF |
| 12120 | |
| 12121 | |
| 12122 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12123 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12124 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12125 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12126 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12127 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12128 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12129 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 12130 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 12131 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 12132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12133 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12134 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12135 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12136 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12137 | /* confdefs.h. */ |
| 12138 | _ACEOF |
| 12139 | cat confdefs.h >>conftest.$ac_ext |
| 12140 | cat >>conftest.$ac_ext <<_ACEOF |
| 12141 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12142 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12143 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12144 | #ifdef __cplusplus |
| 12145 | extern "C" |
| 12146 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12147 | /* 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] | 12148 | builtin and then its argument prototype would still apply. */ |
| 12149 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12150 | int |
| 12151 | main () |
| 12152 | { |
| 12153 | pthread_create (); |
| 12154 | ; |
| 12155 | return 0; |
| 12156 | } |
| 12157 | _ACEOF |
| 12158 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12159 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12160 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12161 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12162 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12163 | rm -f conftest.er1 |
| 12164 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12166 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12167 | { ac_try='test -z "$ac_c_werror_flag" |
| 12168 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12170 | (eval $ac_try) 2>&5 |
| 12171 | ac_status=$? |
| 12172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12173 | (exit $ac_status); }; } && |
| 12174 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12176 | (eval $ac_try) 2>&5 |
| 12177 | ac_status=$? |
| 12178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12179 | (exit $ac_status); }; }; then |
| 12180 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12181 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12182 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12184 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12185 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12186 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12187 | rm -f conftest.err conftest.$ac_objext \ |
| 12188 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12189 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12190 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12191 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 12192 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 12193 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 12194 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12195 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12196 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12197 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12198 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12199 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12200 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12201 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12202 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12203 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 12204 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 12205 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 12206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12207 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12208 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12209 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12210 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12211 | /* confdefs.h. */ |
| 12212 | _ACEOF |
| 12213 | cat confdefs.h >>conftest.$ac_ext |
| 12214 | cat >>conftest.$ac_ext <<_ACEOF |
| 12215 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12216 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12217 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12218 | #ifdef __cplusplus |
| 12219 | extern "C" |
| 12220 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12221 | /* 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] | 12222 | builtin and then its argument prototype would still apply. */ |
| 12223 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12224 | int |
| 12225 | main () |
| 12226 | { |
| 12227 | pthread_create (); |
| 12228 | ; |
| 12229 | return 0; |
| 12230 | } |
| 12231 | _ACEOF |
| 12232 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12233 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12234 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12235 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12236 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12237 | rm -f conftest.er1 |
| 12238 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12240 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12241 | { ac_try='test -z "$ac_c_werror_flag" |
| 12242 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12244 | (eval $ac_try) 2>&5 |
| 12245 | ac_status=$? |
| 12246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12247 | (exit $ac_status); }; } && |
| 12248 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12250 | (eval $ac_try) 2>&5 |
| 12251 | ac_status=$? |
| 12252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12253 | (exit $ac_status); }; }; then |
| 12254 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12255 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12256 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12258 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12259 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12260 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12261 | rm -f conftest.err conftest.$ac_objext \ |
| 12262 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12263 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12264 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12265 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 12266 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 12267 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 12268 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12269 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12270 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12271 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12272 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12273 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12274 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 12275 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 12276 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12277 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 12278 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 12279 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 12280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12281 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12282 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12283 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12284 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12285 | /* confdefs.h. */ |
| 12286 | _ACEOF |
| 12287 | cat confdefs.h >>conftest.$ac_ext |
| 12288 | cat >>conftest.$ac_ext <<_ACEOF |
| 12289 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12290 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12291 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12292 | #ifdef __cplusplus |
| 12293 | extern "C" |
| 12294 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12295 | /* 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] | 12296 | builtin and then its argument prototype would still apply. */ |
| 12297 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12298 | int |
| 12299 | main () |
| 12300 | { |
| 12301 | __pthread_create_system (); |
| 12302 | ; |
| 12303 | return 0; |
| 12304 | } |
| 12305 | _ACEOF |
| 12306 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12307 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12308 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12309 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12310 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12311 | rm -f conftest.er1 |
| 12312 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12314 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12315 | { ac_try='test -z "$ac_c_werror_flag" |
| 12316 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12318 | (eval $ac_try) 2>&5 |
| 12319 | ac_status=$? |
| 12320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12321 | (exit $ac_status); }; } && |
| 12322 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12324 | (eval $ac_try) 2>&5 |
| 12325 | ac_status=$? |
| 12326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12327 | (exit $ac_status); }; }; then |
| 12328 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12329 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12330 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12331 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12332 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12333 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12334 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12335 | rm -f conftest.err conftest.$ac_objext \ |
| 12336 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12337 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12338 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12339 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 12340 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 12341 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 12342 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12343 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12344 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12345 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12346 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12347 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12348 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12349 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12350 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12351 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 12352 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 12353 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 12354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12355 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12356 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12357 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12358 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12359 | /* confdefs.h. */ |
| 12360 | _ACEOF |
| 12361 | cat confdefs.h >>conftest.$ac_ext |
| 12362 | cat >>conftest.$ac_ext <<_ACEOF |
| 12363 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12364 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12365 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12366 | #ifdef __cplusplus |
| 12367 | extern "C" |
| 12368 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12369 | /* 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] | 12370 | builtin and then its argument prototype would still apply. */ |
| 12371 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12372 | int |
| 12373 | main () |
| 12374 | { |
| 12375 | pthread_create (); |
| 12376 | ; |
| 12377 | return 0; |
| 12378 | } |
| 12379 | _ACEOF |
| 12380 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12381 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12382 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12383 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12384 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12385 | rm -f conftest.er1 |
| 12386 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12388 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12389 | { ac_try='test -z "$ac_c_werror_flag" |
| 12390 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12392 | (eval $ac_try) 2>&5 |
| 12393 | ac_status=$? |
| 12394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12395 | (exit $ac_status); }; } && |
| 12396 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12398 | (eval $ac_try) 2>&5 |
| 12399 | ac_status=$? |
| 12400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12401 | (exit $ac_status); }; }; then |
| 12402 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12403 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12404 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12406 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12407 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12408 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12409 | rm -f conftest.err conftest.$ac_objext \ |
| 12410 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12411 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12412 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12413 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 12414 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 12415 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 12416 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12417 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12418 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12419 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12420 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12421 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12422 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12423 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 12424 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12425 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 12426 | fi |
| 12427 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12428 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12429 | fi |
| 12430 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 12431 | fi |
| 12432 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12433 | fi |
| 12434 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12435 | fi |
| 12436 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 12437 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12438 | fi |
| 12439 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12440 | |
| 12441 | fi |
| 12442 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12443 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12444 | rm -f conftest.err conftest.$ac_objext \ |
| 12445 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12446 | fi; |
| 12447 | fi |
| 12448 | |
| 12449 | |
| 12450 | fi |
| 12451 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12452 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12453 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12454 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 12455 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 12456 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 12457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12458 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12459 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12460 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12461 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12462 | /* confdefs.h. */ |
| 12463 | _ACEOF |
| 12464 | cat confdefs.h >>conftest.$ac_ext |
| 12465 | cat >>conftest.$ac_ext <<_ACEOF |
| 12466 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12467 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12468 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12469 | #ifdef __cplusplus |
| 12470 | extern "C" |
| 12471 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12472 | /* 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] | 12473 | builtin and then its argument prototype would still apply. */ |
| 12474 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12475 | int |
| 12476 | main () |
| 12477 | { |
| 12478 | usconfig (); |
| 12479 | ; |
| 12480 | return 0; |
| 12481 | } |
| 12482 | _ACEOF |
| 12483 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12484 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12485 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12486 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12487 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12488 | rm -f conftest.er1 |
| 12489 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12491 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12492 | { ac_try='test -z "$ac_c_werror_flag" |
| 12493 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12495 | (eval $ac_try) 2>&5 |
| 12496 | ac_status=$? |
| 12497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12498 | (exit $ac_status); }; } && |
| 12499 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12501 | (eval $ac_try) 2>&5 |
| 12502 | ac_status=$? |
| 12503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12504 | (exit $ac_status); }; }; then |
| 12505 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12506 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12507 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12509 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12510 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12511 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12512 | rm -f conftest.err conftest.$ac_objext \ |
| 12513 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12514 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12515 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12516 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 12517 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 12518 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 12519 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12520 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12521 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12522 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12523 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12524 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12525 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12526 | fi |
| 12527 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12528 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 12529 | if test "$posix_threads" != "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12530 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 12531 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 12532 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 12533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12534 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12535 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12536 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12537 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12538 | /* confdefs.h. */ |
| 12539 | _ACEOF |
| 12540 | cat confdefs.h >>conftest.$ac_ext |
| 12541 | cat >>conftest.$ac_ext <<_ACEOF |
| 12542 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12543 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12544 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12545 | #ifdef __cplusplus |
| 12546 | extern "C" |
| 12547 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12548 | /* 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] | 12549 | builtin and then its argument prototype would still apply. */ |
| 12550 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12551 | int |
| 12552 | main () |
| 12553 | { |
| 12554 | thr_create (); |
| 12555 | ; |
| 12556 | return 0; |
| 12557 | } |
| 12558 | _ACEOF |
| 12559 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12560 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12561 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12562 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12563 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12564 | rm -f conftest.er1 |
| 12565 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12567 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12568 | { ac_try='test -z "$ac_c_werror_flag" |
| 12569 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12571 | (eval $ac_try) 2>&5 |
| 12572 | ac_status=$? |
| 12573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12574 | (exit $ac_status); }; } && |
| 12575 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12577 | (eval $ac_try) 2>&5 |
| 12578 | ac_status=$? |
| 12579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12580 | (exit $ac_status); }; }; then |
| 12581 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12582 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12583 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12584 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12585 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12586 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12587 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12588 | rm -f conftest.err conftest.$ac_objext \ |
| 12589 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12590 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12591 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12592 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 12593 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 12594 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 12595 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12596 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12597 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12598 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12599 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12600 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12601 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12602 | fi |
| 12603 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 12604 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12605 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12606 | if test "$USE_THREAD_MODULE" != "#" |
| 12607 | then |
| 12608 | # If the above checks didn't disable threads, (at least) OSF1 |
| 12609 | # needs this '-threads' argument during linking. |
| 12610 | case $ac_sys_system in |
| 12611 | OSF1) LDLAST=-threads;; |
| 12612 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 12613 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12614 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12615 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12616 | if test "$posix_threads" = "yes"; then |
| 12617 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12618 | |
| 12619 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12620 | #define _POSIX_THREADS 1 |
| 12621 | _ACEOF |
| 12622 | |
| 12623 | fi |
| 12624 | |
| 12625 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 12626 | case $ac_sys_system/$ac_sys_release in |
| 12627 | SunOS/5.6) |
| 12628 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12629 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 12630 | _ACEOF |
| 12631 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12632 | ;; |
| 12633 | SunOS/5.8) |
| 12634 | cat >>confdefs.h <<\_ACEOF |
| 12635 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 12636 | _ACEOF |
| 12637 | |
| 12638 | ;; |
| 12639 | esac |
| 12640 | |
| 12641 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 12642 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 12643 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 12644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12645 | else |
| 12646 | if test "$cross_compiling" = yes; then |
| 12647 | ac_cv_pthread_system_supported=no |
| 12648 | else |
| 12649 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12650 | /* confdefs.h. */ |
| 12651 | _ACEOF |
| 12652 | cat confdefs.h >>conftest.$ac_ext |
| 12653 | cat >>conftest.$ac_ext <<_ACEOF |
| 12654 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12655 | #include <pthread.h> |
| 12656 | void *foo(void *parm) { |
| 12657 | return NULL; |
| 12658 | } |
| 12659 | main() { |
| 12660 | pthread_attr_t attr; |
| 12661 | pthread_t id; |
| 12662 | if (pthread_attr_init(&attr)) exit(-1); |
| 12663 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 12664 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 12665 | exit(0); |
| 12666 | } |
| 12667 | _ACEOF |
| 12668 | rm -f conftest$ac_exeext |
| 12669 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12670 | (eval $ac_link) 2>&5 |
| 12671 | ac_status=$? |
| 12672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12673 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12675 | (eval $ac_try) 2>&5 |
| 12676 | ac_status=$? |
| 12677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12678 | (exit $ac_status); }; }; then |
| 12679 | ac_cv_pthread_system_supported=yes |
| 12680 | else |
| 12681 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12682 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12684 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12685 | ( exit $ac_status ) |
| 12686 | ac_cv_pthread_system_supported=no |
| 12687 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12688 | 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] | 12689 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 12690 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12691 | fi |
| 12692 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12693 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 12694 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
| 12695 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 12696 | |
| 12697 | cat >>confdefs.h <<\_ACEOF |
| 12698 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 12699 | _ACEOF |
| 12700 | |
| 12701 | fi |
| 12702 | |
| 12703 | for ac_func in pthread_sigmask |
| 12704 | do |
| 12705 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12706 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12707 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12708 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12710 | else |
| 12711 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12712 | /* confdefs.h. */ |
| 12713 | _ACEOF |
| 12714 | cat confdefs.h >>conftest.$ac_ext |
| 12715 | cat >>conftest.$ac_ext <<_ACEOF |
| 12716 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12717 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12718 | which can conflict with char $ac_func (); below. |
| 12719 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 12720 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 12721 | including <limits.h> includes <sys/time.h> and causes problems |
| 12722 | checking for functions defined therein. */ |
| 12723 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12724 | # include <limits.h> |
| 12725 | #else |
| 12726 | # include <assert.h> |
| 12727 | #endif |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12728 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12729 | #ifdef __cplusplus |
| 12730 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12731 | { |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12732 | #endif |
| 12733 | /* We use char because int might match the return type of a gcc2 |
| 12734 | builtin and then its argument prototype would still apply. */ |
| 12735 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12736 | /* The GNU C library defines this for functions which it implements |
| 12737 | to always fail with ENOSYS. Some functions are actually named |
| 12738 | something starting with __ and the normal name is an alias. */ |
| 12739 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12740 | choke me |
| 12741 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12742 | char (*f) () = $ac_func; |
| 12743 | #endif |
| 12744 | #ifdef __cplusplus |
| 12745 | } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12746 | #endif |
| 12747 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12748 | int |
| 12749 | main () |
| 12750 | { |
| 12751 | return f != $ac_func; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12752 | ; |
| 12753 | return 0; |
| 12754 | } |
| 12755 | _ACEOF |
| 12756 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12757 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12758 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12759 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12760 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12761 | rm -f conftest.er1 |
| 12762 | cat conftest.err >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12764 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12765 | { ac_try='test -z "$ac_c_werror_flag" |
| 12766 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12768 | (eval $ac_try) 2>&5 |
| 12769 | ac_status=$? |
| 12770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12771 | (exit $ac_status); }; } && |
| 12772 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12774 | (eval $ac_try) 2>&5 |
| 12775 | ac_status=$? |
| 12776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12777 | (exit $ac_status); }; }; then |
| 12778 | eval "$as_ac_var=yes" |
| 12779 | else |
| 12780 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12781 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12782 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12783 | eval "$as_ac_var=no" |
| 12784 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12785 | rm -f conftest.err conftest.$ac_objext \ |
| 12786 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12787 | fi |
| 12788 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12789 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12790 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12791 | cat >>confdefs.h <<_ACEOF |
| 12792 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12793 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 12794 | case $ac_sys_system in |
| 12795 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12796 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 12797 | cat >>confdefs.h <<\_ACEOF |
| 12798 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 12799 | _ACEOF |
| 12800 | |
| 12801 | ;; |
| 12802 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12803 | fi |
| 12804 | done |
| 12805 | |
| 12806 | fi |
| 12807 | |
| 12808 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12809 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12810 | |
| 12811 | |
| 12812 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 12813 | 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] | 12814 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 12815 | if test "${enable_ipv6+set}" = set; then |
| 12816 | enableval="$enable_ipv6" |
| 12817 | case "$enableval" in |
| 12818 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12819 | echo "$as_me:$LINENO: result: no" >&5 |
| 12820 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12821 | ipv6=no |
| 12822 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12823 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 12824 | echo "${ECHO_T}yes" >&6 |
| 12825 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12826 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12827 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12828 | |
| 12829 | ipv6=yes |
| 12830 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12831 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12832 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12833 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12834 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12835 | echo "$as_me:$LINENO: result: no" >&5 |
| 12836 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12837 | ipv6=no |
| 12838 | |
| 12839 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12840 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12841 | /* confdefs.h. */ |
| 12842 | _ACEOF |
| 12843 | cat confdefs.h >>conftest.$ac_ext |
| 12844 | cat >>conftest.$ac_ext <<_ACEOF |
| 12845 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12846 | /* AF_INET6 available check */ |
| 12847 | #include <sys/types.h> |
| 12848 | #include <sys/socket.h> |
| 12849 | main() |
| 12850 | { |
| 12851 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 12852 | exit(1); |
| 12853 | else |
| 12854 | exit(0); |
| 12855 | } |
| 12856 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12857 | _ACEOF |
| 12858 | rm -f conftest$ac_exeext |
| 12859 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12860 | (eval $ac_link) 2>&5 |
| 12861 | ac_status=$? |
| 12862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12863 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12865 | (eval $ac_try) 2>&5 |
| 12866 | ac_status=$? |
| 12867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12868 | (exit $ac_status); }; }; then |
| 12869 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12870 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12871 | ipv6=yes |
| 12872 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12873 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12874 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12875 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12876 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12877 | ( exit $ac_status ) |
| 12878 | echo "$as_me:$LINENO: result: no" >&5 |
| 12879 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12880 | ipv6=no |
| 12881 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12882 | 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] | 12883 | fi |
| 12884 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12885 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12886 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 12887 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 12888 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12889 | /* confdefs.h. */ |
| 12890 | _ACEOF |
| 12891 | cat confdefs.h >>conftest.$ac_ext |
| 12892 | cat >>conftest.$ac_ext <<_ACEOF |
| 12893 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12894 | #include <sys/types.h> |
| 12895 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12896 | int |
| 12897 | main () |
| 12898 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12899 | struct sockaddr_in6 x; |
| 12900 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12901 | ; |
| 12902 | return 0; |
| 12903 | } |
| 12904 | _ACEOF |
| 12905 | rm -f conftest.$ac_objext |
| 12906 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12907 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12908 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12909 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12910 | rm -f conftest.er1 |
| 12911 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12913 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12914 | { ac_try='test -z "$ac_c_werror_flag" |
| 12915 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12917 | (eval $ac_try) 2>&5 |
| 12918 | ac_status=$? |
| 12919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12920 | (exit $ac_status); }; } && |
| 12921 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12923 | (eval $ac_try) 2>&5 |
| 12924 | ac_status=$? |
| 12925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12926 | (exit $ac_status); }; }; then |
| 12927 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12928 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12929 | ipv6=yes |
| 12930 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12931 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12932 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12933 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12934 | echo "$as_me:$LINENO: result: no" >&5 |
| 12935 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12936 | ipv6=no |
| 12937 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12938 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12939 | fi |
| 12940 | |
| 12941 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12942 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12943 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12944 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 12945 | |
| 12946 | fi |
| 12947 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12948 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12949 | |
| 12950 | ipv6type=unknown |
| 12951 | ipv6lib=none |
| 12952 | ipv6trylibc=no |
| 12953 | |
| 12954 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12955 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 12956 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 12957 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 12958 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12959 | case $i in |
| 12960 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12961 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12962 | /* confdefs.h. */ |
| 12963 | _ACEOF |
| 12964 | cat confdefs.h >>conftest.$ac_ext |
| 12965 | cat >>conftest.$ac_ext <<_ACEOF |
| 12966 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12967 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12968 | #include <netinet/in.h> |
| 12969 | #ifdef IPV6_INRIA_VERSION |
| 12970 | yes |
| 12971 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12972 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12973 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12974 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 12975 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12976 | fi |
| 12977 | rm -f conftest* |
| 12978 | |
| 12979 | ;; |
| 12980 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12981 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12982 | /* confdefs.h. */ |
| 12983 | _ACEOF |
| 12984 | cat confdefs.h >>conftest.$ac_ext |
| 12985 | cat >>conftest.$ac_ext <<_ACEOF |
| 12986 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 12987 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12988 | #include <netinet/in.h> |
| 12989 | #ifdef __KAME__ |
| 12990 | yes |
| 12991 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12992 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12993 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12994 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12995 | ipv6type=$i; |
| 12996 | ipv6lib=inet6 |
| 12997 | ipv6libdir=/usr/local/v6/lib |
| 12998 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 12999 | fi |
| 13000 | rm -f conftest* |
| 13001 | |
| 13002 | ;; |
| 13003 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13004 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13005 | /* confdefs.h. */ |
| 13006 | _ACEOF |
| 13007 | cat confdefs.h >>conftest.$ac_ext |
| 13008 | cat >>conftest.$ac_ext <<_ACEOF |
| 13009 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13010 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13011 | #include <features.h> |
| 13012 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 13013 | yes |
| 13014 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13015 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13016 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13017 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13018 | ipv6type=$i; |
| 13019 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13020 | fi |
| 13021 | rm -f conftest* |
| 13022 | |
| 13023 | ;; |
| 13024 | linux-inet6) |
| 13025 | if test -d /usr/inet6; then |
| 13026 | ipv6type=$i |
| 13027 | ipv6lib=inet6 |
| 13028 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 13029 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13030 | fi |
| 13031 | ;; |
| 13032 | solaris) |
| 13033 | if test -f /etc/netconfig; then |
| 13034 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 13035 | ipv6type=$i |
| 13036 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13037 | fi |
| 13038 | fi |
| 13039 | ;; |
| 13040 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13041 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13042 | /* confdefs.h. */ |
| 13043 | _ACEOF |
| 13044 | cat confdefs.h >>conftest.$ac_ext |
| 13045 | cat >>conftest.$ac_ext <<_ACEOF |
| 13046 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13047 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13048 | #include <sys/param.h> |
| 13049 | #ifdef _TOSHIBA_INET6 |
| 13050 | yes |
| 13051 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13052 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13053 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13054 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13055 | ipv6type=$i; |
| 13056 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 13057 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13058 | fi |
| 13059 | rm -f conftest* |
| 13060 | |
| 13061 | ;; |
| 13062 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13063 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13064 | /* confdefs.h. */ |
| 13065 | _ACEOF |
| 13066 | cat confdefs.h >>conftest.$ac_ext |
| 13067 | cat >>conftest.$ac_ext <<_ACEOF |
| 13068 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13069 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13070 | #include </usr/local/v6/include/sys/v6config.h> |
| 13071 | #ifdef __V6D__ |
| 13072 | yes |
| 13073 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13074 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13075 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13076 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13077 | ipv6type=$i; |
| 13078 | ipv6lib=v6; |
| 13079 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 13080 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13081 | fi |
| 13082 | rm -f conftest* |
| 13083 | |
| 13084 | ;; |
| 13085 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13086 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13087 | /* confdefs.h. */ |
| 13088 | _ACEOF |
| 13089 | cat confdefs.h >>conftest.$ac_ext |
| 13090 | cat >>conftest.$ac_ext <<_ACEOF |
| 13091 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13092 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13093 | #include <sys/param.h> |
| 13094 | #ifdef _ZETA_MINAMI_INET6 |
| 13095 | yes |
| 13096 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13097 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13098 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13099 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13100 | ipv6type=$i; |
| 13101 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 13102 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13103 | fi |
| 13104 | rm -f conftest* |
| 13105 | |
| 13106 | ;; |
| 13107 | esac |
| 13108 | if test "$ipv6type" != "unknown"; then |
| 13109 | break |
| 13110 | fi |
| 13111 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13112 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 13113 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13114 | fi |
| 13115 | |
| 13116 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 13117 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 13118 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 13119 | echo "using lib$ipv6lib" |
| 13120 | else |
| 13121 | if test $ipv6trylibc = "yes"; then |
| 13122 | echo "using libc" |
| 13123 | else |
| 13124 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 13125 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 13126 | echo 'ipv6 kit and compile beforehand.' |
| 13127 | exit 1 |
| 13128 | fi |
| 13129 | fi |
| 13130 | fi |
| 13131 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 13132 | # Check for --with-doc-strings |
| 13133 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 13134 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 13135 | |
| 13136 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 13137 | if test "${with_doc_strings+set}" = set; then |
| 13138 | withval="$with_doc_strings" |
| 13139 | |
| 13140 | fi; |
| 13141 | |
| 13142 | if test -z "$with_doc_strings" |
| 13143 | then with_doc_strings="yes" |
| 13144 | fi |
| 13145 | if test "$with_doc_strings" != "no" |
| 13146 | then |
| 13147 | |
| 13148 | cat >>confdefs.h <<\_ACEOF |
| 13149 | #define WITH_DOC_STRINGS 1 |
| 13150 | _ACEOF |
| 13151 | |
| 13152 | fi |
| 13153 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 13154 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 13155 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 13156 | # Check for Python-specific malloc support |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 13157 | echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 13158 | echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6 |
| 13159 | |
| 13160 | # Check whether --with-tsc or --without-tsc was given. |
| 13161 | if test "${with_tsc+set}" = set; then |
| 13162 | withval="$with_tsc" |
| 13163 | |
| 13164 | if test "$withval" != no |
| 13165 | then |
| 13166 | |
| 13167 | cat >>confdefs.h <<\_ACEOF |
| 13168 | #define WITH_TSC 1 |
| 13169 | _ACEOF |
| 13170 | |
| 13171 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13172 | echo "${ECHO_T}yes" >&6 |
| 13173 | else echo "$as_me:$LINENO: result: no" >&5 |
| 13174 | echo "${ECHO_T}no" >&6 |
| 13175 | fi |
| 13176 | else |
| 13177 | echo "$as_me:$LINENO: result: no" >&5 |
| 13178 | echo "${ECHO_T}no" >&6 |
| 13179 | fi; |
| 13180 | |
| 13181 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13182 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 13183 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 13184 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 13185 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 13186 | if test "${with_pymalloc+set}" = set; then |
| 13187 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13188 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13189 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 13190 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13191 | if test -z "$with_pymalloc" |
| 13192 | then with_pymalloc="yes" |
| 13193 | fi |
| 13194 | if test "$with_pymalloc" != "no" |
| 13195 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13196 | |
| 13197 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13198 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13199 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13200 | |
| 13201 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13202 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 13203 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13204 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13205 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13206 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 13207 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 13208 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13209 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 13210 | if test "${with_wctype_functions+set}" = set; then |
| 13211 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13212 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13213 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13214 | then |
| 13215 | |
| 13216 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13217 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13218 | _ACEOF |
| 13219 | |
| 13220 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13221 | echo "${ECHO_T}yes" >&6 |
| 13222 | else echo "$as_me:$LINENO: result: no" >&5 |
| 13223 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13224 | fi |
| 13225 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13226 | echo "$as_me:$LINENO: result: no" >&5 |
| 13227 | echo "${ECHO_T}no" >&6 |
| 13228 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13229 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13230 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13231 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 13232 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13233 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13234 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 13235 | # 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] | 13236 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13237 | for ac_func in dlopen |
| 13238 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13239 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13240 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13241 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13242 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13244 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13245 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13246 | /* confdefs.h. */ |
| 13247 | _ACEOF |
| 13248 | cat confdefs.h >>conftest.$ac_ext |
| 13249 | cat >>conftest.$ac_ext <<_ACEOF |
| 13250 | /* end confdefs.h. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13251 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13252 | which can conflict with char $ac_func (); below. |
| 13253 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13254 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13255 | including <limits.h> includes <sys/time.h> and causes problems |
| 13256 | checking for functions defined therein. */ |
| 13257 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13258 | # include <limits.h> |
| 13259 | #else |
| 13260 | # include <assert.h> |
| 13261 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13262 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13263 | #ifdef __cplusplus |
| 13264 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13265 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13266 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13267 | /* 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] | 13268 | builtin and then its argument prototype would still apply. */ |
| 13269 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13270 | /* The GNU C library defines this for functions which it implements |
| 13271 | to always fail with ENOSYS. Some functions are actually named |
| 13272 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13273 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13274 | choke me |
| 13275 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13276 | char (*f) () = $ac_func; |
| 13277 | #endif |
| 13278 | #ifdef __cplusplus |
| 13279 | } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13280 | #endif |
| 13281 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13282 | int |
| 13283 | main () |
| 13284 | { |
| 13285 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13286 | ; |
| 13287 | return 0; |
| 13288 | } |
| 13289 | _ACEOF |
| 13290 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13292 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13293 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13294 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13295 | rm -f conftest.er1 |
| 13296 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13298 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13299 | { ac_try='test -z "$ac_c_werror_flag" |
| 13300 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13302 | (eval $ac_try) 2>&5 |
| 13303 | ac_status=$? |
| 13304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13305 | (exit $ac_status); }; } && |
| 13306 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13308 | (eval $ac_try) 2>&5 |
| 13309 | ac_status=$? |
| 13310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13311 | (exit $ac_status); }; }; then |
| 13312 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13313 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13314 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13316 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13317 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13318 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13319 | rm -f conftest.err conftest.$ac_objext \ |
| 13320 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13321 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13322 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13323 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13324 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13325 | cat >>confdefs.h <<_ACEOF |
| 13326 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13327 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13328 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13329 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13330 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13331 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13332 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13333 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 13334 | # loading of modules. |
| 13335 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13336 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 13337 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13338 | if test -z "$DYNLOADFILE" |
| 13339 | then |
| 13340 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 13341 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 13342 | if test "$ac_cv_func_dlopen" = yes |
| 13343 | then DYNLOADFILE="dynload_shlib.o" |
| 13344 | else DYNLOADFILE="dynload_aix.o" |
| 13345 | fi |
| 13346 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13347 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 13348 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13349 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13350 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13351 | *) |
| 13352 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 13353 | # out any dynamic loading |
| 13354 | if test "$ac_cv_func_dlopen" = yes |
| 13355 | then DYNLOADFILE="dynload_shlib.o" |
| 13356 | else DYNLOADFILE="dynload_stub.o" |
| 13357 | fi |
| 13358 | ;; |
| 13359 | esac |
| 13360 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13361 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 13362 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13363 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 13364 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13365 | |
| 13366 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13367 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13368 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13369 | |
| 13370 | fi |
| 13371 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13372 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 13373 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13374 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13375 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 13376 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13377 | if test -z "$MACHDEP_OBJS" |
| 13378 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13379 | MACHDEP_OBJS=$extra_machdep_objs |
| 13380 | else |
| 13381 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13382 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13383 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 13384 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 13385 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13386 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13387 | |
| 13388 | |
| 13389 | |
| 13390 | |
| 13391 | |
| 13392 | |
| 13393 | |
| 13394 | |
| 13395 | |
| 13396 | |
| 13397 | |
| 13398 | |
| 13399 | |
| 13400 | |
| 13401 | |
| 13402 | |
| 13403 | |
| 13404 | |
| 13405 | |
| 13406 | |
| 13407 | |
| 13408 | |
| 13409 | |
| 13410 | |
| 13411 | |
| 13412 | |
| 13413 | |
| 13414 | |
| 13415 | |
| 13416 | |
| 13417 | |
| 13418 | |
| 13419 | |
| 13420 | |
| 13421 | |
| 13422 | |
| 13423 | |
| 13424 | |
| 13425 | |
| 13426 | |
| 13427 | |
| 13428 | |
| 13429 | |
| 13430 | |
| 13431 | |
| 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 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13458 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 13459 | |
| 13460 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 13461 | for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \ |
| 13462 | execv fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 13463 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 13464 | getpriority getpwent getspnam getspent getsid getwd \ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 13465 | kill killpg lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 13466 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 13467 | putenv readlink realpath \ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13468 | select setegid seteuid setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 13469 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 13470 | sigaction siginterrupt sigrelse strftime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 13471 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 13472 | truncate uname unsetenv utimes waitpid wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13473 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13474 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13475 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13476 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13477 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13479 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13480 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13481 | /* confdefs.h. */ |
| 13482 | _ACEOF |
| 13483 | cat confdefs.h >>conftest.$ac_ext |
| 13484 | cat >>conftest.$ac_ext <<_ACEOF |
| 13485 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13486 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13487 | which can conflict with char $ac_func (); below. |
| 13488 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 13489 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 13490 | including <limits.h> includes <sys/time.h> and causes problems |
| 13491 | checking for functions defined therein. */ |
| 13492 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13493 | # include <limits.h> |
| 13494 | #else |
| 13495 | # include <assert.h> |
| 13496 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13497 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13498 | #ifdef __cplusplus |
| 13499 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13500 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13501 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13502 | /* 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] | 13503 | builtin and then its argument prototype would still apply. */ |
| 13504 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13505 | /* The GNU C library defines this for functions which it implements |
| 13506 | to always fail with ENOSYS. Some functions are actually named |
| 13507 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13508 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13509 | choke me |
| 13510 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13511 | char (*f) () = $ac_func; |
| 13512 | #endif |
| 13513 | #ifdef __cplusplus |
| 13514 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13515 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13516 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13517 | int |
| 13518 | main () |
| 13519 | { |
| 13520 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13521 | ; |
| 13522 | return 0; |
| 13523 | } |
| 13524 | _ACEOF |
| 13525 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13526 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13527 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13528 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13529 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13530 | rm -f conftest.er1 |
| 13531 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13533 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13534 | { ac_try='test -z "$ac_c_werror_flag" |
| 13535 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13537 | (eval $ac_try) 2>&5 |
| 13538 | ac_status=$? |
| 13539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13540 | (exit $ac_status); }; } && |
| 13541 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13543 | (eval $ac_try) 2>&5 |
| 13544 | ac_status=$? |
| 13545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13546 | (exit $ac_status); }; }; then |
| 13547 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13548 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13549 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13550 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13551 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13552 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13553 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13554 | rm -f conftest.err conftest.$ac_objext \ |
| 13555 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13556 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13557 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13558 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13559 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13560 | cat >>confdefs.h <<_ACEOF |
| 13561 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13562 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13563 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13564 | fi |
| 13565 | done |
| 13566 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13567 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13568 | # For some functions, having a definition is not sufficient, since |
| 13569 | # we want to take their address. |
| 13570 | echo "$as_me:$LINENO: checking for chroot" >&5 |
| 13571 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6 |
| 13572 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13573 | /* confdefs.h. */ |
| 13574 | _ACEOF |
| 13575 | cat confdefs.h >>conftest.$ac_ext |
| 13576 | cat >>conftest.$ac_ext <<_ACEOF |
| 13577 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13578 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13579 | int |
| 13580 | main () |
| 13581 | { |
| 13582 | void *x=chroot |
| 13583 | ; |
| 13584 | return 0; |
| 13585 | } |
| 13586 | _ACEOF |
| 13587 | rm -f conftest.$ac_objext |
| 13588 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13589 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13590 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13591 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13592 | rm -f conftest.er1 |
| 13593 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13595 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13596 | { ac_try='test -z "$ac_c_werror_flag" |
| 13597 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13599 | (eval $ac_try) 2>&5 |
| 13600 | ac_status=$? |
| 13601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13602 | (exit $ac_status); }; } && |
| 13603 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13605 | (eval $ac_try) 2>&5 |
| 13606 | ac_status=$? |
| 13607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13608 | (exit $ac_status); }; }; then |
| 13609 | |
| 13610 | cat >>confdefs.h <<\_ACEOF |
| 13611 | #define HAVE_CHROOT 1 |
| 13612 | _ACEOF |
| 13613 | |
| 13614 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13615 | echo "${ECHO_T}yes" >&6 |
| 13616 | else |
| 13617 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13618 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13619 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13620 | echo "$as_me:$LINENO: result: no" >&5 |
| 13621 | echo "${ECHO_T}no" >&6 |
| 13622 | |
| 13623 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13624 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13625 | echo "$as_me:$LINENO: checking for link" >&5 |
| 13626 | echo $ECHO_N "checking for link... $ECHO_C" >&6 |
| 13627 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13628 | /* confdefs.h. */ |
| 13629 | _ACEOF |
| 13630 | cat confdefs.h >>conftest.$ac_ext |
| 13631 | cat >>conftest.$ac_ext <<_ACEOF |
| 13632 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13633 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13634 | int |
| 13635 | main () |
| 13636 | { |
| 13637 | void *x=link |
| 13638 | ; |
| 13639 | return 0; |
| 13640 | } |
| 13641 | _ACEOF |
| 13642 | rm -f conftest.$ac_objext |
| 13643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13644 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13645 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13646 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13647 | rm -f conftest.er1 |
| 13648 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13650 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13651 | { ac_try='test -z "$ac_c_werror_flag" |
| 13652 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13654 | (eval $ac_try) 2>&5 |
| 13655 | ac_status=$? |
| 13656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13657 | (exit $ac_status); }; } && |
| 13658 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13660 | (eval $ac_try) 2>&5 |
| 13661 | ac_status=$? |
| 13662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13663 | (exit $ac_status); }; }; then |
| 13664 | |
| 13665 | cat >>confdefs.h <<\_ACEOF |
| 13666 | #define HAVE_LINK 1 |
| 13667 | _ACEOF |
| 13668 | |
| 13669 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13670 | echo "${ECHO_T}yes" >&6 |
| 13671 | else |
| 13672 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13674 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13675 | echo "$as_me:$LINENO: result: no" >&5 |
| 13676 | echo "${ECHO_T}no" >&6 |
| 13677 | |
| 13678 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13679 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13680 | echo "$as_me:$LINENO: checking for symlink" >&5 |
| 13681 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6 |
| 13682 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13683 | /* confdefs.h. */ |
| 13684 | _ACEOF |
| 13685 | cat confdefs.h >>conftest.$ac_ext |
| 13686 | cat >>conftest.$ac_ext <<_ACEOF |
| 13687 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13688 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13689 | int |
| 13690 | main () |
| 13691 | { |
| 13692 | void *x=symlink |
| 13693 | ; |
| 13694 | return 0; |
| 13695 | } |
| 13696 | _ACEOF |
| 13697 | rm -f conftest.$ac_objext |
| 13698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13699 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13700 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13701 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13702 | rm -f conftest.er1 |
| 13703 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13705 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13706 | { ac_try='test -z "$ac_c_werror_flag" |
| 13707 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13709 | (eval $ac_try) 2>&5 |
| 13710 | ac_status=$? |
| 13711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13712 | (exit $ac_status); }; } && |
| 13713 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13715 | (eval $ac_try) 2>&5 |
| 13716 | ac_status=$? |
| 13717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13718 | (exit $ac_status); }; }; then |
| 13719 | |
| 13720 | cat >>confdefs.h <<\_ACEOF |
| 13721 | #define HAVE_SYMLINK 1 |
| 13722 | _ACEOF |
| 13723 | |
| 13724 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13725 | echo "${ECHO_T}yes" >&6 |
| 13726 | else |
| 13727 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13728 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13729 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13730 | echo "$as_me:$LINENO: result: no" >&5 |
| 13731 | echo "${ECHO_T}no" >&6 |
| 13732 | |
| 13733 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13735 | echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 13736 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6 |
| 13737 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13738 | /* confdefs.h. */ |
| 13739 | _ACEOF |
| 13740 | cat confdefs.h >>conftest.$ac_ext |
| 13741 | cat >>conftest.$ac_ext <<_ACEOF |
| 13742 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13743 | #include <unistd.h> |
| 13744 | int |
| 13745 | main () |
| 13746 | { |
| 13747 | void *x=fchdir |
| 13748 | ; |
| 13749 | return 0; |
| 13750 | } |
| 13751 | _ACEOF |
| 13752 | rm -f conftest.$ac_objext |
| 13753 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13754 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13755 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13756 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13757 | rm -f conftest.er1 |
| 13758 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13760 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13761 | { ac_try='test -z "$ac_c_werror_flag" |
| 13762 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13764 | (eval $ac_try) 2>&5 |
| 13765 | ac_status=$? |
| 13766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13767 | (exit $ac_status); }; } && |
| 13768 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13770 | (eval $ac_try) 2>&5 |
| 13771 | ac_status=$? |
| 13772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13773 | (exit $ac_status); }; }; then |
| 13774 | |
| 13775 | cat >>confdefs.h <<\_ACEOF |
| 13776 | #define HAVE_FCHDIR 1 |
| 13777 | _ACEOF |
| 13778 | |
| 13779 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13780 | echo "${ECHO_T}yes" >&6 |
| 13781 | else |
| 13782 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13784 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13785 | echo "$as_me:$LINENO: result: no" >&5 |
| 13786 | echo "${ECHO_T}no" >&6 |
| 13787 | |
| 13788 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13789 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13790 | echo "$as_me:$LINENO: checking for fsync" >&5 |
| 13791 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6 |
| 13792 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13793 | /* confdefs.h. */ |
| 13794 | _ACEOF |
| 13795 | cat confdefs.h >>conftest.$ac_ext |
| 13796 | cat >>conftest.$ac_ext <<_ACEOF |
| 13797 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13798 | #include <unistd.h> |
| 13799 | int |
| 13800 | main () |
| 13801 | { |
| 13802 | void *x=fsync |
| 13803 | ; |
| 13804 | return 0; |
| 13805 | } |
| 13806 | _ACEOF |
| 13807 | rm -f conftest.$ac_objext |
| 13808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13809 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13810 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13811 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13812 | rm -f conftest.er1 |
| 13813 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13815 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13816 | { ac_try='test -z "$ac_c_werror_flag" |
| 13817 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13819 | (eval $ac_try) 2>&5 |
| 13820 | ac_status=$? |
| 13821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13822 | (exit $ac_status); }; } && |
| 13823 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13825 | (eval $ac_try) 2>&5 |
| 13826 | ac_status=$? |
| 13827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13828 | (exit $ac_status); }; }; then |
| 13829 | |
| 13830 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13831 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13832 | _ACEOF |
| 13833 | |
| 13834 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13835 | echo "${ECHO_T}yes" >&6 |
| 13836 | else |
| 13837 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13838 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13839 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13840 | echo "$as_me:$LINENO: result: no" >&5 |
| 13841 | echo "${ECHO_T}no" >&6 |
| 13842 | |
| 13843 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13844 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13845 | echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 13846 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6 |
| 13847 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13848 | /* confdefs.h. */ |
| 13849 | _ACEOF |
| 13850 | cat confdefs.h >>conftest.$ac_ext |
| 13851 | cat >>conftest.$ac_ext <<_ACEOF |
| 13852 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13853 | #include <unistd.h> |
| 13854 | int |
| 13855 | main () |
| 13856 | { |
| 13857 | void *x=fdatasync |
| 13858 | ; |
| 13859 | return 0; |
| 13860 | } |
| 13861 | _ACEOF |
| 13862 | rm -f conftest.$ac_objext |
| 13863 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13864 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13865 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13866 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13867 | rm -f conftest.er1 |
| 13868 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13870 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13871 | { ac_try='test -z "$ac_c_werror_flag" |
| 13872 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13874 | (eval $ac_try) 2>&5 |
| 13875 | ac_status=$? |
| 13876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13877 | (exit $ac_status); }; } && |
| 13878 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13880 | (eval $ac_try) 2>&5 |
| 13881 | ac_status=$? |
| 13882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13883 | (exit $ac_status); }; }; then |
| 13884 | |
| 13885 | cat >>confdefs.h <<\_ACEOF |
| 13886 | #define HAVE_FDATASYNC 1 |
| 13887 | _ACEOF |
| 13888 | |
| 13889 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13890 | echo "${ECHO_T}yes" >&6 |
| 13891 | else |
| 13892 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13894 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 13895 | echo "$as_me:$LINENO: result: no" >&5 |
| 13896 | echo "${ECHO_T}no" >&6 |
| 13897 | |
| 13898 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13899 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 13900 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13901 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 13902 | # functions ctermid_r, setgroups in the library, but no prototype |
| 13903 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 13904 | # address to avoid compiler warnings and potential miscompilations |
| 13905 | # because of the missing prototypes. |
| 13906 | |
| 13907 | echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 13908 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6 |
| 13909 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13910 | /* confdefs.h. */ |
| 13911 | _ACEOF |
| 13912 | cat confdefs.h >>conftest.$ac_ext |
| 13913 | cat >>conftest.$ac_ext <<_ACEOF |
| 13914 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13915 | |
| 13916 | #include "confdefs.h" |
| 13917 | #include <stdio.h> |
| 13918 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13919 | int |
| 13920 | main () |
| 13921 | { |
| 13922 | void* p = ctermid_r |
| 13923 | ; |
| 13924 | return 0; |
| 13925 | } |
| 13926 | _ACEOF |
| 13927 | rm -f conftest.$ac_objext |
| 13928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13929 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13930 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13931 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13932 | rm -f conftest.er1 |
| 13933 | cat conftest.err >&5 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13935 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13936 | { ac_try='test -z "$ac_c_werror_flag" |
| 13937 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13939 | (eval $ac_try) 2>&5 |
| 13940 | ac_status=$? |
| 13941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13942 | (exit $ac_status); }; } && |
| 13943 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13945 | (eval $ac_try) 2>&5 |
| 13946 | ac_status=$? |
| 13947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13948 | (exit $ac_status); }; }; then |
| 13949 | |
| 13950 | cat >>confdefs.h <<\_ACEOF |
| 13951 | #define HAVE_CTERMID_R 1 |
| 13952 | _ACEOF |
| 13953 | |
| 13954 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13955 | echo "${ECHO_T}yes" >&6 |
| 13956 | else |
| 13957 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13959 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13960 | echo "$as_me:$LINENO: result: no" >&5 |
| 13961 | echo "${ECHO_T}no" >&6 |
| 13962 | |
| 13963 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13964 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13965 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13966 | echo "$as_me:$LINENO: checking for flock" >&5 |
| 13967 | echo $ECHO_N "checking for flock... $ECHO_C" >&6 |
| 13968 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13969 | /* confdefs.h. */ |
| 13970 | _ACEOF |
| 13971 | cat confdefs.h >>conftest.$ac_ext |
| 13972 | cat >>conftest.$ac_ext <<_ACEOF |
| 13973 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13974 | |
| 13975 | #include "confdefs.h" |
| 13976 | #include <sys/file.h> |
| 13977 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13978 | int |
| 13979 | main () |
| 13980 | { |
| 13981 | void* p = flock |
| 13982 | ; |
| 13983 | return 0; |
| 13984 | } |
| 13985 | _ACEOF |
| 13986 | rm -f conftest.$ac_objext |
| 13987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13988 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13989 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13991 | rm -f conftest.er1 |
| 13992 | cat conftest.err >&5 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 13993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13994 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13995 | { ac_try='test -z "$ac_c_werror_flag" |
| 13996 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13998 | (eval $ac_try) 2>&5 |
| 13999 | ac_status=$? |
| 14000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14001 | (exit $ac_status); }; } && |
| 14002 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14004 | (eval $ac_try) 2>&5 |
| 14005 | ac_status=$? |
| 14006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14007 | (exit $ac_status); }; }; then |
| 14008 | |
| 14009 | cat >>confdefs.h <<\_ACEOF |
| 14010 | #define HAVE_FLOCK 1 |
| 14011 | _ACEOF |
| 14012 | |
| 14013 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14014 | echo "${ECHO_T}yes" >&6 |
| 14015 | else |
| 14016 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14018 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14019 | echo "$as_me:$LINENO: result: no" >&5 |
| 14020 | echo "${ECHO_T}no" >&6 |
| 14021 | |
| 14022 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14023 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14024 | |
| 14025 | echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 14026 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 |
| 14027 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14028 | /* confdefs.h. */ |
| 14029 | _ACEOF |
| 14030 | cat confdefs.h >>conftest.$ac_ext |
| 14031 | cat >>conftest.$ac_ext <<_ACEOF |
| 14032 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14033 | |
| 14034 | #include "confdefs.h" |
| 14035 | #include <unistd.h> |
| 14036 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14037 | int |
| 14038 | main () |
| 14039 | { |
| 14040 | void* p = getpagesize |
| 14041 | ; |
| 14042 | return 0; |
| 14043 | } |
| 14044 | _ACEOF |
| 14045 | rm -f conftest.$ac_objext |
| 14046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14047 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14048 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14049 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14050 | rm -f conftest.er1 |
| 14051 | cat conftest.err >&5 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14053 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14054 | { ac_try='test -z "$ac_c_werror_flag" |
| 14055 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14057 | (eval $ac_try) 2>&5 |
| 14058 | ac_status=$? |
| 14059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14060 | (exit $ac_status); }; } && |
| 14061 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14063 | (eval $ac_try) 2>&5 |
| 14064 | ac_status=$? |
| 14065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14066 | (exit $ac_status); }; }; then |
| 14067 | |
| 14068 | cat >>confdefs.h <<\_ACEOF |
| 14069 | #define HAVE_GETPAGESIZE 1 |
| 14070 | _ACEOF |
| 14071 | |
| 14072 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14073 | echo "${ECHO_T}yes" >&6 |
| 14074 | else |
| 14075 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14076 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14077 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14078 | echo "$as_me:$LINENO: result: no" >&5 |
| 14079 | echo "${ECHO_T}no" >&6 |
| 14080 | |
| 14081 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14082 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14083 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14084 | for ac_prog in true |
| 14085 | do |
| 14086 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 14087 | set dummy $ac_prog; ac_word=$2 |
| 14088 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14089 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 14090 | if test "${ac_cv_prog_TRUE+set}" = set; then |
| 14091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14092 | else |
| 14093 | if test -n "$TRUE"; then |
| 14094 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 14095 | else |
| 14096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14097 | for as_dir in $PATH |
| 14098 | do |
| 14099 | IFS=$as_save_IFS |
| 14100 | test -z "$as_dir" && as_dir=. |
| 14101 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14102 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14103 | ac_cv_prog_TRUE="$ac_prog" |
| 14104 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14105 | break 2 |
| 14106 | fi |
| 14107 | done |
| 14108 | done |
| 14109 | |
| 14110 | fi |
| 14111 | fi |
| 14112 | TRUE=$ac_cv_prog_TRUE |
| 14113 | if test -n "$TRUE"; then |
| 14114 | echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 14115 | echo "${ECHO_T}$TRUE" >&6 |
| 14116 | else |
| 14117 | echo "$as_me:$LINENO: result: no" >&5 |
| 14118 | echo "${ECHO_T}no" >&6 |
| 14119 | fi |
| 14120 | |
| 14121 | test -n "$TRUE" && break |
| 14122 | done |
| 14123 | test -n "$TRUE" || TRUE="/bin/true" |
| 14124 | |
| 14125 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14126 | echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 14127 | echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6 |
| 14128 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
| 14129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14130 | else |
| 14131 | ac_check_lib_save_LIBS=$LIBS |
| 14132 | LIBS="-lc $LIBS" |
| 14133 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14134 | /* confdefs.h. */ |
| 14135 | _ACEOF |
| 14136 | cat confdefs.h >>conftest.$ac_ext |
| 14137 | cat >>conftest.$ac_ext <<_ACEOF |
| 14138 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14139 | |
| 14140 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14141 | #ifdef __cplusplus |
| 14142 | extern "C" |
| 14143 | #endif |
| 14144 | /* We use char because int might match the return type of a gcc2 |
| 14145 | builtin and then its argument prototype would still apply. */ |
| 14146 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14147 | int |
| 14148 | main () |
| 14149 | { |
| 14150 | inet_aton (); |
| 14151 | ; |
| 14152 | return 0; |
| 14153 | } |
| 14154 | _ACEOF |
| 14155 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14156 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14157 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14158 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14159 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14160 | rm -f conftest.er1 |
| 14161 | cat conftest.err >&5 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14163 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14164 | { ac_try='test -z "$ac_c_werror_flag" |
| 14165 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14167 | (eval $ac_try) 2>&5 |
| 14168 | ac_status=$? |
| 14169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14170 | (exit $ac_status); }; } && |
| 14171 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14173 | (eval $ac_try) 2>&5 |
| 14174 | ac_status=$? |
| 14175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14176 | (exit $ac_status); }; }; then |
| 14177 | ac_cv_lib_c_inet_aton=yes |
| 14178 | else |
| 14179 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14181 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14182 | ac_cv_lib_c_inet_aton=no |
| 14183 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14184 | rm -f conftest.err conftest.$ac_objext \ |
| 14185 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14186 | LIBS=$ac_check_lib_save_LIBS |
| 14187 | fi |
| 14188 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 14189 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6 |
| 14190 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14191 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14192 | else |
| 14193 | |
| 14194 | echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 14195 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 |
| 14196 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 14197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14198 | else |
| 14199 | ac_check_lib_save_LIBS=$LIBS |
| 14200 | LIBS="-lresolv $LIBS" |
| 14201 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14202 | /* confdefs.h. */ |
| 14203 | _ACEOF |
| 14204 | cat confdefs.h >>conftest.$ac_ext |
| 14205 | cat >>conftest.$ac_ext <<_ACEOF |
| 14206 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14207 | |
| 14208 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14209 | #ifdef __cplusplus |
| 14210 | extern "C" |
| 14211 | #endif |
| 14212 | /* We use char because int might match the return type of a gcc2 |
| 14213 | builtin and then its argument prototype would still apply. */ |
| 14214 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14215 | int |
| 14216 | main () |
| 14217 | { |
| 14218 | inet_aton (); |
| 14219 | ; |
| 14220 | return 0; |
| 14221 | } |
| 14222 | _ACEOF |
| 14223 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14224 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14225 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14226 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14227 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14228 | rm -f conftest.er1 |
| 14229 | cat conftest.err >&5 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14231 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14232 | { ac_try='test -z "$ac_c_werror_flag" |
| 14233 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14235 | (eval $ac_try) 2>&5 |
| 14236 | ac_status=$? |
| 14237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14238 | (exit $ac_status); }; } && |
| 14239 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14241 | (eval $ac_try) 2>&5 |
| 14242 | ac_status=$? |
| 14243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14244 | (exit $ac_status); }; }; then |
| 14245 | ac_cv_lib_resolv_inet_aton=yes |
| 14246 | else |
| 14247 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14248 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14249 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14250 | ac_cv_lib_resolv_inet_aton=no |
| 14251 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14252 | rm -f conftest.err conftest.$ac_objext \ |
| 14253 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14254 | LIBS=$ac_check_lib_save_LIBS |
| 14255 | fi |
| 14256 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 14257 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 |
| 14258 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
| 14259 | cat >>confdefs.h <<_ACEOF |
| 14260 | #define HAVE_LIBRESOLV 1 |
| 14261 | _ACEOF |
| 14262 | |
| 14263 | LIBS="-lresolv $LIBS" |
| 14264 | |
| 14265 | fi |
| 14266 | |
| 14267 | |
| 14268 | fi |
| 14269 | |
| 14270 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14271 | echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 14272 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6 |
| 14273 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14274 | /* confdefs.h. */ |
| 14275 | _ACEOF |
| 14276 | cat confdefs.h >>conftest.$ac_ext |
| 14277 | cat >>conftest.$ac_ext <<_ACEOF |
| 14278 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14279 | |
| 14280 | #include "confdefs.h" |
| 14281 | #include <netdb.h> |
| 14282 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14283 | int |
| 14284 | main () |
| 14285 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14286 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14287 | ; |
| 14288 | return 0; |
| 14289 | } |
| 14290 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14291 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14292 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14293 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14294 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14295 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14296 | rm -f conftest.er1 |
| 14297 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14299 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14300 | { ac_try='test -z "$ac_c_werror_flag" |
| 14301 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14303 | (eval $ac_try) 2>&5 |
| 14304 | ac_status=$? |
| 14305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14306 | (exit $ac_status); }; } && |
| 14307 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14309 | (eval $ac_try) 2>&5 |
| 14310 | ac_status=$? |
| 14311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14312 | (exit $ac_status); }; }; then |
| 14313 | |
| 14314 | cat >>confdefs.h <<\_ACEOF |
| 14315 | #define HAVE_HSTRERROR 1 |
| 14316 | _ACEOF |
| 14317 | |
| 14318 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14319 | echo "${ECHO_T}yes" >&6 |
| 14320 | else |
| 14321 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14322 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14323 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14324 | echo "$as_me:$LINENO: result: no" >&5 |
| 14325 | echo "${ECHO_T}no" >&6 |
| 14326 | |
| 14327 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14328 | rm -f conftest.err conftest.$ac_objext \ |
| 14329 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14330 | |
| 14331 | echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 14332 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6 |
| 14333 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14334 | /* confdefs.h. */ |
| 14335 | _ACEOF |
| 14336 | cat confdefs.h >>conftest.$ac_ext |
| 14337 | cat >>conftest.$ac_ext <<_ACEOF |
| 14338 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14339 | |
| 14340 | #include "confdefs.h" |
| 14341 | #include <sys/socket.h> |
| 14342 | #include <netinet/in.h> |
| 14343 | #include <arpa/inet.h> |
| 14344 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14345 | int |
| 14346 | main () |
| 14347 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14348 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14349 | ; |
| 14350 | return 0; |
| 14351 | } |
| 14352 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14353 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14354 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14355 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14356 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14357 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14358 | rm -f conftest.er1 |
| 14359 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14361 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14362 | { ac_try='test -z "$ac_c_werror_flag" |
| 14363 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14365 | (eval $ac_try) 2>&5 |
| 14366 | ac_status=$? |
| 14367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14368 | (exit $ac_status); }; } && |
| 14369 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14371 | (eval $ac_try) 2>&5 |
| 14372 | ac_status=$? |
| 14373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14374 | (exit $ac_status); }; }; then |
| 14375 | |
| 14376 | cat >>confdefs.h <<\_ACEOF |
| 14377 | #define HAVE_INET_ATON 1 |
| 14378 | _ACEOF |
| 14379 | |
| 14380 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14381 | echo "${ECHO_T}yes" >&6 |
| 14382 | else |
| 14383 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14384 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14385 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14386 | echo "$as_me:$LINENO: result: no" >&5 |
| 14387 | echo "${ECHO_T}no" >&6 |
| 14388 | |
| 14389 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14390 | rm -f conftest.err conftest.$ac_objext \ |
| 14391 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14392 | |
| 14393 | echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 14394 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6 |
| 14395 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14396 | /* confdefs.h. */ |
| 14397 | _ACEOF |
| 14398 | cat confdefs.h >>conftest.$ac_ext |
| 14399 | cat >>conftest.$ac_ext <<_ACEOF |
| 14400 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14401 | |
| 14402 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 14403 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14404 | #include <sys/socket.h> |
| 14405 | #include <netinet/in.h> |
| 14406 | #include <arpa/inet.h> |
| 14407 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14408 | int |
| 14409 | main () |
| 14410 | { |
| 14411 | void* p = inet_pton |
| 14412 | ; |
| 14413 | return 0; |
| 14414 | } |
| 14415 | _ACEOF |
| 14416 | rm -f conftest.$ac_objext |
| 14417 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14418 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14419 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14420 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14421 | rm -f conftest.er1 |
| 14422 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14424 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14425 | { ac_try='test -z "$ac_c_werror_flag" |
| 14426 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14428 | (eval $ac_try) 2>&5 |
| 14429 | ac_status=$? |
| 14430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14431 | (exit $ac_status); }; } && |
| 14432 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14434 | (eval $ac_try) 2>&5 |
| 14435 | ac_status=$? |
| 14436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14437 | (exit $ac_status); }; }; then |
| 14438 | |
| 14439 | cat >>confdefs.h <<\_ACEOF |
| 14440 | #define HAVE_INET_PTON 1 |
| 14441 | _ACEOF |
| 14442 | |
| 14443 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14444 | echo "${ECHO_T}yes" >&6 |
| 14445 | else |
| 14446 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14447 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14448 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14449 | echo "$as_me:$LINENO: result: no" >&5 |
| 14450 | echo "${ECHO_T}no" >&6 |
| 14451 | |
| 14452 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14453 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14454 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 14455 | # 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] | 14456 | echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 14457 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6 |
| 14458 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14459 | /* confdefs.h. */ |
| 14460 | _ACEOF |
| 14461 | cat confdefs.h >>conftest.$ac_ext |
| 14462 | cat >>conftest.$ac_ext <<_ACEOF |
| 14463 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14464 | |
| 14465 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 14466 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 14467 | #ifdef HAVE_GRP_H |
| 14468 | #include <grp.h> |
| 14469 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14470 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14471 | int |
| 14472 | main () |
| 14473 | { |
| 14474 | void* p = setgroups |
| 14475 | ; |
| 14476 | return 0; |
| 14477 | } |
| 14478 | _ACEOF |
| 14479 | rm -f conftest.$ac_objext |
| 14480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14481 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14482 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14483 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14484 | rm -f conftest.er1 |
| 14485 | cat conftest.err >&5 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14487 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14488 | { ac_try='test -z "$ac_c_werror_flag" |
| 14489 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14491 | (eval $ac_try) 2>&5 |
| 14492 | ac_status=$? |
| 14493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14494 | (exit $ac_status); }; } && |
| 14495 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14497 | (eval $ac_try) 2>&5 |
| 14498 | ac_status=$? |
| 14499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14500 | (exit $ac_status); }; }; then |
| 14501 | |
| 14502 | cat >>confdefs.h <<\_ACEOF |
| 14503 | #define HAVE_SETGROUPS 1 |
| 14504 | _ACEOF |
| 14505 | |
| 14506 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14507 | echo "${ECHO_T}yes" >&6 |
| 14508 | else |
| 14509 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14511 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14512 | echo "$as_me:$LINENO: result: no" >&5 |
| 14513 | echo "${ECHO_T}no" >&6 |
| 14514 | |
| 14515 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14516 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14517 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14518 | # check for openpty and forkpty |
| 14519 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14520 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14521 | for ac_func in openpty |
| 14522 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14523 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14524 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14525 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14526 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14528 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14529 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14530 | /* confdefs.h. */ |
| 14531 | _ACEOF |
| 14532 | cat confdefs.h >>conftest.$ac_ext |
| 14533 | cat >>conftest.$ac_ext <<_ACEOF |
| 14534 | /* end confdefs.h. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14535 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14536 | which can conflict with char $ac_func (); below. |
| 14537 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14538 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14539 | including <limits.h> includes <sys/time.h> and causes problems |
| 14540 | checking for functions defined therein. */ |
| 14541 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14542 | # include <limits.h> |
| 14543 | #else |
| 14544 | # include <assert.h> |
| 14545 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14546 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14547 | #ifdef __cplusplus |
| 14548 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14549 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14550 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14551 | /* 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] | 14552 | builtin and then its argument prototype would still apply. */ |
| 14553 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14554 | /* The GNU C library defines this for functions which it implements |
| 14555 | to always fail with ENOSYS. Some functions are actually named |
| 14556 | something starting with __ and the normal name is an alias. */ |
| 14557 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14558 | choke me |
| 14559 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14560 | char (*f) () = $ac_func; |
| 14561 | #endif |
| 14562 | #ifdef __cplusplus |
| 14563 | } |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14564 | #endif |
| 14565 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14566 | int |
| 14567 | main () |
| 14568 | { |
| 14569 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14570 | ; |
| 14571 | return 0; |
| 14572 | } |
| 14573 | _ACEOF |
| 14574 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14575 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14576 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14577 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14578 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14579 | rm -f conftest.er1 |
| 14580 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14582 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14583 | { ac_try='test -z "$ac_c_werror_flag" |
| 14584 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14586 | (eval $ac_try) 2>&5 |
| 14587 | ac_status=$? |
| 14588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14589 | (exit $ac_status); }; } && |
| 14590 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14592 | (eval $ac_try) 2>&5 |
| 14593 | ac_status=$? |
| 14594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14595 | (exit $ac_status); }; }; then |
| 14596 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14597 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14598 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14599 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14600 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14601 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14602 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14603 | rm -f conftest.err conftest.$ac_objext \ |
| 14604 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14605 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14606 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14607 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14608 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14609 | cat >>confdefs.h <<_ACEOF |
| 14610 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14611 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14612 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14613 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14614 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 14615 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 14616 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 14617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14618 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14619 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14620 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14621 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14622 | /* confdefs.h. */ |
| 14623 | _ACEOF |
| 14624 | cat confdefs.h >>conftest.$ac_ext |
| 14625 | cat >>conftest.$ac_ext <<_ACEOF |
| 14626 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14627 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14628 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14629 | #ifdef __cplusplus |
| 14630 | extern "C" |
| 14631 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14632 | /* 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] | 14633 | builtin and then its argument prototype would still apply. */ |
| 14634 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14635 | int |
| 14636 | main () |
| 14637 | { |
| 14638 | openpty (); |
| 14639 | ; |
| 14640 | return 0; |
| 14641 | } |
| 14642 | _ACEOF |
| 14643 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14644 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14645 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14646 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14647 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14648 | rm -f conftest.er1 |
| 14649 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14651 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14652 | { ac_try='test -z "$ac_c_werror_flag" |
| 14653 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14655 | (eval $ac_try) 2>&5 |
| 14656 | ac_status=$? |
| 14657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14658 | (exit $ac_status); }; } && |
| 14659 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14661 | (eval $ac_try) 2>&5 |
| 14662 | ac_status=$? |
| 14663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14664 | (exit $ac_status); }; }; then |
| 14665 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14666 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14667 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14668 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14669 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14670 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14671 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14672 | rm -f conftest.err conftest.$ac_objext \ |
| 14673 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14674 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14675 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14676 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 14677 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 14678 | if test $ac_cv_lib_util_openpty = yes; then |
| 14679 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14680 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14681 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14682 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14683 | fi |
| 14684 | |
| 14685 | fi |
| 14686 | done |
| 14687 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14688 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14689 | for ac_func in forkpty |
| 14690 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14691 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14692 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14693 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14694 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14696 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14697 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14698 | /* confdefs.h. */ |
| 14699 | _ACEOF |
| 14700 | cat confdefs.h >>conftest.$ac_ext |
| 14701 | cat >>conftest.$ac_ext <<_ACEOF |
| 14702 | /* end confdefs.h. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14703 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14704 | which can conflict with char $ac_func (); below. |
| 14705 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14706 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14707 | including <limits.h> includes <sys/time.h> and causes problems |
| 14708 | checking for functions defined therein. */ |
| 14709 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14710 | # include <limits.h> |
| 14711 | #else |
| 14712 | # include <assert.h> |
| 14713 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14714 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14715 | #ifdef __cplusplus |
| 14716 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14717 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14718 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14719 | /* 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] | 14720 | builtin and then its argument prototype would still apply. */ |
| 14721 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14722 | /* The GNU C library defines this for functions which it implements |
| 14723 | to always fail with ENOSYS. Some functions are actually named |
| 14724 | something starting with __ and the normal name is an alias. */ |
| 14725 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14726 | choke me |
| 14727 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14728 | char (*f) () = $ac_func; |
| 14729 | #endif |
| 14730 | #ifdef __cplusplus |
| 14731 | } |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14732 | #endif |
| 14733 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14734 | int |
| 14735 | main () |
| 14736 | { |
| 14737 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14738 | ; |
| 14739 | return 0; |
| 14740 | } |
| 14741 | _ACEOF |
| 14742 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14743 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14744 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14745 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14746 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14747 | rm -f conftest.er1 |
| 14748 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14750 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14751 | { ac_try='test -z "$ac_c_werror_flag" |
| 14752 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14754 | (eval $ac_try) 2>&5 |
| 14755 | ac_status=$? |
| 14756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14757 | (exit $ac_status); }; } && |
| 14758 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14760 | (eval $ac_try) 2>&5 |
| 14761 | ac_status=$? |
| 14762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14763 | (exit $ac_status); }; }; then |
| 14764 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14765 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14766 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14767 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14768 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14769 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14770 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14771 | rm -f conftest.err conftest.$ac_objext \ |
| 14772 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14773 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14774 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14775 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14776 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14777 | cat >>confdefs.h <<_ACEOF |
| 14778 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14779 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14780 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14781 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14782 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 14783 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 14784 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 14785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14786 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14787 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14788 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14789 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14790 | /* confdefs.h. */ |
| 14791 | _ACEOF |
| 14792 | cat confdefs.h >>conftest.$ac_ext |
| 14793 | cat >>conftest.$ac_ext <<_ACEOF |
| 14794 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14795 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14796 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14797 | #ifdef __cplusplus |
| 14798 | extern "C" |
| 14799 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14800 | /* 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] | 14801 | builtin and then its argument prototype would still apply. */ |
| 14802 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14803 | int |
| 14804 | main () |
| 14805 | { |
| 14806 | forkpty (); |
| 14807 | ; |
| 14808 | return 0; |
| 14809 | } |
| 14810 | _ACEOF |
| 14811 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14812 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14813 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14814 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14815 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14816 | rm -f conftest.er1 |
| 14817 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14819 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14820 | { ac_try='test -z "$ac_c_werror_flag" |
| 14821 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14823 | (eval $ac_try) 2>&5 |
| 14824 | ac_status=$? |
| 14825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14826 | (exit $ac_status); }; } && |
| 14827 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14829 | (eval $ac_try) 2>&5 |
| 14830 | ac_status=$? |
| 14831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14832 | (exit $ac_status); }; }; then |
| 14833 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14834 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14835 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14836 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14837 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14838 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14839 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14840 | rm -f conftest.err conftest.$ac_objext \ |
| 14841 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14842 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14843 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14844 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 14845 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 14846 | if test $ac_cv_lib_util_forkpty = yes; then |
| 14847 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14848 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14849 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14850 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14851 | fi |
| 14852 | |
| 14853 | fi |
| 14854 | done |
| 14855 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14856 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14857 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14858 | |
| 14859 | |
| 14860 | |
| 14861 | |
| 14862 | |
| 14863 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14864 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 14865 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14866 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14867 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14868 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14869 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14871 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14872 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14873 | /* confdefs.h. */ |
| 14874 | _ACEOF |
| 14875 | cat confdefs.h >>conftest.$ac_ext |
| 14876 | cat >>conftest.$ac_ext <<_ACEOF |
| 14877 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14878 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14879 | which can conflict with char $ac_func (); below. |
| 14880 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14881 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14882 | including <limits.h> includes <sys/time.h> and causes problems |
| 14883 | checking for functions defined therein. */ |
| 14884 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14885 | # include <limits.h> |
| 14886 | #else |
| 14887 | # include <assert.h> |
| 14888 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14889 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14890 | #ifdef __cplusplus |
| 14891 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14892 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14893 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14894 | /* 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] | 14895 | builtin and then its argument prototype would still apply. */ |
| 14896 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14897 | /* The GNU C library defines this for functions which it implements |
| 14898 | to always fail with ENOSYS. Some functions are actually named |
| 14899 | something starting with __ and the normal name is an alias. */ |
| 14900 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14901 | choke me |
| 14902 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14903 | char (*f) () = $ac_func; |
| 14904 | #endif |
| 14905 | #ifdef __cplusplus |
| 14906 | } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 14907 | #endif |
| 14908 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14909 | int |
| 14910 | main () |
| 14911 | { |
| 14912 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14913 | ; |
| 14914 | return 0; |
| 14915 | } |
| 14916 | _ACEOF |
| 14917 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14918 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14919 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14920 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14921 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14922 | rm -f conftest.er1 |
| 14923 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14925 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14926 | { ac_try='test -z "$ac_c_werror_flag" |
| 14927 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14929 | (eval $ac_try) 2>&5 |
| 14930 | ac_status=$? |
| 14931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14932 | (exit $ac_status); }; } && |
| 14933 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14935 | (eval $ac_try) 2>&5 |
| 14936 | ac_status=$? |
| 14937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14938 | (exit $ac_status); }; }; then |
| 14939 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14940 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14941 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14943 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14944 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14945 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14946 | rm -f conftest.err conftest.$ac_objext \ |
| 14947 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14948 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14949 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14950 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14951 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14952 | cat >>confdefs.h <<_ACEOF |
| 14953 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14954 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14955 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14956 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14957 | done |
| 14958 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14959 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14960 | |
| 14961 | |
| 14962 | |
| 14963 | |
| 14964 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 14965 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14966 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14967 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14968 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14969 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14970 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14972 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14973 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14974 | /* confdefs.h. */ |
| 14975 | _ACEOF |
| 14976 | cat confdefs.h >>conftest.$ac_ext |
| 14977 | cat >>conftest.$ac_ext <<_ACEOF |
| 14978 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14979 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14980 | which can conflict with char $ac_func (); below. |
| 14981 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 14982 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 14983 | including <limits.h> includes <sys/time.h> and causes problems |
| 14984 | checking for functions defined therein. */ |
| 14985 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14986 | # include <limits.h> |
| 14987 | #else |
| 14988 | # include <assert.h> |
| 14989 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14990 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14991 | #ifdef __cplusplus |
| 14992 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14993 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14994 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14995 | /* 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] | 14996 | builtin and then its argument prototype would still apply. */ |
| 14997 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14998 | /* The GNU C library defines this for functions which it implements |
| 14999 | to always fail with ENOSYS. Some functions are actually named |
| 15000 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15001 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15002 | choke me |
| 15003 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15004 | char (*f) () = $ac_func; |
| 15005 | #endif |
| 15006 | #ifdef __cplusplus |
| 15007 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15008 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15009 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15010 | int |
| 15011 | main () |
| 15012 | { |
| 15013 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15014 | ; |
| 15015 | return 0; |
| 15016 | } |
| 15017 | _ACEOF |
| 15018 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15019 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15020 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15021 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15022 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15023 | rm -f conftest.er1 |
| 15024 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15026 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15027 | { ac_try='test -z "$ac_c_werror_flag" |
| 15028 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15030 | (eval $ac_try) 2>&5 |
| 15031 | ac_status=$? |
| 15032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15033 | (exit $ac_status); }; } && |
| 15034 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15036 | (eval $ac_try) 2>&5 |
| 15037 | ac_status=$? |
| 15038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15039 | (exit $ac_status); }; }; then |
| 15040 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15041 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15042 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15044 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15045 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15046 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15047 | rm -f conftest.err conftest.$ac_objext \ |
| 15048 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15049 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15050 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15051 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15052 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15053 | cat >>confdefs.h <<_ACEOF |
| 15054 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15055 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15056 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15057 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15058 | case $LIBOBJS in |
| 15059 | "$ac_func.$ac_objext" | \ |
| 15060 | *" $ac_func.$ac_objext" | \ |
| 15061 | "$ac_func.$ac_objext "* | \ |
| 15062 | *" $ac_func.$ac_objext "* ) ;; |
| 15063 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; |
| 15064 | esac |
| 15065 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15066 | fi |
| 15067 | done |
| 15068 | |
| 15069 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15070 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15071 | for ac_func in getpgrp |
| 15072 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15073 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15074 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15075 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15076 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15078 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15079 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15080 | /* confdefs.h. */ |
| 15081 | _ACEOF |
| 15082 | cat confdefs.h >>conftest.$ac_ext |
| 15083 | cat >>conftest.$ac_ext <<_ACEOF |
| 15084 | /* end confdefs.h. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15085 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15086 | which can conflict with char $ac_func (); below. |
| 15087 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15088 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15089 | including <limits.h> includes <sys/time.h> and causes problems |
| 15090 | checking for functions defined therein. */ |
| 15091 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15092 | # include <limits.h> |
| 15093 | #else |
| 15094 | # include <assert.h> |
| 15095 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15096 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15097 | #ifdef __cplusplus |
| 15098 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15099 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15100 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15101 | /* 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] | 15102 | builtin and then its argument prototype would still apply. */ |
| 15103 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15104 | /* The GNU C library defines this for functions which it implements |
| 15105 | to always fail with ENOSYS. Some functions are actually named |
| 15106 | something starting with __ and the normal name is an alias. */ |
| 15107 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15108 | choke me |
| 15109 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15110 | char (*f) () = $ac_func; |
| 15111 | #endif |
| 15112 | #ifdef __cplusplus |
| 15113 | } |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15114 | #endif |
| 15115 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15116 | int |
| 15117 | main () |
| 15118 | { |
| 15119 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15120 | ; |
| 15121 | return 0; |
| 15122 | } |
| 15123 | _ACEOF |
| 15124 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15125 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15126 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15127 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15128 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15129 | rm -f conftest.er1 |
| 15130 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15132 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15133 | { ac_try='test -z "$ac_c_werror_flag" |
| 15134 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15136 | (eval $ac_try) 2>&5 |
| 15137 | ac_status=$? |
| 15138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15139 | (exit $ac_status); }; } && |
| 15140 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15142 | (eval $ac_try) 2>&5 |
| 15143 | ac_status=$? |
| 15144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15145 | (exit $ac_status); }; }; then |
| 15146 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15147 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15148 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15150 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15151 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15152 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15153 | rm -f conftest.err conftest.$ac_objext \ |
| 15154 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15155 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15156 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15157 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15158 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15159 | cat >>confdefs.h <<_ACEOF |
| 15160 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15161 | _ACEOF |
| 15162 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15163 | /* confdefs.h. */ |
| 15164 | _ACEOF |
| 15165 | cat confdefs.h >>conftest.$ac_ext |
| 15166 | cat >>conftest.$ac_ext <<_ACEOF |
| 15167 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15168 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15169 | int |
| 15170 | main () |
| 15171 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15172 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15173 | ; |
| 15174 | return 0; |
| 15175 | } |
| 15176 | _ACEOF |
| 15177 | rm -f conftest.$ac_objext |
| 15178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15179 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15180 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15181 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15182 | rm -f conftest.er1 |
| 15183 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15185 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15186 | { ac_try='test -z "$ac_c_werror_flag" |
| 15187 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15189 | (eval $ac_try) 2>&5 |
| 15190 | ac_status=$? |
| 15191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15192 | (exit $ac_status); }; } && |
| 15193 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15195 | (eval $ac_try) 2>&5 |
| 15196 | ac_status=$? |
| 15197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15198 | (exit $ac_status); }; }; then |
| 15199 | |
| 15200 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15201 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15202 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15203 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15204 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15205 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15206 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15207 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15208 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15209 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15210 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15211 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15212 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15213 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15214 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15215 | |
| 15216 | for ac_func in setpgrp |
| 15217 | do |
| 15218 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15219 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15220 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15221 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15223 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15224 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15225 | /* confdefs.h. */ |
| 15226 | _ACEOF |
| 15227 | cat confdefs.h >>conftest.$ac_ext |
| 15228 | cat >>conftest.$ac_ext <<_ACEOF |
| 15229 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15230 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15231 | which can conflict with char $ac_func (); below. |
| 15232 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15233 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15234 | including <limits.h> includes <sys/time.h> and causes problems |
| 15235 | checking for functions defined therein. */ |
| 15236 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15237 | # include <limits.h> |
| 15238 | #else |
| 15239 | # include <assert.h> |
| 15240 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15241 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15242 | #ifdef __cplusplus |
| 15243 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15244 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15245 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15246 | /* We use char because int might match the return type of a gcc2 |
| 15247 | builtin and then its argument prototype would still apply. */ |
| 15248 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15249 | /* The GNU C library defines this for functions which it implements |
| 15250 | to always fail with ENOSYS. Some functions are actually named |
| 15251 | something starting with __ and the normal name is an alias. */ |
| 15252 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15253 | choke me |
| 15254 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15255 | char (*f) () = $ac_func; |
| 15256 | #endif |
| 15257 | #ifdef __cplusplus |
| 15258 | } |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15259 | #endif |
| 15260 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15261 | int |
| 15262 | main () |
| 15263 | { |
| 15264 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15265 | ; |
| 15266 | return 0; |
| 15267 | } |
| 15268 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15269 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15270 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15271 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15272 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15273 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15274 | rm -f conftest.er1 |
| 15275 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15277 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15278 | { ac_try='test -z "$ac_c_werror_flag" |
| 15279 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15281 | (eval $ac_try) 2>&5 |
| 15282 | ac_status=$? |
| 15283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15284 | (exit $ac_status); }; } && |
| 15285 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15287 | (eval $ac_try) 2>&5 |
| 15288 | ac_status=$? |
| 15289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15290 | (exit $ac_status); }; }; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15291 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15292 | else |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15293 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15294 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15295 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15296 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15297 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15298 | rm -f conftest.err conftest.$ac_objext \ |
| 15299 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15300 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15301 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15302 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15303 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15304 | cat >>confdefs.h <<_ACEOF |
| 15305 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15306 | _ACEOF |
| 15307 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15308 | /* confdefs.h. */ |
| 15309 | _ACEOF |
| 15310 | cat confdefs.h >>conftest.$ac_ext |
| 15311 | cat >>conftest.$ac_ext <<_ACEOF |
| 15312 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15313 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15314 | int |
| 15315 | main () |
| 15316 | { |
| 15317 | setpgrp(0,0); |
| 15318 | ; |
| 15319 | return 0; |
| 15320 | } |
| 15321 | _ACEOF |
| 15322 | rm -f conftest.$ac_objext |
| 15323 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15324 | (eval $ac_compile) 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15325 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15326 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15327 | rm -f conftest.er1 |
| 15328 | cat conftest.err >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15330 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15331 | { ac_try='test -z "$ac_c_werror_flag" |
| 15332 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15334 | (eval $ac_try) 2>&5 |
| 15335 | ac_status=$? |
| 15336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15337 | (exit $ac_status); }; } && |
| 15338 | { ac_try='test -s conftest.$ac_objext' |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15340 | (eval $ac_try) 2>&5 |
| 15341 | ac_status=$? |
| 15342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15343 | (exit $ac_status); }; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15344 | |
| 15345 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15346 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15347 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 15348 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15349 | |
| 15350 | else |
| 15351 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15352 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15353 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 15354 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15355 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 15356 | |
| 15357 | fi |
| 15358 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 15359 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15360 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15361 | for ac_func in gettimeofday |
| 15362 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15363 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15364 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15365 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15366 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15368 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15369 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15370 | /* confdefs.h. */ |
| 15371 | _ACEOF |
| 15372 | cat confdefs.h >>conftest.$ac_ext |
| 15373 | cat >>conftest.$ac_ext <<_ACEOF |
| 15374 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15375 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15376 | which can conflict with char $ac_func (); below. |
| 15377 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15378 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15379 | including <limits.h> includes <sys/time.h> and causes problems |
| 15380 | checking for functions defined therein. */ |
| 15381 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15382 | # include <limits.h> |
| 15383 | #else |
| 15384 | # include <assert.h> |
| 15385 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15386 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15387 | #ifdef __cplusplus |
| 15388 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15389 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15390 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15391 | /* 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] | 15392 | builtin and then its argument prototype would still apply. */ |
| 15393 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15394 | /* The GNU C library defines this for functions which it implements |
| 15395 | to always fail with ENOSYS. Some functions are actually named |
| 15396 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15397 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15398 | choke me |
| 15399 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15400 | char (*f) () = $ac_func; |
| 15401 | #endif |
| 15402 | #ifdef __cplusplus |
| 15403 | } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15404 | #endif |
| 15405 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15406 | int |
| 15407 | main () |
| 15408 | { |
| 15409 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15410 | ; |
| 15411 | return 0; |
| 15412 | } |
| 15413 | _ACEOF |
| 15414 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15415 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15416 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15417 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15418 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15419 | rm -f conftest.er1 |
| 15420 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15422 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15423 | { ac_try='test -z "$ac_c_werror_flag" |
| 15424 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15426 | (eval $ac_try) 2>&5 |
| 15427 | ac_status=$? |
| 15428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15429 | (exit $ac_status); }; } && |
| 15430 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15432 | (eval $ac_try) 2>&5 |
| 15433 | ac_status=$? |
| 15434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15435 | (exit $ac_status); }; }; then |
| 15436 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15437 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15438 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15439 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15440 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15441 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15442 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15443 | rm -f conftest.err conftest.$ac_objext \ |
| 15444 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15445 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15446 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15447 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15448 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15449 | cat >>confdefs.h <<_ACEOF |
| 15450 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15451 | _ACEOF |
| 15452 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15453 | /* confdefs.h. */ |
| 15454 | _ACEOF |
| 15455 | cat confdefs.h >>conftest.$ac_ext |
| 15456 | cat >>conftest.$ac_ext <<_ACEOF |
| 15457 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15458 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15459 | int |
| 15460 | main () |
| 15461 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15462 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15463 | ; |
| 15464 | return 0; |
| 15465 | } |
| 15466 | _ACEOF |
| 15467 | rm -f conftest.$ac_objext |
| 15468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15469 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15470 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15471 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15472 | rm -f conftest.er1 |
| 15473 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15475 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15476 | { ac_try='test -z "$ac_c_werror_flag" |
| 15477 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15479 | (eval $ac_try) 2>&5 |
| 15480 | ac_status=$? |
| 15481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15482 | (exit $ac_status); }; } && |
| 15483 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15485 | (eval $ac_try) 2>&5 |
| 15486 | ac_status=$? |
| 15487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15488 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15489 | : |
| 15490 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15491 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15493 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15494 | |
| 15495 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15496 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15497 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15498 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15499 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15500 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15501 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15502 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15503 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15504 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15505 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15506 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15507 | echo "$as_me:$LINENO: checking for major" >&5 |
| 15508 | echo $ECHO_N "checking for major... $ECHO_C" >&6 |
| 15509 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15510 | /* confdefs.h. */ |
| 15511 | _ACEOF |
| 15512 | cat confdefs.h >>conftest.$ac_ext |
| 15513 | cat >>conftest.$ac_ext <<_ACEOF |
| 15514 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15515 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 15516 | #if defined(MAJOR_IN_MKDEV) |
| 15517 | #include <sys/mkdev.h> |
| 15518 | #elif defined(MAJOR_IN_SYSMACROS) |
| 15519 | #include <sys/sysmacros.h> |
| 15520 | #else |
| 15521 | #include <sys/types.h> |
| 15522 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15523 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15524 | int |
| 15525 | main () |
| 15526 | { |
| 15527 | |
| 15528 | makedev(major(0),minor(0)); |
| 15529 | |
| 15530 | ; |
| 15531 | return 0; |
| 15532 | } |
| 15533 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 15534 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15536 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15537 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15538 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15539 | rm -f conftest.er1 |
| 15540 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15542 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15543 | { ac_try='test -z "$ac_c_werror_flag" |
| 15544 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15546 | (eval $ac_try) 2>&5 |
| 15547 | ac_status=$? |
| 15548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15549 | (exit $ac_status); }; } && |
| 15550 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15552 | (eval $ac_try) 2>&5 |
| 15553 | ac_status=$? |
| 15554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15555 | (exit $ac_status); }; }; then |
| 15556 | |
| 15557 | |
| 15558 | cat >>confdefs.h <<\_ACEOF |
| 15559 | #define HAVE_DEVICE_MACROS 1 |
| 15560 | _ACEOF |
| 15561 | |
| 15562 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15563 | echo "${ECHO_T}yes" >&6 |
| 15564 | |
| 15565 | else |
| 15566 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15567 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15568 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 15569 | |
| 15570 | echo "$as_me:$LINENO: result: no" >&5 |
| 15571 | echo "${ECHO_T}no" >&6 |
| 15572 | |
| 15573 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15574 | rm -f conftest.err conftest.$ac_objext \ |
| 15575 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15576 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15577 | # 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] | 15578 | # for [no]getaddrinfo in netdb.h. |
| 15579 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 15580 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 15581 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15582 | /* confdefs.h. */ |
| 15583 | _ACEOF |
| 15584 | cat confdefs.h >>conftest.$ac_ext |
| 15585 | cat >>conftest.$ac_ext <<_ACEOF |
| 15586 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15587 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 15588 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15589 | #include <sys/socket.h> |
| 15590 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 15591 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15592 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15593 | int |
| 15594 | main () |
| 15595 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15596 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15597 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15598 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15599 | ; |
| 15600 | return 0; |
| 15601 | } |
| 15602 | _ACEOF |
| 15603 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15604 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15605 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15606 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15607 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15608 | rm -f conftest.er1 |
| 15609 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15611 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15612 | { ac_try='test -z "$ac_c_werror_flag" |
| 15613 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15615 | (eval $ac_try) 2>&5 |
| 15616 | ac_status=$? |
| 15617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15618 | (exit $ac_status); }; } && |
| 15619 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15621 | (eval $ac_try) 2>&5 |
| 15622 | ac_status=$? |
| 15623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15624 | (exit $ac_status); }; }; then |
| 15625 | |
| 15626 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15627 | echo "${ECHO_T}yes" >&6 |
| 15628 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 15629 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15630 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15631 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 15632 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15633 | buggygetaddrinfo=yes |
| 15634 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15635 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15636 | /* confdefs.h. */ |
| 15637 | _ACEOF |
| 15638 | cat confdefs.h >>conftest.$ac_ext |
| 15639 | cat >>conftest.$ac_ext <<_ACEOF |
| 15640 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15641 | |
| 15642 | #include <sys/types.h> |
| 15643 | #include <netdb.h> |
| 15644 | #include <string.h> |
| 15645 | #include <sys/socket.h> |
| 15646 | #include <netinet/in.h> |
| 15647 | |
| 15648 | main() |
| 15649 | { |
| 15650 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 15651 | struct addrinfo hints, *ai, *aitop; |
| 15652 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 15653 | |
| 15654 | for (passive = 0; passive <= 1; passive++) { |
| 15655 | memset(&hints, 0, sizeof(hints)); |
| 15656 | hints.ai_family = AF_UNSPEC; |
| 15657 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 15658 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 15659 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15660 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 15661 | (void)gai_strerror(gaierr); |
| 15662 | goto bad; |
| 15663 | } |
| 15664 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 15665 | if (ai->ai_addr == NULL || |
| 15666 | ai->ai_addrlen == 0 || |
| 15667 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 15668 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 15669 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 15670 | goto bad; |
| 15671 | } |
| 15672 | switch (ai->ai_family) { |
| 15673 | case AF_INET: |
| 15674 | if (strcmp(strport, "54321") != 0) { |
| 15675 | goto bad; |
| 15676 | } |
| 15677 | if (passive) { |
| 15678 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 15679 | goto bad; |
| 15680 | } |
| 15681 | } else { |
| 15682 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 15683 | goto bad; |
| 15684 | } |
| 15685 | } |
| 15686 | inet4++; |
| 15687 | break; |
| 15688 | case AF_INET6: |
| 15689 | if (strcmp(strport, "54321") != 0) { |
| 15690 | goto bad; |
| 15691 | } |
| 15692 | if (passive) { |
| 15693 | if (strcmp(straddr, "::") != 0) { |
| 15694 | goto bad; |
| 15695 | } |
| 15696 | } else { |
| 15697 | if (strcmp(straddr, "::1") != 0) { |
| 15698 | goto bad; |
| 15699 | } |
| 15700 | } |
| 15701 | inet6++; |
| 15702 | break; |
| 15703 | case AF_UNSPEC: |
| 15704 | goto bad; |
| 15705 | break; |
| 15706 | default: |
| 15707 | /* another family support? */ |
| 15708 | break; |
| 15709 | } |
| 15710 | } |
| 15711 | } |
| 15712 | |
| 15713 | if (!(inet4 == 0 || inet4 == 2)) |
| 15714 | goto bad; |
| 15715 | if (!(inet6 == 0 || inet6 == 2)) |
| 15716 | goto bad; |
| 15717 | |
| 15718 | if (aitop) |
| 15719 | freeaddrinfo(aitop); |
| 15720 | exit(0); |
| 15721 | |
| 15722 | bad: |
| 15723 | if (aitop) |
| 15724 | freeaddrinfo(aitop); |
| 15725 | exit(1); |
| 15726 | } |
| 15727 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15728 | _ACEOF |
| 15729 | rm -f conftest$ac_exeext |
| 15730 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15731 | (eval $ac_link) 2>&5 |
| 15732 | ac_status=$? |
| 15733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15734 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15736 | (eval $ac_try) 2>&5 |
| 15737 | ac_status=$? |
| 15738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15739 | (exit $ac_status); }; }; then |
| 15740 | echo "$as_me:$LINENO: result: good" >&5 |
| 15741 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15742 | buggygetaddrinfo=no |
| 15743 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15744 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15745 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15747 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15748 | ( exit $ac_status ) |
| 15749 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 15750 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15751 | buggygetaddrinfo=yes |
| 15752 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15753 | 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] | 15754 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15755 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15756 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15757 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15758 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15759 | |
| 15760 | echo "$as_me:$LINENO: result: no" >&5 |
| 15761 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15762 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15763 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15764 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15765 | rm -f conftest.err conftest.$ac_objext \ |
| 15766 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15767 | |
| 15768 | if test "$buggygetaddrinfo" = "yes"; then |
| 15769 | if test "$ipv6" = "yes"; then |
| 15770 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 15771 | echo ' or you can specify "--disable-ipv6"'. |
| 15772 | exit 1 |
| 15773 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15774 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15775 | |
| 15776 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15777 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15778 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 15779 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15780 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15781 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 15782 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15783 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15784 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15785 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15786 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15787 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15789 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15790 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15791 | /* confdefs.h. */ |
| 15792 | _ACEOF |
| 15793 | cat confdefs.h >>conftest.$ac_ext |
| 15794 | cat >>conftest.$ac_ext <<_ACEOF |
| 15795 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15796 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15797 | which can conflict with char $ac_func (); below. |
| 15798 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 15799 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 15800 | including <limits.h> includes <sys/time.h> and causes problems |
| 15801 | checking for functions defined therein. */ |
| 15802 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15803 | # include <limits.h> |
| 15804 | #else |
| 15805 | # include <assert.h> |
| 15806 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15807 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15808 | #ifdef __cplusplus |
| 15809 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15810 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15811 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15812 | /* 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] | 15813 | builtin and then its argument prototype would still apply. */ |
| 15814 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15815 | /* The GNU C library defines this for functions which it implements |
| 15816 | to always fail with ENOSYS. Some functions are actually named |
| 15817 | something starting with __ and the normal name is an alias. */ |
| 15818 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15819 | choke me |
| 15820 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15821 | char (*f) () = $ac_func; |
| 15822 | #endif |
| 15823 | #ifdef __cplusplus |
| 15824 | } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15825 | #endif |
| 15826 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15827 | int |
| 15828 | main () |
| 15829 | { |
| 15830 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15831 | ; |
| 15832 | return 0; |
| 15833 | } |
| 15834 | _ACEOF |
| 15835 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15837 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15838 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15839 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15840 | rm -f conftest.er1 |
| 15841 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15843 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15844 | { ac_try='test -z "$ac_c_werror_flag" |
| 15845 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15847 | (eval $ac_try) 2>&5 |
| 15848 | ac_status=$? |
| 15849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15850 | (exit $ac_status); }; } && |
| 15851 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15853 | (eval $ac_try) 2>&5 |
| 15854 | ac_status=$? |
| 15855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15856 | (exit $ac_status); }; }; then |
| 15857 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15858 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15859 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15861 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15862 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15863 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15864 | rm -f conftest.err conftest.$ac_objext \ |
| 15865 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15866 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15867 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15868 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15869 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15870 | cat >>confdefs.h <<_ACEOF |
| 15871 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15872 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15873 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15874 | fi |
| 15875 | done |
| 15876 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15877 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15878 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15879 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 15880 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 15881 | if test "${ac_cv_header_time+set}" = set; then |
| 15882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15883 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15884 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15885 | /* confdefs.h. */ |
| 15886 | _ACEOF |
| 15887 | cat confdefs.h >>conftest.$ac_ext |
| 15888 | cat >>conftest.$ac_ext <<_ACEOF |
| 15889 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15890 | #include <sys/types.h> |
| 15891 | #include <sys/time.h> |
| 15892 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15893 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15894 | int |
| 15895 | main () |
| 15896 | { |
| 15897 | if ((struct tm *) 0) |
| 15898 | return 0; |
| 15899 | ; |
| 15900 | return 0; |
| 15901 | } |
| 15902 | _ACEOF |
| 15903 | rm -f conftest.$ac_objext |
| 15904 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15905 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15906 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15907 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15908 | rm -f conftest.er1 |
| 15909 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15911 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15912 | { ac_try='test -z "$ac_c_werror_flag" |
| 15913 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15915 | (eval $ac_try) 2>&5 |
| 15916 | ac_status=$? |
| 15917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15918 | (exit $ac_status); }; } && |
| 15919 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15921 | (eval $ac_try) 2>&5 |
| 15922 | ac_status=$? |
| 15923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15924 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15925 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15926 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15927 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15928 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15929 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15930 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15931 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15932 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15933 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15934 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 15935 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15936 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15937 | |
| 15938 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15939 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15940 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15941 | |
| 15942 | fi |
| 15943 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15944 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 15945 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 15946 | if test "${ac_cv_struct_tm+set}" = set; then |
| 15947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15948 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15949 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15950 | /* confdefs.h. */ |
| 15951 | _ACEOF |
| 15952 | cat confdefs.h >>conftest.$ac_ext |
| 15953 | cat >>conftest.$ac_ext <<_ACEOF |
| 15954 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15955 | #include <sys/types.h> |
| 15956 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15957 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15958 | int |
| 15959 | main () |
| 15960 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15961 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15962 | ; |
| 15963 | return 0; |
| 15964 | } |
| 15965 | _ACEOF |
| 15966 | rm -f conftest.$ac_objext |
| 15967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15968 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15969 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15970 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15971 | rm -f conftest.er1 |
| 15972 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15974 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15975 | { ac_try='test -z "$ac_c_werror_flag" |
| 15976 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15978 | (eval $ac_try) 2>&5 |
| 15979 | ac_status=$? |
| 15980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15981 | (exit $ac_status); }; } && |
| 15982 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15984 | (eval $ac_try) 2>&5 |
| 15985 | ac_status=$? |
| 15986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15987 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15988 | ac_cv_struct_tm=time.h |
| 15989 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15990 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15991 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15992 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15993 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15994 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15995 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15996 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15997 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 15998 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15999 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16000 | |
| 16001 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16002 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16003 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16004 | |
| 16005 | fi |
| 16006 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16007 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 16008 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 16009 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 16010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16011 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16012 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16013 | /* confdefs.h. */ |
| 16014 | _ACEOF |
| 16015 | cat confdefs.h >>conftest.$ac_ext |
| 16016 | cat >>conftest.$ac_ext <<_ACEOF |
| 16017 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16018 | #include <sys/types.h> |
| 16019 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16020 | |
| 16021 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16022 | int |
| 16023 | main () |
| 16024 | { |
| 16025 | static struct tm ac_aggr; |
| 16026 | if (ac_aggr.tm_zone) |
| 16027 | return 0; |
| 16028 | ; |
| 16029 | return 0; |
| 16030 | } |
| 16031 | _ACEOF |
| 16032 | rm -f conftest.$ac_objext |
| 16033 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16034 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16035 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16036 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16037 | rm -f conftest.er1 |
| 16038 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16040 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16041 | { ac_try='test -z "$ac_c_werror_flag" |
| 16042 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16044 | (eval $ac_try) 2>&5 |
| 16045 | ac_status=$? |
| 16046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16047 | (exit $ac_status); }; } && |
| 16048 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16050 | (eval $ac_try) 2>&5 |
| 16051 | ac_status=$? |
| 16052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16053 | (exit $ac_status); }; }; then |
| 16054 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16055 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16056 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16057 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16058 | |
| 16059 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16060 | /* confdefs.h. */ |
| 16061 | _ACEOF |
| 16062 | cat confdefs.h >>conftest.$ac_ext |
| 16063 | cat >>conftest.$ac_ext <<_ACEOF |
| 16064 | /* end confdefs.h. */ |
| 16065 | #include <sys/types.h> |
| 16066 | #include <$ac_cv_struct_tm> |
| 16067 | |
| 16068 | |
| 16069 | int |
| 16070 | main () |
| 16071 | { |
| 16072 | static struct tm ac_aggr; |
| 16073 | if (sizeof ac_aggr.tm_zone) |
| 16074 | return 0; |
| 16075 | ; |
| 16076 | return 0; |
| 16077 | } |
| 16078 | _ACEOF |
| 16079 | rm -f conftest.$ac_objext |
| 16080 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16081 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16082 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16083 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16084 | rm -f conftest.er1 |
| 16085 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16087 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16088 | { ac_try='test -z "$ac_c_werror_flag" |
| 16089 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16091 | (eval $ac_try) 2>&5 |
| 16092 | ac_status=$? |
| 16093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16094 | (exit $ac_status); }; } && |
| 16095 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16097 | (eval $ac_try) 2>&5 |
| 16098 | ac_status=$? |
| 16099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16100 | (exit $ac_status); }; }; then |
| 16101 | ac_cv_member_struct_tm_tm_zone=yes |
| 16102 | else |
| 16103 | echo "$as_me: failed program was:" >&5 |
| 16104 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16105 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16106 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16107 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16108 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16111 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16112 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 16113 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 16114 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 16115 | |
| 16116 | cat >>confdefs.h <<_ACEOF |
| 16117 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 16118 | _ACEOF |
| 16119 | |
| 16120 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16121 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16122 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16123 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 16124 | |
| 16125 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16126 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16127 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16128 | |
| 16129 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16130 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 16131 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 16132 | if test "${ac_cv_var_tzname+set}" = set; then |
| 16133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16134 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16135 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16136 | /* confdefs.h. */ |
| 16137 | _ACEOF |
| 16138 | cat confdefs.h >>conftest.$ac_ext |
| 16139 | cat >>conftest.$ac_ext <<_ACEOF |
| 16140 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16141 | #include <time.h> |
| 16142 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16143 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16144 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16145 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16146 | int |
| 16147 | main () |
| 16148 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16149 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16150 | ; |
| 16151 | return 0; |
| 16152 | } |
| 16153 | _ACEOF |
| 16154 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16155 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16156 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16157 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16158 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16159 | rm -f conftest.er1 |
| 16160 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16162 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16163 | { ac_try='test -z "$ac_c_werror_flag" |
| 16164 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16166 | (eval $ac_try) 2>&5 |
| 16167 | ac_status=$? |
| 16168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16169 | (exit $ac_status); }; } && |
| 16170 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16172 | (eval $ac_try) 2>&5 |
| 16173 | ac_status=$? |
| 16174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16175 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16176 | ac_cv_var_tzname=yes |
| 16177 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16178 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16180 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16181 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16182 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16183 | rm -f conftest.err conftest.$ac_objext \ |
| 16184 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16185 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16186 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 16187 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16188 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16189 | |
| 16190 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16191 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16192 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16193 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16194 | fi |
| 16195 | fi |
| 16196 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16197 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 16198 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 16199 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 16200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16201 | else |
| 16202 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16203 | /* confdefs.h. */ |
| 16204 | _ACEOF |
| 16205 | cat confdefs.h >>conftest.$ac_ext |
| 16206 | cat >>conftest.$ac_ext <<_ACEOF |
| 16207 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16208 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16209 | int |
| 16210 | main () |
| 16211 | { |
| 16212 | static struct stat ac_aggr; |
| 16213 | if (ac_aggr.st_rdev) |
| 16214 | return 0; |
| 16215 | ; |
| 16216 | return 0; |
| 16217 | } |
| 16218 | _ACEOF |
| 16219 | rm -f conftest.$ac_objext |
| 16220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16221 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16222 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16223 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16224 | rm -f conftest.er1 |
| 16225 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16227 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16228 | { ac_try='test -z "$ac_c_werror_flag" |
| 16229 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16231 | (eval $ac_try) 2>&5 |
| 16232 | ac_status=$? |
| 16233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16234 | (exit $ac_status); }; } && |
| 16235 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16237 | (eval $ac_try) 2>&5 |
| 16238 | ac_status=$? |
| 16239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16240 | (exit $ac_status); }; }; then |
| 16241 | ac_cv_member_struct_stat_st_rdev=yes |
| 16242 | else |
| 16243 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16245 | |
| 16246 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16247 | /* confdefs.h. */ |
| 16248 | _ACEOF |
| 16249 | cat confdefs.h >>conftest.$ac_ext |
| 16250 | cat >>conftest.$ac_ext <<_ACEOF |
| 16251 | /* end confdefs.h. */ |
| 16252 | $ac_includes_default |
| 16253 | int |
| 16254 | main () |
| 16255 | { |
| 16256 | static struct stat ac_aggr; |
| 16257 | if (sizeof ac_aggr.st_rdev) |
| 16258 | return 0; |
| 16259 | ; |
| 16260 | return 0; |
| 16261 | } |
| 16262 | _ACEOF |
| 16263 | rm -f conftest.$ac_objext |
| 16264 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16265 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16266 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16267 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16268 | rm -f conftest.er1 |
| 16269 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16271 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16272 | { ac_try='test -z "$ac_c_werror_flag" |
| 16273 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16275 | (eval $ac_try) 2>&5 |
| 16276 | ac_status=$? |
| 16277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16278 | (exit $ac_status); }; } && |
| 16279 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16281 | (eval $ac_try) 2>&5 |
| 16282 | ac_status=$? |
| 16283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16284 | (exit $ac_status); }; }; then |
| 16285 | ac_cv_member_struct_stat_st_rdev=yes |
| 16286 | else |
| 16287 | echo "$as_me: failed program was:" >&5 |
| 16288 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16289 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16290 | ac_cv_member_struct_stat_st_rdev=no |
| 16291 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16295 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16296 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 16297 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 16298 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 16299 | |
| 16300 | cat >>confdefs.h <<_ACEOF |
| 16301 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 16302 | _ACEOF |
| 16303 | |
| 16304 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16305 | fi |
| 16306 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16307 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 16308 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 16309 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 16310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16311 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16312 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16313 | /* confdefs.h. */ |
| 16314 | _ACEOF |
| 16315 | cat confdefs.h >>conftest.$ac_ext |
| 16316 | cat >>conftest.$ac_ext <<_ACEOF |
| 16317 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16318 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16319 | int |
| 16320 | main () |
| 16321 | { |
| 16322 | static struct stat ac_aggr; |
| 16323 | if (ac_aggr.st_blksize) |
| 16324 | return 0; |
| 16325 | ; |
| 16326 | return 0; |
| 16327 | } |
| 16328 | _ACEOF |
| 16329 | rm -f conftest.$ac_objext |
| 16330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16331 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16332 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16333 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16334 | rm -f conftest.er1 |
| 16335 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16337 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16338 | { ac_try='test -z "$ac_c_werror_flag" |
| 16339 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16341 | (eval $ac_try) 2>&5 |
| 16342 | ac_status=$? |
| 16343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16344 | (exit $ac_status); }; } && |
| 16345 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16347 | (eval $ac_try) 2>&5 |
| 16348 | ac_status=$? |
| 16349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16350 | (exit $ac_status); }; }; then |
| 16351 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16352 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16353 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16354 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16355 | |
| 16356 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16357 | /* confdefs.h. */ |
| 16358 | _ACEOF |
| 16359 | cat confdefs.h >>conftest.$ac_ext |
| 16360 | cat >>conftest.$ac_ext <<_ACEOF |
| 16361 | /* end confdefs.h. */ |
| 16362 | $ac_includes_default |
| 16363 | int |
| 16364 | main () |
| 16365 | { |
| 16366 | static struct stat ac_aggr; |
| 16367 | if (sizeof ac_aggr.st_blksize) |
| 16368 | return 0; |
| 16369 | ; |
| 16370 | return 0; |
| 16371 | } |
| 16372 | _ACEOF |
| 16373 | rm -f conftest.$ac_objext |
| 16374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16375 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16376 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16377 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16378 | rm -f conftest.er1 |
| 16379 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16381 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16382 | { ac_try='test -z "$ac_c_werror_flag" |
| 16383 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16385 | (eval $ac_try) 2>&5 |
| 16386 | ac_status=$? |
| 16387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16388 | (exit $ac_status); }; } && |
| 16389 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16391 | (eval $ac_try) 2>&5 |
| 16392 | ac_status=$? |
| 16393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16394 | (exit $ac_status); }; }; then |
| 16395 | ac_cv_member_struct_stat_st_blksize=yes |
| 16396 | else |
| 16397 | echo "$as_me: failed program was:" >&5 |
| 16398 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16399 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16400 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16401 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16402 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
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 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16405 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16406 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 16407 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 16408 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16409 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16410 | cat >>confdefs.h <<_ACEOF |
| 16411 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 16412 | _ACEOF |
| 16413 | |
| 16414 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16415 | fi |
| 16416 | |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 16417 | echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 |
| 16418 | echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6 |
| 16419 | if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then |
| 16420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16421 | else |
| 16422 | cat >conftest.$ac_ext <<_ACEOF |
| 16423 | /* confdefs.h. */ |
| 16424 | _ACEOF |
| 16425 | cat confdefs.h >>conftest.$ac_ext |
| 16426 | cat >>conftest.$ac_ext <<_ACEOF |
| 16427 | /* end confdefs.h. */ |
| 16428 | $ac_includes_default |
| 16429 | int |
| 16430 | main () |
| 16431 | { |
| 16432 | static struct stat ac_aggr; |
| 16433 | if (ac_aggr.st_flags) |
| 16434 | return 0; |
| 16435 | ; |
| 16436 | return 0; |
| 16437 | } |
| 16438 | _ACEOF |
| 16439 | rm -f conftest.$ac_objext |
| 16440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16441 | (eval $ac_compile) 2>conftest.er1 |
| 16442 | ac_status=$? |
| 16443 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16444 | rm -f conftest.er1 |
| 16445 | cat conftest.err >&5 |
| 16446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16447 | (exit $ac_status); } && |
| 16448 | { ac_try='test -z "$ac_c_werror_flag" |
| 16449 | || test ! -s conftest.err' |
| 16450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16451 | (eval $ac_try) 2>&5 |
| 16452 | ac_status=$? |
| 16453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16454 | (exit $ac_status); }; } && |
| 16455 | { ac_try='test -s conftest.$ac_objext' |
| 16456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16457 | (eval $ac_try) 2>&5 |
| 16458 | ac_status=$? |
| 16459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16460 | (exit $ac_status); }; }; then |
| 16461 | ac_cv_member_struct_stat_st_flags=yes |
| 16462 | else |
| 16463 | echo "$as_me: failed program was:" >&5 |
| 16464 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16465 | |
| 16466 | cat >conftest.$ac_ext <<_ACEOF |
| 16467 | /* confdefs.h. */ |
| 16468 | _ACEOF |
| 16469 | cat confdefs.h >>conftest.$ac_ext |
| 16470 | cat >>conftest.$ac_ext <<_ACEOF |
| 16471 | /* end confdefs.h. */ |
| 16472 | $ac_includes_default |
| 16473 | int |
| 16474 | main () |
| 16475 | { |
| 16476 | static struct stat ac_aggr; |
| 16477 | if (sizeof ac_aggr.st_flags) |
| 16478 | return 0; |
| 16479 | ; |
| 16480 | return 0; |
| 16481 | } |
| 16482 | _ACEOF |
| 16483 | rm -f conftest.$ac_objext |
| 16484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16485 | (eval $ac_compile) 2>conftest.er1 |
| 16486 | ac_status=$? |
| 16487 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16488 | rm -f conftest.er1 |
| 16489 | cat conftest.err >&5 |
| 16490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16491 | (exit $ac_status); } && |
| 16492 | { ac_try='test -z "$ac_c_werror_flag" |
| 16493 | || test ! -s conftest.err' |
| 16494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16495 | (eval $ac_try) 2>&5 |
| 16496 | ac_status=$? |
| 16497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16498 | (exit $ac_status); }; } && |
| 16499 | { ac_try='test -s conftest.$ac_objext' |
| 16500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16501 | (eval $ac_try) 2>&5 |
| 16502 | ac_status=$? |
| 16503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16504 | (exit $ac_status); }; }; then |
| 16505 | ac_cv_member_struct_stat_st_flags=yes |
| 16506 | else |
| 16507 | echo "$as_me: failed program was:" >&5 |
| 16508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16509 | |
| 16510 | ac_cv_member_struct_stat_st_flags=no |
| 16511 | fi |
| 16512 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16513 | fi |
| 16514 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16515 | fi |
| 16516 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 |
| 16517 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6 |
| 16518 | if test $ac_cv_member_struct_stat_st_flags = yes; then |
| 16519 | |
| 16520 | cat >>confdefs.h <<_ACEOF |
| 16521 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 16522 | _ACEOF |
| 16523 | |
| 16524 | |
| 16525 | fi |
| 16526 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16527 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 16528 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 16529 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 16530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16531 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16532 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16533 | /* confdefs.h. */ |
| 16534 | _ACEOF |
| 16535 | cat confdefs.h >>conftest.$ac_ext |
| 16536 | cat >>conftest.$ac_ext <<_ACEOF |
| 16537 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16538 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16539 | int |
| 16540 | main () |
| 16541 | { |
| 16542 | static struct stat ac_aggr; |
| 16543 | if (ac_aggr.st_blocks) |
| 16544 | return 0; |
| 16545 | ; |
| 16546 | return 0; |
| 16547 | } |
| 16548 | _ACEOF |
| 16549 | rm -f conftest.$ac_objext |
| 16550 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16551 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16552 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16553 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16554 | rm -f conftest.er1 |
| 16555 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16557 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16558 | { ac_try='test -z "$ac_c_werror_flag" |
| 16559 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16561 | (eval $ac_try) 2>&5 |
| 16562 | ac_status=$? |
| 16563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16564 | (exit $ac_status); }; } && |
| 16565 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16567 | (eval $ac_try) 2>&5 |
| 16568 | ac_status=$? |
| 16569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16570 | (exit $ac_status); }; }; then |
| 16571 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16572 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16573 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16575 | |
| 16576 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16577 | /* confdefs.h. */ |
| 16578 | _ACEOF |
| 16579 | cat confdefs.h >>conftest.$ac_ext |
| 16580 | cat >>conftest.$ac_ext <<_ACEOF |
| 16581 | /* end confdefs.h. */ |
| 16582 | $ac_includes_default |
| 16583 | int |
| 16584 | main () |
| 16585 | { |
| 16586 | static struct stat ac_aggr; |
| 16587 | if (sizeof ac_aggr.st_blocks) |
| 16588 | return 0; |
| 16589 | ; |
| 16590 | return 0; |
| 16591 | } |
| 16592 | _ACEOF |
| 16593 | rm -f conftest.$ac_objext |
| 16594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16595 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16596 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16598 | rm -f conftest.er1 |
| 16599 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16601 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16602 | { ac_try='test -z "$ac_c_werror_flag" |
| 16603 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16605 | (eval $ac_try) 2>&5 |
| 16606 | ac_status=$? |
| 16607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16608 | (exit $ac_status); }; } && |
| 16609 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16611 | (eval $ac_try) 2>&5 |
| 16612 | ac_status=$? |
| 16613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16614 | (exit $ac_status); }; }; then |
| 16615 | ac_cv_member_struct_stat_st_blocks=yes |
| 16616 | else |
| 16617 | echo "$as_me: failed program was:" >&5 |
| 16618 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16619 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16620 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16621 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16622 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
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 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16625 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16626 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 16627 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 16628 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16629 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16630 | cat >>confdefs.h <<_ACEOF |
| 16631 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 16632 | _ACEOF |
| 16633 | |
| 16634 | |
| 16635 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16636 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16637 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16638 | |
| 16639 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16640 | case $LIBOBJS in |
| 16641 | "fileblocks.$ac_objext" | \ |
| 16642 | *" fileblocks.$ac_objext" | \ |
| 16643 | "fileblocks.$ac_objext "* | \ |
| 16644 | *" fileblocks.$ac_objext "* ) ;; |
| 16645 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;; |
| 16646 | esac |
| 16647 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 16648 | fi |
| 16649 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16650 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16651 | |
| 16652 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 16653 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 16654 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 16655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16656 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16657 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16658 | /* confdefs.h. */ |
| 16659 | _ACEOF |
| 16660 | cat confdefs.h >>conftest.$ac_ext |
| 16661 | cat >>conftest.$ac_ext <<_ACEOF |
| 16662 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16663 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16664 | int |
| 16665 | main () |
| 16666 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16667 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16668 | ; |
| 16669 | return 0; |
| 16670 | } |
| 16671 | _ACEOF |
| 16672 | rm -f conftest.$ac_objext |
| 16673 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16674 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16675 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16676 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16677 | rm -f conftest.er1 |
| 16678 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16680 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16681 | { ac_try='test -z "$ac_c_werror_flag" |
| 16682 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16684 | (eval $ac_try) 2>&5 |
| 16685 | ac_status=$? |
| 16686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16687 | (exit $ac_status); }; } && |
| 16688 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16690 | (eval $ac_try) 2>&5 |
| 16691 | ac_status=$? |
| 16692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16693 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16694 | ac_cv_header_time_altzone=yes |
| 16695 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16696 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16697 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16698 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16699 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16700 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16701 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16702 | fi |
| 16703 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16704 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 16705 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16706 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16707 | |
| 16708 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16709 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16710 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16711 | |
| 16712 | fi |
| 16713 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 16714 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16715 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 16716 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 16717 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16718 | /* confdefs.h. */ |
| 16719 | _ACEOF |
| 16720 | cat confdefs.h >>conftest.$ac_ext |
| 16721 | cat >>conftest.$ac_ext <<_ACEOF |
| 16722 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16723 | |
| 16724 | #include <sys/types.h> |
| 16725 | #include <sys/select.h> |
| 16726 | #include <sys/time.h> |
| 16727 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16728 | int |
| 16729 | main () |
| 16730 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16731 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16732 | ; |
| 16733 | return 0; |
| 16734 | } |
| 16735 | _ACEOF |
| 16736 | rm -f conftest.$ac_objext |
| 16737 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16738 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16739 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16740 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16741 | rm -f conftest.er1 |
| 16742 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16744 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16745 | { ac_try='test -z "$ac_c_werror_flag" |
| 16746 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16748 | (eval $ac_try) 2>&5 |
| 16749 | ac_status=$? |
| 16750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16751 | (exit $ac_status); }; } && |
| 16752 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16754 | (eval $ac_try) 2>&5 |
| 16755 | ac_status=$? |
| 16756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16757 | (exit $ac_status); }; }; then |
| 16758 | |
| 16759 | |
| 16760 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16761 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16762 | _ACEOF |
| 16763 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16764 | was_it_defined=yes |
| 16765 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16766 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16767 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16769 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16770 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16771 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16772 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 16773 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16774 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16775 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 16776 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 16777 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 16778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16779 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16780 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16781 | /* confdefs.h. */ |
| 16782 | _ACEOF |
| 16783 | cat confdefs.h >>conftest.$ac_ext |
| 16784 | cat >>conftest.$ac_ext <<_ACEOF |
| 16785 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16786 | |
| 16787 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16788 | int |
| 16789 | main () |
| 16790 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16791 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16792 | ; |
| 16793 | return 0; |
| 16794 | } |
| 16795 | _ACEOF |
| 16796 | rm -f conftest.$ac_objext |
| 16797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16798 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16799 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16800 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16801 | rm -f conftest.er1 |
| 16802 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16804 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16805 | { ac_try='test -z "$ac_c_werror_flag" |
| 16806 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16808 | (eval $ac_try) 2>&5 |
| 16809 | ac_status=$? |
| 16810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16811 | (exit $ac_status); }; } && |
| 16812 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16814 | (eval $ac_try) 2>&5 |
| 16815 | ac_status=$? |
| 16816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16817 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16818 | ac_cv_struct_addrinfo=yes |
| 16819 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16820 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16821 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16822 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16823 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16824 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16825 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16826 | fi |
| 16827 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16828 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 16829 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16830 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16831 | |
| 16832 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16833 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16834 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16835 | |
| 16836 | fi |
| 16837 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16838 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 16839 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 16840 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 16841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16842 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16843 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16844 | /* confdefs.h. */ |
| 16845 | _ACEOF |
| 16846 | cat confdefs.h >>conftest.$ac_ext |
| 16847 | cat >>conftest.$ac_ext <<_ACEOF |
| 16848 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16849 | |
| 16850 | # include <sys/types.h> |
| 16851 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16852 | int |
| 16853 | main () |
| 16854 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16855 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16856 | ; |
| 16857 | return 0; |
| 16858 | } |
| 16859 | _ACEOF |
| 16860 | rm -f conftest.$ac_objext |
| 16861 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16862 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16863 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16864 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16865 | rm -f conftest.er1 |
| 16866 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16868 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16869 | { ac_try='test -z "$ac_c_werror_flag" |
| 16870 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16872 | (eval $ac_try) 2>&5 |
| 16873 | ac_status=$? |
| 16874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16875 | (exit $ac_status); }; } && |
| 16876 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16878 | (eval $ac_try) 2>&5 |
| 16879 | ac_status=$? |
| 16880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16881 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16882 | ac_cv_struct_sockaddr_storage=yes |
| 16883 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16884 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16885 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16886 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16887 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16888 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16889 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16890 | fi |
| 16891 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16892 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 16893 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16894 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16895 | |
| 16896 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16897 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16898 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16899 | |
| 16900 | fi |
| 16901 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16902 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16903 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16904 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16905 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 16906 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 16907 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 16908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16909 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16910 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16911 | /* confdefs.h. */ |
| 16912 | _ACEOF |
| 16913 | cat confdefs.h >>conftest.$ac_ext |
| 16914 | cat >>conftest.$ac_ext <<_ACEOF |
| 16915 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16916 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16917 | int |
| 16918 | main () |
| 16919 | { |
| 16920 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 16921 | test_array [0] = 0 |
| 16922 | |
| 16923 | ; |
| 16924 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16925 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16926 | _ACEOF |
| 16927 | rm -f conftest.$ac_objext |
| 16928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16929 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16930 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16931 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16932 | rm -f conftest.er1 |
| 16933 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16935 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16936 | { ac_try='test -z "$ac_c_werror_flag" |
| 16937 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16939 | (eval $ac_try) 2>&5 |
| 16940 | ac_status=$? |
| 16941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16942 | (exit $ac_status); }; } && |
| 16943 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16945 | (eval $ac_try) 2>&5 |
| 16946 | ac_status=$? |
| 16947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16948 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16949 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16950 | else |
| 16951 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16953 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16954 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16955 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16957 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16958 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 16959 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16960 | 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] | 16961 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16962 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16963 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16964 | |
| 16965 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16966 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16967 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 16968 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 16969 | if test "${ac_cv_c_const+set}" = set; then |
| 16970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16971 | else |
| 16972 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16973 | /* confdefs.h. */ |
| 16974 | _ACEOF |
| 16975 | cat confdefs.h >>conftest.$ac_ext |
| 16976 | cat >>conftest.$ac_ext <<_ACEOF |
| 16977 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16978 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16979 | int |
| 16980 | main () |
| 16981 | { |
| 16982 | /* FIXME: Include the comments suggested by Paul. */ |
| 16983 | #ifndef __cplusplus |
| 16984 | /* Ultrix mips cc rejects this. */ |
| 16985 | typedef int charset[2]; |
| 16986 | const charset x; |
| 16987 | /* SunOS 4.1.1 cc rejects this. */ |
| 16988 | char const *const *ccp; |
| 16989 | char **p; |
| 16990 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 16991 | struct point {int x, y;}; |
| 16992 | static struct point const zero = {0,0}; |
| 16993 | /* AIX XL C 1.02.0.0 rejects this. |
| 16994 | It does not let you subtract one const X* pointer from another in |
| 16995 | an arm of an if-expression whose if-part is not a constant |
| 16996 | expression */ |
| 16997 | const char *g = "string"; |
| 16998 | ccp = &g + (g ? g-g : 0); |
| 16999 | /* HPUX 7.0 cc rejects these. */ |
| 17000 | ++ccp; |
| 17001 | p = (char**) ccp; |
| 17002 | ccp = (char const *const *) p; |
| 17003 | { /* SCO 3.2v4 cc rejects this. */ |
| 17004 | char *t; |
| 17005 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17006 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17007 | *t++ = 0; |
| 17008 | } |
| 17009 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 17010 | int x[] = {25, 17}; |
| 17011 | const int *foo = &x[0]; |
| 17012 | ++foo; |
| 17013 | } |
| 17014 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 17015 | typedef const int *iptr; |
| 17016 | iptr p = 0; |
| 17017 | ++p; |
| 17018 | } |
| 17019 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 17020 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 17021 | struct s { int j; const int *ap[3]; }; |
| 17022 | struct s *b; b->j = 5; |
| 17023 | } |
| 17024 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 17025 | const int foo = 10; |
| 17026 | } |
| 17027 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17028 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17029 | ; |
| 17030 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17031 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17032 | _ACEOF |
| 17033 | rm -f conftest.$ac_objext |
| 17034 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17035 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17036 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17037 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17038 | rm -f conftest.er1 |
| 17039 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17041 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17042 | { ac_try='test -z "$ac_c_werror_flag" |
| 17043 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17045 | (eval $ac_try) 2>&5 |
| 17046 | ac_status=$? |
| 17047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17048 | (exit $ac_status); }; } && |
| 17049 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17051 | (eval $ac_try) 2>&5 |
| 17052 | ac_status=$? |
| 17053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17054 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17055 | ac_cv_c_const=yes |
| 17056 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17057 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17058 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17059 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17060 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17061 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17062 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17063 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17064 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 17065 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17066 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17067 | |
| 17068 | cat >>confdefs.h <<\_ACEOF |
| 17069 | #define const |
| 17070 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17071 | |
| 17072 | fi |
| 17073 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17074 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17075 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17076 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 17077 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 17078 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17079 | /* confdefs.h. */ |
| 17080 | _ACEOF |
| 17081 | cat confdefs.h >>conftest.$ac_ext |
| 17082 | cat >>conftest.$ac_ext <<_ACEOF |
| 17083 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17084 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17085 | int |
| 17086 | main () |
| 17087 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17088 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17089 | ; |
| 17090 | return 0; |
| 17091 | } |
| 17092 | _ACEOF |
| 17093 | rm -f conftest.$ac_objext |
| 17094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17095 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17096 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17097 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17098 | rm -f conftest.er1 |
| 17099 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17101 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17102 | { ac_try='test -z "$ac_c_werror_flag" |
| 17103 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17105 | (eval $ac_try) 2>&5 |
| 17106 | ac_status=$? |
| 17107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17108 | (exit $ac_status); }; } && |
| 17109 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17111 | (eval $ac_try) 2>&5 |
| 17112 | ac_status=$? |
| 17113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17114 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17115 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17116 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17117 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17118 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17119 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17120 | |
| 17121 | cat >>confdefs.h <<\_ACEOF |
| 17122 | #define volatile |
| 17123 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17124 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17125 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17126 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17127 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17128 | echo "$as_me:$LINENO: result: $works" >&5 |
| 17129 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17130 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17131 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17132 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 17133 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 17134 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17135 | /* confdefs.h. */ |
| 17136 | _ACEOF |
| 17137 | cat confdefs.h >>conftest.$ac_ext |
| 17138 | cat >>conftest.$ac_ext <<_ACEOF |
| 17139 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 17140 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17141 | int |
| 17142 | main () |
| 17143 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17144 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17145 | ; |
| 17146 | return 0; |
| 17147 | } |
| 17148 | _ACEOF |
| 17149 | rm -f conftest.$ac_objext |
| 17150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17151 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17152 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17153 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17154 | rm -f conftest.er1 |
| 17155 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17157 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17158 | { ac_try='test -z "$ac_c_werror_flag" |
| 17159 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17161 | (eval $ac_try) 2>&5 |
| 17162 | ac_status=$? |
| 17163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17164 | (exit $ac_status); }; } && |
| 17165 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17167 | (eval $ac_try) 2>&5 |
| 17168 | ac_status=$? |
| 17169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17170 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17171 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 17172 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17173 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17175 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17176 | |
| 17177 | cat >>confdefs.h <<\_ACEOF |
| 17178 | #define signed |
| 17179 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17180 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17181 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17182 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17183 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17184 | echo "$as_me:$LINENO: result: $works" >&5 |
| 17185 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17186 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17187 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17188 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 17189 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 17190 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17191 | /* confdefs.h. */ |
| 17192 | _ACEOF |
| 17193 | cat confdefs.h >>conftest.$ac_ext |
| 17194 | cat >>conftest.$ac_ext <<_ACEOF |
| 17195 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17196 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17197 | int |
| 17198 | main () |
| 17199 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17200 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17201 | ; |
| 17202 | return 0; |
| 17203 | } |
| 17204 | _ACEOF |
| 17205 | rm -f conftest.$ac_objext |
| 17206 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17207 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17208 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17209 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17210 | rm -f conftest.er1 |
| 17211 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17213 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17214 | { ac_try='test -z "$ac_c_werror_flag" |
| 17215 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17217 | (eval $ac_try) 2>&5 |
| 17218 | ac_status=$? |
| 17219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17220 | (exit $ac_status); }; } && |
| 17221 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17223 | (eval $ac_try) 2>&5 |
| 17224 | ac_status=$? |
| 17225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17226 | (exit $ac_status); }; }; then |
| 17227 | |
| 17228 | |
| 17229 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17230 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17231 | _ACEOF |
| 17232 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17233 | have_prototypes=yes |
| 17234 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 17235 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17236 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17237 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17238 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17239 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17240 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17241 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 17242 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17243 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17244 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17245 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 17246 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 17247 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17248 | /* confdefs.h. */ |
| 17249 | _ACEOF |
| 17250 | cat confdefs.h >>conftest.$ac_ext |
| 17251 | cat >>conftest.$ac_ext <<_ACEOF |
| 17252 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17253 | |
| 17254 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 17255 | int foo(int x, ...) { |
| 17256 | va_list va; |
| 17257 | va_start(va, x); |
| 17258 | va_arg(va, int); |
| 17259 | va_arg(va, char *); |
| 17260 | va_arg(va, double); |
| 17261 | return 0; |
| 17262 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17263 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17264 | int |
| 17265 | main () |
| 17266 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 17267 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17268 | ; |
| 17269 | return 0; |
| 17270 | } |
| 17271 | _ACEOF |
| 17272 | rm -f conftest.$ac_objext |
| 17273 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17274 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17275 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17276 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17277 | rm -f conftest.er1 |
| 17278 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17280 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17281 | { ac_try='test -z "$ac_c_werror_flag" |
| 17282 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17284 | (eval $ac_try) 2>&5 |
| 17285 | ac_status=$? |
| 17286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17287 | (exit $ac_status); }; } && |
| 17288 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17290 | (eval $ac_try) 2>&5 |
| 17291 | ac_status=$? |
| 17292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17293 | (exit $ac_status); }; }; then |
| 17294 | |
| 17295 | |
| 17296 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17297 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17298 | _ACEOF |
| 17299 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17300 | works=yes |
| 17301 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 17302 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17303 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17304 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17305 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17306 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17307 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17308 | echo "$as_me:$LINENO: result: $works" >&5 |
| 17309 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17310 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17311 | # check for socketpair |
| 17312 | echo "$as_me:$LINENO: checking for socketpair" >&5 |
| 17313 | echo $ECHO_N "checking for socketpair... $ECHO_C" >&6 |
| 17314 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17315 | /* confdefs.h. */ |
| 17316 | _ACEOF |
| 17317 | cat confdefs.h >>conftest.$ac_ext |
| 17318 | cat >>conftest.$ac_ext <<_ACEOF |
| 17319 | /* end confdefs.h. */ |
| 17320 | |
| 17321 | #include <sys/types.h> |
| 17322 | #include <sys/socket.h> |
| 17323 | |
| 17324 | int |
| 17325 | main () |
| 17326 | { |
| 17327 | void *x=socketpair |
| 17328 | ; |
| 17329 | return 0; |
| 17330 | } |
| 17331 | _ACEOF |
| 17332 | rm -f conftest.$ac_objext |
| 17333 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17334 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17335 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17336 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17337 | rm -f conftest.er1 |
| 17338 | cat conftest.err >&5 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17340 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17341 | { ac_try='test -z "$ac_c_werror_flag" |
| 17342 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17344 | (eval $ac_try) 2>&5 |
| 17345 | ac_status=$? |
| 17346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17347 | (exit $ac_status); }; } && |
| 17348 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17350 | (eval $ac_try) 2>&5 |
| 17351 | ac_status=$? |
| 17352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17353 | (exit $ac_status); }; }; then |
| 17354 | |
| 17355 | cat >>confdefs.h <<\_ACEOF |
| 17356 | #define HAVE_SOCKETPAIR 1 |
| 17357 | _ACEOF |
| 17358 | |
| 17359 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17360 | echo "${ECHO_T}yes" >&6 |
| 17361 | else |
| 17362 | echo "$as_me: failed program was:" >&5 |
| 17363 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17364 | |
| 17365 | echo "$as_me:$LINENO: result: no" >&5 |
| 17366 | echo "${ECHO_T}no" >&6 |
| 17367 | |
| 17368 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17369 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 17370 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17371 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17372 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 17373 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 17374 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17375 | /* confdefs.h. */ |
| 17376 | _ACEOF |
| 17377 | cat confdefs.h >>conftest.$ac_ext |
| 17378 | cat >>conftest.$ac_ext <<_ACEOF |
| 17379 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17380 | #include <sys/types.h> |
| 17381 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17382 | int |
| 17383 | main () |
| 17384 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17385 | struct sockaddr x; |
| 17386 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17387 | ; |
| 17388 | return 0; |
| 17389 | } |
| 17390 | _ACEOF |
| 17391 | rm -f conftest.$ac_objext |
| 17392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17393 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17394 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17395 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17396 | rm -f conftest.er1 |
| 17397 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17399 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17400 | { ac_try='test -z "$ac_c_werror_flag" |
| 17401 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17403 | (eval $ac_try) 2>&5 |
| 17404 | ac_status=$? |
| 17405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17406 | (exit $ac_status); }; } && |
| 17407 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17409 | (eval $ac_try) 2>&5 |
| 17410 | ac_status=$? |
| 17411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17412 | (exit $ac_status); }; }; then |
| 17413 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17414 | echo "${ECHO_T}yes" >&6 |
| 17415 | |
| 17416 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17417 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17418 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17419 | |
| 17420 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17421 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17423 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17424 | echo "$as_me:$LINENO: result: no" >&5 |
| 17425 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17426 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17427 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17428 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17429 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17430 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 17431 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 17432 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17433 | /* confdefs.h. */ |
| 17434 | _ACEOF |
| 17435 | cat confdefs.h >>conftest.$ac_ext |
| 17436 | cat >>conftest.$ac_ext <<_ACEOF |
| 17437 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17438 | |
| 17439 | #ifdef HAVE_STDARG_PROTOTYPES |
| 17440 | #include <stdarg.h> |
| 17441 | #else |
| 17442 | #include <varargs.h> |
| 17443 | #endif |
| 17444 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17445 | int |
| 17446 | main () |
| 17447 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17448 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17449 | ; |
| 17450 | return 0; |
| 17451 | } |
| 17452 | _ACEOF |
| 17453 | rm -f conftest.$ac_objext |
| 17454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17455 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17456 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17457 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17458 | rm -f conftest.er1 |
| 17459 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17461 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17462 | { ac_try='test -z "$ac_c_werror_flag" |
| 17463 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17465 | (eval $ac_try) 2>&5 |
| 17466 | ac_status=$? |
| 17467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17468 | (exit $ac_status); }; } && |
| 17469 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17471 | (eval $ac_try) 2>&5 |
| 17472 | ac_status=$? |
| 17473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17474 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17475 | : |
| 17476 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17477 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17478 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17479 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17480 | |
| 17481 | |
| 17482 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17483 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17484 | _ACEOF |
| 17485 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17486 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17487 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17488 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17489 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17490 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 17491 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17492 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17493 | # 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] | 17494 | |
| 17495 | |
| 17496 | |
| 17497 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 17498 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 17499 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 17500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17501 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17502 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17503 | /* confdefs.h. */ |
| 17504 | _ACEOF |
| 17505 | cat confdefs.h >>conftest.$ac_ext |
| 17506 | cat >>conftest.$ac_ext <<_ACEOF |
| 17507 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17508 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17509 | which can conflict with char gethostbyname_r (); below. |
| 17510 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 17511 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 17512 | including <limits.h> includes <sys/time.h> and causes problems |
| 17513 | checking for functions defined therein. */ |
| 17514 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17515 | # include <limits.h> |
| 17516 | #else |
| 17517 | # include <assert.h> |
| 17518 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17519 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17520 | #ifdef __cplusplus |
| 17521 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17522 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17523 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17524 | /* 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] | 17525 | builtin and then its argument prototype would still apply. */ |
| 17526 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17527 | /* The GNU C library defines this for functions which it implements |
| 17528 | to always fail with ENOSYS. Some functions are actually named |
| 17529 | something starting with __ and the normal name is an alias. */ |
| 17530 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 17531 | choke me |
| 17532 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17533 | char (*f) () = gethostbyname_r; |
| 17534 | #endif |
| 17535 | #ifdef __cplusplus |
| 17536 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17537 | #endif |
| 17538 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17539 | int |
| 17540 | main () |
| 17541 | { |
| 17542 | return f != gethostbyname_r; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17543 | ; |
| 17544 | return 0; |
| 17545 | } |
| 17546 | _ACEOF |
| 17547 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17548 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17549 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17550 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17551 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17552 | rm -f conftest.er1 |
| 17553 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17555 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17556 | { ac_try='test -z "$ac_c_werror_flag" |
| 17557 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17559 | (eval $ac_try) 2>&5 |
| 17560 | ac_status=$? |
| 17561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17562 | (exit $ac_status); }; } && |
| 17563 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17565 | (eval $ac_try) 2>&5 |
| 17566 | ac_status=$? |
| 17567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17568 | (exit $ac_status); }; }; then |
| 17569 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17570 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17571 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17572 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17573 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17574 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17575 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17576 | rm -f conftest.err conftest.$ac_objext \ |
| 17577 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17578 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17579 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 17580 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 17581 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17582 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17583 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17584 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17585 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17586 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17587 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 17588 | 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] | 17589 | OLD_CFLAGS=$CFLAGS |
| 17590 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17591 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17592 | /* confdefs.h. */ |
| 17593 | _ACEOF |
| 17594 | cat confdefs.h >>conftest.$ac_ext |
| 17595 | cat >>conftest.$ac_ext <<_ACEOF |
| 17596 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17597 | |
| 17598 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17599 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17600 | int |
| 17601 | main () |
| 17602 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17603 | |
| 17604 | char *name; |
| 17605 | struct hostent *he, *res; |
| 17606 | char buffer[2048]; |
| 17607 | int buflen = 2048; |
| 17608 | int h_errnop; |
| 17609 | |
| 17610 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17611 | |
| 17612 | ; |
| 17613 | return 0; |
| 17614 | } |
| 17615 | _ACEOF |
| 17616 | rm -f conftest.$ac_objext |
| 17617 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17618 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17619 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17620 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17621 | rm -f conftest.er1 |
| 17622 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17624 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17625 | { ac_try='test -z "$ac_c_werror_flag" |
| 17626 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17628 | (eval $ac_try) 2>&5 |
| 17629 | ac_status=$? |
| 17630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17631 | (exit $ac_status); }; } && |
| 17632 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17634 | (eval $ac_try) 2>&5 |
| 17635 | ac_status=$? |
| 17636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17637 | (exit $ac_status); }; }; then |
| 17638 | |
| 17639 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 17640 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17641 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 17642 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17643 | |
| 17644 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17645 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17646 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17647 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17648 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17649 | echo "${ECHO_T}yes" >&6 |
| 17650 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17651 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17652 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17653 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17654 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17655 | |
| 17656 | echo "$as_me:$LINENO: result: no" >&5 |
| 17657 | echo "${ECHO_T}no" >&6 |
| 17658 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 17659 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 17660 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17661 | /* confdefs.h. */ |
| 17662 | _ACEOF |
| 17663 | cat confdefs.h >>conftest.$ac_ext |
| 17664 | cat >>conftest.$ac_ext <<_ACEOF |
| 17665 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17666 | |
| 17667 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17668 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17669 | int |
| 17670 | main () |
| 17671 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17672 | |
| 17673 | char *name; |
| 17674 | struct hostent *he; |
| 17675 | char buffer[2048]; |
| 17676 | int buflen = 2048; |
| 17677 | int h_errnop; |
| 17678 | |
| 17679 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17680 | |
| 17681 | ; |
| 17682 | return 0; |
| 17683 | } |
| 17684 | _ACEOF |
| 17685 | rm -f conftest.$ac_objext |
| 17686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17687 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17688 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17689 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17690 | rm -f conftest.er1 |
| 17691 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17693 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17694 | { ac_try='test -z "$ac_c_werror_flag" |
| 17695 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17697 | (eval $ac_try) 2>&5 |
| 17698 | ac_status=$? |
| 17699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17700 | (exit $ac_status); }; } && |
| 17701 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17703 | (eval $ac_try) 2>&5 |
| 17704 | ac_status=$? |
| 17705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17706 | (exit $ac_status); }; }; then |
| 17707 | |
| 17708 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 17709 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17710 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 17711 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17712 | |
| 17713 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17714 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17715 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17716 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17717 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17718 | echo "${ECHO_T}yes" >&6 |
| 17719 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17720 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17721 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17722 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17723 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17724 | |
| 17725 | echo "$as_me:$LINENO: result: no" >&5 |
| 17726 | echo "${ECHO_T}no" >&6 |
| 17727 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 17728 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 17729 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17730 | /* confdefs.h. */ |
| 17731 | _ACEOF |
| 17732 | cat confdefs.h >>conftest.$ac_ext |
| 17733 | cat >>conftest.$ac_ext <<_ACEOF |
| 17734 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17735 | |
| 17736 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17737 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17738 | int |
| 17739 | main () |
| 17740 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17741 | |
| 17742 | char *name; |
| 17743 | struct hostent *he; |
| 17744 | struct hostent_data data; |
| 17745 | |
| 17746 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17747 | |
| 17748 | ; |
| 17749 | return 0; |
| 17750 | } |
| 17751 | _ACEOF |
| 17752 | rm -f conftest.$ac_objext |
| 17753 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17754 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17755 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17756 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17757 | rm -f conftest.er1 |
| 17758 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17760 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17761 | { ac_try='test -z "$ac_c_werror_flag" |
| 17762 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17764 | (eval $ac_try) 2>&5 |
| 17765 | ac_status=$? |
| 17766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17767 | (exit $ac_status); }; } && |
| 17768 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17770 | (eval $ac_try) 2>&5 |
| 17771 | ac_status=$? |
| 17772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17773 | (exit $ac_status); }; }; then |
| 17774 | |
| 17775 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 17776 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17777 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 17778 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17779 | |
| 17780 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17781 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17782 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17783 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17784 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17785 | echo "${ECHO_T}yes" >&6 |
| 17786 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17787 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17788 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17790 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17791 | |
| 17792 | echo "$as_me:$LINENO: result: no" >&5 |
| 17793 | echo "${ECHO_T}no" >&6 |
| 17794 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17795 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17796 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17797 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17798 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17799 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17800 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17801 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17802 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17803 | CFLAGS=$OLD_CFLAGS |
| 17804 | |
| 17805 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17806 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17807 | |
| 17808 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17809 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17810 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 17811 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 17812 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 17813 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 17814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17815 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17816 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17817 | /* confdefs.h. */ |
| 17818 | _ACEOF |
| 17819 | cat confdefs.h >>conftest.$ac_ext |
| 17820 | cat >>conftest.$ac_ext <<_ACEOF |
| 17821 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17822 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17823 | which can conflict with char $ac_func (); below. |
| 17824 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 17825 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 17826 | including <limits.h> includes <sys/time.h> and causes problems |
| 17827 | checking for functions defined therein. */ |
| 17828 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17829 | # include <limits.h> |
| 17830 | #else |
| 17831 | # include <assert.h> |
| 17832 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17833 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17834 | #ifdef __cplusplus |
| 17835 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17836 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17837 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17838 | /* 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] | 17839 | builtin and then its argument prototype would still apply. */ |
| 17840 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17841 | /* The GNU C library defines this for functions which it implements |
| 17842 | to always fail with ENOSYS. Some functions are actually named |
| 17843 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17844 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17845 | choke me |
| 17846 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17847 | char (*f) () = $ac_func; |
| 17848 | #endif |
| 17849 | #ifdef __cplusplus |
| 17850 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17851 | #endif |
| 17852 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17853 | int |
| 17854 | main () |
| 17855 | { |
| 17856 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17857 | ; |
| 17858 | return 0; |
| 17859 | } |
| 17860 | _ACEOF |
| 17861 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17862 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17863 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17864 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17865 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17866 | rm -f conftest.er1 |
| 17867 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17869 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17870 | { ac_try='test -z "$ac_c_werror_flag" |
| 17871 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17873 | (eval $ac_try) 2>&5 |
| 17874 | ac_status=$? |
| 17875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17876 | (exit $ac_status); }; } && |
| 17877 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17879 | (eval $ac_try) 2>&5 |
| 17880 | ac_status=$? |
| 17881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17882 | (exit $ac_status); }; }; then |
| 17883 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17884 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17885 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17886 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17887 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17888 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17889 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17890 | rm -f conftest.err conftest.$ac_objext \ |
| 17891 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17892 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17893 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 17894 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 17895 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 17896 | cat >>confdefs.h <<_ACEOF |
| 17897 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 17898 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17899 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17900 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 17901 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17902 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17903 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 17904 | fi |
| 17905 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17906 | |
| 17907 | |
| 17908 | |
| 17909 | |
| 17910 | |
| 17911 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17912 | # checks for system services |
| 17913 | # (none yet) |
| 17914 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17915 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17916 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 17917 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 17918 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 17919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17920 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17921 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17922 | /* confdefs.h. */ |
| 17923 | _ACEOF |
| 17924 | cat confdefs.h >>conftest.$ac_ext |
| 17925 | cat >>conftest.$ac_ext <<_ACEOF |
| 17926 | /* end confdefs.h. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17927 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17928 | which can conflict with char __fpu_control (); below. |
| 17929 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 17930 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 17931 | including <limits.h> includes <sys/time.h> and causes problems |
| 17932 | checking for functions defined therein. */ |
| 17933 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17934 | # include <limits.h> |
| 17935 | #else |
| 17936 | # include <assert.h> |
| 17937 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17938 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17939 | #ifdef __cplusplus |
| 17940 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17941 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17942 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17943 | /* 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] | 17944 | builtin and then its argument prototype would still apply. */ |
| 17945 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17946 | /* The GNU C library defines this for functions which it implements |
| 17947 | to always fail with ENOSYS. Some functions are actually named |
| 17948 | something starting with __ and the normal name is an alias. */ |
| 17949 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 17950 | choke me |
| 17951 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17952 | char (*f) () = __fpu_control; |
| 17953 | #endif |
| 17954 | #ifdef __cplusplus |
| 17955 | } |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17956 | #endif |
| 17957 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17958 | int |
| 17959 | main () |
| 17960 | { |
| 17961 | return f != __fpu_control; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17962 | ; |
| 17963 | return 0; |
| 17964 | } |
| 17965 | _ACEOF |
| 17966 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17967 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17968 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17969 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17970 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17971 | rm -f conftest.er1 |
| 17972 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17974 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17975 | { ac_try='test -z "$ac_c_werror_flag" |
| 17976 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17978 | (eval $ac_try) 2>&5 |
| 17979 | ac_status=$? |
| 17980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17981 | (exit $ac_status); }; } && |
| 17982 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17984 | (eval $ac_try) 2>&5 |
| 17985 | ac_status=$? |
| 17986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17987 | (exit $ac_status); }; }; then |
| 17988 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17989 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17990 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17991 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17992 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17993 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17994 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17995 | rm -f conftest.err conftest.$ac_objext \ |
| 17996 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 17997 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17998 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 17999 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 18000 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 18001 | : |
| 18002 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18003 | |
| 18004 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 18005 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 18006 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 18007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18008 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18009 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18010 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18011 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18012 | /* confdefs.h. */ |
| 18013 | _ACEOF |
| 18014 | cat confdefs.h >>conftest.$ac_ext |
| 18015 | cat >>conftest.$ac_ext <<_ACEOF |
| 18016 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18017 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18018 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18019 | #ifdef __cplusplus |
| 18020 | extern "C" |
| 18021 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18022 | /* 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] | 18023 | builtin and then its argument prototype would still apply. */ |
| 18024 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18025 | int |
| 18026 | main () |
| 18027 | { |
| 18028 | __fpu_control (); |
| 18029 | ; |
| 18030 | return 0; |
| 18031 | } |
| 18032 | _ACEOF |
| 18033 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18034 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18035 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18036 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18037 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18038 | rm -f conftest.er1 |
| 18039 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18041 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18042 | { ac_try='test -z "$ac_c_werror_flag" |
| 18043 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18045 | (eval $ac_try) 2>&5 |
| 18046 | ac_status=$? |
| 18047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18048 | (exit $ac_status); }; } && |
| 18049 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18051 | (eval $ac_try) 2>&5 |
| 18052 | ac_status=$? |
| 18053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18054 | (exit $ac_status); }; }; then |
| 18055 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18056 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18057 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18058 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18059 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18060 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18061 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18062 | rm -f conftest.err conftest.$ac_objext \ |
| 18063 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18064 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18065 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18066 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 18067 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 18068 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 18069 | cat >>confdefs.h <<_ACEOF |
| 18070 | #define HAVE_LIBIEEE 1 |
| 18071 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18072 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18073 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18074 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18075 | fi |
| 18076 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18077 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 18078 | fi |
| 18079 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18080 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18081 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18082 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 18083 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 18084 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18085 | # Check whether --with-fpectl or --without-fpectl was given. |
| 18086 | if test "${with_fpectl+set}" = set; then |
| 18087 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18088 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18089 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18090 | then |
| 18091 | |
| 18092 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18093 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18094 | _ACEOF |
| 18095 | |
| 18096 | echo "$as_me:$LINENO: result: yes" >&5 |
| 18097 | echo "${ECHO_T}yes" >&6 |
| 18098 | else echo "$as_me:$LINENO: result: no" >&5 |
| 18099 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18100 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18101 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18102 | echo "$as_me:$LINENO: result: no" >&5 |
| 18103 | echo "${ECHO_T}no" >&6 |
| 18104 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18105 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18106 | # check for --with-libm=... |
| 18107 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 18108 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 18109 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 18110 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 18111 | *) LIBM=-lm |
| 18112 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18113 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 18114 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 18115 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18116 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18117 | if test "${with_libm+set}" = set; then |
| 18118 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18119 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18120 | if test "$withval" = no |
| 18121 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18122 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 18123 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18124 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18125 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18126 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 18127 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 18128 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 18129 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 18130 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18131 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18132 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18133 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 18134 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 18135 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18136 | |
| 18137 | # check for --with-libc=... |
| 18138 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18139 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 18140 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 18141 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18142 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18143 | if test "${with_libc+set}" = set; then |
| 18144 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18145 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18146 | if test "$withval" = no |
| 18147 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18148 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 18149 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18150 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18151 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18152 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 18153 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 18154 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 18155 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 18156 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18157 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 18158 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18159 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 18160 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 18161 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18162 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18163 | # check for hypot() in math library |
| 18164 | LIBS_SAVE=$LIBS |
| 18165 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18166 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18167 | for ac_func in hypot |
| 18168 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18169 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18170 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18171 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 18172 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 18173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18174 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18175 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18176 | /* confdefs.h. */ |
| 18177 | _ACEOF |
| 18178 | cat confdefs.h >>conftest.$ac_ext |
| 18179 | cat >>conftest.$ac_ext <<_ACEOF |
| 18180 | /* end confdefs.h. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18181 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18182 | which can conflict with char $ac_func (); below. |
| 18183 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Anthony Baxter | c050119 | 2003-09-27 09:12:27 +0000 | [diff] [blame] | 18184 | <limits.h> exists even on freestanding compilers. Under hpux, |
| 18185 | including <limits.h> includes <sys/time.h> and causes problems |
| 18186 | checking for functions defined therein. */ |
| 18187 | #if defined (__STDC__) && !defined (_HPUX_SOURCE) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18188 | # include <limits.h> |
| 18189 | #else |
| 18190 | # include <assert.h> |
| 18191 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 18192 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18193 | #ifdef __cplusplus |
| 18194 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18195 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18196 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 18197 | /* 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] | 18198 | builtin and then its argument prototype would still apply. */ |
| 18199 | char $ac_func (); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18200 | /* The GNU C library defines this for functions which it implements |
| 18201 | to always fail with ENOSYS. Some functions are actually named |
| 18202 | something starting with __ and the normal name is an alias. */ |
| 18203 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 18204 | choke me |
| 18205 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18206 | char (*f) () = $ac_func; |
| 18207 | #endif |
| 18208 | #ifdef __cplusplus |
| 18209 | } |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18210 | #endif |
| 18211 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18212 | int |
| 18213 | main () |
| 18214 | { |
| 18215 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18216 | ; |
| 18217 | return 0; |
| 18218 | } |
| 18219 | _ACEOF |
| 18220 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18221 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18222 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18223 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18224 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18225 | rm -f conftest.er1 |
| 18226 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18228 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18229 | { ac_try='test -z "$ac_c_werror_flag" |
| 18230 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18232 | (eval $ac_try) 2>&5 |
| 18233 | ac_status=$? |
| 18234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18235 | (exit $ac_status); }; } && |
| 18236 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18238 | (eval $ac_try) 2>&5 |
| 18239 | ac_status=$? |
| 18240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18241 | (exit $ac_status); }; }; then |
| 18242 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 18243 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18244 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18245 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18246 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18247 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18248 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18249 | rm -f conftest.err conftest.$ac_objext \ |
| 18250 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18251 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18252 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 18253 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 18254 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 18255 | cat >>confdefs.h <<_ACEOF |
| 18256 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18257 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18258 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18259 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18260 | case $LIBOBJS in |
| 18261 | "$ac_func.$ac_objext" | \ |
| 18262 | *" $ac_func.$ac_objext" | \ |
| 18263 | "$ac_func.$ac_objext "* | \ |
| 18264 | *" $ac_func.$ac_objext "* ) ;; |
| 18265 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; |
| 18266 | esac |
| 18267 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 18268 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 18269 | done |
| 18270 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18271 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 18272 | LIBS=$LIBS_SAVE |
| 18273 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18274 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18275 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 18276 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 18277 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 18278 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 18279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18280 | fi |
| 18281 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 18282 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18283 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18284 | # Is the header compilable? |
| 18285 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 18286 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 18287 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18288 | /* confdefs.h. */ |
| 18289 | _ACEOF |
| 18290 | cat confdefs.h >>conftest.$ac_ext |
| 18291 | cat >>conftest.$ac_ext <<_ACEOF |
| 18292 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18293 | $ac_includes_default |
| 18294 | #include <wchar.h> |
| 18295 | _ACEOF |
| 18296 | rm -f conftest.$ac_objext |
| 18297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18298 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18299 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18300 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18301 | rm -f conftest.er1 |
| 18302 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18304 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18305 | { ac_try='test -z "$ac_c_werror_flag" |
| 18306 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18308 | (eval $ac_try) 2>&5 |
| 18309 | ac_status=$? |
| 18310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18311 | (exit $ac_status); }; } && |
| 18312 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18314 | (eval $ac_try) 2>&5 |
| 18315 | ac_status=$? |
| 18316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18317 | (exit $ac_status); }; }; then |
| 18318 | ac_header_compiler=yes |
| 18319 | else |
| 18320 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18321 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18322 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18323 | ac_header_compiler=no |
| 18324 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18325 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18326 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 18327 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 18328 | |
| 18329 | # Is the header present? |
| 18330 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 18331 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 18332 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18333 | /* confdefs.h. */ |
| 18334 | _ACEOF |
| 18335 | cat confdefs.h >>conftest.$ac_ext |
| 18336 | cat >>conftest.$ac_ext <<_ACEOF |
| 18337 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18338 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18339 | _ACEOF |
| 18340 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 18341 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 18342 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18343 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18344 | rm -f conftest.er1 |
| 18345 | cat conftest.err >&5 |
| 18346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18347 | (exit $ac_status); } >/dev/null; then |
| 18348 | if test -s conftest.err; then |
| 18349 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18350 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18351 | else |
| 18352 | ac_cpp_err= |
| 18353 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18354 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18355 | ac_cpp_err=yes |
| 18356 | fi |
| 18357 | if test -z "$ac_cpp_err"; then |
| 18358 | ac_header_preproc=yes |
| 18359 | else |
| 18360 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18362 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18363 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18364 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18365 | rm -f conftest.err conftest.$ac_ext |
| 18366 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 18367 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 18368 | |
| 18369 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18370 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 18371 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18372 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 18373 | 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] | 18374 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 18375 | echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;} |
| 18376 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 18377 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18378 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 18379 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 18380 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18381 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 18382 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 18383 | { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 18384 | echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 18385 | { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 18386 | 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] | 18387 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 18388 | 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] | 18389 | { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 18390 | 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] | 18391 | ( |
| 18392 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 18393 | ## ------------------------------------------------ ## |
| 18394 | ## Report this to http://www.python.org/python-bugs ## |
| 18395 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18396 | _ASBOX |
| 18397 | ) | |
| 18398 | sed "s/^/$as_me: WARNING: /" >&2 |
| 18399 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18400 | esac |
| 18401 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 18402 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 18403 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 18404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18405 | else |
| 18406 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18407 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18408 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 18409 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 18410 | |
| 18411 | fi |
| 18412 | if test $ac_cv_header_wchar_h = yes; then |
| 18413 | |
| 18414 | |
| 18415 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18416 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18417 | _ACEOF |
| 18418 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 18419 | wchar_h="yes" |
| 18420 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18421 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18422 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18423 | |
| 18424 | fi |
| 18425 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18426 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18427 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18428 | # determine wchar_t size |
| 18429 | if test "$wchar_h" = yes |
| 18430 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18431 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 18432 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 18433 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 18434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18435 | else |
| 18436 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18437 | /* confdefs.h. */ |
| 18438 | _ACEOF |
| 18439 | cat confdefs.h >>conftest.$ac_ext |
| 18440 | cat >>conftest.$ac_ext <<_ACEOF |
| 18441 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18442 | #include <wchar.h> |
| 18443 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18444 | int |
| 18445 | main () |
| 18446 | { |
| 18447 | if ((wchar_t *) 0) |
| 18448 | return 0; |
| 18449 | if (sizeof (wchar_t)) |
| 18450 | return 0; |
| 18451 | ; |
| 18452 | return 0; |
| 18453 | } |
| 18454 | _ACEOF |
| 18455 | rm -f conftest.$ac_objext |
| 18456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18457 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18458 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18459 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18460 | rm -f conftest.er1 |
| 18461 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18463 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18464 | { ac_try='test -z "$ac_c_werror_flag" |
| 18465 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18467 | (eval $ac_try) 2>&5 |
| 18468 | ac_status=$? |
| 18469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18470 | (exit $ac_status); }; } && |
| 18471 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18473 | (eval $ac_try) 2>&5 |
| 18474 | ac_status=$? |
| 18475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18476 | (exit $ac_status); }; }; then |
| 18477 | ac_cv_type_wchar_t=yes |
| 18478 | else |
| 18479 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18480 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18481 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18482 | ac_cv_type_wchar_t=no |
| 18483 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18484 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18485 | fi |
| 18486 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 18487 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 18488 | |
| 18489 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 18490 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 18491 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 18492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18493 | else |
| 18494 | if test "$ac_cv_type_wchar_t" = yes; then |
| 18495 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 18496 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 18497 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 18498 | # This bug is HP SR number 8606223364. |
| 18499 | if test "$cross_compiling" = yes; then |
| 18500 | # Depending upon the size, compute the lo and hi bounds. |
| 18501 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18502 | /* confdefs.h. */ |
| 18503 | _ACEOF |
| 18504 | cat confdefs.h >>conftest.$ac_ext |
| 18505 | cat >>conftest.$ac_ext <<_ACEOF |
| 18506 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18507 | #include <wchar.h> |
| 18508 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18509 | int |
| 18510 | main () |
| 18511 | { |
| 18512 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 18513 | test_array [0] = 0 |
| 18514 | |
| 18515 | ; |
| 18516 | return 0; |
| 18517 | } |
| 18518 | _ACEOF |
| 18519 | rm -f conftest.$ac_objext |
| 18520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18521 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18522 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18523 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18524 | rm -f conftest.er1 |
| 18525 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18527 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18528 | { ac_try='test -z "$ac_c_werror_flag" |
| 18529 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18531 | (eval $ac_try) 2>&5 |
| 18532 | ac_status=$? |
| 18533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18534 | (exit $ac_status); }; } && |
| 18535 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18537 | (eval $ac_try) 2>&5 |
| 18538 | ac_status=$? |
| 18539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18540 | (exit $ac_status); }; }; then |
| 18541 | ac_lo=0 ac_mid=0 |
| 18542 | while :; do |
| 18543 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18544 | /* confdefs.h. */ |
| 18545 | _ACEOF |
| 18546 | cat confdefs.h >>conftest.$ac_ext |
| 18547 | cat >>conftest.$ac_ext <<_ACEOF |
| 18548 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18549 | #include <wchar.h> |
| 18550 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18551 | int |
| 18552 | main () |
| 18553 | { |
| 18554 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 18555 | test_array [0] = 0 |
| 18556 | |
| 18557 | ; |
| 18558 | return 0; |
| 18559 | } |
| 18560 | _ACEOF |
| 18561 | rm -f conftest.$ac_objext |
| 18562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18563 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18564 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18566 | rm -f conftest.er1 |
| 18567 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18569 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18570 | { ac_try='test -z "$ac_c_werror_flag" |
| 18571 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18573 | (eval $ac_try) 2>&5 |
| 18574 | ac_status=$? |
| 18575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18576 | (exit $ac_status); }; } && |
| 18577 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18579 | (eval $ac_try) 2>&5 |
| 18580 | ac_status=$? |
| 18581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18582 | (exit $ac_status); }; }; then |
| 18583 | ac_hi=$ac_mid; break |
| 18584 | else |
| 18585 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18586 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18587 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18588 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18589 | if test $ac_lo -le $ac_mid; then |
| 18590 | ac_lo= ac_hi= |
| 18591 | break |
| 18592 | fi |
| 18593 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18594 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18595 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18596 | done |
| 18597 | else |
| 18598 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18599 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18600 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18601 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18602 | /* confdefs.h. */ |
| 18603 | _ACEOF |
| 18604 | cat confdefs.h >>conftest.$ac_ext |
| 18605 | cat >>conftest.$ac_ext <<_ACEOF |
| 18606 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18607 | #include <wchar.h> |
| 18608 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18609 | int |
| 18610 | main () |
| 18611 | { |
| 18612 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 18613 | test_array [0] = 0 |
| 18614 | |
| 18615 | ; |
| 18616 | return 0; |
| 18617 | } |
| 18618 | _ACEOF |
| 18619 | rm -f conftest.$ac_objext |
| 18620 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18621 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18622 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18623 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18624 | rm -f conftest.er1 |
| 18625 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18627 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18628 | { ac_try='test -z "$ac_c_werror_flag" |
| 18629 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18631 | (eval $ac_try) 2>&5 |
| 18632 | ac_status=$? |
| 18633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18634 | (exit $ac_status); }; } && |
| 18635 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18637 | (eval $ac_try) 2>&5 |
| 18638 | ac_status=$? |
| 18639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18640 | (exit $ac_status); }; }; then |
| 18641 | ac_hi=-1 ac_mid=-1 |
| 18642 | while :; do |
| 18643 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18644 | /* confdefs.h. */ |
| 18645 | _ACEOF |
| 18646 | cat confdefs.h >>conftest.$ac_ext |
| 18647 | cat >>conftest.$ac_ext <<_ACEOF |
| 18648 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18649 | #include <wchar.h> |
| 18650 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18651 | int |
| 18652 | main () |
| 18653 | { |
| 18654 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 18655 | test_array [0] = 0 |
| 18656 | |
| 18657 | ; |
| 18658 | return 0; |
| 18659 | } |
| 18660 | _ACEOF |
| 18661 | rm -f conftest.$ac_objext |
| 18662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18663 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18664 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18665 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18666 | rm -f conftest.er1 |
| 18667 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18669 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18670 | { ac_try='test -z "$ac_c_werror_flag" |
| 18671 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18673 | (eval $ac_try) 2>&5 |
| 18674 | ac_status=$? |
| 18675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18676 | (exit $ac_status); }; } && |
| 18677 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18679 | (eval $ac_try) 2>&5 |
| 18680 | ac_status=$? |
| 18681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18682 | (exit $ac_status); }; }; then |
| 18683 | ac_lo=$ac_mid; break |
| 18684 | else |
| 18685 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18686 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18687 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18688 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18689 | if test $ac_mid -le $ac_hi; then |
| 18690 | ac_lo= ac_hi= |
| 18691 | break |
| 18692 | fi |
| 18693 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18694 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18695 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18696 | done |
| 18697 | else |
| 18698 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18699 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18700 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18701 | ac_lo= ac_hi= |
| 18702 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18703 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | # Binary search between lo and hi bounds. |
| 18707 | while test "x$ac_lo" != "x$ac_hi"; do |
| 18708 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 18709 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18710 | /* confdefs.h. */ |
| 18711 | _ACEOF |
| 18712 | cat confdefs.h >>conftest.$ac_ext |
| 18713 | cat >>conftest.$ac_ext <<_ACEOF |
| 18714 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18715 | #include <wchar.h> |
| 18716 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18717 | int |
| 18718 | main () |
| 18719 | { |
| 18720 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 18721 | test_array [0] = 0 |
| 18722 | |
| 18723 | ; |
| 18724 | return 0; |
| 18725 | } |
| 18726 | _ACEOF |
| 18727 | rm -f conftest.$ac_objext |
| 18728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18729 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18730 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18731 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18732 | rm -f conftest.er1 |
| 18733 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18735 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18736 | { ac_try='test -z "$ac_c_werror_flag" |
| 18737 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18739 | (eval $ac_try) 2>&5 |
| 18740 | ac_status=$? |
| 18741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18742 | (exit $ac_status); }; } && |
| 18743 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18745 | (eval $ac_try) 2>&5 |
| 18746 | ac_status=$? |
| 18747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18748 | (exit $ac_status); }; }; then |
| 18749 | ac_hi=$ac_mid |
| 18750 | else |
| 18751 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18752 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18753 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18754 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 18755 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18756 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18757 | done |
| 18758 | case $ac_lo in |
| 18759 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18760 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 18761 | See \`config.log' for more details." >&5 |
| 18762 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 18763 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18764 | { (exit 1); exit 1; }; } ;; |
| 18765 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18766 | else |
| 18767 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18768 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 18769 | See \`config.log' for more details." >&5 |
| 18770 | echo "$as_me: error: cannot run test program while cross compiling |
| 18771 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18772 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18773 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18774 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18775 | /* confdefs.h. */ |
| 18776 | _ACEOF |
| 18777 | cat confdefs.h >>conftest.$ac_ext |
| 18778 | cat >>conftest.$ac_ext <<_ACEOF |
| 18779 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18780 | #include <wchar.h> |
| 18781 | |
| 18782 | long longval () { return (long) (sizeof (wchar_t)); } |
| 18783 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18784 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18785 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18786 | int |
| 18787 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18788 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18789 | |
| 18790 | FILE *f = fopen ("conftest.val", "w"); |
| 18791 | if (! f) |
| 18792 | exit (1); |
| 18793 | if (((long) (sizeof (wchar_t))) < 0) |
| 18794 | { |
| 18795 | long i = longval (); |
| 18796 | if (i != ((long) (sizeof (wchar_t)))) |
| 18797 | exit (1); |
| 18798 | fprintf (f, "%ld\n", i); |
| 18799 | } |
| 18800 | else |
| 18801 | { |
| 18802 | unsigned long i = ulongval (); |
| 18803 | if (i != ((long) (sizeof (wchar_t)))) |
| 18804 | exit (1); |
| 18805 | fprintf (f, "%lu\n", i); |
| 18806 | } |
| 18807 | exit (ferror (f) || fclose (f) != 0); |
| 18808 | |
| 18809 | ; |
| 18810 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18811 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18812 | _ACEOF |
| 18813 | rm -f conftest$ac_exeext |
| 18814 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18815 | (eval $ac_link) 2>&5 |
| 18816 | ac_status=$? |
| 18817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18818 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18820 | (eval $ac_try) 2>&5 |
| 18821 | ac_status=$? |
| 18822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18823 | (exit $ac_status); }; }; then |
| 18824 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18825 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18826 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18827 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18828 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18829 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18830 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18831 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 18832 | See \`config.log' for more details." >&5 |
| 18833 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 18834 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18835 | { (exit 1); exit 1; }; } |
| 18836 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18837 | 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] | 18838 | fi |
| 18839 | fi |
| 18840 | rm -f conftest.val |
| 18841 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18842 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18843 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 18844 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18845 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 18846 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 18847 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18848 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18849 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18850 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18851 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18852 | fi |
| 18853 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18854 | echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 18855 | echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6 |
| 18856 | have_ucs4_tcl=no |
| 18857 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18858 | /* confdefs.h. */ |
| 18859 | _ACEOF |
| 18860 | cat confdefs.h >>conftest.$ac_ext |
| 18861 | cat >>conftest.$ac_ext <<_ACEOF |
| 18862 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18863 | |
| 18864 | #include <tcl.h> |
| 18865 | #if TCL_UTF_MAX != 6 |
| 18866 | # error "NOT UCS4_TCL" |
| 18867 | #endif |
| 18868 | int |
| 18869 | main () |
| 18870 | { |
| 18871 | |
| 18872 | ; |
| 18873 | return 0; |
| 18874 | } |
| 18875 | _ACEOF |
| 18876 | rm -f conftest.$ac_objext |
| 18877 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18878 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18879 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18880 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18881 | rm -f conftest.er1 |
| 18882 | cat conftest.err >&5 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18884 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18885 | { ac_try='test -z "$ac_c_werror_flag" |
| 18886 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18888 | (eval $ac_try) 2>&5 |
| 18889 | ac_status=$? |
| 18890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18891 | (exit $ac_status); }; } && |
| 18892 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18894 | (eval $ac_try) 2>&5 |
| 18895 | ac_status=$? |
| 18896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18897 | (exit $ac_status); }; }; then |
| 18898 | |
| 18899 | |
| 18900 | cat >>confdefs.h <<\_ACEOF |
| 18901 | #define HAVE_UCS4_TCL 1 |
| 18902 | _ACEOF |
| 18903 | |
| 18904 | have_ucs4_tcl=yes |
| 18905 | |
| 18906 | else |
| 18907 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18908 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18909 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18910 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18911 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18912 | echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 18913 | echo "${ECHO_T}$have_ucs4_tcl" >&6 |
| 18914 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18915 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 18916 | if test "$wchar_h" = yes |
| 18917 | then |
| 18918 | # check whether wchar_t is signed or not |
| 18919 | echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 18920 | echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6 |
| 18921 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
| 18922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18923 | else |
| 18924 | |
| 18925 | if test "$cross_compiling" = yes; then |
| 18926 | ac_cv_wchar_t_signed=yes |
| 18927 | else |
| 18928 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18929 | /* confdefs.h. */ |
| 18930 | _ACEOF |
| 18931 | cat confdefs.h >>conftest.$ac_ext |
| 18932 | cat >>conftest.$ac_ext <<_ACEOF |
| 18933 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 18934 | |
| 18935 | #include <wchar.h> |
| 18936 | int main() |
| 18937 | { |
| 18938 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 1 : 0); |
| 18939 | } |
| 18940 | |
| 18941 | _ACEOF |
| 18942 | rm -f conftest$ac_exeext |
| 18943 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 18944 | (eval $ac_link) 2>&5 |
| 18945 | ac_status=$? |
| 18946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18947 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 18948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18949 | (eval $ac_try) 2>&5 |
| 18950 | ac_status=$? |
| 18951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18952 | (exit $ac_status); }; }; then |
| 18953 | ac_cv_wchar_t_signed=yes |
| 18954 | else |
| 18955 | echo "$as_me: program exited with status $ac_status" >&5 |
| 18956 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18957 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18958 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 18959 | ( exit $ac_status ) |
| 18960 | ac_cv_wchar_t_signed=no |
| 18961 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18962 | 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] | 18963 | fi |
| 18964 | fi |
| 18965 | |
| 18966 | echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 18967 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6 |
| 18968 | fi |
| 18969 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18970 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 18971 | 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] | 18972 | # Check whether --enable-unicode or --disable-unicode was given. |
| 18973 | if test "${enable_unicode+set}" = set; then |
| 18974 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18975 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18976 | else |
| 18977 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18978 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18979 | |
| 18980 | if test $enable_unicode = yes |
| 18981 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 18982 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 18983 | case "$have_ucs4_tcl" in |
| 18984 | yes) enable_unicode="ucs4" |
| 18985 | ;; |
| 18986 | *) enable_unicode="ucs2" |
| 18987 | ;; |
| 18988 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18989 | fi |
| 18990 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 18991 | |
| 18992 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18993 | case "$enable_unicode" in |
| 18994 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18995 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18996 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18997 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 18998 | |
| 18999 | ;; |
| 19000 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19001 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19002 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19003 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19004 | |
| 19005 | ;; |
| 19006 | esac |
| 19007 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19008 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19009 | |
| 19010 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 19011 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19012 | if test "$enable_unicode" = "no" |
| 19013 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 19014 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19015 | echo "$as_me:$LINENO: result: not used" >&5 |
| 19016 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19017 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 19018 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19019 | |
| 19020 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19021 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19022 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19023 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 19024 | |
| 19025 | # wchar_t is only usable if it maps to an unsigned type |
| 19026 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 19027 | -a "$ac_cv_wchar_t_signed" = "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19028 | then |
| 19029 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19030 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19031 | cat >>confdefs.h <<\_ACEOF |
| 19032 | #define HAVE_USABLE_WCHAR_T 1 |
| 19033 | _ACEOF |
| 19034 | |
| 19035 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19036 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19037 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19038 | |
| 19039 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 19040 | then |
| 19041 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19042 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19043 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19044 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19045 | |
| 19046 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 19047 | then |
| 19048 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19049 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19050 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19051 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19052 | |
| 19053 | else |
| 19054 | PY_UNICODE_TYPE="no type found" |
| 19055 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19056 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 19057 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19058 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19059 | |
| 19060 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19061 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 19062 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 19063 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 19064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19065 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19066 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 19067 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19068 | /* confdefs.h. */ |
| 19069 | _ACEOF |
| 19070 | cat confdefs.h >>conftest.$ac_ext |
| 19071 | cat >>conftest.$ac_ext <<_ACEOF |
| 19072 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19073 | #include <sys/types.h> |
| 19074 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19075 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19076 | int |
| 19077 | main () |
| 19078 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19079 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 19080 | bogus endian macros |
| 19081 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19082 | |
| 19083 | ; |
| 19084 | return 0; |
| 19085 | } |
| 19086 | _ACEOF |
| 19087 | rm -f conftest.$ac_objext |
| 19088 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19089 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19090 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19091 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19092 | rm -f conftest.er1 |
| 19093 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19095 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19096 | { ac_try='test -z "$ac_c_werror_flag" |
| 19097 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19099 | (eval $ac_try) 2>&5 |
| 19100 | ac_status=$? |
| 19101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19102 | (exit $ac_status); }; } && |
| 19103 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19105 | (eval $ac_try) 2>&5 |
| 19106 | ac_status=$? |
| 19107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19108 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19109 | # 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] | 19110 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19111 | /* confdefs.h. */ |
| 19112 | _ACEOF |
| 19113 | cat confdefs.h >>conftest.$ac_ext |
| 19114 | cat >>conftest.$ac_ext <<_ACEOF |
| 19115 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19116 | #include <sys/types.h> |
| 19117 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19118 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19119 | int |
| 19120 | main () |
| 19121 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19122 | #if BYTE_ORDER != BIG_ENDIAN |
| 19123 | not big endian |
| 19124 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19125 | |
| 19126 | ; |
| 19127 | return 0; |
| 19128 | } |
| 19129 | _ACEOF |
| 19130 | rm -f conftest.$ac_objext |
| 19131 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19132 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19133 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19134 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19135 | rm -f conftest.er1 |
| 19136 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19138 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19139 | { ac_try='test -z "$ac_c_werror_flag" |
| 19140 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19142 | (eval $ac_try) 2>&5 |
| 19143 | ac_status=$? |
| 19144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19145 | (exit $ac_status); }; } && |
| 19146 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19148 | (eval $ac_try) 2>&5 |
| 19149 | ac_status=$? |
| 19150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19151 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19152 | ac_cv_c_bigendian=yes |
| 19153 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19154 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19155 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19156 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19157 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19158 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19159 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19160 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19161 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19162 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19163 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19164 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19165 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19166 | # 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] | 19167 | ac_cv_c_bigendian=unknown |
| 19168 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19169 | /* confdefs.h. */ |
| 19170 | _ACEOF |
| 19171 | cat confdefs.h >>conftest.$ac_ext |
| 19172 | cat >>conftest.$ac_ext <<_ACEOF |
| 19173 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19174 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 19175 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 19176 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 19177 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 19178 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 19179 | 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] | 19180 | int |
| 19181 | main () |
| 19182 | { |
| 19183 | _ascii (); _ebcdic (); |
| 19184 | ; |
| 19185 | return 0; |
| 19186 | } |
| 19187 | _ACEOF |
| 19188 | rm -f conftest.$ac_objext |
| 19189 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19190 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19191 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19192 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19193 | rm -f conftest.er1 |
| 19194 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19196 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19197 | { ac_try='test -z "$ac_c_werror_flag" |
| 19198 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19200 | (eval $ac_try) 2>&5 |
| 19201 | ac_status=$? |
| 19202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19203 | (exit $ac_status); }; } && |
| 19204 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19206 | (eval $ac_try) 2>&5 |
| 19207 | ac_status=$? |
| 19208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19209 | (exit $ac_status); }; }; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19210 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19211 | ac_cv_c_bigendian=yes |
| 19212 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19213 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19214 | if test "$ac_cv_c_bigendian" = unknown; then |
| 19215 | ac_cv_c_bigendian=no |
| 19216 | else |
| 19217 | # finding both strings is unlikely to happen, but who knows? |
| 19218 | ac_cv_c_bigendian=unknown |
| 19219 | fi |
| 19220 | fi |
| 19221 | else |
| 19222 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19223 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19224 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19225 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19226 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19227 | else |
| 19228 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19229 | /* confdefs.h. */ |
| 19230 | _ACEOF |
| 19231 | cat confdefs.h >>conftest.$ac_ext |
| 19232 | cat >>conftest.$ac_ext <<_ACEOF |
| 19233 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19234 | int |
| 19235 | main () |
| 19236 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19237 | /* Are we little or big endian? From Harbison&Steele. */ |
| 19238 | union |
| 19239 | { |
| 19240 | long l; |
| 19241 | char c[sizeof (long)]; |
| 19242 | } u; |
| 19243 | u.l = 1; |
| 19244 | exit (u.c[sizeof (long) - 1] == 1); |
| 19245 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19246 | _ACEOF |
| 19247 | rm -f conftest$ac_exeext |
| 19248 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19249 | (eval $ac_link) 2>&5 |
| 19250 | ac_status=$? |
| 19251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19252 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19254 | (eval $ac_try) 2>&5 |
| 19255 | ac_status=$? |
| 19256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19257 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19258 | ac_cv_c_bigendian=no |
| 19259 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19260 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19261 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19262 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19263 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19264 | ( exit $ac_status ) |
| 19265 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19266 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19267 | 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] | 19268 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19269 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19271 | fi |
| 19272 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 19273 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 19274 | case $ac_cv_c_bigendian in |
| 19275 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19276 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19277 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19278 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19279 | _ACEOF |
| 19280 | ;; |
| 19281 | no) |
| 19282 | ;; |
| 19283 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19284 | { { echo "$as_me:$LINENO: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19285 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19286 | echo "$as_me: 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" >&2;} |
| 19288 | { (exit 1); exit 1; }; } ;; |
| 19289 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19290 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19291 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19292 | # Check whether right shifting a negative integer extends the sign bit |
| 19293 | # 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] | 19294 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 19295 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 19296 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 19297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19298 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19299 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19300 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 19301 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19302 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19303 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19304 | /* confdefs.h. */ |
| 19305 | _ACEOF |
| 19306 | cat confdefs.h >>conftest.$ac_ext |
| 19307 | cat >>conftest.$ac_ext <<_ACEOF |
| 19308 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19309 | |
| 19310 | int main() |
| 19311 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19312 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19313 | } |
| 19314 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19315 | _ACEOF |
| 19316 | rm -f conftest$ac_exeext |
| 19317 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19318 | (eval $ac_link) 2>&5 |
| 19319 | ac_status=$? |
| 19320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19321 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19323 | (eval $ac_try) 2>&5 |
| 19324 | ac_status=$? |
| 19325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19326 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19327 | ac_cv_rshift_extends_sign=yes |
| 19328 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19329 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19330 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19331 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19332 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19333 | ( exit $ac_status ) |
| 19334 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19335 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19336 | 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] | 19337 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19338 | fi |
| 19339 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19340 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 19341 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 19342 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19343 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19344 | |
| 19345 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19346 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19347 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19348 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19349 | fi |
| 19350 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19351 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19352 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 19353 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 19354 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 19355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19356 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19357 | |
| 19358 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19359 | /* confdefs.h. */ |
| 19360 | _ACEOF |
| 19361 | cat confdefs.h >>conftest.$ac_ext |
| 19362 | cat >>conftest.$ac_ext <<_ACEOF |
| 19363 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19364 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19365 | int |
| 19366 | main () |
| 19367 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19368 | |
| 19369 | FILE *f = fopen("/dev/null", "r"); |
| 19370 | flockfile(f); |
| 19371 | getc_unlocked(f); |
| 19372 | funlockfile(f); |
| 19373 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19374 | ; |
| 19375 | return 0; |
| 19376 | } |
| 19377 | _ACEOF |
| 19378 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19379 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19380 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19381 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19382 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19383 | rm -f conftest.er1 |
| 19384 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19386 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19387 | { ac_try='test -z "$ac_c_werror_flag" |
| 19388 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19390 | (eval $ac_try) 2>&5 |
| 19391 | ac_status=$? |
| 19392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19393 | (exit $ac_status); }; } && |
| 19394 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19396 | (eval $ac_try) 2>&5 |
| 19397 | ac_status=$? |
| 19398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19399 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19400 | ac_cv_have_getc_unlocked=yes |
| 19401 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19402 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19403 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19404 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19405 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19406 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19407 | rm -f conftest.err conftest.$ac_objext \ |
| 19408 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19409 | fi |
| 19410 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19411 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 19412 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19413 | if test "$ac_cv_have_getc_unlocked" = yes |
| 19414 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19415 | |
| 19416 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19417 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19418 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 19419 | |
| 19420 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 19421 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19422 | # check for readline 2.1 |
| 19423 | echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| 19424 | echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6 |
| 19425 | if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then |
| 19426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19427 | else |
| 19428 | ac_check_lib_save_LIBS=$LIBS |
| 19429 | LIBS="-lreadline -ltermcap $LIBS" |
| 19430 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19431 | /* confdefs.h. */ |
| 19432 | _ACEOF |
| 19433 | cat confdefs.h >>conftest.$ac_ext |
| 19434 | cat >>conftest.$ac_ext <<_ACEOF |
| 19435 | /* end confdefs.h. */ |
| 19436 | |
| 19437 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 19438 | #ifdef __cplusplus |
| 19439 | extern "C" |
| 19440 | #endif |
| 19441 | /* We use char because int might match the return type of a gcc2 |
| 19442 | builtin and then its argument prototype would still apply. */ |
| 19443 | char rl_callback_handler_install (); |
| 19444 | int |
| 19445 | main () |
| 19446 | { |
| 19447 | rl_callback_handler_install (); |
| 19448 | ; |
| 19449 | return 0; |
| 19450 | } |
| 19451 | _ACEOF |
| 19452 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19453 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19454 | (eval $ac_link) 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19455 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19456 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19457 | rm -f conftest.er1 |
| 19458 | cat conftest.err >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19460 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19461 | { ac_try='test -z "$ac_c_werror_flag" |
| 19462 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19464 | (eval $ac_try) 2>&5 |
| 19465 | ac_status=$? |
| 19466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19467 | (exit $ac_status); }; } && |
| 19468 | { ac_try='test -s conftest$ac_exeext' |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19470 | (eval $ac_try) 2>&5 |
| 19471 | ac_status=$? |
| 19472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19473 | (exit $ac_status); }; }; then |
| 19474 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 19475 | else |
| 19476 | echo "$as_me: failed program was:" >&5 |
| 19477 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19478 | |
| 19479 | ac_cv_lib_readline_rl_callback_handler_install=no |
| 19480 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19481 | rm -f conftest.err conftest.$ac_objext \ |
| 19482 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19483 | LIBS=$ac_check_lib_save_LIBS |
| 19484 | fi |
| 19485 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 19486 | echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6 |
| 19487 | if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then |
| 19488 | |
| 19489 | cat >>confdefs.h <<\_ACEOF |
| 19490 | #define HAVE_RL_CALLBACK 1 |
| 19491 | _ACEOF |
| 19492 | |
| 19493 | fi |
| 19494 | |
| 19495 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 19496 | # check for readline 2.2 |
| 19497 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19498 | /* confdefs.h. */ |
| 19499 | _ACEOF |
| 19500 | cat confdefs.h >>conftest.$ac_ext |
| 19501 | cat >>conftest.$ac_ext <<_ACEOF |
| 19502 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 19503 | #include <readline/readline.h> |
| 19504 | _ACEOF |
| 19505 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 19506 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 19507 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19508 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 19509 | rm -f conftest.er1 |
| 19510 | cat conftest.err >&5 |
| 19511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19512 | (exit $ac_status); } >/dev/null; then |
| 19513 | if test -s conftest.err; then |
| 19514 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19515 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 19516 | else |
| 19517 | ac_cpp_err= |
| 19518 | fi |
| 19519 | else |
| 19520 | ac_cpp_err=yes |
| 19521 | fi |
| 19522 | if test -z "$ac_cpp_err"; then |
| 19523 | have_readline=yes |
| 19524 | else |
| 19525 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19526 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19527 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 19528 | have_readline=no |
| 19529 | fi |
| 19530 | rm -f conftest.err conftest.$ac_ext |
| 19531 | if test $have_readline = yes |
| 19532 | then |
| 19533 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19534 | /* confdefs.h. */ |
| 19535 | _ACEOF |
| 19536 | cat confdefs.h >>conftest.$ac_ext |
| 19537 | cat >>conftest.$ac_ext <<_ACEOF |
| 19538 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 19539 | #include <readline/readline.h> |
| 19540 | |
| 19541 | _ACEOF |
| 19542 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19543 | $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] | 19544 | |
| 19545 | cat >>confdefs.h <<\_ACEOF |
| 19546 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 19547 | _ACEOF |
| 19548 | |
| 19549 | fi |
| 19550 | rm -f conftest* |
| 19551 | |
| 19552 | fi |
| 19553 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19554 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19555 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 19556 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 19557 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 19558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19559 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19560 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19561 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19562 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19563 | /* confdefs.h. */ |
| 19564 | _ACEOF |
| 19565 | cat confdefs.h >>conftest.$ac_ext |
| 19566 | cat >>conftest.$ac_ext <<_ACEOF |
| 19567 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19568 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19569 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19570 | #ifdef __cplusplus |
| 19571 | extern "C" |
| 19572 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19573 | /* 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] | 19574 | builtin and then its argument prototype would still apply. */ |
| 19575 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19576 | int |
| 19577 | main () |
| 19578 | { |
| 19579 | rl_pre_input_hook (); |
| 19580 | ; |
| 19581 | return 0; |
| 19582 | } |
| 19583 | _ACEOF |
| 19584 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19585 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19586 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19587 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19588 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19589 | rm -f conftest.er1 |
| 19590 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19592 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19593 | { ac_try='test -z "$ac_c_werror_flag" |
| 19594 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19596 | (eval $ac_try) 2>&5 |
| 19597 | ac_status=$? |
| 19598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19599 | (exit $ac_status); }; } && |
| 19600 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19602 | (eval $ac_try) 2>&5 |
| 19603 | ac_status=$? |
| 19604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19605 | (exit $ac_status); }; }; then |
| 19606 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19607 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19608 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19610 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19611 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19612 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19613 | rm -f conftest.err conftest.$ac_objext \ |
| 19614 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19615 | LIBS=$ac_check_lib_save_LIBS |
| 19616 | fi |
| 19617 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 19618 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 19619 | 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] | 19620 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19621 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19622 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19623 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19624 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19625 | fi |
| 19626 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19627 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19628 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19629 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 19630 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 19631 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 19632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19633 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19634 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19635 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19636 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19637 | /* confdefs.h. */ |
| 19638 | _ACEOF |
| 19639 | cat confdefs.h >>conftest.$ac_ext |
| 19640 | cat >>conftest.$ac_ext <<_ACEOF |
| 19641 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19642 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19643 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19644 | #ifdef __cplusplus |
| 19645 | extern "C" |
| 19646 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 19647 | /* 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] | 19648 | builtin and then its argument prototype would still apply. */ |
| 19649 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19650 | int |
| 19651 | main () |
| 19652 | { |
| 19653 | rl_completion_matches (); |
| 19654 | ; |
| 19655 | return 0; |
| 19656 | } |
| 19657 | _ACEOF |
| 19658 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19659 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19660 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19661 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19662 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19663 | rm -f conftest.er1 |
| 19664 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19666 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19667 | { ac_try='test -z "$ac_c_werror_flag" |
| 19668 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19670 | (eval $ac_try) 2>&5 |
| 19671 | ac_status=$? |
| 19672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19673 | (exit $ac_status); }; } && |
| 19674 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19676 | (eval $ac_try) 2>&5 |
| 19677 | ac_status=$? |
| 19678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19679 | (exit $ac_status); }; }; then |
| 19680 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19681 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19682 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19684 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19685 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19686 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19687 | rm -f conftest.err conftest.$ac_objext \ |
| 19688 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19689 | LIBS=$ac_check_lib_save_LIBS |
| 19690 | fi |
| 19691 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 19692 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 19693 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19694 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19695 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19696 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19697 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19698 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 19699 | fi |
| 19700 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 19701 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19702 | # also in readline 4.2 |
| 19703 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19704 | /* confdefs.h. */ |
| 19705 | _ACEOF |
| 19706 | cat confdefs.h >>conftest.$ac_ext |
| 19707 | cat >>conftest.$ac_ext <<_ACEOF |
| 19708 | /* end confdefs.h. */ |
| 19709 | #include <readline/readline.h> |
| 19710 | _ACEOF |
| 19711 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 19712 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 19713 | ac_status=$? |
| 19714 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19715 | rm -f conftest.er1 |
| 19716 | cat conftest.err >&5 |
| 19717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19718 | (exit $ac_status); } >/dev/null; then |
| 19719 | if test -s conftest.err; then |
| 19720 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19721 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19722 | else |
| 19723 | ac_cpp_err= |
| 19724 | fi |
| 19725 | else |
| 19726 | ac_cpp_err=yes |
| 19727 | fi |
| 19728 | if test -z "$ac_cpp_err"; then |
| 19729 | have_readline=yes |
| 19730 | else |
| 19731 | echo "$as_me: failed program was:" >&5 |
| 19732 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19733 | |
| 19734 | have_readline=no |
| 19735 | fi |
| 19736 | rm -f conftest.err conftest.$ac_ext |
| 19737 | if test $have_readline = yes |
| 19738 | then |
| 19739 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19740 | /* confdefs.h. */ |
| 19741 | _ACEOF |
| 19742 | cat confdefs.h >>conftest.$ac_ext |
| 19743 | cat >>conftest.$ac_ext <<_ACEOF |
| 19744 | /* end confdefs.h. */ |
| 19745 | #include <readline/readline.h> |
| 19746 | |
| 19747 | _ACEOF |
| 19748 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 19749 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| 19750 | |
| 19751 | cat >>confdefs.h <<\_ACEOF |
| 19752 | #define HAVE_RL_CATCH_SIGNAL 1 |
| 19753 | _ACEOF |
| 19754 | |
| 19755 | fi |
| 19756 | rm -f conftest* |
| 19757 | |
| 19758 | fi |
| 19759 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19760 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 19761 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 19762 | if test "${ac_cv_broken_nice+set}" = set; then |
| 19763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19764 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19765 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19766 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 19767 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19768 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19769 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19770 | /* confdefs.h. */ |
| 19771 | _ACEOF |
| 19772 | cat confdefs.h >>conftest.$ac_ext |
| 19773 | cat >>conftest.$ac_ext <<_ACEOF |
| 19774 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19775 | |
| 19776 | int main() |
| 19777 | { |
| 19778 | int val1 = nice(1); |
| 19779 | if (val1 != -1 && val1 == nice(2)) |
| 19780 | exit(0); |
| 19781 | exit(1); |
| 19782 | } |
| 19783 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19784 | _ACEOF |
| 19785 | rm -f conftest$ac_exeext |
| 19786 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19787 | (eval $ac_link) 2>&5 |
| 19788 | ac_status=$? |
| 19789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19790 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19792 | (eval $ac_try) 2>&5 |
| 19793 | ac_status=$? |
| 19794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19795 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19796 | ac_cv_broken_nice=yes |
| 19797 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19798 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19799 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19801 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19802 | ( exit $ac_status ) |
| 19803 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19804 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19805 | 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] | 19806 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19807 | fi |
| 19808 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19809 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 19810 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19811 | if test "$ac_cv_broken_nice" = yes |
| 19812 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19813 | |
| 19814 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19815 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19816 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 19817 | |
| 19818 | fi |
| 19819 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 19820 | echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 19821 | echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6 |
| 19822 | if test "$cross_compiling" = yes; then |
| 19823 | ac_cv_broken_poll=no |
| 19824 | else |
| 19825 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 19826 | /* confdefs.h. */ |
| 19827 | _ACEOF |
| 19828 | cat confdefs.h >>conftest.$ac_ext |
| 19829 | cat >>conftest.$ac_ext <<_ACEOF |
| 19830 | /* end confdefs.h. */ |
| 19831 | |
| 19832 | #include <poll.h> |
| 19833 | |
| 19834 | int main (void) |
| 19835 | { |
| 19836 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
| 19837 | |
| 19838 | close (42); |
| 19839 | |
| 19840 | int poll_test = poll (&poll_struct, 1, 0); |
| 19841 | |
| 19842 | if (poll_test < 0) |
| 19843 | { |
| 19844 | exit(0); |
| 19845 | } |
| 19846 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
| 19847 | { |
| 19848 | exit(0); |
| 19849 | } |
| 19850 | else |
| 19851 | { |
| 19852 | exit(1); |
| 19853 | } |
| 19854 | } |
| 19855 | |
| 19856 | _ACEOF |
| 19857 | rm -f conftest$ac_exeext |
| 19858 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19859 | (eval $ac_link) 2>&5 |
| 19860 | ac_status=$? |
| 19861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19862 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19864 | (eval $ac_try) 2>&5 |
| 19865 | ac_status=$? |
| 19866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19867 | (exit $ac_status); }; }; then |
| 19868 | ac_cv_broken_poll=yes |
| 19869 | else |
| 19870 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19871 | echo "$as_me: failed program was:" >&5 |
| 19872 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19873 | |
| 19874 | ( exit $ac_status ) |
| 19875 | ac_cv_broken_poll=no |
| 19876 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19877 | 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] | 19878 | fi |
| 19879 | echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 19880 | echo "${ECHO_T}$ac_cv_broken_poll" >&6 |
| 19881 | if test "$ac_cv_broken_poll" = yes |
| 19882 | then |
| 19883 | |
| 19884 | cat >>confdefs.h <<\_ACEOF |
| 19885 | #define HAVE_BROKEN_POLL 1 |
| 19886 | _ACEOF |
| 19887 | |
| 19888 | fi |
| 19889 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19890 | # 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] | 19891 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 19892 | # tzname[] |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19893 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 19894 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 19895 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 19896 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19897 | else |
| 19898 | cat >conftest.$ac_ext <<_ACEOF |
| 19899 | /* confdefs.h. */ |
| 19900 | _ACEOF |
| 19901 | cat confdefs.h >>conftest.$ac_ext |
| 19902 | cat >>conftest.$ac_ext <<_ACEOF |
| 19903 | /* end confdefs.h. */ |
| 19904 | #include <sys/types.h> |
| 19905 | #include <$ac_cv_struct_tm> |
| 19906 | |
| 19907 | |
| 19908 | int |
| 19909 | main () |
| 19910 | { |
| 19911 | static struct tm ac_aggr; |
| 19912 | if (ac_aggr.tm_zone) |
| 19913 | return 0; |
| 19914 | ; |
| 19915 | return 0; |
| 19916 | } |
| 19917 | _ACEOF |
| 19918 | rm -f conftest.$ac_objext |
| 19919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19920 | (eval $ac_compile) 2>conftest.er1 |
| 19921 | ac_status=$? |
| 19922 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19923 | rm -f conftest.er1 |
| 19924 | cat conftest.err >&5 |
| 19925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19926 | (exit $ac_status); } && |
| 19927 | { ac_try='test -z "$ac_c_werror_flag" |
| 19928 | || test ! -s conftest.err' |
| 19929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19930 | (eval $ac_try) 2>&5 |
| 19931 | ac_status=$? |
| 19932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19933 | (exit $ac_status); }; } && |
| 19934 | { ac_try='test -s conftest.$ac_objext' |
| 19935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19936 | (eval $ac_try) 2>&5 |
| 19937 | ac_status=$? |
| 19938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19939 | (exit $ac_status); }; }; then |
| 19940 | ac_cv_member_struct_tm_tm_zone=yes |
| 19941 | else |
| 19942 | echo "$as_me: failed program was:" >&5 |
| 19943 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19944 | |
| 19945 | cat >conftest.$ac_ext <<_ACEOF |
| 19946 | /* confdefs.h. */ |
| 19947 | _ACEOF |
| 19948 | cat confdefs.h >>conftest.$ac_ext |
| 19949 | cat >>conftest.$ac_ext <<_ACEOF |
| 19950 | /* end confdefs.h. */ |
| 19951 | #include <sys/types.h> |
| 19952 | #include <$ac_cv_struct_tm> |
| 19953 | |
| 19954 | |
| 19955 | int |
| 19956 | main () |
| 19957 | { |
| 19958 | static struct tm ac_aggr; |
| 19959 | if (sizeof ac_aggr.tm_zone) |
| 19960 | return 0; |
| 19961 | ; |
| 19962 | return 0; |
| 19963 | } |
| 19964 | _ACEOF |
| 19965 | rm -f conftest.$ac_objext |
| 19966 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 19967 | (eval $ac_compile) 2>conftest.er1 |
| 19968 | ac_status=$? |
| 19969 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19970 | rm -f conftest.er1 |
| 19971 | cat conftest.err >&5 |
| 19972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19973 | (exit $ac_status); } && |
| 19974 | { ac_try='test -z "$ac_c_werror_flag" |
| 19975 | || test ! -s conftest.err' |
| 19976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19977 | (eval $ac_try) 2>&5 |
| 19978 | ac_status=$? |
| 19979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19980 | (exit $ac_status); }; } && |
| 19981 | { ac_try='test -s conftest.$ac_objext' |
| 19982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19983 | (eval $ac_try) 2>&5 |
| 19984 | ac_status=$? |
| 19985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19986 | (exit $ac_status); }; }; then |
| 19987 | ac_cv_member_struct_tm_tm_zone=yes |
| 19988 | else |
| 19989 | echo "$as_me: failed program was:" >&5 |
| 19990 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19991 | |
| 19992 | ac_cv_member_struct_tm_tm_zone=no |
| 19993 | fi |
| 19994 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19995 | fi |
| 19996 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19997 | fi |
| 19998 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 19999 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 20000 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 20001 | |
| 20002 | cat >>confdefs.h <<_ACEOF |
| 20003 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 20004 | _ACEOF |
| 20005 | |
| 20006 | |
| 20007 | fi |
| 20008 | |
| 20009 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 20010 | |
| 20011 | cat >>confdefs.h <<\_ACEOF |
| 20012 | #define HAVE_TM_ZONE 1 |
| 20013 | _ACEOF |
| 20014 | |
| 20015 | else |
| 20016 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 20017 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 20018 | if test "${ac_cv_var_tzname+set}" = set; then |
| 20019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20020 | else |
| 20021 | cat >conftest.$ac_ext <<_ACEOF |
| 20022 | /* confdefs.h. */ |
| 20023 | _ACEOF |
| 20024 | cat confdefs.h >>conftest.$ac_ext |
| 20025 | cat >>conftest.$ac_ext <<_ACEOF |
| 20026 | /* end confdefs.h. */ |
| 20027 | #include <time.h> |
| 20028 | #ifndef tzname /* For SGI. */ |
| 20029 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
| 20030 | #endif |
| 20031 | |
| 20032 | int |
| 20033 | main () |
| 20034 | { |
| 20035 | atoi(*tzname); |
| 20036 | ; |
| 20037 | return 0; |
| 20038 | } |
| 20039 | _ACEOF |
| 20040 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20041 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20042 | (eval $ac_link) 2>conftest.er1 |
| 20043 | ac_status=$? |
| 20044 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20045 | rm -f conftest.er1 |
| 20046 | cat conftest.err >&5 |
| 20047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20048 | (exit $ac_status); } && |
| 20049 | { ac_try='test -z "$ac_c_werror_flag" |
| 20050 | || test ! -s conftest.err' |
| 20051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20052 | (eval $ac_try) 2>&5 |
| 20053 | ac_status=$? |
| 20054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20055 | (exit $ac_status); }; } && |
| 20056 | { ac_try='test -s conftest$ac_exeext' |
| 20057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20058 | (eval $ac_try) 2>&5 |
| 20059 | ac_status=$? |
| 20060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20061 | (exit $ac_status); }; }; then |
| 20062 | ac_cv_var_tzname=yes |
| 20063 | else |
| 20064 | echo "$as_me: failed program was:" >&5 |
| 20065 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20066 | |
| 20067 | ac_cv_var_tzname=no |
| 20068 | fi |
| 20069 | rm -f conftest.err conftest.$ac_objext \ |
| 20070 | conftest$ac_exeext conftest.$ac_ext |
| 20071 | fi |
| 20072 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 20073 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
| 20074 | if test $ac_cv_var_tzname = yes; then |
| 20075 | |
| 20076 | cat >>confdefs.h <<\_ACEOF |
| 20077 | #define HAVE_TZNAME 1 |
| 20078 | _ACEOF |
| 20079 | |
| 20080 | fi |
| 20081 | fi |
| 20082 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 20083 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 20084 | # check tzset(3) exists and works like we expect it to |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20085 | echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 20086 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6 |
| 20087 | if test "${ac_cv_working_tzset+set}" = set; then |
| 20088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20089 | else |
| 20090 | |
| 20091 | if test "$cross_compiling" = yes; then |
| 20092 | ac_cv_working_tzset=no |
| 20093 | else |
| 20094 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20095 | /* confdefs.h. */ |
| 20096 | _ACEOF |
| 20097 | cat confdefs.h >>conftest.$ac_ext |
| 20098 | cat >>conftest.$ac_ext <<_ACEOF |
| 20099 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20100 | |
| 20101 | #include <stdlib.h> |
| 20102 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20103 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20104 | |
| 20105 | #if HAVE_TZNAME |
| 20106 | extern char *tzname[]; |
| 20107 | #endif |
| 20108 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20109 | int main() |
| 20110 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20111 | /* Note that we need to ensure that not only does tzset(3) |
| 20112 | do 'something' with localtime, but it works as documented |
| 20113 | 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] | 20114 | This includes making sure that tzname is set properly if |
| 20115 | tm->tm_zone does not exist since it is the alternative way |
| 20116 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20117 | |
| 20118 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 20119 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20120 | */ |
| 20121 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 20122 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20123 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 20124 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 20125 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20126 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20127 | if (localtime(&groundhogday)->tm_hour != 0) |
| 20128 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20129 | #if HAVE_TZNAME |
| 20130 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 20131 | if (strcmp(tzname[0], "UTC") || |
| 20132 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 20133 | exit(1); |
| 20134 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20135 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 20136 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20137 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20138 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20139 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20140 | #if HAVE_TZNAME |
| 20141 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 20142 | exit(1); |
| 20143 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20144 | |
| 20145 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 20146 | tzset(); |
| 20147 | if (localtime(&groundhogday)->tm_hour != 11) |
| 20148 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20149 | #if HAVE_TZNAME |
| 20150 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 20151 | exit(1); |
| 20152 | #endif |
| 20153 | |
| 20154 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20155 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 20156 | exit(1); |
| 20157 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 20158 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20159 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 20160 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20161 | exit(0); |
| 20162 | } |
| 20163 | |
| 20164 | _ACEOF |
| 20165 | rm -f conftest$ac_exeext |
| 20166 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20167 | (eval $ac_link) 2>&5 |
| 20168 | ac_status=$? |
| 20169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20170 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20172 | (eval $ac_try) 2>&5 |
| 20173 | ac_status=$? |
| 20174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20175 | (exit $ac_status); }; }; then |
| 20176 | ac_cv_working_tzset=yes |
| 20177 | else |
| 20178 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20179 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20180 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20181 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 20182 | ( exit $ac_status ) |
| 20183 | ac_cv_working_tzset=no |
| 20184 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20185 | 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] | 20186 | fi |
| 20187 | fi |
| 20188 | |
| 20189 | echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 20190 | echo "${ECHO_T}$ac_cv_working_tzset" >&6 |
| 20191 | if test "$ac_cv_working_tzset" = yes |
| 20192 | then |
| 20193 | |
| 20194 | cat >>confdefs.h <<\_ACEOF |
| 20195 | #define HAVE_WORKING_TZSET 1 |
| 20196 | _ACEOF |
| 20197 | |
| 20198 | fi |
| 20199 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20200 | # Look for subsecond timestamps in struct stat |
| 20201 | echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 20202 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6 |
| 20203 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 20204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20205 | else |
| 20206 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20207 | /* confdefs.h. */ |
| 20208 | _ACEOF |
| 20209 | cat confdefs.h >>conftest.$ac_ext |
| 20210 | cat >>conftest.$ac_ext <<_ACEOF |
| 20211 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20212 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20213 | int |
| 20214 | main () |
| 20215 | { |
| 20216 | |
| 20217 | struct stat st; |
| 20218 | st.st_mtim.tv_nsec = 1; |
| 20219 | |
| 20220 | ; |
| 20221 | return 0; |
| 20222 | } |
| 20223 | _ACEOF |
| 20224 | rm -f conftest.$ac_objext |
| 20225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20226 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20227 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20228 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20229 | rm -f conftest.er1 |
| 20230 | cat conftest.err >&5 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20232 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20233 | { ac_try='test -z "$ac_c_werror_flag" |
| 20234 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20236 | (eval $ac_try) 2>&5 |
| 20237 | ac_status=$? |
| 20238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20239 | (exit $ac_status); }; } && |
| 20240 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20242 | (eval $ac_try) 2>&5 |
| 20243 | ac_status=$? |
| 20244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20245 | (exit $ac_status); }; }; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 20246 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20247 | else |
| 20248 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20249 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20250 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20251 | ac_cv_stat_tv_nsec=no |
| 20252 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20253 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 20254 | fi |
| 20255 | |
| 20256 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 20257 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6 |
| 20258 | if test "$ac_cv_stat_tv_nsec" = yes |
| 20259 | then |
| 20260 | |
| 20261 | cat >>confdefs.h <<\_ACEOF |
| 20262 | #define HAVE_STAT_TV_NSEC 1 |
| 20263 | _ACEOF |
| 20264 | |
| 20265 | fi |
| 20266 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20267 | # 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] | 20268 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 20269 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 20270 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 20271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20272 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20273 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20274 | /* confdefs.h. */ |
| 20275 | _ACEOF |
| 20276 | cat confdefs.h >>conftest.$ac_ext |
| 20277 | cat >>conftest.$ac_ext <<_ACEOF |
| 20278 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20279 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20280 | int |
| 20281 | main () |
| 20282 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20283 | |
| 20284 | int rtn; |
| 20285 | rtn = mvwdelch(0,0,0); |
| 20286 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20287 | ; |
| 20288 | return 0; |
| 20289 | } |
| 20290 | _ACEOF |
| 20291 | rm -f conftest.$ac_objext |
| 20292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20293 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20294 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20295 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20296 | rm -f conftest.er1 |
| 20297 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20299 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20300 | { ac_try='test -z "$ac_c_werror_flag" |
| 20301 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20303 | (eval $ac_try) 2>&5 |
| 20304 | ac_status=$? |
| 20305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20306 | (exit $ac_status); }; } && |
| 20307 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20309 | (eval $ac_try) 2>&5 |
| 20310 | ac_status=$? |
| 20311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20312 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20313 | ac_cv_mvwdelch_is_expression=yes |
| 20314 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20315 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20317 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20318 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20319 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20320 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20321 | fi |
| 20322 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20323 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 20324 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20325 | |
| 20326 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 20327 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20328 | |
| 20329 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20330 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20331 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20332 | |
| 20333 | fi |
| 20334 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20335 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 20336 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 20337 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 20338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20339 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20340 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20341 | /* confdefs.h. */ |
| 20342 | _ACEOF |
| 20343 | cat confdefs.h >>conftest.$ac_ext |
| 20344 | cat >>conftest.$ac_ext <<_ACEOF |
| 20345 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20346 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20347 | int |
| 20348 | main () |
| 20349 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20350 | |
| 20351 | WINDOW *w; |
| 20352 | w->_flags = 0; |
| 20353 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20354 | ; |
| 20355 | return 0; |
| 20356 | } |
| 20357 | _ACEOF |
| 20358 | rm -f conftest.$ac_objext |
| 20359 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20360 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20361 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20362 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20363 | rm -f conftest.er1 |
| 20364 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20366 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20367 | { ac_try='test -z "$ac_c_werror_flag" |
| 20368 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20370 | (eval $ac_try) 2>&5 |
| 20371 | ac_status=$? |
| 20372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20373 | (exit $ac_status); }; } && |
| 20374 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20376 | (eval $ac_try) 2>&5 |
| 20377 | ac_status=$? |
| 20378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20379 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20380 | ac_cv_window_has_flags=yes |
| 20381 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20382 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20383 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20384 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20385 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20386 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20387 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20388 | fi |
| 20389 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20390 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 20391 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20392 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20393 | |
| 20394 | if test "$ac_cv_window_has_flags" = yes |
| 20395 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20396 | |
| 20397 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20398 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20399 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 20400 | |
| 20401 | fi |
| 20402 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 20403 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 20404 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
| 20405 | |
| 20406 | if test -e /dev/ptmx |
| 20407 | then |
| 20408 | echo "$as_me:$LINENO: result: yes" >&5 |
| 20409 | echo "${ECHO_T}yes" >&6 |
| 20410 | |
| 20411 | cat >>confdefs.h <<\_ACEOF |
| 20412 | #define HAVE_DEV_PTMX 1 |
| 20413 | _ACEOF |
| 20414 | |
| 20415 | else |
| 20416 | echo "$as_me:$LINENO: result: no" >&5 |
| 20417 | echo "${ECHO_T}no" >&6 |
| 20418 | fi |
| 20419 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 20420 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 20421 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
| 20422 | |
| 20423 | if test -e /dev/ptc |
| 20424 | then |
| 20425 | echo "$as_me:$LINENO: result: yes" >&5 |
| 20426 | echo "${ECHO_T}yes" >&6 |
| 20427 | |
| 20428 | cat >>confdefs.h <<\_ACEOF |
| 20429 | #define HAVE_DEV_PTC 1 |
| 20430 | _ACEOF |
| 20431 | |
| 20432 | else |
| 20433 | echo "$as_me:$LINENO: result: no" >&5 |
| 20434 | echo "${ECHO_T}no" >&6 |
| 20435 | fi |
| 20436 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20437 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 20438 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 20439 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 20440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 20441 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20442 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20443 | /* confdefs.h. */ |
| 20444 | _ACEOF |
| 20445 | cat confdefs.h >>conftest.$ac_ext |
| 20446 | cat >>conftest.$ac_ext <<_ACEOF |
| 20447 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 20448 | |
| 20449 | #ifdef HAVE_SYS_TYPES_H |
| 20450 | #include <sys/types.h> |
| 20451 | #endif |
| 20452 | #ifdef HAVE_SYS_SOCKET_H |
| 20453 | #include <sys/socket.h> |
| 20454 | #endif |
| 20455 | |
| 20456 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20457 | int |
| 20458 | main () |
| 20459 | { |
| 20460 | if ((socklen_t *) 0) |
| 20461 | return 0; |
| 20462 | if (sizeof (socklen_t)) |
| 20463 | return 0; |
| 20464 | ; |
| 20465 | return 0; |
| 20466 | } |
| 20467 | _ACEOF |
| 20468 | rm -f conftest.$ac_objext |
| 20469 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20470 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20471 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20472 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20473 | rm -f conftest.er1 |
| 20474 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20476 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20477 | { ac_try='test -z "$ac_c_werror_flag" |
| 20478 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20480 | (eval $ac_try) 2>&5 |
| 20481 | ac_status=$? |
| 20482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20483 | (exit $ac_status); }; } && |
| 20484 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20486 | (eval $ac_try) 2>&5 |
| 20487 | ac_status=$? |
| 20488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20489 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 20490 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 20491 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20492 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20494 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20495 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 20496 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20497 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20498 | fi |
| 20499 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 20500 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 20501 | if test $ac_cv_type_socklen_t = yes; then |
| 20502 | : |
| 20503 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 20504 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 20505 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 20506 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20507 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 20508 | |
| 20509 | fi |
| 20510 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20511 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20512 | |
| 20513 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 20514 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 20515 | do |
| 20516 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 20517 | done |
| 20518 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20519 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 20520 | SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20521 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 20522 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 20523 | for dir in $SRCDIRS; do |
| 20524 | if test ! -d $dir; then |
| 20525 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 20526 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 20527 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20528 | echo "$as_me:$LINENO: result: done" >&5 |
| 20529 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 20530 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20531 | # generate output files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20532 | 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] | 20533 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20534 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20535 | # This file is a shell script that caches the results of configure |
| 20536 | # 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] | 20537 | # scripts and configure runs, see configure's option --config-cache. |
| 20538 | # It is not useful on other systems. If it contains results you don't |
| 20539 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20540 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20541 | # config.status only pays attention to the cache file if you give it |
| 20542 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20543 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20544 | # `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] | 20545 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 20546 | # following values. |
| 20547 | |
| 20548 | _ACEOF |
| 20549 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 20550 | # The following way of writing the cache mishandles newlines in values, |
| 20551 | # but we know of no workaround that is simple, portable, and efficient. |
| 20552 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20553 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 20554 | # 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] | 20555 | { |
| 20556 | (set) 2>&1 | |
| 20557 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 20558 | *ac_space=\ *) |
| 20559 | # `set' does not quote correctly, so add quotes (double-quote |
| 20560 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 20561 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20562 | "s/'/'\\\\''/g; |
| 20563 | 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] | 20564 | ;; |
| 20565 | *) |
| 20566 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 20567 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20568 | "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] | 20569 | ;; |
| 20570 | esac; |
| 20571 | } | |
| 20572 | sed ' |
| 20573 | t clear |
| 20574 | : clear |
| 20575 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 20576 | t end |
| 20577 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 20578 | : end' >>confcache |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20579 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20580 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20581 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 20582 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20583 | else |
| 20584 | echo "not updating unwritable cache $cache_file" |
| 20585 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20586 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 20587 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 20588 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20589 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 20590 | # Let make expand exec_prefix. |
| 20591 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 20592 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20593 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 20594 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 20595 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 20596 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20597 | if test "x$srcdir" = x.; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20598 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20599 | s/:*\$(srcdir):*/:/; |
| 20600 | s/:*\${srcdir}:*/:/; |
| 20601 | s/:*@srcdir@:*/:/; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20602 | s/^\([^=]*=[ ]*\):*/\1/; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20603 | s/:*$//; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20604 | s/^[^=]*=[ ]*$//; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20605 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 20606 | fi |
| 20607 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20608 | DEFS=-DHAVE_CONFIG_H |
| 20609 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20610 | ac_libobjs= |
| 20611 | ac_ltlibobjs= |
| 20612 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 20613 | # 1. Remove the extension, and $U if already installed. |
| 20614 | ac_i=`echo "$ac_i" | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20615 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20616 | # 2. Add them. |
| 20617 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 20618 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 20619 | done |
| 20620 | LIBOBJS=$ac_libobjs |
| 20621 | |
| 20622 | LTLIBOBJS=$ac_ltlibobjs |
| 20623 | |
| 20624 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20625 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20626 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20627 | ac_clean_files_save=$ac_clean_files |
| 20628 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 20629 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 20630 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 20631 | cat >$CONFIG_STATUS <<_ACEOF |
| 20632 | #! $SHELL |
| 20633 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20634 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20635 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20636 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 20637 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20638 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20639 | ac_cs_recheck=false |
| 20640 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20641 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 20642 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20643 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20644 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20645 | ## --------------------- ## |
| 20646 | ## M4sh Initialization. ## |
| 20647 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20648 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20649 | # Be Bourne compatible |
| 20650 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 20651 | emulate sh |
| 20652 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20653 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 20654 | # is contrary to our usage. Disable this feature. |
| 20655 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20656 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 20657 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20658 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20659 | DUALCASE=1; export DUALCASE # for MKS sh |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20660 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20661 | # Support unset when possible. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20662 | 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] | 20663 | as_unset=unset |
| 20664 | else |
| 20665 | as_unset=false |
| 20666 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20667 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20668 | |
| 20669 | # Work around bugs in pre-3.0 UWIN ksh. |
| 20670 | $as_unset ENV MAIL MAILPATH |
| 20671 | PS1='$ ' |
| 20672 | PS2='> ' |
| 20673 | PS4='+ ' |
| 20674 | |
| 20675 | # NLS nuisances. |
| 20676 | for as_var in \ |
| 20677 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 20678 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 20679 | LC_TELEPHONE LC_TIME |
| 20680 | do |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20681 | 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] | 20682 | eval $as_var=C; export $as_var |
| 20683 | else |
| 20684 | $as_unset $as_var |
| 20685 | fi |
| 20686 | done |
| 20687 | |
| 20688 | # Required to use basename. |
| 20689 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 20690 | as_expr=expr |
| 20691 | else |
| 20692 | as_expr=false |
| 20693 | fi |
| 20694 | |
| 20695 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 20696 | as_basename=basename |
| 20697 | else |
| 20698 | as_basename=false |
| 20699 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20700 | |
| 20701 | |
| 20702 | # Name of the executable. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20703 | as_me=`$as_basename "$0" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20704 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 20705 | X"$0" : 'X\(//\)$' \| \ |
| 20706 | X"$0" : 'X\(/\)$' \| \ |
| 20707 | . : '\(.\)' 2>/dev/null || |
| 20708 | echo X/"$0" | |
| 20709 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 20710 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 20711 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 20712 | s/.*/./; q'` |
| 20713 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20714 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20715 | # PATH needs CR, and LINENO needs CR and PATH. |
| 20716 | # Avoid depending upon Character Ranges. |
| 20717 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 20718 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 20719 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 20720 | as_cr_digits='0123456789' |
| 20721 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 20722 | |
| 20723 | # The user is always right. |
| 20724 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20725 | echo "#! /bin/sh" >conf$$.sh |
| 20726 | echo "exit 0" >>conf$$.sh |
| 20727 | chmod +x conf$$.sh |
| 20728 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20729 | PATH_SEPARATOR=';' |
| 20730 | else |
| 20731 | PATH_SEPARATOR=: |
| 20732 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20733 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20734 | fi |
| 20735 | |
| 20736 | |
| 20737 | as_lineno_1=$LINENO |
| 20738 | as_lineno_2=$LINENO |
| 20739 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 20740 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 20741 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 20742 | # Find who we are. Look in the path if we contain no path at all |
| 20743 | # relative or not. |
| 20744 | case $0 in |
| 20745 | *[\\/]* ) as_myself=$0 ;; |
| 20746 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20747 | for as_dir in $PATH |
| 20748 | do |
| 20749 | IFS=$as_save_IFS |
| 20750 | test -z "$as_dir" && as_dir=. |
| 20751 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 20752 | done |
| 20753 | |
| 20754 | ;; |
| 20755 | esac |
| 20756 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 20757 | # in which case we are not to be found in the path. |
| 20758 | if test "x$as_myself" = x; then |
| 20759 | as_myself=$0 |
| 20760 | fi |
| 20761 | if test ! -f "$as_myself"; then |
| 20762 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 20763 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 20764 | { (exit 1); exit 1; }; } |
| 20765 | fi |
| 20766 | case $CONFIG_SHELL in |
| 20767 | '') |
| 20768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 20769 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 20770 | do |
| 20771 | IFS=$as_save_IFS |
| 20772 | test -z "$as_dir" && as_dir=. |
| 20773 | for as_base in sh bash ksh sh5; do |
| 20774 | case $as_dir in |
| 20775 | /*) |
| 20776 | if ("$as_dir/$as_base" -c ' |
| 20777 | as_lineno_1=$LINENO |
| 20778 | as_lineno_2=$LINENO |
| 20779 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 20780 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 20781 | 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] | 20782 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 20783 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20784 | CONFIG_SHELL=$as_dir/$as_base |
| 20785 | export CONFIG_SHELL |
| 20786 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 20787 | fi;; |
| 20788 | esac |
| 20789 | done |
| 20790 | done |
| 20791 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20792 | esac |
| 20793 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20794 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 20795 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 20796 | # line-number line before each line; the second 'sed' does the real |
| 20797 | # work. The second script uses 'N' to pair each line-number line |
| 20798 | # with the numbered line, and appends trailing '-' during |
| 20799 | # substitution so that $LINENO is not a special case at line end. |
| 20800 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 20801 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 20802 | sed '=' <$as_myself | |
| 20803 | sed ' |
| 20804 | N |
| 20805 | s,$,-, |
| 20806 | : loop |
| 20807 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 20808 | t loop |
| 20809 | s,-$,, |
| 20810 | s,^['$as_cr_digits']*\n,, |
| 20811 | ' >$as_me.lineno && |
| 20812 | chmod +x $as_me.lineno || |
| 20813 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 20814 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 20815 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20816 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20817 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 20818 | # (the dirname of $[0] is not the place where we might find the |
| 20819 | # original and so on. Autoconf is especially sensible to this). |
| 20820 | . ./$as_me.lineno |
| 20821 | # Exit status is that of the last command. |
| 20822 | exit |
| 20823 | } |
| 20824 | |
| 20825 | |
| 20826 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 20827 | *c*,-n*) ECHO_N= ECHO_C=' |
| 20828 | ' ECHO_T=' ' ;; |
| 20829 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 20830 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 20831 | esac |
| 20832 | |
| 20833 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 20834 | as_expr=expr |
| 20835 | else |
| 20836 | as_expr=false |
| 20837 | fi |
| 20838 | |
| 20839 | rm -f conf$$ conf$$.exe conf$$.file |
| 20840 | echo >conf$$.file |
| 20841 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 20842 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 20843 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 20844 | if test -f conf$$.exe; then |
| 20845 | # Don't use ln at all; we don't have any links |
| 20846 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20847 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20848 | as_ln_s='ln -s' |
| 20849 | fi |
| 20850 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 20851 | as_ln_s=ln |
| 20852 | else |
| 20853 | as_ln_s='cp -p' |
| 20854 | fi |
| 20855 | rm -f conf$$ conf$$.exe conf$$.file |
| 20856 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20857 | if mkdir -p . 2>/dev/null; then |
| 20858 | as_mkdir_p=: |
| 20859 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20860 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20861 | as_mkdir_p=false |
| 20862 | fi |
| 20863 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20864 | as_executable_p="test -f" |
| 20865 | |
| 20866 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20867 | 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] | 20868 | |
| 20869 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20870 | 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] | 20871 | |
| 20872 | |
| 20873 | # IFS |
| 20874 | # We need space, tab and new line, in precisely that order. |
| 20875 | as_nl=' |
| 20876 | ' |
| 20877 | IFS=" $as_nl" |
| 20878 | |
| 20879 | # CDPATH. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20880 | $as_unset CDPATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20881 | |
| 20882 | exec 6>&1 |
| 20883 | |
| 20884 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 20885 | # report actual input values of CONFIG_FILES etc. instead of their |
| 20886 | # values after options handling. Logging --version etc. is OK. |
| 20887 | exec 5>>config.log |
| 20888 | { |
| 20889 | echo |
| 20890 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 20891 | ## Running $as_me. ## |
| 20892 | _ASBOX |
| 20893 | } >&5 |
| 20894 | cat >&5 <<_CSEOF |
| 20895 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 20896 | This file was extended by python $as_me 2.5, which was |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20897 | generated by GNU Autoconf 2.59. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20898 | |
| 20899 | CONFIG_FILES = $CONFIG_FILES |
| 20900 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 20901 | CONFIG_LINKS = $CONFIG_LINKS |
| 20902 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 20903 | $ $0 $@ |
| 20904 | |
| 20905 | _CSEOF |
| 20906 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 20907 | echo >&5 |
| 20908 | _ACEOF |
| 20909 | |
| 20910 | # Files that config.status was made for. |
| 20911 | if test -n "$ac_config_files"; then |
| 20912 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 20913 | fi |
| 20914 | |
| 20915 | if test -n "$ac_config_headers"; then |
| 20916 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 20917 | fi |
| 20918 | |
| 20919 | if test -n "$ac_config_links"; then |
| 20920 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 20921 | fi |
| 20922 | |
| 20923 | if test -n "$ac_config_commands"; then |
| 20924 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 20925 | fi |
| 20926 | |
| 20927 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20928 | |
| 20929 | ac_cs_usage="\ |
| 20930 | \`$as_me' instantiates files from templates according to the |
| 20931 | current configuration. |
| 20932 | |
| 20933 | Usage: $0 [OPTIONS] [FILE]... |
| 20934 | |
| 20935 | -h, --help print this help, then exit |
| 20936 | -V, --version print version number, then exit |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20937 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20938 | -d, --debug don't remove temporary files |
| 20939 | --recheck update $as_me by reconfiguring in the same conditions |
| 20940 | --file=FILE[:TEMPLATE] |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20941 | instantiate the configuration file FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20942 | --header=FILE[:TEMPLATE] |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20943 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20944 | |
| 20945 | Configuration files: |
| 20946 | $config_files |
| 20947 | |
| 20948 | Configuration headers: |
| 20949 | $config_headers |
| 20950 | |
| 20951 | Report bugs to <bug-autoconf@gnu.org>." |
| 20952 | _ACEOF |
| 20953 | |
| 20954 | cat >>$CONFIG_STATUS <<_ACEOF |
| 20955 | ac_cs_version="\\ |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 20956 | python config.status 2.5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20957 | configured by $0, generated by GNU Autoconf 2.59, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20958 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 20959 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20960 | Copyright (C) 2003 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20961 | This config.status script is free software; the Free Software Foundation |
| 20962 | gives unlimited permission to copy, distribute and modify it." |
| 20963 | srcdir=$srcdir |
| 20964 | INSTALL="$INSTALL" |
| 20965 | _ACEOF |
| 20966 | |
| 20967 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 20968 | # If no file are specified by the user, then we need to provide default |
| 20969 | # value. By we need to know if files were specified by the user. |
| 20970 | ac_need_defaults=: |
| 20971 | while test $# != 0 |
| 20972 | do |
| 20973 | case $1 in |
| 20974 | --*=*) |
| 20975 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 20976 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20977 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20978 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20979 | -*) |
| 20980 | ac_option=$1 |
| 20981 | ac_optarg=$2 |
| 20982 | ac_shift=shift |
| 20983 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20984 | *) # This is not an option, so the user has probably given explicit |
| 20985 | # arguments. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20986 | ac_option=$1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20987 | ac_need_defaults=false;; |
| 20988 | esac |
| 20989 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20990 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20991 | # Handling of the options. |
| 20992 | _ACEOF |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 20993 | cat >>$CONFIG_STATUS <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20994 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 20995 | ac_cs_recheck=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20996 | --version | --vers* | -V ) |
| 20997 | echo "$ac_cs_version"; exit 0 ;; |
| 20998 | --he | --h) |
| 20999 | # Conflict between --help and --header |
| 21000 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 21001 | Try \`$0 --help' for more information." >&5 |
| 21002 | echo "$as_me: error: ambiguous option: $1 |
| 21003 | Try \`$0 --help' for more information." >&2;} |
| 21004 | { (exit 1); exit 1; }; };; |
| 21005 | --help | --hel | -h ) |
| 21006 | echo "$ac_cs_usage"; exit 0 ;; |
| 21007 | --debug | --d* | -d ) |
| 21008 | debug=: ;; |
| 21009 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21010 | $ac_shift |
| 21011 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21012 | ac_need_defaults=false;; |
| 21013 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21014 | $ac_shift |
| 21015 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21016 | ac_need_defaults=false;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21017 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 21018 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 21019 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21020 | |
| 21021 | # This is an error. |
| 21022 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 21023 | Try \`$0 --help' for more information." >&5 |
| 21024 | echo "$as_me: error: unrecognized option: $1 |
| 21025 | Try \`$0 --help' for more information." >&2;} |
| 21026 | { (exit 1); exit 1; }; } ;; |
| 21027 | |
| 21028 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 21029 | |
| 21030 | esac |
| 21031 | shift |
| 21032 | done |
| 21033 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21034 | ac_configure_extra_args= |
| 21035 | |
| 21036 | if $ac_cs_silent; then |
| 21037 | exec 6>/dev/null |
| 21038 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 21039 | fi |
| 21040 | |
| 21041 | _ACEOF |
| 21042 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21043 | if \$ac_cs_recheck; then |
| 21044 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 21045 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 21046 | fi |
| 21047 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21048 | _ACEOF |
| 21049 | |
| 21050 | |
| 21051 | |
| 21052 | |
| 21053 | |
| 21054 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21055 | for ac_config_target in $ac_config_targets |
| 21056 | do |
| 21057 | case "$ac_config_target" in |
| 21058 | # Handling of arguments. |
| 21059 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 21060 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 21061 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 21062 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 21063 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 21064 | { (exit 1); exit 1; }; };; |
| 21065 | esac |
| 21066 | done |
| 21067 | |
| 21068 | # If the user did not use the arguments to specify the items to instantiate, |
| 21069 | # then the envvar interface is used. Set only those that are not. |
| 21070 | # We use the long form for the default assignment because of an extremely |
| 21071 | # bizarre bug on SunOS 4.1.3. |
| 21072 | if $ac_need_defaults; then |
| 21073 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 21074 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 21075 | fi |
| 21076 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21077 | # Have a temporary directory for convenience. Make it in the build tree |
| 21078 | # simply because there is no reason to put it here, and in addition, |
| 21079 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21080 | # Create a temporary directory, and hook for its removal unless debugging. |
| 21081 | $debug || |
| 21082 | { |
| 21083 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 21084 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 21085 | } |
| 21086 | |
| 21087 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21088 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21089 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21090 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21091 | test -n "$tmp" && test -d "$tmp" |
| 21092 | } || |
| 21093 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21094 | tmp=./confstat$$-$RANDOM |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21095 | (umask 077 && mkdir $tmp) |
| 21096 | } || |
| 21097 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21098 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21099 | { (exit 1); exit 1; } |
| 21100 | } |
| 21101 | |
| 21102 | _ACEOF |
| 21103 | |
| 21104 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21105 | |
| 21106 | # |
| 21107 | # CONFIG_FILES section. |
| 21108 | # |
| 21109 | |
| 21110 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 21111 | # This happens for instance when ./config.status config.h |
| 21112 | if test -n "\$CONFIG_FILES"; then |
| 21113 | # Protect against being on the right side of a sed subst in config.status. |
| 21114 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 21115 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 21116 | s,@SHELL@,$SHELL,;t t |
| 21117 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 21118 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 21119 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 21120 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 21121 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 21122 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 21123 | s,@exec_prefix@,$exec_prefix,;t t |
| 21124 | s,@prefix@,$prefix,;t t |
| 21125 | s,@program_transform_name@,$program_transform_name,;t t |
| 21126 | s,@bindir@,$bindir,;t t |
| 21127 | s,@sbindir@,$sbindir,;t t |
| 21128 | s,@libexecdir@,$libexecdir,;t t |
| 21129 | s,@datadir@,$datadir,;t t |
| 21130 | s,@sysconfdir@,$sysconfdir,;t t |
| 21131 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 21132 | s,@localstatedir@,$localstatedir,;t t |
| 21133 | s,@libdir@,$libdir,;t t |
| 21134 | s,@includedir@,$includedir,;t t |
| 21135 | s,@oldincludedir@,$oldincludedir,;t t |
| 21136 | s,@infodir@,$infodir,;t t |
| 21137 | s,@mandir@,$mandir,;t t |
| 21138 | s,@build_alias@,$build_alias,;t t |
| 21139 | s,@host_alias@,$host_alias,;t t |
| 21140 | s,@target_alias@,$target_alias,;t t |
| 21141 | s,@DEFS@,$DEFS,;t t |
| 21142 | s,@ECHO_C@,$ECHO_C,;t t |
| 21143 | s,@ECHO_N@,$ECHO_N,;t t |
| 21144 | s,@ECHO_T@,$ECHO_T,;t t |
| 21145 | s,@LIBS@,$LIBS,;t t |
| 21146 | s,@VERSION@,$VERSION,;t t |
| 21147 | s,@SOVERSION@,$SOVERSION,;t t |
| 21148 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 21149 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 21150 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 21151 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 21152 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 21153 | s,@MACHDEP@,$MACHDEP,;t t |
| 21154 | s,@SGI_ABI@,$SGI_ABI,;t t |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 21155 | s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 21156 | s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 21157 | 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] | 21158 | s,@CXX@,$CXX,;t t |
| 21159 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 21160 | s,@EXEEXT@,$EXEEXT,;t t |
| 21161 | s,@CC@,$CC,;t t |
| 21162 | s,@CFLAGS@,$CFLAGS,;t t |
| 21163 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 21164 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 21165 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 21166 | s,@OBJEXT@,$OBJEXT,;t t |
| 21167 | s,@CPP@,$CPP,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21168 | s,@EGREP@,$EGREP,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21169 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 21170 | s,@LIBRARY@,$LIBRARY,;t t |
| 21171 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 21172 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 21173 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 21174 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 21175 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 21176 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 21177 | s,@LINKCC@,$LINKCC,;t t |
| 21178 | s,@RANLIB@,$RANLIB,;t t |
| 21179 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 21180 | s,@AR@,$AR,;t t |
| 21181 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 21182 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 21183 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 21184 | s,@LN@,$LN,;t t |
| 21185 | s,@OPT@,$OPT,;t t |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 21186 | s,@BASECFLAGS@,$BASECFLAGS,;t t |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 21187 | s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21188 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 21189 | s,@SO@,$SO,;t t |
| 21190 | s,@LDSHARED@,$LDSHARED,;t t |
| 21191 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 21192 | s,@CCSHARED@,$CCSHARED,;t t |
| 21193 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 21194 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 21195 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21196 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 21197 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 21198 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 21199 | s,@LDLAST@,$LDLAST,;t t |
| 21200 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 21201 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 21202 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 21203 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 21204 | s,@TRUE@,$TRUE,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21205 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 21206 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 21207 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 21208 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 21209 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 21210 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 21211 | s,@LIBM@,$LIBM,;t t |
| 21212 | s,@LIBC@,$LIBC,;t t |
| 21213 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 21214 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 21215 | s,@SRCDIRS@,$SRCDIRS,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21216 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21217 | CEOF |
| 21218 | |
| 21219 | _ACEOF |
| 21220 | |
| 21221 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21222 | # Split the substitutions into bite-sized pieces for seds with |
| 21223 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 21224 | ac_max_sed_lines=48 |
| 21225 | ac_sed_frag=1 # Number of current file. |
| 21226 | ac_beg=1 # First line for current file. |
| 21227 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 21228 | ac_more_lines=: |
| 21229 | ac_sed_cmds= |
| 21230 | while $ac_more_lines; do |
| 21231 | if test $ac_beg -gt 1; then |
| 21232 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 21233 | else |
| 21234 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 21235 | fi |
| 21236 | if test ! -s $tmp/subs.frag; then |
| 21237 | ac_more_lines=false |
| 21238 | else |
| 21239 | # The purpose of the label and of the branching condition is to |
| 21240 | # speed up the sed processing (if there are no `@' at all, there |
| 21241 | # is no need to browse any of the substitutions). |
| 21242 | # These are the two extra sed commands mentioned above. |
| 21243 | (echo ':t |
| 21244 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 21245 | if test -z "$ac_sed_cmds"; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21246 | 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] | 21247 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21248 | 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] | 21249 | fi |
| 21250 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 21251 | ac_beg=$ac_end |
| 21252 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 21253 | fi |
| 21254 | done |
| 21255 | if test -z "$ac_sed_cmds"; then |
| 21256 | ac_sed_cmds=cat |
| 21257 | fi |
| 21258 | fi # test -n "$CONFIG_FILES" |
| 21259 | |
| 21260 | _ACEOF |
| 21261 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21262 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 21263 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 21264 | case $ac_file in |
| 21265 | - | *:- | *:-:* ) # input from stdin |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21266 | cat >$tmp/stdin |
| 21267 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 21268 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21269 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 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=$ac_file.in ;; |
| 21272 | esac |
| 21273 | |
| 21274 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 21275 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 21276 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21277 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 21278 | X"$ac_file" : 'X\(//\)$' \| \ |
| 21279 | X"$ac_file" : 'X\(/\)' \| \ |
| 21280 | . : '\(.\)' 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21281 | echo X"$ac_file" | |
| 21282 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21283 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21284 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21285 | /^X\(\/\).*/{ s//\1/; q; } |
| 21286 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21287 | { if $as_mkdir_p; then |
| 21288 | mkdir -p "$ac_dir" |
| 21289 | else |
| 21290 | as_dir="$ac_dir" |
| 21291 | as_dirs= |
| 21292 | while test ! -d "$as_dir"; do |
| 21293 | as_dirs="$as_dir $as_dirs" |
| 21294 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 21295 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21296 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21297 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21298 | X"$as_dir" : 'X\(/\)' \| \ |
| 21299 | . : '\(.\)' 2>/dev/null || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21300 | echo X"$as_dir" | |
| 21301 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21302 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21303 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21304 | /^X\(\/\).*/{ s//\1/; q; } |
| 21305 | s/.*/./; q'` |
| 21306 | done |
| 21307 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 21308 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 21309 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 21310 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21311 | |
| 21312 | ac_builddir=. |
| 21313 | |
| 21314 | if test "$ac_dir" != .; then |
| 21315 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 21316 | # A "../" for each directory in $ac_dir_suffix. |
| 21317 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 21318 | else |
| 21319 | ac_dir_suffix= ac_top_builddir= |
| 21320 | fi |
| 21321 | |
| 21322 | case $srcdir in |
| 21323 | .) # No --srcdir option. We are building in place. |
| 21324 | ac_srcdir=. |
| 21325 | if test -z "$ac_top_builddir"; then |
| 21326 | ac_top_srcdir=. |
| 21327 | else |
| 21328 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 21329 | fi ;; |
| 21330 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 21331 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 21332 | ac_top_srcdir=$srcdir ;; |
| 21333 | *) # Relative path. |
| 21334 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 21335 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 21336 | esac |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21337 | |
| 21338 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 21339 | # the directories may not exist. |
| 21340 | case `pwd` in |
| 21341 | .) ac_abs_builddir="$ac_dir";; |
| 21342 | *) |
| 21343 | case "$ac_dir" in |
| 21344 | .) ac_abs_builddir=`pwd`;; |
| 21345 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 21346 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 21347 | esac;; |
| 21348 | esac |
| 21349 | case $ac_abs_builddir in |
| 21350 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 21351 | *) |
| 21352 | case ${ac_top_builddir}. in |
| 21353 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 21354 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 21355 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 21356 | esac;; |
| 21357 | esac |
| 21358 | case $ac_abs_builddir in |
| 21359 | .) ac_abs_srcdir=$ac_srcdir;; |
| 21360 | *) |
| 21361 | case $ac_srcdir in |
| 21362 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 21363 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 21364 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 21365 | esac;; |
| 21366 | esac |
| 21367 | case $ac_abs_builddir in |
| 21368 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 21369 | *) |
| 21370 | case $ac_top_srcdir in |
| 21371 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 21372 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 21373 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 21374 | esac;; |
| 21375 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21376 | |
| 21377 | |
| 21378 | case $INSTALL in |
| 21379 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 21380 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 21381 | esac |
| 21382 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21383 | if test x"$ac_file" != x-; then |
| 21384 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 21385 | echo "$as_me: creating $ac_file" >&6;} |
| 21386 | rm -f "$ac_file" |
| 21387 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21388 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 21389 | # use $as_me), people would be surprised to read: |
| 21390 | # /* config.h. Generated by config.status. */ |
| 21391 | if test x"$ac_file" = x-; then |
| 21392 | configure_input= |
| 21393 | else |
| 21394 | configure_input="$ac_file. " |
| 21395 | fi |
| 21396 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21397 | sed 's,.*/,,'` by configure." |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21398 | |
| 21399 | # First look for the input files in the build tree, otherwise in the |
| 21400 | # src tree. |
| 21401 | ac_file_inputs=`IFS=: |
| 21402 | for f in $ac_file_in; do |
| 21403 | case $f in |
| 21404 | -) echo $tmp/stdin ;; |
| 21405 | [\\/$]*) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21406 | # Absolute (can't be DOS-style, as IFS=:) |
| 21407 | 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] | 21408 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21409 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21410 | echo "$f";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21411 | *) # Relative |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21412 | if test -f "$f"; then |
| 21413 | # Build tree |
| 21414 | echo "$f" |
| 21415 | elif test -f "$srcdir/$f"; then |
| 21416 | # Source tree |
| 21417 | echo "$srcdir/$f" |
| 21418 | else |
| 21419 | # /dev/null tree |
| 21420 | { { 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] | 21421 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21422 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21423 | fi;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21424 | esac |
| 21425 | done` || { (exit 1); exit 1; } |
| 21426 | _ACEOF |
| 21427 | cat >>$CONFIG_STATUS <<_ACEOF |
| 21428 | sed "$ac_vpsub |
| 21429 | $extrasub |
| 21430 | _ACEOF |
| 21431 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21432 | :t |
| 21433 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 21434 | s,@configure_input@,$configure_input,;t t |
| 21435 | s,@srcdir@,$ac_srcdir,;t t |
| 21436 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 21437 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 21438 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 21439 | s,@builddir@,$ac_builddir,;t t |
| 21440 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 21441 | s,@top_builddir@,$ac_top_builddir,;t t |
| 21442 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 21443 | s,@INSTALL@,$ac_INSTALL,;t t |
| 21444 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 21445 | rm -f $tmp/stdin |
| 21446 | if test x"$ac_file" != x-; then |
| 21447 | mv $tmp/out $ac_file |
| 21448 | else |
| 21449 | cat $tmp/out |
| 21450 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21451 | fi |
| 21452 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21453 | done |
| 21454 | _ACEOF |
| 21455 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21456 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21457 | # |
| 21458 | # CONFIG_HEADER section. |
| 21459 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21460 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21461 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 21462 | # 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] | 21463 | # |
| 21464 | # ac_d sets the value in "#define NAME VALUE" lines. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21465 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 21466 | ac_dB='[ ].*$,\1#\2' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21467 | ac_dC=' ' |
| 21468 | ac_dD=',;t' |
| 21469 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21470 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21471 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21472 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21473 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21474 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21475 | 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] | 21476 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21477 | case $ac_file in |
| 21478 | - | *:- | *:-:* ) # input from stdin |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21479 | cat >$tmp/stdin |
| 21480 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 21481 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21482 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 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=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21485 | esac |
| 21486 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21487 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 21488 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21489 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21490 | # First look for the input files in the build tree, otherwise in the |
| 21491 | # src tree. |
| 21492 | ac_file_inputs=`IFS=: |
| 21493 | for f in $ac_file_in; do |
| 21494 | case $f in |
| 21495 | -) echo $tmp/stdin ;; |
| 21496 | [\\/$]*) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21497 | # Absolute (can't be DOS-style, as IFS=:) |
| 21498 | 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] | 21499 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21500 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21501 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 21502 | echo "$f";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21503 | *) # Relative |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21504 | if test -f "$f"; then |
| 21505 | # Build tree |
| 21506 | echo "$f" |
| 21507 | elif test -f "$srcdir/$f"; then |
| 21508 | # Source tree |
| 21509 | echo "$srcdir/$f" |
| 21510 | else |
| 21511 | # /dev/null tree |
| 21512 | { { 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] | 21513 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 21514 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21515 | fi;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21516 | esac |
| 21517 | done` || { (exit 1); exit 1; } |
| 21518 | # Remove the trailing spaces. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21519 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21520 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21521 | _ACEOF |
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 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 21524 | # `conftest.undefs', that substitutes the proper values into |
| 21525 | # config.h.in to produce config.h. The first handles `#define' |
| 21526 | # templates, and the second `#undef' templates. |
| 21527 | # And first: Protect against being on the right side of a sed subst in |
| 21528 | # config.status. Protect against being in an unquoted here document |
| 21529 | # in config.status. |
| 21530 | rm -f conftest.defines conftest.undefs |
| 21531 | # Using a here document instead of a string reduces the quoting nightmare. |
| 21532 | # Putting comments in sed scripts is not portable. |
| 21533 | # |
| 21534 | # `end' is used to avoid that the second main sed command (meant for |
| 21535 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 21536 | # See the Autoconf documentation for `clear'. |
| 21537 | cat >confdef2sed.sed <<\_ACEOF |
| 21538 | s/[\\&,]/\\&/g |
| 21539 | s,[\\$`],\\&,g |
| 21540 | t clear |
| 21541 | : clear |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21542 | 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] | 21543 | t end |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21544 | 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] | 21545 | : end |
| 21546 | _ACEOF |
| 21547 | # If some macros were called several times there might be several times |
| 21548 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 21549 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 21550 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 21551 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 21552 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21553 | |
| 21554 | # This sed command replaces #undef with comments. This is necessary, for |
| 21555 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 21556 | # 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] | 21557 | cat >>conftest.undefs <<\_ACEOF |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21558 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21559 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21560 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21561 | # Break up conftest.defines because some shells have a limit on the size |
| 21562 | # of here documents, and old seds have small limits too (100 cmds). |
| 21563 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21564 | 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] | 21565 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 21566 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21567 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21568 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21569 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21570 | # Write a limited-size here document to $tmp/defines.sed. |
| 21571 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 21572 | # Speed up: don't consider the non `#define' lines. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21573 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21574 | # Work around the forget-to-reset-the-flag bug. |
| 21575 | echo 't clr' >>$CONFIG_STATUS |
| 21576 | echo ': clr' >>$CONFIG_STATUS |
| 21577 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21578 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21579 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 21580 | rm -f $tmp/in |
| 21581 | mv $tmp/out $tmp/in |
| 21582 | ' >>$CONFIG_STATUS |
| 21583 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 21584 | rm -f conftest.defines |
| 21585 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21586 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21587 | rm -f conftest.defines |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21588 | echo ' fi # grep' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21589 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21590 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21591 | # Break up conftest.undefs because some shells have a limit on the size |
| 21592 | # of here documents, and old seds have small limits too (100 cmds). |
| 21593 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 21594 | rm -f conftest.tail |
| 21595 | while grep . conftest.undefs >/dev/null |
| 21596 | do |
| 21597 | # Write a limited-size here document to $tmp/undefs.sed. |
| 21598 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 21599 | # Speed up: don't consider the non `#undef' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21600 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21601 | # Work around the forget-to-reset-the-flag bug. |
| 21602 | echo 't clr' >>$CONFIG_STATUS |
| 21603 | echo ': clr' >>$CONFIG_STATUS |
| 21604 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 21605 | echo 'CEOF |
| 21606 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 21607 | rm -f $tmp/in |
| 21608 | mv $tmp/out $tmp/in |
| 21609 | ' >>$CONFIG_STATUS |
| 21610 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 21611 | rm -f conftest.undefs |
| 21612 | mv conftest.tail conftest.undefs |
| 21613 | done |
| 21614 | rm -f conftest.undefs |
| 21615 | |
| 21616 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 21617 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 21618 | # use $as_me), people would be surprised to read: |
| 21619 | # /* config.h. Generated by config.status. */ |
| 21620 | if test x"$ac_file" = x-; then |
| 21621 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21622 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21623 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21624 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21625 | cat $tmp/in >>$tmp/config.h |
| 21626 | rm -f $tmp/in |
| 21627 | if test x"$ac_file" != x-; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21628 | 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] | 21629 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 21630 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 21631 | else |
| 21632 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 21633 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21634 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 21635 | X"$ac_file" : 'X\(//\)$' \| \ |
| 21636 | X"$ac_file" : 'X\(/\)' \| \ |
| 21637 | . : '\(.\)' 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21638 | echo X"$ac_file" | |
| 21639 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21640 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21641 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21642 | /^X\(\/\).*/{ s//\1/; q; } |
| 21643 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21644 | { if $as_mkdir_p; then |
| 21645 | mkdir -p "$ac_dir" |
| 21646 | else |
| 21647 | as_dir="$ac_dir" |
| 21648 | as_dirs= |
| 21649 | while test ! -d "$as_dir"; do |
| 21650 | as_dirs="$as_dir $as_dirs" |
| 21651 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 21652 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21653 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 21654 | X"$as_dir" : 'X\(//\)$' \| \ |
| 21655 | X"$as_dir" : 'X\(/\)' \| \ |
| 21656 | . : '\(.\)' 2>/dev/null || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21657 | echo X"$as_dir" | |
| 21658 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 21659 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 21660 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 21661 | /^X\(\/\).*/{ s//\1/; q; } |
| 21662 | s/.*/./; q'` |
| 21663 | done |
| 21664 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 21665 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 21666 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 21667 | { (exit 1); exit 1; }; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21668 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21669 | rm -f $ac_file |
| 21670 | mv $tmp/config.h $ac_file |
| 21671 | fi |
| 21672 | else |
| 21673 | cat $tmp/config.h |
| 21674 | rm -f $tmp/config.h |
| 21675 | fi |
| 21676 | done |
| 21677 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21678 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21679 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21680 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21681 | { (exit 0); exit 0; } |
| 21682 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21683 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21684 | ac_clean_files=$ac_clean_files_save |
| 21685 | |
| 21686 | |
| 21687 | # configure is writing to config.log, and then calls config.status. |
| 21688 | # config.status does its own redirection, appending to config.log. |
| 21689 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 21690 | # by configure, so config.status won't be able to write to it; its |
| 21691 | # output is simply discarded. So we exec the FD to /dev/null, |
| 21692 | # effectively closing config.log, so it can be properly (re)opened and |
| 21693 | # appended to by config.status. When coming back to configure, we |
| 21694 | # need to make the FD available again. |
| 21695 | if test "$no_create" != yes; then |
| 21696 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21697 | ac_config_status_args= |
| 21698 | test "$silent" = yes && |
| 21699 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21700 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21701 | $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] | 21702 | exec 5>>config.log |
| 21703 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 21704 | # would make configure fail if this is the last instruction. |
| 21705 | $ac_cs_success || { (exit 1); exit 1; } |
| 21706 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21707 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 21708 | |
| 21709 | echo "creating Setup" |
| 21710 | if test ! -f Modules/Setup |
| 21711 | then |
| 21712 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 21713 | fi |
| 21714 | |
| 21715 | echo "creating Setup.local" |
| 21716 | if test ! -f Modules/Setup.local |
| 21717 | then |
| 21718 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 21719 | fi |
| 21720 | |
| 21721 | echo "creating Makefile" |
| 21722 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 21723 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 21724 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 21725 | mv config.c Modules |