Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Neal Norwitz | dedeeaa | 2006-03-31 06:54:45 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 43158 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.59 for python 2.5. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 6 | # Report bugs to <http://www.python.org/python-bugs>. |
| 7 | # |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8 | # Copyright (C) 2003 Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11 | ## --------------------- ## |
| 12 | ## M4sh Initialization. ## |
| 13 | ## --------------------- ## |
| 14 | |
| 15 | # Be Bourne compatible |
| 16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 17 | emulate sh |
| 18 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 20 | # is contrary to our usage. Disable this feature. |
| 21 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 23 | set -o posix |
| 24 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 25 | DUALCASE=1; export DUALCASE # for MKS sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 26 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 27 | # Support unset when possible. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 28 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 29 | as_unset=unset |
| 30 | else |
| 31 | as_unset=false |
| 32 | fi |
| 33 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 34 | |
| 35 | # Work around bugs in pre-3.0 UWIN ksh. |
| 36 | $as_unset ENV MAIL MAILPATH |
| 37 | PS1='$ ' |
| 38 | PS2='> ' |
| 39 | PS4='+ ' |
| 40 | |
| 41 | # NLS nuisances. |
| 42 | for as_var in \ |
| 43 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 44 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 45 | LC_TELEPHONE LC_TIME |
| 46 | do |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 47 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 48 | eval $as_var=C; export $as_var |
| 49 | else |
| 50 | $as_unset $as_var |
| 51 | fi |
| 52 | done |
| 53 | |
| 54 | # Required to use basename. |
| 55 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 56 | as_expr=expr |
| 57 | else |
| 58 | as_expr=false |
| 59 | fi |
| 60 | |
| 61 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 62 | as_basename=basename |
| 63 | else |
| 64 | as_basename=false |
| 65 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 66 | |
| 67 | |
| 68 | # Name of the executable. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 69 | as_me=`$as_basename "$0" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 70 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 71 | X"$0" : 'X\(//\)$' \| \ |
| 72 | X"$0" : 'X\(/\)$' \| \ |
| 73 | . : '\(.\)' 2>/dev/null || |
| 74 | echo X/"$0" | |
| 75 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 76 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 77 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 78 | s/.*/./; q'` |
| 79 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 80 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 81 | # PATH needs CR, and LINENO needs CR and PATH. |
| 82 | # Avoid depending upon Character Ranges. |
| 83 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 84 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 85 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 86 | as_cr_digits='0123456789' |
| 87 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 88 | |
| 89 | # The user is always right. |
| 90 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 91 | echo "#! /bin/sh" >conf$$.sh |
| 92 | echo "exit 0" >>conf$$.sh |
| 93 | chmod +x conf$$.sh |
| 94 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 95 | PATH_SEPARATOR=';' |
| 96 | else |
| 97 | PATH_SEPARATOR=: |
| 98 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 99 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 100 | fi |
| 101 | |
| 102 | |
| 103 | as_lineno_1=$LINENO |
| 104 | as_lineno_2=$LINENO |
| 105 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 106 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 107 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 108 | # Find who we are. Look in the path if we contain no path at all |
| 109 | # relative or not. |
| 110 | case $0 in |
| 111 | *[\\/]* ) as_myself=$0 ;; |
| 112 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 113 | for as_dir in $PATH |
| 114 | do |
| 115 | IFS=$as_save_IFS |
| 116 | test -z "$as_dir" && as_dir=. |
| 117 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 118 | done |
| 119 | |
| 120 | ;; |
| 121 | esac |
| 122 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 123 | # in which case we are not to be found in the path. |
| 124 | if test "x$as_myself" = x; then |
| 125 | as_myself=$0 |
| 126 | fi |
| 127 | if test ! -f "$as_myself"; then |
| 128 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 129 | { (exit 1); exit 1; }; } |
| 130 | fi |
| 131 | case $CONFIG_SHELL in |
| 132 | '') |
| 133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 134 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 135 | do |
| 136 | IFS=$as_save_IFS |
| 137 | test -z "$as_dir" && as_dir=. |
| 138 | for as_base in sh bash ksh sh5; do |
| 139 | case $as_dir in |
| 140 | /*) |
| 141 | if ("$as_dir/$as_base" -c ' |
| 142 | as_lineno_1=$LINENO |
| 143 | as_lineno_2=$LINENO |
| 144 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 145 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 146 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 147 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 148 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 149 | CONFIG_SHELL=$as_dir/$as_base |
| 150 | export CONFIG_SHELL |
| 151 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 152 | fi;; |
| 153 | esac |
| 154 | done |
| 155 | done |
| 156 | ;; |
| 157 | esac |
| 158 | |
| 159 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 160 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 161 | # line-number line before each line; the second 'sed' does the real |
| 162 | # work. The second script uses 'N' to pair each line-number line |
| 163 | # with the numbered line, and appends trailing '-' during |
| 164 | # substitution so that $LINENO is not a special case at line end. |
| 165 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 166 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 167 | sed '=' <$as_myself | |
| 168 | sed ' |
| 169 | N |
| 170 | s,$,-, |
| 171 | : loop |
| 172 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 173 | t loop |
| 174 | s,-$,, |
| 175 | s,^['$as_cr_digits']*\n,, |
| 176 | ' >$as_me.lineno && |
| 177 | chmod +x $as_me.lineno || |
| 178 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 179 | { (exit 1); exit 1; }; } |
| 180 | |
| 181 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 182 | # (the dirname of $[0] is not the place where we might find the |
| 183 | # original and so on. Autoconf is especially sensible to this). |
| 184 | . ./$as_me.lineno |
| 185 | # Exit status is that of the last command. |
| 186 | exit |
| 187 | } |
| 188 | |
| 189 | |
| 190 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 191 | *c*,-n*) ECHO_N= ECHO_C=' |
| 192 | ' ECHO_T=' ' ;; |
| 193 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 194 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 195 | esac |
| 196 | |
| 197 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 198 | as_expr=expr |
| 199 | else |
| 200 | as_expr=false |
| 201 | fi |
| 202 | |
| 203 | rm -f conf$$ conf$$.exe conf$$.file |
| 204 | echo >conf$$.file |
| 205 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 206 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 207 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 208 | if test -f conf$$.exe; then |
| 209 | # Don't use ln at all; we don't have any links |
| 210 | as_ln_s='cp -p' |
| 211 | else |
| 212 | as_ln_s='ln -s' |
| 213 | fi |
| 214 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 215 | as_ln_s=ln |
| 216 | else |
| 217 | as_ln_s='cp -p' |
| 218 | fi |
| 219 | rm -f conf$$ conf$$.exe conf$$.file |
| 220 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 221 | if mkdir -p . 2>/dev/null; then |
| 222 | as_mkdir_p=: |
| 223 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 224 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 225 | as_mkdir_p=false |
| 226 | fi |
| 227 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 228 | as_executable_p="test -f" |
| 229 | |
| 230 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 231 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 232 | |
| 233 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 234 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 235 | |
| 236 | |
| 237 | # IFS |
| 238 | # We need space, tab and new line, in precisely that order. |
| 239 | as_nl=' |
| 240 | ' |
| 241 | IFS=" $as_nl" |
| 242 | |
| 243 | # CDPATH. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 244 | $as_unset CDPATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 245 | |
| 246 | |
| 247 | # Name of the host. |
| 248 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 249 | # so uname gets run too. |
| 250 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 251 | |
| 252 | exec 6>&1 |
| 253 | |
| 254 | # |
| 255 | # Initializations. |
| 256 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 257 | ac_default_prefix=/usr/local |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 258 | ac_config_libobj_dir=. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 259 | cross_compiling=no |
| 260 | subdirs= |
| 261 | MFLAGS= |
| 262 | MAKEFLAGS= |
| 263 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 264 | |
| 265 | # Maximum number of lines to put in a shell here document. |
| 266 | # This variable seems obsolete. It should probably be removed, and |
| 267 | # only ac_max_sed_lines should be used. |
| 268 | : ${ac_max_here_lines=38} |
| 269 | |
| 270 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 271 | PACKAGE_NAME='python' |
| 272 | PACKAGE_TARNAME='python' |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 273 | PACKAGE_VERSION='2.5' |
| 274 | PACKAGE_STRING='python 2.5' |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 275 | PACKAGE_BUGREPORT='http://www.python.org/python-bugs' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 276 | |
| 277 | ac_unique_file="Include/object.h" |
| 278 | # Factoring default headers for most tests. |
| 279 | ac_includes_default="\ |
| 280 | #include <stdio.h> |
| 281 | #if HAVE_SYS_TYPES_H |
| 282 | # include <sys/types.h> |
| 283 | #endif |
| 284 | #if HAVE_SYS_STAT_H |
| 285 | # include <sys/stat.h> |
| 286 | #endif |
| 287 | #if STDC_HEADERS |
| 288 | # include <stdlib.h> |
| 289 | # include <stddef.h> |
| 290 | #else |
| 291 | # if HAVE_STDLIB_H |
| 292 | # include <stdlib.h> |
| 293 | # endif |
| 294 | #endif |
| 295 | #if HAVE_STRING_H |
| 296 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 297 | # include <memory.h> |
| 298 | # endif |
| 299 | # include <string.h> |
| 300 | #endif |
| 301 | #if HAVE_STRINGS_H |
| 302 | # include <strings.h> |
| 303 | #endif |
| 304 | #if HAVE_INTTYPES_H |
| 305 | # include <inttypes.h> |
| 306 | #else |
| 307 | # if HAVE_STDINT_H |
| 308 | # include <stdint.h> |
| 309 | # endif |
| 310 | #endif |
| 311 | #if HAVE_UNISTD_H |
| 312 | # include <unistd.h> |
| 313 | #endif" |
| 314 | |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 315 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION SOVERSION CONFIG_ARGS PYTHONFRAMEWORK PYTHONFRAMEWORKDIR PYTHONFRAMEWORKPREFIX PYTHONFRAMEWORKINSTALLDIR MACHDEP SGI_ABI EXTRAPLATDIR EXTRAMACHDEPPATH CONFIGURE_MACOSX_DEPLOYMENT_TARGET CXX MAINOBJ EXEEXT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT CPP EGREP BUILDEXEEXT LIBRARY LDLIBRARY DLLLIBRARY BLDLIBRARY LDLIBRARYDIR INSTSONAME RUNSHARED LINKCC RANLIB ac_ct_RANLIB AR SVNVERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN OPT BASECFLAGS OTHER_LIBTOOL_OPT LIBTOOL_CRUFT SO LDSHARED BLDSHARED CCSHARED LINKFORSHARED CFLAGSFORSHARED SHLIBS USE_SIGNAL_MODULE SIGNAL_OBJS USE_THREAD_MODULE LDLAST THREADOBJ DLINCLDIR DYNLOADFILE MACHDEP_OBJS TRUE LIBOBJS HAVE_GETHOSTBYNAME_R_6_ARG HAVE_GETHOSTBYNAME_R_5_ARG HAVE_GETHOSTBYNAME_R_3_ARG HAVE_GETHOSTBYNAME_R HAVE_GETHOSTBYNAME LIBM LIBC UNICODE_OBJS THREADHEADERS SRCDIRS LTLIBOBJS' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 316 | ac_subst_files='' |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 317 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 318 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 319 | ac_init_help= |
| 320 | ac_init_version=false |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 321 | # The variables have the same names as the options, with |
| 322 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 323 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 324 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 325 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 326 | no_recursion= |
| 327 | prefix=NONE |
| 328 | program_prefix=NONE |
| 329 | program_suffix=NONE |
| 330 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 331 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 332 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 333 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 334 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 335 | x_includes=NONE |
| 336 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 337 | |
| 338 | # Installation directory options. |
| 339 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 340 | # and all the variables that are supposed to be based on exec_prefix |
| 341 | # by default will actually change. |
| 342 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 343 | bindir='${exec_prefix}/bin' |
| 344 | sbindir='${exec_prefix}/sbin' |
| 345 | libexecdir='${exec_prefix}/libexec' |
| 346 | datadir='${prefix}/share' |
| 347 | sysconfdir='${prefix}/etc' |
| 348 | sharedstatedir='${prefix}/com' |
| 349 | localstatedir='${prefix}/var' |
| 350 | libdir='${exec_prefix}/lib' |
| 351 | includedir='${prefix}/include' |
| 352 | oldincludedir='/usr/include' |
| 353 | infodir='${prefix}/info' |
| 354 | mandir='${prefix}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 355 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 356 | ac_prev= |
| 357 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 358 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 359 | # If the previous option needs an argument, assign it. |
| 360 | if test -n "$ac_prev"; then |
| 361 | eval "$ac_prev=\$ac_option" |
| 362 | ac_prev= |
| 363 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 364 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 365 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 366 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 367 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 368 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 369 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 370 | case $ac_option in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 371 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 372 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 373 | ac_prev=bindir ;; |
| 374 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 375 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 376 | |
| 377 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 378 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 379 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 380 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 381 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 382 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 383 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 384 | ac_prev=cache_file ;; |
| 385 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 386 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 387 | cache_file=$ac_optarg ;; |
| 388 | |
| 389 | --config-cache | -C) |
| 390 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 391 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 392 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 393 | ac_prev=datadir ;; |
| 394 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 395 | | --da=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 396 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 397 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 398 | -disable-* | --disable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 399 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 400 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 401 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 402 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 403 | { (exit 1); exit 1; }; } |
| 404 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 405 | eval "enable_$ac_feature=no" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 406 | |
| 407 | -enable-* | --enable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 408 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 409 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 410 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 411 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 412 | { (exit 1); exit 1; }; } |
| 413 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 414 | case $ac_option in |
| 415 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 416 | *) ac_optarg=yes ;; |
| 417 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 418 | eval "enable_$ac_feature='$ac_optarg'" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 419 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 420 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 421 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 422 | | --exec | --exe | --ex) |
| 423 | ac_prev=exec_prefix ;; |
| 424 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 425 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 426 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 427 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 428 | |
| 429 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 430 | # Obsolete; use --with-gas. |
| 431 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 432 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 433 | -help | --help | --hel | --he | -h) |
| 434 | ac_init_help=long ;; |
| 435 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 436 | ac_init_help=recursive ;; |
| 437 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 438 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 439 | |
| 440 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 441 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 442 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 443 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 444 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 445 | -includedir | --includedir | --includedi | --included | --include \ |
| 446 | | --includ | --inclu | --incl | --inc) |
| 447 | ac_prev=includedir ;; |
| 448 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 449 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 450 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 451 | |
| 452 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 453 | ac_prev=infodir ;; |
| 454 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 455 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 456 | |
| 457 | -libdir | --libdir | --libdi | --libd) |
| 458 | ac_prev=libdir ;; |
| 459 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 460 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 461 | |
| 462 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 463 | | --libexe | --libex | --libe) |
| 464 | ac_prev=libexecdir ;; |
| 465 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 466 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 467 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 468 | |
| 469 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 470 | | --localstate | --localstat | --localsta | --localst \ |
| 471 | | --locals | --local | --loca | --loc | --lo) |
| 472 | ac_prev=localstatedir ;; |
| 473 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 474 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 475 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 476 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 477 | |
| 478 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 479 | ac_prev=mandir ;; |
| 480 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 481 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 482 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 483 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 484 | # Obsolete; use --without-fp. |
| 485 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 486 | |
| 487 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 488 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 489 | no_create=yes ;; |
| 490 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 491 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 492 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 493 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 494 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 495 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 496 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 497 | | --oldin | --oldi | --old | --ol | --o) |
| 498 | ac_prev=oldincludedir ;; |
| 499 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 500 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 501 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 502 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 503 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 504 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 505 | ac_prev=prefix ;; |
| 506 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 507 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 508 | |
| 509 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 510 | | --program-pre | --program-pr | --program-p) |
| 511 | ac_prev=program_prefix ;; |
| 512 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 513 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 514 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 515 | |
| 516 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 517 | | --program-suf | --program-su | --program-s) |
| 518 | ac_prev=program_suffix ;; |
| 519 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 520 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 521 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 522 | |
| 523 | -program-transform-name | --program-transform-name \ |
| 524 | | --program-transform-nam | --program-transform-na \ |
| 525 | | --program-transform-n | --program-transform- \ |
| 526 | | --program-transform | --program-transfor \ |
| 527 | | --program-transfo | --program-transf \ |
| 528 | | --program-trans | --program-tran \ |
| 529 | | --progr-tra | --program-tr | --program-t) |
| 530 | ac_prev=program_transform_name ;; |
| 531 | -program-transform-name=* | --program-transform-name=* \ |
| 532 | | --program-transform-nam=* | --program-transform-na=* \ |
| 533 | | --program-transform-n=* | --program-transform-=* \ |
| 534 | | --program-transform=* | --program-transfor=* \ |
| 535 | | --program-transfo=* | --program-transf=* \ |
| 536 | | --program-trans=* | --program-tran=* \ |
| 537 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 538 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 539 | |
| 540 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 541 | | -silent | --silent | --silen | --sile | --sil) |
| 542 | silent=yes ;; |
| 543 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 544 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 545 | ac_prev=sbindir ;; |
| 546 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 547 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 548 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 549 | |
| 550 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 551 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 552 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 553 | | --sha | --sh) |
| 554 | ac_prev=sharedstatedir ;; |
| 555 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 556 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 557 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 558 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 559 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 560 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 561 | -site | --site | --sit) |
| 562 | ac_prev=site ;; |
| 563 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 564 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 565 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 566 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 567 | ac_prev=srcdir ;; |
| 568 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 569 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 570 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 571 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 572 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 573 | ac_prev=sysconfdir ;; |
| 574 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 575 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 576 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 577 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 578 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 579 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 580 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 581 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 582 | |
| 583 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 584 | verbose=yes ;; |
| 585 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 586 | -version | --version | --versio | --versi | --vers | -V) |
| 587 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 588 | |
| 589 | -with-* | --with-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 590 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 591 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 592 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 593 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 594 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 595 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 596 | case $ac_option in |
| 597 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 598 | *) ac_optarg=yes ;; |
| 599 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 600 | eval "with_$ac_package='$ac_optarg'" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 601 | |
| 602 | -without-* | --without-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 603 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 604 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 605 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 606 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 607 | { (exit 1); exit 1; }; } |
| 608 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 609 | eval "with_$ac_package=no" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 610 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 611 | --x) |
| 612 | # Obsolete; use --with-x. |
| 613 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 614 | |
| 615 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 616 | | --x-incl | --x-inc | --x-in | --x-i) |
| 617 | ac_prev=x_includes ;; |
| 618 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 619 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 620 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 621 | |
| 622 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 623 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 624 | ac_prev=x_libraries ;; |
| 625 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 626 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 627 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 628 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 629 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 630 | Try \`$0 --help' for more information." >&2 |
| 631 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 632 | ;; |
| 633 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 634 | *=*) |
| 635 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 636 | # Reject names that are not valid shell variable names. |
| 637 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 638 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 639 | { (exit 1); exit 1; }; } |
| 640 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 641 | eval "$ac_envvar='$ac_optarg'" |
| 642 | export $ac_envvar ;; |
| 643 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 644 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 645 | # FIXME: should be removed in autoconf 3.0. |
| 646 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 647 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 648 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 649 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 650 | ;; |
| 651 | |
| 652 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 653 | done |
| 654 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 655 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 656 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 657 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 658 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 659 | fi |
| 660 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 661 | # Be sure to have absolute paths. |
| 662 | for ac_var in exec_prefix prefix |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 663 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 664 | eval ac_val=$`echo $ac_var` |
| 665 | case $ac_val in |
| 666 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 667 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 668 | { (exit 1); exit 1; }; };; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 669 | esac |
| 670 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 671 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 672 | # Be sure to have absolute paths. |
| 673 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 674 | localstatedir libdir includedir oldincludedir infodir mandir |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 675 | do |
| 676 | eval ac_val=$`echo $ac_var` |
| 677 | case $ac_val in |
| 678 | [\\/$]* | ?:[\\/]* ) ;; |
| 679 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 680 | { (exit 1); exit 1; }; };; |
| 681 | esac |
| 682 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 683 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 684 | # There might be people who depend on the old broken behavior: `$host' |
| 685 | # used to hold the argument of --host etc. |
| 686 | # FIXME: To remove some day. |
| 687 | build=$build_alias |
| 688 | host=$host_alias |
| 689 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 690 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 691 | # FIXME: To remove some day. |
| 692 | if test "x$host_alias" != x; then |
| 693 | if test "x$build_alias" = x; then |
| 694 | cross_compiling=maybe |
| 695 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 696 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 697 | elif test "x$build_alias" != "x$host_alias"; then |
| 698 | cross_compiling=yes |
| 699 | fi |
| 700 | fi |
| 701 | |
| 702 | ac_tool_prefix= |
| 703 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 704 | |
| 705 | test "$silent" = yes && exec 6>/dev/null |
| 706 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 707 | |
| 708 | # Find the source files, if location was not specified. |
| 709 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 710 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 711 | # Try the directory containing this script, then its parent. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 712 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 713 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 714 | X"$0" : 'X\(//\)[^/]' \| \ |
| 715 | X"$0" : 'X\(//\)$' \| \ |
| 716 | X"$0" : 'X\(/\)' \| \ |
| 717 | . : '\(.\)' 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 718 | echo X"$0" | |
| 719 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 720 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 721 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 722 | /^X\(\/\).*/{ s//\1/; q; } |
| 723 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 724 | srcdir=$ac_confdir |
| 725 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 726 | srcdir=.. |
| 727 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 728 | else |
| 729 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 730 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 731 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 732 | if test "$ac_srcdir_defaulted" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 734 | { (exit 1); exit 1; }; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 735 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 736 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 737 | { (exit 1); exit 1; }; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 738 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 739 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 740 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 741 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 742 | { (exit 1); exit 1; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 743 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 744 | ac_env_build_alias_set=${build_alias+set} |
| 745 | ac_env_build_alias_value=$build_alias |
| 746 | ac_cv_env_build_alias_set=${build_alias+set} |
| 747 | ac_cv_env_build_alias_value=$build_alias |
| 748 | ac_env_host_alias_set=${host_alias+set} |
| 749 | ac_env_host_alias_value=$host_alias |
| 750 | ac_cv_env_host_alias_set=${host_alias+set} |
| 751 | ac_cv_env_host_alias_value=$host_alias |
| 752 | ac_env_target_alias_set=${target_alias+set} |
| 753 | ac_env_target_alias_value=$target_alias |
| 754 | ac_cv_env_target_alias_set=${target_alias+set} |
| 755 | ac_cv_env_target_alias_value=$target_alias |
| 756 | ac_env_CC_set=${CC+set} |
| 757 | ac_env_CC_value=$CC |
| 758 | ac_cv_env_CC_set=${CC+set} |
| 759 | ac_cv_env_CC_value=$CC |
| 760 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 761 | ac_env_CFLAGS_value=$CFLAGS |
| 762 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 763 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 764 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 765 | ac_env_LDFLAGS_value=$LDFLAGS |
| 766 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 767 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 768 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 769 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 770 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 771 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 772 | ac_env_CPP_set=${CPP+set} |
| 773 | ac_env_CPP_value=$CPP |
| 774 | ac_cv_env_CPP_set=${CPP+set} |
| 775 | ac_cv_env_CPP_value=$CPP |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 776 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 777 | # |
| 778 | # Report the --help message. |
| 779 | # |
| 780 | if test "$ac_init_help" = "long"; then |
| 781 | # Omit some internal or obsolete options to make the list less imposing. |
| 782 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 783 | cat <<_ACEOF |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 784 | \`configure' configures python 2.5 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 785 | |
| 786 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 787 | |
| 788 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 789 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 790 | |
| 791 | Defaults for the options are specified in brackets. |
| 792 | |
| 793 | Configuration: |
| 794 | -h, --help display this help and exit |
| 795 | --help=short display options specific to this package |
| 796 | --help=recursive display the short help of all the included packages |
| 797 | -V, --version display version information and exit |
| 798 | -q, --quiet, --silent do not print \`checking...' messages |
| 799 | --cache-file=FILE cache test results in FILE [disabled] |
| 800 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 801 | -n, --no-create do not create output files |
| 802 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 803 | |
| 804 | _ACEOF |
| 805 | |
| 806 | cat <<_ACEOF |
| 807 | Installation directories: |
| 808 | --prefix=PREFIX install architecture-independent files in PREFIX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 809 | [$ac_default_prefix] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 810 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 811 | [PREFIX] |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 812 | |
| 813 | By default, \`make install' will install all the files in |
| 814 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 815 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 816 | for instance \`--prefix=\$HOME'. |
| 817 | |
| 818 | For better control, use the options below. |
| 819 | |
| 820 | Fine tuning of the installation directories: |
| 821 | --bindir=DIR user executables [EPREFIX/bin] |
| 822 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 823 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 824 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 825 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 826 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 827 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 828 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 829 | --includedir=DIR C header files [PREFIX/include] |
| 830 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 831 | --infodir=DIR info documentation [PREFIX/info] |
| 832 | --mandir=DIR man documentation [PREFIX/man] |
| 833 | _ACEOF |
| 834 | |
| 835 | cat <<\_ACEOF |
| 836 | _ACEOF |
| 837 | fi |
| 838 | |
| 839 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 840 | case $ac_init_help in |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 841 | short | recursive ) echo "Configuration of python 2.5:";; |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 842 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 843 | cat <<\_ACEOF |
| 844 | |
| 845 | Optional Features: |
| 846 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 847 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 848 | --enable-framework[=INSTALLDIR] |
| 849 | Build (MacOSX|Darwin) framework |
| 850 | --enable-shared disable/enable building shared python library |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 851 | --enable-profiling enable C-level code profiling |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 852 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 853 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 854 | --disable-ipv6 Disable ipv6 support |
| 855 | --enable-unicode[=ucs[24]] |
| 856 | Enable Unicode strings (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 857 | |
| 858 | Optional Packages: |
| 859 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 860 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 861 | --without-gcc never use gcc |
| 862 | --with-cxx=<compiler> enable C++ support |
| 863 | --with-suffix=.exe set executable suffix |
| 864 | --with-pydebug build with Py_DEBUG defined |
| 865 | --with-libs='lib1 ...' link against additional libs |
| 866 | --with-signal-module disable/enable signal module |
| 867 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 868 | --with(out)-threads[=DIRECTORY] |
| 869 | disable/enable thread support |
| 870 | --with(out)-thread[=DIRECTORY] |
| 871 | deprecated; use --with(out)-threads |
| 872 | --with-pth use GNU pth threading libraries |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 873 | --with(out)-doc-strings disable/enable documentation strings |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 874 | --with(out)-tsc enable/disable timestamp counter profile |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 875 | --with(out)-pymalloc disable/enable specialized mallocs |
| 876 | --with-wctype-functions use wctype.h functions |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 877 | --with-fpectl enable SIGFPE catching |
| 878 | --with-libm=STRING math library |
| 879 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 880 | |
| 881 | Some influential environment variables: |
| 882 | CC C compiler command |
| 883 | CFLAGS C compiler flags |
| 884 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 885 | nonstandard directory <lib dir> |
| 886 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 887 | headers in a nonstandard directory <include dir> |
| 888 | CPP C preprocessor |
| 889 | |
| 890 | Use these variables to override the choices made by `configure' or to help |
| 891 | it to find libraries and programs with nonstandard names/locations. |
| 892 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 893 | Report bugs to <http://www.python.org/python-bugs>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 894 | _ACEOF |
| 895 | fi |
| 896 | |
| 897 | if test "$ac_init_help" = "recursive"; then |
| 898 | # If there are subdirs, report their specific --help. |
| 899 | ac_popdir=`pwd` |
| 900 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 901 | test -d $ac_dir || continue |
| 902 | ac_builddir=. |
| 903 | |
| 904 | if test "$ac_dir" != .; then |
| 905 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 906 | # A "../" for each directory in $ac_dir_suffix. |
| 907 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 908 | else |
| 909 | ac_dir_suffix= ac_top_builddir= |
| 910 | fi |
| 911 | |
| 912 | case $srcdir in |
| 913 | .) # No --srcdir option. We are building in place. |
| 914 | ac_srcdir=. |
| 915 | if test -z "$ac_top_builddir"; then |
| 916 | ac_top_srcdir=. |
| 917 | else |
| 918 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 919 | fi ;; |
| 920 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 921 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 922 | ac_top_srcdir=$srcdir ;; |
| 923 | *) # Relative path. |
| 924 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 925 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 926 | esac |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 927 | |
| 928 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 929 | # the directories may not exist. |
| 930 | case `pwd` in |
| 931 | .) ac_abs_builddir="$ac_dir";; |
| 932 | *) |
| 933 | case "$ac_dir" in |
| 934 | .) ac_abs_builddir=`pwd`;; |
| 935 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 936 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 937 | esac;; |
| 938 | esac |
| 939 | case $ac_abs_builddir in |
| 940 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 941 | *) |
| 942 | case ${ac_top_builddir}. in |
| 943 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 944 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 945 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 946 | esac;; |
| 947 | esac |
| 948 | case $ac_abs_builddir in |
| 949 | .) ac_abs_srcdir=$ac_srcdir;; |
| 950 | *) |
| 951 | case $ac_srcdir in |
| 952 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 953 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 954 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 955 | esac;; |
| 956 | esac |
| 957 | case $ac_abs_builddir in |
| 958 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 959 | *) |
| 960 | case $ac_top_srcdir in |
| 961 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 962 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 963 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 964 | esac;; |
| 965 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 966 | |
| 967 | cd $ac_dir |
| 968 | # Check for guested configure; otherwise get Cygnus style configure. |
| 969 | if test -f $ac_srcdir/configure.gnu; then |
| 970 | echo |
| 971 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 972 | elif test -f $ac_srcdir/configure; then |
| 973 | echo |
| 974 | $SHELL $ac_srcdir/configure --help=recursive |
| 975 | elif test -f $ac_srcdir/configure.ac || |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 976 | test -f $ac_srcdir/configure.in; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 977 | echo |
| 978 | $ac_configure --help |
| 979 | else |
| 980 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 981 | fi |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 982 | cd $ac_popdir |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 983 | done |
| 984 | fi |
| 985 | |
| 986 | test -n "$ac_init_help" && exit 0 |
| 987 | if $ac_init_version; then |
| 988 | cat <<\_ACEOF |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 989 | python configure 2.5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 990 | generated by GNU Autoconf 2.59 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 991 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 992 | Copyright (C) 2003 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 993 | This configure script is free software; the Free Software Foundation |
| 994 | gives unlimited permission to copy, distribute and modify it. |
| 995 | _ACEOF |
| 996 | exit 0 |
| 997 | fi |
| 998 | exec 5>config.log |
| 999 | cat >&5 <<_ACEOF |
| 1000 | This file contains any messages produced by compilers while |
| 1001 | running configure, to aid debugging if configure makes a mistake. |
| 1002 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 1003 | It was created by python $as_me 2.5, which was |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1004 | generated by GNU Autoconf 2.59. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1005 | |
| 1006 | $ $0 $@ |
| 1007 | |
| 1008 | _ACEOF |
| 1009 | { |
| 1010 | cat <<_ASUNAME |
| 1011 | ## --------- ## |
| 1012 | ## Platform. ## |
| 1013 | ## --------- ## |
| 1014 | |
| 1015 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1016 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1017 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1018 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1019 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1020 | |
| 1021 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1022 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1023 | |
| 1024 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1025 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1026 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1027 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1028 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1029 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1030 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1031 | |
| 1032 | _ASUNAME |
| 1033 | |
| 1034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1035 | for as_dir in $PATH |
| 1036 | do |
| 1037 | IFS=$as_save_IFS |
| 1038 | test -z "$as_dir" && as_dir=. |
| 1039 | echo "PATH: $as_dir" |
| 1040 | done |
| 1041 | |
| 1042 | } >&5 |
| 1043 | |
| 1044 | cat >&5 <<_ACEOF |
| 1045 | |
| 1046 | |
| 1047 | ## ----------- ## |
| 1048 | ## Core tests. ## |
| 1049 | ## ----------- ## |
| 1050 | |
| 1051 | _ACEOF |
| 1052 | |
| 1053 | |
| 1054 | # Keep a trace of the command line. |
| 1055 | # Strip out --no-create and --no-recursion so they do not pile up. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1056 | # Strip out --silent because we don't want to record it for future runs. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1057 | # Also quote any args containing shell meta-characters. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1058 | # Make two passes to allow for proper duplicate-argument suppression. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1059 | ac_configure_args= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1060 | ac_configure_args0= |
| 1061 | ac_configure_args1= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1062 | ac_sep= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1063 | ac_must_keep_next=false |
| 1064 | for ac_pass in 1 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1065 | do |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1066 | for ac_arg |
| 1067 | do |
| 1068 | case $ac_arg in |
| 1069 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1070 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1071 | | -silent | --silent | --silen | --sile | --sil) |
| 1072 | continue ;; |
| 1073 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1074 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1075 | esac |
| 1076 | case $ac_pass in |
| 1077 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1078 | 2) |
| 1079 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1080 | if test $ac_must_keep_next = true; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1081 | ac_must_keep_next=false # Got value, back to normal. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1082 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1083 | case $ac_arg in |
| 1084 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1085 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1086 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1087 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1088 | case "$ac_configure_args0 " in |
| 1089 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1090 | esac |
| 1091 | ;; |
| 1092 | -* ) ac_must_keep_next=true ;; |
| 1093 | esac |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1094 | fi |
| 1095 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1096 | # Get rid of the leading space. |
| 1097 | ac_sep=" " |
| 1098 | ;; |
| 1099 | esac |
| 1100 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1101 | done |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1102 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1103 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1104 | |
| 1105 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1106 | # config.log. We remove comments because anyway the quotes in there |
| 1107 | # would cause problems or look ugly. |
| 1108 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1109 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1110 | trap 'exit_status=$? |
| 1111 | # Save into config.log some information that might help in debugging. |
| 1112 | { |
| 1113 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1114 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1115 | cat <<\_ASBOX |
| 1116 | ## ---------------- ## |
| 1117 | ## Cache variables. ## |
| 1118 | ## ---------------- ## |
| 1119 | _ASBOX |
| 1120 | echo |
| 1121 | # The following way of writing the cache mishandles newlines in values, |
| 1122 | { |
| 1123 | (set) 2>&1 | |
| 1124 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1125 | *ac_space=\ *) |
| 1126 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1127 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1128 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1129 | ;; |
| 1130 | *) |
| 1131 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1132 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1133 | ;; |
| 1134 | esac; |
| 1135 | } |
| 1136 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1137 | |
| 1138 | cat <<\_ASBOX |
| 1139 | ## ----------------- ## |
| 1140 | ## Output variables. ## |
| 1141 | ## ----------------- ## |
| 1142 | _ASBOX |
| 1143 | echo |
| 1144 | for ac_var in $ac_subst_vars |
| 1145 | do |
| 1146 | eval ac_val=$`echo $ac_var` |
| 1147 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1148 | done | sort |
| 1149 | echo |
| 1150 | |
| 1151 | if test -n "$ac_subst_files"; then |
| 1152 | cat <<\_ASBOX |
| 1153 | ## ------------- ## |
| 1154 | ## Output files. ## |
| 1155 | ## ------------- ## |
| 1156 | _ASBOX |
| 1157 | echo |
| 1158 | for ac_var in $ac_subst_files |
| 1159 | do |
| 1160 | eval ac_val=$`echo $ac_var` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1161 | echo "$ac_var='"'"'$ac_val'"'"'" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1162 | done | sort |
| 1163 | echo |
| 1164 | fi |
| 1165 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1166 | if test -s confdefs.h; then |
| 1167 | cat <<\_ASBOX |
| 1168 | ## ----------- ## |
| 1169 | ## confdefs.h. ## |
| 1170 | ## ----------- ## |
| 1171 | _ASBOX |
| 1172 | echo |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1173 | sed "/^$/d" confdefs.h | sort |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1174 | echo |
| 1175 | fi |
| 1176 | test "$ac_signal" != 0 && |
| 1177 | echo "$as_me: caught signal $ac_signal" |
| 1178 | echo "$as_me: exit $exit_status" |
| 1179 | } >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1180 | rm -f core *.core && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1181 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1182 | exit $exit_status |
| 1183 | ' 0 |
| 1184 | for ac_signal in 1 2 13 15; do |
| 1185 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1186 | done |
| 1187 | ac_signal=0 |
| 1188 | |
| 1189 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1190 | rm -rf conftest* confdefs.h |
| 1191 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1192 | echo >confdefs.h |
| 1193 | |
| 1194 | # Predefined preprocessor variables. |
| 1195 | |
| 1196 | cat >>confdefs.h <<_ACEOF |
| 1197 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1198 | _ACEOF |
| 1199 | |
| 1200 | |
| 1201 | cat >>confdefs.h <<_ACEOF |
| 1202 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1203 | _ACEOF |
| 1204 | |
| 1205 | |
| 1206 | cat >>confdefs.h <<_ACEOF |
| 1207 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1208 | _ACEOF |
| 1209 | |
| 1210 | |
| 1211 | cat >>confdefs.h <<_ACEOF |
| 1212 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1213 | _ACEOF |
| 1214 | |
| 1215 | |
| 1216 | cat >>confdefs.h <<_ACEOF |
| 1217 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1218 | _ACEOF |
| 1219 | |
| 1220 | |
| 1221 | # Let the site file select an alternate cache file if it wants to. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1222 | # Prefer explicitly selected file to automatically selected ones. |
| 1223 | if test -z "$CONFIG_SITE"; then |
| 1224 | if test "x$prefix" != xNONE; then |
| 1225 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1226 | else |
| 1227 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1228 | fi |
| 1229 | fi |
| 1230 | for ac_site_file in $CONFIG_SITE; do |
| 1231 | if test -r "$ac_site_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1232 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1233 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1234 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1235 | . "$ac_site_file" |
| 1236 | fi |
| 1237 | done |
| 1238 | |
| 1239 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1240 | # Some versions of bash will fail to source /dev/null (special |
| 1241 | # files actually), so we avoid doing that. |
| 1242 | if test -f "$cache_file"; then |
| 1243 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1244 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1245 | case $cache_file in |
| 1246 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1247 | *) . ./$cache_file;; |
| 1248 | esac |
| 1249 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1250 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1251 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1252 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1253 | >$cache_file |
| 1254 | fi |
| 1255 | |
| 1256 | # Check that the precious variables saved in the cache have kept the same |
| 1257 | # value. |
| 1258 | ac_cache_corrupted=false |
| 1259 | for ac_var in `(set) 2>&1 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1260 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1261 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1262 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1263 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1264 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1265 | case $ac_old_set,$ac_new_set in |
| 1266 | set,) |
| 1267 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1268 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1269 | ac_cache_corrupted=: ;; |
| 1270 | ,set) |
| 1271 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1272 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1273 | ac_cache_corrupted=: ;; |
| 1274 | ,);; |
| 1275 | *) |
| 1276 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1277 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1278 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1279 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1280 | echo "$as_me: former value: $ac_old_val" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1281 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1282 | echo "$as_me: current value: $ac_new_val" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1283 | ac_cache_corrupted=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1284 | fi;; |
| 1285 | esac |
| 1286 | # Pass precious variables to config.status. |
| 1287 | if test "$ac_new_set" = set; then |
| 1288 | case $ac_new_val in |
| 1289 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1290 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1291 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1292 | esac |
| 1293 | case " $ac_configure_args " in |
| 1294 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1295 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1296 | esac |
| 1297 | fi |
| 1298 | done |
| 1299 | if $ac_cache_corrupted; then |
| 1300 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1301 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1302 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1303 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1304 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1305 | fi |
| 1306 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1307 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1308 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1309 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1310 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1311 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1312 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1313 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1314 | |
| 1315 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1316 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1317 | |
| 1318 | |
| 1319 | |
| 1320 | |
| 1321 | |
| 1322 | |
| 1323 | |
| 1324 | |
| 1325 | |
| 1326 | |
| 1327 | |
| 1328 | |
| 1329 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1330 | |
| 1331 | |
| 1332 | |
| 1333 | |
| 1334 | |
| 1335 | |
| 1336 | |
| 1337 | |
| 1338 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1339 | |
| 1340 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1341 | |
| 1342 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1343 | |
| 1344 | |
| 1345 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1346 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1347 | |
Martin v. Löwis | 8316feb | 2003-06-14 07:48:07 +0000 | [diff] [blame] | 1348 | # We don't use PACKAGE_ variables, and they cause conflicts |
| 1349 | # with other autoconf-based packages that include Python.h |
| 1350 | grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new |
| 1351 | rm confdefs.h |
| 1352 | mv confdefs.h.new confdefs.h |
| 1353 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1354 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 1355 | VERSION=2.5 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1356 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1357 | |
| 1358 | SOVERSION=1.0 |
| 1359 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1360 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1361 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1362 | |
| 1363 | cat >>confdefs.h <<\_ACEOF |
| 1364 | #define _GNU_SOURCE 1 |
| 1365 | _ACEOF |
| 1366 | |
| 1367 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1368 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1369 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1370 | # them. |
| 1371 | |
| 1372 | cat >>confdefs.h <<\_ACEOF |
| 1373 | #define _NETBSD_SOURCE 1 |
| 1374 | _ACEOF |
| 1375 | |
| 1376 | |
Andrew MacIntyre | abccf41 | 2003-07-02 13:53:25 +0000 | [diff] [blame] | 1377 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1378 | # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
| 1379 | # them. |
| 1380 | |
| 1381 | cat >>confdefs.h <<\_ACEOF |
| 1382 | #define __BSD_VISIBLE 1 |
| 1383 | _ACEOF |
| 1384 | |
| 1385 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 1386 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1387 | # u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
| 1388 | |
| 1389 | cat >>confdefs.h <<\_ACEOF |
| 1390 | #define _BSD_TYPES 1 |
| 1391 | _ACEOF |
| 1392 | |
| 1393 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1394 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1395 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1396 | # Arguments passed to configure. |
| 1397 | |
| 1398 | CONFIG_ARGS="$ac_configure_args" |
| 1399 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1400 | # Check whether --enable-framework or --disable-framework was given. |
| 1401 | if test "${enable_framework+set}" = set; then |
| 1402 | enableval="$enable_framework" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1403 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1404 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1405 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1406 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1407 | esac |
| 1408 | case $enableval in |
| 1409 | no) |
| 1410 | PYTHONFRAMEWORK= |
| 1411 | PYTHONFRAMEWORKDIR=no-framework |
| 1412 | PYTHONFRAMEWORKPREFIX= |
| 1413 | PYTHONFRAMEWORKINSTALLDIR= |
| 1414 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1415 | ;; |
| 1416 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1417 | PYTHONFRAMEWORK=Python |
| 1418 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1419 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1420 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
| 1421 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1422 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1423 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1424 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1425 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1426 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1427 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1428 | PYTHONFRAMEWORKPREFIX= |
| 1429 | PYTHONFRAMEWORKINSTALLDIR= |
| 1430 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1431 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1432 | fi; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1433 | |
| 1434 | |
| 1435 | |
| 1436 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1437 | |
| 1438 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1439 | ## AC_HELP_STRING(--with-dyld, |
| 1440 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1441 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1442 | # Set name for machine-dependent library files |
| 1443 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1444 | echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1445 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1446 | if test -z "$MACHDEP" |
| 1447 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1448 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 1449 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 1450 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1451 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1452 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1453 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1454 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1455 | ac_md_system=`echo $ac_sys_system | |
| 1456 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1457 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1458 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1459 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1460 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1461 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1462 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1463 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1464 | atheos*) MACHDEP="atheos";; |
Martin v. Löwis | f332228 | 2003-07-13 09:46:13 +0000 | [diff] [blame] | 1465 | irix646) MACHDEP="irix6";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1466 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1467 | esac |
| 1468 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1469 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1470 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 1471 | # disable features if it is defined, without any means to access these |
| 1472 | # features as extensions. For these systems, we skip the definition of |
| 1473 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 1474 | # some feature, make sure there is no alternative way to access this |
| 1475 | # feature. Also, when using wildcards, make sure you have verified the |
| 1476 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 1477 | # wildcard, and that the wildcard does not include future systems |
| 1478 | # (which may remove their limitations). |
| 1479 | case $ac_sys_system/$ac_sys_release in |
| 1480 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 1481 | # even though select is a POSIX function. Reported by J. Ribbens. |
Martin v. Löwis | 76bafc6 | 2003-10-03 13:47:44 +0000 | [diff] [blame] | 1482 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. |
Neal Norwitz | 671b9e3 | 2006-01-09 07:07:12 +0000 | [diff] [blame] | 1483 | OpenBSD/2.* | OpenBSD/3.[012345678]) |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1484 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 1485 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 1486 | # of union __?sigval. Reported by Stuart Bishop. |
| 1487 | SunOS/5.6) |
| 1488 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1489 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 1490 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 1491 | # Reconfirmed for 7.1.4 by Martin v. Loewis. |
Martin v. Löwis | 253d1f4 | 2004-05-07 19:14:14 +0000 | [diff] [blame] | 1492 | OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1493 | define_xopen_source=no;; |
| 1494 | # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE, |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 1495 | # but used in struct sockaddr.sa_family. Reported by Tim Rice. |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1496 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 1497 | define_xopen_source=no;; |
Anthony Baxter | 6169c6b | 2003-10-04 07:46:23 +0000 | [diff] [blame] | 1498 | # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that |
| 1499 | # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently, |
| 1500 | # this is fixed in 10.3, which identifies itself as Darwin/7.* |
| 1501 | # This should hopefully be fixed in FreeBSD 4.9 |
| 1502 | FreeBSD/4.8* | Darwin/6* ) |
| 1503 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 1504 | # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but |
| 1505 | # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined |
| 1506 | # or has another value. By not (re)defining it, the defaults come in place. |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 1507 | AIX/4) |
| 1508 | define_xopen_source=no;; |
Trent Mick | c5625ba | 2004-08-25 23:59:39 +0000 | [diff] [blame] | 1509 | AIX/5) |
| 1510 | if test `uname -r` -eq 1; then |
| 1511 | define_xopen_source=no |
| 1512 | fi |
| 1513 | ;; |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 1514 | # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE |
| 1515 | # disables platform specific features beyond repair. |
| 1516 | Darwin/8.*) |
| 1517 | define_xopen_source=no |
| 1518 | ;; |
| 1519 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1520 | esac |
| 1521 | |
| 1522 | if test $define_xopen_source = yes |
| 1523 | then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1524 | # On Solaris w/ g++ it appears that _XOPEN_SOURCE has to be |
| 1525 | # defined precisely as g++ defines it |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 1526 | # Furthermore, on Solaris 10, XPG6 requires the use of a C99 |
| 1527 | # compiler |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1528 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 1529 | SunOS/5.8|SunOS/5.9|SunOS/5.10) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1530 | |
| 1531 | cat >>confdefs.h <<\_ACEOF |
| 1532 | #define _XOPEN_SOURCE 500 |
| 1533 | _ACEOF |
| 1534 | |
| 1535 | ;; |
| 1536 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1537 | |
| 1538 | cat >>confdefs.h <<\_ACEOF |
| 1539 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1540 | _ACEOF |
| 1541 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1542 | ;; |
| 1543 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1544 | |
| 1545 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 1546 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 1547 | # several APIs are not declared. Since this is also needed in some |
| 1548 | # cases for HP-UX, we define it globally. |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 1549 | # except for Solaris 10, where it must not be defined, |
| 1550 | # as it implies XPG4.2 |
| 1551 | case $ac_sys_system/$ac_sys_release in |
| 1552 | SunOS/5.10) |
| 1553 | ;; |
| 1554 | *) |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1555 | |
| 1556 | cat >>confdefs.h <<\_ACEOF |
| 1557 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 1558 | _ACEOF |
| 1559 | |
Martin v. Löwis | 7dece66 | 2005-11-26 11:38:24 +0000 | [diff] [blame] | 1560 | ;; |
| 1561 | esac |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1562 | |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 1563 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1564 | cat >>confdefs.h <<\_ACEOF |
| 1565 | #define _POSIX_C_SOURCE 200112L |
| 1566 | _ACEOF |
| 1567 | |
| 1568 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1569 | fi |
| 1570 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1571 | # |
| 1572 | # SGI compilers allow the specification of the both the ABI and the |
| 1573 | # ISA on the command line. Depending on the values of these switches, |
| 1574 | # different and often incompatable code will be generated. |
| 1575 | # |
| 1576 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 1577 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 1578 | # variable is also adjusted. |
| 1579 | # |
| 1580 | |
| 1581 | if test ! -z "$SGI_ABI" |
| 1582 | then |
| 1583 | CC="cc $SGI_ABI" |
| 1584 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 1585 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 1586 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1587 | echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 1588 | echo "${ECHO_T}$MACHDEP" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1589 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1590 | # And add extra plat-mac for darwin |
| 1591 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1592 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1593 | echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 1594 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6 |
| 1595 | if test -z "$EXTRAPLATDIR" |
| 1596 | then |
| 1597 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1598 | darwin) |
| 1599 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 1600 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 1601 | ;; |
| 1602 | *) |
| 1603 | EXTRAPLATDIR="" |
| 1604 | EXTRAMACHDEPPATH="" |
| 1605 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1606 | esac |
| 1607 | fi |
| 1608 | echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 1609 | echo "${ECHO_T}$EXTRAPLATDIR" >&6 |
| 1610 | |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 1611 | # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, |
| 1612 | # it may influence the way we can build extensions, so distutils |
| 1613 | # needs to check it |
| 1614 | |
| 1615 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET= |
| 1616 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1617 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1618 | |
| 1619 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 1620 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 1621 | # just to get things to compile and link. Users are free to override OPT |
| 1622 | # when running configure or make. The build should not break if they do. |
| 1623 | # BASECFLAGS should generally not be messed with, however. |
| 1624 | |
| 1625 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 1626 | # on that fiddles with OPT and BASECFLAGS? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1627 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1628 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1629 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1630 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1631 | if test "${with_gcc+set}" = set; then |
| 1632 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1633 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1634 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1635 | no) CC=cc |
| 1636 | without_gcc=yes;; |
| 1637 | yes) CC=gcc |
| 1638 | without_gcc=no;; |
| 1639 | *) CC=$withval |
| 1640 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1641 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1642 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1643 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1644 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1645 | AIX*) CC=cc_r |
| 1646 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1647 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1648 | case $BE_HOST_CPU in |
| 1649 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1650 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1651 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1652 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 1653 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1654 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1655 | ;; |
| 1656 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1657 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1658 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1659 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1660 | ;; |
| 1661 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1662 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1663 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1664 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1665 | ;; |
| 1666 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1667 | AR="\$(srcdir)/Modules/ar_beos" |
| 1668 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1669 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1670 | Monterey*) |
| 1671 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1672 | without_gcc=;; |
| 1673 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1674 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1675 | fi; |
| 1676 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1677 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1678 | |
| 1679 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1680 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1681 | MAINOBJ=python.o |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1682 | echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5 |
| 1683 | echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6 |
| 1684 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1685 | # Check whether --with-cxx or --without-cxx was given. |
| 1686 | if test "${with_cxx+set}" = set; then |
| 1687 | withval="$with_cxx" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1688 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1689 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1690 | case $withval in |
| 1691 | no) CXX= |
| 1692 | with_cxx=no;; |
| 1693 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1694 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1695 | with_cxx=$withval;; |
| 1696 | esac |
| 1697 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1698 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1699 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1700 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1701 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1702 | fi; |
| 1703 | echo "$as_me:$LINENO: result: $with_cxx" >&5 |
| 1704 | echo "${ECHO_T}$with_cxx" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1705 | |
| 1706 | if test "$with_cxx" = "yes" |
| 1707 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1708 | { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5 |
| 1709 | echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;} |
| 1710 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1711 | fi |
| 1712 | |
| 1713 | |
| 1714 | |
| 1715 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1716 | if test "$check_cxx" = "yes" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1717 | then |
| 1718 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 1719 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1720 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1721 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1722 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1723 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1724 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1726 | else |
| 1727 | if test -n "$CXX"; then |
| 1728 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1729 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1731 | for as_dir in $PATH |
| 1732 | do |
| 1733 | IFS=$as_save_IFS |
| 1734 | test -z "$as_dir" && as_dir=. |
| 1735 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1736 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1737 | ac_cv_prog_CXX="$ac_prog" |
| 1738 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1739 | break 2 |
| 1740 | fi |
| 1741 | done |
| 1742 | done |
| 1743 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1744 | fi |
| 1745 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1746 | CXX=$ac_cv_prog_CXX |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1747 | if test -n "$CXX"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1748 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1749 | echo "${ECHO_T}$CXX" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1750 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1751 | echo "$as_me:$LINENO: result: no" >&5 |
| 1752 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1753 | fi |
| 1754 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1755 | test -n "$CXX" && break |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1756 | done |
| 1757 | test -n "$CXX" || CXX="notfound" |
| 1758 | |
| 1759 | if test "$CXX" = "notfound" |
| 1760 | then |
| 1761 | CXX= |
| 1762 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1763 | ac_ext=cc |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1764 | ac_cpp='$CXXCPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1765 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1766 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1767 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1768 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1769 | /* confdefs.h. */ |
| 1770 | _ACEOF |
| 1771 | cat confdefs.h >>conftest.$ac_ext |
| 1772 | cat >>conftest.$ac_ext <<_ACEOF |
| 1773 | /* end confdefs.h. */ |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1774 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1775 | int |
| 1776 | main () |
| 1777 | { |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1778 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1779 | ; |
| 1780 | return 0; |
| 1781 | } |
| 1782 | _ACEOF |
| 1783 | ac_clean_files_save=$ac_clean_files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1784 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1785 | # Try to create an executable without -o first, disregard a.out. |
| 1786 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1787 | # of exeext. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1788 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
| 1789 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1790 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1791 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1792 | (eval $ac_link_default) 2>&5 |
| 1793 | ac_status=$? |
| 1794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1795 | (exit $ac_status); }; then |
| 1796 | # Find the output, starting from the most likely. This scheme is |
| 1797 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1798 | # resort. |
| 1799 | |
| 1800 | # Be careful to initialize this variable, since it used to be cached. |
| 1801 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1802 | ac_cv_exeext= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1803 | # b.out is created by i960 compilers. |
| 1804 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1805 | do |
| 1806 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1807 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1808 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1809 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1810 | conftest.$ac_ext ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1811 | # This is the source file. |
| 1812 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1813 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1814 | # We found the default executable, but exeext='' is most |
| 1815 | # certainly right. |
| 1816 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1817 | *.* ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1818 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1819 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1820 | # but it would be cool to find out if it's true. Does anybody |
| 1821 | # maintain Libtool? --akim. |
| 1822 | export ac_cv_exeext |
| 1823 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1824 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1825 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1826 | esac |
| 1827 | done |
| 1828 | else |
| 1829 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1831 | |
| 1832 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
| 1833 | See \`config.log' for more details." >&5 |
| 1834 | echo "$as_me: error: C++ compiler cannot create executables |
| 1835 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1836 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1837 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1838 | |
| 1839 | ac_exeext=$ac_cv_exeext |
| 1840 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1841 | echo "${ECHO_T}$ac_file" >&6 |
| 1842 | |
| 1843 | # Check the compiler produces executables we can run. If not, either |
| 1844 | # the compiler is broken, or we cross compile. |
| 1845 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1846 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1847 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1848 | # If not cross compiling, check that we can run a simple program. |
| 1849 | if test "$cross_compiling" != yes; then |
| 1850 | if { ac_try='./$ac_file' |
| 1851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1852 | (eval $ac_try) 2>&5 |
| 1853 | ac_status=$? |
| 1854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1855 | (exit $ac_status); }; }; then |
| 1856 | cross_compiling=no |
| 1857 | else |
| 1858 | if test "$cross_compiling" = maybe; then |
| 1859 | cross_compiling=yes |
| 1860 | else |
| 1861 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1862 | If you meant to cross compile, use \`--host'. |
| 1863 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1864 | echo "$as_me: error: cannot run C++ compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1865 | If you meant to cross compile, use \`--host'. |
| 1866 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1867 | { (exit 1); exit 1; }; } |
| 1868 | fi |
| 1869 | fi |
| 1870 | fi |
| 1871 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1872 | echo "${ECHO_T}yes" >&6 |
| 1873 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1874 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1875 | ac_clean_files=$ac_clean_files_save |
| 1876 | # Check the compiler produces executables we can run. If not, either |
| 1877 | # the compiler is broken, or we cross compile. |
| 1878 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1879 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1880 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1881 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1882 | |
| 1883 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1884 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1885 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1886 | (eval $ac_link) 2>&5 |
| 1887 | ac_status=$? |
| 1888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1889 | (exit $ac_status); }; then |
| 1890 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1891 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1892 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1893 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1894 | for ac_file in conftest.exe conftest conftest.*; do |
| 1895 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1896 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1897 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1898 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 1899 | export ac_cv_exeext |
| 1900 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1901 | * ) break;; |
| 1902 | esac |
| 1903 | done |
| 1904 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 1905 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1906 | See \`config.log' for more details." >&5 |
| 1907 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1908 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1909 | { (exit 1); exit 1; }; } |
| 1910 | fi |
| 1911 | |
| 1912 | rm -f conftest$ac_cv_exeext |
| 1913 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1914 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1915 | |
| 1916 | rm -f conftest.$ac_ext |
| 1917 | EXEEXT=$ac_cv_exeext |
| 1918 | ac_exeext=$EXEEXT |
| 1919 | |
| 1920 | ac_ext=c |
| 1921 | ac_cpp='$CPP $CPPFLAGS' |
| 1922 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1923 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1924 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1925 | |
| 1926 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1927 | |
| 1928 | fi |
| 1929 | fi |
| 1930 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1931 | # If the user switches compilers, we can't believe the cache |
| 1932 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1933 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1934 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1935 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1936 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1937 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1938 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1939 | fi |
| 1940 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1941 | ac_ext=c |
| 1942 | ac_cpp='$CPP $CPPFLAGS' |
| 1943 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1944 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1945 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1946 | if test -n "$ac_tool_prefix"; then |
| 1947 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1948 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1949 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1950 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1951 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1953 | else |
| 1954 | if test -n "$CC"; then |
| 1955 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1956 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1958 | for as_dir in $PATH |
| 1959 | do |
| 1960 | IFS=$as_save_IFS |
| 1961 | test -z "$as_dir" && as_dir=. |
| 1962 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1963 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1964 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1965 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1966 | break 2 |
| 1967 | fi |
| 1968 | done |
| 1969 | done |
| 1970 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1971 | fi |
| 1972 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1973 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1974 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1975 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1976 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1977 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1978 | echo "$as_me:$LINENO: result: no" >&5 |
| 1979 | echo "${ECHO_T}no" >&6 |
| 1980 | fi |
| 1981 | |
| 1982 | fi |
| 1983 | if test -z "$ac_cv_prog_CC"; then |
| 1984 | ac_ct_CC=$CC |
| 1985 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1986 | set dummy gcc; ac_word=$2 |
| 1987 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1988 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1989 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1991 | else |
| 1992 | if test -n "$ac_ct_CC"; then |
| 1993 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1994 | else |
| 1995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1996 | for as_dir in $PATH |
| 1997 | do |
| 1998 | IFS=$as_save_IFS |
| 1999 | test -z "$as_dir" && as_dir=. |
| 2000 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2001 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2002 | ac_cv_prog_ac_ct_CC="gcc" |
| 2003 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2004 | break 2 |
| 2005 | fi |
| 2006 | done |
| 2007 | done |
| 2008 | |
| 2009 | fi |
| 2010 | fi |
| 2011 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2012 | if test -n "$ac_ct_CC"; then |
| 2013 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2014 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2015 | else |
| 2016 | echo "$as_me:$LINENO: result: no" >&5 |
| 2017 | echo "${ECHO_T}no" >&6 |
| 2018 | fi |
| 2019 | |
| 2020 | CC=$ac_ct_CC |
| 2021 | else |
| 2022 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2023 | fi |
| 2024 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2025 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2026 | if test -n "$ac_tool_prefix"; then |
| 2027 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2028 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2029 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2030 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2031 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2033 | else |
| 2034 | if test -n "$CC"; then |
| 2035 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2036 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2038 | for as_dir in $PATH |
| 2039 | do |
| 2040 | IFS=$as_save_IFS |
| 2041 | test -z "$as_dir" && as_dir=. |
| 2042 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2043 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2044 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2045 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2046 | break 2 |
| 2047 | fi |
| 2048 | done |
| 2049 | done |
| 2050 | |
| 2051 | fi |
| 2052 | fi |
| 2053 | CC=$ac_cv_prog_CC |
| 2054 | if test -n "$CC"; then |
| 2055 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2056 | echo "${ECHO_T}$CC" >&6 |
| 2057 | else |
| 2058 | echo "$as_me:$LINENO: result: no" >&5 |
| 2059 | echo "${ECHO_T}no" >&6 |
| 2060 | fi |
| 2061 | |
| 2062 | fi |
| 2063 | if test -z "$ac_cv_prog_CC"; then |
| 2064 | ac_ct_CC=$CC |
| 2065 | # Extract the first word of "cc", so it can be a program name with args. |
| 2066 | set dummy cc; ac_word=$2 |
| 2067 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2068 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2069 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2071 | else |
| 2072 | if test -n "$ac_ct_CC"; then |
| 2073 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2074 | else |
| 2075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2076 | for as_dir in $PATH |
| 2077 | do |
| 2078 | IFS=$as_save_IFS |
| 2079 | test -z "$as_dir" && as_dir=. |
| 2080 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2081 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2082 | ac_cv_prog_ac_ct_CC="cc" |
| 2083 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2084 | break 2 |
| 2085 | fi |
| 2086 | done |
| 2087 | done |
| 2088 | |
| 2089 | fi |
| 2090 | fi |
| 2091 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2092 | if test -n "$ac_ct_CC"; then |
| 2093 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2094 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2095 | else |
| 2096 | echo "$as_me:$LINENO: result: no" >&5 |
| 2097 | echo "${ECHO_T}no" >&6 |
| 2098 | fi |
| 2099 | |
| 2100 | CC=$ac_ct_CC |
| 2101 | else |
| 2102 | CC="$ac_cv_prog_CC" |
| 2103 | fi |
| 2104 | |
| 2105 | fi |
| 2106 | if test -z "$CC"; then |
| 2107 | # Extract the first word of "cc", so it can be a program name with args. |
| 2108 | set dummy cc; ac_word=$2 |
| 2109 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2110 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2111 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2113 | else |
| 2114 | if test -n "$CC"; then |
| 2115 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2116 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2117 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2118 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2119 | for as_dir in $PATH |
| 2120 | do |
| 2121 | IFS=$as_save_IFS |
| 2122 | test -z "$as_dir" && as_dir=. |
| 2123 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2124 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2125 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2126 | ac_prog_rejected=yes |
| 2127 | continue |
| 2128 | fi |
| 2129 | ac_cv_prog_CC="cc" |
| 2130 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2131 | break 2 |
| 2132 | fi |
| 2133 | done |
| 2134 | done |
| 2135 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2136 | if test $ac_prog_rejected = yes; then |
| 2137 | # We found a bogon in the path, so make sure we never use it. |
| 2138 | set dummy $ac_cv_prog_CC |
| 2139 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2140 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2141 | # We chose a different compiler from the bogus one. |
| 2142 | # However, it has the same basename, so the bogon will be chosen |
| 2143 | # first if we set CC to just the basename; use the full file name. |
| 2144 | shift |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2145 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2146 | fi |
| 2147 | fi |
| 2148 | fi |
| 2149 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2150 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2151 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2152 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2153 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2154 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2155 | echo "$as_me:$LINENO: result: no" >&5 |
| 2156 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2157 | fi |
| 2158 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2159 | fi |
| 2160 | if test -z "$CC"; then |
| 2161 | if test -n "$ac_tool_prefix"; then |
| 2162 | for ac_prog in cl |
| 2163 | do |
| 2164 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2165 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2166 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2167 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2168 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2170 | else |
| 2171 | if test -n "$CC"; then |
| 2172 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2173 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2175 | for as_dir in $PATH |
| 2176 | do |
| 2177 | IFS=$as_save_IFS |
| 2178 | test -z "$as_dir" && as_dir=. |
| 2179 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2180 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2181 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2182 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2183 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2184 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2185 | done |
| 2186 | done |
| 2187 | |
| 2188 | fi |
| 2189 | fi |
| 2190 | CC=$ac_cv_prog_CC |
| 2191 | if test -n "$CC"; then |
| 2192 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2193 | echo "${ECHO_T}$CC" >&6 |
| 2194 | else |
| 2195 | echo "$as_me:$LINENO: result: no" >&5 |
| 2196 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2197 | fi |
| 2198 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2199 | test -n "$CC" && break |
| 2200 | done |
| 2201 | fi |
| 2202 | if test -z "$CC"; then |
| 2203 | ac_ct_CC=$CC |
| 2204 | for ac_prog in cl |
| 2205 | do |
| 2206 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2207 | set dummy $ac_prog; ac_word=$2 |
| 2208 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2209 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2210 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2212 | else |
| 2213 | if test -n "$ac_ct_CC"; then |
| 2214 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2215 | else |
| 2216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2217 | for as_dir in $PATH |
| 2218 | do |
| 2219 | IFS=$as_save_IFS |
| 2220 | test -z "$as_dir" && as_dir=. |
| 2221 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2222 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2223 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2224 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2225 | break 2 |
| 2226 | fi |
| 2227 | done |
| 2228 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2229 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2230 | fi |
| 2231 | fi |
| 2232 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2233 | if test -n "$ac_ct_CC"; then |
| 2234 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2235 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2236 | else |
| 2237 | echo "$as_me:$LINENO: result: no" >&5 |
| 2238 | echo "${ECHO_T}no" >&6 |
| 2239 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2240 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2241 | test -n "$ac_ct_CC" && break |
| 2242 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2243 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2244 | CC=$ac_ct_CC |
| 2245 | fi |
| 2246 | |
| 2247 | fi |
| 2248 | |
| 2249 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2250 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2251 | See \`config.log' for more details." >&5 |
| 2252 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2253 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2254 | { (exit 1); exit 1; }; } |
| 2255 | |
| 2256 | # Provide some information about the compiler. |
| 2257 | echo "$as_me:$LINENO:" \ |
| 2258 | "checking for C compiler version" >&5 |
| 2259 | ac_compiler=`set X $ac_compile; echo $2` |
| 2260 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2261 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2262 | ac_status=$? |
| 2263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2264 | (exit $ac_status); } |
| 2265 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2266 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2267 | ac_status=$? |
| 2268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2269 | (exit $ac_status); } |
| 2270 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2271 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2272 | ac_status=$? |
| 2273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2274 | (exit $ac_status); } |
| 2275 | |
| 2276 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2277 | /* confdefs.h. */ |
| 2278 | _ACEOF |
| 2279 | cat confdefs.h >>conftest.$ac_ext |
| 2280 | cat >>conftest.$ac_ext <<_ACEOF |
| 2281 | /* end confdefs.h. */ |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2282 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2283 | int |
| 2284 | main () |
| 2285 | { |
| 2286 | |
| 2287 | ; |
| 2288 | return 0; |
| 2289 | } |
| 2290 | _ACEOF |
| 2291 | ac_clean_files_save=$ac_clean_files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2292 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2293 | # Try to create an executable without -o first, disregard a.out. |
| 2294 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2295 | # of exeext. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2296 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2297 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2298 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2299 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2300 | (eval $ac_link_default) 2>&5 |
| 2301 | ac_status=$? |
| 2302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2303 | (exit $ac_status); }; then |
| 2304 | # Find the output, starting from the most likely. This scheme is |
| 2305 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2306 | # resort. |
| 2307 | |
| 2308 | # Be careful to initialize this variable, since it used to be cached. |
| 2309 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2310 | ac_cv_exeext= |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2311 | # b.out is created by i960 compilers. |
| 2312 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2313 | do |
| 2314 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2315 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2316 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2317 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2318 | conftest.$ac_ext ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2319 | # This is the source file. |
| 2320 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2321 | [ab].out ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2322 | # We found the default executable, but exeext='' is most |
| 2323 | # certainly right. |
| 2324 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2325 | *.* ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2326 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2327 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2328 | # but it would be cool to find out if it's true. Does anybody |
| 2329 | # maintain Libtool? --akim. |
| 2330 | export ac_cv_exeext |
| 2331 | break;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2332 | * ) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2333 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2334 | esac |
| 2335 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2336 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2337 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2339 | |
| 2340 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2341 | See \`config.log' for more details." >&5 |
| 2342 | echo "$as_me: error: C compiler cannot create executables |
| 2343 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2344 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2345 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2346 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2347 | ac_exeext=$ac_cv_exeext |
| 2348 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2349 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2350 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2351 | # Check the compiler produces executables we can run. If not, either |
| 2352 | # the compiler is broken, or we cross compile. |
| 2353 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2354 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2355 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2356 | # If not cross compiling, check that we can run a simple program. |
| 2357 | if test "$cross_compiling" != yes; then |
| 2358 | if { ac_try='./$ac_file' |
| 2359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2360 | (eval $ac_try) 2>&5 |
| 2361 | ac_status=$? |
| 2362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2363 | (exit $ac_status); }; }; then |
| 2364 | cross_compiling=no |
| 2365 | else |
| 2366 | if test "$cross_compiling" = maybe; then |
| 2367 | cross_compiling=yes |
| 2368 | else |
| 2369 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2370 | If you meant to cross compile, use \`--host'. |
| 2371 | See \`config.log' for more details." >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2372 | echo "$as_me: error: cannot run C compiled programs. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2373 | If you meant to cross compile, use \`--host'. |
| 2374 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2375 | { (exit 1); exit 1; }; } |
| 2376 | fi |
| 2377 | fi |
| 2378 | fi |
| 2379 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2380 | echo "${ECHO_T}yes" >&6 |
| 2381 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2382 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2383 | ac_clean_files=$ac_clean_files_save |
| 2384 | # Check the compiler produces executables we can run. If not, either |
| 2385 | # the compiler is broken, or we cross compile. |
| 2386 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2387 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2388 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2389 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2390 | |
| 2391 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2392 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2393 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2394 | (eval $ac_link) 2>&5 |
| 2395 | ac_status=$? |
| 2396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2397 | (exit $ac_status); }; then |
| 2398 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2399 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2400 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2401 | # `rm'. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2402 | for ac_file in conftest.exe conftest conftest.*; do |
| 2403 | test -f "$ac_file" || continue |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2404 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2405 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2406 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2407 | export ac_cv_exeext |
| 2408 | break;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2409 | * ) break;; |
| 2410 | esac |
| 2411 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2412 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2413 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2414 | See \`config.log' for more details." >&5 |
| 2415 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2416 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2417 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2418 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2419 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2420 | rm -f conftest$ac_cv_exeext |
| 2421 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2422 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2423 | |
| 2424 | rm -f conftest.$ac_ext |
| 2425 | EXEEXT=$ac_cv_exeext |
| 2426 | ac_exeext=$EXEEXT |
| 2427 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2428 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2429 | if test "${ac_cv_objext+set}" = set; then |
| 2430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2431 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2432 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2433 | /* confdefs.h. */ |
| 2434 | _ACEOF |
| 2435 | cat confdefs.h >>conftest.$ac_ext |
| 2436 | cat >>conftest.$ac_ext <<_ACEOF |
| 2437 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2438 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2439 | int |
| 2440 | main () |
| 2441 | { |
| 2442 | |
| 2443 | ; |
| 2444 | return 0; |
| 2445 | } |
| 2446 | _ACEOF |
| 2447 | rm -f conftest.o conftest.obj |
| 2448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2449 | (eval $ac_compile) 2>&5 |
| 2450 | ac_status=$? |
| 2451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2452 | (exit $ac_status); }; then |
| 2453 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2454 | case $ac_file in |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2455 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2456 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2457 | break;; |
| 2458 | esac |
| 2459 | done |
| 2460 | else |
| 2461 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2463 | |
| 2464 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2465 | See \`config.log' for more details." >&5 |
| 2466 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2467 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2468 | { (exit 1); exit 1; }; } |
| 2469 | fi |
| 2470 | |
| 2471 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2472 | fi |
| 2473 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2474 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2475 | OBJEXT=$ac_cv_objext |
| 2476 | ac_objext=$OBJEXT |
| 2477 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2478 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2479 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2481 | else |
| 2482 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2483 | /* confdefs.h. */ |
| 2484 | _ACEOF |
| 2485 | cat confdefs.h >>conftest.$ac_ext |
| 2486 | cat >>conftest.$ac_ext <<_ACEOF |
| 2487 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2488 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2489 | int |
| 2490 | main () |
| 2491 | { |
| 2492 | #ifndef __GNUC__ |
| 2493 | choke me |
| 2494 | #endif |
| 2495 | |
| 2496 | ; |
| 2497 | return 0; |
| 2498 | } |
| 2499 | _ACEOF |
| 2500 | rm -f conftest.$ac_objext |
| 2501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2502 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2503 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2505 | rm -f conftest.er1 |
| 2506 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2508 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2509 | { ac_try='test -z "$ac_c_werror_flag" |
| 2510 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2512 | (eval $ac_try) 2>&5 |
| 2513 | ac_status=$? |
| 2514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2515 | (exit $ac_status); }; } && |
| 2516 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2518 | (eval $ac_try) 2>&5 |
| 2519 | ac_status=$? |
| 2520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2521 | (exit $ac_status); }; }; then |
| 2522 | ac_compiler_gnu=yes |
| 2523 | else |
| 2524 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2525 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2526 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2527 | ac_compiler_gnu=no |
| 2528 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2529 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2530 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2531 | |
| 2532 | fi |
| 2533 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2534 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2535 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2536 | ac_test_CFLAGS=${CFLAGS+set} |
| 2537 | ac_save_CFLAGS=$CFLAGS |
| 2538 | CFLAGS="-g" |
| 2539 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2540 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2541 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2543 | else |
| 2544 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2545 | /* confdefs.h. */ |
| 2546 | _ACEOF |
| 2547 | cat confdefs.h >>conftest.$ac_ext |
| 2548 | cat >>conftest.$ac_ext <<_ACEOF |
| 2549 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2550 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2551 | int |
| 2552 | main () |
| 2553 | { |
| 2554 | |
| 2555 | ; |
| 2556 | return 0; |
| 2557 | } |
| 2558 | _ACEOF |
| 2559 | rm -f conftest.$ac_objext |
| 2560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2561 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2562 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2563 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2564 | rm -f conftest.er1 |
| 2565 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2567 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2568 | { ac_try='test -z "$ac_c_werror_flag" |
| 2569 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2571 | (eval $ac_try) 2>&5 |
| 2572 | ac_status=$? |
| 2573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2574 | (exit $ac_status); }; } && |
| 2575 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2577 | (eval $ac_try) 2>&5 |
| 2578 | ac_status=$? |
| 2579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2580 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2581 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2582 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2583 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2584 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2585 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2586 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2587 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2588 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2589 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2590 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2591 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2592 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2593 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2594 | elif test $ac_cv_prog_cc_g = yes; then |
| 2595 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2596 | CFLAGS="-g -O2" |
| 2597 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2598 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2599 | fi |
| 2600 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2601 | if test "$GCC" = yes; then |
| 2602 | CFLAGS="-O2" |
| 2603 | else |
| 2604 | CFLAGS= |
| 2605 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2606 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2607 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2608 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2609 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2611 | else |
| 2612 | ac_cv_prog_cc_stdc=no |
| 2613 | ac_save_CC=$CC |
| 2614 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2615 | /* confdefs.h. */ |
| 2616 | _ACEOF |
| 2617 | cat confdefs.h >>conftest.$ac_ext |
| 2618 | cat >>conftest.$ac_ext <<_ACEOF |
| 2619 | /* end confdefs.h. */ |
| 2620 | #include <stdarg.h> |
| 2621 | #include <stdio.h> |
| 2622 | #include <sys/types.h> |
| 2623 | #include <sys/stat.h> |
| 2624 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2625 | struct buf { int x; }; |
| 2626 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2627 | static char *e (p, i) |
| 2628 | char **p; |
| 2629 | int i; |
| 2630 | { |
| 2631 | return p[i]; |
| 2632 | } |
| 2633 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2634 | { |
| 2635 | char *s; |
| 2636 | va_list v; |
| 2637 | va_start (v,p); |
| 2638 | s = g (p, va_arg (v,int)); |
| 2639 | va_end (v); |
| 2640 | return s; |
| 2641 | } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2642 | |
| 2643 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2644 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2645 | These don't provoke an error unfortunately, instead are silently treated |
| 2646 | as 'x'. The following induces an error, until -std1 is added to get |
| 2647 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2648 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2649 | that's true only with -std1. */ |
| 2650 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2651 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2652 | int test (int i, double x); |
| 2653 | struct s1 {int (*f) (int a);}; |
| 2654 | struct s2 {int (*f) (double a);}; |
| 2655 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2656 | int argc; |
| 2657 | char **argv; |
| 2658 | int |
| 2659 | main () |
| 2660 | { |
| 2661 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2662 | ; |
| 2663 | return 0; |
| 2664 | } |
| 2665 | _ACEOF |
| 2666 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2667 | # breaks some systems' header files. |
| 2668 | # AIX -qlanglvl=ansi |
| 2669 | # Ultrix and OSF/1 -std1 |
| 2670 | # HP-UX 10.20 and later -Ae |
| 2671 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2672 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2673 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2674 | do |
| 2675 | CC="$ac_save_CC $ac_arg" |
| 2676 | rm -f conftest.$ac_objext |
| 2677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2678 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2679 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2680 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2681 | rm -f conftest.er1 |
| 2682 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2684 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2685 | { ac_try='test -z "$ac_c_werror_flag" |
| 2686 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2688 | (eval $ac_try) 2>&5 |
| 2689 | ac_status=$? |
| 2690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2691 | (exit $ac_status); }; } && |
| 2692 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2694 | (eval $ac_try) 2>&5 |
| 2695 | ac_status=$? |
| 2696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2697 | (exit $ac_status); }; }; then |
| 2698 | ac_cv_prog_cc_stdc=$ac_arg |
| 2699 | break |
| 2700 | else |
| 2701 | echo "$as_me: failed program was:" >&5 |
| 2702 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2703 | |
| 2704 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2705 | rm -f conftest.err conftest.$ac_objext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2706 | done |
| 2707 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2708 | CC=$ac_save_CC |
| 2709 | |
| 2710 | fi |
| 2711 | |
| 2712 | case "x$ac_cv_prog_cc_stdc" in |
| 2713 | x|xno) |
| 2714 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2715 | echo "${ECHO_T}none needed" >&6 ;; |
| 2716 | *) |
| 2717 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2718 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2719 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2720 | esac |
| 2721 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2722 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2723 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2724 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2725 | # the declaration of exit, since it's the most demanding environment. |
| 2726 | cat >conftest.$ac_ext <<_ACEOF |
| 2727 | #ifndef __cplusplus |
| 2728 | choke me |
| 2729 | #endif |
| 2730 | _ACEOF |
| 2731 | rm -f conftest.$ac_objext |
| 2732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2733 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2734 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2735 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2736 | rm -f conftest.er1 |
| 2737 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2739 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2740 | { ac_try='test -z "$ac_c_werror_flag" |
| 2741 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2743 | (eval $ac_try) 2>&5 |
| 2744 | ac_status=$? |
| 2745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2746 | (exit $ac_status); }; } && |
| 2747 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2749 | (eval $ac_try) 2>&5 |
| 2750 | ac_status=$? |
| 2751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2752 | (exit $ac_status); }; }; then |
| 2753 | for ac_declaration in \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2754 | '' \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2755 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2756 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2757 | 'extern "C" void exit (int) throw ();' \ |
| 2758 | 'extern "C" void exit (int);' \ |
| 2759 | 'void exit (int);' |
| 2760 | do |
| 2761 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2762 | /* confdefs.h. */ |
| 2763 | _ACEOF |
| 2764 | cat confdefs.h >>conftest.$ac_ext |
| 2765 | cat >>conftest.$ac_ext <<_ACEOF |
| 2766 | /* end confdefs.h. */ |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 2767 | $ac_declaration |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2768 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2769 | int |
| 2770 | main () |
| 2771 | { |
| 2772 | exit (42); |
| 2773 | ; |
| 2774 | return 0; |
| 2775 | } |
| 2776 | _ACEOF |
| 2777 | rm -f conftest.$ac_objext |
| 2778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2779 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2780 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2781 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2782 | rm -f conftest.er1 |
| 2783 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2785 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2786 | { ac_try='test -z "$ac_c_werror_flag" |
| 2787 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2789 | (eval $ac_try) 2>&5 |
| 2790 | ac_status=$? |
| 2791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2792 | (exit $ac_status); }; } && |
| 2793 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2795 | (eval $ac_try) 2>&5 |
| 2796 | ac_status=$? |
| 2797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2798 | (exit $ac_status); }; }; then |
| 2799 | : |
| 2800 | else |
| 2801 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2803 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2804 | continue |
| 2805 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2806 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2807 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2808 | /* confdefs.h. */ |
| 2809 | _ACEOF |
| 2810 | cat confdefs.h >>conftest.$ac_ext |
| 2811 | cat >>conftest.$ac_ext <<_ACEOF |
| 2812 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2813 | $ac_declaration |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2814 | int |
| 2815 | main () |
| 2816 | { |
| 2817 | exit (42); |
| 2818 | ; |
| 2819 | return 0; |
| 2820 | } |
| 2821 | _ACEOF |
| 2822 | rm -f conftest.$ac_objext |
| 2823 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2824 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2825 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2826 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2827 | rm -f conftest.er1 |
| 2828 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2830 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 2831 | { ac_try='test -z "$ac_c_werror_flag" |
| 2832 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2834 | (eval $ac_try) 2>&5 |
| 2835 | ac_status=$? |
| 2836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2837 | (exit $ac_status); }; } && |
| 2838 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2840 | (eval $ac_try) 2>&5 |
| 2841 | ac_status=$? |
| 2842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2843 | (exit $ac_status); }; }; then |
| 2844 | break |
| 2845 | else |
| 2846 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2848 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2849 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2850 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2851 | done |
| 2852 | rm -f conftest* |
| 2853 | if test -n "$ac_declaration"; then |
| 2854 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2855 | echo $ac_declaration >>confdefs.h |
| 2856 | echo '#endif' >>confdefs.h |
| 2857 | fi |
| 2858 | |
| 2859 | else |
| 2860 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2861 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2862 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2863 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2865 | ac_ext=c |
| 2866 | ac_cpp='$CPP $CPPFLAGS' |
| 2867 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2868 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2869 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2870 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2871 | |
| 2872 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2873 | |
| 2874 | ac_ext=c |
| 2875 | ac_cpp='$CPP $CPPFLAGS' |
| 2876 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2877 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2878 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2879 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2880 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2881 | # On Suns, sometimes $CPP names a directory. |
| 2882 | if test -n "$CPP" && test -d "$CPP"; then |
| 2883 | CPP= |
| 2884 | fi |
| 2885 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2886 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2888 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2889 | # Double quotes because CPP needs to be expanded |
| 2890 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2891 | do |
| 2892 | ac_preproc_ok=false |
| 2893 | for ac_c_preproc_warn_flag in '' yes |
| 2894 | do |
| 2895 | # Use a header file that comes with gcc, so configuring glibc |
| 2896 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2897 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2898 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2899 | # On the NeXT, cc -E runs the code through the compiler's parser, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2900 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2901 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2902 | /* confdefs.h. */ |
| 2903 | _ACEOF |
| 2904 | cat confdefs.h >>conftest.$ac_ext |
| 2905 | cat >>conftest.$ac_ext <<_ACEOF |
| 2906 | /* end confdefs.h. */ |
| 2907 | #ifdef __STDC__ |
| 2908 | # include <limits.h> |
| 2909 | #else |
| 2910 | # include <assert.h> |
| 2911 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2912 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2913 | _ACEOF |
| 2914 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2915 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2916 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2917 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2918 | rm -f conftest.er1 |
| 2919 | cat conftest.err >&5 |
| 2920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2921 | (exit $ac_status); } >/dev/null; then |
| 2922 | if test -s conftest.err; then |
| 2923 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2924 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2925 | else |
| 2926 | ac_cpp_err= |
| 2927 | fi |
| 2928 | else |
| 2929 | ac_cpp_err=yes |
| 2930 | fi |
| 2931 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2932 | : |
| 2933 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2934 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2936 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2937 | # Broken: fails on valid input. |
| 2938 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2939 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2940 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2941 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2942 | # OK, works on sane cases. Now check whether non-existent headers |
| 2943 | # can be detected and how. |
| 2944 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2945 | /* confdefs.h. */ |
| 2946 | _ACEOF |
| 2947 | cat confdefs.h >>conftest.$ac_ext |
| 2948 | cat >>conftest.$ac_ext <<_ACEOF |
| 2949 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2950 | #include <ac_nonexistent.h> |
| 2951 | _ACEOF |
| 2952 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2953 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2954 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2955 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2956 | rm -f conftest.er1 |
| 2957 | cat conftest.err >&5 |
| 2958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2959 | (exit $ac_status); } >/dev/null; then |
| 2960 | if test -s conftest.err; then |
| 2961 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 2962 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2963 | else |
| 2964 | ac_cpp_err= |
| 2965 | fi |
| 2966 | else |
| 2967 | ac_cpp_err=yes |
| 2968 | fi |
| 2969 | if test -z "$ac_cpp_err"; then |
| 2970 | # Broken: success on invalid input. |
| 2971 | continue |
| 2972 | else |
| 2973 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 2974 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2975 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2976 | # Passes both tests. |
| 2977 | ac_preproc_ok=: |
| 2978 | break |
| 2979 | fi |
| 2980 | rm -f conftest.err conftest.$ac_ext |
| 2981 | |
| 2982 | done |
| 2983 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2984 | rm -f conftest.err conftest.$ac_ext |
| 2985 | if $ac_preproc_ok; then |
| 2986 | break |
| 2987 | fi |
| 2988 | |
| 2989 | done |
| 2990 | ac_cv_prog_CPP=$CPP |
| 2991 | |
| 2992 | fi |
| 2993 | CPP=$ac_cv_prog_CPP |
| 2994 | else |
| 2995 | ac_cv_prog_CPP=$CPP |
| 2996 | fi |
| 2997 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2998 | echo "${ECHO_T}$CPP" >&6 |
| 2999 | ac_preproc_ok=false |
| 3000 | for ac_c_preproc_warn_flag in '' yes |
| 3001 | do |
| 3002 | # Use a header file that comes with gcc, so configuring glibc |
| 3003 | # with a fresh cross-compiler works. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3004 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3005 | # <limits.h> exists even on freestanding compilers. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3006 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3007 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3008 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3009 | /* confdefs.h. */ |
| 3010 | _ACEOF |
| 3011 | cat confdefs.h >>conftest.$ac_ext |
| 3012 | cat >>conftest.$ac_ext <<_ACEOF |
| 3013 | /* end confdefs.h. */ |
| 3014 | #ifdef __STDC__ |
| 3015 | # include <limits.h> |
| 3016 | #else |
| 3017 | # include <assert.h> |
| 3018 | #endif |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3019 | Syntax error |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3020 | _ACEOF |
| 3021 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3022 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3023 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3024 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3025 | rm -f conftest.er1 |
| 3026 | cat conftest.err >&5 |
| 3027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3028 | (exit $ac_status); } >/dev/null; then |
| 3029 | if test -s conftest.err; then |
| 3030 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3031 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3032 | else |
| 3033 | ac_cpp_err= |
| 3034 | fi |
| 3035 | else |
| 3036 | ac_cpp_err=yes |
| 3037 | fi |
| 3038 | if test -z "$ac_cpp_err"; then |
| 3039 | : |
| 3040 | else |
| 3041 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3042 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3043 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3044 | # Broken: fails on valid input. |
| 3045 | continue |
| 3046 | fi |
| 3047 | rm -f conftest.err conftest.$ac_ext |
| 3048 | |
| 3049 | # OK, works on sane cases. Now check whether non-existent headers |
| 3050 | # can be detected and how. |
| 3051 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3052 | /* confdefs.h. */ |
| 3053 | _ACEOF |
| 3054 | cat confdefs.h >>conftest.$ac_ext |
| 3055 | cat >>conftest.$ac_ext <<_ACEOF |
| 3056 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3057 | #include <ac_nonexistent.h> |
| 3058 | _ACEOF |
| 3059 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3060 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3061 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3062 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3063 | rm -f conftest.er1 |
| 3064 | cat conftest.err >&5 |
| 3065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3066 | (exit $ac_status); } >/dev/null; then |
| 3067 | if test -s conftest.err; then |
| 3068 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3069 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3070 | else |
| 3071 | ac_cpp_err= |
| 3072 | fi |
| 3073 | else |
| 3074 | ac_cpp_err=yes |
| 3075 | fi |
| 3076 | if test -z "$ac_cpp_err"; then |
| 3077 | # Broken: success on invalid input. |
| 3078 | continue |
| 3079 | else |
| 3080 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3081 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3082 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3083 | # Passes both tests. |
| 3084 | ac_preproc_ok=: |
| 3085 | break |
| 3086 | fi |
| 3087 | rm -f conftest.err conftest.$ac_ext |
| 3088 | |
| 3089 | done |
| 3090 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3091 | rm -f conftest.err conftest.$ac_ext |
| 3092 | if $ac_preproc_ok; then |
| 3093 | : |
| 3094 | else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3095 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3096 | See \`config.log' for more details." >&5 |
| 3097 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3098 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3099 | { (exit 1); exit 1; }; } |
| 3100 | fi |
| 3101 | |
| 3102 | ac_ext=c |
| 3103 | ac_cpp='$CPP $CPPFLAGS' |
| 3104 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3105 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3106 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3107 | |
| 3108 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3109 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3110 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 3111 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 3112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3113 | else |
| 3114 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 3115 | then ac_cv_prog_egrep='grep -E' |
| 3116 | else ac_cv_prog_egrep='egrep' |
| 3117 | fi |
| 3118 | fi |
| 3119 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 3120 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 3121 | EGREP=$ac_cv_prog_egrep |
| 3122 | |
| 3123 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3124 | |
| 3125 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 3126 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 3127 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3128 | /* confdefs.h. */ |
| 3129 | _ACEOF |
| 3130 | cat confdefs.h >>conftest.$ac_ext |
| 3131 | cat >>conftest.$ac_ext <<_ACEOF |
| 3132 | /* end confdefs.h. */ |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3133 | #ifdef _AIX |
| 3134 | yes |
| 3135 | #endif |
| 3136 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3137 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3138 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3139 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3140 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3141 | echo "${ECHO_T}yes" >&6 |
| 3142 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3143 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3144 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3145 | |
| 3146 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3147 | echo "$as_me:$LINENO: result: no" >&5 |
| 3148 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3149 | fi |
| 3150 | rm -f conftest* |
| 3151 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3152 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3153 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3154 | # Check for unsupported systems |
| 3155 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 3156 | Linux*/1*) |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3157 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3158 | echo See README for details. |
| 3159 | exit 1;; |
| 3160 | esac |
| 3161 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3162 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3163 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3164 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3165 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3166 | # Check whether --with-suffix or --without-suffix was given. |
| 3167 | if test "${with_suffix+set}" = set; then |
| 3168 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3169 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3170 | case $withval in |
| 3171 | no) EXEEXT=;; |
| 3172 | yes) EXEEXT=.exe;; |
| 3173 | *) EXEEXT=$withval;; |
| 3174 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3175 | fi; |
| 3176 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3177 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3178 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3179 | # Test whether we're running on a non-case-sensitive system, in which |
| 3180 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3181 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3182 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3183 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3184 | if test ! -d CaseSensitiveTestDir; then |
| 3185 | mkdir CaseSensitiveTestDir |
| 3186 | fi |
| 3187 | |
| 3188 | if test -d casesensitivetestdir |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3189 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3190 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3191 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3192 | BUILDEXEEXT=.exe |
| 3193 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3194 | echo "$as_me:$LINENO: result: no" >&5 |
| 3195 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3196 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3197 | fi |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3198 | rmdir CaseSensitiveTestDir |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3199 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3200 | case $MACHDEP in |
| 3201 | bsdos*) |
| 3202 | case $CC in |
| 3203 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3204 | esac;; |
| 3205 | esac |
| 3206 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3207 | case $ac_sys_system in |
| 3208 | hp*|HP*) |
| 3209 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3210 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3211 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3212 | Monterey*) |
| 3213 | case $CC in |
| 3214 | cc) CC="$CC -Wl,-Bexport";; |
| 3215 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3216 | SunOS*) |
| 3217 | # Some functions have a prototype only with that define, e.g. confstr |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3218 | |
| 3219 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3220 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3221 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3222 | |
| 3223 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3224 | esac |
| 3225 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3226 | |
| 3227 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3228 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3229 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3230 | if test -z "$LIBRARY" |
| 3231 | then |
| 3232 | LIBRARY='libpython$(VERSION).a' |
| 3233 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3234 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3235 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3236 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3237 | # LDLIBRARY is the name of the library to link against (as opposed to the |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3238 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3239 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3240 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3241 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3242 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3243 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3244 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3245 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3246 | # RUNSHARED is used to run shared python without installed libraries |
| 3247 | # |
| 3248 | # INSTSONAME is the name of the shared library that will be use to install |
| 3249 | # on the system - some systems like version suffix, others don't |
| 3250 | |
| 3251 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3252 | |
| 3253 | |
| 3254 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3255 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3256 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3257 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3258 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3259 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3260 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3261 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3262 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3263 | # LINKCC is the command that links the python executable -- default is $(CC). |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3264 | # If CXX is set, and if it is needed to link a main function that was |
| 3265 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3266 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3267 | # This is altered for AIX in order to build the export list before |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3268 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3269 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3270 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3271 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3272 | if test -z "$LINKCC" |
| 3273 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3274 | if test -z "$CXX"; then |
| 3275 | LINKCC="\$(PURIFY) \$(CC)" |
| 3276 | else |
Martin v. Löwis | 147fbe5 | 2005-08-07 21:09:30 +0000 | [diff] [blame] | 3277 | echo 'extern "C" void foo();int main(){foo();}' > conftest_a.cc |
| 3278 | $CXX -c conftest_a.cc # 2>&5 |
| 3279 | echo 'void foo(){}' > conftest_b.$ac_ext |
| 3280 | $CC -c conftest_b.$ac_ext # 2>&5 |
| 3281 | if $CC -o conftest$ac_exeext conftest_a.$ac_objext conftest_b.$ac_objext 2>&5 \ |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3282 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3283 | then |
| 3284 | LINKCC="\$(PURIFY) \$(CC)" |
| 3285 | else |
| 3286 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3287 | fi |
| 3288 | rm -fr conftest* |
| 3289 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3290 | case $ac_sys_system in |
| 3291 | AIX*) |
Neal Norwitz | 0b27ff9 | 2003-03-31 15:53:49 +0000 | [diff] [blame] | 3292 | exp_extra="\"\"" |
| 3293 | if test $ac_sys_release -ge 5 -o \ |
| 3294 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3295 | exp_extra="." |
| 3296 | fi |
| 3297 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3298 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3299 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3300 | esac |
| 3301 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3302 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3303 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3304 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3305 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3306 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3307 | # Check whether --enable-shared or --disable-shared was given. |
| 3308 | if test "${enable_shared+set}" = set; then |
| 3309 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3310 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3311 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3312 | |
| 3313 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3314 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3315 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3316 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3317 | enable_shared="yes";; |
| 3318 | *) |
| 3319 | enable_shared="no";; |
| 3320 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3321 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3322 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3323 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3324 | |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3325 | echo "$as_me:$LINENO: checking for --enable-profiling" >&5 |
| 3326 | echo $ECHO_N "checking for --enable-profiling... $ECHO_C" >&6 |
| 3327 | # Check whether --enable-profiling or --disable-profiling was given. |
| 3328 | if test "${enable_profiling+set}" = set; then |
| 3329 | enableval="$enable_profiling" |
| 3330 | ac_save_cc="$CC" |
| 3331 | CC="$CC -pg" |
| 3332 | if test "$cross_compiling" = yes; then |
| 3333 | ac_enable_profiling="no" |
| 3334 | else |
| 3335 | cat >conftest.$ac_ext <<_ACEOF |
| 3336 | /* confdefs.h. */ |
| 3337 | _ACEOF |
| 3338 | cat confdefs.h >>conftest.$ac_ext |
| 3339 | cat >>conftest.$ac_ext <<_ACEOF |
| 3340 | /* end confdefs.h. */ |
| 3341 | int main() { return 0; } |
| 3342 | _ACEOF |
| 3343 | rm -f conftest$ac_exeext |
| 3344 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3345 | (eval $ac_link) 2>&5 |
| 3346 | ac_status=$? |
| 3347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3348 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3350 | (eval $ac_try) 2>&5 |
| 3351 | ac_status=$? |
| 3352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3353 | (exit $ac_status); }; }; then |
| 3354 | ac_enable_profiling="yes" |
| 3355 | else |
| 3356 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3357 | echo "$as_me: failed program was:" >&5 |
| 3358 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3359 | |
| 3360 | ( exit $ac_status ) |
| 3361 | ac_enable_profiling="no" |
| 3362 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3363 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 56f6a4f | 2004-06-18 02:47:22 +0000 | [diff] [blame] | 3364 | fi |
| 3365 | CC="$ac_save_cc" |
| 3366 | fi; |
| 3367 | echo "$as_me:$LINENO: result: $ac_enable_profiling" >&5 |
| 3368 | echo "${ECHO_T}$ac_enable_profiling" >&6 |
| 3369 | |
| 3370 | case "$ac_enable_profiling" in |
| 3371 | "yes") |
| 3372 | BASECFLAGS="-pg $BASECFLAGS" |
| 3373 | LDFLAGS="-pg $LDFLAGS" |
| 3374 | ;; |
| 3375 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3376 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3377 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3378 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3379 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3380 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3381 | # library that we build, but we do not want to link against it (we |
| 3382 | # will find it with a -framework option). For this reason there is an |
| 3383 | # extra variable BLDLIBRARY against which Python and the extension |
| 3384 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3385 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3386 | if test "$enable_framework" |
| 3387 | then |
| 3388 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 66b8483 | 2003-07-04 12:14:39 +0000 | [diff] [blame] | 3389 | RUNSHARED=DYLD_FRAMEWORK_PATH="`pwd`:$DYLD_FRAMEWORK_PATH" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3390 | BLDLIBRARY='' |
| 3391 | else |
| 3392 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3393 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3394 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3395 | # Other platforms follow |
| 3396 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3397 | |
| 3398 | cat >>confdefs.h <<\_ACEOF |
| 3399 | #define Py_ENABLE_SHARED 1 |
| 3400 | _ACEOF |
| 3401 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3402 | case $ac_sys_system in |
| 3403 | BeOS*) |
| 3404 | LDLIBRARY='libpython$(VERSION).so' |
| 3405 | ;; |
| 3406 | CYGWIN*) |
| 3407 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3408 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3409 | ;; |
| 3410 | SunOS*) |
| 3411 | LDLIBRARY='libpython$(VERSION).so' |
Martin v. Löwis | d141a8c | 2003-06-14 15:20:28 +0000 | [diff] [blame] | 3412 | BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3413 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 2389c41 | 2003-10-31 15:42:07 +0000 | [diff] [blame] | 3414 | INSTSONAME="$LDLIBRARY".$SOVERSION |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3415 | ;; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 3416 | Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3417 | LDLIBRARY='libpython$(VERSION).so' |
| 3418 | BLDLIBRARY='-L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3419 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 3420 | case $ac_sys_system in |
| 3421 | FreeBSD*) |
| 3422 | SOVERSION=`echo $SOVERSION|cut -d "." -f 1` |
| 3423 | ;; |
| 3424 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3425 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3426 | ;; |
| 3427 | hp*|HP*) |
| 3428 | LDLIBRARY='libpython$(VERSION).sl' |
| 3429 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3430 | RUNSHARED=SHLIB_PATH=`pwd`:${SHLIB_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3431 | ;; |
| 3432 | OSF*) |
| 3433 | LDLIBRARY='libpython$(VERSION).so' |
Neal Norwitz | 671b9e3 | 2006-01-09 07:07:12 +0000 | [diff] [blame] | 3434 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
Martin v. Löwis | fc9b75f | 2003-08-09 09:06:52 +0000 | [diff] [blame] | 3435 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3436 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3437 | atheos*) |
| 3438 | LDLIBRARY='libpython$(VERSION).so' |
| 3439 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3440 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3441 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3442 | esac |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 3443 | else # shared is disabled |
| 3444 | case $ac_sys_system in |
| 3445 | CYGWIN*) |
| 3446 | BLDLIBRARY='$(LIBRARY)' |
| 3447 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3448 | ;; |
| 3449 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3450 | fi |
| 3451 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3452 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3453 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3454 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3455 | if test -n "$ac_tool_prefix"; then |
| 3456 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3457 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3458 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3459 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3460 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3462 | else |
| 3463 | if test -n "$RANLIB"; then |
| 3464 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3465 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3467 | for as_dir in $PATH |
| 3468 | do |
| 3469 | IFS=$as_save_IFS |
| 3470 | test -z "$as_dir" && as_dir=. |
| 3471 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3472 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3473 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3474 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3475 | break 2 |
| 3476 | fi |
| 3477 | done |
| 3478 | done |
| 3479 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3480 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3481 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3482 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3483 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3484 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3485 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3486 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3487 | echo "$as_me:$LINENO: result: no" >&5 |
| 3488 | echo "${ECHO_T}no" >&6 |
| 3489 | fi |
| 3490 | |
| 3491 | fi |
| 3492 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3493 | ac_ct_RANLIB=$RANLIB |
| 3494 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3495 | set dummy ranlib; ac_word=$2 |
| 3496 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3497 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3498 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3500 | else |
| 3501 | if test -n "$ac_ct_RANLIB"; then |
| 3502 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3503 | else |
| 3504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3505 | for as_dir in $PATH |
| 3506 | do |
| 3507 | IFS=$as_save_IFS |
| 3508 | test -z "$as_dir" && as_dir=. |
| 3509 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3510 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3511 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3512 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3513 | break 2 |
| 3514 | fi |
| 3515 | done |
| 3516 | done |
| 3517 | |
| 3518 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3519 | fi |
| 3520 | fi |
| 3521 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3522 | if test -n "$ac_ct_RANLIB"; then |
| 3523 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3524 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3525 | else |
| 3526 | echo "$as_me:$LINENO: result: no" >&5 |
| 3527 | echo "${ECHO_T}no" >&6 |
| 3528 | fi |
| 3529 | |
| 3530 | RANLIB=$ac_ct_RANLIB |
| 3531 | else |
| 3532 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3533 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3534 | |
| 3535 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3536 | for ac_prog in ar aal |
| 3537 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3538 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3539 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3540 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3541 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3542 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3544 | else |
| 3545 | if test -n "$AR"; then |
| 3546 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3547 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3549 | for as_dir in $PATH |
| 3550 | do |
| 3551 | IFS=$as_save_IFS |
| 3552 | test -z "$as_dir" && as_dir=. |
| 3553 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3554 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3555 | ac_cv_prog_AR="$ac_prog" |
| 3556 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3557 | break 2 |
| 3558 | fi |
| 3559 | done |
| 3560 | done |
| 3561 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3562 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3563 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3564 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3565 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3566 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3567 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3568 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3569 | echo "$as_me:$LINENO: result: no" >&5 |
| 3570 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3571 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3572 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3573 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3574 | done |
| 3575 | test -n "$AR" || AR="ar" |
| 3576 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3577 | |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 3578 | |
Martin v. Löwis | c5bf5a0 | 2006-01-05 10:33:59 +0000 | [diff] [blame] | 3579 | # Extract the first word of "svnversion", so it can be a program name with args. |
| 3580 | set dummy svnversion; ac_word=$2 |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 3581 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3582 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3583 | if test "${ac_cv_prog_SVNVERSION+set}" = set; then |
| 3584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3585 | else |
| 3586 | if test -n "$SVNVERSION"; then |
| 3587 | ac_cv_prog_SVNVERSION="$SVNVERSION" # Let the user override the test. |
| 3588 | else |
| 3589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3590 | for as_dir in $PATH |
| 3591 | do |
| 3592 | IFS=$as_save_IFS |
| 3593 | test -z "$as_dir" && as_dir=. |
| 3594 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3595 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Martin v. Löwis | c5bf5a0 | 2006-01-05 10:33:59 +0000 | [diff] [blame] | 3596 | ac_cv_prog_SVNVERSION="found" |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 3597 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3598 | break 2 |
| 3599 | fi |
| 3600 | done |
| 3601 | done |
| 3602 | |
| 3603 | fi |
| 3604 | fi |
| 3605 | SVNVERSION=$ac_cv_prog_SVNVERSION |
| 3606 | if test -n "$SVNVERSION"; then |
| 3607 | echo "$as_me:$LINENO: result: $SVNVERSION" >&5 |
| 3608 | echo "${ECHO_T}$SVNVERSION" >&6 |
| 3609 | else |
| 3610 | echo "$as_me:$LINENO: result: no" >&5 |
| 3611 | echo "${ECHO_T}no" >&6 |
| 3612 | fi |
| 3613 | |
Martin v. Löwis | c5bf5a0 | 2006-01-05 10:33:59 +0000 | [diff] [blame] | 3614 | if test $SVNVERSION = found |
| 3615 | then |
| 3616 | SVNVERSION="svnversion \$(srcdir)" |
| 3617 | else |
| 3618 | SVNVERSION="echo exported" |
| 3619 | fi |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 3620 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3621 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3622 | bsdos*|hp*|HP*) |
| 3623 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3624 | if test -z "$INSTALL" |
| 3625 | then |
| 3626 | INSTALL="${srcdir}/install-sh -c" |
| 3627 | fi |
| 3628 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3629 | ac_aux_dir= |
| 3630 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3631 | if test -f $ac_dir/install-sh; then |
| 3632 | ac_aux_dir=$ac_dir |
| 3633 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3634 | break |
| 3635 | elif test -f $ac_dir/install.sh; then |
| 3636 | ac_aux_dir=$ac_dir |
| 3637 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3638 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3639 | elif test -f $ac_dir/shtool; then |
| 3640 | ac_aux_dir=$ac_dir |
| 3641 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3642 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3643 | fi |
| 3644 | done |
| 3645 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3646 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3647 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3648 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3649 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3650 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3651 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3652 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3653 | |
| 3654 | # Find a good install program. We prefer a C program (faster), |
| 3655 | # so one script is as good as another. But avoid the broken or |
| 3656 | # incompatible versions: |
| 3657 | # SysV /etc/install, /usr/sbin/install |
| 3658 | # SunOS /usr/etc/install |
| 3659 | # IRIX /sbin/install |
| 3660 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3661 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3662 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3663 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3664 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3665 | # OS/2's system install, which has a completely different semantic |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3666 | # ./install, which can be erroneously created by make from ./install.sh. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3667 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3668 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3669 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3670 | if test "${ac_cv_path_install+set}" = set; then |
| 3671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3672 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3674 | for as_dir in $PATH |
| 3675 | do |
| 3676 | IFS=$as_save_IFS |
| 3677 | test -z "$as_dir" && as_dir=. |
| 3678 | # Account for people who put trailing slashes in PATH elements. |
| 3679 | case $as_dir/ in |
| 3680 | ./ | .// | /cC/* | \ |
| 3681 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3682 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3683 | /usr/ucb/* ) ;; |
| 3684 | *) |
| 3685 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3686 | # Don't use installbsd from OSF since it installs stuff as root |
| 3687 | # by default. |
| 3688 | for ac_prog in ginstall scoinst install; do |
| 3689 | for ac_exec_ext in '' $ac_executable_extensions; do |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3690 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3691 | if test $ac_prog = install && |
| 3692 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3693 | # AIX install. It has an incompatible calling convention. |
| 3694 | : |
| 3695 | elif test $ac_prog = install && |
| 3696 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3697 | # program-specific install script used by HP pwplus--don't use. |
| 3698 | : |
| 3699 | else |
| 3700 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3701 | break 3 |
| 3702 | fi |
| 3703 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3704 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3705 | done |
| 3706 | ;; |
| 3707 | esac |
| 3708 | done |
| 3709 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3710 | |
| 3711 | fi |
| 3712 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3713 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3714 | else |
| 3715 | # As a last resort, use the slow shell script. We don't cache a |
| 3716 | # path for INSTALL within a source directory, because that will |
| 3717 | # break other packages using the cache if that directory is |
| 3718 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3719 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3720 | fi |
| 3721 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3722 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3723 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3724 | |
| 3725 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3726 | # It thinks the first close brace ends the variable substitution. |
| 3727 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3728 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3729 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3730 | |
| 3731 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3732 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3733 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3734 | # Not every filesystem supports hard links |
| 3735 | |
| 3736 | if test -z "$LN" ; then |
| 3737 | case $ac_sys_system in |
| 3738 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3739 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3740 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3741 | *) LN=ln;; |
| 3742 | esac |
| 3743 | fi |
| 3744 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3745 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3746 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3747 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3748 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3749 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3750 | if test "${with_pydebug+set}" = set; then |
| 3751 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3752 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3753 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3754 | then |
| 3755 | |
| 3756 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3757 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3758 | _ACEOF |
| 3759 | |
| 3760 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3761 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3762 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3763 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3764 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3765 | fi |
| 3766 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3767 | echo "$as_me:$LINENO: result: no" >&5 |
| 3768 | echo "${ECHO_T}no" >&6 |
| 3769 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3770 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3771 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 3772 | # merged with this chunk of code? |
| 3773 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3774 | # Optimizer/debugger flags |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3775 | # ------------------------ |
| 3776 | # (The following bit of code is complicated enough - please keep things |
| 3777 | # indented properly. Just pretend you're editing Python code. ;-) |
| 3778 | |
| 3779 | # There are two parallel sets of case statements below, one that checks to |
| 3780 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 3781 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 3782 | # user set OPT. |
| 3783 | |
| 3784 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 3785 | # it on the command line |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3786 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3787 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3788 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3789 | case $GCC in |
| 3790 | yes) |
| 3791 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3792 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3793 | if test "$Py_DEBUG" = 'true' ; then |
| 3794 | # Optimization messes up debuggers, so turn it off for |
| 3795 | # debug builds. |
| 3796 | OPT="-g -Wall -Wstrict-prototypes" |
| 3797 | else |
| 3798 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3799 | fi |
| 3800 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3801 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3802 | OPT="-O3 -Wall -Wstrict-prototypes" |
| 3803 | ;; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3804 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3805 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3806 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 3807 | ;; |
| 3808 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3809 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3810 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3811 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3812 | OPT="-O" |
| 3813 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3814 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3815 | |
| 3816 | # The current (beta) Monterey compiler dies with optimizations |
| 3817 | # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this? |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3818 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3819 | Monterey*) |
| 3820 | OPT="" |
| 3821 | ;; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3822 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3823 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3824 | fi |
| 3825 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3826 | |
| 3827 | # tweak BASECFLAGS based on compiler and platform |
| 3828 | case $GCC in |
| 3829 | yes) |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3830 | # Python violates C99 rules, by casting between incompatible |
| 3831 | # pointer types. GCC may generate bad code as a result of that, |
| 3832 | # so use -fno-strict-aliasing if supported. |
| 3833 | echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-aliasing" >&5 |
| 3834 | echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing... $ECHO_C" >&6 |
| 3835 | ac_save_cc="$CC" |
| 3836 | CC="$CC -fno-strict-aliasing" |
| 3837 | if test "$cross_compiling" = yes; then |
| 3838 | ac_cv_no_strict_aliasing_ok=no |
| 3839 | else |
| 3840 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3841 | /* confdefs.h. */ |
| 3842 | _ACEOF |
| 3843 | cat confdefs.h >>conftest.$ac_ext |
| 3844 | cat >>conftest.$ac_ext <<_ACEOF |
| 3845 | /* end confdefs.h. */ |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3846 | int main() { return 0; } |
| 3847 | _ACEOF |
| 3848 | rm -f conftest$ac_exeext |
| 3849 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3850 | (eval $ac_link) 2>&5 |
| 3851 | ac_status=$? |
| 3852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3853 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3855 | (eval $ac_try) 2>&5 |
| 3856 | ac_status=$? |
| 3857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3858 | (exit $ac_status); }; }; then |
| 3859 | ac_cv_no_strict_aliasing_ok=yes |
| 3860 | else |
| 3861 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3862 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3864 | |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3865 | ( exit $ac_status ) |
| 3866 | ac_cv_no_strict_aliasing_ok=no |
| 3867 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3868 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 70fedcd | 2003-07-07 21:26:19 +0000 | [diff] [blame] | 3869 | fi |
| 3870 | CC="$ac_save_cc" |
| 3871 | echo "$as_me:$LINENO: result: $ac_cv_no_strict_aliasing_ok" >&5 |
| 3872 | echo "${ECHO_T}$ac_cv_no_strict_aliasing_ok" >&6 |
| 3873 | if test $ac_cv_no_strict_aliasing_ok = yes |
| 3874 | then |
| 3875 | BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" |
| 3876 | fi |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3877 | case $ac_sys_system in |
| 3878 | SCO_SV*) |
| 3879 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 3880 | ;; |
| 3881 | # is there any other compiler on Darwin besides gcc? |
| 3882 | Darwin*) |
Jack Jansen | e004041 | 2003-07-23 22:17:28 +0000 | [diff] [blame] | 3883 | BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3884 | ;; |
Neal Norwitz | dedeeaa | 2006-03-31 06:54:45 +0000 | [diff] [blame] | 3885 | OSF*) |
| 3886 | BASECFLAGS="$BASECFLAGS -mieee" |
| 3887 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3888 | esac |
| 3889 | ;; |
| 3890 | |
| 3891 | *) |
| 3892 | case $ac_sys_system in |
| 3893 | OpenUNIX*|UnixWare*) |
| 3894 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 3895 | ;; |
Neal Norwitz | b44f165 | 2003-05-26 14:11:55 +0000 | [diff] [blame] | 3896 | OSF*) |
| 3897 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 3898 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3899 | SCO_SV*) |
| 3900 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 3901 | ;; |
| 3902 | esac |
| 3903 | ;; |
| 3904 | esac |
| 3905 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3906 | if test "$Py_DEBUG" = 'true'; then |
| 3907 | : |
| 3908 | else |
| 3909 | OPT="-DNDEBUG $OPT" |
| 3910 | fi |
| 3911 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3912 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3913 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3914 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3915 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3916 | |
Neal Norwitz | 020c46a | 2006-01-07 21:39:28 +0000 | [diff] [blame] | 3917 | # disable check for icc since it seems to pass, but generates a warning |
| 3918 | if test "$CC" = icc |
| 3919 | then |
| 3920 | ac_cv_opt_olimit_ok=no |
| 3921 | fi |
| 3922 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3923 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3924 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3925 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3926 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3927 | else |
| 3928 | ac_save_cc="$CC" |
| 3929 | CC="$CC -OPT:Olimit=0" |
| 3930 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3931 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3932 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3933 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3934 | /* confdefs.h. */ |
| 3935 | _ACEOF |
| 3936 | cat confdefs.h >>conftest.$ac_ext |
| 3937 | cat >>conftest.$ac_ext <<_ACEOF |
| 3938 | /* end confdefs.h. */ |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3939 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3940 | _ACEOF |
| 3941 | rm -f conftest$ac_exeext |
| 3942 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3943 | (eval $ac_link) 2>&5 |
| 3944 | ac_status=$? |
| 3945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3946 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3948 | (eval $ac_try) 2>&5 |
| 3949 | ac_status=$? |
| 3950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3951 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3952 | ac_cv_opt_olimit_ok=yes |
| 3953 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3954 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3955 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3956 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3957 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3958 | ( exit $ac_status ) |
| 3959 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3960 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 3961 | 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] | 3962 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3963 | CC="$ac_save_cc" |
| 3964 | fi |
| 3965 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3966 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3967 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3968 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3969 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3970 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 3971 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 3972 | # environment? |
| 3973 | Darwin*) |
| 3974 | ;; |
| 3975 | *) |
| 3976 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 3977 | ;; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3978 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3979 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3980 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3981 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3982 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3984 | else |
| 3985 | ac_save_cc="$CC" |
| 3986 | CC="$CC -Olimit 1500" |
| 3987 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3988 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3989 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3990 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 3991 | /* confdefs.h. */ |
| 3992 | _ACEOF |
| 3993 | cat confdefs.h >>conftest.$ac_ext |
| 3994 | cat >>conftest.$ac_ext <<_ACEOF |
| 3995 | /* end confdefs.h. */ |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3996 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3997 | _ACEOF |
| 3998 | rm -f conftest$ac_exeext |
| 3999 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4000 | (eval $ac_link) 2>&5 |
| 4001 | ac_status=$? |
| 4002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4003 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4005 | (eval $ac_try) 2>&5 |
| 4006 | ac_status=$? |
| 4007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4008 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4009 | ac_cv_olimit_ok=yes |
| 4010 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4011 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4012 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4013 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4014 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4015 | ( exit $ac_status ) |
| 4016 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 4017 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4018 | 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] | 4019 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4020 | CC="$ac_save_cc" |
| 4021 | fi |
| 4022 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4023 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 4024 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4025 | if test $ac_cv_olimit_ok = yes; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 4026 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 4027 | fi |
| 4028 | fi |
| 4029 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4030 | # On some compilers, pthreads are available without further options |
| 4031 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 4032 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 4033 | # So we have to see first whether pthreads are available without |
| 4034 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4035 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 4036 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 4037 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 4038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4039 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4040 | if test "$cross_compiling" = yes; then |
| 4041 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4042 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4043 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4044 | /* confdefs.h. */ |
| 4045 | _ACEOF |
| 4046 | cat confdefs.h >>conftest.$ac_ext |
| 4047 | cat >>conftest.$ac_ext <<_ACEOF |
| 4048 | /* end confdefs.h. */ |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4049 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4050 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4051 | |
| 4052 | void* routine(void* p){return NULL;} |
| 4053 | |
| 4054 | int main(){ |
| 4055 | pthread_t p; |
| 4056 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4057 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4058 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 4059 | return 0; |
| 4060 | } |
| 4061 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4062 | _ACEOF |
| 4063 | rm -f conftest$ac_exeext |
| 4064 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4065 | (eval $ac_link) 2>&5 |
| 4066 | ac_status=$? |
| 4067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4068 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4070 | (eval $ac_try) 2>&5 |
| 4071 | ac_status=$? |
| 4072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4073 | (exit $ac_status); }; }; then |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4074 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4075 | ac_cv_pthread_is_default=yes |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4076 | ac_cv_kthread=no |
| 4077 | ac_cv_pthread=no |
| 4078 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4079 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4080 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4081 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4083 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4084 | ( exit $ac_status ) |
| 4085 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4086 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4087 | 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] | 4088 | fi |
| 4089 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4090 | fi |
| 4091 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4092 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 4093 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4094 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4095 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4096 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4097 | then |
| 4098 | ac_cv_kpthread=no |
| 4099 | else |
| 4100 | # -Kpthread, if available, provides the right #defines |
| 4101 | # and linker options to make pthread_create available |
| 4102 | # Some compilers won't report that they do not support -Kpthread, |
| 4103 | # so we need to run a program to see whether it really made the |
| 4104 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4105 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 4106 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 4107 | if test "${ac_cv_kpthread+set}" = set; then |
| 4108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4109 | else |
| 4110 | ac_save_cc="$CC" |
| 4111 | CC="$CC -Kpthread" |
| 4112 | if test "$cross_compiling" = yes; then |
| 4113 | ac_cv_kpthread=no |
| 4114 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4115 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4116 | /* confdefs.h. */ |
| 4117 | _ACEOF |
| 4118 | cat confdefs.h >>conftest.$ac_ext |
| 4119 | cat >>conftest.$ac_ext <<_ACEOF |
| 4120 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4121 | |
| 4122 | #include <pthread.h> |
| 4123 | |
| 4124 | void* routine(void* p){return NULL;} |
| 4125 | |
| 4126 | int main(){ |
| 4127 | pthread_t p; |
| 4128 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4129 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 4130 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4131 | return 0; |
| 4132 | } |
| 4133 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4134 | _ACEOF |
| 4135 | rm -f conftest$ac_exeext |
| 4136 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4137 | (eval $ac_link) 2>&5 |
| 4138 | ac_status=$? |
| 4139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4140 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4142 | (eval $ac_try) 2>&5 |
| 4143 | ac_status=$? |
| 4144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4145 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4146 | ac_cv_kpthread=yes |
| 4147 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4148 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4149 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4151 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4152 | ( exit $ac_status ) |
| 4153 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4154 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4155 | 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] | 4156 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4157 | CC="$ac_save_cc" |
| 4158 | fi |
| 4159 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4160 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 4161 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4162 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4163 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4164 | 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] | 4165 | then |
| 4166 | # -Kthread, if available, provides the right #defines |
| 4167 | # and linker options to make pthread_create available |
| 4168 | # Some compilers won't report that they do not support -Kthread, |
| 4169 | # so we need to run a program to see whether it really made the |
| 4170 | # function available. |
| 4171 | echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 4172 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6 |
| 4173 | if test "${ac_cv_kthread+set}" = set; then |
| 4174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4175 | else |
| 4176 | ac_save_cc="$CC" |
| 4177 | CC="$CC -Kthread" |
| 4178 | if test "$cross_compiling" = yes; then |
| 4179 | ac_cv_kthread=no |
| 4180 | else |
| 4181 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4182 | /* confdefs.h. */ |
| 4183 | _ACEOF |
| 4184 | cat confdefs.h >>conftest.$ac_ext |
| 4185 | cat >>conftest.$ac_ext <<_ACEOF |
| 4186 | /* end confdefs.h. */ |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4187 | |
| 4188 | #include <pthread.h> |
| 4189 | |
| 4190 | void* routine(void* p){return NULL;} |
| 4191 | |
| 4192 | int main(){ |
| 4193 | pthread_t p; |
| 4194 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4195 | return 1; |
| 4196 | (void)pthread_detach(p); |
| 4197 | return 0; |
| 4198 | } |
| 4199 | |
| 4200 | _ACEOF |
| 4201 | rm -f conftest$ac_exeext |
| 4202 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4203 | (eval $ac_link) 2>&5 |
| 4204 | ac_status=$? |
| 4205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4206 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4208 | (eval $ac_try) 2>&5 |
| 4209 | ac_status=$? |
| 4210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4211 | (exit $ac_status); }; }; then |
| 4212 | ac_cv_kthread=yes |
| 4213 | else |
| 4214 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4215 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4216 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4217 | |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 4218 | ( exit $ac_status ) |
| 4219 | ac_cv_kthread=no |
| 4220 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4221 | 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] | 4222 | fi |
| 4223 | CC="$ac_save_cc" |
| 4224 | fi |
| 4225 | |
| 4226 | echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 4227 | echo "${ECHO_T}$ac_cv_kthread" >&6 |
| 4228 | fi |
| 4229 | |
Skip Montanaro | d8d39a0 | 2003-07-10 20:44:10 +0000 | [diff] [blame] | 4230 | 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] | 4231 | then |
| 4232 | # -pthread, if available, provides the right #defines |
| 4233 | # and linker options to make pthread_create available |
| 4234 | # Some compilers won't report that they do not support -pthread, |
| 4235 | # so we need to run a program to see whether it really made the |
| 4236 | # function available. |
| 4237 | echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 4238 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6 |
| 4239 | if test "${ac_cv_thread+set}" = set; then |
| 4240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4241 | else |
| 4242 | ac_save_cc="$CC" |
| 4243 | CC="$CC -pthread" |
| 4244 | if test "$cross_compiling" = yes; then |
| 4245 | ac_cv_pthread=no |
| 4246 | else |
| 4247 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4248 | /* confdefs.h. */ |
| 4249 | _ACEOF |
| 4250 | cat confdefs.h >>conftest.$ac_ext |
| 4251 | cat >>conftest.$ac_ext <<_ACEOF |
| 4252 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4253 | |
| 4254 | #include <pthread.h> |
| 4255 | |
| 4256 | void* routine(void* p){return NULL;} |
| 4257 | |
| 4258 | int main(){ |
| 4259 | pthread_t p; |
| 4260 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 4261 | return 1; |
| 4262 | (void)pthread_detach(p); |
| 4263 | return 0; |
| 4264 | } |
| 4265 | |
| 4266 | _ACEOF |
| 4267 | rm -f conftest$ac_exeext |
| 4268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4269 | (eval $ac_link) 2>&5 |
| 4270 | ac_status=$? |
| 4271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4272 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4274 | (eval $ac_try) 2>&5 |
| 4275 | ac_status=$? |
| 4276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4277 | (exit $ac_status); }; }; then |
| 4278 | ac_cv_pthread=yes |
| 4279 | else |
| 4280 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4281 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4283 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 4284 | ( exit $ac_status ) |
| 4285 | ac_cv_pthread=no |
| 4286 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4287 | 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] | 4288 | fi |
| 4289 | CC="$ac_save_cc" |
| 4290 | fi |
| 4291 | |
| 4292 | echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 4293 | echo "${ECHO_T}$ac_cv_pthread" >&6 |
| 4294 | fi |
| 4295 | |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4296 | # If we have set a CC compiler flag for thread support then |
| 4297 | # check if it works for CXX, too. |
| 4298 | ac_cv_cxx_thread=no |
| 4299 | if test ! -z "$CXX" |
| 4300 | then |
| 4301 | echo "$as_me:$LINENO: checking whether $CXX also accepts flags for thread support" >&5 |
| 4302 | echo $ECHO_N "checking whether $CXX also accepts flags for thread support... $ECHO_C" >&6 |
| 4303 | ac_save_cxx="$CXX" |
| 4304 | |
| 4305 | if test "$ac_cv_kpthread" = "yes" |
| 4306 | then |
| 4307 | CXX="$CXX -Kpthread" |
| 4308 | ac_cv_cxx_thread=yes |
| 4309 | elif test "$ac_cv_kthread" = "yes" |
| 4310 | then |
| 4311 | CXX="$CXX -Kthread" |
| 4312 | ac_cv_cxx_thread=yes |
| 4313 | elif test "$ac_cv_pthread" = "yes" |
| 4314 | then |
| 4315 | CXX="$CXX -pthread" |
| 4316 | ac_cv_cxx_thread=yes |
| 4317 | fi |
| 4318 | |
| 4319 | if test $ac_cv_cxx_thread = yes |
| 4320 | then |
| 4321 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
| 4322 | $CXX -c conftest.$ac_ext 2>&5 |
| 4323 | if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 4324 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 4325 | then |
| 4326 | ac_cv_cxx_thread=yes |
| 4327 | else |
| 4328 | ac_cv_cxx_thread=no |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4329 | fi |
| 4330 | rm -fr conftest* |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4331 | fi |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4332 | echo "$as_me:$LINENO: result: $ac_cv_cxx_thread" >&5 |
| 4333 | echo "${ECHO_T}$ac_cv_cxx_thread" >&6 |
Brett Cannon | c601e0f | 2004-11-07 01:24:12 +0000 | [diff] [blame] | 4334 | fi |
| 4335 | CXX="$ac_save_cxx" |
Martin v. Löwis | ab1e585 | 2003-06-28 07:46:38 +0000 | [diff] [blame] | 4336 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4337 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4338 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4339 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4340 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4341 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4343 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4344 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4345 | /* confdefs.h. */ |
| 4346 | _ACEOF |
| 4347 | cat confdefs.h >>conftest.$ac_ext |
| 4348 | cat >>conftest.$ac_ext <<_ACEOF |
| 4349 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4350 | #include <stdlib.h> |
| 4351 | #include <stdarg.h> |
| 4352 | #include <string.h> |
| 4353 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4354 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4355 | int |
| 4356 | main () |
| 4357 | { |
| 4358 | |
| 4359 | ; |
| 4360 | return 0; |
| 4361 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4362 | _ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4363 | rm -f conftest.$ac_objext |
| 4364 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4365 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4366 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4367 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4368 | rm -f conftest.er1 |
| 4369 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4371 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4372 | { ac_try='test -z "$ac_c_werror_flag" |
| 4373 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4375 | (eval $ac_try) 2>&5 |
| 4376 | ac_status=$? |
| 4377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4378 | (exit $ac_status); }; } && |
| 4379 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4381 | (eval $ac_try) 2>&5 |
| 4382 | ac_status=$? |
| 4383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4384 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4385 | ac_cv_header_stdc=yes |
| 4386 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4387 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4388 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4389 | |
| 4390 | ac_cv_header_stdc=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4391 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4392 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4393 | |
| 4394 | if test $ac_cv_header_stdc = yes; then |
| 4395 | # 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] | 4396 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4397 | /* confdefs.h. */ |
| 4398 | _ACEOF |
| 4399 | cat confdefs.h >>conftest.$ac_ext |
| 4400 | cat >>conftest.$ac_ext <<_ACEOF |
| 4401 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4402 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4403 | |
| 4404 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4405 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4406 | $EGREP "memchr" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4407 | : |
| 4408 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4409 | ac_cv_header_stdc=no |
| 4410 | fi |
| 4411 | rm -f conftest* |
| 4412 | |
| 4413 | fi |
| 4414 | |
| 4415 | if test $ac_cv_header_stdc = yes; then |
| 4416 | # 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] | 4417 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4418 | /* confdefs.h. */ |
| 4419 | _ACEOF |
| 4420 | cat confdefs.h >>conftest.$ac_ext |
| 4421 | cat >>conftest.$ac_ext <<_ACEOF |
| 4422 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4423 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4424 | |
| 4425 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4426 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4427 | $EGREP "free" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4428 | : |
| 4429 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4430 | ac_cv_header_stdc=no |
| 4431 | fi |
| 4432 | rm -f conftest* |
| 4433 | |
| 4434 | fi |
| 4435 | |
| 4436 | if test $ac_cv_header_stdc = yes; then |
| 4437 | # /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] | 4438 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4439 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4440 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4441 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4442 | /* confdefs.h. */ |
| 4443 | _ACEOF |
| 4444 | cat confdefs.h >>conftest.$ac_ext |
| 4445 | cat >>conftest.$ac_ext <<_ACEOF |
| 4446 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4447 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4448 | #if ((' ' & 0x0FF) == 0x020) |
| 4449 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4450 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4451 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4452 | # define ISLOWER(c) \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4453 | (('a' <= (c) && (c) <= 'i') \ |
| 4454 | || ('j' <= (c) && (c) <= 'r') \ |
| 4455 | || ('s' <= (c) && (c) <= 'z')) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4456 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4457 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4458 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4459 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4460 | int |
| 4461 | main () |
| 4462 | { |
| 4463 | int i; |
| 4464 | for (i = 0; i < 256; i++) |
| 4465 | if (XOR (islower (i), ISLOWER (i)) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4466 | || toupper (i) != TOUPPER (i)) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4467 | exit(2); |
| 4468 | exit (0); |
| 4469 | } |
| 4470 | _ACEOF |
| 4471 | rm -f conftest$ac_exeext |
| 4472 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4473 | (eval $ac_link) 2>&5 |
| 4474 | ac_status=$? |
| 4475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4476 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4478 | (eval $ac_try) 2>&5 |
| 4479 | ac_status=$? |
| 4480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4481 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4482 | : |
| 4483 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4484 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4485 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4486 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4487 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4488 | ( exit $ac_status ) |
| 4489 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4490 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4491 | 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] | 4492 | fi |
| 4493 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4494 | fi |
| 4495 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4496 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4497 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4498 | |
| 4499 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4500 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4501 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4502 | |
| 4503 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4504 | |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4505 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4506 | |
| 4507 | |
| 4508 | |
| 4509 | |
| 4510 | |
| 4511 | |
| 4512 | |
| 4513 | |
| 4514 | |
| 4515 | 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] | 4516 | inttypes.h stdint.h unistd.h |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4517 | do |
| 4518 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4519 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4520 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4521 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4523 | else |
| 4524 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4525 | /* confdefs.h. */ |
| 4526 | _ACEOF |
| 4527 | cat confdefs.h >>conftest.$ac_ext |
| 4528 | cat >>conftest.$ac_ext <<_ACEOF |
| 4529 | /* end confdefs.h. */ |
| 4530 | $ac_includes_default |
| 4531 | |
| 4532 | #include <$ac_header> |
| 4533 | _ACEOF |
| 4534 | rm -f conftest.$ac_objext |
| 4535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4536 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4537 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4538 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4539 | rm -f conftest.er1 |
| 4540 | cat conftest.err >&5 |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4542 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4543 | { ac_try='test -z "$ac_c_werror_flag" |
| 4544 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4546 | (eval $ac_try) 2>&5 |
| 4547 | ac_status=$? |
| 4548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4549 | (exit $ac_status); }; } && |
| 4550 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4552 | (eval $ac_try) 2>&5 |
| 4553 | ac_status=$? |
| 4554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4555 | (exit $ac_status); }; }; then |
| 4556 | eval "$as_ac_Header=yes" |
| 4557 | else |
| 4558 | echo "$as_me: failed program was:" >&5 |
| 4559 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4560 | |
| 4561 | eval "$as_ac_Header=no" |
| 4562 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4563 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 4564 | fi |
| 4565 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4566 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4567 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4568 | cat >>confdefs.h <<_ACEOF |
| 4569 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4570 | _ACEOF |
| 4571 | |
| 4572 | fi |
| 4573 | |
| 4574 | done |
| 4575 | |
| 4576 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4577 | |
| 4578 | |
| 4579 | |
| 4580 | |
| 4581 | |
| 4582 | |
| 4583 | |
| 4584 | |
| 4585 | |
| 4586 | |
| 4587 | |
| 4588 | |
| 4589 | |
| 4590 | |
| 4591 | |
| 4592 | |
| 4593 | |
| 4594 | |
| 4595 | |
| 4596 | |
| 4597 | |
| 4598 | |
| 4599 | |
| 4600 | |
| 4601 | |
| 4602 | |
| 4603 | |
| 4604 | |
| 4605 | |
| 4606 | |
| 4607 | |
| 4608 | |
| 4609 | |
| 4610 | |
| 4611 | |
| 4612 | |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 4613 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 4614 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 4615 | |
| 4616 | for ac_header in asm/types.h curses.h dlfcn.h fcntl.h grp.h \ |
| 4617 | shadow.h langinfo.h libintl.h ncurses.h poll.h pthread.h \ |
Skip Montanaro | 7befb99 | 2004-02-10 16:50:21 +0000 | [diff] [blame] | 4618 | stropts.h termios.h thread.h \ |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4619 | unistd.h utime.h \ |
Anthony Baxter | 8a560de | 2004-10-13 15:30:56 +0000 | [diff] [blame] | 4620 | sys/audioio.h sys/bsdtty.h sys/file.h sys/loadavg.h sys/lock.h sys/mkdev.h \ |
| 4621 | sys/modem.h \ |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4622 | 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] | 4623 | 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] | 4624 | sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ |
| 4625 | bluetooth/bluetooth.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4626 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4627 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4628 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4629 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4630 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4631 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4633 | fi |
| 4634 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4635 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4636 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4637 | # Is the header compilable? |
| 4638 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4639 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4640 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4641 | /* confdefs.h. */ |
| 4642 | _ACEOF |
| 4643 | cat confdefs.h >>conftest.$ac_ext |
| 4644 | cat >>conftest.$ac_ext <<_ACEOF |
| 4645 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4646 | $ac_includes_default |
| 4647 | #include <$ac_header> |
| 4648 | _ACEOF |
| 4649 | rm -f conftest.$ac_objext |
| 4650 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4651 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4652 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4653 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4654 | rm -f conftest.er1 |
| 4655 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4657 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4658 | { ac_try='test -z "$ac_c_werror_flag" |
| 4659 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4661 | (eval $ac_try) 2>&5 |
| 4662 | ac_status=$? |
| 4663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4664 | (exit $ac_status); }; } && |
| 4665 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4667 | (eval $ac_try) 2>&5 |
| 4668 | ac_status=$? |
| 4669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4670 | (exit $ac_status); }; }; then |
| 4671 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4672 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4673 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4674 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4675 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4676 | ac_header_compiler=no |
| 4677 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4678 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4679 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4680 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4681 | |
| 4682 | # Is the header present? |
| 4683 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4684 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4685 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4686 | /* confdefs.h. */ |
| 4687 | _ACEOF |
| 4688 | cat confdefs.h >>conftest.$ac_ext |
| 4689 | cat >>conftest.$ac_ext <<_ACEOF |
| 4690 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4691 | #include <$ac_header> |
| 4692 | _ACEOF |
| 4693 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4694 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4695 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4696 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4697 | rm -f conftest.er1 |
| 4698 | cat conftest.err >&5 |
| 4699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4700 | (exit $ac_status); } >/dev/null; then |
| 4701 | if test -s conftest.err; then |
| 4702 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4703 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4704 | else |
| 4705 | ac_cpp_err= |
| 4706 | fi |
| 4707 | else |
| 4708 | ac_cpp_err=yes |
| 4709 | fi |
| 4710 | if test -z "$ac_cpp_err"; then |
| 4711 | ac_header_preproc=yes |
| 4712 | else |
| 4713 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4714 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4715 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4716 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4717 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4718 | rm -f conftest.err conftest.$ac_ext |
| 4719 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4720 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4721 | |
| 4722 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4723 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 4724 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4725 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4726 | 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] | 4727 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 4728 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 4729 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 4730 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4731 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 4732 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4733 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4734 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4735 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4736 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 4737 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 4738 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 4739 | 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] | 4740 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4741 | 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] | 4742 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 4743 | 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] | 4744 | ( |
| 4745 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 4746 | ## ------------------------------------------------ ## |
| 4747 | ## Report this to http://www.python.org/python-bugs ## |
| 4748 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4749 | _ASBOX |
| 4750 | ) | |
| 4751 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4752 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4753 | esac |
| 4754 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4755 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4756 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4758 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4759 | eval "$as_ac_Header=\$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4760 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4761 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4762 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4763 | |
| 4764 | fi |
| 4765 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4766 | cat >>confdefs.h <<_ACEOF |
| 4767 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4768 | _ACEOF |
| 4769 | |
| 4770 | fi |
| 4771 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4772 | done |
| 4773 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4774 | |
| 4775 | |
| 4776 | |
| 4777 | |
| 4778 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4779 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4780 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 4781 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 4782 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 4783 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 4784 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4786 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4787 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4788 | /* confdefs.h. */ |
| 4789 | _ACEOF |
| 4790 | cat confdefs.h >>conftest.$ac_ext |
| 4791 | cat >>conftest.$ac_ext <<_ACEOF |
| 4792 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4793 | #include <sys/types.h> |
| 4794 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4795 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4796 | int |
| 4797 | main () |
| 4798 | { |
| 4799 | if ((DIR *) 0) |
| 4800 | return 0; |
| 4801 | ; |
| 4802 | return 0; |
| 4803 | } |
| 4804 | _ACEOF |
| 4805 | rm -f conftest.$ac_objext |
| 4806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4807 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4808 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4809 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4810 | rm -f conftest.er1 |
| 4811 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4813 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4814 | { ac_try='test -z "$ac_c_werror_flag" |
| 4815 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4817 | (eval $ac_try) 2>&5 |
| 4818 | ac_status=$? |
| 4819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4820 | (exit $ac_status); }; } && |
| 4821 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4823 | (eval $ac_try) 2>&5 |
| 4824 | ac_status=$? |
| 4825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4826 | (exit $ac_status); }; }; then |
| 4827 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4828 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4829 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4831 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4832 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4833 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4834 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4835 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4836 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4837 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4838 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4839 | cat >>confdefs.h <<_ACEOF |
| 4840 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4841 | _ACEOF |
| 4842 | |
| 4843 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4844 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4845 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4846 | done |
| 4847 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4848 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4849 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4850 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4851 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4853 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4854 | ac_func_search_save_LIBS=$LIBS |
| 4855 | ac_cv_search_opendir=no |
| 4856 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4857 | /* confdefs.h. */ |
| 4858 | _ACEOF |
| 4859 | cat confdefs.h >>conftest.$ac_ext |
| 4860 | cat >>conftest.$ac_ext <<_ACEOF |
| 4861 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4862 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4863 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4864 | #ifdef __cplusplus |
| 4865 | extern "C" |
| 4866 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4867 | /* 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] | 4868 | builtin and then its argument prototype would still apply. */ |
| 4869 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4870 | int |
| 4871 | main () |
| 4872 | { |
| 4873 | opendir (); |
| 4874 | ; |
| 4875 | return 0; |
| 4876 | } |
| 4877 | _ACEOF |
| 4878 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4879 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4880 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4881 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4882 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4883 | rm -f conftest.er1 |
| 4884 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4886 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4887 | { ac_try='test -z "$ac_c_werror_flag" |
| 4888 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4890 | (eval $ac_try) 2>&5 |
| 4891 | ac_status=$? |
| 4892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4893 | (exit $ac_status); }; } && |
| 4894 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4896 | (eval $ac_try) 2>&5 |
| 4897 | ac_status=$? |
| 4898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4899 | (exit $ac_status); }; }; then |
| 4900 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4901 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4902 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4904 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4905 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4906 | rm -f conftest.err conftest.$ac_objext \ |
| 4907 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4908 | if test "$ac_cv_search_opendir" = no; then |
| 4909 | for ac_lib in dir; do |
| 4910 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4911 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4912 | /* confdefs.h. */ |
| 4913 | _ACEOF |
| 4914 | cat confdefs.h >>conftest.$ac_ext |
| 4915 | cat >>conftest.$ac_ext <<_ACEOF |
| 4916 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4917 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4918 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4919 | #ifdef __cplusplus |
| 4920 | extern "C" |
| 4921 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4922 | /* 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] | 4923 | builtin and then its argument prototype would still apply. */ |
| 4924 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4925 | int |
| 4926 | main () |
| 4927 | { |
| 4928 | opendir (); |
| 4929 | ; |
| 4930 | return 0; |
| 4931 | } |
| 4932 | _ACEOF |
| 4933 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4934 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4935 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4936 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4937 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4938 | rm -f conftest.er1 |
| 4939 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4941 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 4942 | { ac_try='test -z "$ac_c_werror_flag" |
| 4943 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4945 | (eval $ac_try) 2>&5 |
| 4946 | ac_status=$? |
| 4947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4948 | (exit $ac_status); }; } && |
| 4949 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4951 | (eval $ac_try) 2>&5 |
| 4952 | ac_status=$? |
| 4953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4954 | (exit $ac_status); }; }; then |
| 4955 | ac_cv_search_opendir="-l$ac_lib" |
| 4956 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4957 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4958 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4960 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4961 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 4962 | rm -f conftest.err conftest.$ac_objext \ |
| 4963 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4964 | done |
| 4965 | fi |
| 4966 | LIBS=$ac_func_search_save_LIBS |
| 4967 | fi |
| 4968 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4969 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4970 | if test "$ac_cv_search_opendir" != no; then |
| 4971 | 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] | 4972 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4973 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4974 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4975 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4976 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4977 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4978 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4980 | else |
| 4981 | ac_func_search_save_LIBS=$LIBS |
| 4982 | ac_cv_search_opendir=no |
| 4983 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 4984 | /* confdefs.h. */ |
| 4985 | _ACEOF |
| 4986 | cat confdefs.h >>conftest.$ac_ext |
| 4987 | cat >>conftest.$ac_ext <<_ACEOF |
| 4988 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4989 | |
| 4990 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4991 | #ifdef __cplusplus |
| 4992 | extern "C" |
| 4993 | #endif |
| 4994 | /* We use char because int might match the return type of a gcc2 |
| 4995 | builtin and then its argument prototype would still apply. */ |
| 4996 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4997 | int |
| 4998 | main () |
| 4999 | { |
| 5000 | opendir (); |
| 5001 | ; |
| 5002 | return 0; |
| 5003 | } |
| 5004 | _ACEOF |
| 5005 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5006 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5007 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5008 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5009 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5010 | rm -f conftest.er1 |
| 5011 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5013 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5014 | { ac_try='test -z "$ac_c_werror_flag" |
| 5015 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5017 | (eval $ac_try) 2>&5 |
| 5018 | ac_status=$? |
| 5019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5020 | (exit $ac_status); }; } && |
| 5021 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5023 | (eval $ac_try) 2>&5 |
| 5024 | ac_status=$? |
| 5025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5026 | (exit $ac_status); }; }; then |
| 5027 | ac_cv_search_opendir="none required" |
| 5028 | else |
| 5029 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5031 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5032 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5033 | rm -f conftest.err conftest.$ac_objext \ |
| 5034 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5035 | if test "$ac_cv_search_opendir" = no; then |
| 5036 | for ac_lib in x; do |
| 5037 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 5038 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5039 | /* confdefs.h. */ |
| 5040 | _ACEOF |
| 5041 | cat confdefs.h >>conftest.$ac_ext |
| 5042 | cat >>conftest.$ac_ext <<_ACEOF |
| 5043 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5044 | |
| 5045 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5046 | #ifdef __cplusplus |
| 5047 | extern "C" |
| 5048 | #endif |
| 5049 | /* We use char because int might match the return type of a gcc2 |
| 5050 | builtin and then its argument prototype would still apply. */ |
| 5051 | char opendir (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5052 | int |
| 5053 | main () |
| 5054 | { |
| 5055 | opendir (); |
| 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 | 1143799 | 2002-04-12 09:54:03 +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 | 1143799 | 2002-04-12 09:54:03 +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 | 1143799 | 2002-04-12 09:54:03 +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_search_opendir="-l$ac_lib" |
| 5083 | break |
| 5084 | else |
| 5085 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5087 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5091 | done |
| 5092 | fi |
| 5093 | LIBS=$ac_func_search_save_LIBS |
| 5094 | fi |
| 5095 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 5096 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 5097 | if test "$ac_cv_search_opendir" != no; then |
| 5098 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 5099 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5100 | fi |
| 5101 | |
| 5102 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5103 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5104 | echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 5105 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 |
| 5106 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 5107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5108 | else |
| 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 | #include <sys/types.h> |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5116 | int |
| 5117 | main () |
| 5118 | { |
| 5119 | return makedev(0, 0); |
| 5120 | ; |
| 5121 | return 0; |
| 5122 | } |
| 5123 | _ACEOF |
| 5124 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5125 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5126 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5127 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5128 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5129 | rm -f conftest.er1 |
| 5130 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5132 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5133 | { ac_try='test -z "$ac_c_werror_flag" |
| 5134 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +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); }; } && |
| 5140 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5142 | (eval $ac_try) 2>&5 |
| 5143 | ac_status=$? |
| 5144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5145 | (exit $ac_status); }; }; then |
| 5146 | ac_cv_header_sys_types_h_makedev=yes |
| 5147 | else |
| 5148 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5150 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5151 | ac_cv_header_sys_types_h_makedev=no |
| 5152 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5153 | rm -f conftest.err conftest.$ac_objext \ |
| 5154 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5155 | |
| 5156 | fi |
| 5157 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 5158 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 |
| 5159 | |
| 5160 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 5161 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5162 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5163 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 5164 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5166 | fi |
| 5167 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5168 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 5169 | else |
| 5170 | # Is the header compilable? |
| 5171 | echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 5172 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 |
| 5173 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5174 | /* confdefs.h. */ |
| 5175 | _ACEOF |
| 5176 | cat confdefs.h >>conftest.$ac_ext |
| 5177 | cat >>conftest.$ac_ext <<_ACEOF |
| 5178 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5179 | $ac_includes_default |
| 5180 | #include <sys/mkdev.h> |
| 5181 | _ACEOF |
| 5182 | rm -f conftest.$ac_objext |
| 5183 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5184 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5185 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5186 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5187 | rm -f conftest.er1 |
| 5188 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5190 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5191 | { ac_try='test -z "$ac_c_werror_flag" |
| 5192 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5194 | (eval $ac_try) 2>&5 |
| 5195 | ac_status=$? |
| 5196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5197 | (exit $ac_status); }; } && |
| 5198 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5200 | (eval $ac_try) 2>&5 |
| 5201 | ac_status=$? |
| 5202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5203 | (exit $ac_status); }; }; then |
| 5204 | ac_header_compiler=yes |
| 5205 | else |
| 5206 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5207 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5208 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5209 | ac_header_compiler=no |
| 5210 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5211 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5212 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5213 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5214 | |
| 5215 | # Is the header present? |
| 5216 | echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 5217 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 |
| 5218 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5219 | /* confdefs.h. */ |
| 5220 | _ACEOF |
| 5221 | cat confdefs.h >>conftest.$ac_ext |
| 5222 | cat >>conftest.$ac_ext <<_ACEOF |
| 5223 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5224 | #include <sys/mkdev.h> |
| 5225 | _ACEOF |
| 5226 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5227 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5228 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5229 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5230 | rm -f conftest.er1 |
| 5231 | cat conftest.err >&5 |
| 5232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5233 | (exit $ac_status); } >/dev/null; then |
| 5234 | if test -s conftest.err; then |
| 5235 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5236 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5237 | else |
| 5238 | ac_cpp_err= |
| 5239 | fi |
| 5240 | else |
| 5241 | ac_cpp_err=yes |
| 5242 | fi |
| 5243 | if test -z "$ac_cpp_err"; then |
| 5244 | ac_header_preproc=yes |
| 5245 | else |
| 5246 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5247 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5248 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5249 | ac_header_preproc=no |
| 5250 | fi |
| 5251 | rm -f conftest.err conftest.$ac_ext |
| 5252 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5253 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5254 | |
| 5255 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5256 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5257 | yes:no: ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5258 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5259 | 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] | 5260 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5 |
| 5261 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;} |
| 5262 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5263 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5264 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5265 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 5266 | 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] | 5267 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 5268 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 5269 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5 |
| 5270 | echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;} |
| 5271 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5272 | 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] | 5273 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 5274 | 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] | 5275 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5 |
| 5276 | 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] | 5277 | ( |
| 5278 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 5279 | ## ------------------------------------------------ ## |
| 5280 | ## Report this to http://www.python.org/python-bugs ## |
| 5281 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5282 | _ASBOX |
| 5283 | ) | |
| 5284 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5285 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5286 | esac |
| 5287 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 5288 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 5289 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 5290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5291 | else |
| 5292 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 5293 | fi |
| 5294 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 5295 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 5296 | |
| 5297 | fi |
| 5298 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 5299 | |
| 5300 | cat >>confdefs.h <<\_ACEOF |
| 5301 | #define MAJOR_IN_MKDEV 1 |
| 5302 | _ACEOF |
| 5303 | |
| 5304 | fi |
| 5305 | |
| 5306 | |
| 5307 | |
| 5308 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 5309 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5310 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 5311 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 5312 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5314 | fi |
| 5315 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 5316 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 5317 | else |
| 5318 | # Is the header compilable? |
| 5319 | echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 5320 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 |
| 5321 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5322 | /* confdefs.h. */ |
| 5323 | _ACEOF |
| 5324 | cat confdefs.h >>conftest.$ac_ext |
| 5325 | cat >>conftest.$ac_ext <<_ACEOF |
| 5326 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5327 | $ac_includes_default |
| 5328 | #include <sys/sysmacros.h> |
| 5329 | _ACEOF |
| 5330 | rm -f conftest.$ac_objext |
| 5331 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5332 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5333 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5334 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5335 | rm -f conftest.er1 |
| 5336 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5338 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5339 | { ac_try='test -z "$ac_c_werror_flag" |
| 5340 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5342 | (eval $ac_try) 2>&5 |
| 5343 | ac_status=$? |
| 5344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5345 | (exit $ac_status); }; } && |
| 5346 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5348 | (eval $ac_try) 2>&5 |
| 5349 | ac_status=$? |
| 5350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5351 | (exit $ac_status); }; }; then |
| 5352 | ac_header_compiler=yes |
| 5353 | else |
| 5354 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5355 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5356 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5357 | ac_header_compiler=no |
| 5358 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5359 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5360 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5361 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5362 | |
| 5363 | # Is the header present? |
| 5364 | echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 5365 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 |
| 5366 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5367 | /* confdefs.h. */ |
| 5368 | _ACEOF |
| 5369 | cat confdefs.h >>conftest.$ac_ext |
| 5370 | cat >>conftest.$ac_ext <<_ACEOF |
| 5371 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5372 | #include <sys/sysmacros.h> |
| 5373 | _ACEOF |
| 5374 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5375 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5376 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5377 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5378 | rm -f conftest.er1 |
| 5379 | cat conftest.err >&5 |
| 5380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5381 | (exit $ac_status); } >/dev/null; then |
| 5382 | if test -s conftest.err; then |
| 5383 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5384 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5385 | else |
| 5386 | ac_cpp_err= |
| 5387 | fi |
| 5388 | else |
| 5389 | ac_cpp_err=yes |
| 5390 | fi |
| 5391 | if test -z "$ac_cpp_err"; then |
| 5392 | ac_header_preproc=yes |
| 5393 | else |
| 5394 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5395 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5396 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5397 | ac_header_preproc=no |
| 5398 | fi |
| 5399 | rm -f conftest.err conftest.$ac_ext |
| 5400 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5401 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5402 | |
| 5403 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5404 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5405 | yes:no: ) |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5406 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5407 | 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] | 5408 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5 |
| 5409 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;} |
| 5410 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5411 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5412 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 5413 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 5414 | 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] | 5415 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 5416 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 5417 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5 |
| 5418 | echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;} |
| 5419 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 5420 | 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] | 5421 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 5422 | 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] | 5423 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5 |
| 5424 | 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] | 5425 | ( |
| 5426 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 5427 | ## ------------------------------------------------ ## |
| 5428 | ## Report this to http://www.python.org/python-bugs ## |
| 5429 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5430 | _ASBOX |
| 5431 | ) | |
| 5432 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5433 | ;; |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 5434 | esac |
| 5435 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 5436 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 5437 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 5438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5439 | else |
| 5440 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 5441 | fi |
| 5442 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 5443 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 5444 | |
| 5445 | fi |
| 5446 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 5447 | |
| 5448 | cat >>confdefs.h <<\_ACEOF |
| 5449 | #define MAJOR_IN_SYSMACROS 1 |
| 5450 | _ACEOF |
| 5451 | |
| 5452 | fi |
| 5453 | |
| 5454 | |
| 5455 | fi |
| 5456 | fi |
| 5457 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5458 | |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5459 | # On Solaris, term.h requires curses.h |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5460 | |
| 5461 | for ac_header in term.h |
| 5462 | do |
| 5463 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5464 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5465 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5466 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5468 | else |
| 5469 | cat >conftest.$ac_ext <<_ACEOF |
| 5470 | /* confdefs.h. */ |
| 5471 | _ACEOF |
| 5472 | cat confdefs.h >>conftest.$ac_ext |
| 5473 | cat >>conftest.$ac_ext <<_ACEOF |
| 5474 | /* end confdefs.h. */ |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5475 | |
Martin v. Löwis | 5d52e78 | 2004-09-18 10:07:03 +0000 | [diff] [blame] | 5476 | #ifdef HAVE_CURSES_H |
| 5477 | #include <curses.h> |
| 5478 | #endif |
| 5479 | |
| 5480 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5481 | #include <$ac_header> |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5482 | _ACEOF |
| 5483 | rm -f conftest.$ac_objext |
| 5484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5485 | (eval $ac_compile) 2>conftest.er1 |
| 5486 | ac_status=$? |
| 5487 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5488 | rm -f conftest.er1 |
| 5489 | cat conftest.err >&5 |
| 5490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5491 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5492 | { ac_try='test -z "$ac_c_werror_flag" |
| 5493 | || test ! -s conftest.err' |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5495 | (eval $ac_try) 2>&5 |
| 5496 | ac_status=$? |
| 5497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5498 | (exit $ac_status); }; } && |
| 5499 | { ac_try='test -s conftest.$ac_objext' |
| 5500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5501 | (eval $ac_try) 2>&5 |
| 5502 | ac_status=$? |
| 5503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5504 | (exit $ac_status); }; }; then |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5505 | eval "$as_ac_Header=yes" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5506 | else |
| 5507 | echo "$as_me: failed program was:" >&5 |
| 5508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5509 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5510 | eval "$as_ac_Header=no" |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5511 | fi |
| 5512 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5513 | fi |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5514 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5515 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5516 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5517 | cat >>confdefs.h <<_ACEOF |
| 5518 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5519 | _ACEOF |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5520 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 5521 | fi |
| 5522 | |
| 5523 | done |
Martin v. Löwis | ae2830c | 2004-09-18 09:54:52 +0000 | [diff] [blame] | 5524 | |
| 5525 | |
Martin v. Löwis | 11017b1 | 2006-01-14 18:12:57 +0000 | [diff] [blame] | 5526 | # On Linux, netlink.h requires asm/types.h |
| 5527 | |
| 5528 | for ac_header in linux/netlink.h |
| 5529 | do |
| 5530 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5531 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5532 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5533 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5535 | else |
| 5536 | cat >conftest.$ac_ext <<_ACEOF |
| 5537 | /* confdefs.h. */ |
| 5538 | _ACEOF |
| 5539 | cat confdefs.h >>conftest.$ac_ext |
| 5540 | cat >>conftest.$ac_ext <<_ACEOF |
| 5541 | /* end confdefs.h. */ |
| 5542 | |
| 5543 | #ifdef HAVE_ASM_TYPES_H |
| 5544 | #include <asm/types.h> |
| 5545 | #endif |
| 5546 | #ifdef HAVE_SYS_SOCKET_H |
| 5547 | #include <sys/socket.h> |
| 5548 | #endif |
| 5549 | |
| 5550 | |
| 5551 | #include <$ac_header> |
| 5552 | _ACEOF |
| 5553 | rm -f conftest.$ac_objext |
| 5554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5555 | (eval $ac_compile) 2>conftest.er1 |
| 5556 | ac_status=$? |
| 5557 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5558 | rm -f conftest.er1 |
| 5559 | cat conftest.err >&5 |
| 5560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5561 | (exit $ac_status); } && |
| 5562 | { ac_try='test -z "$ac_c_werror_flag" |
| 5563 | || test ! -s conftest.err' |
| 5564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5565 | (eval $ac_try) 2>&5 |
| 5566 | ac_status=$? |
| 5567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5568 | (exit $ac_status); }; } && |
| 5569 | { ac_try='test -s conftest.$ac_objext' |
| 5570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5571 | (eval $ac_try) 2>&5 |
| 5572 | ac_status=$? |
| 5573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5574 | (exit $ac_status); }; }; then |
| 5575 | eval "$as_ac_Header=yes" |
| 5576 | else |
| 5577 | echo "$as_me: failed program was:" >&5 |
| 5578 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5579 | |
| 5580 | eval "$as_ac_Header=no" |
| 5581 | fi |
| 5582 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5583 | fi |
| 5584 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5585 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5586 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5587 | cat >>confdefs.h <<_ACEOF |
| 5588 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5589 | _ACEOF |
| 5590 | |
| 5591 | fi |
| 5592 | |
| 5593 | done |
| 5594 | |
| 5595 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5596 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5597 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5598 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 5599 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 5600 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5601 | /* confdefs.h. */ |
| 5602 | _ACEOF |
| 5603 | cat confdefs.h >>conftest.$ac_ext |
| 5604 | cat >>conftest.$ac_ext <<_ACEOF |
| 5605 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5606 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5607 | |
| 5608 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5609 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5610 | $EGREP "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5611 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5612 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5613 | |
| 5614 | |
| 5615 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5616 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5617 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5618 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 5619 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5620 | fi |
| 5621 | rm -f conftest* |
| 5622 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5623 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 5624 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5625 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5626 | # Check whether using makedev requires defining _OSF_SOURCE |
| 5627 | echo "$as_me:$LINENO: checking for makedev" >&5 |
| 5628 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6 |
| 5629 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5630 | /* confdefs.h. */ |
| 5631 | _ACEOF |
| 5632 | cat confdefs.h >>conftest.$ac_ext |
| 5633 | cat >>conftest.$ac_ext <<_ACEOF |
| 5634 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5635 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5636 | int |
| 5637 | main () |
| 5638 | { |
| 5639 | makedev(0, 0) |
| 5640 | ; |
| 5641 | return 0; |
| 5642 | } |
| 5643 | _ACEOF |
| 5644 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5645 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5646 | (eval $ac_link) 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5647 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5648 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5649 | rm -f conftest.er1 |
| 5650 | cat conftest.err >&5 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5652 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5653 | { ac_try='test -z "$ac_c_werror_flag" |
| 5654 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5656 | (eval $ac_try) 2>&5 |
| 5657 | ac_status=$? |
| 5658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5659 | (exit $ac_status); }; } && |
| 5660 | { ac_try='test -s conftest$ac_exeext' |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5662 | (eval $ac_try) 2>&5 |
| 5663 | ac_status=$? |
| 5664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5665 | (exit $ac_status); }; }; then |
| 5666 | ac_cv_has_makedev=yes |
| 5667 | else |
| 5668 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5669 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5670 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5671 | ac_cv_has_makedev=no |
| 5672 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5673 | rm -f conftest.err conftest.$ac_objext \ |
| 5674 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5675 | if test "$ac_cv_has_makedev" = "no"; then |
| 5676 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 5677 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5678 | /* confdefs.h. */ |
| 5679 | _ACEOF |
| 5680 | cat confdefs.h >>conftest.$ac_ext |
| 5681 | cat >>conftest.$ac_ext <<_ACEOF |
| 5682 | /* end confdefs.h. */ |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5683 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 5684 | #define _OSF_SOURCE 1 |
| 5685 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5686 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5687 | int |
| 5688 | main () |
| 5689 | { |
| 5690 | makedev(0, 0) |
| 5691 | ; |
| 5692 | return 0; |
| 5693 | } |
| 5694 | _ACEOF |
| 5695 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5696 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5697 | (eval $ac_link) 2>conftest.er1 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5698 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5699 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5700 | rm -f conftest.er1 |
| 5701 | cat conftest.err >&5 |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5703 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5704 | { ac_try='test -z "$ac_c_werror_flag" |
| 5705 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5707 | (eval $ac_try) 2>&5 |
| 5708 | ac_status=$? |
| 5709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5710 | (exit $ac_status); }; } && |
| 5711 | { ac_try='test -s conftest$ac_exeext' |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5713 | (eval $ac_try) 2>&5 |
| 5714 | ac_status=$? |
| 5715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5716 | (exit $ac_status); }; }; then |
| 5717 | ac_cv_has_makedev=yes |
| 5718 | else |
| 5719 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5720 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5721 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5722 | ac_cv_has_makedev=no |
| 5723 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5724 | rm -f conftest.err conftest.$ac_objext \ |
| 5725 | conftest$ac_exeext conftest.$ac_ext |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 5726 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5727 | |
| 5728 | cat >>confdefs.h <<\_ACEOF |
| 5729 | #define _OSF_SOURCE 1 |
| 5730 | _ACEOF |
| 5731 | |
| 5732 | fi |
| 5733 | fi |
| 5734 | echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 5735 | echo "${ECHO_T}$ac_cv_has_makedev" >&6 |
| 5736 | if test "$ac_cv_has_makedev" = "yes"; then |
| 5737 | |
| 5738 | cat >>confdefs.h <<\_ACEOF |
| 5739 | #define HAVE_MAKEDEV 1 |
| 5740 | _ACEOF |
| 5741 | |
| 5742 | fi |
| 5743 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5744 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 5745 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 5746 | # defined, but the compiler does not support pragma redefine_extname, |
| 5747 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 5748 | # structures (such as rlimit64) without declaring them. As a |
| 5749 | # work-around, disable LFS on such configurations |
| 5750 | |
| 5751 | use_lfs=yes |
| 5752 | echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 5753 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6 |
| 5754 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5755 | /* confdefs.h. */ |
| 5756 | _ACEOF |
| 5757 | cat confdefs.h >>conftest.$ac_ext |
| 5758 | cat >>conftest.$ac_ext <<_ACEOF |
| 5759 | /* end confdefs.h. */ |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5760 | |
| 5761 | #define _LARGEFILE_SOURCE 1 |
| 5762 | #define _FILE_OFFSET_BITS 64 |
| 5763 | #include <sys/resource.h> |
| 5764 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5765 | int |
| 5766 | main () |
| 5767 | { |
| 5768 | struct rlimit foo; |
| 5769 | ; |
| 5770 | return 0; |
| 5771 | } |
| 5772 | _ACEOF |
| 5773 | rm -f conftest.$ac_objext |
| 5774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5775 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5776 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5777 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5778 | rm -f conftest.er1 |
| 5779 | cat conftest.err >&5 |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5781 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5782 | { ac_try='test -z "$ac_c_werror_flag" |
| 5783 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5785 | (eval $ac_try) 2>&5 |
| 5786 | ac_status=$? |
| 5787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5788 | (exit $ac_status); }; } && |
| 5789 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5791 | (eval $ac_try) 2>&5 |
| 5792 | ac_status=$? |
| 5793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5794 | (exit $ac_status); }; }; then |
| 5795 | sol_lfs_bug=no |
| 5796 | else |
| 5797 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5798 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5799 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5800 | sol_lfs_bug=yes |
| 5801 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5802 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5803 | echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 5804 | echo "${ECHO_T}$sol_lfs_bug" >&6 |
| 5805 | if test "$sol_lfs_bug" = "yes"; then |
| 5806 | use_lfs=no |
| 5807 | fi |
| 5808 | |
| 5809 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5810 | # Two defines needed to enable largefile support on various platforms |
| 5811 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5812 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5813 | cat >>confdefs.h <<\_ACEOF |
| 5814 | #define _LARGEFILE_SOURCE 1 |
| 5815 | _ACEOF |
| 5816 | |
| 5817 | |
| 5818 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5819 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5820 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5821 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5822 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5823 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 5824 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 5825 | cat >> confdefs.h <<\EOF |
| 5826 | #if defined(SCO_DS) |
| 5827 | #undef _OFF_T |
| 5828 | #endif |
| 5829 | EOF |
| 5830 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5831 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5832 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 5833 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 5834 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 5835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5836 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5837 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5838 | /* confdefs.h. */ |
| 5839 | _ACEOF |
| 5840 | cat confdefs.h >>conftest.$ac_ext |
| 5841 | cat >>conftest.$ac_ext <<_ACEOF |
| 5842 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5843 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5844 | int |
| 5845 | main () |
| 5846 | { |
| 5847 | if ((mode_t *) 0) |
| 5848 | return 0; |
| 5849 | if (sizeof (mode_t)) |
| 5850 | return 0; |
| 5851 | ; |
| 5852 | return 0; |
| 5853 | } |
| 5854 | _ACEOF |
| 5855 | rm -f conftest.$ac_objext |
| 5856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5857 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5858 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5859 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5860 | rm -f conftest.er1 |
| 5861 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5863 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5864 | { ac_try='test -z "$ac_c_werror_flag" |
| 5865 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5867 | (eval $ac_try) 2>&5 |
| 5868 | ac_status=$? |
| 5869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5870 | (exit $ac_status); }; } && |
| 5871 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5873 | (eval $ac_try) 2>&5 |
| 5874 | ac_status=$? |
| 5875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5876 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5877 | ac_cv_type_mode_t=yes |
| 5878 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5879 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5880 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5881 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5882 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5883 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5884 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5885 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5886 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 5887 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 5888 | if test $ac_cv_type_mode_t = yes; then |
| 5889 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5890 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5891 | |
| 5892 | cat >>confdefs.h <<_ACEOF |
| 5893 | #define mode_t int |
| 5894 | _ACEOF |
| 5895 | |
| 5896 | fi |
| 5897 | |
| 5898 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5899 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 5900 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5902 | else |
| 5903 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5904 | /* confdefs.h. */ |
| 5905 | _ACEOF |
| 5906 | cat confdefs.h >>conftest.$ac_ext |
| 5907 | cat >>conftest.$ac_ext <<_ACEOF |
| 5908 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5909 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5910 | int |
| 5911 | main () |
| 5912 | { |
| 5913 | if ((off_t *) 0) |
| 5914 | return 0; |
| 5915 | if (sizeof (off_t)) |
| 5916 | return 0; |
| 5917 | ; |
| 5918 | return 0; |
| 5919 | } |
| 5920 | _ACEOF |
| 5921 | rm -f conftest.$ac_objext |
| 5922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5923 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5924 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5925 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5926 | rm -f conftest.er1 |
| 5927 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5929 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5930 | { ac_try='test -z "$ac_c_werror_flag" |
| 5931 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5933 | (eval $ac_try) 2>&5 |
| 5934 | ac_status=$? |
| 5935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5936 | (exit $ac_status); }; } && |
| 5937 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5939 | (eval $ac_try) 2>&5 |
| 5940 | ac_status=$? |
| 5941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5942 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5943 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5944 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5945 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5946 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5947 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5948 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5949 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5950 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5951 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5952 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5953 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 5954 | if test $ac_cv_type_off_t = yes; then |
| 5955 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5956 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5957 | |
| 5958 | cat >>confdefs.h <<_ACEOF |
| 5959 | #define off_t long |
| 5960 | _ACEOF |
| 5961 | |
| 5962 | fi |
| 5963 | |
| 5964 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 5965 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 5966 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 5967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5968 | else |
| 5969 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 5970 | /* confdefs.h. */ |
| 5971 | _ACEOF |
| 5972 | cat confdefs.h >>conftest.$ac_ext |
| 5973 | cat >>conftest.$ac_ext <<_ACEOF |
| 5974 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5975 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5976 | int |
| 5977 | main () |
| 5978 | { |
| 5979 | if ((pid_t *) 0) |
| 5980 | return 0; |
| 5981 | if (sizeof (pid_t)) |
| 5982 | return 0; |
| 5983 | ; |
| 5984 | return 0; |
| 5985 | } |
| 5986 | _ACEOF |
| 5987 | rm -f conftest.$ac_objext |
| 5988 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5989 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5990 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5991 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5992 | rm -f conftest.er1 |
| 5993 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5995 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 5996 | { ac_try='test -z "$ac_c_werror_flag" |
| 5997 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 5998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5999 | (eval $ac_try) 2>&5 |
| 6000 | ac_status=$? |
| 6001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6002 | (exit $ac_status); }; } && |
| 6003 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6005 | (eval $ac_try) 2>&5 |
| 6006 | ac_status=$? |
| 6007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6008 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6009 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6010 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6011 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6012 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6013 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6014 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6015 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6016 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6017 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6018 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 6019 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 6020 | if test $ac_cv_type_pid_t = yes; then |
| 6021 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6022 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6023 | |
| 6024 | cat >>confdefs.h <<_ACEOF |
| 6025 | #define pid_t int |
| 6026 | _ACEOF |
| 6027 | |
| 6028 | fi |
| 6029 | |
| 6030 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 6031 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 6032 | if test "${ac_cv_type_signal+set}" = set; then |
| 6033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6034 | else |
| 6035 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6036 | /* confdefs.h. */ |
| 6037 | _ACEOF |
| 6038 | cat confdefs.h >>conftest.$ac_ext |
| 6039 | cat >>conftest.$ac_ext <<_ACEOF |
| 6040 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6041 | #include <sys/types.h> |
| 6042 | #include <signal.h> |
| 6043 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6044 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6045 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6046 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6047 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 6048 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6049 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6050 | #endif |
| 6051 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6052 | int |
| 6053 | main () |
| 6054 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6055 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6056 | ; |
| 6057 | return 0; |
| 6058 | } |
| 6059 | _ACEOF |
| 6060 | rm -f conftest.$ac_objext |
| 6061 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6062 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6063 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6064 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6065 | rm -f conftest.er1 |
| 6066 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6068 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6069 | { ac_try='test -z "$ac_c_werror_flag" |
| 6070 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6072 | (eval $ac_try) 2>&5 |
| 6073 | ac_status=$? |
| 6074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6075 | (exit $ac_status); }; } && |
| 6076 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6078 | (eval $ac_try) 2>&5 |
| 6079 | ac_status=$? |
| 6080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6081 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6082 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6083 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6084 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6086 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6087 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6088 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6089 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6090 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6091 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 6092 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6093 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6094 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6095 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6096 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6097 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6098 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6099 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 6100 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 6101 | if test "${ac_cv_type_size_t+set}" = set; then |
| 6102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6103 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6104 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6105 | /* confdefs.h. */ |
| 6106 | _ACEOF |
| 6107 | cat confdefs.h >>conftest.$ac_ext |
| 6108 | cat >>conftest.$ac_ext <<_ACEOF |
| 6109 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6110 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6111 | int |
| 6112 | main () |
| 6113 | { |
| 6114 | if ((size_t *) 0) |
| 6115 | return 0; |
| 6116 | if (sizeof (size_t)) |
| 6117 | return 0; |
| 6118 | ; |
| 6119 | return 0; |
| 6120 | } |
| 6121 | _ACEOF |
| 6122 | rm -f conftest.$ac_objext |
| 6123 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6124 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6125 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6126 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6127 | rm -f conftest.er1 |
| 6128 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6130 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6131 | { ac_try='test -z "$ac_c_werror_flag" |
| 6132 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6134 | (eval $ac_try) 2>&5 |
| 6135 | ac_status=$? |
| 6136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6137 | (exit $ac_status); }; } && |
| 6138 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6140 | (eval $ac_try) 2>&5 |
| 6141 | ac_status=$? |
| 6142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6143 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6144 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6145 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6146 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6147 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6148 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6149 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6150 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6152 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6153 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 6154 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 6155 | if test $ac_cv_type_size_t = yes; then |
| 6156 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6157 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6158 | |
| 6159 | cat >>confdefs.h <<_ACEOF |
| 6160 | #define size_t unsigned |
| 6161 | _ACEOF |
| 6162 | |
| 6163 | fi |
| 6164 | |
| 6165 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 6166 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 6167 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 6168 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6169 | else |
| 6170 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6171 | /* confdefs.h. */ |
| 6172 | _ACEOF |
| 6173 | cat confdefs.h >>conftest.$ac_ext |
| 6174 | cat >>conftest.$ac_ext <<_ACEOF |
| 6175 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6176 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6177 | |
| 6178 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6179 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6180 | $EGREP "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6181 | ac_cv_type_uid_t=yes |
| 6182 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6183 | ac_cv_type_uid_t=no |
| 6184 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6185 | rm -f conftest* |
| 6186 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6187 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6188 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 6189 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6190 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6191 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6192 | cat >>confdefs.h <<\_ACEOF |
| 6193 | #define uid_t int |
| 6194 | _ACEOF |
| 6195 | |
| 6196 | |
| 6197 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6198 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6199 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6200 | |
| 6201 | fi |
| 6202 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 6203 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 6204 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 |
| 6205 | if test "${ac_cv_type_ssize_t+set}" = set; then |
| 6206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6207 | else |
| 6208 | cat >conftest.$ac_ext <<_ACEOF |
| 6209 | /* confdefs.h. */ |
| 6210 | _ACEOF |
| 6211 | cat confdefs.h >>conftest.$ac_ext |
| 6212 | cat >>conftest.$ac_ext <<_ACEOF |
| 6213 | /* end confdefs.h. */ |
| 6214 | $ac_includes_default |
| 6215 | int |
| 6216 | main () |
| 6217 | { |
| 6218 | if ((ssize_t *) 0) |
| 6219 | return 0; |
| 6220 | if (sizeof (ssize_t)) |
| 6221 | return 0; |
| 6222 | ; |
| 6223 | return 0; |
| 6224 | } |
| 6225 | _ACEOF |
| 6226 | rm -f conftest.$ac_objext |
| 6227 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6228 | (eval $ac_compile) 2>conftest.er1 |
| 6229 | ac_status=$? |
| 6230 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6231 | rm -f conftest.er1 |
| 6232 | cat conftest.err >&5 |
| 6233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6234 | (exit $ac_status); } && |
| 6235 | { ac_try='test -z "$ac_c_werror_flag" |
| 6236 | || test ! -s conftest.err' |
| 6237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6238 | (eval $ac_try) 2>&5 |
| 6239 | ac_status=$? |
| 6240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6241 | (exit $ac_status); }; } && |
| 6242 | { ac_try='test -s conftest.$ac_objext' |
| 6243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6244 | (eval $ac_try) 2>&5 |
| 6245 | ac_status=$? |
| 6246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6247 | (exit $ac_status); }; }; then |
| 6248 | ac_cv_type_ssize_t=yes |
| 6249 | else |
| 6250 | echo "$as_me: failed program was:" >&5 |
| 6251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6252 | |
| 6253 | ac_cv_type_ssize_t=no |
| 6254 | fi |
| 6255 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6256 | fi |
| 6257 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 6258 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 |
| 6259 | if test $ac_cv_type_ssize_t = yes; then |
| 6260 | |
| 6261 | cat >>confdefs.h <<\_ACEOF |
| 6262 | #define HAVE_SSIZE_T 1 |
| 6263 | _ACEOF |
| 6264 | |
| 6265 | fi |
| 6266 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6267 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6268 | # Sizes of various common basic types |
Skip Montanaro | b9820a3 | 2004-01-17 00:16:12 +0000 | [diff] [blame] | 6269 | # 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] | 6270 | echo "$as_me:$LINENO: checking for int" >&5 |
| 6271 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 6272 | if test "${ac_cv_type_int+set}" = set; then |
| 6273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6274 | else |
| 6275 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6276 | /* confdefs.h. */ |
| 6277 | _ACEOF |
| 6278 | cat confdefs.h >>conftest.$ac_ext |
| 6279 | cat >>conftest.$ac_ext <<_ACEOF |
| 6280 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6281 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6282 | int |
| 6283 | main () |
| 6284 | { |
| 6285 | if ((int *) 0) |
| 6286 | return 0; |
| 6287 | if (sizeof (int)) |
| 6288 | return 0; |
| 6289 | ; |
| 6290 | return 0; |
| 6291 | } |
| 6292 | _ACEOF |
| 6293 | rm -f conftest.$ac_objext |
| 6294 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6295 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6296 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6297 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6298 | rm -f conftest.er1 |
| 6299 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6301 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6302 | { ac_try='test -z "$ac_c_werror_flag" |
| 6303 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6305 | (eval $ac_try) 2>&5 |
| 6306 | ac_status=$? |
| 6307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6308 | (exit $ac_status); }; } && |
| 6309 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6311 | (eval $ac_try) 2>&5 |
| 6312 | ac_status=$? |
| 6313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6314 | (exit $ac_status); }; }; then |
| 6315 | ac_cv_type_int=yes |
| 6316 | else |
| 6317 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6318 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6319 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6320 | ac_cv_type_int=no |
| 6321 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6322 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6323 | fi |
| 6324 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 6325 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 6326 | |
| 6327 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 6328 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 6329 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 6330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6331 | else |
| 6332 | if test "$ac_cv_type_int" = yes; then |
| 6333 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6334 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6335 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6336 | # This bug is HP SR number 8606223364. |
| 6337 | if test "$cross_compiling" = yes; then |
| 6338 | # Depending upon the size, compute the lo and hi bounds. |
| 6339 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6340 | /* confdefs.h. */ |
| 6341 | _ACEOF |
| 6342 | cat confdefs.h >>conftest.$ac_ext |
| 6343 | cat >>conftest.$ac_ext <<_ACEOF |
| 6344 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6345 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6346 | int |
| 6347 | main () |
| 6348 | { |
| 6349 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 6350 | test_array [0] = 0 |
| 6351 | |
| 6352 | ; |
| 6353 | return 0; |
| 6354 | } |
| 6355 | _ACEOF |
| 6356 | rm -f conftest.$ac_objext |
| 6357 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6358 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6359 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6360 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6361 | rm -f conftest.er1 |
| 6362 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6364 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6365 | { ac_try='test -z "$ac_c_werror_flag" |
| 6366 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6368 | (eval $ac_try) 2>&5 |
| 6369 | ac_status=$? |
| 6370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6371 | (exit $ac_status); }; } && |
| 6372 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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); }; }; then |
| 6378 | ac_lo=0 ac_mid=0 |
| 6379 | while :; do |
| 6380 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6381 | /* confdefs.h. */ |
| 6382 | _ACEOF |
| 6383 | cat confdefs.h >>conftest.$ac_ext |
| 6384 | cat >>conftest.$ac_ext <<_ACEOF |
| 6385 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6386 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6387 | int |
| 6388 | main () |
| 6389 | { |
| 6390 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 6391 | test_array [0] = 0 |
| 6392 | |
| 6393 | ; |
| 6394 | return 0; |
| 6395 | } |
| 6396 | _ACEOF |
| 6397 | rm -f conftest.$ac_objext |
| 6398 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6399 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6400 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6401 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6402 | rm -f conftest.er1 |
| 6403 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6405 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6406 | { ac_try='test -z "$ac_c_werror_flag" |
| 6407 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6409 | (eval $ac_try) 2>&5 |
| 6410 | ac_status=$? |
| 6411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6412 | (exit $ac_status); }; } && |
| 6413 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6415 | (eval $ac_try) 2>&5 |
| 6416 | ac_status=$? |
| 6417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6418 | (exit $ac_status); }; }; then |
| 6419 | ac_hi=$ac_mid; break |
| 6420 | else |
| 6421 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6423 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6424 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6425 | if test $ac_lo -le $ac_mid; then |
| 6426 | ac_lo= ac_hi= |
| 6427 | break |
| 6428 | fi |
| 6429 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6430 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6431 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6432 | done |
| 6433 | else |
| 6434 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6436 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6437 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6438 | /* confdefs.h. */ |
| 6439 | _ACEOF |
| 6440 | cat confdefs.h >>conftest.$ac_ext |
| 6441 | cat >>conftest.$ac_ext <<_ACEOF |
| 6442 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6443 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6444 | int |
| 6445 | main () |
| 6446 | { |
| 6447 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 6448 | test_array [0] = 0 |
| 6449 | |
| 6450 | ; |
| 6451 | return 0; |
| 6452 | } |
| 6453 | _ACEOF |
| 6454 | rm -f conftest.$ac_objext |
| 6455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6456 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6457 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6458 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6459 | rm -f conftest.er1 |
| 6460 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6462 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6463 | { ac_try='test -z "$ac_c_werror_flag" |
| 6464 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6466 | (eval $ac_try) 2>&5 |
| 6467 | ac_status=$? |
| 6468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6469 | (exit $ac_status); }; } && |
| 6470 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6472 | (eval $ac_try) 2>&5 |
| 6473 | ac_status=$? |
| 6474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6475 | (exit $ac_status); }; }; then |
| 6476 | ac_hi=-1 ac_mid=-1 |
| 6477 | while :; do |
| 6478 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6479 | /* confdefs.h. */ |
| 6480 | _ACEOF |
| 6481 | cat confdefs.h >>conftest.$ac_ext |
| 6482 | cat >>conftest.$ac_ext <<_ACEOF |
| 6483 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6484 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6485 | int |
| 6486 | main () |
| 6487 | { |
| 6488 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 6489 | test_array [0] = 0 |
| 6490 | |
| 6491 | ; |
| 6492 | return 0; |
| 6493 | } |
| 6494 | _ACEOF |
| 6495 | rm -f conftest.$ac_objext |
| 6496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6497 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6498 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6500 | rm -f conftest.er1 |
| 6501 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6503 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6504 | { ac_try='test -z "$ac_c_werror_flag" |
| 6505 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6507 | (eval $ac_try) 2>&5 |
| 6508 | ac_status=$? |
| 6509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6510 | (exit $ac_status); }; } && |
| 6511 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6513 | (eval $ac_try) 2>&5 |
| 6514 | ac_status=$? |
| 6515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6516 | (exit $ac_status); }; }; then |
| 6517 | ac_lo=$ac_mid; break |
| 6518 | else |
| 6519 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6520 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6521 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6522 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6523 | if test $ac_mid -le $ac_hi; then |
| 6524 | ac_lo= ac_hi= |
| 6525 | break |
| 6526 | fi |
| 6527 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6528 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6529 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6530 | done |
| 6531 | else |
| 6532 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6533 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6534 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6535 | ac_lo= ac_hi= |
| 6536 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6537 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6538 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6540 | # Binary search between lo and hi bounds. |
| 6541 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6542 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6543 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6544 | /* confdefs.h. */ |
| 6545 | _ACEOF |
| 6546 | cat confdefs.h >>conftest.$ac_ext |
| 6547 | cat >>conftest.$ac_ext <<_ACEOF |
| 6548 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6549 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6550 | int |
| 6551 | main () |
| 6552 | { |
| 6553 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 6554 | test_array [0] = 0 |
| 6555 | |
| 6556 | ; |
| 6557 | return 0; |
| 6558 | } |
| 6559 | _ACEOF |
| 6560 | rm -f conftest.$ac_objext |
| 6561 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6562 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6563 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6564 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6565 | rm -f conftest.er1 |
| 6566 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6568 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6569 | { ac_try='test -z "$ac_c_werror_flag" |
| 6570 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6572 | (eval $ac_try) 2>&5 |
| 6573 | ac_status=$? |
| 6574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6575 | (exit $ac_status); }; } && |
| 6576 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6578 | (eval $ac_try) 2>&5 |
| 6579 | ac_status=$? |
| 6580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6581 | (exit $ac_status); }; }; then |
| 6582 | ac_hi=$ac_mid |
| 6583 | else |
| 6584 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6585 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6586 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6587 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6588 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6589 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6590 | done |
| 6591 | case $ac_lo in |
| 6592 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6593 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 6594 | See \`config.log' for more details." >&5 |
| 6595 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 6596 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6597 | { (exit 1); exit 1; }; } ;; |
| 6598 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6599 | else |
| 6600 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6601 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6602 | See \`config.log' for more details." >&5 |
| 6603 | echo "$as_me: error: cannot run test program while cross compiling |
| 6604 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6605 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6606 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6607 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6608 | /* confdefs.h. */ |
| 6609 | _ACEOF |
| 6610 | cat confdefs.h >>conftest.$ac_ext |
| 6611 | cat >>conftest.$ac_ext <<_ACEOF |
| 6612 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6613 | $ac_includes_default |
| 6614 | long longval () { return (long) (sizeof (int)); } |
| 6615 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6616 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6617 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6618 | int |
| 6619 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6620 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6621 | |
| 6622 | FILE *f = fopen ("conftest.val", "w"); |
| 6623 | if (! f) |
| 6624 | exit (1); |
| 6625 | if (((long) (sizeof (int))) < 0) |
| 6626 | { |
| 6627 | long i = longval (); |
| 6628 | if (i != ((long) (sizeof (int)))) |
| 6629 | exit (1); |
| 6630 | fprintf (f, "%ld\n", i); |
| 6631 | } |
| 6632 | else |
| 6633 | { |
| 6634 | unsigned long i = ulongval (); |
| 6635 | if (i != ((long) (sizeof (int)))) |
| 6636 | exit (1); |
| 6637 | fprintf (f, "%lu\n", i); |
| 6638 | } |
| 6639 | exit (ferror (f) || fclose (f) != 0); |
| 6640 | |
| 6641 | ; |
| 6642 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6643 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6644 | _ACEOF |
| 6645 | rm -f conftest$ac_exeext |
| 6646 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6647 | (eval $ac_link) 2>&5 |
| 6648 | ac_status=$? |
| 6649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6650 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6652 | (eval $ac_try) 2>&5 |
| 6653 | ac_status=$? |
| 6654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6655 | (exit $ac_status); }; }; then |
| 6656 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6657 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6658 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6659 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6661 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6662 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6663 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 6664 | See \`config.log' for more details." >&5 |
| 6665 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 6666 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6667 | { (exit 1); exit 1; }; } |
| 6668 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6669 | 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] | 6670 | fi |
| 6671 | fi |
| 6672 | rm -f conftest.val |
| 6673 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6674 | ac_cv_sizeof_int=0 |
| 6675 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6676 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6677 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 6678 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 6679 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6680 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6681 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6682 | |
| 6683 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6684 | echo "$as_me:$LINENO: checking for long" >&5 |
| 6685 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 6686 | if test "${ac_cv_type_long+set}" = set; then |
| 6687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6688 | else |
| 6689 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6690 | /* confdefs.h. */ |
| 6691 | _ACEOF |
| 6692 | cat confdefs.h >>conftest.$ac_ext |
| 6693 | cat >>conftest.$ac_ext <<_ACEOF |
| 6694 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6695 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6696 | int |
| 6697 | main () |
| 6698 | { |
| 6699 | if ((long *) 0) |
| 6700 | return 0; |
| 6701 | if (sizeof (long)) |
| 6702 | return 0; |
| 6703 | ; |
| 6704 | return 0; |
| 6705 | } |
| 6706 | _ACEOF |
| 6707 | rm -f conftest.$ac_objext |
| 6708 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6709 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6710 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6711 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6712 | rm -f conftest.er1 |
| 6713 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6715 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6716 | { ac_try='test -z "$ac_c_werror_flag" |
| 6717 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6719 | (eval $ac_try) 2>&5 |
| 6720 | ac_status=$? |
| 6721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6722 | (exit $ac_status); }; } && |
| 6723 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6725 | (eval $ac_try) 2>&5 |
| 6726 | ac_status=$? |
| 6727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6728 | (exit $ac_status); }; }; then |
| 6729 | ac_cv_type_long=yes |
| 6730 | else |
| 6731 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6732 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6733 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6734 | ac_cv_type_long=no |
| 6735 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6736 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6737 | fi |
| 6738 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 6739 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 6740 | |
| 6741 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 6742 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 6743 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 6744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6745 | else |
| 6746 | if test "$ac_cv_type_long" = yes; then |
| 6747 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6748 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6749 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6750 | # This bug is HP SR number 8606223364. |
| 6751 | if test "$cross_compiling" = yes; then |
| 6752 | # Depending upon the size, compute the lo and hi bounds. |
| 6753 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6754 | /* confdefs.h. */ |
| 6755 | _ACEOF |
| 6756 | cat confdefs.h >>conftest.$ac_ext |
| 6757 | cat >>conftest.$ac_ext <<_ACEOF |
| 6758 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6759 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6760 | int |
| 6761 | main () |
| 6762 | { |
| 6763 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 6764 | test_array [0] = 0 |
| 6765 | |
| 6766 | ; |
| 6767 | return 0; |
| 6768 | } |
| 6769 | _ACEOF |
| 6770 | rm -f conftest.$ac_objext |
| 6771 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6772 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6773 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6774 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6775 | rm -f conftest.er1 |
| 6776 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6778 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6779 | { ac_try='test -z "$ac_c_werror_flag" |
| 6780 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6782 | (eval $ac_try) 2>&5 |
| 6783 | ac_status=$? |
| 6784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6785 | (exit $ac_status); }; } && |
| 6786 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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); }; }; then |
| 6792 | ac_lo=0 ac_mid=0 |
| 6793 | while :; do |
| 6794 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6795 | /* confdefs.h. */ |
| 6796 | _ACEOF |
| 6797 | cat confdefs.h >>conftest.$ac_ext |
| 6798 | cat >>conftest.$ac_ext <<_ACEOF |
| 6799 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6800 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6801 | int |
| 6802 | main () |
| 6803 | { |
| 6804 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 6805 | test_array [0] = 0 |
| 6806 | |
| 6807 | ; |
| 6808 | return 0; |
| 6809 | } |
| 6810 | _ACEOF |
| 6811 | rm -f conftest.$ac_objext |
| 6812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6813 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6814 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6815 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6816 | rm -f conftest.er1 |
| 6817 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6819 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6820 | { ac_try='test -z "$ac_c_werror_flag" |
| 6821 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6823 | (eval $ac_try) 2>&5 |
| 6824 | ac_status=$? |
| 6825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6826 | (exit $ac_status); }; } && |
| 6827 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6829 | (eval $ac_try) 2>&5 |
| 6830 | ac_status=$? |
| 6831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6832 | (exit $ac_status); }; }; then |
| 6833 | ac_hi=$ac_mid; break |
| 6834 | else |
| 6835 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6836 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6837 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6838 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6839 | if test $ac_lo -le $ac_mid; then |
| 6840 | ac_lo= ac_hi= |
| 6841 | break |
| 6842 | fi |
| 6843 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6844 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6845 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6846 | done |
| 6847 | else |
| 6848 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6849 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6850 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6851 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6852 | /* confdefs.h. */ |
| 6853 | _ACEOF |
| 6854 | cat confdefs.h >>conftest.$ac_ext |
| 6855 | cat >>conftest.$ac_ext <<_ACEOF |
| 6856 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6857 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6858 | int |
| 6859 | main () |
| 6860 | { |
| 6861 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 6862 | test_array [0] = 0 |
| 6863 | |
| 6864 | ; |
| 6865 | return 0; |
| 6866 | } |
| 6867 | _ACEOF |
| 6868 | rm -f conftest.$ac_objext |
| 6869 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6870 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6871 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6872 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6873 | rm -f conftest.er1 |
| 6874 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6876 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6877 | { ac_try='test -z "$ac_c_werror_flag" |
| 6878 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6880 | (eval $ac_try) 2>&5 |
| 6881 | ac_status=$? |
| 6882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6883 | (exit $ac_status); }; } && |
| 6884 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6886 | (eval $ac_try) 2>&5 |
| 6887 | ac_status=$? |
| 6888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6889 | (exit $ac_status); }; }; then |
| 6890 | ac_hi=-1 ac_mid=-1 |
| 6891 | while :; do |
| 6892 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6893 | /* confdefs.h. */ |
| 6894 | _ACEOF |
| 6895 | cat confdefs.h >>conftest.$ac_ext |
| 6896 | cat >>conftest.$ac_ext <<_ACEOF |
| 6897 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6898 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6899 | int |
| 6900 | main () |
| 6901 | { |
| 6902 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 6903 | test_array [0] = 0 |
| 6904 | |
| 6905 | ; |
| 6906 | return 0; |
| 6907 | } |
| 6908 | _ACEOF |
| 6909 | rm -f conftest.$ac_objext |
| 6910 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6911 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6912 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6913 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6914 | rm -f conftest.er1 |
| 6915 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6917 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6918 | { ac_try='test -z "$ac_c_werror_flag" |
| 6919 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6921 | (eval $ac_try) 2>&5 |
| 6922 | ac_status=$? |
| 6923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6924 | (exit $ac_status); }; } && |
| 6925 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6927 | (eval $ac_try) 2>&5 |
| 6928 | ac_status=$? |
| 6929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6930 | (exit $ac_status); }; }; then |
| 6931 | ac_lo=$ac_mid; break |
| 6932 | else |
| 6933 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6934 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6935 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6936 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6937 | if test $ac_mid -le $ac_hi; then |
| 6938 | ac_lo= ac_hi= |
| 6939 | break |
| 6940 | fi |
| 6941 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6942 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6943 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6944 | done |
| 6945 | else |
| 6946 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6947 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6948 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6949 | ac_lo= ac_hi= |
| 6950 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6951 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6952 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6953 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6954 | # Binary search between lo and hi bounds. |
| 6955 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6956 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6957 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6958 | /* confdefs.h. */ |
| 6959 | _ACEOF |
| 6960 | cat confdefs.h >>conftest.$ac_ext |
| 6961 | cat >>conftest.$ac_ext <<_ACEOF |
| 6962 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6963 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6964 | int |
| 6965 | main () |
| 6966 | { |
| 6967 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 6968 | test_array [0] = 0 |
| 6969 | |
| 6970 | ; |
| 6971 | return 0; |
| 6972 | } |
| 6973 | _ACEOF |
| 6974 | rm -f conftest.$ac_objext |
| 6975 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6976 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6977 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6978 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6979 | rm -f conftest.er1 |
| 6980 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6982 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 6983 | { ac_try='test -z "$ac_c_werror_flag" |
| 6984 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 6985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6986 | (eval $ac_try) 2>&5 |
| 6987 | ac_status=$? |
| 6988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6989 | (exit $ac_status); }; } && |
| 6990 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6992 | (eval $ac_try) 2>&5 |
| 6993 | ac_status=$? |
| 6994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6995 | (exit $ac_status); }; }; then |
| 6996 | ac_hi=$ac_mid |
| 6997 | else |
| 6998 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 6999 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7000 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7001 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7002 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7003 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7004 | done |
| 7005 | case $ac_lo in |
| 7006 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7007 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 7008 | See \`config.log' for more details." >&5 |
| 7009 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 7010 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7011 | { (exit 1); exit 1; }; } ;; |
| 7012 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7013 | else |
| 7014 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7015 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7016 | See \`config.log' for more details." >&5 |
| 7017 | echo "$as_me: error: cannot run test program while cross compiling |
| 7018 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7019 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7020 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7021 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7022 | /* confdefs.h. */ |
| 7023 | _ACEOF |
| 7024 | cat confdefs.h >>conftest.$ac_ext |
| 7025 | cat >>conftest.$ac_ext <<_ACEOF |
| 7026 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7027 | $ac_includes_default |
| 7028 | long longval () { return (long) (sizeof (long)); } |
| 7029 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7030 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7031 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7032 | int |
| 7033 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7034 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7035 | |
| 7036 | FILE *f = fopen ("conftest.val", "w"); |
| 7037 | if (! f) |
| 7038 | exit (1); |
| 7039 | if (((long) (sizeof (long))) < 0) |
| 7040 | { |
| 7041 | long i = longval (); |
| 7042 | if (i != ((long) (sizeof (long)))) |
| 7043 | exit (1); |
| 7044 | fprintf (f, "%ld\n", i); |
| 7045 | } |
| 7046 | else |
| 7047 | { |
| 7048 | unsigned long i = ulongval (); |
| 7049 | if (i != ((long) (sizeof (long)))) |
| 7050 | exit (1); |
| 7051 | fprintf (f, "%lu\n", i); |
| 7052 | } |
| 7053 | exit (ferror (f) || fclose (f) != 0); |
| 7054 | |
| 7055 | ; |
| 7056 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7057 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7058 | _ACEOF |
| 7059 | rm -f conftest$ac_exeext |
| 7060 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7061 | (eval $ac_link) 2>&5 |
| 7062 | ac_status=$? |
| 7063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7064 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7066 | (eval $ac_try) 2>&5 |
| 7067 | ac_status=$? |
| 7068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7069 | (exit $ac_status); }; }; then |
| 7070 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7071 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7072 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7073 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7074 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7075 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7076 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7077 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 7078 | See \`config.log' for more details." >&5 |
| 7079 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 7080 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7081 | { (exit 1); exit 1; }; } |
| 7082 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7083 | 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] | 7084 | fi |
| 7085 | fi |
| 7086 | rm -f conftest.val |
| 7087 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7088 | ac_cv_sizeof_long=0 |
| 7089 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7090 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7091 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 7092 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 7093 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7094 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7095 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 7096 | |
| 7097 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7098 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 7099 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 7100 | if test "${ac_cv_type_void_p+set}" = set; then |
| 7101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7102 | else |
| 7103 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7104 | /* confdefs.h. */ |
| 7105 | _ACEOF |
| 7106 | cat confdefs.h >>conftest.$ac_ext |
| 7107 | cat >>conftest.$ac_ext <<_ACEOF |
| 7108 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7109 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7110 | int |
| 7111 | main () |
| 7112 | { |
| 7113 | if ((void * *) 0) |
| 7114 | return 0; |
| 7115 | if (sizeof (void *)) |
| 7116 | return 0; |
| 7117 | ; |
| 7118 | return 0; |
| 7119 | } |
| 7120 | _ACEOF |
| 7121 | rm -f conftest.$ac_objext |
| 7122 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7123 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7124 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7125 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7126 | rm -f conftest.er1 |
| 7127 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7129 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7130 | { ac_try='test -z "$ac_c_werror_flag" |
| 7131 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7133 | (eval $ac_try) 2>&5 |
| 7134 | ac_status=$? |
| 7135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7136 | (exit $ac_status); }; } && |
| 7137 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7139 | (eval $ac_try) 2>&5 |
| 7140 | ac_status=$? |
| 7141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7142 | (exit $ac_status); }; }; then |
| 7143 | ac_cv_type_void_p=yes |
| 7144 | else |
| 7145 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7146 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7147 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7148 | ac_cv_type_void_p=no |
| 7149 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7150 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7151 | fi |
| 7152 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 7153 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 7154 | |
| 7155 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 7156 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 7157 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 7158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7159 | else |
| 7160 | if test "$ac_cv_type_void_p" = yes; then |
| 7161 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7162 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7163 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7164 | # This bug is HP SR number 8606223364. |
| 7165 | if test "$cross_compiling" = yes; then |
| 7166 | # Depending upon the size, compute the lo and hi bounds. |
| 7167 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7168 | /* confdefs.h. */ |
| 7169 | _ACEOF |
| 7170 | cat confdefs.h >>conftest.$ac_ext |
| 7171 | cat >>conftest.$ac_ext <<_ACEOF |
| 7172 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7173 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7174 | int |
| 7175 | main () |
| 7176 | { |
| 7177 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 7178 | test_array [0] = 0 |
| 7179 | |
| 7180 | ; |
| 7181 | return 0; |
| 7182 | } |
| 7183 | _ACEOF |
| 7184 | rm -f conftest.$ac_objext |
| 7185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7186 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7187 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7188 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7189 | rm -f conftest.er1 |
| 7190 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7192 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7193 | { ac_try='test -z "$ac_c_werror_flag" |
| 7194 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7196 | (eval $ac_try) 2>&5 |
| 7197 | ac_status=$? |
| 7198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7199 | (exit $ac_status); }; } && |
| 7200 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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); }; }; then |
| 7206 | ac_lo=0 ac_mid=0 |
| 7207 | while :; do |
| 7208 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7209 | /* confdefs.h. */ |
| 7210 | _ACEOF |
| 7211 | cat confdefs.h >>conftest.$ac_ext |
| 7212 | cat >>conftest.$ac_ext <<_ACEOF |
| 7213 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7214 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7215 | int |
| 7216 | main () |
| 7217 | { |
| 7218 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 7219 | test_array [0] = 0 |
| 7220 | |
| 7221 | ; |
| 7222 | return 0; |
| 7223 | } |
| 7224 | _ACEOF |
| 7225 | rm -f conftest.$ac_objext |
| 7226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7227 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7228 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7229 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7230 | rm -f conftest.er1 |
| 7231 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7233 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7234 | { ac_try='test -z "$ac_c_werror_flag" |
| 7235 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7237 | (eval $ac_try) 2>&5 |
| 7238 | ac_status=$? |
| 7239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7240 | (exit $ac_status); }; } && |
| 7241 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7243 | (eval $ac_try) 2>&5 |
| 7244 | ac_status=$? |
| 7245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7246 | (exit $ac_status); }; }; then |
| 7247 | ac_hi=$ac_mid; break |
| 7248 | else |
| 7249 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7251 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7252 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7253 | if test $ac_lo -le $ac_mid; then |
| 7254 | ac_lo= ac_hi= |
| 7255 | break |
| 7256 | fi |
| 7257 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7258 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7259 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7260 | done |
| 7261 | else |
| 7262 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7263 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7264 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7265 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7266 | /* confdefs.h. */ |
| 7267 | _ACEOF |
| 7268 | cat confdefs.h >>conftest.$ac_ext |
| 7269 | cat >>conftest.$ac_ext <<_ACEOF |
| 7270 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7271 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7272 | int |
| 7273 | main () |
| 7274 | { |
| 7275 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 7276 | test_array [0] = 0 |
| 7277 | |
| 7278 | ; |
| 7279 | return 0; |
| 7280 | } |
| 7281 | _ACEOF |
| 7282 | rm -f conftest.$ac_objext |
| 7283 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7284 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7285 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7286 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7287 | rm -f conftest.er1 |
| 7288 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7290 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7291 | { ac_try='test -z "$ac_c_werror_flag" |
| 7292 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7294 | (eval $ac_try) 2>&5 |
| 7295 | ac_status=$? |
| 7296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7297 | (exit $ac_status); }; } && |
| 7298 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7300 | (eval $ac_try) 2>&5 |
| 7301 | ac_status=$? |
| 7302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7303 | (exit $ac_status); }; }; then |
| 7304 | ac_hi=-1 ac_mid=-1 |
| 7305 | while :; do |
| 7306 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7307 | /* confdefs.h. */ |
| 7308 | _ACEOF |
| 7309 | cat confdefs.h >>conftest.$ac_ext |
| 7310 | cat >>conftest.$ac_ext <<_ACEOF |
| 7311 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7312 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7313 | int |
| 7314 | main () |
| 7315 | { |
| 7316 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 7317 | test_array [0] = 0 |
| 7318 | |
| 7319 | ; |
| 7320 | return 0; |
| 7321 | } |
| 7322 | _ACEOF |
| 7323 | rm -f conftest.$ac_objext |
| 7324 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7325 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7326 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7327 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7328 | rm -f conftest.er1 |
| 7329 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7331 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7332 | { ac_try='test -z "$ac_c_werror_flag" |
| 7333 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7335 | (eval $ac_try) 2>&5 |
| 7336 | ac_status=$? |
| 7337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7338 | (exit $ac_status); }; } && |
| 7339 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7341 | (eval $ac_try) 2>&5 |
| 7342 | ac_status=$? |
| 7343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7344 | (exit $ac_status); }; }; then |
| 7345 | ac_lo=$ac_mid; break |
| 7346 | else |
| 7347 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7348 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7349 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7350 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7351 | if test $ac_mid -le $ac_hi; then |
| 7352 | ac_lo= ac_hi= |
| 7353 | break |
| 7354 | fi |
| 7355 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7356 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7358 | done |
| 7359 | else |
| 7360 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7361 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7362 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7363 | ac_lo= ac_hi= |
| 7364 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7365 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7366 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7367 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7368 | # Binary search between lo and hi bounds. |
| 7369 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7370 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7371 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7372 | /* confdefs.h. */ |
| 7373 | _ACEOF |
| 7374 | cat confdefs.h >>conftest.$ac_ext |
| 7375 | cat >>conftest.$ac_ext <<_ACEOF |
| 7376 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7377 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7378 | int |
| 7379 | main () |
| 7380 | { |
| 7381 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 7382 | test_array [0] = 0 |
| 7383 | |
| 7384 | ; |
| 7385 | return 0; |
| 7386 | } |
| 7387 | _ACEOF |
| 7388 | rm -f conftest.$ac_objext |
| 7389 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7390 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7391 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7392 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7393 | rm -f conftest.er1 |
| 7394 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7396 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7397 | { ac_try='test -z "$ac_c_werror_flag" |
| 7398 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7400 | (eval $ac_try) 2>&5 |
| 7401 | ac_status=$? |
| 7402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7403 | (exit $ac_status); }; } && |
| 7404 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7406 | (eval $ac_try) 2>&5 |
| 7407 | ac_status=$? |
| 7408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7409 | (exit $ac_status); }; }; then |
| 7410 | ac_hi=$ac_mid |
| 7411 | else |
| 7412 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7413 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7414 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7415 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7416 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7417 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7418 | done |
| 7419 | case $ac_lo in |
| 7420 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7421 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 7422 | See \`config.log' for more details." >&5 |
| 7423 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 7424 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7425 | { (exit 1); exit 1; }; } ;; |
| 7426 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7427 | else |
| 7428 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7429 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7430 | See \`config.log' for more details." >&5 |
| 7431 | echo "$as_me: error: cannot run test program while cross compiling |
| 7432 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7433 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7434 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7435 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7436 | /* confdefs.h. */ |
| 7437 | _ACEOF |
| 7438 | cat confdefs.h >>conftest.$ac_ext |
| 7439 | cat >>conftest.$ac_ext <<_ACEOF |
| 7440 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7441 | $ac_includes_default |
| 7442 | long longval () { return (long) (sizeof (void *)); } |
| 7443 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7444 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7445 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7446 | int |
| 7447 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7448 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7449 | |
| 7450 | FILE *f = fopen ("conftest.val", "w"); |
| 7451 | if (! f) |
| 7452 | exit (1); |
| 7453 | if (((long) (sizeof (void *))) < 0) |
| 7454 | { |
| 7455 | long i = longval (); |
| 7456 | if (i != ((long) (sizeof (void *)))) |
| 7457 | exit (1); |
| 7458 | fprintf (f, "%ld\n", i); |
| 7459 | } |
| 7460 | else |
| 7461 | { |
| 7462 | unsigned long i = ulongval (); |
| 7463 | if (i != ((long) (sizeof (void *)))) |
| 7464 | exit (1); |
| 7465 | fprintf (f, "%lu\n", i); |
| 7466 | } |
| 7467 | exit (ferror (f) || fclose (f) != 0); |
| 7468 | |
| 7469 | ; |
| 7470 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7471 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7472 | _ACEOF |
| 7473 | rm -f conftest$ac_exeext |
| 7474 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7475 | (eval $ac_link) 2>&5 |
| 7476 | ac_status=$? |
| 7477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7478 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7480 | (eval $ac_try) 2>&5 |
| 7481 | ac_status=$? |
| 7482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7483 | (exit $ac_status); }; }; then |
| 7484 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7485 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7486 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7487 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7488 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7489 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7490 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7491 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
| 7492 | See \`config.log' for more details." >&5 |
| 7493 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
| 7494 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7495 | { (exit 1); exit 1; }; } |
| 7496 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7497 | 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] | 7498 | fi |
| 7499 | fi |
| 7500 | rm -f conftest.val |
| 7501 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7502 | ac_cv_sizeof_void_p=0 |
| 7503 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7504 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7505 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 7506 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 7507 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7508 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7509 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 7510 | |
| 7511 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7512 | echo "$as_me:$LINENO: checking for short" >&5 |
| 7513 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 7514 | if test "${ac_cv_type_short+set}" = set; then |
| 7515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7516 | else |
| 7517 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7518 | /* confdefs.h. */ |
| 7519 | _ACEOF |
| 7520 | cat confdefs.h >>conftest.$ac_ext |
| 7521 | cat >>conftest.$ac_ext <<_ACEOF |
| 7522 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7523 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7524 | int |
| 7525 | main () |
| 7526 | { |
| 7527 | if ((short *) 0) |
| 7528 | return 0; |
| 7529 | if (sizeof (short)) |
| 7530 | return 0; |
| 7531 | ; |
| 7532 | return 0; |
| 7533 | } |
| 7534 | _ACEOF |
| 7535 | rm -f conftest.$ac_objext |
| 7536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7537 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7538 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7539 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7540 | rm -f conftest.er1 |
| 7541 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7543 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7544 | { ac_try='test -z "$ac_c_werror_flag" |
| 7545 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7547 | (eval $ac_try) 2>&5 |
| 7548 | ac_status=$? |
| 7549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7550 | (exit $ac_status); }; } && |
| 7551 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7553 | (eval $ac_try) 2>&5 |
| 7554 | ac_status=$? |
| 7555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7556 | (exit $ac_status); }; }; then |
| 7557 | ac_cv_type_short=yes |
| 7558 | else |
| 7559 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7560 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7561 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7562 | ac_cv_type_short=no |
| 7563 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7564 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7565 | fi |
| 7566 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 7567 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 7568 | |
| 7569 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 7570 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 7571 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 7572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7573 | else |
| 7574 | if test "$ac_cv_type_short" = yes; then |
| 7575 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7576 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7577 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7578 | # This bug is HP SR number 8606223364. |
| 7579 | if test "$cross_compiling" = yes; then |
| 7580 | # Depending upon the size, compute the lo and hi bounds. |
| 7581 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7582 | /* confdefs.h. */ |
| 7583 | _ACEOF |
| 7584 | cat confdefs.h >>conftest.$ac_ext |
| 7585 | cat >>conftest.$ac_ext <<_ACEOF |
| 7586 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7587 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7588 | int |
| 7589 | main () |
| 7590 | { |
| 7591 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 7592 | test_array [0] = 0 |
| 7593 | |
| 7594 | ; |
| 7595 | return 0; |
| 7596 | } |
| 7597 | _ACEOF |
| 7598 | rm -f conftest.$ac_objext |
| 7599 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7600 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7601 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7602 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7603 | rm -f conftest.er1 |
| 7604 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7606 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7607 | { ac_try='test -z "$ac_c_werror_flag" |
| 7608 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7610 | (eval $ac_try) 2>&5 |
| 7611 | ac_status=$? |
| 7612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7613 | (exit $ac_status); }; } && |
| 7614 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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); }; }; then |
| 7620 | ac_lo=0 ac_mid=0 |
| 7621 | while :; do |
| 7622 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7623 | /* confdefs.h. */ |
| 7624 | _ACEOF |
| 7625 | cat confdefs.h >>conftest.$ac_ext |
| 7626 | cat >>conftest.$ac_ext <<_ACEOF |
| 7627 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7628 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7629 | int |
| 7630 | main () |
| 7631 | { |
| 7632 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7633 | test_array [0] = 0 |
| 7634 | |
| 7635 | ; |
| 7636 | return 0; |
| 7637 | } |
| 7638 | _ACEOF |
| 7639 | rm -f conftest.$ac_objext |
| 7640 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7641 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7642 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7643 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7644 | rm -f conftest.er1 |
| 7645 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7647 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7648 | { ac_try='test -z "$ac_c_werror_flag" |
| 7649 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7651 | (eval $ac_try) 2>&5 |
| 7652 | ac_status=$? |
| 7653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7654 | (exit $ac_status); }; } && |
| 7655 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7657 | (eval $ac_try) 2>&5 |
| 7658 | ac_status=$? |
| 7659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7660 | (exit $ac_status); }; }; then |
| 7661 | ac_hi=$ac_mid; break |
| 7662 | else |
| 7663 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7664 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7665 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7666 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7667 | if test $ac_lo -le $ac_mid; then |
| 7668 | ac_lo= ac_hi= |
| 7669 | break |
| 7670 | fi |
| 7671 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7672 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7673 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7674 | done |
| 7675 | else |
| 7676 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7677 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7678 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7679 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7680 | /* confdefs.h. */ |
| 7681 | _ACEOF |
| 7682 | cat confdefs.h >>conftest.$ac_ext |
| 7683 | cat >>conftest.$ac_ext <<_ACEOF |
| 7684 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7685 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7686 | int |
| 7687 | main () |
| 7688 | { |
| 7689 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 7690 | test_array [0] = 0 |
| 7691 | |
| 7692 | ; |
| 7693 | return 0; |
| 7694 | } |
| 7695 | _ACEOF |
| 7696 | rm -f conftest.$ac_objext |
| 7697 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7698 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7699 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7700 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7701 | rm -f conftest.er1 |
| 7702 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7704 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7705 | { ac_try='test -z "$ac_c_werror_flag" |
| 7706 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7708 | (eval $ac_try) 2>&5 |
| 7709 | ac_status=$? |
| 7710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7711 | (exit $ac_status); }; } && |
| 7712 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7714 | (eval $ac_try) 2>&5 |
| 7715 | ac_status=$? |
| 7716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7717 | (exit $ac_status); }; }; then |
| 7718 | ac_hi=-1 ac_mid=-1 |
| 7719 | while :; do |
| 7720 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7721 | /* confdefs.h. */ |
| 7722 | _ACEOF |
| 7723 | cat confdefs.h >>conftest.$ac_ext |
| 7724 | cat >>conftest.$ac_ext <<_ACEOF |
| 7725 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7726 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7727 | int |
| 7728 | main () |
| 7729 | { |
| 7730 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 7731 | test_array [0] = 0 |
| 7732 | |
| 7733 | ; |
| 7734 | return 0; |
| 7735 | } |
| 7736 | _ACEOF |
| 7737 | rm -f conftest.$ac_objext |
| 7738 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7739 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7740 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7741 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7742 | rm -f conftest.er1 |
| 7743 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7745 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7746 | { ac_try='test -z "$ac_c_werror_flag" |
| 7747 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7749 | (eval $ac_try) 2>&5 |
| 7750 | ac_status=$? |
| 7751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7752 | (exit $ac_status); }; } && |
| 7753 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7755 | (eval $ac_try) 2>&5 |
| 7756 | ac_status=$? |
| 7757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7758 | (exit $ac_status); }; }; then |
| 7759 | ac_lo=$ac_mid; break |
| 7760 | else |
| 7761 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7762 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7763 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7764 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7765 | if test $ac_mid -le $ac_hi; then |
| 7766 | ac_lo= ac_hi= |
| 7767 | break |
| 7768 | fi |
| 7769 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7770 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7771 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7772 | done |
| 7773 | else |
| 7774 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7776 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7777 | ac_lo= ac_hi= |
| 7778 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7779 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7780 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7781 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7782 | # Binary search between lo and hi bounds. |
| 7783 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7784 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7785 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7786 | /* confdefs.h. */ |
| 7787 | _ACEOF |
| 7788 | cat confdefs.h >>conftest.$ac_ext |
| 7789 | cat >>conftest.$ac_ext <<_ACEOF |
| 7790 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7791 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7792 | int |
| 7793 | main () |
| 7794 | { |
| 7795 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7796 | test_array [0] = 0 |
| 7797 | |
| 7798 | ; |
| 7799 | return 0; |
| 7800 | } |
| 7801 | _ACEOF |
| 7802 | rm -f conftest.$ac_objext |
| 7803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7804 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7805 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7806 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7807 | rm -f conftest.er1 |
| 7808 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7810 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7811 | { ac_try='test -z "$ac_c_werror_flag" |
| 7812 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7814 | (eval $ac_try) 2>&5 |
| 7815 | ac_status=$? |
| 7816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7817 | (exit $ac_status); }; } && |
| 7818 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7820 | (eval $ac_try) 2>&5 |
| 7821 | ac_status=$? |
| 7822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7823 | (exit $ac_status); }; }; then |
| 7824 | ac_hi=$ac_mid |
| 7825 | else |
| 7826 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7827 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7828 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7829 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7830 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7831 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7832 | done |
| 7833 | case $ac_lo in |
| 7834 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7835 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 7836 | See \`config.log' for more details." >&5 |
| 7837 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 7838 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7839 | { (exit 1); exit 1; }; } ;; |
| 7840 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7841 | else |
| 7842 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7843 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 7844 | See \`config.log' for more details." >&5 |
| 7845 | echo "$as_me: error: cannot run test program while cross compiling |
| 7846 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7847 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7848 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7849 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7850 | /* confdefs.h. */ |
| 7851 | _ACEOF |
| 7852 | cat confdefs.h >>conftest.$ac_ext |
| 7853 | cat >>conftest.$ac_ext <<_ACEOF |
| 7854 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7855 | $ac_includes_default |
| 7856 | long longval () { return (long) (sizeof (short)); } |
| 7857 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7858 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7859 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7860 | int |
| 7861 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7862 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7863 | |
| 7864 | FILE *f = fopen ("conftest.val", "w"); |
| 7865 | if (! f) |
| 7866 | exit (1); |
| 7867 | if (((long) (sizeof (short))) < 0) |
| 7868 | { |
| 7869 | long i = longval (); |
| 7870 | if (i != ((long) (sizeof (short)))) |
| 7871 | exit (1); |
| 7872 | fprintf (f, "%ld\n", i); |
| 7873 | } |
| 7874 | else |
| 7875 | { |
| 7876 | unsigned long i = ulongval (); |
| 7877 | if (i != ((long) (sizeof (short)))) |
| 7878 | exit (1); |
| 7879 | fprintf (f, "%lu\n", i); |
| 7880 | } |
| 7881 | exit (ferror (f) || fclose (f) != 0); |
| 7882 | |
| 7883 | ; |
| 7884 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7885 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7886 | _ACEOF |
| 7887 | rm -f conftest$ac_exeext |
| 7888 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7889 | (eval $ac_link) 2>&5 |
| 7890 | ac_status=$? |
| 7891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7892 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7894 | (eval $ac_try) 2>&5 |
| 7895 | ac_status=$? |
| 7896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7897 | (exit $ac_status); }; }; then |
| 7898 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7899 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7900 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7901 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7902 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7903 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7904 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7905 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 7906 | See \`config.log' for more details." >&5 |
| 7907 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 7908 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7909 | { (exit 1); exit 1; }; } |
| 7910 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7911 | 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] | 7912 | fi |
| 7913 | fi |
| 7914 | rm -f conftest.val |
| 7915 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7916 | ac_cv_sizeof_short=0 |
| 7917 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7918 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7919 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 7920 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 7921 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7922 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7923 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7924 | |
| 7925 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7926 | echo "$as_me:$LINENO: checking for float" >&5 |
| 7927 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 7928 | if test "${ac_cv_type_float+set}" = set; then |
| 7929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7930 | else |
| 7931 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7932 | /* confdefs.h. */ |
| 7933 | _ACEOF |
| 7934 | cat confdefs.h >>conftest.$ac_ext |
| 7935 | cat >>conftest.$ac_ext <<_ACEOF |
| 7936 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7937 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7938 | int |
| 7939 | main () |
| 7940 | { |
| 7941 | if ((float *) 0) |
| 7942 | return 0; |
| 7943 | if (sizeof (float)) |
| 7944 | return 0; |
| 7945 | ; |
| 7946 | return 0; |
| 7947 | } |
| 7948 | _ACEOF |
| 7949 | rm -f conftest.$ac_objext |
| 7950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7951 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7952 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7953 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7954 | rm -f conftest.er1 |
| 7955 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7957 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 7958 | { ac_try='test -z "$ac_c_werror_flag" |
| 7959 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7961 | (eval $ac_try) 2>&5 |
| 7962 | ac_status=$? |
| 7963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7964 | (exit $ac_status); }; } && |
| 7965 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7967 | (eval $ac_try) 2>&5 |
| 7968 | ac_status=$? |
| 7969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7970 | (exit $ac_status); }; }; then |
| 7971 | ac_cv_type_float=yes |
| 7972 | else |
| 7973 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7974 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7975 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7976 | ac_cv_type_float=no |
| 7977 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 7978 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7979 | fi |
| 7980 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 7981 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 7982 | |
| 7983 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 7984 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 7985 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 7986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7987 | else |
| 7988 | if test "$ac_cv_type_float" = yes; then |
| 7989 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7990 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7991 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7992 | # This bug is HP SR number 8606223364. |
| 7993 | if test "$cross_compiling" = yes; then |
| 7994 | # Depending upon the size, compute the lo and hi bounds. |
| 7995 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 7996 | /* confdefs.h. */ |
| 7997 | _ACEOF |
| 7998 | cat confdefs.h >>conftest.$ac_ext |
| 7999 | cat >>conftest.$ac_ext <<_ACEOF |
| 8000 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8001 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8002 | int |
| 8003 | main () |
| 8004 | { |
| 8005 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 8006 | test_array [0] = 0 |
| 8007 | |
| 8008 | ; |
| 8009 | return 0; |
| 8010 | } |
| 8011 | _ACEOF |
| 8012 | rm -f conftest.$ac_objext |
| 8013 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8014 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8015 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8016 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8017 | rm -f conftest.er1 |
| 8018 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8020 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8021 | { ac_try='test -z "$ac_c_werror_flag" |
| 8022 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8024 | (eval $ac_try) 2>&5 |
| 8025 | ac_status=$? |
| 8026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8027 | (exit $ac_status); }; } && |
| 8028 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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); }; }; then |
| 8034 | ac_lo=0 ac_mid=0 |
| 8035 | while :; do |
| 8036 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8037 | /* confdefs.h. */ |
| 8038 | _ACEOF |
| 8039 | cat confdefs.h >>conftest.$ac_ext |
| 8040 | cat >>conftest.$ac_ext <<_ACEOF |
| 8041 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8042 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8043 | int |
| 8044 | main () |
| 8045 | { |
| 8046 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 8047 | test_array [0] = 0 |
| 8048 | |
| 8049 | ; |
| 8050 | return 0; |
| 8051 | } |
| 8052 | _ACEOF |
| 8053 | rm -f conftest.$ac_objext |
| 8054 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8055 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8056 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8057 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8058 | rm -f conftest.er1 |
| 8059 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8061 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8062 | { ac_try='test -z "$ac_c_werror_flag" |
| 8063 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8065 | (eval $ac_try) 2>&5 |
| 8066 | ac_status=$? |
| 8067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8068 | (exit $ac_status); }; } && |
| 8069 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8071 | (eval $ac_try) 2>&5 |
| 8072 | ac_status=$? |
| 8073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8074 | (exit $ac_status); }; }; then |
| 8075 | ac_hi=$ac_mid; break |
| 8076 | else |
| 8077 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8078 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8079 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8080 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8081 | if test $ac_lo -le $ac_mid; then |
| 8082 | ac_lo= ac_hi= |
| 8083 | break |
| 8084 | fi |
| 8085 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8086 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8087 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8088 | done |
| 8089 | else |
| 8090 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8091 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8092 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8093 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8094 | /* confdefs.h. */ |
| 8095 | _ACEOF |
| 8096 | cat confdefs.h >>conftest.$ac_ext |
| 8097 | cat >>conftest.$ac_ext <<_ACEOF |
| 8098 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8099 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8100 | int |
| 8101 | main () |
| 8102 | { |
| 8103 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 8104 | test_array [0] = 0 |
| 8105 | |
| 8106 | ; |
| 8107 | return 0; |
| 8108 | } |
| 8109 | _ACEOF |
| 8110 | rm -f conftest.$ac_objext |
| 8111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8112 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8113 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8114 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8115 | rm -f conftest.er1 |
| 8116 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8118 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8119 | { ac_try='test -z "$ac_c_werror_flag" |
| 8120 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8122 | (eval $ac_try) 2>&5 |
| 8123 | ac_status=$? |
| 8124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8125 | (exit $ac_status); }; } && |
| 8126 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8128 | (eval $ac_try) 2>&5 |
| 8129 | ac_status=$? |
| 8130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8131 | (exit $ac_status); }; }; then |
| 8132 | ac_hi=-1 ac_mid=-1 |
| 8133 | while :; do |
| 8134 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8135 | /* confdefs.h. */ |
| 8136 | _ACEOF |
| 8137 | cat confdefs.h >>conftest.$ac_ext |
| 8138 | cat >>conftest.$ac_ext <<_ACEOF |
| 8139 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8140 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8141 | int |
| 8142 | main () |
| 8143 | { |
| 8144 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 8145 | test_array [0] = 0 |
| 8146 | |
| 8147 | ; |
| 8148 | return 0; |
| 8149 | } |
| 8150 | _ACEOF |
| 8151 | rm -f conftest.$ac_objext |
| 8152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8153 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8154 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8155 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8156 | rm -f conftest.er1 |
| 8157 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8159 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8160 | { ac_try='test -z "$ac_c_werror_flag" |
| 8161 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8163 | (eval $ac_try) 2>&5 |
| 8164 | ac_status=$? |
| 8165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8166 | (exit $ac_status); }; } && |
| 8167 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8169 | (eval $ac_try) 2>&5 |
| 8170 | ac_status=$? |
| 8171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8172 | (exit $ac_status); }; }; then |
| 8173 | ac_lo=$ac_mid; break |
| 8174 | else |
| 8175 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8177 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8178 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8179 | if test $ac_mid -le $ac_hi; then |
| 8180 | ac_lo= ac_hi= |
| 8181 | break |
| 8182 | fi |
| 8183 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8184 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8185 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8186 | done |
| 8187 | else |
| 8188 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8190 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8191 | ac_lo= ac_hi= |
| 8192 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8193 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8194 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8195 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8196 | # Binary search between lo and hi bounds. |
| 8197 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8198 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8199 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8200 | /* confdefs.h. */ |
| 8201 | _ACEOF |
| 8202 | cat confdefs.h >>conftest.$ac_ext |
| 8203 | cat >>conftest.$ac_ext <<_ACEOF |
| 8204 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8205 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8206 | int |
| 8207 | main () |
| 8208 | { |
| 8209 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 8210 | test_array [0] = 0 |
| 8211 | |
| 8212 | ; |
| 8213 | return 0; |
| 8214 | } |
| 8215 | _ACEOF |
| 8216 | rm -f conftest.$ac_objext |
| 8217 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8218 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8219 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8220 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8221 | rm -f conftest.er1 |
| 8222 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8224 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8225 | { ac_try='test -z "$ac_c_werror_flag" |
| 8226 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8228 | (eval $ac_try) 2>&5 |
| 8229 | ac_status=$? |
| 8230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8231 | (exit $ac_status); }; } && |
| 8232 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8234 | (eval $ac_try) 2>&5 |
| 8235 | ac_status=$? |
| 8236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8237 | (exit $ac_status); }; }; then |
| 8238 | ac_hi=$ac_mid |
| 8239 | else |
| 8240 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8241 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8242 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8243 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8244 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8245 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8246 | done |
| 8247 | case $ac_lo in |
| 8248 | ?*) ac_cv_sizeof_float=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8249 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| 8250 | See \`config.log' for more details." >&5 |
| 8251 | echo "$as_me: error: cannot compute sizeof (float), 77 |
| 8252 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8253 | { (exit 1); exit 1; }; } ;; |
| 8254 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8255 | else |
| 8256 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8257 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8258 | See \`config.log' for more details." >&5 |
| 8259 | echo "$as_me: error: cannot run test program while cross compiling |
| 8260 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8261 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8262 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8263 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8264 | /* confdefs.h. */ |
| 8265 | _ACEOF |
| 8266 | cat confdefs.h >>conftest.$ac_ext |
| 8267 | cat >>conftest.$ac_ext <<_ACEOF |
| 8268 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8269 | $ac_includes_default |
| 8270 | long longval () { return (long) (sizeof (float)); } |
| 8271 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8272 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8273 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8274 | int |
| 8275 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8276 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8277 | |
| 8278 | FILE *f = fopen ("conftest.val", "w"); |
| 8279 | if (! f) |
| 8280 | exit (1); |
| 8281 | if (((long) (sizeof (float))) < 0) |
| 8282 | { |
| 8283 | long i = longval (); |
| 8284 | if (i != ((long) (sizeof (float)))) |
| 8285 | exit (1); |
| 8286 | fprintf (f, "%ld\n", i); |
| 8287 | } |
| 8288 | else |
| 8289 | { |
| 8290 | unsigned long i = ulongval (); |
| 8291 | if (i != ((long) (sizeof (float)))) |
| 8292 | exit (1); |
| 8293 | fprintf (f, "%lu\n", i); |
| 8294 | } |
| 8295 | exit (ferror (f) || fclose (f) != 0); |
| 8296 | |
| 8297 | ; |
| 8298 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8299 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8300 | _ACEOF |
| 8301 | rm -f conftest$ac_exeext |
| 8302 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8303 | (eval $ac_link) 2>&5 |
| 8304 | ac_status=$? |
| 8305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8306 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8308 | (eval $ac_try) 2>&5 |
| 8309 | ac_status=$? |
| 8310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8311 | (exit $ac_status); }; }; then |
| 8312 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8313 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8314 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8315 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8316 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8317 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8318 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8319 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77 |
| 8320 | See \`config.log' for more details." >&5 |
| 8321 | echo "$as_me: error: cannot compute sizeof (float), 77 |
| 8322 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8323 | { (exit 1); exit 1; }; } |
| 8324 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8325 | 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] | 8326 | fi |
| 8327 | fi |
| 8328 | rm -f conftest.val |
| 8329 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8330 | ac_cv_sizeof_float=0 |
| 8331 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8332 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8333 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 8334 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 8335 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8336 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8337 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8338 | |
| 8339 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8340 | echo "$as_me:$LINENO: checking for double" >&5 |
| 8341 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 8342 | if test "${ac_cv_type_double+set}" = set; then |
| 8343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8344 | else |
| 8345 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8346 | /* confdefs.h. */ |
| 8347 | _ACEOF |
| 8348 | cat confdefs.h >>conftest.$ac_ext |
| 8349 | cat >>conftest.$ac_ext <<_ACEOF |
| 8350 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8351 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8352 | int |
| 8353 | main () |
| 8354 | { |
| 8355 | if ((double *) 0) |
| 8356 | return 0; |
| 8357 | if (sizeof (double)) |
| 8358 | return 0; |
| 8359 | ; |
| 8360 | return 0; |
| 8361 | } |
| 8362 | _ACEOF |
| 8363 | rm -f conftest.$ac_objext |
| 8364 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8365 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8366 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8367 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8368 | rm -f conftest.er1 |
| 8369 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8371 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8372 | { ac_try='test -z "$ac_c_werror_flag" |
| 8373 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8375 | (eval $ac_try) 2>&5 |
| 8376 | ac_status=$? |
| 8377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8378 | (exit $ac_status); }; } && |
| 8379 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8381 | (eval $ac_try) 2>&5 |
| 8382 | ac_status=$? |
| 8383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8384 | (exit $ac_status); }; }; then |
| 8385 | ac_cv_type_double=yes |
| 8386 | else |
| 8387 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8388 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8389 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8390 | ac_cv_type_double=no |
| 8391 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8392 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8393 | fi |
| 8394 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 8395 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 8396 | |
| 8397 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 8398 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 8399 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 8400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8401 | else |
| 8402 | if test "$ac_cv_type_double" = yes; then |
| 8403 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8404 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8405 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8406 | # This bug is HP SR number 8606223364. |
| 8407 | if test "$cross_compiling" = yes; then |
| 8408 | # Depending upon the size, compute the lo and hi bounds. |
| 8409 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8410 | /* confdefs.h. */ |
| 8411 | _ACEOF |
| 8412 | cat confdefs.h >>conftest.$ac_ext |
| 8413 | cat >>conftest.$ac_ext <<_ACEOF |
| 8414 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8415 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8416 | int |
| 8417 | main () |
| 8418 | { |
| 8419 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 8420 | test_array [0] = 0 |
| 8421 | |
| 8422 | ; |
| 8423 | return 0; |
| 8424 | } |
| 8425 | _ACEOF |
| 8426 | rm -f conftest.$ac_objext |
| 8427 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8428 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8429 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8430 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8431 | rm -f conftest.er1 |
| 8432 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8434 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8435 | { ac_try='test -z "$ac_c_werror_flag" |
| 8436 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8438 | (eval $ac_try) 2>&5 |
| 8439 | ac_status=$? |
| 8440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8441 | (exit $ac_status); }; } && |
| 8442 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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); }; }; then |
| 8448 | ac_lo=0 ac_mid=0 |
| 8449 | while :; do |
| 8450 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8451 | /* confdefs.h. */ |
| 8452 | _ACEOF |
| 8453 | cat confdefs.h >>conftest.$ac_ext |
| 8454 | cat >>conftest.$ac_ext <<_ACEOF |
| 8455 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8456 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8457 | int |
| 8458 | main () |
| 8459 | { |
| 8460 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 8461 | test_array [0] = 0 |
| 8462 | |
| 8463 | ; |
| 8464 | return 0; |
| 8465 | } |
| 8466 | _ACEOF |
| 8467 | rm -f conftest.$ac_objext |
| 8468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8469 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8470 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8471 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8472 | rm -f conftest.er1 |
| 8473 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8475 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8476 | { ac_try='test -z "$ac_c_werror_flag" |
| 8477 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8479 | (eval $ac_try) 2>&5 |
| 8480 | ac_status=$? |
| 8481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8482 | (exit $ac_status); }; } && |
| 8483 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8485 | (eval $ac_try) 2>&5 |
| 8486 | ac_status=$? |
| 8487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8488 | (exit $ac_status); }; }; then |
| 8489 | ac_hi=$ac_mid; break |
| 8490 | else |
| 8491 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8493 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8494 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8495 | if test $ac_lo -le $ac_mid; then |
| 8496 | ac_lo= ac_hi= |
| 8497 | break |
| 8498 | fi |
| 8499 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8500 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8501 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8502 | done |
| 8503 | else |
| 8504 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8505 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8506 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8507 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8508 | /* confdefs.h. */ |
| 8509 | _ACEOF |
| 8510 | cat confdefs.h >>conftest.$ac_ext |
| 8511 | cat >>conftest.$ac_ext <<_ACEOF |
| 8512 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8513 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8514 | int |
| 8515 | main () |
| 8516 | { |
| 8517 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 8518 | test_array [0] = 0 |
| 8519 | |
| 8520 | ; |
| 8521 | return 0; |
| 8522 | } |
| 8523 | _ACEOF |
| 8524 | rm -f conftest.$ac_objext |
| 8525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8526 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8527 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8528 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8529 | rm -f conftest.er1 |
| 8530 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8532 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8533 | { ac_try='test -z "$ac_c_werror_flag" |
| 8534 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8536 | (eval $ac_try) 2>&5 |
| 8537 | ac_status=$? |
| 8538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8539 | (exit $ac_status); }; } && |
| 8540 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8542 | (eval $ac_try) 2>&5 |
| 8543 | ac_status=$? |
| 8544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8545 | (exit $ac_status); }; }; then |
| 8546 | ac_hi=-1 ac_mid=-1 |
| 8547 | while :; do |
| 8548 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8549 | /* confdefs.h. */ |
| 8550 | _ACEOF |
| 8551 | cat confdefs.h >>conftest.$ac_ext |
| 8552 | cat >>conftest.$ac_ext <<_ACEOF |
| 8553 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8554 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8555 | int |
| 8556 | main () |
| 8557 | { |
| 8558 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 8559 | test_array [0] = 0 |
| 8560 | |
| 8561 | ; |
| 8562 | return 0; |
| 8563 | } |
| 8564 | _ACEOF |
| 8565 | rm -f conftest.$ac_objext |
| 8566 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8567 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8568 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8569 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8570 | rm -f conftest.er1 |
| 8571 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8573 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8574 | { ac_try='test -z "$ac_c_werror_flag" |
| 8575 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8577 | (eval $ac_try) 2>&5 |
| 8578 | ac_status=$? |
| 8579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8580 | (exit $ac_status); }; } && |
| 8581 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8583 | (eval $ac_try) 2>&5 |
| 8584 | ac_status=$? |
| 8585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8586 | (exit $ac_status); }; }; then |
| 8587 | ac_lo=$ac_mid; break |
| 8588 | else |
| 8589 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8590 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8591 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8592 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8593 | if test $ac_mid -le $ac_hi; then |
| 8594 | ac_lo= ac_hi= |
| 8595 | break |
| 8596 | fi |
| 8597 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8598 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8599 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8600 | done |
| 8601 | else |
| 8602 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8603 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8604 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8605 | ac_lo= ac_hi= |
| 8606 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8607 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8608 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8609 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8610 | # Binary search between lo and hi bounds. |
| 8611 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8612 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8613 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8614 | /* confdefs.h. */ |
| 8615 | _ACEOF |
| 8616 | cat confdefs.h >>conftest.$ac_ext |
| 8617 | cat >>conftest.$ac_ext <<_ACEOF |
| 8618 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8619 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8620 | int |
| 8621 | main () |
| 8622 | { |
| 8623 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 8624 | test_array [0] = 0 |
| 8625 | |
| 8626 | ; |
| 8627 | return 0; |
| 8628 | } |
| 8629 | _ACEOF |
| 8630 | rm -f conftest.$ac_objext |
| 8631 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8632 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8633 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8634 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8635 | rm -f conftest.er1 |
| 8636 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8638 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8639 | { ac_try='test -z "$ac_c_werror_flag" |
| 8640 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8642 | (eval $ac_try) 2>&5 |
| 8643 | ac_status=$? |
| 8644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8645 | (exit $ac_status); }; } && |
| 8646 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8648 | (eval $ac_try) 2>&5 |
| 8649 | ac_status=$? |
| 8650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8651 | (exit $ac_status); }; }; then |
| 8652 | ac_hi=$ac_mid |
| 8653 | else |
| 8654 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8655 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8656 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8657 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8658 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8659 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8660 | done |
| 8661 | case $ac_lo in |
| 8662 | ?*) ac_cv_sizeof_double=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8663 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| 8664 | See \`config.log' for more details." >&5 |
| 8665 | echo "$as_me: error: cannot compute sizeof (double), 77 |
| 8666 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8667 | { (exit 1); exit 1; }; } ;; |
| 8668 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8669 | else |
| 8670 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8671 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8672 | See \`config.log' for more details." >&5 |
| 8673 | echo "$as_me: error: cannot run test program while cross compiling |
| 8674 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8675 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8676 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8677 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8678 | /* confdefs.h. */ |
| 8679 | _ACEOF |
| 8680 | cat confdefs.h >>conftest.$ac_ext |
| 8681 | cat >>conftest.$ac_ext <<_ACEOF |
| 8682 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8683 | $ac_includes_default |
| 8684 | long longval () { return (long) (sizeof (double)); } |
| 8685 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8686 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8687 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8688 | int |
| 8689 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8690 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8691 | |
| 8692 | FILE *f = fopen ("conftest.val", "w"); |
| 8693 | if (! f) |
| 8694 | exit (1); |
| 8695 | if (((long) (sizeof (double))) < 0) |
| 8696 | { |
| 8697 | long i = longval (); |
| 8698 | if (i != ((long) (sizeof (double)))) |
| 8699 | exit (1); |
| 8700 | fprintf (f, "%ld\n", i); |
| 8701 | } |
| 8702 | else |
| 8703 | { |
| 8704 | unsigned long i = ulongval (); |
| 8705 | if (i != ((long) (sizeof (double)))) |
| 8706 | exit (1); |
| 8707 | fprintf (f, "%lu\n", i); |
| 8708 | } |
| 8709 | exit (ferror (f) || fclose (f) != 0); |
| 8710 | |
| 8711 | ; |
| 8712 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8713 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8714 | _ACEOF |
| 8715 | rm -f conftest$ac_exeext |
| 8716 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8717 | (eval $ac_link) 2>&5 |
| 8718 | ac_status=$? |
| 8719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8720 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8722 | (eval $ac_try) 2>&5 |
| 8723 | ac_status=$? |
| 8724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8725 | (exit $ac_status); }; }; then |
| 8726 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8727 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8728 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8729 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8730 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8731 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8732 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8733 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 |
| 8734 | See \`config.log' for more details." >&5 |
| 8735 | echo "$as_me: error: cannot compute sizeof (double), 77 |
| 8736 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8737 | { (exit 1); exit 1; }; } |
| 8738 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8739 | 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] | 8740 | fi |
| 8741 | fi |
| 8742 | rm -f conftest.val |
| 8743 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8744 | ac_cv_sizeof_double=0 |
| 8745 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8746 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8747 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 8748 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 8749 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8750 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8751 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 8752 | |
| 8753 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8754 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 8755 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 8756 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 8757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8758 | else |
| 8759 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8760 | /* confdefs.h. */ |
| 8761 | _ACEOF |
| 8762 | cat confdefs.h >>conftest.$ac_ext |
| 8763 | cat >>conftest.$ac_ext <<_ACEOF |
| 8764 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8765 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8766 | int |
| 8767 | main () |
| 8768 | { |
| 8769 | if ((fpos_t *) 0) |
| 8770 | return 0; |
| 8771 | if (sizeof (fpos_t)) |
| 8772 | return 0; |
| 8773 | ; |
| 8774 | return 0; |
| 8775 | } |
| 8776 | _ACEOF |
| 8777 | rm -f conftest.$ac_objext |
| 8778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8779 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8780 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8781 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8782 | rm -f conftest.er1 |
| 8783 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8785 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8786 | { ac_try='test -z "$ac_c_werror_flag" |
| 8787 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8789 | (eval $ac_try) 2>&5 |
| 8790 | ac_status=$? |
| 8791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8792 | (exit $ac_status); }; } && |
| 8793 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8795 | (eval $ac_try) 2>&5 |
| 8796 | ac_status=$? |
| 8797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8798 | (exit $ac_status); }; }; then |
| 8799 | ac_cv_type_fpos_t=yes |
| 8800 | else |
| 8801 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8803 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8804 | ac_cv_type_fpos_t=no |
| 8805 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8806 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8807 | fi |
| 8808 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 8809 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 8810 | |
| 8811 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 8812 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 8813 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 8814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8815 | else |
| 8816 | if test "$ac_cv_type_fpos_t" = yes; then |
| 8817 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8818 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8819 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8820 | # This bug is HP SR number 8606223364. |
| 8821 | if test "$cross_compiling" = yes; then |
| 8822 | # Depending upon the size, compute the lo and hi bounds. |
| 8823 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8824 | /* confdefs.h. */ |
| 8825 | _ACEOF |
| 8826 | cat confdefs.h >>conftest.$ac_ext |
| 8827 | cat >>conftest.$ac_ext <<_ACEOF |
| 8828 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8829 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8830 | int |
| 8831 | main () |
| 8832 | { |
| 8833 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 8834 | test_array [0] = 0 |
| 8835 | |
| 8836 | ; |
| 8837 | return 0; |
| 8838 | } |
| 8839 | _ACEOF |
| 8840 | rm -f conftest.$ac_objext |
| 8841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8842 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8843 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8844 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8845 | rm -f conftest.er1 |
| 8846 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8848 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8849 | { ac_try='test -z "$ac_c_werror_flag" |
| 8850 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8852 | (eval $ac_try) 2>&5 |
| 8853 | ac_status=$? |
| 8854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8855 | (exit $ac_status); }; } && |
| 8856 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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); }; }; then |
| 8862 | ac_lo=0 ac_mid=0 |
| 8863 | while :; do |
| 8864 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8865 | /* confdefs.h. */ |
| 8866 | _ACEOF |
| 8867 | cat confdefs.h >>conftest.$ac_ext |
| 8868 | cat >>conftest.$ac_ext <<_ACEOF |
| 8869 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8870 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8871 | int |
| 8872 | main () |
| 8873 | { |
| 8874 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8875 | test_array [0] = 0 |
| 8876 | |
| 8877 | ; |
| 8878 | return 0; |
| 8879 | } |
| 8880 | _ACEOF |
| 8881 | rm -f conftest.$ac_objext |
| 8882 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8883 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8884 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8885 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8886 | rm -f conftest.er1 |
| 8887 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8889 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8890 | { ac_try='test -z "$ac_c_werror_flag" |
| 8891 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8893 | (eval $ac_try) 2>&5 |
| 8894 | ac_status=$? |
| 8895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8896 | (exit $ac_status); }; } && |
| 8897 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8899 | (eval $ac_try) 2>&5 |
| 8900 | ac_status=$? |
| 8901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8902 | (exit $ac_status); }; }; then |
| 8903 | ac_hi=$ac_mid; break |
| 8904 | else |
| 8905 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8906 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8907 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8908 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8909 | if test $ac_lo -le $ac_mid; then |
| 8910 | ac_lo= ac_hi= |
| 8911 | break |
| 8912 | fi |
| 8913 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8914 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8915 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8916 | done |
| 8917 | else |
| 8918 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8919 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8920 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8921 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8922 | /* confdefs.h. */ |
| 8923 | _ACEOF |
| 8924 | cat confdefs.h >>conftest.$ac_ext |
| 8925 | cat >>conftest.$ac_ext <<_ACEOF |
| 8926 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8927 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8928 | int |
| 8929 | main () |
| 8930 | { |
| 8931 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 8932 | test_array [0] = 0 |
| 8933 | |
| 8934 | ; |
| 8935 | return 0; |
| 8936 | } |
| 8937 | _ACEOF |
| 8938 | rm -f conftest.$ac_objext |
| 8939 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8940 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8941 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8942 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8943 | rm -f conftest.er1 |
| 8944 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8946 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8947 | { ac_try='test -z "$ac_c_werror_flag" |
| 8948 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8950 | (eval $ac_try) 2>&5 |
| 8951 | ac_status=$? |
| 8952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8953 | (exit $ac_status); }; } && |
| 8954 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8956 | (eval $ac_try) 2>&5 |
| 8957 | ac_status=$? |
| 8958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8959 | (exit $ac_status); }; }; then |
| 8960 | ac_hi=-1 ac_mid=-1 |
| 8961 | while :; do |
| 8962 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 8963 | /* confdefs.h. */ |
| 8964 | _ACEOF |
| 8965 | cat confdefs.h >>conftest.$ac_ext |
| 8966 | cat >>conftest.$ac_ext <<_ACEOF |
| 8967 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8968 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8969 | int |
| 8970 | main () |
| 8971 | { |
| 8972 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 8973 | test_array [0] = 0 |
| 8974 | |
| 8975 | ; |
| 8976 | return 0; |
| 8977 | } |
| 8978 | _ACEOF |
| 8979 | rm -f conftest.$ac_objext |
| 8980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8981 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8982 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8983 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8984 | rm -f conftest.er1 |
| 8985 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8987 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 8988 | { ac_try='test -z "$ac_c_werror_flag" |
| 8989 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 8990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8991 | (eval $ac_try) 2>&5 |
| 8992 | ac_status=$? |
| 8993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8994 | (exit $ac_status); }; } && |
| 8995 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8997 | (eval $ac_try) 2>&5 |
| 8998 | ac_status=$? |
| 8999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9000 | (exit $ac_status); }; }; then |
| 9001 | ac_lo=$ac_mid; break |
| 9002 | else |
| 9003 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9004 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9005 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9006 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9007 | if test $ac_mid -le $ac_hi; then |
| 9008 | ac_lo= ac_hi= |
| 9009 | break |
| 9010 | fi |
| 9011 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9012 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9013 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9014 | done |
| 9015 | else |
| 9016 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9018 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9019 | ac_lo= ac_hi= |
| 9020 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9021 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9022 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9023 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9024 | # Binary search between lo and hi bounds. |
| 9025 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9026 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9027 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9028 | /* confdefs.h. */ |
| 9029 | _ACEOF |
| 9030 | cat confdefs.h >>conftest.$ac_ext |
| 9031 | cat >>conftest.$ac_ext <<_ACEOF |
| 9032 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9033 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9034 | int |
| 9035 | main () |
| 9036 | { |
| 9037 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 9038 | test_array [0] = 0 |
| 9039 | |
| 9040 | ; |
| 9041 | return 0; |
| 9042 | } |
| 9043 | _ACEOF |
| 9044 | rm -f conftest.$ac_objext |
| 9045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9046 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9047 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9048 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9049 | rm -f conftest.er1 |
| 9050 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9052 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9053 | { ac_try='test -z "$ac_c_werror_flag" |
| 9054 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9056 | (eval $ac_try) 2>&5 |
| 9057 | ac_status=$? |
| 9058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9059 | (exit $ac_status); }; } && |
| 9060 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9062 | (eval $ac_try) 2>&5 |
| 9063 | ac_status=$? |
| 9064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9065 | (exit $ac_status); }; }; then |
| 9066 | ac_hi=$ac_mid |
| 9067 | else |
| 9068 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9070 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9071 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9072 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9073 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9074 | done |
| 9075 | case $ac_lo in |
| 9076 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9077 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| 9078 | See \`config.log' for more details." >&5 |
| 9079 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| 9080 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9081 | { (exit 1); exit 1; }; } ;; |
| 9082 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9083 | else |
| 9084 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9085 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 9086 | See \`config.log' for more details." >&5 |
| 9087 | echo "$as_me: error: cannot run test program while cross compiling |
| 9088 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9089 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9090 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9091 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9092 | /* confdefs.h. */ |
| 9093 | _ACEOF |
| 9094 | cat confdefs.h >>conftest.$ac_ext |
| 9095 | cat >>conftest.$ac_ext <<_ACEOF |
| 9096 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9097 | $ac_includes_default |
| 9098 | long longval () { return (long) (sizeof (fpos_t)); } |
| 9099 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9100 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9101 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9102 | int |
| 9103 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9104 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9105 | |
| 9106 | FILE *f = fopen ("conftest.val", "w"); |
| 9107 | if (! f) |
| 9108 | exit (1); |
| 9109 | if (((long) (sizeof (fpos_t))) < 0) |
| 9110 | { |
| 9111 | long i = longval (); |
| 9112 | if (i != ((long) (sizeof (fpos_t)))) |
| 9113 | exit (1); |
| 9114 | fprintf (f, "%ld\n", i); |
| 9115 | } |
| 9116 | else |
| 9117 | { |
| 9118 | unsigned long i = ulongval (); |
| 9119 | if (i != ((long) (sizeof (fpos_t)))) |
| 9120 | exit (1); |
| 9121 | fprintf (f, "%lu\n", i); |
| 9122 | } |
| 9123 | exit (ferror (f) || fclose (f) != 0); |
| 9124 | |
| 9125 | ; |
| 9126 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9127 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9128 | _ACEOF |
| 9129 | rm -f conftest$ac_exeext |
| 9130 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9131 | (eval $ac_link) 2>&5 |
| 9132 | ac_status=$? |
| 9133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9134 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9136 | (eval $ac_try) 2>&5 |
| 9137 | ac_status=$? |
| 9138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9139 | (exit $ac_status); }; }; then |
| 9140 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9141 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9142 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9143 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9145 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9146 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9147 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77 |
| 9148 | See \`config.log' for more details." >&5 |
| 9149 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77 |
| 9150 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9151 | { (exit 1); exit 1; }; } |
| 9152 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9153 | 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] | 9154 | fi |
| 9155 | fi |
| 9156 | rm -f conftest.val |
| 9157 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9158 | ac_cv_sizeof_fpos_t=0 |
| 9159 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9160 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9161 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 9162 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 9163 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9164 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9165 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9166 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9167 | |
Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 9168 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 9169 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 9170 | if test "${ac_cv_type_size_t+set}" = set; then |
| 9171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9172 | else |
| 9173 | cat >conftest.$ac_ext <<_ACEOF |
| 9174 | /* confdefs.h. */ |
| 9175 | _ACEOF |
| 9176 | cat confdefs.h >>conftest.$ac_ext |
| 9177 | cat >>conftest.$ac_ext <<_ACEOF |
| 9178 | /* end confdefs.h. */ |
| 9179 | $ac_includes_default |
| 9180 | int |
| 9181 | main () |
| 9182 | { |
| 9183 | if ((size_t *) 0) |
| 9184 | return 0; |
| 9185 | if (sizeof (size_t)) |
| 9186 | return 0; |
| 9187 | ; |
| 9188 | return 0; |
| 9189 | } |
| 9190 | _ACEOF |
| 9191 | rm -f conftest.$ac_objext |
| 9192 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9193 | (eval $ac_compile) 2>conftest.er1 |
| 9194 | ac_status=$? |
| 9195 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9196 | rm -f conftest.er1 |
| 9197 | cat conftest.err >&5 |
| 9198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9199 | (exit $ac_status); } && |
| 9200 | { ac_try='test -z "$ac_c_werror_flag" |
| 9201 | || test ! -s conftest.err' |
| 9202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9203 | (eval $ac_try) 2>&5 |
| 9204 | ac_status=$? |
| 9205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9206 | (exit $ac_status); }; } && |
| 9207 | { ac_try='test -s conftest.$ac_objext' |
| 9208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9209 | (eval $ac_try) 2>&5 |
| 9210 | ac_status=$? |
| 9211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9212 | (exit $ac_status); }; }; then |
| 9213 | ac_cv_type_size_t=yes |
| 9214 | else |
| 9215 | echo "$as_me: failed program was:" >&5 |
| 9216 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9217 | |
| 9218 | ac_cv_type_size_t=no |
| 9219 | fi |
| 9220 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9221 | fi |
| 9222 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 9223 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 9224 | |
| 9225 | echo "$as_me:$LINENO: checking size of size_t" >&5 |
| 9226 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 |
| 9227 | if test "${ac_cv_sizeof_size_t+set}" = set; then |
| 9228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9229 | else |
| 9230 | if test "$ac_cv_type_size_t" = yes; then |
| 9231 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 9232 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9233 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9234 | # This bug is HP SR number 8606223364. |
| 9235 | if test "$cross_compiling" = yes; then |
| 9236 | # Depending upon the size, compute the lo and hi bounds. |
| 9237 | cat >conftest.$ac_ext <<_ACEOF |
| 9238 | /* confdefs.h. */ |
| 9239 | _ACEOF |
| 9240 | cat confdefs.h >>conftest.$ac_ext |
| 9241 | cat >>conftest.$ac_ext <<_ACEOF |
| 9242 | /* end confdefs.h. */ |
| 9243 | $ac_includes_default |
| 9244 | int |
| 9245 | main () |
| 9246 | { |
| 9247 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; |
| 9248 | test_array [0] = 0 |
| 9249 | |
| 9250 | ; |
| 9251 | return 0; |
| 9252 | } |
| 9253 | _ACEOF |
| 9254 | rm -f conftest.$ac_objext |
| 9255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9256 | (eval $ac_compile) 2>conftest.er1 |
| 9257 | ac_status=$? |
| 9258 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9259 | rm -f conftest.er1 |
| 9260 | cat conftest.err >&5 |
| 9261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9262 | (exit $ac_status); } && |
| 9263 | { ac_try='test -z "$ac_c_werror_flag" |
| 9264 | || test ! -s conftest.err' |
| 9265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9266 | (eval $ac_try) 2>&5 |
| 9267 | ac_status=$? |
| 9268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9269 | (exit $ac_status); }; } && |
| 9270 | { ac_try='test -s conftest.$ac_objext' |
| 9271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9272 | (eval $ac_try) 2>&5 |
| 9273 | ac_status=$? |
| 9274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9275 | (exit $ac_status); }; }; then |
| 9276 | ac_lo=0 ac_mid=0 |
| 9277 | while :; do |
| 9278 | cat >conftest.$ac_ext <<_ACEOF |
| 9279 | /* confdefs.h. */ |
| 9280 | _ACEOF |
| 9281 | cat confdefs.h >>conftest.$ac_ext |
| 9282 | cat >>conftest.$ac_ext <<_ACEOF |
| 9283 | /* end confdefs.h. */ |
| 9284 | $ac_includes_default |
| 9285 | int |
| 9286 | main () |
| 9287 | { |
| 9288 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; |
| 9289 | test_array [0] = 0 |
| 9290 | |
| 9291 | ; |
| 9292 | return 0; |
| 9293 | } |
| 9294 | _ACEOF |
| 9295 | rm -f conftest.$ac_objext |
| 9296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9297 | (eval $ac_compile) 2>conftest.er1 |
| 9298 | ac_status=$? |
| 9299 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9300 | rm -f conftest.er1 |
| 9301 | cat conftest.err >&5 |
| 9302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9303 | (exit $ac_status); } && |
| 9304 | { ac_try='test -z "$ac_c_werror_flag" |
| 9305 | || test ! -s conftest.err' |
| 9306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9307 | (eval $ac_try) 2>&5 |
| 9308 | ac_status=$? |
| 9309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9310 | (exit $ac_status); }; } && |
| 9311 | { ac_try='test -s conftest.$ac_objext' |
| 9312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9313 | (eval $ac_try) 2>&5 |
| 9314 | ac_status=$? |
| 9315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9316 | (exit $ac_status); }; }; then |
| 9317 | ac_hi=$ac_mid; break |
| 9318 | else |
| 9319 | echo "$as_me: failed program was:" >&5 |
| 9320 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9321 | |
| 9322 | ac_lo=`expr $ac_mid + 1` |
| 9323 | if test $ac_lo -le $ac_mid; then |
| 9324 | ac_lo= ac_hi= |
| 9325 | break |
| 9326 | fi |
| 9327 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 9328 | fi |
| 9329 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9330 | done |
| 9331 | else |
| 9332 | echo "$as_me: failed program was:" >&5 |
| 9333 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9334 | |
| 9335 | cat >conftest.$ac_ext <<_ACEOF |
| 9336 | /* confdefs.h. */ |
| 9337 | _ACEOF |
| 9338 | cat confdefs.h >>conftest.$ac_ext |
| 9339 | cat >>conftest.$ac_ext <<_ACEOF |
| 9340 | /* end confdefs.h. */ |
| 9341 | $ac_includes_default |
| 9342 | int |
| 9343 | main () |
| 9344 | { |
| 9345 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; |
| 9346 | test_array [0] = 0 |
| 9347 | |
| 9348 | ; |
| 9349 | return 0; |
| 9350 | } |
| 9351 | _ACEOF |
| 9352 | rm -f conftest.$ac_objext |
| 9353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9354 | (eval $ac_compile) 2>conftest.er1 |
| 9355 | ac_status=$? |
| 9356 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9357 | rm -f conftest.er1 |
| 9358 | cat conftest.err >&5 |
| 9359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9360 | (exit $ac_status); } && |
| 9361 | { ac_try='test -z "$ac_c_werror_flag" |
| 9362 | || test ! -s conftest.err' |
| 9363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9364 | (eval $ac_try) 2>&5 |
| 9365 | ac_status=$? |
| 9366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9367 | (exit $ac_status); }; } && |
| 9368 | { ac_try='test -s conftest.$ac_objext' |
| 9369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9370 | (eval $ac_try) 2>&5 |
| 9371 | ac_status=$? |
| 9372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9373 | (exit $ac_status); }; }; then |
| 9374 | ac_hi=-1 ac_mid=-1 |
| 9375 | while :; do |
| 9376 | cat >conftest.$ac_ext <<_ACEOF |
| 9377 | /* confdefs.h. */ |
| 9378 | _ACEOF |
| 9379 | cat confdefs.h >>conftest.$ac_ext |
| 9380 | cat >>conftest.$ac_ext <<_ACEOF |
| 9381 | /* end confdefs.h. */ |
| 9382 | $ac_includes_default |
| 9383 | int |
| 9384 | main () |
| 9385 | { |
| 9386 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; |
| 9387 | test_array [0] = 0 |
| 9388 | |
| 9389 | ; |
| 9390 | return 0; |
| 9391 | } |
| 9392 | _ACEOF |
| 9393 | rm -f conftest.$ac_objext |
| 9394 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9395 | (eval $ac_compile) 2>conftest.er1 |
| 9396 | ac_status=$? |
| 9397 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9398 | rm -f conftest.er1 |
| 9399 | cat conftest.err >&5 |
| 9400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9401 | (exit $ac_status); } && |
| 9402 | { ac_try='test -z "$ac_c_werror_flag" |
| 9403 | || test ! -s conftest.err' |
| 9404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9405 | (eval $ac_try) 2>&5 |
| 9406 | ac_status=$? |
| 9407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9408 | (exit $ac_status); }; } && |
| 9409 | { ac_try='test -s conftest.$ac_objext' |
| 9410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9411 | (eval $ac_try) 2>&5 |
| 9412 | ac_status=$? |
| 9413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9414 | (exit $ac_status); }; }; then |
| 9415 | ac_lo=$ac_mid; break |
| 9416 | else |
| 9417 | echo "$as_me: failed program was:" >&5 |
| 9418 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9419 | |
| 9420 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 9421 | if test $ac_mid -le $ac_hi; then |
| 9422 | ac_lo= ac_hi= |
| 9423 | break |
| 9424 | fi |
| 9425 | ac_mid=`expr 2 '*' $ac_mid` |
| 9426 | fi |
| 9427 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9428 | done |
| 9429 | else |
| 9430 | echo "$as_me: failed program was:" >&5 |
| 9431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9432 | |
| 9433 | ac_lo= ac_hi= |
| 9434 | fi |
| 9435 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9436 | fi |
| 9437 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9438 | # Binary search between lo and hi bounds. |
| 9439 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9440 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9441 | cat >conftest.$ac_ext <<_ACEOF |
| 9442 | /* confdefs.h. */ |
| 9443 | _ACEOF |
| 9444 | cat confdefs.h >>conftest.$ac_ext |
| 9445 | cat >>conftest.$ac_ext <<_ACEOF |
| 9446 | /* end confdefs.h. */ |
| 9447 | $ac_includes_default |
| 9448 | int |
| 9449 | main () |
| 9450 | { |
| 9451 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; |
| 9452 | test_array [0] = 0 |
| 9453 | |
| 9454 | ; |
| 9455 | return 0; |
| 9456 | } |
| 9457 | _ACEOF |
| 9458 | rm -f conftest.$ac_objext |
| 9459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9460 | (eval $ac_compile) 2>conftest.er1 |
| 9461 | ac_status=$? |
| 9462 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9463 | rm -f conftest.er1 |
| 9464 | cat conftest.err >&5 |
| 9465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9466 | (exit $ac_status); } && |
| 9467 | { ac_try='test -z "$ac_c_werror_flag" |
| 9468 | || test ! -s conftest.err' |
| 9469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9470 | (eval $ac_try) 2>&5 |
| 9471 | ac_status=$? |
| 9472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9473 | (exit $ac_status); }; } && |
| 9474 | { ac_try='test -s conftest.$ac_objext' |
| 9475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9476 | (eval $ac_try) 2>&5 |
| 9477 | ac_status=$? |
| 9478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9479 | (exit $ac_status); }; }; then |
| 9480 | ac_hi=$ac_mid |
| 9481 | else |
| 9482 | echo "$as_me: failed program was:" >&5 |
| 9483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9484 | |
| 9485 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9486 | fi |
| 9487 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9488 | done |
| 9489 | case $ac_lo in |
| 9490 | ?*) ac_cv_sizeof_size_t=$ac_lo;; |
| 9491 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 |
| 9492 | See \`config.log' for more details." >&5 |
| 9493 | echo "$as_me: error: cannot compute sizeof (size_t), 77 |
| 9494 | See \`config.log' for more details." >&2;} |
| 9495 | { (exit 1); exit 1; }; } ;; |
| 9496 | esac |
| 9497 | else |
| 9498 | if test "$cross_compiling" = yes; then |
| 9499 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 9500 | See \`config.log' for more details." >&5 |
| 9501 | echo "$as_me: error: cannot run test program while cross compiling |
| 9502 | See \`config.log' for more details." >&2;} |
| 9503 | { (exit 1); exit 1; }; } |
| 9504 | else |
| 9505 | cat >conftest.$ac_ext <<_ACEOF |
| 9506 | /* confdefs.h. */ |
| 9507 | _ACEOF |
| 9508 | cat confdefs.h >>conftest.$ac_ext |
| 9509 | cat >>conftest.$ac_ext <<_ACEOF |
| 9510 | /* end confdefs.h. */ |
| 9511 | $ac_includes_default |
| 9512 | long longval () { return (long) (sizeof (size_t)); } |
| 9513 | unsigned long ulongval () { return (long) (sizeof (size_t)); } |
| 9514 | #include <stdio.h> |
| 9515 | #include <stdlib.h> |
| 9516 | int |
| 9517 | main () |
| 9518 | { |
| 9519 | |
| 9520 | FILE *f = fopen ("conftest.val", "w"); |
| 9521 | if (! f) |
| 9522 | exit (1); |
| 9523 | if (((long) (sizeof (size_t))) < 0) |
| 9524 | { |
| 9525 | long i = longval (); |
| 9526 | if (i != ((long) (sizeof (size_t)))) |
| 9527 | exit (1); |
| 9528 | fprintf (f, "%ld\n", i); |
| 9529 | } |
| 9530 | else |
| 9531 | { |
| 9532 | unsigned long i = ulongval (); |
| 9533 | if (i != ((long) (sizeof (size_t)))) |
| 9534 | exit (1); |
| 9535 | fprintf (f, "%lu\n", i); |
| 9536 | } |
| 9537 | exit (ferror (f) || fclose (f) != 0); |
| 9538 | |
| 9539 | ; |
| 9540 | return 0; |
| 9541 | } |
| 9542 | _ACEOF |
| 9543 | rm -f conftest$ac_exeext |
| 9544 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9545 | (eval $ac_link) 2>&5 |
| 9546 | ac_status=$? |
| 9547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9548 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9550 | (eval $ac_try) 2>&5 |
| 9551 | ac_status=$? |
| 9552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9553 | (exit $ac_status); }; }; then |
| 9554 | ac_cv_sizeof_size_t=`cat conftest.val` |
| 9555 | else |
| 9556 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9557 | echo "$as_me: failed program was:" >&5 |
| 9558 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9559 | |
| 9560 | ( exit $ac_status ) |
| 9561 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 |
| 9562 | See \`config.log' for more details." >&5 |
| 9563 | echo "$as_me: error: cannot compute sizeof (size_t), 77 |
| 9564 | See \`config.log' for more details." >&2;} |
| 9565 | { (exit 1); exit 1; }; } |
| 9566 | fi |
| 9567 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 9568 | fi |
| 9569 | fi |
| 9570 | rm -f conftest.val |
| 9571 | else |
| 9572 | ac_cv_sizeof_size_t=0 |
| 9573 | fi |
| 9574 | fi |
| 9575 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 |
| 9576 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 |
| 9577 | cat >>confdefs.h <<_ACEOF |
| 9578 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 9579 | _ACEOF |
| 9580 | |
| 9581 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9582 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9583 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 9584 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9585 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9586 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9587 | /* confdefs.h. */ |
| 9588 | _ACEOF |
| 9589 | cat confdefs.h >>conftest.$ac_ext |
| 9590 | cat >>conftest.$ac_ext <<_ACEOF |
| 9591 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9592 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9593 | int |
| 9594 | main () |
| 9595 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9596 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9597 | ; |
| 9598 | return 0; |
| 9599 | } |
| 9600 | _ACEOF |
| 9601 | rm -f conftest.$ac_objext |
| 9602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9603 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9604 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9605 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9606 | rm -f conftest.er1 |
| 9607 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9609 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9610 | { ac_try='test -z "$ac_c_werror_flag" |
| 9611 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9613 | (eval $ac_try) 2>&5 |
| 9614 | ac_status=$? |
| 9615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9616 | (exit $ac_status); }; } && |
| 9617 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9619 | (eval $ac_try) 2>&5 |
| 9620 | ac_status=$? |
| 9621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9622 | (exit $ac_status); }; }; then |
| 9623 | |
| 9624 | |
| 9625 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9626 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9627 | _ACEOF |
| 9628 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 9629 | have_long_long=yes |
| 9630 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9631 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9632 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9633 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9634 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9635 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9636 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9637 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 9638 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 9639 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9640 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 9641 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 9642 | if test "${ac_cv_type_long_long+set}" = set; then |
| 9643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9644 | else |
| 9645 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9646 | /* confdefs.h. */ |
| 9647 | _ACEOF |
| 9648 | cat confdefs.h >>conftest.$ac_ext |
| 9649 | cat >>conftest.$ac_ext <<_ACEOF |
| 9650 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9651 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9652 | int |
| 9653 | main () |
| 9654 | { |
| 9655 | if ((long long *) 0) |
| 9656 | return 0; |
| 9657 | if (sizeof (long long)) |
| 9658 | return 0; |
| 9659 | ; |
| 9660 | return 0; |
| 9661 | } |
| 9662 | _ACEOF |
| 9663 | rm -f conftest.$ac_objext |
| 9664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9665 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9666 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9667 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9668 | rm -f conftest.er1 |
| 9669 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9671 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9672 | { ac_try='test -z "$ac_c_werror_flag" |
| 9673 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9675 | (eval $ac_try) 2>&5 |
| 9676 | ac_status=$? |
| 9677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9678 | (exit $ac_status); }; } && |
| 9679 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9681 | (eval $ac_try) 2>&5 |
| 9682 | ac_status=$? |
| 9683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9684 | (exit $ac_status); }; }; then |
| 9685 | ac_cv_type_long_long=yes |
| 9686 | else |
| 9687 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9689 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9690 | ac_cv_type_long_long=no |
| 9691 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9692 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9693 | fi |
| 9694 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 9695 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 9696 | |
| 9697 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 9698 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 9699 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 9700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9701 | else |
| 9702 | if test "$ac_cv_type_long_long" = yes; then |
| 9703 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 9704 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 9705 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 9706 | # This bug is HP SR number 8606223364. |
| 9707 | if test "$cross_compiling" = yes; then |
| 9708 | # Depending upon the size, compute the lo and hi bounds. |
| 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 (long long))) >= 0)]; |
| 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=0 ac_mid=0 |
| 9749 | while :; do |
| 9750 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9751 | /* confdefs.h. */ |
| 9752 | _ACEOF |
| 9753 | cat confdefs.h >>conftest.$ac_ext |
| 9754 | cat >>conftest.$ac_ext <<_ACEOF |
| 9755 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9756 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9757 | int |
| 9758 | main () |
| 9759 | { |
| 9760 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 9761 | test_array [0] = 0 |
| 9762 | |
| 9763 | ; |
| 9764 | return 0; |
| 9765 | } |
| 9766 | _ACEOF |
| 9767 | rm -f conftest.$ac_objext |
| 9768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9769 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9770 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9771 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9772 | rm -f conftest.er1 |
| 9773 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9775 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9776 | { ac_try='test -z "$ac_c_werror_flag" |
| 9777 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9779 | (eval $ac_try) 2>&5 |
| 9780 | ac_status=$? |
| 9781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9782 | (exit $ac_status); }; } && |
| 9783 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9785 | (eval $ac_try) 2>&5 |
| 9786 | ac_status=$? |
| 9787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9788 | (exit $ac_status); }; }; then |
| 9789 | ac_hi=$ac_mid; break |
| 9790 | else |
| 9791 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9792 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9793 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9794 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9795 | if test $ac_lo -le $ac_mid; then |
| 9796 | ac_lo= ac_hi= |
| 9797 | break |
| 9798 | fi |
| 9799 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9800 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9801 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9802 | done |
| 9803 | else |
| 9804 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9806 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9807 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9808 | /* confdefs.h. */ |
| 9809 | _ACEOF |
| 9810 | cat confdefs.h >>conftest.$ac_ext |
| 9811 | cat >>conftest.$ac_ext <<_ACEOF |
| 9812 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9813 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9814 | int |
| 9815 | main () |
| 9816 | { |
| 9817 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 9818 | test_array [0] = 0 |
| 9819 | |
| 9820 | ; |
| 9821 | return 0; |
| 9822 | } |
| 9823 | _ACEOF |
| 9824 | rm -f conftest.$ac_objext |
| 9825 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9826 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9827 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9828 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9829 | rm -f conftest.er1 |
| 9830 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9832 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9833 | { ac_try='test -z "$ac_c_werror_flag" |
| 9834 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9836 | (eval $ac_try) 2>&5 |
| 9837 | ac_status=$? |
| 9838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9839 | (exit $ac_status); }; } && |
| 9840 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9842 | (eval $ac_try) 2>&5 |
| 9843 | ac_status=$? |
| 9844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9845 | (exit $ac_status); }; }; then |
| 9846 | ac_hi=-1 ac_mid=-1 |
| 9847 | while :; do |
| 9848 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9849 | /* confdefs.h. */ |
| 9850 | _ACEOF |
| 9851 | cat confdefs.h >>conftest.$ac_ext |
| 9852 | cat >>conftest.$ac_ext <<_ACEOF |
| 9853 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9854 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9855 | int |
| 9856 | main () |
| 9857 | { |
| 9858 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 9859 | test_array [0] = 0 |
| 9860 | |
| 9861 | ; |
| 9862 | return 0; |
| 9863 | } |
| 9864 | _ACEOF |
| 9865 | rm -f conftest.$ac_objext |
| 9866 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9867 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9868 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9869 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9870 | rm -f conftest.er1 |
| 9871 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9873 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9874 | { ac_try='test -z "$ac_c_werror_flag" |
| 9875 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9877 | (eval $ac_try) 2>&5 |
| 9878 | ac_status=$? |
| 9879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9880 | (exit $ac_status); }; } && |
| 9881 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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_lo=$ac_mid; break |
| 9888 | else |
| 9889 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9891 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9892 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9893 | if test $ac_mid -le $ac_hi; then |
| 9894 | ac_lo= ac_hi= |
| 9895 | break |
| 9896 | fi |
| 9897 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9898 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9899 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9900 | done |
| 9901 | else |
| 9902 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9903 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9904 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9905 | ac_lo= ac_hi= |
| 9906 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9907 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9908 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9909 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9910 | # Binary search between lo and hi bounds. |
| 9911 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9912 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9913 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9914 | /* confdefs.h. */ |
| 9915 | _ACEOF |
| 9916 | cat confdefs.h >>conftest.$ac_ext |
| 9917 | cat >>conftest.$ac_ext <<_ACEOF |
| 9918 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9919 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9920 | int |
| 9921 | main () |
| 9922 | { |
| 9923 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 9924 | test_array [0] = 0 |
| 9925 | |
| 9926 | ; |
| 9927 | return 0; |
| 9928 | } |
| 9929 | _ACEOF |
| 9930 | rm -f conftest.$ac_objext |
| 9931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9932 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9933 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9934 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9935 | rm -f conftest.er1 |
| 9936 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9938 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9939 | { ac_try='test -z "$ac_c_werror_flag" |
| 9940 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9942 | (eval $ac_try) 2>&5 |
| 9943 | ac_status=$? |
| 9944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9945 | (exit $ac_status); }; } && |
| 9946 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9948 | (eval $ac_try) 2>&5 |
| 9949 | ac_status=$? |
| 9950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9951 | (exit $ac_status); }; }; then |
| 9952 | ac_hi=$ac_mid |
| 9953 | else |
| 9954 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9956 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9957 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9958 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 9959 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9960 | done |
| 9961 | case $ac_lo in |
| 9962 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9963 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 9964 | See \`config.log' for more details." >&5 |
| 9965 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 9966 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9967 | { (exit 1); exit 1; }; } ;; |
| 9968 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9969 | else |
| 9970 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 9971 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 9972 | See \`config.log' for more details." >&5 |
| 9973 | echo "$as_me: error: cannot run test program while cross compiling |
| 9974 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9975 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9976 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9977 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 9978 | /* confdefs.h. */ |
| 9979 | _ACEOF |
| 9980 | cat confdefs.h >>conftest.$ac_ext |
| 9981 | cat >>conftest.$ac_ext <<_ACEOF |
| 9982 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9983 | $ac_includes_default |
| 9984 | long longval () { return (long) (sizeof (long long)); } |
| 9985 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9986 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9987 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9988 | int |
| 9989 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9990 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9991 | |
| 9992 | FILE *f = fopen ("conftest.val", "w"); |
| 9993 | if (! f) |
| 9994 | exit (1); |
| 9995 | if (((long) (sizeof (long long))) < 0) |
| 9996 | { |
| 9997 | long i = longval (); |
| 9998 | if (i != ((long) (sizeof (long long)))) |
| 9999 | exit (1); |
| 10000 | fprintf (f, "%ld\n", i); |
| 10001 | } |
| 10002 | else |
| 10003 | { |
| 10004 | unsigned long i = ulongval (); |
| 10005 | if (i != ((long) (sizeof (long long)))) |
| 10006 | exit (1); |
| 10007 | fprintf (f, "%lu\n", i); |
| 10008 | } |
| 10009 | exit (ferror (f) || fclose (f) != 0); |
| 10010 | |
| 10011 | ; |
| 10012 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10013 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10014 | _ACEOF |
| 10015 | rm -f conftest$ac_exeext |
| 10016 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10017 | (eval $ac_link) 2>&5 |
| 10018 | ac_status=$? |
| 10019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10020 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10022 | (eval $ac_try) 2>&5 |
| 10023 | ac_status=$? |
| 10024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10025 | (exit $ac_status); }; }; then |
| 10026 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10027 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10028 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10029 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10031 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10032 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10033 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 10034 | See \`config.log' for more details." >&5 |
| 10035 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 10036 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10037 | { (exit 1); exit 1; }; } |
| 10038 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10039 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10040 | fi |
| 10041 | fi |
| 10042 | rm -f conftest.val |
| 10043 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10044 | ac_cv_sizeof_long_long=0 |
| 10045 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10046 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10047 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 10048 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 10049 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10050 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10051 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10052 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10053 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10054 | fi |
| 10055 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10056 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 10057 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10058 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10059 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10060 | /* confdefs.h. */ |
| 10061 | _ACEOF |
| 10062 | cat confdefs.h >>conftest.$ac_ext |
| 10063 | cat >>conftest.$ac_ext <<_ACEOF |
| 10064 | /* end confdefs.h. */ |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10065 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10066 | int |
| 10067 | main () |
| 10068 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10069 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10070 | ; |
| 10071 | return 0; |
| 10072 | } |
| 10073 | _ACEOF |
| 10074 | rm -f conftest.$ac_objext |
| 10075 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10076 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10077 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10078 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10079 | rm -f conftest.er1 |
| 10080 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10082 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10083 | { ac_try='test -z "$ac_c_werror_flag" |
| 10084 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10086 | (eval $ac_try) 2>&5 |
| 10087 | ac_status=$? |
| 10088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10089 | (exit $ac_status); }; } && |
| 10090 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10092 | (eval $ac_try) 2>&5 |
| 10093 | ac_status=$? |
| 10094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10095 | (exit $ac_status); }; }; then |
| 10096 | |
| 10097 | |
| 10098 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10099 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10100 | _ACEOF |
| 10101 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 10102 | have_uintptr_t=yes |
| 10103 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10104 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10105 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10107 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10108 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10109 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10110 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 10111 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10112 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10113 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 10114 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 10115 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 10116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10117 | else |
| 10118 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10119 | /* confdefs.h. */ |
| 10120 | _ACEOF |
| 10121 | cat confdefs.h >>conftest.$ac_ext |
| 10122 | cat >>conftest.$ac_ext <<_ACEOF |
| 10123 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10124 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10125 | int |
| 10126 | main () |
| 10127 | { |
| 10128 | if ((uintptr_t *) 0) |
| 10129 | return 0; |
| 10130 | if (sizeof (uintptr_t)) |
| 10131 | return 0; |
| 10132 | ; |
| 10133 | return 0; |
| 10134 | } |
| 10135 | _ACEOF |
| 10136 | rm -f conftest.$ac_objext |
| 10137 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10138 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10139 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10140 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10141 | rm -f conftest.er1 |
| 10142 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10144 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10145 | { ac_try='test -z "$ac_c_werror_flag" |
| 10146 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10148 | (eval $ac_try) 2>&5 |
| 10149 | ac_status=$? |
| 10150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10151 | (exit $ac_status); }; } && |
| 10152 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10154 | (eval $ac_try) 2>&5 |
| 10155 | ac_status=$? |
| 10156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10157 | (exit $ac_status); }; }; then |
| 10158 | ac_cv_type_uintptr_t=yes |
| 10159 | else |
| 10160 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10161 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10162 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10163 | ac_cv_type_uintptr_t=no |
| 10164 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10165 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10166 | fi |
| 10167 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 10168 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 10169 | |
| 10170 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 10171 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 10172 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 10173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10174 | else |
| 10175 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 10176 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 10177 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10178 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10179 | # This bug is HP SR number 8606223364. |
| 10180 | if test "$cross_compiling" = yes; then |
| 10181 | # Depending upon the size, compute the lo and hi bounds. |
| 10182 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10183 | /* confdefs.h. */ |
| 10184 | _ACEOF |
| 10185 | cat confdefs.h >>conftest.$ac_ext |
| 10186 | cat >>conftest.$ac_ext <<_ACEOF |
| 10187 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10188 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10189 | int |
| 10190 | main () |
| 10191 | { |
| 10192 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 10193 | test_array [0] = 0 |
| 10194 | |
| 10195 | ; |
| 10196 | return 0; |
| 10197 | } |
| 10198 | _ACEOF |
| 10199 | rm -f conftest.$ac_objext |
| 10200 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10201 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10202 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10203 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10204 | rm -f conftest.er1 |
| 10205 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10207 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10208 | { ac_try='test -z "$ac_c_werror_flag" |
| 10209 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10211 | (eval $ac_try) 2>&5 |
| 10212 | ac_status=$? |
| 10213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10214 | (exit $ac_status); }; } && |
| 10215 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10217 | (eval $ac_try) 2>&5 |
| 10218 | ac_status=$? |
| 10219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10220 | (exit $ac_status); }; }; then |
| 10221 | ac_lo=0 ac_mid=0 |
| 10222 | while :; do |
| 10223 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10224 | /* confdefs.h. */ |
| 10225 | _ACEOF |
| 10226 | cat confdefs.h >>conftest.$ac_ext |
| 10227 | cat >>conftest.$ac_ext <<_ACEOF |
| 10228 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10229 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10230 | int |
| 10231 | main () |
| 10232 | { |
| 10233 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 10234 | test_array [0] = 0 |
| 10235 | |
| 10236 | ; |
| 10237 | return 0; |
| 10238 | } |
| 10239 | _ACEOF |
| 10240 | rm -f conftest.$ac_objext |
| 10241 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10242 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10243 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10244 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10245 | rm -f conftest.er1 |
| 10246 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10248 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10249 | { ac_try='test -z "$ac_c_werror_flag" |
| 10250 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10252 | (eval $ac_try) 2>&5 |
| 10253 | ac_status=$? |
| 10254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10255 | (exit $ac_status); }; } && |
| 10256 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10258 | (eval $ac_try) 2>&5 |
| 10259 | ac_status=$? |
| 10260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10261 | (exit $ac_status); }; }; then |
| 10262 | ac_hi=$ac_mid; break |
| 10263 | else |
| 10264 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10265 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10266 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10267 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10268 | if test $ac_lo -le $ac_mid; then |
| 10269 | ac_lo= ac_hi= |
| 10270 | break |
| 10271 | fi |
| 10272 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10273 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10274 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10275 | done |
| 10276 | else |
| 10277 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10278 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10279 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10280 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10281 | /* confdefs.h. */ |
| 10282 | _ACEOF |
| 10283 | cat confdefs.h >>conftest.$ac_ext |
| 10284 | cat >>conftest.$ac_ext <<_ACEOF |
| 10285 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10286 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10287 | int |
| 10288 | main () |
| 10289 | { |
| 10290 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 10291 | test_array [0] = 0 |
| 10292 | |
| 10293 | ; |
| 10294 | return 0; |
| 10295 | } |
| 10296 | _ACEOF |
| 10297 | rm -f conftest.$ac_objext |
| 10298 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10299 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10300 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10301 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10302 | rm -f conftest.er1 |
| 10303 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10305 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10306 | { ac_try='test -z "$ac_c_werror_flag" |
| 10307 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10309 | (eval $ac_try) 2>&5 |
| 10310 | ac_status=$? |
| 10311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10312 | (exit $ac_status); }; } && |
| 10313 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10315 | (eval $ac_try) 2>&5 |
| 10316 | ac_status=$? |
| 10317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10318 | (exit $ac_status); }; }; then |
| 10319 | ac_hi=-1 ac_mid=-1 |
| 10320 | while :; do |
| 10321 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10322 | /* confdefs.h. */ |
| 10323 | _ACEOF |
| 10324 | cat confdefs.h >>conftest.$ac_ext |
| 10325 | cat >>conftest.$ac_ext <<_ACEOF |
| 10326 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10327 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10328 | int |
| 10329 | main () |
| 10330 | { |
| 10331 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 10332 | test_array [0] = 0 |
| 10333 | |
| 10334 | ; |
| 10335 | return 0; |
| 10336 | } |
| 10337 | _ACEOF |
| 10338 | rm -f conftest.$ac_objext |
| 10339 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10340 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10341 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10342 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10343 | rm -f conftest.er1 |
| 10344 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10346 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10347 | { ac_try='test -z "$ac_c_werror_flag" |
| 10348 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10350 | (eval $ac_try) 2>&5 |
| 10351 | ac_status=$? |
| 10352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10353 | (exit $ac_status); }; } && |
| 10354 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10356 | (eval $ac_try) 2>&5 |
| 10357 | ac_status=$? |
| 10358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10359 | (exit $ac_status); }; }; then |
| 10360 | ac_lo=$ac_mid; break |
| 10361 | else |
| 10362 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10363 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10364 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10365 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10366 | if test $ac_mid -le $ac_hi; then |
| 10367 | ac_lo= ac_hi= |
| 10368 | break |
| 10369 | fi |
| 10370 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10371 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10372 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10373 | done |
| 10374 | else |
| 10375 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10377 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10378 | ac_lo= ac_hi= |
| 10379 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10380 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10381 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10382 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10383 | # Binary search between lo and hi bounds. |
| 10384 | while test "x$ac_lo" != "x$ac_hi"; do |
| 10385 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 10386 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10387 | /* confdefs.h. */ |
| 10388 | _ACEOF |
| 10389 | cat confdefs.h >>conftest.$ac_ext |
| 10390 | cat >>conftest.$ac_ext <<_ACEOF |
| 10391 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10392 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10393 | int |
| 10394 | main () |
| 10395 | { |
| 10396 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 10397 | test_array [0] = 0 |
| 10398 | |
| 10399 | ; |
| 10400 | return 0; |
| 10401 | } |
| 10402 | _ACEOF |
| 10403 | rm -f conftest.$ac_objext |
| 10404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10405 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10406 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10407 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10408 | rm -f conftest.er1 |
| 10409 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10411 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10412 | { ac_try='test -z "$ac_c_werror_flag" |
| 10413 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10415 | (eval $ac_try) 2>&5 |
| 10416 | ac_status=$? |
| 10417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10418 | (exit $ac_status); }; } && |
| 10419 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10421 | (eval $ac_try) 2>&5 |
| 10422 | ac_status=$? |
| 10423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10424 | (exit $ac_status); }; }; then |
| 10425 | ac_hi=$ac_mid |
| 10426 | else |
| 10427 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10428 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10429 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10430 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 10431 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10432 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10433 | done |
| 10434 | case $ac_lo in |
| 10435 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10436 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| 10437 | See \`config.log' for more details." >&5 |
| 10438 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| 10439 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10440 | { (exit 1); exit 1; }; } ;; |
| 10441 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10442 | else |
| 10443 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10444 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 10445 | See \`config.log' for more details." >&5 |
| 10446 | echo "$as_me: error: cannot run test program while cross compiling |
| 10447 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10448 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10449 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10450 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10451 | /* confdefs.h. */ |
| 10452 | _ACEOF |
| 10453 | cat confdefs.h >>conftest.$ac_ext |
| 10454 | cat >>conftest.$ac_ext <<_ACEOF |
| 10455 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10456 | $ac_includes_default |
| 10457 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 10458 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10459 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10460 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10461 | int |
| 10462 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10463 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10464 | |
| 10465 | FILE *f = fopen ("conftest.val", "w"); |
| 10466 | if (! f) |
| 10467 | exit (1); |
| 10468 | if (((long) (sizeof (uintptr_t))) < 0) |
| 10469 | { |
| 10470 | long i = longval (); |
| 10471 | if (i != ((long) (sizeof (uintptr_t)))) |
| 10472 | exit (1); |
| 10473 | fprintf (f, "%ld\n", i); |
| 10474 | } |
| 10475 | else |
| 10476 | { |
| 10477 | unsigned long i = ulongval (); |
| 10478 | if (i != ((long) (sizeof (uintptr_t)))) |
| 10479 | exit (1); |
| 10480 | fprintf (f, "%lu\n", i); |
| 10481 | } |
| 10482 | exit (ferror (f) || fclose (f) != 0); |
| 10483 | |
| 10484 | ; |
| 10485 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10486 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10487 | _ACEOF |
| 10488 | rm -f conftest$ac_exeext |
| 10489 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10490 | (eval $ac_link) 2>&5 |
| 10491 | ac_status=$? |
| 10492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10493 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10495 | (eval $ac_try) 2>&5 |
| 10496 | ac_status=$? |
| 10497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10498 | (exit $ac_status); }; }; then |
| 10499 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10500 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10501 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10502 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10503 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10504 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10505 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10506 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77 |
| 10507 | See \`config.log' for more details." >&5 |
| 10508 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77 |
| 10509 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10510 | { (exit 1); exit 1; }; } |
| 10511 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10512 | 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] | 10513 | fi |
| 10514 | fi |
| 10515 | rm -f conftest.val |
| 10516 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10517 | ac_cv_sizeof_uintptr_t=0 |
| 10518 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10519 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10520 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 10521 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 10522 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10523 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10524 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10525 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10526 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 10527 | fi |
| 10528 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10529 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10530 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 10531 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 10532 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 10533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10534 | else |
| 10535 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 10536 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10537 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10538 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10539 | /* confdefs.h. */ |
| 10540 | _ACEOF |
| 10541 | cat confdefs.h >>conftest.$ac_ext |
| 10542 | cat >>conftest.$ac_ext <<_ACEOF |
| 10543 | /* end confdefs.h. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10544 | #include <stdio.h> |
| 10545 | #include <sys/types.h> |
| 10546 | main() |
| 10547 | { |
| 10548 | FILE *f=fopen("conftestval", "w"); |
| 10549 | if (!f) exit(1); |
| 10550 | fprintf(f, "%d\n", sizeof(off_t)); |
| 10551 | exit(0); |
| 10552 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10553 | _ACEOF |
| 10554 | rm -f conftest$ac_exeext |
| 10555 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10556 | (eval $ac_link) 2>&5 |
| 10557 | ac_status=$? |
| 10558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10559 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10561 | (eval $ac_try) 2>&5 |
| 10562 | ac_status=$? |
| 10563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10564 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10565 | ac_cv_sizeof_off_t=`cat conftestval` |
| 10566 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10567 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10568 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10569 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10570 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10571 | ( exit $ac_status ) |
| 10572 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10573 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10574 | 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] | 10575 | fi |
| 10576 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10577 | fi |
| 10578 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10579 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 10580 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 10581 | |
| 10582 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10583 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10584 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10585 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10586 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10587 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 10588 | 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] | 10589 | if test "$have_long_long" = yes -a \ |
| 10590 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 10591 | "$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] | 10592 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10593 | cat >>confdefs.h <<\_ACEOF |
| 10594 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 10595 | _ACEOF |
| 10596 | |
| 10597 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10598 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10599 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10600 | echo "$as_me:$LINENO: result: no" >&5 |
| 10601 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 10602 | fi |
| 10603 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10604 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10605 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 10606 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 10607 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 10608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10609 | else |
| 10610 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 10611 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10612 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10613 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10614 | /* confdefs.h. */ |
| 10615 | _ACEOF |
| 10616 | cat confdefs.h >>conftest.$ac_ext |
| 10617 | cat >>conftest.$ac_ext <<_ACEOF |
| 10618 | /* end confdefs.h. */ |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10619 | #include <stdio.h> |
| 10620 | #include <time.h> |
| 10621 | main() |
| 10622 | { |
| 10623 | FILE *f=fopen("conftestval", "w"); |
| 10624 | if (!f) exit(1); |
| 10625 | fprintf(f, "%d\n", sizeof(time_t)); |
| 10626 | exit(0); |
| 10627 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10628 | _ACEOF |
| 10629 | rm -f conftest$ac_exeext |
| 10630 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10631 | (eval $ac_link) 2>&5 |
| 10632 | ac_status=$? |
| 10633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10634 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10636 | (eval $ac_try) 2>&5 |
| 10637 | ac_status=$? |
| 10638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10639 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10640 | ac_cv_sizeof_time_t=`cat conftestval` |
| 10641 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10642 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10643 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10644 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10645 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10646 | ( exit $ac_status ) |
| 10647 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10648 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10649 | 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] | 10650 | fi |
| 10651 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10652 | fi |
| 10653 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10654 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 10655 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 10656 | |
| 10657 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10658 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10659 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 10660 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10661 | |
| 10662 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10663 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10664 | ac_save_cc="$CC" |
| 10665 | if test "$ac_cv_kpthread" = "yes" |
| 10666 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10667 | elif test "$ac_cv_kthread" = "yes" |
| 10668 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10669 | elif test "$ac_cv_pthread" = "yes" |
| 10670 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10671 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10672 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 10673 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10674 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10675 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10676 | /* confdefs.h. */ |
| 10677 | _ACEOF |
| 10678 | cat confdefs.h >>conftest.$ac_ext |
| 10679 | cat >>conftest.$ac_ext <<_ACEOF |
| 10680 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10681 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10682 | int |
| 10683 | main () |
| 10684 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 10685 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10686 | ; |
| 10687 | return 0; |
| 10688 | } |
| 10689 | _ACEOF |
| 10690 | rm -f conftest.$ac_objext |
| 10691 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10692 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10693 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10694 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10695 | rm -f conftest.er1 |
| 10696 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10698 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 10699 | { ac_try='test -z "$ac_c_werror_flag" |
| 10700 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10702 | (eval $ac_try) 2>&5 |
| 10703 | ac_status=$? |
| 10704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10705 | (exit $ac_status); }; } && |
| 10706 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10708 | (eval $ac_try) 2>&5 |
| 10709 | ac_status=$? |
| 10710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10711 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10712 | have_pthread_t=yes |
| 10713 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10714 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10716 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10717 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10718 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10719 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 10720 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10721 | if test "$have_pthread_t" = yes ; then |
| 10722 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10723 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 10724 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 10725 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 10726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10727 | else |
| 10728 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 10729 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10730 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10731 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10732 | /* confdefs.h. */ |
| 10733 | _ACEOF |
| 10734 | cat confdefs.h >>conftest.$ac_ext |
| 10735 | cat >>conftest.$ac_ext <<_ACEOF |
| 10736 | /* end confdefs.h. */ |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10737 | #include <stdio.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10738 | #include <pthread.h> |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10739 | main() |
| 10740 | { |
| 10741 | FILE *f=fopen("conftestval", "w"); |
| 10742 | if (!f) exit(1); |
| 10743 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 10744 | exit(0); |
| 10745 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10746 | _ACEOF |
| 10747 | rm -f conftest$ac_exeext |
| 10748 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10749 | (eval $ac_link) 2>&5 |
| 10750 | ac_status=$? |
| 10751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10752 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10754 | (eval $ac_try) 2>&5 |
| 10755 | ac_status=$? |
| 10756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10757 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10758 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 10759 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10760 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10761 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 10762 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10763 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10764 | ( exit $ac_status ) |
| 10765 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10766 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 10767 | 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] | 10768 | fi |
| 10769 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10770 | fi |
| 10771 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10772 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 10773 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 10774 | |
| 10775 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10776 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10777 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10778 | |
| 10779 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 10780 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10781 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10782 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 10783 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10784 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 10785 | if test "${enable_toolbox_glue+set}" = set; then |
| 10786 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10787 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10788 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10789 | |
| 10790 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10791 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10792 | case $ac_sys_system/$ac_sys_release in |
| 10793 | Darwin/*) |
| 10794 | enable_toolbox_glue="yes";; |
| 10795 | *) |
| 10796 | enable_toolbox_glue="no";; |
| 10797 | esac |
| 10798 | fi |
| 10799 | case "$enable_toolbox_glue" in |
| 10800 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10801 | extra_machdep_objs="Python/mactoolboxglue.o" |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 10802 | extra_undefs="-u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10803 | |
| 10804 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10805 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10806 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10807 | |
| 10808 | ;; |
| 10809 | *) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10810 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 10811 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10812 | ;; |
| 10813 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10814 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 10815 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10816 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10817 | |
| 10818 | case $ac_sys_system/$ac_sys_release in |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 10819 | Darwin/[01234567].*) |
| 10820 | OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" |
| 10821 | ;; |
| 10822 | Darwin/*) |
| 10823 | OTHER_LIBTOOL_OPT="" |
| 10824 | ;; |
| 10825 | esac |
| 10826 | |
| 10827 | |
| 10828 | case $ac_sys_system/$ac_sys_release in |
| 10829 | Darwin/[01234567].*) |
Jack Jansen | 39fd231 | 2006-02-23 15:12:19 +0000 | [diff] [blame] | 10830 | LIBTOOL_CRUFT="-framework System -lcc_dynamic -arch_only `arch`" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 10831 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10832 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 10833 | Darwin/*) |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 10834 | gcc_version=`gcc -v 2>&1 | grep version | cut -d\ -f3` |
| 10835 | if test ${gcc_version} '<' 4.0 |
| 10836 | then |
| 10837 | LIBTOOL_CRUFT="-lcc_dynamic" |
| 10838 | else |
| 10839 | LIBTOOL_CRUFT="" |
| 10840 | fi |
Jack Jansen | 39fd231 | 2006-02-23 15:12:19 +0000 | [diff] [blame] | 10841 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only `arch`" |
Jack Jansen | b36687a | 2004-07-16 08:43:47 +0000 | [diff] [blame] | 10842 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10843 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10844 | esac |
| 10845 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10846 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 10847 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10848 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10849 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 10850 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10851 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10852 | # in the build location. |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10853 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10854 | cat >>confdefs.h <<\_ACEOF |
| 10855 | #define WITH_NEXT_FRAMEWORK 1 |
| 10856 | _ACEOF |
| 10857 | |
| 10858 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10859 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10860 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10861 | echo "$as_me:$LINENO: result: no" >&5 |
| 10862 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10863 | fi |
| 10864 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10865 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 10866 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10867 | case $ac_sys_system/$ac_sys_release in |
| 10868 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10869 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10870 | cat >>confdefs.h <<\_ACEOF |
| 10871 | #define WITH_DYLD 1 |
| 10872 | _ACEOF |
| 10873 | |
| 10874 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 10875 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10876 | ;; |
| 10877 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10878 | echo "$as_me:$LINENO: result: no" >&5 |
| 10879 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10880 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 10881 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10882 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10883 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10884 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10885 | |
| 10886 | |
| 10887 | |
| 10888 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10889 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10890 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10891 | echo "$as_me:$LINENO: checking SO" >&5 |
| 10892 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10893 | if test -z "$SO" |
| 10894 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10895 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 10896 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 10897 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 10898 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10899 | esac |
Martin v. Löwis | 368de8f | 2003-06-14 14:46:38 +0000 | [diff] [blame] | 10900 | else |
| 10901 | # this might also be a termcap variable, see #610332 |
| 10902 | echo |
| 10903 | echo '=====================================================================' |
| 10904 | echo '+ +' |
| 10905 | echo '+ WARNING: You have set SO in your environment. +' |
| 10906 | echo '+ Do you really mean to change the extension for shared libraries? +' |
| 10907 | echo '+ Continuing in 10 seconds to let you to ponder. +' |
| 10908 | echo '+ +' |
| 10909 | echo '=====================================================================' |
| 10910 | sleep 10 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10911 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10912 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 10913 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10914 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 12af048 | 2004-01-31 12:34:17 +0000 | [diff] [blame] | 10915 | # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10916 | # (Shared libraries in this instance are shared modules to be loaded into |
| 10917 | # 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] | 10918 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 10919 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10920 | if test -z "$LDSHARED" |
| 10921 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10922 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10923 | AIX*) |
| 10924 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 10925 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10926 | ;; |
| 10927 | BeOS*) |
| 10928 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 10929 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 10930 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 10931 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 10932 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10933 | SunOS/5*) |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 10934 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 10935 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 10936 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 10937 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 10938 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 10939 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10940 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10941 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10942 | if test "$enable_framework" ; then |
| 10943 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10944 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 10945 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10946 | else |
| 10947 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 10948 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 10949 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10950 | Darwin/1.4*|Darwin/5.*|Darwin/6.*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10951 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10952 | if test "$enable_framework" ; then |
| 10953 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10954 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 10955 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 10956 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 10957 | # No framework, use the Python app as bundle-loader |
| 10958 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 10959 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 10960 | fi ;; |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10961 | Darwin/*) |
| 10962 | # Use -undefined dynamic_lookup whenever possible (10.3 and later). |
| 10963 | # This allows an extension to be used in any Python |
Jack Jansen | be95462 | 2004-12-26 23:07:48 +0000 | [diff] [blame] | 10964 | cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'` |
Jack Jansen | c110f86 | 2005-01-07 10:49:32 +0000 | [diff] [blame] | 10965 | CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} |
Jack Jansen | be95462 | 2004-12-26 23:07:48 +0000 | [diff] [blame] | 10966 | if test ${MACOSX_DEPLOYMENT_TARGET-${cur_target}} '>' 10.2 |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10967 | then |
| 10968 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup' |
| 10969 | BLDSHARED="$LDSHARED" |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10970 | else |
| 10971 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 10972 | if test "$enable_framework" ; then |
| 10973 | # Link against the framework. All externals should be defined. |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 10974 | BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 10975 | LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 10976 | else |
| 10977 | # No framework, use the Python app as bundle-loader |
| 10978 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 10979 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
| 10980 | fi |
| 10981 | fi |
| 10982 | ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 10983 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 10984 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 10985 | OpenBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 10986 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 10987 | then |
Hye-Shik Chang | 3376149 | 2004-10-26 09:53:46 +0000 | [diff] [blame] | 10988 | LDSHARED="$CC -shared ${LDFLAGS}" |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 10989 | else |
| 10990 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 10991 | fi;; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 10992 | NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 10993 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10994 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 10995 | then LDSHARED='$(CC) -shared' |
| 10996 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 10997 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 10998 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 10999 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 11000 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11001 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11002 | *) LDSHARED="ld";; |
| 11003 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11004 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11005 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 11006 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 11007 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11008 | # 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] | 11009 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11010 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 11011 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11012 | if test -z "$CCSHARED" |
| 11013 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 11014 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 11015 | SunOS*) if test "$GCC" = yes; |
| 11016 | then CCSHARED="-fPIC"; |
Martin v. Löwis | d5845ec | 2005-12-30 12:31:38 +0000 | [diff] [blame] | 11017 | else CCSHARED="-xcode=pic32"; |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 11018 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 11019 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 11020 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 11021 | else CCSHARED="+z"; |
| 11022 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11023 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 11024 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 11025 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 11026 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 11027 | if test "$GCC" = "yes" |
| 11028 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11029 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 11030 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 11031 | SCO_SV*) |
| 11032 | if test "$GCC" = "yes" |
| 11033 | then CCSHARED="-fPIC" |
| 11034 | else CCSHARED="-Kpic -belf" |
| 11035 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 11036 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 11037 | IRIX*/6*) case $CC in |
| 11038 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 11039 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 11040 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11041 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11042 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11043 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11044 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 11045 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11046 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11047 | # 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] | 11048 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 11049 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11050 | if test -z "$LINKFORSHARED" |
| 11051 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 11052 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 11053 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 11054 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11055 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 11056 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 11057 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11058 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 11059 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11060 | Darwin/*) |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 11061 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, |
| 11062 | # which is |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11063 | # not used by the core itself but which needs to be in the core so |
| 11064 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 11065 | # -prebind is no longer used, because it actually seems to give a |
| 11066 | # slowdown in stead of a speedup, maybe due to the large number of |
| 11067 | # dynamic loads Python does. |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 11068 | |
| 11069 | LINKFORSHARED="$extra_undefs" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11070 | if test "$enable_framework" |
| 11071 | then |
Jack Jansen | da49e19 | 2005-01-07 13:08:22 +0000 | [diff] [blame] | 11072 | LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11073 | fi |
Anthony Baxter | eef2d3b | 2004-11-06 04:45:33 +0000 | [diff] [blame] | 11074 | LINKFORSHARED="$LINKFORSHARED";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 11075 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 11076 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 11077 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 11078 | FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 11079 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 11080 | then |
| 11081 | LINKFORSHARED="-Wl,--export-dynamic" |
| 11082 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 11083 | SunOS/5*) case $CC in |
| 11084 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 11085 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 11086 | then |
| 11087 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 11088 | fi;; |
| 11089 | esac;; |
Jason Tishler | 3076559 | 2003-09-04 11:04:06 +0000 | [diff] [blame] | 11090 | CYGWIN*) |
| 11091 | if test $enable_shared = "no" |
| 11092 | then |
| 11093 | LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' |
| 11094 | fi;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11095 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11096 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11097 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 11098 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 11099 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11100 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11101 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 11102 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 11103 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 11104 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 11105 | case $ac_sys_system in |
| 11106 | CYGWIN*) |
| 11107 | # Cygwin needs CCSHARED when building extension DLLs |
| 11108 | # but not when building the interpreter DLL. |
| 11109 | CFLAGSFORSHARED='';; |
| 11110 | *) |
| 11111 | CFLAGSFORSHARED='$(CCSHARED)' |
| 11112 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 11113 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11114 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 11115 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 11116 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11117 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 11118 | # library (with --enable-shared). |
| 11119 | # 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] | 11120 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 11121 | # if it is not required, since it creates a dependency of the shared library |
| 11122 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 11123 | # don't need to link LIBS explicitly. The default should be only changed |
| 11124 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11125 | |
| 11126 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 11127 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 11128 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11129 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 11130 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11131 | esac |
| 11132 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 11133 | echo "${ECHO_T}$SHLIBS" >&6 |
| 11134 | |
| 11135 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11136 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11137 | |
| 11138 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 11139 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 11140 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 11141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11142 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11143 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11144 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11145 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11146 | /* confdefs.h. */ |
| 11147 | _ACEOF |
| 11148 | cat confdefs.h >>conftest.$ac_ext |
| 11149 | cat >>conftest.$ac_ext <<_ACEOF |
| 11150 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11151 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11152 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11153 | #ifdef __cplusplus |
| 11154 | extern "C" |
| 11155 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11156 | /* 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] | 11157 | builtin and then its argument prototype would still apply. */ |
| 11158 | char dlopen (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11159 | int |
| 11160 | main () |
| 11161 | { |
| 11162 | dlopen (); |
| 11163 | ; |
| 11164 | return 0; |
| 11165 | } |
| 11166 | _ACEOF |
| 11167 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11168 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11169 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11170 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11171 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11172 | rm -f conftest.er1 |
| 11173 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11175 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11176 | { ac_try='test -z "$ac_c_werror_flag" |
| 11177 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11179 | (eval $ac_try) 2>&5 |
| 11180 | ac_status=$? |
| 11181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11182 | (exit $ac_status); }; } && |
| 11183 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11185 | (eval $ac_try) 2>&5 |
| 11186 | ac_status=$? |
| 11187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11188 | (exit $ac_status); }; }; then |
| 11189 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11190 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11191 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11192 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11193 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11194 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11195 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11196 | rm -f conftest.err conftest.$ac_objext \ |
| 11197 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11198 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11199 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11200 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11201 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 11202 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 11203 | cat >>confdefs.h <<_ACEOF |
| 11204 | #define HAVE_LIBDL 1 |
| 11205 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11206 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11207 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11208 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11209 | fi |
| 11210 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11211 | |
| 11212 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 11213 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 11214 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 11215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11216 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11217 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11218 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11219 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11220 | /* confdefs.h. */ |
| 11221 | _ACEOF |
| 11222 | cat confdefs.h >>conftest.$ac_ext |
| 11223 | cat >>conftest.$ac_ext <<_ACEOF |
| 11224 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11225 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11226 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11227 | #ifdef __cplusplus |
| 11228 | extern "C" |
| 11229 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11230 | /* 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] | 11231 | builtin and then its argument prototype would still apply. */ |
| 11232 | char shl_load (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11233 | int |
| 11234 | main () |
| 11235 | { |
| 11236 | shl_load (); |
| 11237 | ; |
| 11238 | return 0; |
| 11239 | } |
| 11240 | _ACEOF |
| 11241 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11242 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11243 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11244 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11245 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11246 | rm -f conftest.er1 |
| 11247 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11249 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11250 | { ac_try='test -z "$ac_c_werror_flag" |
| 11251 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11253 | (eval $ac_try) 2>&5 |
| 11254 | ac_status=$? |
| 11255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11256 | (exit $ac_status); }; } && |
| 11257 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11259 | (eval $ac_try) 2>&5 |
| 11260 | ac_status=$? |
| 11261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11262 | (exit $ac_status); }; }; then |
| 11263 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11264 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11265 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11266 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11267 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11268 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11269 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11270 | rm -f conftest.err conftest.$ac_objext \ |
| 11271 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11272 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11273 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11274 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 11275 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 11276 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 11277 | cat >>confdefs.h <<_ACEOF |
| 11278 | #define HAVE_LIBDLD 1 |
| 11279 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11280 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11281 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11282 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11283 | fi |
| 11284 | # Dynamic linking for HP-UX |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11285 | |
| 11286 | # only check for sem_ini if thread support is requested |
| 11287 | if test "$with_threads" = "yes" -o -z "$with_threads"; then |
| 11288 | 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] | 11289 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6 |
| 11290 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 11292 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11293 | ac_func_search_save_LIBS=$LIBS |
| 11294 | ac_cv_search_sem_init=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11295 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11296 | /* confdefs.h. */ |
| 11297 | _ACEOF |
| 11298 | cat confdefs.h >>conftest.$ac_ext |
| 11299 | cat >>conftest.$ac_ext <<_ACEOF |
| 11300 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11301 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 11302 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11303 | #ifdef __cplusplus |
| 11304 | extern "C" |
| 11305 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 11306 | /* 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] | 11307 | builtin and then its argument prototype would still apply. */ |
| 11308 | char sem_init (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11309 | int |
| 11310 | main () |
| 11311 | { |
| 11312 | sem_init (); |
| 11313 | ; |
| 11314 | return 0; |
| 11315 | } |
| 11316 | _ACEOF |
| 11317 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11318 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11319 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11320 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11321 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11322 | rm -f conftest.er1 |
| 11323 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11325 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11326 | { ac_try='test -z "$ac_c_werror_flag" |
| 11327 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11329 | (eval $ac_try) 2>&5 |
| 11330 | ac_status=$? |
| 11331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11332 | (exit $ac_status); }; } && |
| 11333 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11335 | (eval $ac_try) 2>&5 |
| 11336 | ac_status=$? |
| 11337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11338 | (exit $ac_status); }; }; then |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11339 | ac_cv_search_sem_init="none required" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 11340 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11341 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11343 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 11344 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11345 | rm -f conftest.err conftest.$ac_objext \ |
| 11346 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11347 | if test "$ac_cv_search_sem_init" = no; then |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 11348 | for ac_lib in pthread rt posix4; do |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11349 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 11350 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11351 | /* confdefs.h. */ |
| 11352 | _ACEOF |
| 11353 | cat confdefs.h >>conftest.$ac_ext |
| 11354 | cat >>conftest.$ac_ext <<_ACEOF |
| 11355 | /* end confdefs.h. */ |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11356 | |
| 11357 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11358 | #ifdef __cplusplus |
| 11359 | extern "C" |
| 11360 | #endif |
| 11361 | /* We use char because int might match the return type of a gcc2 |
| 11362 | builtin and then its argument prototype would still apply. */ |
| 11363 | char sem_init (); |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11364 | int |
| 11365 | main () |
| 11366 | { |
| 11367 | sem_init (); |
| 11368 | ; |
| 11369 | return 0; |
| 11370 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11371 | _ACEOF |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11372 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11373 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11374 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11375 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11376 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11377 | rm -f conftest.er1 |
| 11378 | cat conftest.err >&5 |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11380 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11381 | { ac_try='test -z "$ac_c_werror_flag" |
| 11382 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11384 | (eval $ac_try) 2>&5 |
| 11385 | ac_status=$? |
| 11386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11387 | (exit $ac_status); }; } && |
| 11388 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11390 | (eval $ac_try) 2>&5 |
| 11391 | ac_status=$? |
| 11392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11393 | (exit $ac_status); }; }; then |
| 11394 | ac_cv_search_sem_init="-l$ac_lib" |
| 11395 | break |
| 11396 | else |
| 11397 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11398 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11399 | |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11400 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11401 | rm -f conftest.err conftest.$ac_objext \ |
| 11402 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 11403 | done |
| 11404 | fi |
| 11405 | LIBS=$ac_func_search_save_LIBS |
| 11406 | fi |
| 11407 | echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 11408 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6 |
| 11409 | if test "$ac_cv_search_sem_init" != no; then |
| 11410 | 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] | 11411 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 11412 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 11413 | # 'Real Time' functions on Solaris |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11414 | # posix4 on Solaris 2.6 |
| 11415 | # pthread (first!) on Linux |
| 11416 | fi |
| 11417 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11418 | # check if we need libintl for locale functions |
| 11419 | echo "$as_me:$LINENO: checking for textdomain in -lintl" >&5 |
| 11420 | echo $ECHO_N "checking for textdomain in -lintl... $ECHO_C" >&6 |
| 11421 | if test "${ac_cv_lib_intl_textdomain+set}" = set; then |
| 11422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11423 | else |
| 11424 | ac_check_lib_save_LIBS=$LIBS |
| 11425 | LIBS="-lintl $LIBS" |
| 11426 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11427 | /* confdefs.h. */ |
| 11428 | _ACEOF |
| 11429 | cat confdefs.h >>conftest.$ac_ext |
| 11430 | cat >>conftest.$ac_ext <<_ACEOF |
| 11431 | /* end confdefs.h. */ |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11432 | |
| 11433 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11434 | #ifdef __cplusplus |
| 11435 | extern "C" |
| 11436 | #endif |
| 11437 | /* We use char because int might match the return type of a gcc2 |
| 11438 | builtin and then its argument prototype would still apply. */ |
| 11439 | char textdomain (); |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11440 | int |
| 11441 | main () |
| 11442 | { |
| 11443 | textdomain (); |
| 11444 | ; |
| 11445 | return 0; |
| 11446 | } |
| 11447 | _ACEOF |
| 11448 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11449 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11450 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11451 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11452 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11453 | rm -f conftest.er1 |
| 11454 | cat conftest.err >&5 |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11456 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11457 | { ac_try='test -z "$ac_c_werror_flag" |
| 11458 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11460 | (eval $ac_try) 2>&5 |
| 11461 | ac_status=$? |
| 11462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11463 | (exit $ac_status); }; } && |
| 11464 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11466 | (eval $ac_try) 2>&5 |
| 11467 | ac_status=$? |
| 11468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11469 | (exit $ac_status); }; }; then |
| 11470 | ac_cv_lib_intl_textdomain=yes |
| 11471 | else |
| 11472 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11473 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11474 | |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11475 | ac_cv_lib_intl_textdomain=no |
| 11476 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11477 | rm -f conftest.err conftest.$ac_objext \ |
| 11478 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 19d1734 | 2003-06-14 21:03:05 +0000 | [diff] [blame] | 11479 | LIBS=$ac_check_lib_save_LIBS |
| 11480 | fi |
| 11481 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_textdomain" >&5 |
| 11482 | echo "${ECHO_T}$ac_cv_lib_intl_textdomain" >&6 |
| 11483 | if test $ac_cv_lib_intl_textdomain = yes; then |
| 11484 | |
| 11485 | cat >>confdefs.h <<\_ACEOF |
| 11486 | #define WITH_LIBINTL 1 |
| 11487 | _ACEOF |
| 11488 | |
| 11489 | fi |
| 11490 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11491 | |
| 11492 | # checks for system dependent C++ extensions support |
| 11493 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11494 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 11495 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 11496 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11497 | /* confdefs.h. */ |
| 11498 | _ACEOF |
| 11499 | cat confdefs.h >>conftest.$ac_ext |
| 11500 | cat >>conftest.$ac_ext <<_ACEOF |
| 11501 | /* end confdefs.h. */ |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11502 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11503 | int |
| 11504 | main () |
| 11505 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11506 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11507 | ; |
| 11508 | return 0; |
| 11509 | } |
| 11510 | _ACEOF |
| 11511 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11512 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11513 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11514 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11515 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11516 | rm -f conftest.er1 |
| 11517 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11519 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11520 | { ac_try='test -z "$ac_c_werror_flag" |
| 11521 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11523 | (eval $ac_try) 2>&5 |
| 11524 | ac_status=$? |
| 11525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11526 | (exit $ac_status); }; } && |
| 11527 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11529 | (eval $ac_try) 2>&5 |
| 11530 | ac_status=$? |
| 11531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11532 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11533 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11534 | cat >>confdefs.h <<\_ACEOF |
| 11535 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 11536 | _ACEOF |
| 11537 | |
| 11538 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11539 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11540 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11541 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11542 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11543 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11544 | echo "$as_me:$LINENO: result: no" >&5 |
| 11545 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11546 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11547 | rm -f conftest.err conftest.$ac_objext \ |
| 11548 | conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 11549 | *) ;; |
| 11550 | esac |
| 11551 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 11552 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11553 | # BeOS' sockets are stashed in libnet. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11554 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 11555 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 11556 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 11557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11558 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11559 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11560 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11561 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11562 | /* confdefs.h. */ |
| 11563 | _ACEOF |
| 11564 | cat confdefs.h >>conftest.$ac_ext |
| 11565 | cat >>conftest.$ac_ext <<_ACEOF |
| 11566 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11567 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11568 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11569 | #ifdef __cplusplus |
| 11570 | extern "C" |
| 11571 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11572 | /* 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] | 11573 | builtin and then its argument prototype would still apply. */ |
| 11574 | char t_open (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11575 | int |
| 11576 | main () |
| 11577 | { |
| 11578 | t_open (); |
| 11579 | ; |
| 11580 | return 0; |
| 11581 | } |
| 11582 | _ACEOF |
| 11583 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11584 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11585 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11586 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11587 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11588 | rm -f conftest.er1 |
| 11589 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11591 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11592 | { ac_try='test -z "$ac_c_werror_flag" |
| 11593 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11595 | (eval $ac_try) 2>&5 |
| 11596 | ac_status=$? |
| 11597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11598 | (exit $ac_status); }; } && |
| 11599 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11601 | (eval $ac_try) 2>&5 |
| 11602 | ac_status=$? |
| 11603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11604 | (exit $ac_status); }; }; then |
| 11605 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11606 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11607 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11609 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11610 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11611 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11612 | rm -f conftest.err conftest.$ac_objext \ |
| 11613 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11614 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11615 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11616 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 11617 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 11618 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11619 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 11620 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 11621 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11622 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 11623 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 11624 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 11625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11626 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11627 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11628 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11629 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11630 | /* confdefs.h. */ |
| 11631 | _ACEOF |
| 11632 | cat confdefs.h >>conftest.$ac_ext |
| 11633 | cat >>conftest.$ac_ext <<_ACEOF |
| 11634 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11635 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11636 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11637 | #ifdef __cplusplus |
| 11638 | extern "C" |
| 11639 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11640 | /* 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] | 11641 | builtin and then its argument prototype would still apply. */ |
| 11642 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11643 | int |
| 11644 | main () |
| 11645 | { |
| 11646 | socket (); |
| 11647 | ; |
| 11648 | return 0; |
| 11649 | } |
| 11650 | _ACEOF |
| 11651 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11652 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11653 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11654 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11655 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11656 | rm -f conftest.er1 |
| 11657 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11659 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11660 | { ac_try='test -z "$ac_c_werror_flag" |
| 11661 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11663 | (eval $ac_try) 2>&5 |
| 11664 | ac_status=$? |
| 11665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11666 | (exit $ac_status); }; } && |
| 11667 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11669 | (eval $ac_try) 2>&5 |
| 11670 | ac_status=$? |
| 11671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11672 | (exit $ac_status); }; }; then |
| 11673 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11674 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11675 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11676 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11677 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11678 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11679 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11680 | rm -f conftest.err conftest.$ac_objext \ |
| 11681 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11682 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11683 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11684 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 11685 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 11686 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11687 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11688 | fi |
| 11689 | # SVR4 sockets |
Skip Montanaro | b9949db | 2004-01-17 04:04:13 +0000 | [diff] [blame] | 11690 | |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 11691 | case "$ac_sys_system" in |
| 11692 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11693 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 11694 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 11695 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 11696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11697 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11698 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11699 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11700 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11701 | /* confdefs.h. */ |
| 11702 | _ACEOF |
| 11703 | cat confdefs.h >>conftest.$ac_ext |
| 11704 | cat >>conftest.$ac_ext <<_ACEOF |
| 11705 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11706 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11707 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11708 | #ifdef __cplusplus |
| 11709 | extern "C" |
| 11710 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11711 | /* 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] | 11712 | builtin and then its argument prototype would still apply. */ |
| 11713 | char socket (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11714 | int |
| 11715 | main () |
| 11716 | { |
| 11717 | socket (); |
| 11718 | ; |
| 11719 | return 0; |
| 11720 | } |
| 11721 | _ACEOF |
| 11722 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11723 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11724 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11725 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11726 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11727 | rm -f conftest.er1 |
| 11728 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11730 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11731 | { ac_try='test -z "$ac_c_werror_flag" |
| 11732 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11734 | (eval $ac_try) 2>&5 |
| 11735 | ac_status=$? |
| 11736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11737 | (exit $ac_status); }; } && |
| 11738 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11740 | (eval $ac_try) 2>&5 |
| 11741 | ac_status=$? |
| 11742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11743 | (exit $ac_status); }; }; then |
| 11744 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11745 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11746 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11747 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11748 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11749 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11750 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11751 | rm -f conftest.err conftest.$ac_objext \ |
| 11752 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11753 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 11754 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11755 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 11756 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 11757 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11758 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11759 | fi |
| 11760 | # BeOS |
| 11761 | ;; |
| 11762 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 11763 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11764 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 11765 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 11766 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 11767 | # Check whether --with-libs or --without-libs was given. |
| 11768 | if test "${with_libs+set}" = set; then |
| 11769 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11770 | |
| 11771 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11772 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 11773 | LIBS="$withval $LIBS" |
| 11774 | |
| 11775 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11776 | echo "$as_me:$LINENO: result: no" >&5 |
| 11777 | echo "${ECHO_T}no" >&6 |
| 11778 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11779 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11780 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11781 | |
| 11782 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11783 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 11784 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 11785 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11786 | # Check whether --with-signal-module or --without-signal-module was given. |
| 11787 | if test "${with_signal_module+set}" = set; then |
| 11788 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11789 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11790 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11791 | |
| 11792 | if test -z "$with_signal_module" |
| 11793 | then with_signal_module="yes" |
| 11794 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11795 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 11796 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 11797 | |
| 11798 | if test "${with_signal_module}" = "yes"; then |
| 11799 | USE_SIGNAL_MODULE="" |
| 11800 | SIGNAL_OBJS="" |
| 11801 | else |
| 11802 | USE_SIGNAL_MODULE="#" |
| 11803 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 11804 | fi |
| 11805 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 11806 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 11807 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11808 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 11809 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11810 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 11811 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 11812 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11813 | |
| 11814 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 11815 | if test "${with_dec_threads+set}" = set; then |
| 11816 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11817 | |
| 11818 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11819 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11820 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 11821 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11822 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 11823 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11824 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11825 | echo "$as_me:$LINENO: result: no" >&5 |
| 11826 | echo "${ECHO_T}no" >&6 |
| 11827 | fi; |
| 11828 | |
| 11829 | # Templates for things AC_DEFINEd more than once. |
| 11830 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11831 | |
| 11832 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11833 | |
| 11834 | |
| 11835 | |
| 11836 | |
| 11837 | |
| 11838 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 11839 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 11840 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11841 | # Check whether --with-threads or --without-threads was given. |
| 11842 | if test "${with_threads+set}" = set; then |
| 11843 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11844 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11845 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 11846 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11847 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11848 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11849 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11850 | if test "${with_thread+set}" = set; then |
| 11851 | withval="$with_thread" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11852 | with_threads=$with_thread |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11853 | fi; |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11854 | |
| 11855 | if test -z "$with_threads" |
| 11856 | then with_threads="yes" |
| 11857 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11858 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 11859 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11860 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11861 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 11862 | if test "$with_threads" = "no" |
| 11863 | then |
| 11864 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11865 | elif test "$ac_cv_pthread_is_default" = yes |
| 11866 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11867 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11868 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11869 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11870 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11871 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11872 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11873 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11874 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11875 | |
| 11876 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11877 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11878 | elif test "$ac_cv_kpthread" = "yes" |
| 11879 | then |
| 11880 | CC="$CC -Kpthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11881 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 11882 | CXX="$CXX -Kpthread" |
| 11883 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11884 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 11885 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11886 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 11887 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11888 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11889 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 11890 | elif test "$ac_cv_kthread" = "yes" |
| 11891 | then |
| 11892 | CC="$CC -Kthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11893 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 11894 | CXX="$CXX -Kthread" |
| 11895 | fi |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 11896 | cat >>confdefs.h <<\_ACEOF |
| 11897 | #define WITH_THREAD 1 |
| 11898 | _ACEOF |
| 11899 | |
| 11900 | posix_threads=yes |
| 11901 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11902 | elif test "$ac_cv_pthread" = "yes" |
| 11903 | then |
| 11904 | CC="$CC -pthread" |
Martin v. Löwis | 519adae | 2003-09-20 10:47:47 +0000 | [diff] [blame] | 11905 | if test "$ac_cv_cxx_thread" = "yes"; then |
| 11906 | CXX="$CXX -pthread" |
| 11907 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11908 | cat >>confdefs.h <<\_ACEOF |
| 11909 | #define WITH_THREAD 1 |
| 11910 | _ACEOF |
| 11911 | |
| 11912 | posix_threads=yes |
| 11913 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11914 | else |
| 11915 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 11916 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 11917 | fi |
| 11918 | if test ! -z "$withval" -a -d "$withval" |
| 11919 | then LDFLAGS="$LDFLAGS -L$withval" |
| 11920 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11921 | |
| 11922 | # According to the POSIX spec, a pthreads implementation must |
Matthias Klose | a2542be | 2004-08-16 11:35:51 +0000 | [diff] [blame] | 11923 | # define _POSIX_THREADS in unistd.h. Some apparently don't |
| 11924 | # (e.g. gnu pth with pthread emulation) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11925 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 11926 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 11927 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11928 | /* confdefs.h. */ |
| 11929 | _ACEOF |
| 11930 | cat confdefs.h >>conftest.$ac_ext |
| 11931 | cat >>conftest.$ac_ext <<_ACEOF |
| 11932 | /* end confdefs.h. */ |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 11933 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11934 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 11935 | #ifdef _POSIX_THREADS |
| 11936 | yes |
| 11937 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11938 | |
| 11939 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11940 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11941 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11942 | unistd_defines_pthreads=yes |
| 11943 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11944 | unistd_defines_pthreads=no |
| 11945 | fi |
| 11946 | rm -f conftest* |
| 11947 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11948 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 11949 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11950 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11951 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 11952 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11953 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 11954 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11955 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 11956 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 11957 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 11958 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 11959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11960 | fi |
| 11961 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 11962 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11963 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11964 | # Is the header compilable? |
| 11965 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 11966 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 11967 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 11968 | /* confdefs.h. */ |
| 11969 | _ACEOF |
| 11970 | cat confdefs.h >>conftest.$ac_ext |
| 11971 | cat >>conftest.$ac_ext <<_ACEOF |
| 11972 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11973 | $ac_includes_default |
| 11974 | #include <cthreads.h> |
| 11975 | _ACEOF |
| 11976 | rm -f conftest.$ac_objext |
| 11977 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11978 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11979 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11980 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11981 | rm -f conftest.er1 |
| 11982 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11984 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 11985 | { ac_try='test -z "$ac_c_werror_flag" |
| 11986 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 11987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11988 | (eval $ac_try) 2>&5 |
| 11989 | ac_status=$? |
| 11990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11991 | (exit $ac_status); }; } && |
| 11992 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11994 | (eval $ac_try) 2>&5 |
| 11995 | ac_status=$? |
| 11996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11997 | (exit $ac_status); }; }; then |
| 11998 | ac_header_compiler=yes |
| 11999 | else |
| 12000 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12001 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12002 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12003 | ac_header_compiler=no |
| 12004 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12005 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12006 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12007 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12008 | |
| 12009 | # Is the header present? |
| 12010 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 12011 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 12012 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12013 | /* confdefs.h. */ |
| 12014 | _ACEOF |
| 12015 | cat confdefs.h >>conftest.$ac_ext |
| 12016 | cat >>conftest.$ac_ext <<_ACEOF |
| 12017 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12018 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12019 | _ACEOF |
| 12020 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12021 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12022 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12023 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12024 | rm -f conftest.er1 |
| 12025 | cat conftest.err >&5 |
| 12026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12027 | (exit $ac_status); } >/dev/null; then |
| 12028 | if test -s conftest.err; then |
| 12029 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12030 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12031 | else |
| 12032 | ac_cpp_err= |
| 12033 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12034 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12035 | ac_cpp_err=yes |
| 12036 | fi |
| 12037 | if test -z "$ac_cpp_err"; then |
| 12038 | ac_header_preproc=yes |
| 12039 | else |
| 12040 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12041 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12042 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12043 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12044 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12045 | rm -f conftest.err conftest.$ac_ext |
| 12046 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12047 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 12048 | |
| 12049 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12050 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12051 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12052 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12053 | 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] | 12054 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the compiler's result" >&5 |
| 12055 | echo "$as_me: WARNING: cthreads.h: proceeding with the compiler's result" >&2;} |
| 12056 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12057 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12058 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12059 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 12060 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12061 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 12062 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 12063 | { echo "$as_me:$LINENO: WARNING: cthreads.h: see the Autoconf documentation" >&5 |
| 12064 | echo "$as_me: WARNING: cthreads.h: see the Autoconf documentation" >&2;} |
| 12065 | { echo "$as_me:$LINENO: WARNING: cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 12066 | 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] | 12067 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 12068 | 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] | 12069 | { echo "$as_me:$LINENO: WARNING: cthreads.h: in the future, the compiler will take precedence" >&5 |
| 12070 | 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] | 12071 | ( |
| 12072 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 12073 | ## ------------------------------------------------ ## |
| 12074 | ## Report this to http://www.python.org/python-bugs ## |
| 12075 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12076 | _ASBOX |
| 12077 | ) | |
| 12078 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12079 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12080 | esac |
| 12081 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 12082 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 12083 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 12084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12085 | else |
| 12086 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12087 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12088 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 12089 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 12090 | |
| 12091 | fi |
| 12092 | if test $ac_cv_header_cthreads_h = yes; then |
| 12093 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12094 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12095 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12096 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12097 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12098 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12099 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12100 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12101 | |
| 12102 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12103 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12104 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12105 | |
| 12106 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12107 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12108 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12109 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12110 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 12111 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 12112 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 12113 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 12114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12115 | fi |
| 12116 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 12117 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12118 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12119 | # Is the header compilable? |
| 12120 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 12121 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 12122 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12123 | /* confdefs.h. */ |
| 12124 | _ACEOF |
| 12125 | cat confdefs.h >>conftest.$ac_ext |
| 12126 | cat >>conftest.$ac_ext <<_ACEOF |
| 12127 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12128 | $ac_includes_default |
| 12129 | #include <mach/cthreads.h> |
| 12130 | _ACEOF |
| 12131 | rm -f conftest.$ac_objext |
| 12132 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12133 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12134 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12135 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12136 | rm -f conftest.er1 |
| 12137 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12139 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12140 | { ac_try='test -z "$ac_c_werror_flag" |
| 12141 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12143 | (eval $ac_try) 2>&5 |
| 12144 | ac_status=$? |
| 12145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12146 | (exit $ac_status); }; } && |
| 12147 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12149 | (eval $ac_try) 2>&5 |
| 12150 | ac_status=$? |
| 12151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12152 | (exit $ac_status); }; }; then |
| 12153 | ac_header_compiler=yes |
| 12154 | else |
| 12155 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12156 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12157 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12158 | ac_header_compiler=no |
| 12159 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12160 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12161 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12162 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12163 | |
| 12164 | # Is the header present? |
| 12165 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 12166 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 12167 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12168 | /* confdefs.h. */ |
| 12169 | _ACEOF |
| 12170 | cat confdefs.h >>conftest.$ac_ext |
| 12171 | cat >>conftest.$ac_ext <<_ACEOF |
| 12172 | /* end confdefs.h. */ |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12173 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12174 | _ACEOF |
| 12175 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12176 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12177 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12178 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12179 | rm -f conftest.er1 |
| 12180 | cat conftest.err >&5 |
| 12181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12182 | (exit $ac_status); } >/dev/null; then |
| 12183 | if test -s conftest.err; then |
| 12184 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12185 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12186 | else |
| 12187 | ac_cpp_err= |
| 12188 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12189 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12190 | ac_cpp_err=yes |
| 12191 | fi |
| 12192 | if test -z "$ac_cpp_err"; then |
| 12193 | ac_header_preproc=yes |
| 12194 | else |
| 12195 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12196 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12197 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12198 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12199 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12200 | rm -f conftest.err conftest.$ac_ext |
| 12201 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12202 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 12203 | |
| 12204 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12205 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12206 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12207 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12208 | 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] | 12209 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&5 |
| 12210 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the compiler's result" >&2;} |
| 12211 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12212 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12213 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12214 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 12215 | 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] | 12216 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 12217 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 12218 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: see the Autoconf documentation" >&5 |
| 12219 | echo "$as_me: WARNING: mach/cthreads.h: see the Autoconf documentation" >&2;} |
| 12220 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 12221 | 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] | 12222 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 12223 | 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] | 12224 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: in the future, the compiler will take precedence" >&5 |
| 12225 | 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] | 12226 | ( |
| 12227 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 12228 | ## ------------------------------------------------ ## |
| 12229 | ## Report this to http://www.python.org/python-bugs ## |
| 12230 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12231 | _ASBOX |
| 12232 | ) | |
| 12233 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12234 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12235 | esac |
| 12236 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 12237 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 12238 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 12239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12240 | else |
| 12241 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12242 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12243 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 12244 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 12245 | |
| 12246 | fi |
| 12247 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 12248 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12249 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12250 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12251 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12252 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12253 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12254 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12255 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12256 | |
| 12257 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12258 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12259 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 12260 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12261 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12262 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 12263 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12264 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 12265 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 12266 | |
| 12267 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 12268 | if test "${with_pth+set}" = set; then |
| 12269 | withval="$with_pth" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 12270 | echo "$as_me:$LINENO: result: $withval" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12271 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 12272 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12273 | #define WITH_THREAD 1 |
| 12274 | _ACEOF |
| 12275 | |
| 12276 | |
| 12277 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 12278 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12279 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 12280 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 12281 | LIBS="-lpth $LIBS" |
| 12282 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 12283 | else |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 12284 | echo "$as_me:$LINENO: result: no" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12285 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 12286 | |
| 12287 | # Just looking for pthread_create in libpthread is not enough: |
| 12288 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 12289 | # So we really have to include pthread.h, and then link. |
| 12290 | _libs=$LIBS |
| 12291 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12292 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 12293 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 12294 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12295 | /* confdefs.h. */ |
| 12296 | _ACEOF |
| 12297 | cat confdefs.h >>conftest.$ac_ext |
| 12298 | cat >>conftest.$ac_ext <<_ACEOF |
| 12299 | /* end confdefs.h. */ |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 12300 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 12301 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 12302 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12303 | int |
| 12304 | main () |
| 12305 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 12306 | |
| 12307 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12308 | ; |
| 12309 | return 0; |
| 12310 | } |
| 12311 | _ACEOF |
| 12312 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12313 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12314 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12315 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12316 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12317 | rm -f conftest.er1 |
| 12318 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12320 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12321 | { ac_try='test -z "$ac_c_werror_flag" |
| 12322 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +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); }; } && |
| 12328 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12330 | (eval $ac_try) 2>&5 |
| 12331 | ac_status=$? |
| 12332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12333 | (exit $ac_status); }; }; then |
| 12334 | |
| 12335 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12336 | echo "${ECHO_T}yes" >&6 |
| 12337 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 12338 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12339 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 12340 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 12341 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12342 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 12343 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12344 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12345 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12346 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12347 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 12348 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12349 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 12350 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 12351 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 12352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12353 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12354 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12355 | /* confdefs.h. */ |
| 12356 | _ACEOF |
| 12357 | cat confdefs.h >>conftest.$ac_ext |
| 12358 | cat >>conftest.$ac_ext <<_ACEOF |
| 12359 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 12360 | /* Define pthread_detach to an innocuous variant, in case <limits.h> declares pthread_detach. |
| 12361 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12362 | #define pthread_detach innocuous_pthread_detach |
| 12363 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12364 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12365 | which can conflict with char pthread_detach (); below. |
| 12366 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 12367 | <limits.h> exists even on freestanding compilers. */ |
| 12368 | |
| 12369 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12370 | # include <limits.h> |
| 12371 | #else |
| 12372 | # include <assert.h> |
| 12373 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 12374 | |
| 12375 | #undef pthread_detach |
| 12376 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12377 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12378 | #ifdef __cplusplus |
| 12379 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12380 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12381 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12382 | /* 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] | 12383 | builtin and then its argument prototype would still apply. */ |
| 12384 | char pthread_detach (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12385 | /* The GNU C library defines this for functions which it implements |
| 12386 | to always fail with ENOSYS. Some functions are actually named |
| 12387 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 12388 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12389 | choke me |
| 12390 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12391 | char (*f) () = pthread_detach; |
| 12392 | #endif |
| 12393 | #ifdef __cplusplus |
| 12394 | } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12395 | #endif |
| 12396 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12397 | int |
| 12398 | main () |
| 12399 | { |
| 12400 | return f != pthread_detach; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12401 | ; |
| 12402 | return 0; |
| 12403 | } |
| 12404 | _ACEOF |
| 12405 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12406 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12407 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12408 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12410 | rm -f conftest.er1 |
| 12411 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12413 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12414 | { ac_try='test -z "$ac_c_werror_flag" |
| 12415 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12417 | (eval $ac_try) 2>&5 |
| 12418 | ac_status=$? |
| 12419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12420 | (exit $ac_status); }; } && |
| 12421 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12423 | (eval $ac_try) 2>&5 |
| 12424 | ac_status=$? |
| 12425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12426 | (exit $ac_status); }; }; then |
| 12427 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12428 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12429 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12430 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12431 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12432 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12433 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12434 | rm -f conftest.err conftest.$ac_objext \ |
| 12435 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12436 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12437 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 12438 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 12439 | if test $ac_cv_func_pthread_detach = yes; then |
| 12440 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12441 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12442 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12443 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 12444 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12445 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12446 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 12447 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12448 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 12449 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 12450 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 12451 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 12452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12453 | fi |
| 12454 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 12455 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 12456 | else |
| 12457 | # Is the header compilable? |
| 12458 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 12459 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 12460 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12461 | /* confdefs.h. */ |
| 12462 | _ACEOF |
| 12463 | cat confdefs.h >>conftest.$ac_ext |
| 12464 | cat >>conftest.$ac_ext <<_ACEOF |
| 12465 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12466 | $ac_includes_default |
| 12467 | #include <atheos/threads.h> |
| 12468 | _ACEOF |
| 12469 | rm -f conftest.$ac_objext |
| 12470 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12471 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12472 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12473 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12474 | rm -f conftest.er1 |
| 12475 | cat conftest.err >&5 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12477 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12478 | { ac_try='test -z "$ac_c_werror_flag" |
| 12479 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12481 | (eval $ac_try) 2>&5 |
| 12482 | ac_status=$? |
| 12483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12484 | (exit $ac_status); }; } && |
| 12485 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12487 | (eval $ac_try) 2>&5 |
| 12488 | ac_status=$? |
| 12489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12490 | (exit $ac_status); }; }; then |
| 12491 | ac_header_compiler=yes |
| 12492 | else |
| 12493 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12495 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12496 | ac_header_compiler=no |
| 12497 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12498 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12499 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12500 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12501 | |
| 12502 | # Is the header present? |
| 12503 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 12504 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 12505 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12506 | /* confdefs.h. */ |
| 12507 | _ACEOF |
| 12508 | cat confdefs.h >>conftest.$ac_ext |
| 12509 | cat >>conftest.$ac_ext <<_ACEOF |
| 12510 | /* end confdefs.h. */ |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12511 | #include <atheos/threads.h> |
| 12512 | _ACEOF |
| 12513 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12514 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12515 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12516 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12517 | rm -f conftest.er1 |
| 12518 | cat conftest.err >&5 |
| 12519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12520 | (exit $ac_status); } >/dev/null; then |
| 12521 | if test -s conftest.err; then |
| 12522 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12523 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12524 | else |
| 12525 | ac_cpp_err= |
| 12526 | fi |
| 12527 | else |
| 12528 | ac_cpp_err=yes |
| 12529 | fi |
| 12530 | if test -z "$ac_cpp_err"; then |
| 12531 | ac_header_preproc=yes |
| 12532 | else |
| 12533 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12535 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12536 | ac_header_preproc=no |
| 12537 | fi |
| 12538 | rm -f conftest.err conftest.$ac_ext |
| 12539 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12540 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 12541 | |
| 12542 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12543 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12544 | yes:no: ) |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12545 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12546 | 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] | 12547 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the compiler's result" >&5 |
| 12548 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the compiler's result" >&2;} |
| 12549 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12550 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12551 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12552 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 12553 | 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] | 12554 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 12555 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 12556 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: see the Autoconf documentation" >&5 |
| 12557 | echo "$as_me: WARNING: atheos/threads.h: see the Autoconf documentation" >&2;} |
| 12558 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 12559 | 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] | 12560 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 12561 | 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] | 12562 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: in the future, the compiler will take precedence" >&5 |
| 12563 | 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] | 12564 | ( |
| 12565 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 12566 | ## ------------------------------------------------ ## |
| 12567 | ## Report this to http://www.python.org/python-bugs ## |
| 12568 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12569 | _ASBOX |
| 12570 | ) | |
| 12571 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12572 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12573 | esac |
| 12574 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 12575 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 12576 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 12577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12578 | else |
| 12579 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 12580 | fi |
| 12581 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 12582 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 12583 | |
| 12584 | fi |
| 12585 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 12586 | cat >>confdefs.h <<\_ACEOF |
| 12587 | #define WITH_THREAD 1 |
| 12588 | _ACEOF |
| 12589 | |
| 12590 | |
| 12591 | cat >>confdefs.h <<\_ACEOF |
| 12592 | #define ATHEOS_THREADS 1 |
| 12593 | _ACEOF |
| 12594 | |
| 12595 | THREADOBJ="Python/thread.o" |
| 12596 | else |
| 12597 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12598 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 12599 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 12600 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 12601 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 12602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12603 | fi |
| 12604 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 12605 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12606 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12607 | # Is the header compilable? |
| 12608 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 12609 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 12610 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12611 | /* confdefs.h. */ |
| 12612 | _ACEOF |
| 12613 | cat confdefs.h >>conftest.$ac_ext |
| 12614 | cat >>conftest.$ac_ext <<_ACEOF |
| 12615 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12616 | $ac_includes_default |
| 12617 | #include <kernel/OS.h> |
| 12618 | _ACEOF |
| 12619 | rm -f conftest.$ac_objext |
| 12620 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12621 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12622 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12623 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12624 | rm -f conftest.er1 |
| 12625 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12627 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12628 | { ac_try='test -z "$ac_c_werror_flag" |
| 12629 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12631 | (eval $ac_try) 2>&5 |
| 12632 | ac_status=$? |
| 12633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12634 | (exit $ac_status); }; } && |
| 12635 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12637 | (eval $ac_try) 2>&5 |
| 12638 | ac_status=$? |
| 12639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12640 | (exit $ac_status); }; }; then |
| 12641 | ac_header_compiler=yes |
| 12642 | else |
| 12643 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12644 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12645 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12646 | ac_header_compiler=no |
| 12647 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12648 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12649 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 12650 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 12651 | |
| 12652 | # Is the header present? |
| 12653 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 12654 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 12655 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12656 | /* confdefs.h. */ |
| 12657 | _ACEOF |
| 12658 | cat confdefs.h >>conftest.$ac_ext |
| 12659 | cat >>conftest.$ac_ext <<_ACEOF |
| 12660 | /* end confdefs.h. */ |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12661 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12662 | _ACEOF |
| 12663 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 12664 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 12665 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12666 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12667 | rm -f conftest.er1 |
| 12668 | cat conftest.err >&5 |
| 12669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12670 | (exit $ac_status); } >/dev/null; then |
| 12671 | if test -s conftest.err; then |
| 12672 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12673 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12674 | else |
| 12675 | ac_cpp_err= |
| 12676 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12677 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12678 | ac_cpp_err=yes |
| 12679 | fi |
| 12680 | if test -z "$ac_cpp_err"; then |
| 12681 | ac_header_preproc=yes |
| 12682 | else |
| 12683 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12685 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12686 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12687 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12688 | rm -f conftest.err conftest.$ac_ext |
| 12689 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12690 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12691 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12692 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12693 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12694 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12695 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12696 | 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] | 12697 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the compiler's result" >&5 |
| 12698 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the compiler's result" >&2;} |
| 12699 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12700 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12701 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 12702 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 12703 | 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] | 12704 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 12705 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 12706 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: see the Autoconf documentation" >&5 |
| 12707 | echo "$as_me: WARNING: kernel/OS.h: see the Autoconf documentation" >&2;} |
| 12708 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 12709 | 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] | 12710 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 12711 | 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] | 12712 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: in the future, the compiler will take precedence" >&5 |
| 12713 | 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] | 12714 | ( |
| 12715 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 12716 | ## ------------------------------------------------ ## |
| 12717 | ## Report this to http://www.python.org/python-bugs ## |
| 12718 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12719 | _ASBOX |
| 12720 | ) | |
| 12721 | sed "s/^/$as_me: WARNING: /" >&2 |
| 12722 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12723 | esac |
| 12724 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 12725 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 12726 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 12727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12728 | else |
| 12729 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 12730 | fi |
| 12731 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 12732 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 12733 | |
| 12734 | fi |
| 12735 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 12736 | cat >>confdefs.h <<\_ACEOF |
| 12737 | #define WITH_THREAD 1 |
| 12738 | _ACEOF |
| 12739 | |
| 12740 | |
| 12741 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12742 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12743 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12744 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12745 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12746 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 12747 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12748 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 12749 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 12750 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 12751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12752 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12753 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12754 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12755 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12756 | /* confdefs.h. */ |
| 12757 | _ACEOF |
| 12758 | cat confdefs.h >>conftest.$ac_ext |
| 12759 | cat >>conftest.$ac_ext <<_ACEOF |
| 12760 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12761 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12762 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12763 | #ifdef __cplusplus |
| 12764 | extern "C" |
| 12765 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12766 | /* 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] | 12767 | builtin and then its argument prototype would still apply. */ |
| 12768 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12769 | int |
| 12770 | main () |
| 12771 | { |
| 12772 | pthread_create (); |
| 12773 | ; |
| 12774 | return 0; |
| 12775 | } |
| 12776 | _ACEOF |
| 12777 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12778 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12779 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12780 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12781 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12782 | rm -f conftest.er1 |
| 12783 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12785 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12786 | { ac_try='test -z "$ac_c_werror_flag" |
| 12787 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12789 | (eval $ac_try) 2>&5 |
| 12790 | ac_status=$? |
| 12791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12792 | (exit $ac_status); }; } && |
| 12793 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12795 | (eval $ac_try) 2>&5 |
| 12796 | ac_status=$? |
| 12797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12798 | (exit $ac_status); }; }; then |
| 12799 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12800 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12801 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12803 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12804 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12805 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12806 | rm -f conftest.err conftest.$ac_objext \ |
| 12807 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12808 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12809 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12810 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 12811 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 12812 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 12813 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12814 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12815 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12816 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12817 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12818 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12819 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12820 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12821 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12822 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 12823 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 12824 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 12825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12826 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12827 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 12828 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12829 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12830 | /* confdefs.h. */ |
| 12831 | _ACEOF |
| 12832 | cat confdefs.h >>conftest.$ac_ext |
| 12833 | cat >>conftest.$ac_ext <<_ACEOF |
| 12834 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12835 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12836 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12837 | #ifdef __cplusplus |
| 12838 | extern "C" |
| 12839 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12840 | /* 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] | 12841 | builtin and then its argument prototype would still apply. */ |
| 12842 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12843 | int |
| 12844 | main () |
| 12845 | { |
| 12846 | pthread_create (); |
| 12847 | ; |
| 12848 | return 0; |
| 12849 | } |
| 12850 | _ACEOF |
| 12851 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12852 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12853 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12854 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12855 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12856 | rm -f conftest.er1 |
| 12857 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12859 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12860 | { ac_try='test -z "$ac_c_werror_flag" |
| 12861 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12863 | (eval $ac_try) 2>&5 |
| 12864 | ac_status=$? |
| 12865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12866 | (exit $ac_status); }; } && |
| 12867 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12869 | (eval $ac_try) 2>&5 |
| 12870 | ac_status=$? |
| 12871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12872 | (exit $ac_status); }; }; then |
| 12873 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12874 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12875 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12876 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12877 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12878 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12879 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12880 | rm -f conftest.err conftest.$ac_objext \ |
| 12881 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12882 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12883 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12884 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 12885 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 12886 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 12887 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12888 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12889 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 12890 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12891 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12892 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12893 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 12894 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 12895 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12896 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 12897 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 12898 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 12899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12900 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12901 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12902 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12903 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12904 | /* confdefs.h. */ |
| 12905 | _ACEOF |
| 12906 | cat confdefs.h >>conftest.$ac_ext |
| 12907 | cat >>conftest.$ac_ext <<_ACEOF |
| 12908 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12909 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12910 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12911 | #ifdef __cplusplus |
| 12912 | extern "C" |
| 12913 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12914 | /* 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] | 12915 | builtin and then its argument prototype would still apply. */ |
| 12916 | char __pthread_create_system (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12917 | int |
| 12918 | main () |
| 12919 | { |
| 12920 | __pthread_create_system (); |
| 12921 | ; |
| 12922 | return 0; |
| 12923 | } |
| 12924 | _ACEOF |
| 12925 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12926 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12927 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12928 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12929 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12930 | rm -f conftest.er1 |
| 12931 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12933 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 12934 | { ac_try='test -z "$ac_c_werror_flag" |
| 12935 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12937 | (eval $ac_try) 2>&5 |
| 12938 | ac_status=$? |
| 12939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12940 | (exit $ac_status); }; } && |
| 12941 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12943 | (eval $ac_try) 2>&5 |
| 12944 | ac_status=$? |
| 12945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12946 | (exit $ac_status); }; }; then |
| 12947 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12948 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12949 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12951 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12952 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12953 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 12954 | rm -f conftest.err conftest.$ac_objext \ |
| 12955 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12956 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12957 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12958 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 12959 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 12960 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 12961 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12962 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12963 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12964 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12965 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 12966 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 12967 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12968 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 12969 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12970 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 12971 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 12972 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 12973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12974 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12975 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12976 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12977 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 12978 | /* confdefs.h. */ |
| 12979 | _ACEOF |
| 12980 | cat confdefs.h >>conftest.$ac_ext |
| 12981 | cat >>conftest.$ac_ext <<_ACEOF |
| 12982 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12983 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12984 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12985 | #ifdef __cplusplus |
| 12986 | extern "C" |
| 12987 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 12988 | /* 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] | 12989 | builtin and then its argument prototype would still apply. */ |
| 12990 | char pthread_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12991 | int |
| 12992 | main () |
| 12993 | { |
| 12994 | pthread_create (); |
| 12995 | ; |
| 12996 | return 0; |
| 12997 | } |
| 12998 | _ACEOF |
| 12999 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13000 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13001 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13002 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13003 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13004 | rm -f conftest.er1 |
| 13005 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13007 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13008 | { ac_try='test -z "$ac_c_werror_flag" |
| 13009 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13011 | (eval $ac_try) 2>&5 |
| 13012 | ac_status=$? |
| 13013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13014 | (exit $ac_status); }; } && |
| 13015 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13017 | (eval $ac_try) 2>&5 |
| 13018 | ac_status=$? |
| 13019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13020 | (exit $ac_status); }; }; then |
| 13021 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13022 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13023 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13025 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13026 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13027 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13028 | rm -f conftest.err conftest.$ac_objext \ |
| 13029 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13030 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13031 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13032 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 13033 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 13034 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 13035 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13036 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13037 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13038 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13039 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13040 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13041 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13042 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 13043 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13044 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 13045 | fi |
| 13046 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13047 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 13048 | fi |
| 13049 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 13050 | fi |
| 13051 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 13052 | fi |
| 13053 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 13054 | fi |
| 13055 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 13056 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13057 | fi |
| 13058 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13059 | |
| 13060 | fi |
| 13061 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13062 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13063 | rm -f conftest.err conftest.$ac_objext \ |
| 13064 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13065 | fi; |
| 13066 | fi |
| 13067 | |
| 13068 | |
| 13069 | fi |
| 13070 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 13071 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13072 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13073 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 13074 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 13075 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 13076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13077 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13078 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13079 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13080 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13081 | /* confdefs.h. */ |
| 13082 | _ACEOF |
| 13083 | cat confdefs.h >>conftest.$ac_ext |
| 13084 | cat >>conftest.$ac_ext <<_ACEOF |
| 13085 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13086 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13087 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13088 | #ifdef __cplusplus |
| 13089 | extern "C" |
| 13090 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13091 | /* 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] | 13092 | builtin and then its argument prototype would still apply. */ |
| 13093 | char usconfig (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13094 | int |
| 13095 | main () |
| 13096 | { |
| 13097 | usconfig (); |
| 13098 | ; |
| 13099 | return 0; |
| 13100 | } |
| 13101 | _ACEOF |
| 13102 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13103 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13104 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13105 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13106 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13107 | rm -f conftest.er1 |
| 13108 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13110 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13111 | { ac_try='test -z "$ac_c_werror_flag" |
| 13112 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13114 | (eval $ac_try) 2>&5 |
| 13115 | ac_status=$? |
| 13116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13117 | (exit $ac_status); }; } && |
| 13118 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13120 | (eval $ac_try) 2>&5 |
| 13121 | ac_status=$? |
| 13122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13123 | (exit $ac_status); }; }; then |
| 13124 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13125 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13126 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13128 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13129 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13130 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13131 | rm -f conftest.err conftest.$ac_objext \ |
| 13132 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13133 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13134 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13135 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 13136 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 13137 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 13138 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13139 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13140 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13141 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13142 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13143 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13144 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13145 | fi |
| 13146 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 13147 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 13148 | if test "$posix_threads" != "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13149 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 13150 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 13151 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 13152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13153 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13154 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13155 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13156 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13157 | /* confdefs.h. */ |
| 13158 | _ACEOF |
| 13159 | cat confdefs.h >>conftest.$ac_ext |
| 13160 | cat >>conftest.$ac_ext <<_ACEOF |
| 13161 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13162 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13163 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13164 | #ifdef __cplusplus |
| 13165 | extern "C" |
| 13166 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13167 | /* 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] | 13168 | builtin and then its argument prototype would still apply. */ |
| 13169 | char thr_create (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13170 | int |
| 13171 | main () |
| 13172 | { |
| 13173 | thr_create (); |
| 13174 | ; |
| 13175 | return 0; |
| 13176 | } |
| 13177 | _ACEOF |
| 13178 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13179 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13180 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13181 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13182 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13183 | rm -f conftest.er1 |
| 13184 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13186 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13187 | { ac_try='test -z "$ac_c_werror_flag" |
| 13188 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13190 | (eval $ac_try) 2>&5 |
| 13191 | ac_status=$? |
| 13192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13193 | (exit $ac_status); }; } && |
| 13194 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13196 | (eval $ac_try) 2>&5 |
| 13197 | ac_status=$? |
| 13198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13199 | (exit $ac_status); }; }; then |
| 13200 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13201 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13202 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13203 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13204 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13205 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13206 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13207 | rm -f conftest.err conftest.$ac_objext \ |
| 13208 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13209 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13210 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13211 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 13212 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 13213 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 13214 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13215 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13216 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13217 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 13218 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 13219 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 13220 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13221 | fi |
| 13222 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 13223 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13224 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 13225 | if test "$USE_THREAD_MODULE" != "#" |
| 13226 | then |
| 13227 | # If the above checks didn't disable threads, (at least) OSF1 |
| 13228 | # needs this '-threads' argument during linking. |
| 13229 | case $ac_sys_system in |
| 13230 | OSF1) LDLAST=-threads;; |
| 13231 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 13232 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13233 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 13234 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13235 | if test "$posix_threads" = "yes"; then |
| 13236 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 13237 | |
| 13238 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13239 | #define _POSIX_THREADS 1 |
| 13240 | _ACEOF |
| 13241 | |
| 13242 | fi |
| 13243 | |
| 13244 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 13245 | case $ac_sys_system/$ac_sys_release in |
| 13246 | SunOS/5.6) |
| 13247 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 13248 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 13249 | _ACEOF |
| 13250 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13251 | ;; |
| 13252 | SunOS/5.8) |
| 13253 | cat >>confdefs.h <<\_ACEOF |
| 13254 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 13255 | _ACEOF |
| 13256 | |
| 13257 | ;; |
| 13258 | esac |
| 13259 | |
| 13260 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 13261 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 13262 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 13263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13264 | else |
| 13265 | if test "$cross_compiling" = yes; then |
| 13266 | ac_cv_pthread_system_supported=no |
| 13267 | else |
| 13268 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13269 | /* confdefs.h. */ |
| 13270 | _ACEOF |
| 13271 | cat confdefs.h >>conftest.$ac_ext |
| 13272 | cat >>conftest.$ac_ext <<_ACEOF |
| 13273 | /* end confdefs.h. */ |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13274 | #include <pthread.h> |
| 13275 | void *foo(void *parm) { |
| 13276 | return NULL; |
| 13277 | } |
| 13278 | main() { |
| 13279 | pthread_attr_t attr; |
| 13280 | pthread_t id; |
| 13281 | if (pthread_attr_init(&attr)) exit(-1); |
| 13282 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 13283 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 13284 | exit(0); |
| 13285 | } |
| 13286 | _ACEOF |
| 13287 | rm -f conftest$ac_exeext |
| 13288 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13289 | (eval $ac_link) 2>&5 |
| 13290 | ac_status=$? |
| 13291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13292 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13294 | (eval $ac_try) 2>&5 |
| 13295 | ac_status=$? |
| 13296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13297 | (exit $ac_status); }; }; then |
| 13298 | ac_cv_pthread_system_supported=yes |
| 13299 | else |
| 13300 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13301 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13302 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13303 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13304 | ( exit $ac_status ) |
| 13305 | ac_cv_pthread_system_supported=no |
| 13306 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13307 | 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] | 13308 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 13309 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13310 | fi |
| 13311 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13312 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 13313 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
| 13314 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 13315 | |
| 13316 | cat >>confdefs.h <<\_ACEOF |
| 13317 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 13318 | _ACEOF |
| 13319 | |
| 13320 | fi |
| 13321 | |
| 13322 | for ac_func in pthread_sigmask |
| 13323 | do |
| 13324 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13325 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13326 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13327 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13329 | else |
| 13330 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13331 | /* confdefs.h. */ |
| 13332 | _ACEOF |
| 13333 | cat confdefs.h >>conftest.$ac_ext |
| 13334 | cat >>conftest.$ac_ext <<_ACEOF |
| 13335 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13336 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 13337 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13338 | #define $ac_func innocuous_$ac_func |
| 13339 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13340 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13341 | which can conflict with char $ac_func (); below. |
| 13342 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13343 | <limits.h> exists even on freestanding compilers. */ |
| 13344 | |
| 13345 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13346 | # include <limits.h> |
| 13347 | #else |
| 13348 | # include <assert.h> |
| 13349 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13350 | |
| 13351 | #undef $ac_func |
| 13352 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13353 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13354 | #ifdef __cplusplus |
| 13355 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13356 | { |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13357 | #endif |
| 13358 | /* We use char because int might match the return type of a gcc2 |
| 13359 | builtin and then its argument prototype would still apply. */ |
| 13360 | char $ac_func (); |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13361 | /* The GNU C library defines this for functions which it implements |
| 13362 | to always fail with ENOSYS. Some functions are actually named |
| 13363 | something starting with __ and the normal name is an alias. */ |
| 13364 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13365 | choke me |
| 13366 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13367 | char (*f) () = $ac_func; |
| 13368 | #endif |
| 13369 | #ifdef __cplusplus |
| 13370 | } |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13371 | #endif |
| 13372 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13373 | int |
| 13374 | main () |
| 13375 | { |
| 13376 | return f != $ac_func; |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13377 | ; |
| 13378 | return 0; |
| 13379 | } |
| 13380 | _ACEOF |
| 13381 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13382 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13383 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13384 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13385 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13386 | rm -f conftest.er1 |
| 13387 | cat conftest.err >&5 |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13389 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13390 | { ac_try='test -z "$ac_c_werror_flag" |
| 13391 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13393 | (eval $ac_try) 2>&5 |
| 13394 | ac_status=$? |
| 13395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13396 | (exit $ac_status); }; } && |
| 13397 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13399 | (eval $ac_try) 2>&5 |
| 13400 | ac_status=$? |
| 13401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13402 | (exit $ac_status); }; }; then |
| 13403 | eval "$as_ac_var=yes" |
| 13404 | else |
| 13405 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13406 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13407 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13408 | eval "$as_ac_var=no" |
| 13409 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13410 | rm -f conftest.err conftest.$ac_objext \ |
| 13411 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13412 | fi |
| 13413 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13414 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13415 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13416 | cat >>confdefs.h <<_ACEOF |
| 13417 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13418 | _ACEOF |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 13419 | case $ac_sys_system in |
| 13420 | CYGWIN*) |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13421 | |
Jason Tishler | fac083d | 2003-07-22 15:20:49 +0000 | [diff] [blame] | 13422 | cat >>confdefs.h <<\_ACEOF |
| 13423 | #define HAVE_BROKEN_PTHREAD_SIGMASK 1 |
| 13424 | _ACEOF |
| 13425 | |
| 13426 | ;; |
| 13427 | esac |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 13428 | fi |
| 13429 | done |
| 13430 | |
| 13431 | fi |
| 13432 | |
| 13433 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13434 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13435 | |
| 13436 | |
| 13437 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 13438 | 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] | 13439 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 13440 | if test "${enable_ipv6+set}" = set; then |
| 13441 | enableval="$enable_ipv6" |
| 13442 | case "$enableval" in |
| 13443 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13444 | echo "$as_me:$LINENO: result: no" >&5 |
| 13445 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13446 | ipv6=no |
| 13447 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13448 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 13449 | echo "${ECHO_T}yes" >&6 |
| 13450 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13451 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13452 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13453 | |
| 13454 | ipv6=yes |
| 13455 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13456 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13457 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13458 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13459 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13460 | echo "$as_me:$LINENO: result: no" >&5 |
| 13461 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13462 | ipv6=no |
| 13463 | |
| 13464 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13465 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13466 | /* confdefs.h. */ |
| 13467 | _ACEOF |
| 13468 | cat confdefs.h >>conftest.$ac_ext |
| 13469 | cat >>conftest.$ac_ext <<_ACEOF |
| 13470 | /* end confdefs.h. */ |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13471 | /* AF_INET6 available check */ |
| 13472 | #include <sys/types.h> |
| 13473 | #include <sys/socket.h> |
| 13474 | main() |
| 13475 | { |
| 13476 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 13477 | exit(1); |
| 13478 | else |
| 13479 | exit(0); |
| 13480 | } |
| 13481 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13482 | _ACEOF |
| 13483 | rm -f conftest$ac_exeext |
| 13484 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13485 | (eval $ac_link) 2>&5 |
| 13486 | ac_status=$? |
| 13487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13488 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13490 | (eval $ac_try) 2>&5 |
| 13491 | ac_status=$? |
| 13492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13493 | (exit $ac_status); }; }; then |
| 13494 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13495 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13496 | ipv6=yes |
| 13497 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13498 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13499 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13500 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13501 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13502 | ( exit $ac_status ) |
| 13503 | echo "$as_me:$LINENO: result: no" >&5 |
| 13504 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13505 | ipv6=no |
| 13506 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13507 | 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] | 13508 | fi |
| 13509 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 13510 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13511 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 13512 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 13513 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13514 | /* confdefs.h. */ |
| 13515 | _ACEOF |
| 13516 | cat confdefs.h >>conftest.$ac_ext |
| 13517 | cat >>conftest.$ac_ext <<_ACEOF |
| 13518 | /* end confdefs.h. */ |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 13519 | #include <sys/types.h> |
| 13520 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13521 | int |
| 13522 | main () |
| 13523 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 13524 | struct sockaddr_in6 x; |
| 13525 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13526 | ; |
| 13527 | return 0; |
| 13528 | } |
| 13529 | _ACEOF |
| 13530 | rm -f conftest.$ac_objext |
| 13531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13532 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13533 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13534 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13535 | rm -f conftest.er1 |
| 13536 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13538 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13539 | { ac_try='test -z "$ac_c_werror_flag" |
| 13540 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13542 | (eval $ac_try) 2>&5 |
| 13543 | ac_status=$? |
| 13544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13545 | (exit $ac_status); }; } && |
| 13546 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13548 | (eval $ac_try) 2>&5 |
| 13549 | ac_status=$? |
| 13550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13551 | (exit $ac_status); }; }; then |
| 13552 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13553 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 13554 | ipv6=yes |
| 13555 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13556 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13557 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13558 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13559 | echo "$as_me:$LINENO: result: no" >&5 |
| 13560 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 13561 | ipv6=no |
| 13562 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13563 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 13564 | fi |
| 13565 | |
| 13566 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13567 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 13568 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13569 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 13570 | |
| 13571 | fi |
| 13572 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13573 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13574 | |
| 13575 | ipv6type=unknown |
| 13576 | ipv6lib=none |
| 13577 | ipv6trylibc=no |
| 13578 | |
| 13579 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13580 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 13581 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 13582 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 13583 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13584 | case $i in |
| 13585 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13586 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13587 | /* confdefs.h. */ |
| 13588 | _ACEOF |
| 13589 | cat confdefs.h >>conftest.$ac_ext |
| 13590 | cat >>conftest.$ac_ext <<_ACEOF |
| 13591 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13592 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13593 | #include <netinet/in.h> |
| 13594 | #ifdef IPV6_INRIA_VERSION |
| 13595 | yes |
| 13596 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13597 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13598 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13599 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 13600 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13601 | fi |
| 13602 | rm -f conftest* |
| 13603 | |
| 13604 | ;; |
| 13605 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13606 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13607 | /* confdefs.h. */ |
| 13608 | _ACEOF |
| 13609 | cat confdefs.h >>conftest.$ac_ext |
| 13610 | cat >>conftest.$ac_ext <<_ACEOF |
| 13611 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13612 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13613 | #include <netinet/in.h> |
| 13614 | #ifdef __KAME__ |
| 13615 | yes |
| 13616 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13617 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13618 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13619 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13620 | ipv6type=$i; |
| 13621 | ipv6lib=inet6 |
| 13622 | ipv6libdir=/usr/local/v6/lib |
| 13623 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13624 | fi |
| 13625 | rm -f conftest* |
| 13626 | |
| 13627 | ;; |
| 13628 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13629 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13630 | /* confdefs.h. */ |
| 13631 | _ACEOF |
| 13632 | cat confdefs.h >>conftest.$ac_ext |
| 13633 | cat >>conftest.$ac_ext <<_ACEOF |
| 13634 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13635 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13636 | #include <features.h> |
| 13637 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 13638 | yes |
| 13639 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13640 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13641 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13642 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13643 | ipv6type=$i; |
| 13644 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13645 | fi |
| 13646 | rm -f conftest* |
| 13647 | |
| 13648 | ;; |
| 13649 | linux-inet6) |
| 13650 | if test -d /usr/inet6; then |
| 13651 | ipv6type=$i |
| 13652 | ipv6lib=inet6 |
| 13653 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 13654 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13655 | fi |
| 13656 | ;; |
| 13657 | solaris) |
| 13658 | if test -f /etc/netconfig; then |
| 13659 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 13660 | ipv6type=$i |
| 13661 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13662 | fi |
| 13663 | fi |
| 13664 | ;; |
| 13665 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13666 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13667 | /* confdefs.h. */ |
| 13668 | _ACEOF |
| 13669 | cat confdefs.h >>conftest.$ac_ext |
| 13670 | cat >>conftest.$ac_ext <<_ACEOF |
| 13671 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13672 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13673 | #include <sys/param.h> |
| 13674 | #ifdef _TOSHIBA_INET6 |
| 13675 | yes |
| 13676 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13677 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13678 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13679 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13680 | ipv6type=$i; |
| 13681 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 13682 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13683 | fi |
| 13684 | rm -f conftest* |
| 13685 | |
| 13686 | ;; |
| 13687 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13688 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13689 | /* confdefs.h. */ |
| 13690 | _ACEOF |
| 13691 | cat confdefs.h >>conftest.$ac_ext |
| 13692 | cat >>conftest.$ac_ext <<_ACEOF |
| 13693 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13694 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13695 | #include </usr/local/v6/include/sys/v6config.h> |
| 13696 | #ifdef __V6D__ |
| 13697 | yes |
| 13698 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13699 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13700 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13701 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13702 | ipv6type=$i; |
| 13703 | ipv6lib=v6; |
| 13704 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 13705 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13706 | fi |
| 13707 | rm -f conftest* |
| 13708 | |
| 13709 | ;; |
| 13710 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13711 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13712 | /* confdefs.h. */ |
| 13713 | _ACEOF |
| 13714 | cat confdefs.h >>conftest.$ac_ext |
| 13715 | cat >>conftest.$ac_ext <<_ACEOF |
| 13716 | /* end confdefs.h. */ |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 13717 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13718 | #include <sys/param.h> |
| 13719 | #ifdef _ZETA_MINAMI_INET6 |
| 13720 | yes |
| 13721 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13722 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13723 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13724 | $EGREP "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13725 | ipv6type=$i; |
| 13726 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 13727 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13728 | fi |
| 13729 | rm -f conftest* |
| 13730 | |
| 13731 | ;; |
| 13732 | esac |
| 13733 | if test "$ipv6type" != "unknown"; then |
| 13734 | break |
| 13735 | fi |
| 13736 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13737 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 13738 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 13739 | fi |
| 13740 | |
| 13741 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 13742 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 13743 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 13744 | echo "using lib$ipv6lib" |
| 13745 | else |
| 13746 | if test $ipv6trylibc = "yes"; then |
| 13747 | echo "using libc" |
| 13748 | else |
| 13749 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 13750 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 13751 | echo 'ipv6 kit and compile beforehand.' |
| 13752 | exit 1 |
| 13753 | fi |
| 13754 | fi |
| 13755 | fi |
| 13756 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 13757 | # Check for --with-doc-strings |
| 13758 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 13759 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 13760 | |
| 13761 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 13762 | if test "${with_doc_strings+set}" = set; then |
| 13763 | withval="$with_doc_strings" |
| 13764 | |
| 13765 | fi; |
| 13766 | |
| 13767 | if test -z "$with_doc_strings" |
| 13768 | then with_doc_strings="yes" |
| 13769 | fi |
| 13770 | if test "$with_doc_strings" != "no" |
| 13771 | then |
| 13772 | |
| 13773 | cat >>confdefs.h <<\_ACEOF |
| 13774 | #define WITH_DOC_STRINGS 1 |
| 13775 | _ACEOF |
| 13776 | |
| 13777 | fi |
| 13778 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 13779 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 13780 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 13781 | # Check for Python-specific malloc support |
Martin v. Löwis | f30d60e | 2004-06-08 08:17:44 +0000 | [diff] [blame] | 13782 | echo "$as_me:$LINENO: checking for --with-tsc" >&5 |
| 13783 | echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6 |
| 13784 | |
| 13785 | # Check whether --with-tsc or --without-tsc was given. |
| 13786 | if test "${with_tsc+set}" = set; then |
| 13787 | withval="$with_tsc" |
| 13788 | |
| 13789 | if test "$withval" != no |
| 13790 | then |
| 13791 | |
| 13792 | cat >>confdefs.h <<\_ACEOF |
| 13793 | #define WITH_TSC 1 |
| 13794 | _ACEOF |
| 13795 | |
| 13796 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13797 | echo "${ECHO_T}yes" >&6 |
| 13798 | else echo "$as_me:$LINENO: result: no" >&5 |
| 13799 | echo "${ECHO_T}no" >&6 |
| 13800 | fi |
| 13801 | else |
| 13802 | echo "$as_me:$LINENO: result: no" >&5 |
| 13803 | echo "${ECHO_T}no" >&6 |
| 13804 | fi; |
| 13805 | |
| 13806 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13807 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 13808 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 13809 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 13810 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 13811 | if test "${with_pymalloc+set}" = set; then |
| 13812 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13813 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13814 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 13815 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13816 | if test -z "$with_pymalloc" |
| 13817 | then with_pymalloc="yes" |
| 13818 | fi |
| 13819 | if test "$with_pymalloc" != "no" |
| 13820 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13821 | |
| 13822 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13823 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13824 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13825 | |
| 13826 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13827 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 13828 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 13829 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13830 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13831 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 13832 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 13833 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13834 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 13835 | if test "${with_wctype_functions+set}" = set; then |
| 13836 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13837 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13838 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13839 | then |
| 13840 | |
| 13841 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13842 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13843 | _ACEOF |
| 13844 | |
| 13845 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13846 | echo "${ECHO_T}yes" >&6 |
| 13847 | else echo "$as_me:$LINENO: result: no" >&5 |
| 13848 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13849 | fi |
| 13850 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13851 | echo "$as_me:$LINENO: result: no" >&5 |
| 13852 | echo "${ECHO_T}no" >&6 |
| 13853 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 13854 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13855 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13856 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 13857 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13858 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13859 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 13860 | # 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] | 13861 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13862 | for ac_func in dlopen |
| 13863 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13864 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13865 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13866 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13867 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13869 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13870 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13871 | /* confdefs.h. */ |
| 13872 | _ACEOF |
| 13873 | cat confdefs.h >>conftest.$ac_ext |
| 13874 | cat >>conftest.$ac_ext <<_ACEOF |
| 13875 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13876 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 13877 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13878 | #define $ac_func innocuous_$ac_func |
| 13879 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13880 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13881 | which can conflict with char $ac_func (); below. |
| 13882 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13883 | <limits.h> exists even on freestanding compilers. */ |
| 13884 | |
| 13885 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13886 | # include <limits.h> |
| 13887 | #else |
| 13888 | # include <assert.h> |
| 13889 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 13890 | |
| 13891 | #undef $ac_func |
| 13892 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13893 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13894 | #ifdef __cplusplus |
| 13895 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13896 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13897 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13898 | /* 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] | 13899 | builtin and then its argument prototype would still apply. */ |
| 13900 | char $ac_func (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13901 | /* The GNU C library defines this for functions which it implements |
| 13902 | to always fail with ENOSYS. Some functions are actually named |
| 13903 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13904 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13905 | choke me |
| 13906 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13907 | char (*f) () = $ac_func; |
| 13908 | #endif |
| 13909 | #ifdef __cplusplus |
| 13910 | } |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13911 | #endif |
| 13912 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13913 | int |
| 13914 | main () |
| 13915 | { |
| 13916 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13917 | ; |
| 13918 | return 0; |
| 13919 | } |
| 13920 | _ACEOF |
| 13921 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13922 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13923 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13924 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13925 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13926 | rm -f conftest.er1 |
| 13927 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13929 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 13930 | { ac_try='test -z "$ac_c_werror_flag" |
| 13931 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13933 | (eval $ac_try) 2>&5 |
| 13934 | ac_status=$? |
| 13935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13936 | (exit $ac_status); }; } && |
| 13937 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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); }; }; then |
| 13943 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13944 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13945 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 13946 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13947 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13948 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13949 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 13950 | rm -f conftest.err conftest.$ac_objext \ |
| 13951 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13952 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13953 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13954 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13955 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13956 | cat >>confdefs.h <<_ACEOF |
| 13957 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13958 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13959 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13960 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13961 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13962 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13963 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13964 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 13965 | # loading of modules. |
| 13966 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13967 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 13968 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13969 | if test -z "$DYNLOADFILE" |
| 13970 | then |
| 13971 | case $ac_sys_system/$ac_sys_release in |
Martin v. Löwis | c19c5a6 | 2003-11-18 20:00:44 +0000 | [diff] [blame] | 13972 | AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c |
| 13973 | if test "$ac_cv_func_dlopen" = yes |
| 13974 | then DYNLOADFILE="dynload_shlib.o" |
| 13975 | else DYNLOADFILE="dynload_aix.o" |
| 13976 | fi |
| 13977 | ;; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13978 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 13979 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 13980 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 13981 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13982 | *) |
| 13983 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 13984 | # out any dynamic loading |
| 13985 | if test "$ac_cv_func_dlopen" = yes |
| 13986 | then DYNLOADFILE="dynload_shlib.o" |
| 13987 | else DYNLOADFILE="dynload_stub.o" |
| 13988 | fi |
| 13989 | ;; |
| 13990 | esac |
| 13991 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13992 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 13993 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13994 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 13995 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13996 | |
| 13997 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 13998 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13999 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 14000 | |
| 14001 | fi |
| 14002 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 14003 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 14004 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14005 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14006 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 14007 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 14008 | if test -z "$MACHDEP_OBJS" |
| 14009 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 14010 | MACHDEP_OBJS=$extra_machdep_objs |
| 14011 | else |
| 14012 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 14013 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14014 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 14015 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 14016 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14017 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14018 | |
| 14019 | |
| 14020 | |
| 14021 | |
| 14022 | |
| 14023 | |
| 14024 | |
| 14025 | |
| 14026 | |
| 14027 | |
| 14028 | |
| 14029 | |
| 14030 | |
| 14031 | |
| 14032 | |
| 14033 | |
| 14034 | |
| 14035 | |
| 14036 | |
| 14037 | |
| 14038 | |
| 14039 | |
| 14040 | |
| 14041 | |
| 14042 | |
| 14043 | |
| 14044 | |
| 14045 | |
| 14046 | |
| 14047 | |
| 14048 | |
| 14049 | |
| 14050 | |
| 14051 | |
| 14052 | |
| 14053 | |
| 14054 | |
| 14055 | |
| 14056 | |
| 14057 | |
| 14058 | |
| 14059 | |
| 14060 | |
| 14061 | |
| 14062 | |
| 14063 | |
| 14064 | |
| 14065 | |
| 14066 | |
| 14067 | |
| 14068 | |
| 14069 | |
| 14070 | |
| 14071 | |
| 14072 | |
| 14073 | |
| 14074 | |
| 14075 | |
| 14076 | |
| 14077 | |
| 14078 | |
| 14079 | |
| 14080 | |
| 14081 | |
| 14082 | |
| 14083 | |
| 14084 | |
| 14085 | |
| 14086 | |
| 14087 | |
| 14088 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 14089 | |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 14090 | |
| 14091 | |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 14092 | |
| 14093 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 14094 | for ac_func in alarm bind_textdomain_codeset chown clock confstr ctermid \ |
| 14095 | execv fork fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 14096 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
Martin v. Löwis | c300175 | 2005-01-23 09:27:24 +0000 | [diff] [blame] | 14097 | getpriority getpwent getspnam getspent getsid getwd \ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14098 | kill killpg lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 14099 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 14100 | putenv readlink realpath \ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14101 | select setegid seteuid setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 14102 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Skip Montanaro | 7e11a01 | 2004-02-07 12:55:46 +0000 | [diff] [blame] | 14103 | sigaction siginterrupt sigrelse strftime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 14104 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Neal Norwitz | 05a4559 | 2006-03-20 06:30:08 +0000 | [diff] [blame] | 14105 | truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14106 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14107 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14108 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14109 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14110 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14112 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14113 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14114 | /* confdefs.h. */ |
| 14115 | _ACEOF |
| 14116 | cat confdefs.h >>conftest.$ac_ext |
| 14117 | cat >>conftest.$ac_ext <<_ACEOF |
| 14118 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14119 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14120 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14121 | #define $ac_func innocuous_$ac_func |
| 14122 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14123 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14124 | which can conflict with char $ac_func (); below. |
| 14125 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14126 | <limits.h> exists even on freestanding compilers. */ |
| 14127 | |
| 14128 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14129 | # include <limits.h> |
| 14130 | #else |
| 14131 | # include <assert.h> |
| 14132 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 14133 | |
| 14134 | #undef $ac_func |
| 14135 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14136 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14137 | #ifdef __cplusplus |
| 14138 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14139 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14140 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14141 | /* 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] | 14142 | builtin and then its argument prototype would still apply. */ |
| 14143 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14144 | /* The GNU C library defines this for functions which it implements |
| 14145 | to always fail with ENOSYS. Some functions are actually named |
| 14146 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14147 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14148 | choke me |
| 14149 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14150 | char (*f) () = $ac_func; |
| 14151 | #endif |
| 14152 | #ifdef __cplusplus |
| 14153 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14154 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14155 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14156 | int |
| 14157 | main () |
| 14158 | { |
| 14159 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14160 | ; |
| 14161 | return 0; |
| 14162 | } |
| 14163 | _ACEOF |
| 14164 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14165 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14166 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14167 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14168 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14169 | rm -f conftest.er1 |
| 14170 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14172 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14173 | { ac_try='test -z "$ac_c_werror_flag" |
| 14174 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14176 | (eval $ac_try) 2>&5 |
| 14177 | ac_status=$? |
| 14178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14179 | (exit $ac_status); }; } && |
| 14180 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14182 | (eval $ac_try) 2>&5 |
| 14183 | ac_status=$? |
| 14184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14185 | (exit $ac_status); }; }; then |
| 14186 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14187 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14188 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14189 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14190 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14191 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14192 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14193 | rm -f conftest.err conftest.$ac_objext \ |
| 14194 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14195 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14196 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14197 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14198 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14199 | cat >>confdefs.h <<_ACEOF |
| 14200 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14201 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 14202 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 14203 | fi |
| 14204 | done |
| 14205 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14206 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14207 | # For some functions, having a definition is not sufficient, since |
| 14208 | # we want to take their address. |
| 14209 | echo "$as_me:$LINENO: checking for chroot" >&5 |
| 14210 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6 |
| 14211 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14212 | /* confdefs.h. */ |
| 14213 | _ACEOF |
| 14214 | cat confdefs.h >>conftest.$ac_ext |
| 14215 | cat >>conftest.$ac_ext <<_ACEOF |
| 14216 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14217 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14218 | int |
| 14219 | main () |
| 14220 | { |
| 14221 | void *x=chroot |
| 14222 | ; |
| 14223 | return 0; |
| 14224 | } |
| 14225 | _ACEOF |
| 14226 | rm -f conftest.$ac_objext |
| 14227 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14228 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14229 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14230 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14231 | rm -f conftest.er1 |
| 14232 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14234 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14235 | { ac_try='test -z "$ac_c_werror_flag" |
| 14236 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14238 | (eval $ac_try) 2>&5 |
| 14239 | ac_status=$? |
| 14240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14241 | (exit $ac_status); }; } && |
| 14242 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14244 | (eval $ac_try) 2>&5 |
| 14245 | ac_status=$? |
| 14246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14247 | (exit $ac_status); }; }; then |
| 14248 | |
| 14249 | cat >>confdefs.h <<\_ACEOF |
| 14250 | #define HAVE_CHROOT 1 |
| 14251 | _ACEOF |
| 14252 | |
| 14253 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14254 | echo "${ECHO_T}yes" >&6 |
| 14255 | else |
| 14256 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14258 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14259 | echo "$as_me:$LINENO: result: no" >&5 |
| 14260 | echo "${ECHO_T}no" >&6 |
| 14261 | |
| 14262 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14263 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14264 | echo "$as_me:$LINENO: checking for link" >&5 |
| 14265 | echo $ECHO_N "checking for link... $ECHO_C" >&6 |
| 14266 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14267 | /* confdefs.h. */ |
| 14268 | _ACEOF |
| 14269 | cat confdefs.h >>conftest.$ac_ext |
| 14270 | cat >>conftest.$ac_ext <<_ACEOF |
| 14271 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14272 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14273 | int |
| 14274 | main () |
| 14275 | { |
| 14276 | void *x=link |
| 14277 | ; |
| 14278 | return 0; |
| 14279 | } |
| 14280 | _ACEOF |
| 14281 | rm -f conftest.$ac_objext |
| 14282 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14283 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14284 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14285 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14286 | rm -f conftest.er1 |
| 14287 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14289 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14290 | { ac_try='test -z "$ac_c_werror_flag" |
| 14291 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14293 | (eval $ac_try) 2>&5 |
| 14294 | ac_status=$? |
| 14295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14296 | (exit $ac_status); }; } && |
| 14297 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14299 | (eval $ac_try) 2>&5 |
| 14300 | ac_status=$? |
| 14301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14302 | (exit $ac_status); }; }; then |
| 14303 | |
| 14304 | cat >>confdefs.h <<\_ACEOF |
| 14305 | #define HAVE_LINK 1 |
| 14306 | _ACEOF |
| 14307 | |
| 14308 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14309 | echo "${ECHO_T}yes" >&6 |
| 14310 | else |
| 14311 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14312 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14313 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14314 | echo "$as_me:$LINENO: result: no" >&5 |
| 14315 | echo "${ECHO_T}no" >&6 |
| 14316 | |
| 14317 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14318 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14319 | echo "$as_me:$LINENO: checking for symlink" >&5 |
| 14320 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6 |
| 14321 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14322 | /* confdefs.h. */ |
| 14323 | _ACEOF |
| 14324 | cat confdefs.h >>conftest.$ac_ext |
| 14325 | cat >>conftest.$ac_ext <<_ACEOF |
| 14326 | /* end confdefs.h. */ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14327 | #include <unistd.h> |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14328 | int |
| 14329 | main () |
| 14330 | { |
| 14331 | void *x=symlink |
| 14332 | ; |
| 14333 | return 0; |
| 14334 | } |
| 14335 | _ACEOF |
| 14336 | rm -f conftest.$ac_objext |
| 14337 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14338 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14339 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14340 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14341 | rm -f conftest.er1 |
| 14342 | cat conftest.err >&5 |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14344 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14345 | { ac_try='test -z "$ac_c_werror_flag" |
| 14346 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14348 | (eval $ac_try) 2>&5 |
| 14349 | ac_status=$? |
| 14350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14351 | (exit $ac_status); }; } && |
| 14352 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14354 | (eval $ac_try) 2>&5 |
| 14355 | ac_status=$? |
| 14356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14357 | (exit $ac_status); }; }; then |
| 14358 | |
| 14359 | cat >>confdefs.h <<\_ACEOF |
| 14360 | #define HAVE_SYMLINK 1 |
| 14361 | _ACEOF |
| 14362 | |
| 14363 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14364 | echo "${ECHO_T}yes" >&6 |
| 14365 | else |
| 14366 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14367 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14368 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14369 | echo "$as_me:$LINENO: result: no" >&5 |
| 14370 | echo "${ECHO_T}no" >&6 |
| 14371 | |
| 14372 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14374 | echo "$as_me:$LINENO: checking for fchdir" >&5 |
| 14375 | echo $ECHO_N "checking for fchdir... $ECHO_C" >&6 |
| 14376 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14377 | /* confdefs.h. */ |
| 14378 | _ACEOF |
| 14379 | cat confdefs.h >>conftest.$ac_ext |
| 14380 | cat >>conftest.$ac_ext <<_ACEOF |
| 14381 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14382 | #include <unistd.h> |
| 14383 | int |
| 14384 | main () |
| 14385 | { |
| 14386 | void *x=fchdir |
| 14387 | ; |
| 14388 | return 0; |
| 14389 | } |
| 14390 | _ACEOF |
| 14391 | rm -f conftest.$ac_objext |
| 14392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14393 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14394 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14395 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14396 | rm -f conftest.er1 |
| 14397 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14399 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14400 | { ac_try='test -z "$ac_c_werror_flag" |
| 14401 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14403 | (eval $ac_try) 2>&5 |
| 14404 | ac_status=$? |
| 14405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14406 | (exit $ac_status); }; } && |
| 14407 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14409 | (eval $ac_try) 2>&5 |
| 14410 | ac_status=$? |
| 14411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14412 | (exit $ac_status); }; }; then |
| 14413 | |
| 14414 | cat >>confdefs.h <<\_ACEOF |
| 14415 | #define HAVE_FCHDIR 1 |
| 14416 | _ACEOF |
| 14417 | |
| 14418 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14419 | echo "${ECHO_T}yes" >&6 |
| 14420 | else |
| 14421 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14422 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14423 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14424 | echo "$as_me:$LINENO: result: no" >&5 |
| 14425 | echo "${ECHO_T}no" >&6 |
| 14426 | |
| 14427 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14428 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14429 | echo "$as_me:$LINENO: checking for fsync" >&5 |
| 14430 | echo $ECHO_N "checking for fsync... $ECHO_C" >&6 |
| 14431 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14432 | /* confdefs.h. */ |
| 14433 | _ACEOF |
| 14434 | cat confdefs.h >>conftest.$ac_ext |
| 14435 | cat >>conftest.$ac_ext <<_ACEOF |
| 14436 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14437 | #include <unistd.h> |
| 14438 | int |
| 14439 | main () |
| 14440 | { |
| 14441 | void *x=fsync |
| 14442 | ; |
| 14443 | return 0; |
| 14444 | } |
| 14445 | _ACEOF |
| 14446 | rm -f conftest.$ac_objext |
| 14447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14448 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14449 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14450 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14451 | rm -f conftest.er1 |
| 14452 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14454 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14455 | { ac_try='test -z "$ac_c_werror_flag" |
| 14456 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14458 | (eval $ac_try) 2>&5 |
| 14459 | ac_status=$? |
| 14460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14461 | (exit $ac_status); }; } && |
| 14462 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14464 | (eval $ac_try) 2>&5 |
| 14465 | ac_status=$? |
| 14466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14467 | (exit $ac_status); }; }; then |
| 14468 | |
| 14469 | cat >>confdefs.h <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14470 | #define HAVE_FSYNC 1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14471 | _ACEOF |
| 14472 | |
| 14473 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14474 | echo "${ECHO_T}yes" >&6 |
| 14475 | else |
| 14476 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14477 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14478 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14479 | echo "$as_me:$LINENO: result: no" >&5 |
| 14480 | echo "${ECHO_T}no" >&6 |
| 14481 | |
| 14482 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14483 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14484 | echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 14485 | echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6 |
| 14486 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14487 | /* confdefs.h. */ |
| 14488 | _ACEOF |
| 14489 | cat confdefs.h >>conftest.$ac_ext |
| 14490 | cat >>conftest.$ac_ext <<_ACEOF |
| 14491 | /* end confdefs.h. */ |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14492 | #include <unistd.h> |
| 14493 | int |
| 14494 | main () |
| 14495 | { |
| 14496 | void *x=fdatasync |
| 14497 | ; |
| 14498 | return 0; |
| 14499 | } |
| 14500 | _ACEOF |
| 14501 | rm -f conftest.$ac_objext |
| 14502 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14503 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14504 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14505 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14506 | rm -f conftest.er1 |
| 14507 | cat conftest.err >&5 |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14509 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14510 | { ac_try='test -z "$ac_c_werror_flag" |
| 14511 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14513 | (eval $ac_try) 2>&5 |
| 14514 | ac_status=$? |
| 14515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14516 | (exit $ac_status); }; } && |
| 14517 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14519 | (eval $ac_try) 2>&5 |
| 14520 | ac_status=$? |
| 14521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14522 | (exit $ac_status); }; }; then |
| 14523 | |
| 14524 | cat >>confdefs.h <<\_ACEOF |
| 14525 | #define HAVE_FDATASYNC 1 |
| 14526 | _ACEOF |
| 14527 | |
| 14528 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14529 | echo "${ECHO_T}yes" >&6 |
| 14530 | else |
| 14531 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14533 | |
Martin v. Löwis | a64988c | 2003-09-20 15:30:20 +0000 | [diff] [blame] | 14534 | echo "$as_me:$LINENO: result: no" >&5 |
| 14535 | echo "${ECHO_T}no" >&6 |
| 14536 | |
| 14537 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14538 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 14539 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14540 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 14541 | # functions ctermid_r, setgroups in the library, but no prototype |
| 14542 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 14543 | # address to avoid compiler warnings and potential miscompilations |
| 14544 | # because of the missing prototypes. |
| 14545 | |
| 14546 | echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 14547 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6 |
| 14548 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14549 | /* confdefs.h. */ |
| 14550 | _ACEOF |
| 14551 | cat confdefs.h >>conftest.$ac_ext |
| 14552 | cat >>conftest.$ac_ext <<_ACEOF |
| 14553 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14554 | |
| 14555 | #include "confdefs.h" |
| 14556 | #include <stdio.h> |
| 14557 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14558 | int |
| 14559 | main () |
| 14560 | { |
| 14561 | void* p = ctermid_r |
| 14562 | ; |
| 14563 | return 0; |
| 14564 | } |
| 14565 | _ACEOF |
| 14566 | rm -f conftest.$ac_objext |
| 14567 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14568 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14569 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14570 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14571 | rm -f conftest.er1 |
| 14572 | cat conftest.err >&5 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14574 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14575 | { ac_try='test -z "$ac_c_werror_flag" |
| 14576 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14578 | (eval $ac_try) 2>&5 |
| 14579 | ac_status=$? |
| 14580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14581 | (exit $ac_status); }; } && |
| 14582 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14584 | (eval $ac_try) 2>&5 |
| 14585 | ac_status=$? |
| 14586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14587 | (exit $ac_status); }; }; then |
| 14588 | |
| 14589 | cat >>confdefs.h <<\_ACEOF |
| 14590 | #define HAVE_CTERMID_R 1 |
| 14591 | _ACEOF |
| 14592 | |
| 14593 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14594 | echo "${ECHO_T}yes" >&6 |
| 14595 | else |
| 14596 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14598 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14599 | echo "$as_me:$LINENO: result: no" >&5 |
| 14600 | echo "${ECHO_T}no" >&6 |
| 14601 | |
| 14602 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14603 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 14604 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14605 | echo "$as_me:$LINENO: checking for flock" >&5 |
| 14606 | echo $ECHO_N "checking for flock... $ECHO_C" >&6 |
| 14607 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14608 | /* confdefs.h. */ |
| 14609 | _ACEOF |
| 14610 | cat confdefs.h >>conftest.$ac_ext |
| 14611 | cat >>conftest.$ac_ext <<_ACEOF |
| 14612 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14613 | |
| 14614 | #include "confdefs.h" |
| 14615 | #include <sys/file.h> |
| 14616 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14617 | int |
| 14618 | main () |
| 14619 | { |
| 14620 | void* p = flock |
| 14621 | ; |
| 14622 | return 0; |
| 14623 | } |
| 14624 | _ACEOF |
| 14625 | rm -f conftest.$ac_objext |
| 14626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14627 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14628 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14630 | rm -f conftest.er1 |
| 14631 | cat conftest.err >&5 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14633 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14634 | { ac_try='test -z "$ac_c_werror_flag" |
| 14635 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14637 | (eval $ac_try) 2>&5 |
| 14638 | ac_status=$? |
| 14639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14640 | (exit $ac_status); }; } && |
| 14641 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14643 | (eval $ac_try) 2>&5 |
| 14644 | ac_status=$? |
| 14645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14646 | (exit $ac_status); }; }; then |
| 14647 | |
| 14648 | cat >>confdefs.h <<\_ACEOF |
| 14649 | #define HAVE_FLOCK 1 |
| 14650 | _ACEOF |
| 14651 | |
| 14652 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14653 | echo "${ECHO_T}yes" >&6 |
| 14654 | else |
| 14655 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14656 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14657 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14658 | echo "$as_me:$LINENO: result: no" >&5 |
| 14659 | echo "${ECHO_T}no" >&6 |
| 14660 | |
| 14661 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14662 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14663 | |
| 14664 | echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 14665 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 |
| 14666 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14667 | /* confdefs.h. */ |
| 14668 | _ACEOF |
| 14669 | cat confdefs.h >>conftest.$ac_ext |
| 14670 | cat >>conftest.$ac_ext <<_ACEOF |
| 14671 | /* end confdefs.h. */ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14672 | |
| 14673 | #include "confdefs.h" |
| 14674 | #include <unistd.h> |
| 14675 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14676 | int |
| 14677 | main () |
| 14678 | { |
| 14679 | void* p = getpagesize |
| 14680 | ; |
| 14681 | return 0; |
| 14682 | } |
| 14683 | _ACEOF |
| 14684 | rm -f conftest.$ac_objext |
| 14685 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14686 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14687 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14688 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14689 | rm -f conftest.er1 |
| 14690 | cat conftest.err >&5 |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14692 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14693 | { ac_try='test -z "$ac_c_werror_flag" |
| 14694 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14696 | (eval $ac_try) 2>&5 |
| 14697 | ac_status=$? |
| 14698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14699 | (exit $ac_status); }; } && |
| 14700 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14702 | (eval $ac_try) 2>&5 |
| 14703 | ac_status=$? |
| 14704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14705 | (exit $ac_status); }; }; then |
| 14706 | |
| 14707 | cat >>confdefs.h <<\_ACEOF |
| 14708 | #define HAVE_GETPAGESIZE 1 |
| 14709 | _ACEOF |
| 14710 | |
| 14711 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14712 | echo "${ECHO_T}yes" >&6 |
| 14713 | else |
| 14714 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14716 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14717 | echo "$as_me:$LINENO: result: no" >&5 |
| 14718 | echo "${ECHO_T}no" >&6 |
| 14719 | |
| 14720 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14721 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 14722 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14723 | for ac_prog in true |
| 14724 | do |
| 14725 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 14726 | set dummy $ac_prog; ac_word=$2 |
| 14727 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14728 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 14729 | if test "${ac_cv_prog_TRUE+set}" = set; then |
| 14730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14731 | else |
| 14732 | if test -n "$TRUE"; then |
| 14733 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 14734 | else |
| 14735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14736 | for as_dir in $PATH |
| 14737 | do |
| 14738 | IFS=$as_save_IFS |
| 14739 | test -z "$as_dir" && as_dir=. |
| 14740 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14741 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14742 | ac_cv_prog_TRUE="$ac_prog" |
| 14743 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14744 | break 2 |
| 14745 | fi |
| 14746 | done |
| 14747 | done |
| 14748 | |
| 14749 | fi |
| 14750 | fi |
| 14751 | TRUE=$ac_cv_prog_TRUE |
| 14752 | if test -n "$TRUE"; then |
| 14753 | echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 14754 | echo "${ECHO_T}$TRUE" >&6 |
| 14755 | else |
| 14756 | echo "$as_me:$LINENO: result: no" >&5 |
| 14757 | echo "${ECHO_T}no" >&6 |
| 14758 | fi |
| 14759 | |
| 14760 | test -n "$TRUE" && break |
| 14761 | done |
| 14762 | test -n "$TRUE" || TRUE="/bin/true" |
| 14763 | |
| 14764 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14765 | echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 14766 | echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6 |
| 14767 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
| 14768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14769 | else |
| 14770 | ac_check_lib_save_LIBS=$LIBS |
| 14771 | LIBS="-lc $LIBS" |
| 14772 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14773 | /* confdefs.h. */ |
| 14774 | _ACEOF |
| 14775 | cat confdefs.h >>conftest.$ac_ext |
| 14776 | cat >>conftest.$ac_ext <<_ACEOF |
| 14777 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14778 | |
| 14779 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14780 | #ifdef __cplusplus |
| 14781 | extern "C" |
| 14782 | #endif |
| 14783 | /* We use char because int might match the return type of a gcc2 |
| 14784 | builtin and then its argument prototype would still apply. */ |
| 14785 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14786 | int |
| 14787 | main () |
| 14788 | { |
| 14789 | inet_aton (); |
| 14790 | ; |
| 14791 | return 0; |
| 14792 | } |
| 14793 | _ACEOF |
| 14794 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14795 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14796 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14797 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14798 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14799 | rm -f conftest.er1 |
| 14800 | cat conftest.err >&5 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14802 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14803 | { ac_try='test -z "$ac_c_werror_flag" |
| 14804 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14806 | (eval $ac_try) 2>&5 |
| 14807 | ac_status=$? |
| 14808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14809 | (exit $ac_status); }; } && |
| 14810 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14812 | (eval $ac_try) 2>&5 |
| 14813 | ac_status=$? |
| 14814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14815 | (exit $ac_status); }; }; then |
| 14816 | ac_cv_lib_c_inet_aton=yes |
| 14817 | else |
| 14818 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14820 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14821 | ac_cv_lib_c_inet_aton=no |
| 14822 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14823 | rm -f conftest.err conftest.$ac_objext \ |
| 14824 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14825 | LIBS=$ac_check_lib_save_LIBS |
| 14826 | fi |
| 14827 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 14828 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6 |
| 14829 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 14830 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14831 | else |
| 14832 | |
| 14833 | echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 14834 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 |
| 14835 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 14836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14837 | else |
| 14838 | ac_check_lib_save_LIBS=$LIBS |
| 14839 | LIBS="-lresolv $LIBS" |
| 14840 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14841 | /* confdefs.h. */ |
| 14842 | _ACEOF |
| 14843 | cat confdefs.h >>conftest.$ac_ext |
| 14844 | cat >>conftest.$ac_ext <<_ACEOF |
| 14845 | /* end confdefs.h. */ |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14846 | |
| 14847 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 14848 | #ifdef __cplusplus |
| 14849 | extern "C" |
| 14850 | #endif |
| 14851 | /* We use char because int might match the return type of a gcc2 |
| 14852 | builtin and then its argument prototype would still apply. */ |
| 14853 | char inet_aton (); |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14854 | int |
| 14855 | main () |
| 14856 | { |
| 14857 | inet_aton (); |
| 14858 | ; |
| 14859 | return 0; |
| 14860 | } |
| 14861 | _ACEOF |
| 14862 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14863 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14864 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14865 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14866 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14867 | rm -f conftest.er1 |
| 14868 | cat conftest.err >&5 |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14870 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14871 | { ac_try='test -z "$ac_c_werror_flag" |
| 14872 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14874 | (eval $ac_try) 2>&5 |
| 14875 | ac_status=$? |
| 14876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14877 | (exit $ac_status); }; } && |
| 14878 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14880 | (eval $ac_try) 2>&5 |
| 14881 | ac_status=$? |
| 14882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14883 | (exit $ac_status); }; }; then |
| 14884 | ac_cv_lib_resolv_inet_aton=yes |
| 14885 | else |
| 14886 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14887 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14888 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14889 | ac_cv_lib_resolv_inet_aton=no |
| 14890 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14891 | rm -f conftest.err conftest.$ac_objext \ |
| 14892 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14893 | LIBS=$ac_check_lib_save_LIBS |
| 14894 | fi |
| 14895 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 14896 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 |
| 14897 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
| 14898 | cat >>confdefs.h <<_ACEOF |
| 14899 | #define HAVE_LIBRESOLV 1 |
| 14900 | _ACEOF |
| 14901 | |
| 14902 | LIBS="-lresolv $LIBS" |
| 14903 | |
| 14904 | fi |
| 14905 | |
| 14906 | |
| 14907 | fi |
| 14908 | |
| 14909 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14910 | echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 14911 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6 |
| 14912 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14913 | /* confdefs.h. */ |
| 14914 | _ACEOF |
| 14915 | cat confdefs.h >>conftest.$ac_ext |
| 14916 | cat >>conftest.$ac_ext <<_ACEOF |
| 14917 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14918 | |
| 14919 | #include "confdefs.h" |
| 14920 | #include <netdb.h> |
| 14921 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14922 | int |
| 14923 | main () |
| 14924 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14925 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14926 | ; |
| 14927 | return 0; |
| 14928 | } |
| 14929 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14930 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14931 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14932 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14933 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14934 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14935 | rm -f conftest.er1 |
| 14936 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14938 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 14939 | { ac_try='test -z "$ac_c_werror_flag" |
| 14940 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14942 | (eval $ac_try) 2>&5 |
| 14943 | ac_status=$? |
| 14944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14945 | (exit $ac_status); }; } && |
| 14946 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14948 | (eval $ac_try) 2>&5 |
| 14949 | ac_status=$? |
| 14950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14951 | (exit $ac_status); }; }; then |
| 14952 | |
| 14953 | cat >>confdefs.h <<\_ACEOF |
| 14954 | #define HAVE_HSTRERROR 1 |
| 14955 | _ACEOF |
| 14956 | |
| 14957 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14958 | echo "${ECHO_T}yes" >&6 |
| 14959 | else |
| 14960 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14961 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14962 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14963 | echo "$as_me:$LINENO: result: no" >&5 |
| 14964 | echo "${ECHO_T}no" >&6 |
| 14965 | |
| 14966 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14967 | rm -f conftest.err conftest.$ac_objext \ |
| 14968 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14969 | |
| 14970 | echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 14971 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6 |
| 14972 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 14973 | /* confdefs.h. */ |
| 14974 | _ACEOF |
| 14975 | cat confdefs.h >>conftest.$ac_ext |
| 14976 | cat >>conftest.$ac_ext <<_ACEOF |
| 14977 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14978 | |
| 14979 | #include "confdefs.h" |
Martin v. Löwis | 86d6626 | 2006-02-17 08:40:11 +0000 | [diff] [blame] | 14980 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14981 | #include <sys/socket.h> |
| 14982 | #include <netinet/in.h> |
| 14983 | #include <arpa/inet.h> |
| 14984 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14985 | int |
| 14986 | main () |
| 14987 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14988 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14989 | ; |
| 14990 | return 0; |
| 14991 | } |
| 14992 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 14993 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14994 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14995 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 14996 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 14997 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14998 | rm -f conftest.er1 |
| 14999 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15001 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15002 | { ac_try='test -z "$ac_c_werror_flag" |
| 15003 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15005 | (eval $ac_try) 2>&5 |
| 15006 | ac_status=$? |
| 15007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15008 | (exit $ac_status); }; } && |
| 15009 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15011 | (eval $ac_try) 2>&5 |
| 15012 | ac_status=$? |
| 15013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15014 | (exit $ac_status); }; }; then |
| 15015 | |
| 15016 | cat >>confdefs.h <<\_ACEOF |
| 15017 | #define HAVE_INET_ATON 1 |
| 15018 | _ACEOF |
| 15019 | |
| 15020 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15021 | echo "${ECHO_T}yes" >&6 |
| 15022 | else |
| 15023 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15025 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15026 | echo "$as_me:$LINENO: result: no" >&5 |
| 15027 | echo "${ECHO_T}no" >&6 |
| 15028 | |
| 15029 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15030 | rm -f conftest.err conftest.$ac_objext \ |
| 15031 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15032 | |
| 15033 | echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 15034 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6 |
| 15035 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15036 | /* confdefs.h. */ |
| 15037 | _ACEOF |
| 15038 | cat confdefs.h >>conftest.$ac_ext |
| 15039 | cat >>conftest.$ac_ext <<_ACEOF |
| 15040 | /* end confdefs.h. */ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15041 | |
| 15042 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 15043 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15044 | #include <sys/socket.h> |
| 15045 | #include <netinet/in.h> |
| 15046 | #include <arpa/inet.h> |
| 15047 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15048 | int |
| 15049 | main () |
| 15050 | { |
| 15051 | void* p = inet_pton |
| 15052 | ; |
| 15053 | return 0; |
| 15054 | } |
| 15055 | _ACEOF |
| 15056 | rm -f conftest.$ac_objext |
| 15057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15058 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15059 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15060 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15061 | rm -f conftest.er1 |
| 15062 | cat conftest.err >&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15064 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15065 | { ac_try='test -z "$ac_c_werror_flag" |
| 15066 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15068 | (eval $ac_try) 2>&5 |
| 15069 | ac_status=$? |
| 15070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15071 | (exit $ac_status); }; } && |
| 15072 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15074 | (eval $ac_try) 2>&5 |
| 15075 | ac_status=$? |
| 15076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15077 | (exit $ac_status); }; }; then |
| 15078 | |
| 15079 | cat >>confdefs.h <<\_ACEOF |
| 15080 | #define HAVE_INET_PTON 1 |
| 15081 | _ACEOF |
| 15082 | |
| 15083 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15084 | echo "${ECHO_T}yes" >&6 |
| 15085 | else |
| 15086 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15087 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15088 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15089 | echo "$as_me:$LINENO: result: no" >&5 |
| 15090 | echo "${ECHO_T}no" >&6 |
| 15091 | |
| 15092 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15093 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 15094 | |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 15095 | # 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] | 15096 | echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 15097 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6 |
| 15098 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15099 | /* confdefs.h. */ |
| 15100 | _ACEOF |
| 15101 | cat confdefs.h >>conftest.$ac_ext |
| 15102 | cat >>conftest.$ac_ext <<_ACEOF |
| 15103 | /* end confdefs.h. */ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15104 | |
| 15105 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 15106 | #include <unistd.h> |
Martin v. Löwis | d6640d4 | 2003-07-06 09:29:52 +0000 | [diff] [blame] | 15107 | #ifdef HAVE_GRP_H |
| 15108 | #include <grp.h> |
| 15109 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15110 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15111 | int |
| 15112 | main () |
| 15113 | { |
| 15114 | void* p = setgroups |
| 15115 | ; |
| 15116 | return 0; |
| 15117 | } |
| 15118 | _ACEOF |
| 15119 | rm -f conftest.$ac_objext |
| 15120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15121 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15122 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15123 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15124 | rm -f conftest.er1 |
| 15125 | cat conftest.err >&5 |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15127 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15128 | { ac_try='test -z "$ac_c_werror_flag" |
| 15129 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15131 | (eval $ac_try) 2>&5 |
| 15132 | ac_status=$? |
| 15133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15134 | (exit $ac_status); }; } && |
| 15135 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15137 | (eval $ac_try) 2>&5 |
| 15138 | ac_status=$? |
| 15139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15140 | (exit $ac_status); }; }; then |
| 15141 | |
| 15142 | cat >>confdefs.h <<\_ACEOF |
| 15143 | #define HAVE_SETGROUPS 1 |
| 15144 | _ACEOF |
| 15145 | |
| 15146 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15147 | echo "${ECHO_T}yes" >&6 |
| 15148 | else |
| 15149 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15151 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15152 | echo "$as_me:$LINENO: result: no" >&5 |
| 15153 | echo "${ECHO_T}no" >&6 |
| 15154 | |
| 15155 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15156 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 15157 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15158 | # check for openpty and forkpty |
| 15159 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15160 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15161 | for ac_func in openpty |
| 15162 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15163 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15164 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15165 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15166 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15168 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15169 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15170 | /* confdefs.h. */ |
| 15171 | _ACEOF |
| 15172 | cat confdefs.h >>conftest.$ac_ext |
| 15173 | cat >>conftest.$ac_ext <<_ACEOF |
| 15174 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15175 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15176 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15177 | #define $ac_func innocuous_$ac_func |
| 15178 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15179 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15180 | which can conflict with char $ac_func (); below. |
| 15181 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15182 | <limits.h> exists even on freestanding compilers. */ |
| 15183 | |
| 15184 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15185 | # include <limits.h> |
| 15186 | #else |
| 15187 | # include <assert.h> |
| 15188 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15189 | |
| 15190 | #undef $ac_func |
| 15191 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15192 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15193 | #ifdef __cplusplus |
| 15194 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15195 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15196 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15197 | /* 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] | 15198 | builtin and then its argument prototype would still apply. */ |
| 15199 | char $ac_func (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15200 | /* The GNU C library defines this for functions which it implements |
| 15201 | to always fail with ENOSYS. Some functions are actually named |
| 15202 | something starting with __ and the normal name is an alias. */ |
| 15203 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15204 | choke me |
| 15205 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15206 | char (*f) () = $ac_func; |
| 15207 | #endif |
| 15208 | #ifdef __cplusplus |
| 15209 | } |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15210 | #endif |
| 15211 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15212 | int |
| 15213 | main () |
| 15214 | { |
| 15215 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15216 | ; |
| 15217 | return 0; |
| 15218 | } |
| 15219 | _ACEOF |
| 15220 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15221 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15222 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15223 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15224 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15225 | rm -f conftest.er1 |
| 15226 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15228 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15229 | { ac_try='test -z "$ac_c_werror_flag" |
| 15230 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15232 | (eval $ac_try) 2>&5 |
| 15233 | ac_status=$? |
| 15234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15235 | (exit $ac_status); }; } && |
| 15236 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15238 | (eval $ac_try) 2>&5 |
| 15239 | ac_status=$? |
| 15240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15241 | (exit $ac_status); }; }; then |
| 15242 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15243 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15244 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15245 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15246 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15247 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15248 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15249 | rm -f conftest.err conftest.$ac_objext \ |
| 15250 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15251 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15252 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15253 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15254 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15255 | cat >>confdefs.h <<_ACEOF |
| 15256 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15257 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15258 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 15259 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15260 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 15261 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 15262 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 15263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15264 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15265 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15266 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15267 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15268 | /* confdefs.h. */ |
| 15269 | _ACEOF |
| 15270 | cat confdefs.h >>conftest.$ac_ext |
| 15271 | cat >>conftest.$ac_ext <<_ACEOF |
| 15272 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15273 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15274 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15275 | #ifdef __cplusplus |
| 15276 | extern "C" |
| 15277 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15278 | /* 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] | 15279 | builtin and then its argument prototype would still apply. */ |
| 15280 | char openpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15281 | int |
| 15282 | main () |
| 15283 | { |
| 15284 | openpty (); |
| 15285 | ; |
| 15286 | return 0; |
| 15287 | } |
| 15288 | _ACEOF |
| 15289 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15290 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15291 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15292 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15293 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15294 | rm -f conftest.er1 |
| 15295 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15297 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15298 | { ac_try='test -z "$ac_c_werror_flag" |
| 15299 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15301 | (eval $ac_try) 2>&5 |
| 15302 | ac_status=$? |
| 15303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15304 | (exit $ac_status); }; } && |
| 15305 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15307 | (eval $ac_try) 2>&5 |
| 15308 | ac_status=$? |
| 15309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15310 | (exit $ac_status); }; }; then |
| 15311 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15312 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15313 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15315 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15316 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15317 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15318 | rm -f conftest.err conftest.$ac_objext \ |
| 15319 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15320 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15321 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15322 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 15323 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 15324 | if test $ac_cv_lib_util_openpty = yes; then |
| 15325 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15326 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15327 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15328 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 15329 | else |
| 15330 | echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5 |
| 15331 | echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6 |
| 15332 | if test "${ac_cv_lib_bsd_openpty+set}" = set; then |
| 15333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15334 | else |
| 15335 | ac_check_lib_save_LIBS=$LIBS |
| 15336 | LIBS="-lbsd $LIBS" |
| 15337 | cat >conftest.$ac_ext <<_ACEOF |
| 15338 | /* confdefs.h. */ |
| 15339 | _ACEOF |
| 15340 | cat confdefs.h >>conftest.$ac_ext |
| 15341 | cat >>conftest.$ac_ext <<_ACEOF |
| 15342 | /* end confdefs.h. */ |
| 15343 | |
| 15344 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15345 | #ifdef __cplusplus |
| 15346 | extern "C" |
| 15347 | #endif |
| 15348 | /* We use char because int might match the return type of a gcc2 |
| 15349 | builtin and then its argument prototype would still apply. */ |
| 15350 | char openpty (); |
| 15351 | int |
| 15352 | main () |
| 15353 | { |
| 15354 | openpty (); |
| 15355 | ; |
| 15356 | return 0; |
| 15357 | } |
| 15358 | _ACEOF |
| 15359 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15360 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15361 | (eval $ac_link) 2>conftest.er1 |
| 15362 | ac_status=$? |
| 15363 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15364 | rm -f conftest.er1 |
| 15365 | cat conftest.err >&5 |
| 15366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15367 | (exit $ac_status); } && |
| 15368 | { ac_try='test -z "$ac_c_werror_flag" |
| 15369 | || test ! -s conftest.err' |
| 15370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15371 | (eval $ac_try) 2>&5 |
| 15372 | ac_status=$? |
| 15373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15374 | (exit $ac_status); }; } && |
| 15375 | { ac_try='test -s conftest$ac_exeext' |
| 15376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15377 | (eval $ac_try) 2>&5 |
| 15378 | ac_status=$? |
| 15379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15380 | (exit $ac_status); }; }; then |
| 15381 | ac_cv_lib_bsd_openpty=yes |
| 15382 | else |
| 15383 | echo "$as_me: failed program was:" >&5 |
| 15384 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15385 | |
| 15386 | ac_cv_lib_bsd_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15387 | fi |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 15388 | rm -f conftest.err conftest.$ac_objext \ |
| 15389 | conftest$ac_exeext conftest.$ac_ext |
| 15390 | LIBS=$ac_check_lib_save_LIBS |
| 15391 | fi |
| 15392 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5 |
| 15393 | echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6 |
| 15394 | if test $ac_cv_lib_bsd_openpty = yes; then |
| 15395 | cat >>confdefs.h <<\_ACEOF |
| 15396 | #define HAVE_OPENPTY 1 |
| 15397 | _ACEOF |
| 15398 | LIBS="$LIBS -lbsd" |
| 15399 | fi |
| 15400 | |
| 15401 | |
| 15402 | fi |
| 15403 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15404 | |
| 15405 | fi |
| 15406 | done |
| 15407 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15408 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15409 | for ac_func in forkpty |
| 15410 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15411 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15412 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15413 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15414 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15416 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15417 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15418 | /* confdefs.h. */ |
| 15419 | _ACEOF |
| 15420 | cat confdefs.h >>conftest.$ac_ext |
| 15421 | cat >>conftest.$ac_ext <<_ACEOF |
| 15422 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15423 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15424 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15425 | #define $ac_func innocuous_$ac_func |
| 15426 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15427 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15428 | which can conflict with char $ac_func (); below. |
| 15429 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15430 | <limits.h> exists even on freestanding compilers. */ |
| 15431 | |
| 15432 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15433 | # include <limits.h> |
| 15434 | #else |
| 15435 | # include <assert.h> |
| 15436 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15437 | |
| 15438 | #undef $ac_func |
| 15439 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15440 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15441 | #ifdef __cplusplus |
| 15442 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15443 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15444 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15445 | /* 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] | 15446 | builtin and then its argument prototype would still apply. */ |
| 15447 | char $ac_func (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15448 | /* The GNU C library defines this for functions which it implements |
| 15449 | to always fail with ENOSYS. Some functions are actually named |
| 15450 | something starting with __ and the normal name is an alias. */ |
| 15451 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15452 | choke me |
| 15453 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15454 | char (*f) () = $ac_func; |
| 15455 | #endif |
| 15456 | #ifdef __cplusplus |
| 15457 | } |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15458 | #endif |
| 15459 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15460 | int |
| 15461 | main () |
| 15462 | { |
| 15463 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15464 | ; |
| 15465 | return 0; |
| 15466 | } |
| 15467 | _ACEOF |
| 15468 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15469 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15470 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15471 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15472 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15473 | rm -f conftest.er1 |
| 15474 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15476 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15477 | { ac_try='test -z "$ac_c_werror_flag" |
| 15478 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15480 | (eval $ac_try) 2>&5 |
| 15481 | ac_status=$? |
| 15482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15483 | (exit $ac_status); }; } && |
| 15484 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15486 | (eval $ac_try) 2>&5 |
| 15487 | ac_status=$? |
| 15488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15489 | (exit $ac_status); }; }; then |
| 15490 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15491 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15492 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15494 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15495 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15496 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15497 | rm -f conftest.err conftest.$ac_objext \ |
| 15498 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15499 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15500 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15501 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15502 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15503 | cat >>confdefs.h <<_ACEOF |
| 15504 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15505 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15506 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15507 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15508 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 15509 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 15510 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 15511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15512 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15513 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15514 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15515 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15516 | /* confdefs.h. */ |
| 15517 | _ACEOF |
| 15518 | cat confdefs.h >>conftest.$ac_ext |
| 15519 | cat >>conftest.$ac_ext <<_ACEOF |
| 15520 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15521 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15522 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15523 | #ifdef __cplusplus |
| 15524 | extern "C" |
| 15525 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15526 | /* 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] | 15527 | builtin and then its argument prototype would still apply. */ |
| 15528 | char forkpty (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15529 | int |
| 15530 | main () |
| 15531 | { |
| 15532 | forkpty (); |
| 15533 | ; |
| 15534 | return 0; |
| 15535 | } |
| 15536 | _ACEOF |
| 15537 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15538 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15539 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15540 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15541 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15542 | rm -f conftest.er1 |
| 15543 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15545 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15546 | { ac_try='test -z "$ac_c_werror_flag" |
| 15547 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15549 | (eval $ac_try) 2>&5 |
| 15550 | ac_status=$? |
| 15551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15552 | (exit $ac_status); }; } && |
| 15553 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15555 | (eval $ac_try) 2>&5 |
| 15556 | ac_status=$? |
| 15557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15558 | (exit $ac_status); }; }; then |
| 15559 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15560 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15561 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15562 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15563 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15564 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15565 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15566 | rm -f conftest.err conftest.$ac_objext \ |
| 15567 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15568 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15569 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15570 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 15571 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 15572 | if test $ac_cv_lib_util_forkpty = yes; then |
| 15573 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15574 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15575 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15576 | LIBS="$LIBS -lutil" |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 15577 | else |
| 15578 | echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5 |
| 15579 | echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6 |
| 15580 | if test "${ac_cv_lib_bsd_forkpty+set}" = set; then |
| 15581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15582 | else |
| 15583 | ac_check_lib_save_LIBS=$LIBS |
| 15584 | LIBS="-lbsd $LIBS" |
| 15585 | cat >conftest.$ac_ext <<_ACEOF |
| 15586 | /* confdefs.h. */ |
| 15587 | _ACEOF |
| 15588 | cat confdefs.h >>conftest.$ac_ext |
| 15589 | cat >>conftest.$ac_ext <<_ACEOF |
| 15590 | /* end confdefs.h. */ |
| 15591 | |
| 15592 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 15593 | #ifdef __cplusplus |
| 15594 | extern "C" |
| 15595 | #endif |
| 15596 | /* We use char because int might match the return type of a gcc2 |
| 15597 | builtin and then its argument prototype would still apply. */ |
| 15598 | char forkpty (); |
| 15599 | int |
| 15600 | main () |
| 15601 | { |
| 15602 | forkpty (); |
| 15603 | ; |
| 15604 | return 0; |
| 15605 | } |
| 15606 | _ACEOF |
| 15607 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15608 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15609 | (eval $ac_link) 2>conftest.er1 |
| 15610 | ac_status=$? |
| 15611 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15612 | rm -f conftest.er1 |
| 15613 | cat conftest.err >&5 |
| 15614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15615 | (exit $ac_status); } && |
| 15616 | { ac_try='test -z "$ac_c_werror_flag" |
| 15617 | || test ! -s conftest.err' |
| 15618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15619 | (eval $ac_try) 2>&5 |
| 15620 | ac_status=$? |
| 15621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15622 | (exit $ac_status); }; } && |
| 15623 | { ac_try='test -s conftest$ac_exeext' |
| 15624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15625 | (eval $ac_try) 2>&5 |
| 15626 | ac_status=$? |
| 15627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15628 | (exit $ac_status); }; }; then |
| 15629 | ac_cv_lib_bsd_forkpty=yes |
| 15630 | else |
| 15631 | echo "$as_me: failed program was:" >&5 |
| 15632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15633 | |
| 15634 | ac_cv_lib_bsd_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15635 | fi |
Martin v. Löwis | fd9a72a | 2006-01-08 10:07:33 +0000 | [diff] [blame] | 15636 | rm -f conftest.err conftest.$ac_objext \ |
| 15637 | conftest$ac_exeext conftest.$ac_ext |
| 15638 | LIBS=$ac_check_lib_save_LIBS |
| 15639 | fi |
| 15640 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5 |
| 15641 | echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6 |
| 15642 | if test $ac_cv_lib_bsd_forkpty = yes; then |
| 15643 | cat >>confdefs.h <<\_ACEOF |
| 15644 | #define HAVE_FORKPTY 1 |
| 15645 | _ACEOF |
| 15646 | LIBS="$LIBS -lbsd" |
| 15647 | fi |
| 15648 | |
| 15649 | |
| 15650 | fi |
| 15651 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15652 | |
| 15653 | fi |
| 15654 | done |
| 15655 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15656 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15657 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15658 | |
| 15659 | |
| 15660 | |
| 15661 | |
| 15662 | |
| 15663 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 15664 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 15665 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15666 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15667 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15668 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15669 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 15671 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15672 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15673 | /* confdefs.h. */ |
| 15674 | _ACEOF |
| 15675 | cat confdefs.h >>conftest.$ac_ext |
| 15676 | cat >>conftest.$ac_ext <<_ACEOF |
| 15677 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15678 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15679 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15680 | #define $ac_func innocuous_$ac_func |
| 15681 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 15682 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15683 | which can conflict with char $ac_func (); below. |
| 15684 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15685 | <limits.h> exists even on freestanding compilers. */ |
| 15686 | |
| 15687 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15688 | # include <limits.h> |
| 15689 | #else |
| 15690 | # include <assert.h> |
| 15691 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15692 | |
| 15693 | #undef $ac_func |
| 15694 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 15695 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15696 | #ifdef __cplusplus |
| 15697 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15698 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15699 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 15700 | /* 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] | 15701 | builtin and then its argument prototype would still apply. */ |
| 15702 | char $ac_func (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 15703 | /* The GNU C library defines this for functions which it implements |
| 15704 | to always fail with ENOSYS. Some functions are actually named |
| 15705 | something starting with __ and the normal name is an alias. */ |
| 15706 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15707 | choke me |
| 15708 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15709 | char (*f) () = $ac_func; |
| 15710 | #endif |
| 15711 | #ifdef __cplusplus |
| 15712 | } |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 15713 | #endif |
| 15714 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15715 | int |
| 15716 | main () |
| 15717 | { |
| 15718 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15719 | ; |
| 15720 | return 0; |
| 15721 | } |
| 15722 | _ACEOF |
| 15723 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15724 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15725 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15726 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15727 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15728 | rm -f conftest.er1 |
| 15729 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15731 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15732 | { ac_try='test -z "$ac_c_werror_flag" |
| 15733 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15735 | (eval $ac_try) 2>&5 |
| 15736 | ac_status=$? |
| 15737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15738 | (exit $ac_status); }; } && |
| 15739 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15741 | (eval $ac_try) 2>&5 |
| 15742 | ac_status=$? |
| 15743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15744 | (exit $ac_status); }; }; then |
| 15745 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15746 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15747 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15749 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15750 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15751 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15752 | rm -f conftest.err conftest.$ac_objext \ |
| 15753 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15754 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15755 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15756 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15757 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15758 | cat >>confdefs.h <<_ACEOF |
| 15759 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15760 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15761 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15762 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15763 | done |
| 15764 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15765 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15766 | |
| 15767 | |
| 15768 | |
| 15769 | |
| 15770 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15771 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15772 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15773 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15774 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15775 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15776 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15778 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15779 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15780 | /* confdefs.h. */ |
| 15781 | _ACEOF |
| 15782 | cat confdefs.h >>conftest.$ac_ext |
| 15783 | cat >>conftest.$ac_ext <<_ACEOF |
| 15784 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15785 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15786 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15787 | #define $ac_func innocuous_$ac_func |
| 15788 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15789 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15790 | which can conflict with char $ac_func (); below. |
| 15791 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15792 | <limits.h> exists even on freestanding compilers. */ |
| 15793 | |
| 15794 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15795 | # include <limits.h> |
| 15796 | #else |
| 15797 | # include <assert.h> |
| 15798 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15799 | |
| 15800 | #undef $ac_func |
| 15801 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15802 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15803 | #ifdef __cplusplus |
| 15804 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15805 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15806 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15807 | /* 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] | 15808 | builtin and then its argument prototype would still apply. */ |
| 15809 | char $ac_func (); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15810 | /* The GNU C library defines this for functions which it implements |
| 15811 | to always fail with ENOSYS. Some functions are actually named |
| 15812 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15813 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15814 | choke me |
| 15815 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15816 | char (*f) () = $ac_func; |
| 15817 | #endif |
| 15818 | #ifdef __cplusplus |
| 15819 | } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15820 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15821 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15822 | int |
| 15823 | main () |
| 15824 | { |
| 15825 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15826 | ; |
| 15827 | return 0; |
| 15828 | } |
| 15829 | _ACEOF |
| 15830 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15831 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15832 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15833 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15834 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15835 | rm -f conftest.er1 |
| 15836 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15838 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15839 | { ac_try='test -z "$ac_c_werror_flag" |
| 15840 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15842 | (eval $ac_try) 2>&5 |
| 15843 | ac_status=$? |
| 15844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15845 | (exit $ac_status); }; } && |
| 15846 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15848 | (eval $ac_try) 2>&5 |
| 15849 | ac_status=$? |
| 15850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15851 | (exit $ac_status); }; }; then |
| 15852 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15853 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15854 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15855 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15856 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15857 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15858 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15859 | rm -f conftest.err conftest.$ac_objext \ |
| 15860 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15861 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15862 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15863 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15864 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15865 | cat >>confdefs.h <<_ACEOF |
| 15866 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15867 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15868 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15869 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15870 | case $LIBOBJS in |
| 15871 | "$ac_func.$ac_objext" | \ |
| 15872 | *" $ac_func.$ac_objext" | \ |
| 15873 | "$ac_func.$ac_objext "* | \ |
| 15874 | *" $ac_func.$ac_objext "* ) ;; |
| 15875 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; |
| 15876 | esac |
| 15877 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15878 | fi |
| 15879 | done |
| 15880 | |
| 15881 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15882 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15883 | for ac_func in getpgrp |
| 15884 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15885 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15886 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15887 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15888 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15890 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15891 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15892 | /* confdefs.h. */ |
| 15893 | _ACEOF |
| 15894 | cat confdefs.h >>conftest.$ac_ext |
| 15895 | cat >>conftest.$ac_ext <<_ACEOF |
| 15896 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15897 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 15898 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15899 | #define $ac_func innocuous_$ac_func |
| 15900 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15901 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15902 | which can conflict with char $ac_func (); below. |
| 15903 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15904 | <limits.h> exists even on freestanding compilers. */ |
| 15905 | |
| 15906 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15907 | # include <limits.h> |
| 15908 | #else |
| 15909 | # include <assert.h> |
| 15910 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 15911 | |
| 15912 | #undef $ac_func |
| 15913 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15914 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15915 | #ifdef __cplusplus |
| 15916 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15917 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15918 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15919 | /* 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] | 15920 | builtin and then its argument prototype would still apply. */ |
| 15921 | char $ac_func (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15922 | /* The GNU C library defines this for functions which it implements |
| 15923 | to always fail with ENOSYS. Some functions are actually named |
| 15924 | something starting with __ and the normal name is an alias. */ |
| 15925 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15926 | choke me |
| 15927 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15928 | char (*f) () = $ac_func; |
| 15929 | #endif |
| 15930 | #ifdef __cplusplus |
| 15931 | } |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 15932 | #endif |
| 15933 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15934 | int |
| 15935 | main () |
| 15936 | { |
| 15937 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15938 | ; |
| 15939 | return 0; |
| 15940 | } |
| 15941 | _ACEOF |
| 15942 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15943 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15944 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15945 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15946 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15947 | rm -f conftest.er1 |
| 15948 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15950 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 15951 | { ac_try='test -z "$ac_c_werror_flag" |
| 15952 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15954 | (eval $ac_try) 2>&5 |
| 15955 | ac_status=$? |
| 15956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15957 | (exit $ac_status); }; } && |
| 15958 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15960 | (eval $ac_try) 2>&5 |
| 15961 | ac_status=$? |
| 15962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15963 | (exit $ac_status); }; }; then |
| 15964 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15965 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15966 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15968 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15969 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15970 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15971 | rm -f conftest.err conftest.$ac_objext \ |
| 15972 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15973 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15974 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15975 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15976 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15977 | cat >>confdefs.h <<_ACEOF |
| 15978 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15979 | _ACEOF |
| 15980 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 15981 | /* confdefs.h. */ |
| 15982 | _ACEOF |
| 15983 | cat confdefs.h >>conftest.$ac_ext |
| 15984 | cat >>conftest.$ac_ext <<_ACEOF |
| 15985 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15986 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15987 | int |
| 15988 | main () |
| 15989 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15990 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15991 | ; |
| 15992 | return 0; |
| 15993 | } |
| 15994 | _ACEOF |
| 15995 | rm -f conftest.$ac_objext |
| 15996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15997 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15998 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 15999 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16000 | rm -f conftest.er1 |
| 16001 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16003 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16004 | { ac_try='test -z "$ac_c_werror_flag" |
| 16005 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16007 | (eval $ac_try) 2>&5 |
| 16008 | ac_status=$? |
| 16009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16010 | (exit $ac_status); }; } && |
| 16011 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16013 | (eval $ac_try) 2>&5 |
| 16014 | ac_status=$? |
| 16015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16016 | (exit $ac_status); }; }; then |
| 16017 | |
| 16018 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16019 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16020 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16021 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16022 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16023 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16024 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16025 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16026 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16027 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16028 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16029 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16030 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16031 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16032 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16033 | |
| 16034 | for ac_func in setpgrp |
| 16035 | do |
| 16036 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16037 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16038 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16039 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16041 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16042 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16043 | /* confdefs.h. */ |
| 16044 | _ACEOF |
| 16045 | cat confdefs.h >>conftest.$ac_ext |
| 16046 | cat >>conftest.$ac_ext <<_ACEOF |
| 16047 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16048 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16049 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16050 | #define $ac_func innocuous_$ac_func |
| 16051 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16052 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16053 | which can conflict with char $ac_func (); below. |
| 16054 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16055 | <limits.h> exists even on freestanding compilers. */ |
| 16056 | |
| 16057 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16058 | # include <limits.h> |
| 16059 | #else |
| 16060 | # include <assert.h> |
| 16061 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16062 | |
| 16063 | #undef $ac_func |
| 16064 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16065 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 16066 | #ifdef __cplusplus |
| 16067 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16068 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16069 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16070 | /* We use char because int might match the return type of a gcc2 |
| 16071 | builtin and then its argument prototype would still apply. */ |
| 16072 | char $ac_func (); |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16073 | /* The GNU C library defines this for functions which it implements |
| 16074 | to always fail with ENOSYS. Some functions are actually named |
| 16075 | something starting with __ and the normal name is an alias. */ |
| 16076 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 16077 | choke me |
| 16078 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16079 | char (*f) () = $ac_func; |
| 16080 | #endif |
| 16081 | #ifdef __cplusplus |
| 16082 | } |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16083 | #endif |
| 16084 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16085 | int |
| 16086 | main () |
| 16087 | { |
| 16088 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16089 | ; |
| 16090 | return 0; |
| 16091 | } |
| 16092 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16093 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16094 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16095 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16096 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16097 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16098 | rm -f conftest.er1 |
| 16099 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16101 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16102 | { ac_try='test -z "$ac_c_werror_flag" |
| 16103 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16105 | (eval $ac_try) 2>&5 |
| 16106 | ac_status=$? |
| 16107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16108 | (exit $ac_status); }; } && |
| 16109 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16111 | (eval $ac_try) 2>&5 |
| 16112 | ac_status=$? |
| 16113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16114 | (exit $ac_status); }; }; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16115 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16116 | else |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16117 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16118 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16119 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16120 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16121 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16122 | rm -f conftest.err conftest.$ac_objext \ |
| 16123 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16124 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16125 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16126 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16127 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16128 | cat >>confdefs.h <<_ACEOF |
| 16129 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16130 | _ACEOF |
| 16131 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16132 | /* confdefs.h. */ |
| 16133 | _ACEOF |
| 16134 | cat confdefs.h >>conftest.$ac_ext |
| 16135 | cat >>conftest.$ac_ext <<_ACEOF |
| 16136 | /* end confdefs.h. */ |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16137 | #include <unistd.h> |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16138 | int |
| 16139 | main () |
| 16140 | { |
| 16141 | setpgrp(0,0); |
| 16142 | ; |
| 16143 | return 0; |
| 16144 | } |
| 16145 | _ACEOF |
| 16146 | rm -f conftest.$ac_objext |
| 16147 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16148 | (eval $ac_compile) 2>conftest.er1 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16149 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16150 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16151 | rm -f conftest.er1 |
| 16152 | cat conftest.err >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16154 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16155 | { ac_try='test -z "$ac_c_werror_flag" |
| 16156 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16158 | (eval $ac_try) 2>&5 |
| 16159 | ac_status=$? |
| 16160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16161 | (exit $ac_status); }; } && |
| 16162 | { ac_try='test -s conftest.$ac_objext' |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16164 | (eval $ac_try) 2>&5 |
| 16165 | ac_status=$? |
| 16166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16167 | (exit $ac_status); }; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16168 | |
| 16169 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16170 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16171 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 16172 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16173 | |
| 16174 | else |
| 16175 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16176 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16177 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 16178 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16179 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 16180 | |
| 16181 | fi |
| 16182 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 16183 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16184 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16185 | for ac_func in gettimeofday |
| 16186 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16187 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16188 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16189 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16190 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16192 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16193 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16194 | /* confdefs.h. */ |
| 16195 | _ACEOF |
| 16196 | cat confdefs.h >>conftest.$ac_ext |
| 16197 | cat >>conftest.$ac_ext <<_ACEOF |
| 16198 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16199 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16200 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16201 | #define $ac_func innocuous_$ac_func |
| 16202 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16203 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16204 | which can conflict with char $ac_func (); below. |
| 16205 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16206 | <limits.h> exists even on freestanding compilers. */ |
| 16207 | |
| 16208 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16209 | # include <limits.h> |
| 16210 | #else |
| 16211 | # include <assert.h> |
| 16212 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16213 | |
| 16214 | #undef $ac_func |
| 16215 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16216 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16217 | #ifdef __cplusplus |
| 16218 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16219 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16220 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16221 | /* 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] | 16222 | builtin and then its argument prototype would still apply. */ |
| 16223 | char $ac_func (); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16224 | /* The GNU C library defines this for functions which it implements |
| 16225 | to always fail with ENOSYS. Some functions are actually named |
| 16226 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16227 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16228 | choke me |
| 16229 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16230 | char (*f) () = $ac_func; |
| 16231 | #endif |
| 16232 | #ifdef __cplusplus |
| 16233 | } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16234 | #endif |
| 16235 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16236 | int |
| 16237 | main () |
| 16238 | { |
| 16239 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16240 | ; |
| 16241 | return 0; |
| 16242 | } |
| 16243 | _ACEOF |
| 16244 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16245 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16246 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16247 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16248 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16249 | rm -f conftest.er1 |
| 16250 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16252 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16253 | { ac_try='test -z "$ac_c_werror_flag" |
| 16254 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16256 | (eval $ac_try) 2>&5 |
| 16257 | ac_status=$? |
| 16258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16259 | (exit $ac_status); }; } && |
| 16260 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16262 | (eval $ac_try) 2>&5 |
| 16263 | ac_status=$? |
| 16264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16265 | (exit $ac_status); }; }; then |
| 16266 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16267 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16268 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16269 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16270 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16271 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16272 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16273 | rm -f conftest.err conftest.$ac_objext \ |
| 16274 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16275 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16276 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16277 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16278 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16279 | cat >>confdefs.h <<_ACEOF |
| 16280 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16281 | _ACEOF |
| 16282 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16283 | /* confdefs.h. */ |
| 16284 | _ACEOF |
| 16285 | cat confdefs.h >>conftest.$ac_ext |
| 16286 | cat >>conftest.$ac_ext <<_ACEOF |
| 16287 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16288 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16289 | int |
| 16290 | main () |
| 16291 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16292 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16293 | ; |
| 16294 | return 0; |
| 16295 | } |
| 16296 | _ACEOF |
| 16297 | rm -f conftest.$ac_objext |
| 16298 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16299 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16300 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16301 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16302 | rm -f conftest.er1 |
| 16303 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16305 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16306 | { ac_try='test -z "$ac_c_werror_flag" |
| 16307 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16309 | (eval $ac_try) 2>&5 |
| 16310 | ac_status=$? |
| 16311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16312 | (exit $ac_status); }; } && |
| 16313 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16315 | (eval $ac_try) 2>&5 |
| 16316 | ac_status=$? |
| 16317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16318 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16319 | : |
| 16320 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16321 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16322 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16323 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16324 | |
| 16325 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16326 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16327 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16328 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16329 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16330 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16331 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16332 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16333 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 16334 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16335 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16336 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 16337 | echo "$as_me:$LINENO: checking for major" >&5 |
| 16338 | echo $ECHO_N "checking for major... $ECHO_C" >&6 |
| 16339 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16340 | /* confdefs.h. */ |
| 16341 | _ACEOF |
| 16342 | cat confdefs.h >>conftest.$ac_ext |
| 16343 | cat >>conftest.$ac_ext <<_ACEOF |
| 16344 | /* end confdefs.h. */ |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 16345 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 16346 | #if defined(MAJOR_IN_MKDEV) |
| 16347 | #include <sys/mkdev.h> |
| 16348 | #elif defined(MAJOR_IN_SYSMACROS) |
| 16349 | #include <sys/sysmacros.h> |
| 16350 | #else |
| 16351 | #include <sys/types.h> |
| 16352 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 16353 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 16354 | int |
| 16355 | main () |
| 16356 | { |
| 16357 | |
| 16358 | makedev(major(0),minor(0)); |
| 16359 | |
| 16360 | ; |
| 16361 | return 0; |
| 16362 | } |
| 16363 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 16364 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16365 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16366 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 16367 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16368 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16369 | rm -f conftest.er1 |
| 16370 | cat conftest.err >&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 16371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16372 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16373 | { ac_try='test -z "$ac_c_werror_flag" |
| 16374 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16376 | (eval $ac_try) 2>&5 |
| 16377 | ac_status=$? |
| 16378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16379 | (exit $ac_status); }; } && |
| 16380 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 16381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16382 | (eval $ac_try) 2>&5 |
| 16383 | ac_status=$? |
| 16384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16385 | (exit $ac_status); }; }; then |
| 16386 | |
| 16387 | |
| 16388 | cat >>confdefs.h <<\_ACEOF |
| 16389 | #define HAVE_DEVICE_MACROS 1 |
| 16390 | _ACEOF |
| 16391 | |
| 16392 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16393 | echo "${ECHO_T}yes" >&6 |
| 16394 | |
| 16395 | else |
| 16396 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16397 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16398 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 16399 | |
| 16400 | echo "$as_me:$LINENO: result: no" >&5 |
| 16401 | echo "${ECHO_T}no" >&6 |
| 16402 | |
| 16403 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16404 | rm -f conftest.err conftest.$ac_objext \ |
| 16405 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16406 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 16407 | # 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] | 16408 | # for [no]getaddrinfo in netdb.h. |
| 16409 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 16410 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 16411 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16412 | /* confdefs.h. */ |
| 16413 | _ACEOF |
| 16414 | cat confdefs.h >>conftest.$ac_ext |
| 16415 | cat >>conftest.$ac_ext <<_ACEOF |
| 16416 | /* end confdefs.h. */ |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 16417 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 16418 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 16419 | #include <sys/socket.h> |
| 16420 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 16421 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16422 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16423 | int |
| 16424 | main () |
| 16425 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16426 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 16427 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16428 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16429 | ; |
| 16430 | return 0; |
| 16431 | } |
| 16432 | _ACEOF |
| 16433 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16434 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16435 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16436 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16437 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16438 | rm -f conftest.er1 |
| 16439 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16441 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16442 | { ac_try='test -z "$ac_c_werror_flag" |
| 16443 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16445 | (eval $ac_try) 2>&5 |
| 16446 | ac_status=$? |
| 16447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16448 | (exit $ac_status); }; } && |
| 16449 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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); }; }; then |
| 16455 | |
| 16456 | echo "$as_me:$LINENO: result: yes" >&5 |
| 16457 | echo "${ECHO_T}yes" >&6 |
| 16458 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 16459 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16460 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16461 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 16462 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16463 | buggygetaddrinfo=yes |
| 16464 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16465 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16466 | /* confdefs.h. */ |
| 16467 | _ACEOF |
| 16468 | cat confdefs.h >>conftest.$ac_ext |
| 16469 | cat >>conftest.$ac_ext <<_ACEOF |
| 16470 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16471 | |
| 16472 | #include <sys/types.h> |
| 16473 | #include <netdb.h> |
| 16474 | #include <string.h> |
| 16475 | #include <sys/socket.h> |
| 16476 | #include <netinet/in.h> |
| 16477 | |
| 16478 | main() |
| 16479 | { |
| 16480 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 16481 | struct addrinfo hints, *ai, *aitop; |
| 16482 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 16483 | |
| 16484 | for (passive = 0; passive <= 1; passive++) { |
| 16485 | memset(&hints, 0, sizeof(hints)); |
| 16486 | hints.ai_family = AF_UNSPEC; |
| 16487 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 16488 | hints.ai_socktype = SOCK_STREAM; |
Hye-Shik Chang | 54f9439 | 2004-04-14 07:55:31 +0000 | [diff] [blame] | 16489 | hints.ai_protocol = IPPROTO_TCP; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16490 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 16491 | (void)gai_strerror(gaierr); |
| 16492 | goto bad; |
| 16493 | } |
| 16494 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 16495 | if (ai->ai_addr == NULL || |
| 16496 | ai->ai_addrlen == 0 || |
| 16497 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 16498 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 16499 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 16500 | goto bad; |
| 16501 | } |
| 16502 | switch (ai->ai_family) { |
| 16503 | case AF_INET: |
| 16504 | if (strcmp(strport, "54321") != 0) { |
| 16505 | goto bad; |
| 16506 | } |
| 16507 | if (passive) { |
| 16508 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 16509 | goto bad; |
| 16510 | } |
| 16511 | } else { |
| 16512 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 16513 | goto bad; |
| 16514 | } |
| 16515 | } |
| 16516 | inet4++; |
| 16517 | break; |
| 16518 | case AF_INET6: |
| 16519 | if (strcmp(strport, "54321") != 0) { |
| 16520 | goto bad; |
| 16521 | } |
| 16522 | if (passive) { |
| 16523 | if (strcmp(straddr, "::") != 0) { |
| 16524 | goto bad; |
| 16525 | } |
| 16526 | } else { |
| 16527 | if (strcmp(straddr, "::1") != 0) { |
| 16528 | goto bad; |
| 16529 | } |
| 16530 | } |
| 16531 | inet6++; |
| 16532 | break; |
| 16533 | case AF_UNSPEC: |
| 16534 | goto bad; |
| 16535 | break; |
| 16536 | default: |
| 16537 | /* another family support? */ |
| 16538 | break; |
| 16539 | } |
| 16540 | } |
| 16541 | } |
| 16542 | |
| 16543 | if (!(inet4 == 0 || inet4 == 2)) |
| 16544 | goto bad; |
| 16545 | if (!(inet6 == 0 || inet6 == 2)) |
| 16546 | goto bad; |
| 16547 | |
| 16548 | if (aitop) |
| 16549 | freeaddrinfo(aitop); |
| 16550 | exit(0); |
| 16551 | |
| 16552 | bad: |
| 16553 | if (aitop) |
| 16554 | freeaddrinfo(aitop); |
| 16555 | exit(1); |
| 16556 | } |
| 16557 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16558 | _ACEOF |
| 16559 | rm -f conftest$ac_exeext |
| 16560 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16561 | (eval $ac_link) 2>&5 |
| 16562 | ac_status=$? |
| 16563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16564 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16566 | (eval $ac_try) 2>&5 |
| 16567 | ac_status=$? |
| 16568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16569 | (exit $ac_status); }; }; then |
| 16570 | echo "$as_me:$LINENO: result: good" >&5 |
| 16571 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16572 | buggygetaddrinfo=no |
| 16573 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16574 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16575 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16576 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16577 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16578 | ( exit $ac_status ) |
| 16579 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 16580 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16581 | buggygetaddrinfo=yes |
| 16582 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16583 | 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] | 16584 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16585 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16586 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16588 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16589 | |
| 16590 | echo "$as_me:$LINENO: result: no" >&5 |
| 16591 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16592 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16593 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 16594 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16595 | rm -f conftest.err conftest.$ac_objext \ |
| 16596 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16597 | |
| 16598 | if test "$buggygetaddrinfo" = "yes"; then |
| 16599 | if test "$ipv6" = "yes"; then |
| 16600 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 16601 | echo ' or you can specify "--disable-ipv6"'. |
| 16602 | exit 1 |
| 16603 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 16604 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16605 | |
| 16606 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 16607 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16608 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 16609 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16610 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16611 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 16612 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16613 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16614 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16615 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16616 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16617 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16619 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16620 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16621 | /* confdefs.h. */ |
| 16622 | _ACEOF |
| 16623 | cat confdefs.h >>conftest.$ac_ext |
| 16624 | cat >>conftest.$ac_ext <<_ACEOF |
| 16625 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16626 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 16627 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 16628 | #define $ac_func innocuous_$ac_func |
| 16629 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16630 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16631 | which can conflict with char $ac_func (); below. |
| 16632 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16633 | <limits.h> exists even on freestanding compilers. */ |
| 16634 | |
| 16635 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16636 | # include <limits.h> |
| 16637 | #else |
| 16638 | # include <assert.h> |
| 16639 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 16640 | |
| 16641 | #undef $ac_func |
| 16642 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16643 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16644 | #ifdef __cplusplus |
| 16645 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16646 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16647 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16648 | /* 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] | 16649 | builtin and then its argument prototype would still apply. */ |
| 16650 | char $ac_func (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16651 | /* The GNU C library defines this for functions which it implements |
| 16652 | to always fail with ENOSYS. Some functions are actually named |
| 16653 | something starting with __ and the normal name is an alias. */ |
| 16654 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 16655 | choke me |
| 16656 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16657 | char (*f) () = $ac_func; |
| 16658 | #endif |
| 16659 | #ifdef __cplusplus |
| 16660 | } |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16661 | #endif |
| 16662 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16663 | int |
| 16664 | main () |
| 16665 | { |
| 16666 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16667 | ; |
| 16668 | return 0; |
| 16669 | } |
| 16670 | _ACEOF |
| 16671 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16672 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16673 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16674 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16675 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16676 | rm -f conftest.er1 |
| 16677 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16679 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16680 | { ac_try='test -z "$ac_c_werror_flag" |
| 16681 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16683 | (eval $ac_try) 2>&5 |
| 16684 | ac_status=$? |
| 16685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16686 | (exit $ac_status); }; } && |
| 16687 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16689 | (eval $ac_try) 2>&5 |
| 16690 | ac_status=$? |
| 16691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16692 | (exit $ac_status); }; }; then |
| 16693 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16694 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16695 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16696 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16697 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16698 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16699 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16700 | rm -f conftest.err conftest.$ac_objext \ |
| 16701 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16702 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16703 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16704 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16705 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16706 | cat >>confdefs.h <<_ACEOF |
| 16707 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16708 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16709 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 16710 | fi |
| 16711 | done |
| 16712 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16713 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16714 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16715 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 16716 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 16717 | if test "${ac_cv_header_time+set}" = set; then |
| 16718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16719 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16720 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16721 | /* confdefs.h. */ |
| 16722 | _ACEOF |
| 16723 | cat confdefs.h >>conftest.$ac_ext |
| 16724 | cat >>conftest.$ac_ext <<_ACEOF |
| 16725 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16726 | #include <sys/types.h> |
| 16727 | #include <sys/time.h> |
| 16728 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16729 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16730 | int |
| 16731 | main () |
| 16732 | { |
| 16733 | if ((struct tm *) 0) |
| 16734 | return 0; |
| 16735 | ; |
| 16736 | return 0; |
| 16737 | } |
| 16738 | _ACEOF |
| 16739 | rm -f conftest.$ac_objext |
| 16740 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16741 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16742 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16743 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16744 | rm -f conftest.er1 |
| 16745 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16747 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16748 | { ac_try='test -z "$ac_c_werror_flag" |
| 16749 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16751 | (eval $ac_try) 2>&5 |
| 16752 | ac_status=$? |
| 16753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16754 | (exit $ac_status); }; } && |
| 16755 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16757 | (eval $ac_try) 2>&5 |
| 16758 | ac_status=$? |
| 16759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16760 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16761 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16762 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16763 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16764 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16765 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16766 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16767 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16768 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16769 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16770 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 16771 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16772 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16773 | |
| 16774 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16775 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16776 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16777 | |
| 16778 | fi |
| 16779 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16780 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 16781 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 16782 | if test "${ac_cv_struct_tm+set}" = set; then |
| 16783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16784 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16785 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16786 | /* confdefs.h. */ |
| 16787 | _ACEOF |
| 16788 | cat confdefs.h >>conftest.$ac_ext |
| 16789 | cat >>conftest.$ac_ext <<_ACEOF |
| 16790 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16791 | #include <sys/types.h> |
| 16792 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16793 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16794 | int |
| 16795 | main () |
| 16796 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16797 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16798 | ; |
| 16799 | return 0; |
| 16800 | } |
| 16801 | _ACEOF |
| 16802 | rm -f conftest.$ac_objext |
| 16803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16804 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16805 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16806 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16807 | rm -f conftest.er1 |
| 16808 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16810 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16811 | { ac_try='test -z "$ac_c_werror_flag" |
| 16812 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +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); }; } && |
| 16818 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16820 | (eval $ac_try) 2>&5 |
| 16821 | ac_status=$? |
| 16822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16823 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16824 | ac_cv_struct_tm=time.h |
| 16825 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16826 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16827 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16828 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16829 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16830 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16831 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16832 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16833 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 16834 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16835 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16836 | |
| 16837 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16838 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16839 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16840 | |
| 16841 | fi |
| 16842 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16843 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 16844 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 16845 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 16846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16847 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16848 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16849 | /* confdefs.h. */ |
| 16850 | _ACEOF |
| 16851 | cat confdefs.h >>conftest.$ac_ext |
| 16852 | cat >>conftest.$ac_ext <<_ACEOF |
| 16853 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16854 | #include <sys/types.h> |
| 16855 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16856 | |
| 16857 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16858 | int |
| 16859 | main () |
| 16860 | { |
| 16861 | static struct tm ac_aggr; |
| 16862 | if (ac_aggr.tm_zone) |
| 16863 | return 0; |
| 16864 | ; |
| 16865 | return 0; |
| 16866 | } |
| 16867 | _ACEOF |
| 16868 | rm -f conftest.$ac_objext |
| 16869 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16870 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16871 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16872 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16873 | rm -f conftest.er1 |
| 16874 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16876 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16877 | { ac_try='test -z "$ac_c_werror_flag" |
| 16878 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16880 | (eval $ac_try) 2>&5 |
| 16881 | ac_status=$? |
| 16882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16883 | (exit $ac_status); }; } && |
| 16884 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16886 | (eval $ac_try) 2>&5 |
| 16887 | ac_status=$? |
| 16888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16889 | (exit $ac_status); }; }; then |
| 16890 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16891 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16892 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16893 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16894 | |
| 16895 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16896 | /* confdefs.h. */ |
| 16897 | _ACEOF |
| 16898 | cat confdefs.h >>conftest.$ac_ext |
| 16899 | cat >>conftest.$ac_ext <<_ACEOF |
| 16900 | /* end confdefs.h. */ |
| 16901 | #include <sys/types.h> |
| 16902 | #include <$ac_cv_struct_tm> |
| 16903 | |
| 16904 | |
| 16905 | int |
| 16906 | main () |
| 16907 | { |
| 16908 | static struct tm ac_aggr; |
| 16909 | if (sizeof ac_aggr.tm_zone) |
| 16910 | return 0; |
| 16911 | ; |
| 16912 | return 0; |
| 16913 | } |
| 16914 | _ACEOF |
| 16915 | rm -f conftest.$ac_objext |
| 16916 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16917 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16918 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16919 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16920 | rm -f conftest.er1 |
| 16921 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16923 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16924 | { ac_try='test -z "$ac_c_werror_flag" |
| 16925 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16927 | (eval $ac_try) 2>&5 |
| 16928 | ac_status=$? |
| 16929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16930 | (exit $ac_status); }; } && |
| 16931 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16933 | (eval $ac_try) 2>&5 |
| 16934 | ac_status=$? |
| 16935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16936 | (exit $ac_status); }; }; then |
| 16937 | ac_cv_member_struct_tm_tm_zone=yes |
| 16938 | else |
| 16939 | echo "$as_me: failed program was:" >&5 |
| 16940 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 16941 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16942 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16943 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16944 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16945 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16946 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16947 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16948 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 16949 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 16950 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 16951 | |
| 16952 | cat >>confdefs.h <<_ACEOF |
| 16953 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 16954 | _ACEOF |
| 16955 | |
| 16956 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16957 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16958 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16959 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 16960 | |
| 16961 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16962 | #define HAVE_TM_ZONE 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 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16966 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 16967 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 16968 | if test "${ac_cv_var_tzname+set}" = set; then |
| 16969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16970 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16971 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 16972 | /* confdefs.h. */ |
| 16973 | _ACEOF |
| 16974 | cat confdefs.h >>conftest.$ac_ext |
| 16975 | cat >>conftest.$ac_ext <<_ACEOF |
| 16976 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16977 | #include <time.h> |
| 16978 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16979 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16980 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16981 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16982 | int |
| 16983 | main () |
| 16984 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16985 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16986 | ; |
| 16987 | return 0; |
| 16988 | } |
| 16989 | _ACEOF |
| 16990 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16991 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16992 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16993 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 16994 | grep -v '^ *+' conftest.er1 >conftest.err |
| 16995 | rm -f conftest.er1 |
| 16996 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16998 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 16999 | { ac_try='test -z "$ac_c_werror_flag" |
| 17000 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17002 | (eval $ac_try) 2>&5 |
| 17003 | ac_status=$? |
| 17004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17005 | (exit $ac_status); }; } && |
| 17006 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17008 | (eval $ac_try) 2>&5 |
| 17009 | ac_status=$? |
| 17010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17011 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17012 | ac_cv_var_tzname=yes |
| 17013 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17014 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17016 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17017 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17018 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17019 | rm -f conftest.err conftest.$ac_objext \ |
| 17020 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17021 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17022 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 17023 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17024 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17025 | |
| 17026 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17027 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17028 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17029 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17030 | fi |
| 17031 | fi |
| 17032 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17033 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 17034 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 17035 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 17036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17037 | else |
| 17038 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17039 | /* confdefs.h. */ |
| 17040 | _ACEOF |
| 17041 | cat confdefs.h >>conftest.$ac_ext |
| 17042 | cat >>conftest.$ac_ext <<_ACEOF |
| 17043 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17044 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17045 | int |
| 17046 | main () |
| 17047 | { |
| 17048 | static struct stat ac_aggr; |
| 17049 | if (ac_aggr.st_rdev) |
| 17050 | return 0; |
| 17051 | ; |
| 17052 | return 0; |
| 17053 | } |
| 17054 | _ACEOF |
| 17055 | rm -f conftest.$ac_objext |
| 17056 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17057 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17058 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17059 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17060 | rm -f conftest.er1 |
| 17061 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17063 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17064 | { ac_try='test -z "$ac_c_werror_flag" |
| 17065 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17067 | (eval $ac_try) 2>&5 |
| 17068 | ac_status=$? |
| 17069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17070 | (exit $ac_status); }; } && |
| 17071 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17073 | (eval $ac_try) 2>&5 |
| 17074 | ac_status=$? |
| 17075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17076 | (exit $ac_status); }; }; then |
| 17077 | ac_cv_member_struct_stat_st_rdev=yes |
| 17078 | else |
| 17079 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17080 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17081 | |
| 17082 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17083 | /* confdefs.h. */ |
| 17084 | _ACEOF |
| 17085 | cat confdefs.h >>conftest.$ac_ext |
| 17086 | cat >>conftest.$ac_ext <<_ACEOF |
| 17087 | /* end confdefs.h. */ |
| 17088 | $ac_includes_default |
| 17089 | int |
| 17090 | main () |
| 17091 | { |
| 17092 | static struct stat ac_aggr; |
| 17093 | if (sizeof ac_aggr.st_rdev) |
| 17094 | return 0; |
| 17095 | ; |
| 17096 | return 0; |
| 17097 | } |
| 17098 | _ACEOF |
| 17099 | rm -f conftest.$ac_objext |
| 17100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17101 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17102 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17103 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17104 | rm -f conftest.er1 |
| 17105 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17107 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17108 | { ac_try='test -z "$ac_c_werror_flag" |
| 17109 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +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); }; } && |
| 17115 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17117 | (eval $ac_try) 2>&5 |
| 17118 | ac_status=$? |
| 17119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17120 | (exit $ac_status); }; }; then |
| 17121 | ac_cv_member_struct_stat_st_rdev=yes |
| 17122 | else |
| 17123 | echo "$as_me: failed program was:" >&5 |
| 17124 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17125 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17126 | ac_cv_member_struct_stat_st_rdev=no |
| 17127 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17128 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17129 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17130 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17131 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17132 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 17133 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 17134 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 17135 | |
| 17136 | cat >>confdefs.h <<_ACEOF |
| 17137 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 17138 | _ACEOF |
| 17139 | |
| 17140 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 17141 | fi |
| 17142 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17143 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 17144 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 17145 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 17146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 17147 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17148 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17149 | /* confdefs.h. */ |
| 17150 | _ACEOF |
| 17151 | cat confdefs.h >>conftest.$ac_ext |
| 17152 | cat >>conftest.$ac_ext <<_ACEOF |
| 17153 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17154 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17155 | int |
| 17156 | main () |
| 17157 | { |
| 17158 | static struct stat ac_aggr; |
| 17159 | if (ac_aggr.st_blksize) |
| 17160 | return 0; |
| 17161 | ; |
| 17162 | return 0; |
| 17163 | } |
| 17164 | _ACEOF |
| 17165 | rm -f conftest.$ac_objext |
| 17166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17167 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17168 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17169 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17170 | rm -f conftest.er1 |
| 17171 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17173 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17174 | { ac_try='test -z "$ac_c_werror_flag" |
| 17175 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17177 | (eval $ac_try) 2>&5 |
| 17178 | ac_status=$? |
| 17179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17180 | (exit $ac_status); }; } && |
| 17181 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17183 | (eval $ac_try) 2>&5 |
| 17184 | ac_status=$? |
| 17185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17186 | (exit $ac_status); }; }; then |
| 17187 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17188 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17189 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17190 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17191 | |
| 17192 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17193 | /* confdefs.h. */ |
| 17194 | _ACEOF |
| 17195 | cat confdefs.h >>conftest.$ac_ext |
| 17196 | cat >>conftest.$ac_ext <<_ACEOF |
| 17197 | /* end confdefs.h. */ |
| 17198 | $ac_includes_default |
| 17199 | int |
| 17200 | main () |
| 17201 | { |
| 17202 | static struct stat ac_aggr; |
| 17203 | if (sizeof ac_aggr.st_blksize) |
| 17204 | return 0; |
| 17205 | ; |
| 17206 | return 0; |
| 17207 | } |
| 17208 | _ACEOF |
| 17209 | rm -f conftest.$ac_objext |
| 17210 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17211 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17212 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17213 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17214 | rm -f conftest.er1 |
| 17215 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17217 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17218 | { ac_try='test -z "$ac_c_werror_flag" |
| 17219 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17221 | (eval $ac_try) 2>&5 |
| 17222 | ac_status=$? |
| 17223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17224 | (exit $ac_status); }; } && |
| 17225 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17227 | (eval $ac_try) 2>&5 |
| 17228 | ac_status=$? |
| 17229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17230 | (exit $ac_status); }; }; then |
| 17231 | ac_cv_member_struct_stat_st_blksize=yes |
| 17232 | else |
| 17233 | echo "$as_me: failed program was:" >&5 |
| 17234 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17235 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17236 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17237 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17238 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +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 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17241 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17242 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 17243 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 17244 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17245 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17246 | cat >>confdefs.h <<_ACEOF |
| 17247 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 17248 | _ACEOF |
| 17249 | |
| 17250 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 17251 | fi |
| 17252 | |
Hye-Shik Chang | 5f937a7 | 2005-06-02 13:09:30 +0000 | [diff] [blame] | 17253 | echo "$as_me:$LINENO: checking for struct stat.st_flags" >&5 |
| 17254 | echo $ECHO_N "checking for struct stat.st_flags... $ECHO_C" >&6 |
| 17255 | if test "${ac_cv_member_struct_stat_st_flags+set}" = set; then |
| 17256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17257 | else |
| 17258 | cat >conftest.$ac_ext <<_ACEOF |
| 17259 | /* confdefs.h. */ |
| 17260 | _ACEOF |
| 17261 | cat confdefs.h >>conftest.$ac_ext |
| 17262 | cat >>conftest.$ac_ext <<_ACEOF |
| 17263 | /* end confdefs.h. */ |
| 17264 | $ac_includes_default |
| 17265 | int |
| 17266 | main () |
| 17267 | { |
| 17268 | static struct stat ac_aggr; |
| 17269 | if (ac_aggr.st_flags) |
| 17270 | return 0; |
| 17271 | ; |
| 17272 | return 0; |
| 17273 | } |
| 17274 | _ACEOF |
| 17275 | rm -f conftest.$ac_objext |
| 17276 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17277 | (eval $ac_compile) 2>conftest.er1 |
| 17278 | ac_status=$? |
| 17279 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17280 | rm -f conftest.er1 |
| 17281 | cat conftest.err >&5 |
| 17282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17283 | (exit $ac_status); } && |
| 17284 | { ac_try='test -z "$ac_c_werror_flag" |
| 17285 | || test ! -s conftest.err' |
| 17286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17287 | (eval $ac_try) 2>&5 |
| 17288 | ac_status=$? |
| 17289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17290 | (exit $ac_status); }; } && |
| 17291 | { ac_try='test -s conftest.$ac_objext' |
| 17292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17293 | (eval $ac_try) 2>&5 |
| 17294 | ac_status=$? |
| 17295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17296 | (exit $ac_status); }; }; then |
| 17297 | ac_cv_member_struct_stat_st_flags=yes |
| 17298 | else |
| 17299 | echo "$as_me: failed program was:" >&5 |
| 17300 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17301 | |
| 17302 | cat >conftest.$ac_ext <<_ACEOF |
| 17303 | /* confdefs.h. */ |
| 17304 | _ACEOF |
| 17305 | cat confdefs.h >>conftest.$ac_ext |
| 17306 | cat >>conftest.$ac_ext <<_ACEOF |
| 17307 | /* end confdefs.h. */ |
| 17308 | $ac_includes_default |
| 17309 | int |
| 17310 | main () |
| 17311 | { |
| 17312 | static struct stat ac_aggr; |
| 17313 | if (sizeof ac_aggr.st_flags) |
| 17314 | return 0; |
| 17315 | ; |
| 17316 | return 0; |
| 17317 | } |
| 17318 | _ACEOF |
| 17319 | rm -f conftest.$ac_objext |
| 17320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17321 | (eval $ac_compile) 2>conftest.er1 |
| 17322 | ac_status=$? |
| 17323 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17324 | rm -f conftest.er1 |
| 17325 | cat conftest.err >&5 |
| 17326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17327 | (exit $ac_status); } && |
| 17328 | { ac_try='test -z "$ac_c_werror_flag" |
| 17329 | || test ! -s conftest.err' |
| 17330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17331 | (eval $ac_try) 2>&5 |
| 17332 | ac_status=$? |
| 17333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17334 | (exit $ac_status); }; } && |
| 17335 | { ac_try='test -s conftest.$ac_objext' |
| 17336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17337 | (eval $ac_try) 2>&5 |
| 17338 | ac_status=$? |
| 17339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17340 | (exit $ac_status); }; }; then |
| 17341 | ac_cv_member_struct_stat_st_flags=yes |
| 17342 | else |
| 17343 | echo "$as_me: failed program was:" >&5 |
| 17344 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17345 | |
| 17346 | ac_cv_member_struct_stat_st_flags=no |
| 17347 | fi |
| 17348 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17349 | fi |
| 17350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17351 | fi |
| 17352 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_flags" >&5 |
| 17353 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_flags" >&6 |
| 17354 | if test $ac_cv_member_struct_stat_st_flags = yes; then |
| 17355 | |
| 17356 | cat >>confdefs.h <<_ACEOF |
| 17357 | #define HAVE_STRUCT_STAT_ST_FLAGS 1 |
| 17358 | _ACEOF |
| 17359 | |
| 17360 | |
| 17361 | fi |
| 17362 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 17363 | echo "$as_me:$LINENO: checking for struct stat.st_gen" >&5 |
| 17364 | echo $ECHO_N "checking for struct stat.st_gen... $ECHO_C" >&6 |
| 17365 | if test "${ac_cv_member_struct_stat_st_gen+set}" = set; then |
| 17366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17367 | else |
| 17368 | cat >conftest.$ac_ext <<_ACEOF |
| 17369 | /* confdefs.h. */ |
| 17370 | _ACEOF |
| 17371 | cat confdefs.h >>conftest.$ac_ext |
| 17372 | cat >>conftest.$ac_ext <<_ACEOF |
| 17373 | /* end confdefs.h. */ |
| 17374 | $ac_includes_default |
| 17375 | int |
| 17376 | main () |
| 17377 | { |
| 17378 | static struct stat ac_aggr; |
| 17379 | if (ac_aggr.st_gen) |
| 17380 | return 0; |
| 17381 | ; |
| 17382 | return 0; |
| 17383 | } |
| 17384 | _ACEOF |
| 17385 | rm -f conftest.$ac_objext |
| 17386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17387 | (eval $ac_compile) 2>conftest.er1 |
| 17388 | ac_status=$? |
| 17389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17390 | rm -f conftest.er1 |
| 17391 | cat conftest.err >&5 |
| 17392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17393 | (exit $ac_status); } && |
| 17394 | { ac_try='test -z "$ac_c_werror_flag" |
| 17395 | || test ! -s conftest.err' |
| 17396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17397 | (eval $ac_try) 2>&5 |
| 17398 | ac_status=$? |
| 17399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17400 | (exit $ac_status); }; } && |
| 17401 | { ac_try='test -s conftest.$ac_objext' |
| 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); }; }; then |
| 17407 | ac_cv_member_struct_stat_st_gen=yes |
| 17408 | else |
| 17409 | echo "$as_me: failed program was:" >&5 |
| 17410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17411 | |
| 17412 | cat >conftest.$ac_ext <<_ACEOF |
| 17413 | /* confdefs.h. */ |
| 17414 | _ACEOF |
| 17415 | cat confdefs.h >>conftest.$ac_ext |
| 17416 | cat >>conftest.$ac_ext <<_ACEOF |
| 17417 | /* end confdefs.h. */ |
| 17418 | $ac_includes_default |
| 17419 | int |
| 17420 | main () |
| 17421 | { |
| 17422 | static struct stat ac_aggr; |
| 17423 | if (sizeof ac_aggr.st_gen) |
| 17424 | return 0; |
| 17425 | ; |
| 17426 | return 0; |
| 17427 | } |
| 17428 | _ACEOF |
| 17429 | rm -f conftest.$ac_objext |
| 17430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17431 | (eval $ac_compile) 2>conftest.er1 |
| 17432 | ac_status=$? |
| 17433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17434 | rm -f conftest.er1 |
| 17435 | cat conftest.err >&5 |
| 17436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17437 | (exit $ac_status); } && |
| 17438 | { ac_try='test -z "$ac_c_werror_flag" |
| 17439 | || test ! -s conftest.err' |
| 17440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17441 | (eval $ac_try) 2>&5 |
| 17442 | ac_status=$? |
| 17443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17444 | (exit $ac_status); }; } && |
| 17445 | { ac_try='test -s conftest.$ac_objext' |
| 17446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17447 | (eval $ac_try) 2>&5 |
| 17448 | ac_status=$? |
| 17449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17450 | (exit $ac_status); }; }; then |
| 17451 | ac_cv_member_struct_stat_st_gen=yes |
| 17452 | else |
| 17453 | echo "$as_me: failed program was:" >&5 |
| 17454 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17455 | |
| 17456 | ac_cv_member_struct_stat_st_gen=no |
| 17457 | fi |
| 17458 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17459 | fi |
| 17460 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17461 | fi |
| 17462 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_gen" >&5 |
| 17463 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_gen" >&6 |
| 17464 | if test $ac_cv_member_struct_stat_st_gen = yes; then |
| 17465 | |
| 17466 | cat >>confdefs.h <<_ACEOF |
| 17467 | #define HAVE_STRUCT_STAT_ST_GEN 1 |
| 17468 | _ACEOF |
| 17469 | |
| 17470 | |
| 17471 | fi |
| 17472 | |
| 17473 | echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 |
| 17474 | echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6 |
| 17475 | if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then |
| 17476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17477 | else |
| 17478 | cat >conftest.$ac_ext <<_ACEOF |
| 17479 | /* confdefs.h. */ |
| 17480 | _ACEOF |
| 17481 | cat confdefs.h >>conftest.$ac_ext |
| 17482 | cat >>conftest.$ac_ext <<_ACEOF |
| 17483 | /* end confdefs.h. */ |
| 17484 | $ac_includes_default |
| 17485 | int |
| 17486 | main () |
| 17487 | { |
| 17488 | static struct stat ac_aggr; |
| 17489 | if (ac_aggr.st_birthtime) |
| 17490 | return 0; |
| 17491 | ; |
| 17492 | return 0; |
| 17493 | } |
| 17494 | _ACEOF |
| 17495 | rm -f conftest.$ac_objext |
| 17496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17497 | (eval $ac_compile) 2>conftest.er1 |
| 17498 | ac_status=$? |
| 17499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17500 | rm -f conftest.er1 |
| 17501 | cat conftest.err >&5 |
| 17502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17503 | (exit $ac_status); } && |
| 17504 | { ac_try='test -z "$ac_c_werror_flag" |
| 17505 | || test ! -s conftest.err' |
| 17506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17507 | (eval $ac_try) 2>&5 |
| 17508 | ac_status=$? |
| 17509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17510 | (exit $ac_status); }; } && |
| 17511 | { ac_try='test -s conftest.$ac_objext' |
| 17512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17513 | (eval $ac_try) 2>&5 |
| 17514 | ac_status=$? |
| 17515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17516 | (exit $ac_status); }; }; then |
| 17517 | ac_cv_member_struct_stat_st_birthtime=yes |
| 17518 | else |
| 17519 | echo "$as_me: failed program was:" >&5 |
| 17520 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17521 | |
| 17522 | cat >conftest.$ac_ext <<_ACEOF |
| 17523 | /* confdefs.h. */ |
| 17524 | _ACEOF |
| 17525 | cat confdefs.h >>conftest.$ac_ext |
| 17526 | cat >>conftest.$ac_ext <<_ACEOF |
| 17527 | /* end confdefs.h. */ |
| 17528 | $ac_includes_default |
| 17529 | int |
| 17530 | main () |
| 17531 | { |
| 17532 | static struct stat ac_aggr; |
| 17533 | if (sizeof ac_aggr.st_birthtime) |
| 17534 | return 0; |
| 17535 | ; |
| 17536 | return 0; |
| 17537 | } |
| 17538 | _ACEOF |
| 17539 | rm -f conftest.$ac_objext |
| 17540 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17541 | (eval $ac_compile) 2>conftest.er1 |
| 17542 | ac_status=$? |
| 17543 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17544 | rm -f conftest.er1 |
| 17545 | cat conftest.err >&5 |
| 17546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17547 | (exit $ac_status); } && |
| 17548 | { ac_try='test -z "$ac_c_werror_flag" |
| 17549 | || test ! -s conftest.err' |
| 17550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17551 | (eval $ac_try) 2>&5 |
| 17552 | ac_status=$? |
| 17553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17554 | (exit $ac_status); }; } && |
| 17555 | { ac_try='test -s conftest.$ac_objext' |
| 17556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17557 | (eval $ac_try) 2>&5 |
| 17558 | ac_status=$? |
| 17559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17560 | (exit $ac_status); }; }; then |
| 17561 | ac_cv_member_struct_stat_st_birthtime=yes |
| 17562 | else |
| 17563 | echo "$as_me: failed program was:" >&5 |
| 17564 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17565 | |
| 17566 | ac_cv_member_struct_stat_st_birthtime=no |
| 17567 | fi |
| 17568 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17569 | fi |
| 17570 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17571 | fi |
| 17572 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 |
| 17573 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6 |
| 17574 | if test $ac_cv_member_struct_stat_st_birthtime = yes; then |
| 17575 | |
| 17576 | cat >>confdefs.h <<_ACEOF |
| 17577 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
| 17578 | _ACEOF |
| 17579 | |
| 17580 | |
| 17581 | fi |
| 17582 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17583 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 17584 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 17585 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 17586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 17587 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17588 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17589 | /* confdefs.h. */ |
| 17590 | _ACEOF |
| 17591 | cat confdefs.h >>conftest.$ac_ext |
| 17592 | cat >>conftest.$ac_ext <<_ACEOF |
| 17593 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17594 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17595 | int |
| 17596 | main () |
| 17597 | { |
| 17598 | static struct stat ac_aggr; |
| 17599 | if (ac_aggr.st_blocks) |
| 17600 | return 0; |
| 17601 | ; |
| 17602 | return 0; |
| 17603 | } |
| 17604 | _ACEOF |
| 17605 | rm -f conftest.$ac_objext |
| 17606 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17607 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17608 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17609 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17610 | rm -f conftest.er1 |
| 17611 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17613 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17614 | { ac_try='test -z "$ac_c_werror_flag" |
| 17615 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17617 | (eval $ac_try) 2>&5 |
| 17618 | ac_status=$? |
| 17619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17620 | (exit $ac_status); }; } && |
| 17621 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17623 | (eval $ac_try) 2>&5 |
| 17624 | ac_status=$? |
| 17625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17626 | (exit $ac_status); }; }; then |
| 17627 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17628 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17629 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17630 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17631 | |
| 17632 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17633 | /* confdefs.h. */ |
| 17634 | _ACEOF |
| 17635 | cat confdefs.h >>conftest.$ac_ext |
| 17636 | cat >>conftest.$ac_ext <<_ACEOF |
| 17637 | /* end confdefs.h. */ |
| 17638 | $ac_includes_default |
| 17639 | int |
| 17640 | main () |
| 17641 | { |
| 17642 | static struct stat ac_aggr; |
| 17643 | if (sizeof ac_aggr.st_blocks) |
| 17644 | return 0; |
| 17645 | ; |
| 17646 | return 0; |
| 17647 | } |
| 17648 | _ACEOF |
| 17649 | rm -f conftest.$ac_objext |
| 17650 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17651 | (eval $ac_compile) 2>conftest.er1 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17652 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17653 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17654 | rm -f conftest.er1 |
| 17655 | cat conftest.err >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17657 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17658 | { ac_try='test -z "$ac_c_werror_flag" |
| 17659 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17661 | (eval $ac_try) 2>&5 |
| 17662 | ac_status=$? |
| 17663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17664 | (exit $ac_status); }; } && |
| 17665 | { ac_try='test -s conftest.$ac_objext' |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17667 | (eval $ac_try) 2>&5 |
| 17668 | ac_status=$? |
| 17669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17670 | (exit $ac_status); }; }; then |
| 17671 | ac_cv_member_struct_stat_st_blocks=yes |
| 17672 | else |
| 17673 | echo "$as_me: failed program was:" >&5 |
| 17674 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17675 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17676 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17677 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17678 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17679 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17680 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17681 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17682 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 17683 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 17684 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17685 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17686 | cat >>confdefs.h <<_ACEOF |
| 17687 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 17688 | _ACEOF |
| 17689 | |
| 17690 | |
| 17691 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 17692 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17693 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 17694 | |
| 17695 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17696 | case $LIBOBJS in |
| 17697 | "fileblocks.$ac_objext" | \ |
| 17698 | *" fileblocks.$ac_objext" | \ |
| 17699 | "fileblocks.$ac_objext "* | \ |
| 17700 | *" fileblocks.$ac_objext "* ) ;; |
| 17701 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;; |
| 17702 | esac |
| 17703 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 17704 | fi |
| 17705 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17706 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17707 | |
| 17708 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 17709 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 17710 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 17711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17712 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17713 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17714 | /* confdefs.h. */ |
| 17715 | _ACEOF |
| 17716 | cat confdefs.h >>conftest.$ac_ext |
| 17717 | cat >>conftest.$ac_ext <<_ACEOF |
| 17718 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17719 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17720 | int |
| 17721 | main () |
| 17722 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17723 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17724 | ; |
| 17725 | return 0; |
| 17726 | } |
| 17727 | _ACEOF |
| 17728 | rm -f conftest.$ac_objext |
| 17729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17730 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17731 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17732 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17733 | rm -f conftest.er1 |
| 17734 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17736 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17737 | { ac_try='test -z "$ac_c_werror_flag" |
| 17738 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17740 | (eval $ac_try) 2>&5 |
| 17741 | ac_status=$? |
| 17742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17743 | (exit $ac_status); }; } && |
| 17744 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17746 | (eval $ac_try) 2>&5 |
| 17747 | ac_status=$? |
| 17748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17749 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17750 | ac_cv_header_time_altzone=yes |
| 17751 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17752 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17753 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17754 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17755 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17756 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17757 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17758 | fi |
| 17759 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17760 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 17761 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17762 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17763 | |
| 17764 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17765 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17766 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17767 | |
| 17768 | fi |
| 17769 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 17770 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17771 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 17772 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 17773 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17774 | /* confdefs.h. */ |
| 17775 | _ACEOF |
| 17776 | cat confdefs.h >>conftest.$ac_ext |
| 17777 | cat >>conftest.$ac_ext <<_ACEOF |
| 17778 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17779 | |
| 17780 | #include <sys/types.h> |
| 17781 | #include <sys/select.h> |
| 17782 | #include <sys/time.h> |
| 17783 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17784 | int |
| 17785 | main () |
| 17786 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17787 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17788 | ; |
| 17789 | return 0; |
| 17790 | } |
| 17791 | _ACEOF |
| 17792 | rm -f conftest.$ac_objext |
| 17793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17794 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17795 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17796 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17797 | rm -f conftest.er1 |
| 17798 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17800 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17801 | { ac_try='test -z "$ac_c_werror_flag" |
| 17802 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17804 | (eval $ac_try) 2>&5 |
| 17805 | ac_status=$? |
| 17806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17807 | (exit $ac_status); }; } && |
| 17808 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17810 | (eval $ac_try) 2>&5 |
| 17811 | ac_status=$? |
| 17812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17813 | (exit $ac_status); }; }; then |
| 17814 | |
| 17815 | |
| 17816 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17817 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17818 | _ACEOF |
| 17819 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 17820 | was_it_defined=yes |
| 17821 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 17822 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17823 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17824 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17825 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17826 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17827 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17828 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 17829 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17830 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17831 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 17832 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 17833 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 17834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17835 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17836 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17837 | /* confdefs.h. */ |
| 17838 | _ACEOF |
| 17839 | cat confdefs.h >>conftest.$ac_ext |
| 17840 | cat >>conftest.$ac_ext <<_ACEOF |
| 17841 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17842 | |
| 17843 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17844 | int |
| 17845 | main () |
| 17846 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17847 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17848 | ; |
| 17849 | return 0; |
| 17850 | } |
| 17851 | _ACEOF |
| 17852 | rm -f conftest.$ac_objext |
| 17853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17854 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17855 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17856 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17857 | rm -f conftest.er1 |
| 17858 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17860 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17861 | { ac_try='test -z "$ac_c_werror_flag" |
| 17862 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17864 | (eval $ac_try) 2>&5 |
| 17865 | ac_status=$? |
| 17866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17867 | (exit $ac_status); }; } && |
| 17868 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17870 | (eval $ac_try) 2>&5 |
| 17871 | ac_status=$? |
| 17872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17873 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17874 | ac_cv_struct_addrinfo=yes |
| 17875 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17876 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17878 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17879 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17880 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17881 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17882 | fi |
| 17883 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17884 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 17885 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17886 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17887 | |
| 17888 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17889 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17890 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17891 | |
| 17892 | fi |
| 17893 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17894 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 17895 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 17896 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 17897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17898 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17899 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17900 | /* confdefs.h. */ |
| 17901 | _ACEOF |
| 17902 | cat confdefs.h >>conftest.$ac_ext |
| 17903 | cat >>conftest.$ac_ext <<_ACEOF |
| 17904 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17905 | |
| 17906 | # include <sys/types.h> |
| 17907 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17908 | int |
| 17909 | main () |
| 17910 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17911 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17912 | ; |
| 17913 | return 0; |
| 17914 | } |
| 17915 | _ACEOF |
| 17916 | rm -f conftest.$ac_objext |
| 17917 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17918 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17919 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17920 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17921 | rm -f conftest.er1 |
| 17922 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17924 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17925 | { ac_try='test -z "$ac_c_werror_flag" |
| 17926 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17928 | (eval $ac_try) 2>&5 |
| 17929 | ac_status=$? |
| 17930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17931 | (exit $ac_status); }; } && |
| 17932 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17934 | (eval $ac_try) 2>&5 |
| 17935 | ac_status=$? |
| 17936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17937 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17938 | ac_cv_struct_sockaddr_storage=yes |
| 17939 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17940 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17941 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 17942 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17943 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17944 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17945 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17946 | fi |
| 17947 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17948 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 17949 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17950 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17951 | |
| 17952 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17953 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17954 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 17955 | |
| 17956 | fi |
| 17957 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17958 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17959 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17960 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17961 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 17962 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 17963 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 17964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17965 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17966 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 17967 | /* confdefs.h. */ |
| 17968 | _ACEOF |
| 17969 | cat confdefs.h >>conftest.$ac_ext |
| 17970 | cat >>conftest.$ac_ext <<_ACEOF |
| 17971 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17972 | $ac_includes_default |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17973 | int |
| 17974 | main () |
| 17975 | { |
| 17976 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 17977 | test_array [0] = 0 |
| 17978 | |
| 17979 | ; |
| 17980 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17981 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17982 | _ACEOF |
| 17983 | rm -f conftest.$ac_objext |
| 17984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17985 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17986 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17987 | grep -v '^ *+' conftest.er1 >conftest.err |
| 17988 | rm -f conftest.er1 |
| 17989 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17991 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 17992 | { ac_try='test -z "$ac_c_werror_flag" |
| 17993 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 17994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17995 | (eval $ac_try) 2>&5 |
| 17996 | ac_status=$? |
| 17997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17998 | (exit $ac_status); }; } && |
| 17999 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18001 | (eval $ac_try) 2>&5 |
| 18002 | ac_status=$? |
| 18003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18004 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18005 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18006 | else |
| 18007 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18008 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18009 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18010 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18011 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18013 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18014 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 18015 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18016 | 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] | 18017 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18018 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18019 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18020 | |
| 18021 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18022 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18023 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 18024 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 18025 | if test "${ac_cv_c_const+set}" = set; then |
| 18026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 18027 | else |
| 18028 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18029 | /* confdefs.h. */ |
| 18030 | _ACEOF |
| 18031 | cat confdefs.h >>conftest.$ac_ext |
| 18032 | cat >>conftest.$ac_ext <<_ACEOF |
| 18033 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18034 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18035 | int |
| 18036 | main () |
| 18037 | { |
| 18038 | /* FIXME: Include the comments suggested by Paul. */ |
| 18039 | #ifndef __cplusplus |
| 18040 | /* Ultrix mips cc rejects this. */ |
| 18041 | typedef int charset[2]; |
| 18042 | const charset x; |
| 18043 | /* SunOS 4.1.1 cc rejects this. */ |
| 18044 | char const *const *ccp; |
| 18045 | char **p; |
| 18046 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 18047 | struct point {int x, y;}; |
| 18048 | static struct point const zero = {0,0}; |
| 18049 | /* AIX XL C 1.02.0.0 rejects this. |
| 18050 | It does not let you subtract one const X* pointer from another in |
| 18051 | an arm of an if-expression whose if-part is not a constant |
| 18052 | expression */ |
| 18053 | const char *g = "string"; |
| 18054 | ccp = &g + (g ? g-g : 0); |
| 18055 | /* HPUX 7.0 cc rejects these. */ |
| 18056 | ++ccp; |
| 18057 | p = (char**) ccp; |
| 18058 | ccp = (char const *const *) p; |
| 18059 | { /* SCO 3.2v4 cc rejects this. */ |
| 18060 | char *t; |
| 18061 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18062 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18063 | *t++ = 0; |
| 18064 | } |
| 18065 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 18066 | int x[] = {25, 17}; |
| 18067 | const int *foo = &x[0]; |
| 18068 | ++foo; |
| 18069 | } |
| 18070 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 18071 | typedef const int *iptr; |
| 18072 | iptr p = 0; |
| 18073 | ++p; |
| 18074 | } |
| 18075 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 18076 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 18077 | struct s { int j; const int *ap[3]; }; |
| 18078 | struct s *b; b->j = 5; |
| 18079 | } |
| 18080 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 18081 | const int foo = 10; |
| 18082 | } |
| 18083 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18084 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18085 | ; |
| 18086 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18087 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18088 | _ACEOF |
| 18089 | rm -f conftest.$ac_objext |
| 18090 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18091 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18092 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18093 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18094 | rm -f conftest.er1 |
| 18095 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18097 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18098 | { ac_try='test -z "$ac_c_werror_flag" |
| 18099 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18101 | (eval $ac_try) 2>&5 |
| 18102 | ac_status=$? |
| 18103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18104 | (exit $ac_status); }; } && |
| 18105 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18107 | (eval $ac_try) 2>&5 |
| 18108 | ac_status=$? |
| 18109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18110 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18111 | ac_cv_c_const=yes |
| 18112 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18113 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18115 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18116 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18117 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18118 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18119 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18120 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 18121 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18122 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18123 | |
| 18124 | cat >>confdefs.h <<\_ACEOF |
| 18125 | #define const |
| 18126 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18127 | |
| 18128 | fi |
| 18129 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18130 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 18131 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18132 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 18133 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 18134 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18135 | /* confdefs.h. */ |
| 18136 | _ACEOF |
| 18137 | cat confdefs.h >>conftest.$ac_ext |
| 18138 | cat >>conftest.$ac_ext <<_ACEOF |
| 18139 | /* end confdefs.h. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18140 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18141 | int |
| 18142 | main () |
| 18143 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18144 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18145 | ; |
| 18146 | return 0; |
| 18147 | } |
| 18148 | _ACEOF |
| 18149 | rm -f conftest.$ac_objext |
| 18150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18151 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18152 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18153 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18154 | rm -f conftest.er1 |
| 18155 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18157 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18158 | { ac_try='test -z "$ac_c_werror_flag" |
| 18159 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18161 | (eval $ac_try) 2>&5 |
| 18162 | ac_status=$? |
| 18163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18164 | (exit $ac_status); }; } && |
| 18165 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18167 | (eval $ac_try) 2>&5 |
| 18168 | ac_status=$? |
| 18169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18170 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 18171 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18172 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18173 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18174 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18175 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18176 | |
| 18177 | cat >>confdefs.h <<\_ACEOF |
| 18178 | #define volatile |
| 18179 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18180 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 18181 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18182 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18183 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18184 | echo "$as_me:$LINENO: result: $works" >&5 |
| 18185 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18186 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 18187 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18188 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 18189 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 18190 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18191 | /* confdefs.h. */ |
| 18192 | _ACEOF |
| 18193 | cat confdefs.h >>conftest.$ac_ext |
| 18194 | cat >>conftest.$ac_ext <<_ACEOF |
| 18195 | /* end confdefs.h. */ |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 18196 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18197 | int |
| 18198 | main () |
| 18199 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18200 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18201 | ; |
| 18202 | return 0; |
| 18203 | } |
| 18204 | _ACEOF |
| 18205 | rm -f conftest.$ac_objext |
| 18206 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18207 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18208 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18209 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18210 | rm -f conftest.er1 |
| 18211 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18213 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18214 | { ac_try='test -z "$ac_c_werror_flag" |
| 18215 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18217 | (eval $ac_try) 2>&5 |
| 18218 | ac_status=$? |
| 18219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18220 | (exit $ac_status); }; } && |
| 18221 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18223 | (eval $ac_try) 2>&5 |
| 18224 | ac_status=$? |
| 18225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18226 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 18227 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 18228 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18229 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18230 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18231 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18232 | |
| 18233 | cat >>confdefs.h <<\_ACEOF |
| 18234 | #define signed |
| 18235 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18236 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 18237 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18238 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18239 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18240 | echo "$as_me:$LINENO: result: $works" >&5 |
| 18241 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18242 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 18243 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18244 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 18245 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 18246 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18247 | /* confdefs.h. */ |
| 18248 | _ACEOF |
| 18249 | cat confdefs.h >>conftest.$ac_ext |
| 18250 | cat >>conftest.$ac_ext <<_ACEOF |
| 18251 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18252 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18253 | int |
| 18254 | main () |
| 18255 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18256 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18257 | ; |
| 18258 | return 0; |
| 18259 | } |
| 18260 | _ACEOF |
| 18261 | rm -f conftest.$ac_objext |
| 18262 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18263 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18264 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18265 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18266 | rm -f conftest.er1 |
| 18267 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18269 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18270 | { ac_try='test -z "$ac_c_werror_flag" |
| 18271 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18273 | (eval $ac_try) 2>&5 |
| 18274 | ac_status=$? |
| 18275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18276 | (exit $ac_status); }; } && |
| 18277 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18279 | (eval $ac_try) 2>&5 |
| 18280 | ac_status=$? |
| 18281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18282 | (exit $ac_status); }; }; then |
| 18283 | |
| 18284 | |
| 18285 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18286 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18287 | _ACEOF |
| 18288 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 18289 | have_prototypes=yes |
| 18290 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 18291 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18292 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18293 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18294 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18295 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18296 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18297 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 18298 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18299 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 18300 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18301 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 18302 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 18303 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18304 | /* confdefs.h. */ |
| 18305 | _ACEOF |
| 18306 | cat confdefs.h >>conftest.$ac_ext |
| 18307 | cat >>conftest.$ac_ext <<_ACEOF |
| 18308 | /* end confdefs.h. */ |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18309 | |
| 18310 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 18311 | int foo(int x, ...) { |
| 18312 | va_list va; |
| 18313 | va_start(va, x); |
| 18314 | va_arg(va, int); |
| 18315 | va_arg(va, char *); |
| 18316 | va_arg(va, double); |
| 18317 | return 0; |
| 18318 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18319 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18320 | int |
| 18321 | main () |
| 18322 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 18323 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18324 | ; |
| 18325 | return 0; |
| 18326 | } |
| 18327 | _ACEOF |
| 18328 | rm -f conftest.$ac_objext |
| 18329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18330 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18331 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18333 | rm -f conftest.er1 |
| 18334 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18336 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18337 | { ac_try='test -z "$ac_c_werror_flag" |
| 18338 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18340 | (eval $ac_try) 2>&5 |
| 18341 | ac_status=$? |
| 18342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18343 | (exit $ac_status); }; } && |
| 18344 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18346 | (eval $ac_try) 2>&5 |
| 18347 | ac_status=$? |
| 18348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18349 | (exit $ac_status); }; }; then |
| 18350 | |
| 18351 | |
| 18352 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18353 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18354 | _ACEOF |
| 18355 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 18356 | works=yes |
| 18357 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 18358 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18359 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18360 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18361 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18362 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18363 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18364 | echo "$as_me:$LINENO: result: $works" >&5 |
| 18365 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18366 | |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 18367 | # check for socketpair |
| 18368 | echo "$as_me:$LINENO: checking for socketpair" >&5 |
| 18369 | echo $ECHO_N "checking for socketpair... $ECHO_C" >&6 |
| 18370 | cat >conftest.$ac_ext <<_ACEOF |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 18371 | /* confdefs.h. */ |
| 18372 | _ACEOF |
| 18373 | cat confdefs.h >>conftest.$ac_ext |
| 18374 | cat >>conftest.$ac_ext <<_ACEOF |
| 18375 | /* end confdefs.h. */ |
| 18376 | |
| 18377 | #include <sys/types.h> |
| 18378 | #include <sys/socket.h> |
| 18379 | |
| 18380 | int |
| 18381 | main () |
| 18382 | { |
| 18383 | void *x=socketpair |
| 18384 | ; |
| 18385 | return 0; |
| 18386 | } |
| 18387 | _ACEOF |
| 18388 | rm -f conftest.$ac_objext |
| 18389 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18390 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 18391 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18392 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18393 | rm -f conftest.er1 |
| 18394 | cat conftest.err >&5 |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 18395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18396 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18397 | { ac_try='test -z "$ac_c_werror_flag" |
| 18398 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18400 | (eval $ac_try) 2>&5 |
| 18401 | ac_status=$? |
| 18402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18403 | (exit $ac_status); }; } && |
| 18404 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 18405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18406 | (eval $ac_try) 2>&5 |
| 18407 | ac_status=$? |
| 18408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18409 | (exit $ac_status); }; }; then |
| 18410 | |
| 18411 | cat >>confdefs.h <<\_ACEOF |
| 18412 | #define HAVE_SOCKETPAIR 1 |
| 18413 | _ACEOF |
| 18414 | |
| 18415 | echo "$as_me:$LINENO: result: yes" >&5 |
| 18416 | echo "${ECHO_T}yes" >&6 |
| 18417 | else |
| 18418 | echo "$as_me: failed program was:" >&5 |
| 18419 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18420 | |
| 18421 | echo "$as_me:$LINENO: result: no" >&5 |
| 18422 | echo "${ECHO_T}no" >&6 |
| 18423 | |
| 18424 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18425 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | d632050 | 2004-08-12 13:45:08 +0000 | [diff] [blame] | 18426 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18427 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18428 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 18429 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 18430 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18431 | /* confdefs.h. */ |
| 18432 | _ACEOF |
| 18433 | cat confdefs.h >>conftest.$ac_ext |
| 18434 | cat >>conftest.$ac_ext <<_ACEOF |
| 18435 | /* end confdefs.h. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18436 | #include <sys/types.h> |
| 18437 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18438 | int |
| 18439 | main () |
| 18440 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18441 | struct sockaddr x; |
| 18442 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18443 | ; |
| 18444 | return 0; |
| 18445 | } |
| 18446 | _ACEOF |
| 18447 | rm -f conftest.$ac_objext |
| 18448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18449 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18450 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18451 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18452 | rm -f conftest.er1 |
| 18453 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18455 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18456 | { ac_try='test -z "$ac_c_werror_flag" |
| 18457 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18459 | (eval $ac_try) 2>&5 |
| 18460 | ac_status=$? |
| 18461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18462 | (exit $ac_status); }; } && |
| 18463 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18465 | (eval $ac_try) 2>&5 |
| 18466 | ac_status=$? |
| 18467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18468 | (exit $ac_status); }; }; then |
| 18469 | echo "$as_me:$LINENO: result: yes" >&5 |
| 18470 | echo "${ECHO_T}yes" >&6 |
| 18471 | |
| 18472 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18473 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18474 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18475 | |
| 18476 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18477 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18478 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18479 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18480 | echo "$as_me:$LINENO: result: no" >&5 |
| 18481 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18482 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18483 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 18484 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 18485 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18486 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 18487 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 18488 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18489 | /* confdefs.h. */ |
| 18490 | _ACEOF |
| 18491 | cat confdefs.h >>conftest.$ac_ext |
| 18492 | cat >>conftest.$ac_ext <<_ACEOF |
| 18493 | /* end confdefs.h. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18494 | |
| 18495 | #ifdef HAVE_STDARG_PROTOTYPES |
| 18496 | #include <stdarg.h> |
| 18497 | #else |
| 18498 | #include <varargs.h> |
| 18499 | #endif |
| 18500 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18501 | int |
| 18502 | main () |
| 18503 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18504 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18505 | ; |
| 18506 | return 0; |
| 18507 | } |
| 18508 | _ACEOF |
| 18509 | rm -f conftest.$ac_objext |
| 18510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18511 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18512 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18513 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18514 | rm -f conftest.er1 |
| 18515 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18517 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18518 | { ac_try='test -z "$ac_c_werror_flag" |
| 18519 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18521 | (eval $ac_try) 2>&5 |
| 18522 | ac_status=$? |
| 18523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18524 | (exit $ac_status); }; } && |
| 18525 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18527 | (eval $ac_try) 2>&5 |
| 18528 | ac_status=$? |
| 18529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18530 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18531 | : |
| 18532 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18533 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18534 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18535 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18536 | |
| 18537 | |
| 18538 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18539 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18540 | _ACEOF |
| 18541 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 18542 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 18543 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18544 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18545 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18546 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 18547 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18548 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18549 | # 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] | 18550 | |
| 18551 | |
| 18552 | |
| 18553 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 18554 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 18555 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 18556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18557 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18558 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18559 | /* confdefs.h. */ |
| 18560 | _ACEOF |
| 18561 | cat confdefs.h >>conftest.$ac_ext |
| 18562 | cat >>conftest.$ac_ext <<_ACEOF |
| 18563 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18564 | /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r. |
| 18565 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18566 | #define gethostbyname_r innocuous_gethostbyname_r |
| 18567 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18568 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18569 | which can conflict with char gethostbyname_r (); below. |
| 18570 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18571 | <limits.h> exists even on freestanding compilers. */ |
| 18572 | |
| 18573 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18574 | # include <limits.h> |
| 18575 | #else |
| 18576 | # include <assert.h> |
| 18577 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18578 | |
| 18579 | #undef gethostbyname_r |
| 18580 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18581 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18582 | #ifdef __cplusplus |
| 18583 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18584 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18585 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18586 | /* 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] | 18587 | builtin and then its argument prototype would still apply. */ |
| 18588 | char gethostbyname_r (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18589 | /* The GNU C library defines this for functions which it implements |
| 18590 | to always fail with ENOSYS. Some functions are actually named |
| 18591 | something starting with __ and the normal name is an alias. */ |
| 18592 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 18593 | choke me |
| 18594 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18595 | char (*f) () = gethostbyname_r; |
| 18596 | #endif |
| 18597 | #ifdef __cplusplus |
| 18598 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18599 | #endif |
| 18600 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18601 | int |
| 18602 | main () |
| 18603 | { |
| 18604 | return f != gethostbyname_r; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18605 | ; |
| 18606 | return 0; |
| 18607 | } |
| 18608 | _ACEOF |
| 18609 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18610 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18611 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18612 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18613 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18614 | rm -f conftest.er1 |
| 18615 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18617 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18618 | { ac_try='test -z "$ac_c_werror_flag" |
| 18619 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18621 | (eval $ac_try) 2>&5 |
| 18622 | ac_status=$? |
| 18623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18624 | (exit $ac_status); }; } && |
| 18625 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18627 | (eval $ac_try) 2>&5 |
| 18628 | ac_status=$? |
| 18629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18630 | (exit $ac_status); }; }; then |
| 18631 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18632 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18633 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18635 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18636 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18637 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18638 | rm -f conftest.err conftest.$ac_objext \ |
| 18639 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18640 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18641 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 18642 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 18643 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18644 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18645 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18646 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18647 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18648 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18649 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 18650 | 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] | 18651 | OLD_CFLAGS=$CFLAGS |
| 18652 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18653 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18654 | /* confdefs.h. */ |
| 18655 | _ACEOF |
| 18656 | cat confdefs.h >>conftest.$ac_ext |
| 18657 | cat >>conftest.$ac_ext <<_ACEOF |
| 18658 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18659 | |
| 18660 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18661 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18662 | int |
| 18663 | main () |
| 18664 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18665 | |
| 18666 | char *name; |
| 18667 | struct hostent *he, *res; |
| 18668 | char buffer[2048]; |
| 18669 | int buflen = 2048; |
| 18670 | int h_errnop; |
| 18671 | |
| 18672 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18673 | |
| 18674 | ; |
| 18675 | return 0; |
| 18676 | } |
| 18677 | _ACEOF |
| 18678 | rm -f conftest.$ac_objext |
| 18679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18680 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18681 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18682 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18683 | rm -f conftest.er1 |
| 18684 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18686 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18687 | { ac_try='test -z "$ac_c_werror_flag" |
| 18688 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18690 | (eval $ac_try) 2>&5 |
| 18691 | ac_status=$? |
| 18692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18693 | (exit $ac_status); }; } && |
| 18694 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18696 | (eval $ac_try) 2>&5 |
| 18697 | ac_status=$? |
| 18698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18699 | (exit $ac_status); }; }; then |
| 18700 | |
| 18701 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 18702 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18703 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 18704 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18705 | |
| 18706 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18707 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18708 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18709 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18710 | echo "$as_me:$LINENO: result: yes" >&5 |
| 18711 | echo "${ECHO_T}yes" >&6 |
| 18712 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18713 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18714 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18715 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18716 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18717 | |
| 18718 | echo "$as_me:$LINENO: result: no" >&5 |
| 18719 | echo "${ECHO_T}no" >&6 |
| 18720 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 18721 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 18722 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18723 | /* confdefs.h. */ |
| 18724 | _ACEOF |
| 18725 | cat confdefs.h >>conftest.$ac_ext |
| 18726 | cat >>conftest.$ac_ext <<_ACEOF |
| 18727 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18728 | |
| 18729 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18730 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18731 | int |
| 18732 | main () |
| 18733 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18734 | |
| 18735 | char *name; |
| 18736 | struct hostent *he; |
| 18737 | char buffer[2048]; |
| 18738 | int buflen = 2048; |
| 18739 | int h_errnop; |
| 18740 | |
| 18741 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18742 | |
| 18743 | ; |
| 18744 | return 0; |
| 18745 | } |
| 18746 | _ACEOF |
| 18747 | rm -f conftest.$ac_objext |
| 18748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18749 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18750 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18751 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18752 | rm -f conftest.er1 |
| 18753 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18755 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18756 | { ac_try='test -z "$ac_c_werror_flag" |
| 18757 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18759 | (eval $ac_try) 2>&5 |
| 18760 | ac_status=$? |
| 18761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18762 | (exit $ac_status); }; } && |
| 18763 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18765 | (eval $ac_try) 2>&5 |
| 18766 | ac_status=$? |
| 18767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18768 | (exit $ac_status); }; }; then |
| 18769 | |
| 18770 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 18771 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18772 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 18773 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18774 | |
| 18775 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18776 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18777 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18778 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18779 | echo "$as_me:$LINENO: result: yes" >&5 |
| 18780 | echo "${ECHO_T}yes" >&6 |
| 18781 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18782 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18783 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18784 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18785 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18786 | |
| 18787 | echo "$as_me:$LINENO: result: no" >&5 |
| 18788 | echo "${ECHO_T}no" >&6 |
| 18789 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 18790 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 18791 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18792 | /* confdefs.h. */ |
| 18793 | _ACEOF |
| 18794 | cat confdefs.h >>conftest.$ac_ext |
| 18795 | cat >>conftest.$ac_ext <<_ACEOF |
| 18796 | /* end confdefs.h. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18797 | |
| 18798 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18799 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18800 | int |
| 18801 | main () |
| 18802 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18803 | |
| 18804 | char *name; |
| 18805 | struct hostent *he; |
| 18806 | struct hostent_data data; |
| 18807 | |
| 18808 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18809 | |
| 18810 | ; |
| 18811 | return 0; |
| 18812 | } |
| 18813 | _ACEOF |
| 18814 | rm -f conftest.$ac_objext |
| 18815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18816 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18817 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18818 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18819 | rm -f conftest.er1 |
| 18820 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18822 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18823 | { ac_try='test -z "$ac_c_werror_flag" |
| 18824 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18826 | (eval $ac_try) 2>&5 |
| 18827 | ac_status=$? |
| 18828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18829 | (exit $ac_status); }; } && |
| 18830 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18832 | (eval $ac_try) 2>&5 |
| 18833 | ac_status=$? |
| 18834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18835 | (exit $ac_status); }; }; then |
| 18836 | |
| 18837 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 18838 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18839 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 18840 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18841 | |
| 18842 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18843 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18844 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18845 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18846 | echo "$as_me:$LINENO: result: yes" >&5 |
| 18847 | echo "${ECHO_T}yes" >&6 |
| 18848 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18849 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18850 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18851 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18852 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18853 | |
| 18854 | echo "$as_me:$LINENO: result: no" >&5 |
| 18855 | echo "${ECHO_T}no" >&6 |
| 18856 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18857 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18858 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18859 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18860 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18861 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18862 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18863 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18865 | CFLAGS=$OLD_CFLAGS |
| 18866 | |
| 18867 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18868 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18869 | |
| 18870 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18871 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18872 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18873 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 18874 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 18875 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 18876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18877 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18878 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18879 | /* confdefs.h. */ |
| 18880 | _ACEOF |
| 18881 | cat confdefs.h >>conftest.$ac_ext |
| 18882 | cat >>conftest.$ac_ext <<_ACEOF |
| 18883 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18884 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 18885 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18886 | #define $ac_func innocuous_$ac_func |
| 18887 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18888 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18889 | which can conflict with char $ac_func (); below. |
| 18890 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18891 | <limits.h> exists even on freestanding compilers. */ |
| 18892 | |
| 18893 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18894 | # include <limits.h> |
| 18895 | #else |
| 18896 | # include <assert.h> |
| 18897 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18898 | |
| 18899 | #undef $ac_func |
| 18900 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18901 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18902 | #ifdef __cplusplus |
| 18903 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18904 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18905 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18906 | /* 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] | 18907 | builtin and then its argument prototype would still apply. */ |
| 18908 | char $ac_func (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18909 | /* The GNU C library defines this for functions which it implements |
| 18910 | to always fail with ENOSYS. Some functions are actually named |
| 18911 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18912 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18913 | choke me |
| 18914 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18915 | char (*f) () = $ac_func; |
| 18916 | #endif |
| 18917 | #ifdef __cplusplus |
| 18918 | } |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18919 | #endif |
| 18920 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18921 | int |
| 18922 | main () |
| 18923 | { |
| 18924 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18925 | ; |
| 18926 | return 0; |
| 18927 | } |
| 18928 | _ACEOF |
| 18929 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 18930 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18931 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18932 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18933 | grep -v '^ *+' conftest.er1 >conftest.err |
| 18934 | rm -f conftest.er1 |
| 18935 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18937 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 18938 | { ac_try='test -z "$ac_c_werror_flag" |
| 18939 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18941 | (eval $ac_try) 2>&5 |
| 18942 | ac_status=$? |
| 18943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18944 | (exit $ac_status); }; } && |
| 18945 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 18947 | (eval $ac_try) 2>&5 |
| 18948 | ac_status=$? |
| 18949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 18950 | (exit $ac_status); }; }; then |
| 18951 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18952 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18953 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18954 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 18955 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18956 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18957 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 18958 | rm -f conftest.err conftest.$ac_objext \ |
| 18959 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18960 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18961 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 18962 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 18963 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 18964 | cat >>confdefs.h <<_ACEOF |
| 18965 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18966 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18967 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18968 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 18969 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18970 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18971 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 18972 | fi |
| 18973 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18974 | |
| 18975 | |
| 18976 | |
| 18977 | |
| 18978 | |
| 18979 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18980 | # checks for system services |
| 18981 | # (none yet) |
| 18982 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18983 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18984 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 18985 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 18986 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 18987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 18988 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18989 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 18990 | /* confdefs.h. */ |
| 18991 | _ACEOF |
| 18992 | cat confdefs.h >>conftest.$ac_ext |
| 18993 | cat >>conftest.$ac_ext <<_ACEOF |
| 18994 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 18995 | /* Define __fpu_control to an innocuous variant, in case <limits.h> declares __fpu_control. |
| 18996 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 18997 | #define __fpu_control innocuous___fpu_control |
| 18998 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 18999 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19000 | which can conflict with char __fpu_control (); below. |
| 19001 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19002 | <limits.h> exists even on freestanding compilers. */ |
| 19003 | |
| 19004 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19005 | # include <limits.h> |
| 19006 | #else |
| 19007 | # include <assert.h> |
| 19008 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19009 | |
| 19010 | #undef __fpu_control |
| 19011 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19012 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19013 | #ifdef __cplusplus |
| 19014 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19015 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19016 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19017 | /* 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] | 19018 | builtin and then its argument prototype would still apply. */ |
| 19019 | char __fpu_control (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19020 | /* The GNU C library defines this for functions which it implements |
| 19021 | to always fail with ENOSYS. Some functions are actually named |
| 19022 | something starting with __ and the normal name is an alias. */ |
| 19023 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 19024 | choke me |
| 19025 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19026 | char (*f) () = __fpu_control; |
| 19027 | #endif |
| 19028 | #ifdef __cplusplus |
| 19029 | } |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19030 | #endif |
| 19031 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19032 | int |
| 19033 | main () |
| 19034 | { |
| 19035 | return f != __fpu_control; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19036 | ; |
| 19037 | return 0; |
| 19038 | } |
| 19039 | _ACEOF |
| 19040 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19041 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19042 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19043 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19044 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19045 | rm -f conftest.er1 |
| 19046 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19048 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19049 | { ac_try='test -z "$ac_c_werror_flag" |
| 19050 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19052 | (eval $ac_try) 2>&5 |
| 19053 | ac_status=$? |
| 19054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19055 | (exit $ac_status); }; } && |
| 19056 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19058 | (eval $ac_try) 2>&5 |
| 19059 | ac_status=$? |
| 19060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19061 | (exit $ac_status); }; }; then |
| 19062 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19063 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19064 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19065 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19066 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19067 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19068 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19069 | rm -f conftest.err conftest.$ac_objext \ |
| 19070 | conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19071 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19072 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 19073 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 19074 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19075 | : |
| 19076 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19077 | |
| 19078 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 19079 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 19080 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 19081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19082 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19083 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 19084 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19085 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19086 | /* confdefs.h. */ |
| 19087 | _ACEOF |
| 19088 | cat confdefs.h >>conftest.$ac_ext |
| 19089 | cat >>conftest.$ac_ext <<_ACEOF |
| 19090 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19091 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 19092 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19093 | #ifdef __cplusplus |
| 19094 | extern "C" |
| 19095 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 19096 | /* 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] | 19097 | builtin and then its argument prototype would still apply. */ |
| 19098 | char __fpu_control (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19099 | int |
| 19100 | main () |
| 19101 | { |
| 19102 | __fpu_control (); |
| 19103 | ; |
| 19104 | return 0; |
| 19105 | } |
| 19106 | _ACEOF |
| 19107 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19108 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19109 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19110 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19111 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19112 | rm -f conftest.er1 |
| 19113 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19115 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19116 | { ac_try='test -z "$ac_c_werror_flag" |
| 19117 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19119 | (eval $ac_try) 2>&5 |
| 19120 | ac_status=$? |
| 19121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19122 | (exit $ac_status); }; } && |
| 19123 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19125 | (eval $ac_try) 2>&5 |
| 19126 | ac_status=$? |
| 19127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19128 | (exit $ac_status); }; }; then |
| 19129 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19130 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19131 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19132 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19133 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19134 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19135 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19136 | rm -f conftest.err conftest.$ac_objext \ |
| 19137 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19138 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19139 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19140 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 19141 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 19142 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 19143 | cat >>confdefs.h <<_ACEOF |
| 19144 | #define HAVE_LIBIEEE 1 |
| 19145 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19146 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 19147 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19148 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 19149 | fi |
| 19150 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19151 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 19152 | fi |
| 19153 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19154 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19155 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19156 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 19157 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 19158 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19159 | # Check whether --with-fpectl or --without-fpectl was given. |
| 19160 | if test "${with_fpectl+set}" = set; then |
| 19161 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19162 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19163 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19164 | then |
| 19165 | |
| 19166 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19167 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19168 | _ACEOF |
| 19169 | |
| 19170 | echo "$as_me:$LINENO: result: yes" >&5 |
| 19171 | echo "${ECHO_T}yes" >&6 |
| 19172 | else echo "$as_me:$LINENO: result: no" >&5 |
| 19173 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19174 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19175 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19176 | echo "$as_me:$LINENO: result: no" >&5 |
| 19177 | echo "${ECHO_T}no" >&6 |
| 19178 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19179 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19180 | # check for --with-libm=... |
| 19181 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 19182 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 19183 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 19184 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 19185 | *) LIBM=-lm |
| 19186 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19187 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 19188 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 19189 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19190 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 19191 | if test "${with_libm+set}" = set; then |
| 19192 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19193 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19194 | if test "$withval" = no |
| 19195 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19196 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 19197 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19198 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19199 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19200 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 19201 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 19202 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 19203 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 19204 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19205 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19206 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19207 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 19208 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 19209 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19210 | |
| 19211 | # check for --with-libc=... |
| 19212 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19213 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 19214 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 19215 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 19216 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 19217 | if test "${with_libc+set}" = set; then |
| 19218 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19219 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19220 | if test "$withval" = no |
| 19221 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19222 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 19223 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19224 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19225 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19226 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 19227 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 19228 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 19229 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 19230 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19231 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 19232 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19233 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 19234 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 19235 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 19236 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 19237 | # check for hypot() in math library |
| 19238 | LIBS_SAVE=$LIBS |
| 19239 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19240 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 19241 | for ac_func in hypot |
| 19242 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19243 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 19244 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 19245 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 19246 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 19247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 19248 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19249 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19250 | /* confdefs.h. */ |
| 19251 | _ACEOF |
| 19252 | cat confdefs.h >>conftest.$ac_ext |
| 19253 | cat >>conftest.$ac_ext <<_ACEOF |
| 19254 | /* end confdefs.h. */ |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19255 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 19256 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 19257 | #define $ac_func innocuous_$ac_func |
| 19258 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 19259 | /* System header to define __stub macros and hopefully few prototypes, |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19260 | which can conflict with char $ac_func (); below. |
| 19261 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19262 | <limits.h> exists even on freestanding compilers. */ |
| 19263 | |
| 19264 | #ifdef __STDC__ |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19265 | # include <limits.h> |
| 19266 | #else |
| 19267 | # include <assert.h> |
| 19268 | #endif |
Martin v. Löwis | 4ddc78a | 2006-01-29 09:53:44 +0000 | [diff] [blame] | 19269 | |
| 19270 | #undef $ac_func |
| 19271 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 19272 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19273 | #ifdef __cplusplus |
| 19274 | extern "C" |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19275 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19276 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 19277 | /* 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] | 19278 | builtin and then its argument prototype would still apply. */ |
| 19279 | char $ac_func (); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 19280 | /* The GNU C library defines this for functions which it implements |
| 19281 | to always fail with ENOSYS. Some functions are actually named |
| 19282 | something starting with __ and the normal name is an alias. */ |
| 19283 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 19284 | choke me |
| 19285 | #else |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19286 | char (*f) () = $ac_func; |
| 19287 | #endif |
| 19288 | #ifdef __cplusplus |
| 19289 | } |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 19290 | #endif |
| 19291 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19292 | int |
| 19293 | main () |
| 19294 | { |
| 19295 | return f != $ac_func; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19296 | ; |
| 19297 | return 0; |
| 19298 | } |
| 19299 | _ACEOF |
| 19300 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 19301 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19302 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19303 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19304 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19305 | rm -f conftest.er1 |
| 19306 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19308 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19309 | { ac_try='test -z "$ac_c_werror_flag" |
| 19310 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19312 | (eval $ac_try) 2>&5 |
| 19313 | ac_status=$? |
| 19314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19315 | (exit $ac_status); }; } && |
| 19316 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19318 | (eval $ac_try) 2>&5 |
| 19319 | ac_status=$? |
| 19320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19321 | (exit $ac_status); }; }; then |
| 19322 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 19323 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19324 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19325 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19326 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19327 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19328 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19329 | rm -f conftest.err conftest.$ac_objext \ |
| 19330 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19331 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19332 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 19333 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 19334 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 19335 | cat >>confdefs.h <<_ACEOF |
| 19336 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 19337 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19338 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19339 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19340 | case $LIBOBJS in |
| 19341 | "$ac_func.$ac_objext" | \ |
| 19342 | *" $ac_func.$ac_objext" | \ |
| 19343 | "$ac_func.$ac_objext "* | \ |
| 19344 | *" $ac_func.$ac_objext "* ) ;; |
| 19345 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; |
| 19346 | esac |
| 19347 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 19348 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 19349 | done |
| 19350 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19351 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 19352 | LIBS=$LIBS_SAVE |
| 19353 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19354 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19355 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 19356 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 19357 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 19358 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 19359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19360 | fi |
| 19361 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 19362 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19363 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19364 | # Is the header compilable? |
| 19365 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 19366 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 19367 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19368 | /* confdefs.h. */ |
| 19369 | _ACEOF |
| 19370 | cat confdefs.h >>conftest.$ac_ext |
| 19371 | cat >>conftest.$ac_ext <<_ACEOF |
| 19372 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19373 | $ac_includes_default |
| 19374 | #include <wchar.h> |
| 19375 | _ACEOF |
| 19376 | rm -f conftest.$ac_objext |
| 19377 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19378 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19379 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19380 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19381 | rm -f conftest.er1 |
| 19382 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19384 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19385 | { ac_try='test -z "$ac_c_werror_flag" |
| 19386 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19388 | (eval $ac_try) 2>&5 |
| 19389 | ac_status=$? |
| 19390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19391 | (exit $ac_status); }; } && |
| 19392 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19394 | (eval $ac_try) 2>&5 |
| 19395 | ac_status=$? |
| 19396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19397 | (exit $ac_status); }; }; then |
| 19398 | ac_header_compiler=yes |
| 19399 | else |
| 19400 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19401 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19402 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19403 | ac_header_compiler=no |
| 19404 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19405 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19406 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 19407 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 19408 | |
| 19409 | # Is the header present? |
| 19410 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 19411 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 19412 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19413 | /* confdefs.h. */ |
| 19414 | _ACEOF |
| 19415 | cat confdefs.h >>conftest.$ac_ext |
| 19416 | cat >>conftest.$ac_ext <<_ACEOF |
| 19417 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19418 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19419 | _ACEOF |
| 19420 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 19421 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 19422 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19423 | grep -v '^ *+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19424 | rm -f conftest.er1 |
| 19425 | cat conftest.err >&5 |
| 19426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19427 | (exit $ac_status); } >/dev/null; then |
| 19428 | if test -s conftest.err; then |
| 19429 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19430 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19431 | else |
| 19432 | ac_cpp_err= |
| 19433 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19434 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19435 | ac_cpp_err=yes |
| 19436 | fi |
| 19437 | if test -z "$ac_cpp_err"; then |
| 19438 | ac_header_preproc=yes |
| 19439 | else |
| 19440 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19441 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19442 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19443 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19444 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19445 | rm -f conftest.err conftest.$ac_ext |
| 19446 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 19447 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 19448 | |
| 19449 | # So? What about this header? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19450 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 19451 | yes:no: ) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19452 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 19453 | 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] | 19454 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5 |
| 19455 | echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;} |
| 19456 | ac_header_preproc=yes |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19457 | ;; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19458 | no:yes:* ) |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 19459 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 19460 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19461 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 19462 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 19463 | { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5 |
| 19464 | echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;} |
| 19465 | { echo "$as_me:$LINENO: WARNING: wchar.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 19466 | 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] | 19467 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 19468 | 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] | 19469 | { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5 |
| 19470 | 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] | 19471 | ( |
| 19472 | cat <<\_ASBOX |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 19473 | ## ------------------------------------------------ ## |
| 19474 | ## Report this to http://www.python.org/python-bugs ## |
| 19475 | ## ------------------------------------------------ ## |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19476 | _ASBOX |
| 19477 | ) | |
| 19478 | sed "s/^/$as_me: WARNING: /" >&2 |
| 19479 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19480 | esac |
| 19481 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 19482 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 19483 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 19484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19485 | else |
| 19486 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19487 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19488 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 19489 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 19490 | |
| 19491 | fi |
| 19492 | if test $ac_cv_header_wchar_h = yes; then |
| 19493 | |
| 19494 | |
| 19495 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19496 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19497 | _ACEOF |
| 19498 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 19499 | wchar_h="yes" |
| 19500 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19501 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19502 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19503 | |
| 19504 | fi |
| 19505 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19506 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19507 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19508 | # determine wchar_t size |
| 19509 | if test "$wchar_h" = yes |
| 19510 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19511 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 19512 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 19513 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 19514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19515 | else |
| 19516 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19517 | /* confdefs.h. */ |
| 19518 | _ACEOF |
| 19519 | cat confdefs.h >>conftest.$ac_ext |
| 19520 | cat >>conftest.$ac_ext <<_ACEOF |
| 19521 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19522 | #include <wchar.h> |
| 19523 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19524 | int |
| 19525 | main () |
| 19526 | { |
| 19527 | if ((wchar_t *) 0) |
| 19528 | return 0; |
| 19529 | if (sizeof (wchar_t)) |
| 19530 | return 0; |
| 19531 | ; |
| 19532 | return 0; |
| 19533 | } |
| 19534 | _ACEOF |
| 19535 | rm -f conftest.$ac_objext |
| 19536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19537 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19538 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19539 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19540 | rm -f conftest.er1 |
| 19541 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19543 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19544 | { ac_try='test -z "$ac_c_werror_flag" |
| 19545 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19547 | (eval $ac_try) 2>&5 |
| 19548 | ac_status=$? |
| 19549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19550 | (exit $ac_status); }; } && |
| 19551 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19553 | (eval $ac_try) 2>&5 |
| 19554 | ac_status=$? |
| 19555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19556 | (exit $ac_status); }; }; then |
| 19557 | ac_cv_type_wchar_t=yes |
| 19558 | else |
| 19559 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19560 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19561 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19562 | ac_cv_type_wchar_t=no |
| 19563 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19564 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19565 | fi |
| 19566 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 19567 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 19568 | |
| 19569 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 19570 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 19571 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 19572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 19573 | else |
| 19574 | if test "$ac_cv_type_wchar_t" = yes; then |
| 19575 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 19576 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 19577 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 19578 | # This bug is HP SR number 8606223364. |
| 19579 | if test "$cross_compiling" = yes; then |
| 19580 | # Depending upon the size, compute the lo and hi bounds. |
| 19581 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19582 | /* confdefs.h. */ |
| 19583 | _ACEOF |
| 19584 | cat confdefs.h >>conftest.$ac_ext |
| 19585 | cat >>conftest.$ac_ext <<_ACEOF |
| 19586 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19587 | #include <wchar.h> |
| 19588 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19589 | int |
| 19590 | main () |
| 19591 | { |
| 19592 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 19593 | test_array [0] = 0 |
| 19594 | |
| 19595 | ; |
| 19596 | return 0; |
| 19597 | } |
| 19598 | _ACEOF |
| 19599 | rm -f conftest.$ac_objext |
| 19600 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19601 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19602 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19603 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19604 | rm -f conftest.er1 |
| 19605 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19607 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19608 | { ac_try='test -z "$ac_c_werror_flag" |
| 19609 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19611 | (eval $ac_try) 2>&5 |
| 19612 | ac_status=$? |
| 19613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19614 | (exit $ac_status); }; } && |
| 19615 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19617 | (eval $ac_try) 2>&5 |
| 19618 | ac_status=$? |
| 19619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19620 | (exit $ac_status); }; }; then |
| 19621 | ac_lo=0 ac_mid=0 |
| 19622 | while :; do |
| 19623 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19624 | /* confdefs.h. */ |
| 19625 | _ACEOF |
| 19626 | cat confdefs.h >>conftest.$ac_ext |
| 19627 | cat >>conftest.$ac_ext <<_ACEOF |
| 19628 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19629 | #include <wchar.h> |
| 19630 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19631 | int |
| 19632 | main () |
| 19633 | { |
| 19634 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 19635 | test_array [0] = 0 |
| 19636 | |
| 19637 | ; |
| 19638 | return 0; |
| 19639 | } |
| 19640 | _ACEOF |
| 19641 | rm -f conftest.$ac_objext |
| 19642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19643 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19644 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19645 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19646 | rm -f conftest.er1 |
| 19647 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19649 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19650 | { ac_try='test -z "$ac_c_werror_flag" |
| 19651 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19653 | (eval $ac_try) 2>&5 |
| 19654 | ac_status=$? |
| 19655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19656 | (exit $ac_status); }; } && |
| 19657 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19659 | (eval $ac_try) 2>&5 |
| 19660 | ac_status=$? |
| 19661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19662 | (exit $ac_status); }; }; then |
| 19663 | ac_hi=$ac_mid; break |
| 19664 | else |
| 19665 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19667 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19668 | ac_lo=`expr $ac_mid + 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19669 | if test $ac_lo -le $ac_mid; then |
| 19670 | ac_lo= ac_hi= |
| 19671 | break |
| 19672 | fi |
| 19673 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19674 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19675 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19676 | done |
| 19677 | else |
| 19678 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19679 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19680 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19681 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19682 | /* confdefs.h. */ |
| 19683 | _ACEOF |
| 19684 | cat confdefs.h >>conftest.$ac_ext |
| 19685 | cat >>conftest.$ac_ext <<_ACEOF |
| 19686 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19687 | #include <wchar.h> |
| 19688 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19689 | int |
| 19690 | main () |
| 19691 | { |
| 19692 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 19693 | test_array [0] = 0 |
| 19694 | |
| 19695 | ; |
| 19696 | return 0; |
| 19697 | } |
| 19698 | _ACEOF |
| 19699 | rm -f conftest.$ac_objext |
| 19700 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19701 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19702 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19703 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19704 | rm -f conftest.er1 |
| 19705 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19707 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19708 | { ac_try='test -z "$ac_c_werror_flag" |
| 19709 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19711 | (eval $ac_try) 2>&5 |
| 19712 | ac_status=$? |
| 19713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19714 | (exit $ac_status); }; } && |
| 19715 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19717 | (eval $ac_try) 2>&5 |
| 19718 | ac_status=$? |
| 19719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19720 | (exit $ac_status); }; }; then |
| 19721 | ac_hi=-1 ac_mid=-1 |
| 19722 | while :; do |
| 19723 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19724 | /* confdefs.h. */ |
| 19725 | _ACEOF |
| 19726 | cat confdefs.h >>conftest.$ac_ext |
| 19727 | cat >>conftest.$ac_ext <<_ACEOF |
| 19728 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19729 | #include <wchar.h> |
| 19730 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19731 | int |
| 19732 | main () |
| 19733 | { |
| 19734 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 19735 | test_array [0] = 0 |
| 19736 | |
| 19737 | ; |
| 19738 | return 0; |
| 19739 | } |
| 19740 | _ACEOF |
| 19741 | rm -f conftest.$ac_objext |
| 19742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19743 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19744 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19745 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19746 | rm -f conftest.er1 |
| 19747 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19749 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19750 | { ac_try='test -z "$ac_c_werror_flag" |
| 19751 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19753 | (eval $ac_try) 2>&5 |
| 19754 | ac_status=$? |
| 19755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19756 | (exit $ac_status); }; } && |
| 19757 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19759 | (eval $ac_try) 2>&5 |
| 19760 | ac_status=$? |
| 19761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19762 | (exit $ac_status); }; }; then |
| 19763 | ac_lo=$ac_mid; break |
| 19764 | else |
| 19765 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19766 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19767 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19768 | ac_hi=`expr '(' $ac_mid ')' - 1` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19769 | if test $ac_mid -le $ac_hi; then |
| 19770 | ac_lo= ac_hi= |
| 19771 | break |
| 19772 | fi |
| 19773 | ac_mid=`expr 2 '*' $ac_mid` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19774 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19775 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19776 | done |
| 19777 | else |
| 19778 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19780 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19781 | ac_lo= ac_hi= |
| 19782 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19783 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19784 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19785 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19786 | # Binary search between lo and hi bounds. |
| 19787 | while test "x$ac_lo" != "x$ac_hi"; do |
| 19788 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 19789 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19790 | /* confdefs.h. */ |
| 19791 | _ACEOF |
| 19792 | cat confdefs.h >>conftest.$ac_ext |
| 19793 | cat >>conftest.$ac_ext <<_ACEOF |
| 19794 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19795 | #include <wchar.h> |
| 19796 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19797 | int |
| 19798 | main () |
| 19799 | { |
| 19800 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 19801 | test_array [0] = 0 |
| 19802 | |
| 19803 | ; |
| 19804 | return 0; |
| 19805 | } |
| 19806 | _ACEOF |
| 19807 | rm -f conftest.$ac_objext |
| 19808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19809 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19810 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19811 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19812 | rm -f conftest.er1 |
| 19813 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19815 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19816 | { ac_try='test -z "$ac_c_werror_flag" |
| 19817 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19819 | (eval $ac_try) 2>&5 |
| 19820 | ac_status=$? |
| 19821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19822 | (exit $ac_status); }; } && |
| 19823 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19825 | (eval $ac_try) 2>&5 |
| 19826 | ac_status=$? |
| 19827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19828 | (exit $ac_status); }; }; then |
| 19829 | ac_hi=$ac_mid |
| 19830 | else |
| 19831 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19832 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19833 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19834 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 19835 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19836 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19837 | done |
| 19838 | case $ac_lo in |
| 19839 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19840 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 19841 | See \`config.log' for more details." >&5 |
| 19842 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 19843 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19844 | { (exit 1); exit 1; }; } ;; |
| 19845 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19846 | else |
| 19847 | if test "$cross_compiling" = yes; then |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19848 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 19849 | See \`config.log' for more details." >&5 |
| 19850 | echo "$as_me: error: cannot run test program while cross compiling |
| 19851 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19852 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19853 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19854 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19855 | /* confdefs.h. */ |
| 19856 | _ACEOF |
| 19857 | cat confdefs.h >>conftest.$ac_ext |
| 19858 | cat >>conftest.$ac_ext <<_ACEOF |
| 19859 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19860 | #include <wchar.h> |
| 19861 | |
| 19862 | long longval () { return (long) (sizeof (wchar_t)); } |
| 19863 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19864 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19865 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19866 | int |
| 19867 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19868 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19869 | |
| 19870 | FILE *f = fopen ("conftest.val", "w"); |
| 19871 | if (! f) |
| 19872 | exit (1); |
| 19873 | if (((long) (sizeof (wchar_t))) < 0) |
| 19874 | { |
| 19875 | long i = longval (); |
| 19876 | if (i != ((long) (sizeof (wchar_t)))) |
| 19877 | exit (1); |
| 19878 | fprintf (f, "%ld\n", i); |
| 19879 | } |
| 19880 | else |
| 19881 | { |
| 19882 | unsigned long i = ulongval (); |
| 19883 | if (i != ((long) (sizeof (wchar_t)))) |
| 19884 | exit (1); |
| 19885 | fprintf (f, "%lu\n", i); |
| 19886 | } |
| 19887 | exit (ferror (f) || fclose (f) != 0); |
| 19888 | |
| 19889 | ; |
| 19890 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19891 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19892 | _ACEOF |
| 19893 | rm -f conftest$ac_exeext |
| 19894 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 19895 | (eval $ac_link) 2>&5 |
| 19896 | ac_status=$? |
| 19897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19898 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 19899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19900 | (eval $ac_try) 2>&5 |
| 19901 | ac_status=$? |
| 19902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19903 | (exit $ac_status); }; }; then |
| 19904 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19905 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19906 | echo "$as_me: program exited with status $ac_status" >&5 |
| 19907 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19908 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19909 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19910 | ( exit $ac_status ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19911 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
| 19912 | See \`config.log' for more details." >&5 |
| 19913 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 |
| 19914 | See \`config.log' for more details." >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19915 | { (exit 1); exit 1; }; } |
| 19916 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19917 | 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] | 19918 | fi |
| 19919 | fi |
| 19920 | rm -f conftest.val |
| 19921 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19922 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19923 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 19924 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19925 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 19926 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 19927 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19928 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 19929 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19930 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 19931 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 19932 | fi |
| 19933 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 19934 | echo "$as_me:$LINENO: checking for UCS-4 tcl" >&5 |
| 19935 | echo $ECHO_N "checking for UCS-4 tcl... $ECHO_C" >&6 |
| 19936 | have_ucs4_tcl=no |
| 19937 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19938 | /* confdefs.h. */ |
| 19939 | _ACEOF |
| 19940 | cat confdefs.h >>conftest.$ac_ext |
| 19941 | cat >>conftest.$ac_ext <<_ACEOF |
| 19942 | /* end confdefs.h. */ |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 19943 | |
| 19944 | #include <tcl.h> |
| 19945 | #if TCL_UTF_MAX != 6 |
| 19946 | # error "NOT UCS4_TCL" |
| 19947 | #endif |
| 19948 | int |
| 19949 | main () |
| 19950 | { |
| 19951 | |
| 19952 | ; |
| 19953 | return 0; |
| 19954 | } |
| 19955 | _ACEOF |
| 19956 | rm -f conftest.$ac_objext |
| 19957 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19958 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 19959 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19960 | grep -v '^ *+' conftest.er1 >conftest.err |
| 19961 | rm -f conftest.er1 |
| 19962 | cat conftest.err >&5 |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 19963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19964 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 19965 | { ac_try='test -z "$ac_c_werror_flag" |
| 19966 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19968 | (eval $ac_try) 2>&5 |
| 19969 | ac_status=$? |
| 19970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19971 | (exit $ac_status); }; } && |
| 19972 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 19973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 19974 | (eval $ac_try) 2>&5 |
| 19975 | ac_status=$? |
| 19976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 19977 | (exit $ac_status); }; }; then |
| 19978 | |
| 19979 | |
| 19980 | cat >>confdefs.h <<\_ACEOF |
| 19981 | #define HAVE_UCS4_TCL 1 |
| 19982 | _ACEOF |
| 19983 | |
| 19984 | have_ucs4_tcl=yes |
| 19985 | |
| 19986 | else |
| 19987 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19988 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 19989 | |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 19990 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 19991 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 19992 | echo "$as_me:$LINENO: result: $have_ucs4_tcl" >&5 |
| 19993 | echo "${ECHO_T}$have_ucs4_tcl" >&6 |
| 19994 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 19995 | # check whether wchar_t is signed or not |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 19996 | if test "$wchar_h" = yes |
| 19997 | then |
| 19998 | # check whether wchar_t is signed or not |
| 19999 | echo "$as_me:$LINENO: checking whether wchar_t is signed" >&5 |
| 20000 | echo $ECHO_N "checking whether wchar_t is signed... $ECHO_C" >&6 |
| 20001 | if test "${ac_cv_wchar_t_signed+set}" = set; then |
| 20002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20003 | else |
| 20004 | |
| 20005 | if test "$cross_compiling" = yes; then |
| 20006 | ac_cv_wchar_t_signed=yes |
| 20007 | else |
| 20008 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20009 | /* confdefs.h. */ |
| 20010 | _ACEOF |
| 20011 | cat confdefs.h >>conftest.$ac_ext |
| 20012 | cat >>conftest.$ac_ext <<_ACEOF |
| 20013 | /* end confdefs.h. */ |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 20014 | |
| 20015 | #include <wchar.h> |
| 20016 | int main() |
| 20017 | { |
| 20018 | exit((((wchar_t) -1) < ((wchar_t) 0)) ? 1 : 0); |
| 20019 | } |
| 20020 | |
| 20021 | _ACEOF |
| 20022 | rm -f conftest$ac_exeext |
| 20023 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20024 | (eval $ac_link) 2>&5 |
| 20025 | ac_status=$? |
| 20026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20027 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20029 | (eval $ac_try) 2>&5 |
| 20030 | ac_status=$? |
| 20031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20032 | (exit $ac_status); }; }; then |
| 20033 | ac_cv_wchar_t_signed=yes |
| 20034 | else |
| 20035 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20036 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20038 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 20039 | ( exit $ac_status ) |
| 20040 | ac_cv_wchar_t_signed=no |
| 20041 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20042 | 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] | 20043 | fi |
| 20044 | fi |
| 20045 | |
| 20046 | echo "$as_me:$LINENO: result: $ac_cv_wchar_t_signed" >&5 |
| 20047 | echo "${ECHO_T}$ac_cv_wchar_t_signed" >&6 |
| 20048 | fi |
| 20049 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20050 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 20051 | 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] | 20052 | # Check whether --enable-unicode or --disable-unicode was given. |
| 20053 | if test "${enable_unicode+set}" = set; then |
| 20054 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20055 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20056 | else |
| 20057 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20058 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20059 | |
| 20060 | if test $enable_unicode = yes |
| 20061 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 20062 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
Martin v. Löwis | fa3bdea | 2003-09-04 18:50:54 +0000 | [diff] [blame] | 20063 | case "$have_ucs4_tcl" in |
| 20064 | yes) enable_unicode="ucs4" |
| 20065 | ;; |
| 20066 | *) enable_unicode="ucs2" |
| 20067 | ;; |
| 20068 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20069 | fi |
| 20070 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 20071 | |
| 20072 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20073 | case "$enable_unicode" in |
| 20074 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20075 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20076 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20077 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20078 | |
| 20079 | ;; |
| 20080 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20081 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20082 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20083 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20084 | |
| 20085 | ;; |
| 20086 | esac |
| 20087 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20088 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20089 | |
| 20090 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 20091 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20092 | if test "$enable_unicode" = "no" |
| 20093 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 20094 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20095 | echo "$as_me:$LINENO: result: not used" >&5 |
| 20096 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20097 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 20098 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20099 | |
| 20100 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20101 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20102 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20103 | |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 20104 | |
| 20105 | # wchar_t is only usable if it maps to an unsigned type |
| 20106 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ |
Matthias Klose | 7dbeed7 | 2004-12-24 08:22:17 +0000 | [diff] [blame] | 20107 | -a "$ac_cv_wchar_t_signed" = "no" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20108 | then |
| 20109 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20110 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20111 | cat >>confdefs.h <<\_ACEOF |
| 20112 | #define HAVE_USABLE_WCHAR_T 1 |
| 20113 | _ACEOF |
| 20114 | |
| 20115 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20116 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20117 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20118 | |
| 20119 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 20120 | then |
| 20121 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20122 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20123 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20124 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20125 | |
| 20126 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 20127 | then |
| 20128 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20129 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20130 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20131 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20132 | |
| 20133 | else |
| 20134 | PY_UNICODE_TYPE="no type found" |
| 20135 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20136 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 20137 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 20138 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20139 | |
| 20140 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20141 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 20142 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 20143 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 20144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20145 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20146 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 20147 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20148 | /* confdefs.h. */ |
| 20149 | _ACEOF |
| 20150 | cat confdefs.h >>conftest.$ac_ext |
| 20151 | cat >>conftest.$ac_ext <<_ACEOF |
| 20152 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20153 | #include <sys/types.h> |
| 20154 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20155 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20156 | int |
| 20157 | main () |
| 20158 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20159 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 20160 | bogus endian macros |
| 20161 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20162 | |
| 20163 | ; |
| 20164 | return 0; |
| 20165 | } |
| 20166 | _ACEOF |
| 20167 | rm -f conftest.$ac_objext |
| 20168 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20169 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20170 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20171 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20172 | rm -f conftest.er1 |
| 20173 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20175 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20176 | { ac_try='test -z "$ac_c_werror_flag" |
| 20177 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20179 | (eval $ac_try) 2>&5 |
| 20180 | ac_status=$? |
| 20181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20182 | (exit $ac_status); }; } && |
| 20183 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20185 | (eval $ac_try) 2>&5 |
| 20186 | ac_status=$? |
| 20187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20188 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20189 | # 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] | 20190 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20191 | /* confdefs.h. */ |
| 20192 | _ACEOF |
| 20193 | cat confdefs.h >>conftest.$ac_ext |
| 20194 | cat >>conftest.$ac_ext <<_ACEOF |
| 20195 | /* end confdefs.h. */ |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20196 | #include <sys/types.h> |
| 20197 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20198 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20199 | int |
| 20200 | main () |
| 20201 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20202 | #if BYTE_ORDER != BIG_ENDIAN |
| 20203 | not big endian |
| 20204 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20205 | |
| 20206 | ; |
| 20207 | return 0; |
| 20208 | } |
| 20209 | _ACEOF |
| 20210 | rm -f conftest.$ac_objext |
| 20211 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20212 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20213 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20214 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20215 | rm -f conftest.er1 |
| 20216 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20218 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20219 | { ac_try='test -z "$ac_c_werror_flag" |
| 20220 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20222 | (eval $ac_try) 2>&5 |
| 20223 | ac_status=$? |
| 20224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20225 | (exit $ac_status); }; } && |
| 20226 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20228 | (eval $ac_try) 2>&5 |
| 20229 | ac_status=$? |
| 20230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20231 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20232 | ac_cv_c_bigendian=yes |
| 20233 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20234 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20236 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20237 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20238 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20239 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20240 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20241 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20242 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20243 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20244 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20245 | if test "$cross_compiling" = yes; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20246 | # 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] | 20247 | ac_cv_c_bigendian=unknown |
| 20248 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20249 | /* confdefs.h. */ |
| 20250 | _ACEOF |
| 20251 | cat confdefs.h >>conftest.$ac_ext |
| 20252 | cat >>conftest.$ac_ext <<_ACEOF |
| 20253 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20254 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 20255 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 20256 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 20257 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 20258 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 20259 | 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] | 20260 | int |
| 20261 | main () |
| 20262 | { |
| 20263 | _ascii (); _ebcdic (); |
| 20264 | ; |
| 20265 | return 0; |
| 20266 | } |
| 20267 | _ACEOF |
| 20268 | rm -f conftest.$ac_objext |
| 20269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20270 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20271 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20272 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20273 | rm -f conftest.er1 |
| 20274 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20276 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20277 | { ac_try='test -z "$ac_c_werror_flag" |
| 20278 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20280 | (eval $ac_try) 2>&5 |
| 20281 | ac_status=$? |
| 20282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20283 | (exit $ac_status); }; } && |
| 20284 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20286 | (eval $ac_try) 2>&5 |
| 20287 | ac_status=$? |
| 20288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20289 | (exit $ac_status); }; }; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20290 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20291 | ac_cv_c_bigendian=yes |
| 20292 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20293 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20294 | if test "$ac_cv_c_bigendian" = unknown; then |
| 20295 | ac_cv_c_bigendian=no |
| 20296 | else |
| 20297 | # finding both strings is unlikely to happen, but who knows? |
| 20298 | ac_cv_c_bigendian=unknown |
| 20299 | fi |
| 20300 | fi |
| 20301 | else |
| 20302 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20303 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20304 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20305 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20306 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20307 | else |
| 20308 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20309 | /* confdefs.h. */ |
| 20310 | _ACEOF |
| 20311 | cat confdefs.h >>conftest.$ac_ext |
| 20312 | cat >>conftest.$ac_ext <<_ACEOF |
| 20313 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20314 | int |
| 20315 | main () |
| 20316 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20317 | /* Are we little or big endian? From Harbison&Steele. */ |
| 20318 | union |
| 20319 | { |
| 20320 | long l; |
| 20321 | char c[sizeof (long)]; |
| 20322 | } u; |
| 20323 | u.l = 1; |
| 20324 | exit (u.c[sizeof (long) - 1] == 1); |
| 20325 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20326 | _ACEOF |
| 20327 | rm -f conftest$ac_exeext |
| 20328 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20329 | (eval $ac_link) 2>&5 |
| 20330 | ac_status=$? |
| 20331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20332 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20334 | (eval $ac_try) 2>&5 |
| 20335 | ac_status=$? |
| 20336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20337 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20338 | ac_cv_c_bigendian=no |
| 20339 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20340 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20341 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20343 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20344 | ( exit $ac_status ) |
| 20345 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20346 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20347 | 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] | 20348 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20349 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20351 | fi |
| 20352 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 20353 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 20354 | case $ac_cv_c_bigendian in |
| 20355 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20356 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20357 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20358 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20359 | _ACEOF |
| 20360 | ;; |
| 20361 | no) |
| 20362 | ;; |
| 20363 | *) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20364 | { { echo "$as_me:$LINENO: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20365 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20366 | echo "$as_me: error: unknown endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20367 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 20368 | { (exit 1); exit 1; }; } ;; |
| 20369 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 20370 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20371 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 20372 | # Check whether right shifting a negative integer extends the sign bit |
| 20373 | # 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] | 20374 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 20375 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 20376 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 20377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 20378 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20379 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 20380 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 20381 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 20382 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20383 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20384 | /* confdefs.h. */ |
| 20385 | _ACEOF |
| 20386 | cat confdefs.h >>conftest.$ac_ext |
| 20387 | cat >>conftest.$ac_ext <<_ACEOF |
| 20388 | /* end confdefs.h. */ |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 20389 | |
| 20390 | int main() |
| 20391 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 20392 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 20393 | } |
| 20394 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20395 | _ACEOF |
| 20396 | rm -f conftest$ac_exeext |
| 20397 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20398 | (eval $ac_link) 2>&5 |
| 20399 | ac_status=$? |
| 20400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20401 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 20402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20403 | (eval $ac_try) 2>&5 |
| 20404 | ac_status=$? |
| 20405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20406 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 20407 | ac_cv_rshift_extends_sign=yes |
| 20408 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20409 | echo "$as_me: program exited with status $ac_status" >&5 |
| 20410 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20411 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20412 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20413 | ( exit $ac_status ) |
| 20414 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 20415 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20416 | 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] | 20417 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 20418 | fi |
| 20419 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20420 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 20421 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 20422 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 20423 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20424 | |
| 20425 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 20426 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20427 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 20428 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 20429 | fi |
| 20430 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 20431 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20432 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 20433 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 20434 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 20435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 20436 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20437 | |
| 20438 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20439 | /* confdefs.h. */ |
| 20440 | _ACEOF |
| 20441 | cat confdefs.h >>conftest.$ac_ext |
| 20442 | cat >>conftest.$ac_ext <<_ACEOF |
| 20443 | /* end confdefs.h. */ |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 20444 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20445 | int |
| 20446 | main () |
| 20447 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 20448 | |
| 20449 | FILE *f = fopen("/dev/null", "r"); |
| 20450 | flockfile(f); |
| 20451 | getc_unlocked(f); |
| 20452 | funlockfile(f); |
| 20453 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20454 | ; |
| 20455 | return 0; |
| 20456 | } |
| 20457 | _ACEOF |
| 20458 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20459 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20460 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20461 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20462 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20463 | rm -f conftest.er1 |
| 20464 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20466 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20467 | { ac_try='test -z "$ac_c_werror_flag" |
| 20468 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20470 | (eval $ac_try) 2>&5 |
| 20471 | ac_status=$? |
| 20472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20473 | (exit $ac_status); }; } && |
| 20474 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20476 | (eval $ac_try) 2>&5 |
| 20477 | ac_status=$? |
| 20478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20479 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 20480 | ac_cv_have_getc_unlocked=yes |
| 20481 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20482 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20484 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20485 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 20486 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20487 | rm -f conftest.err conftest.$ac_objext \ |
| 20488 | conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 20489 | fi |
| 20490 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20491 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 20492 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 20493 | if test "$ac_cv_have_getc_unlocked" = yes |
| 20494 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20495 | |
| 20496 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 20497 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20498 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 20499 | |
| 20500 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 20501 | |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 20502 | # check where readline lives |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 20503 | # save the value of LIBS so we don't actually link Python with readline |
| 20504 | LIBS_no_readline=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 20505 | |
| 20506 | echo "$as_me:$LINENO: checking for readline in -lreadline" >&5 |
| 20507 | echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6 |
| 20508 | if test "${ac_cv_lib_readline_readline+set}" = set; then |
| 20509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20510 | else |
| 20511 | ac_check_lib_save_LIBS=$LIBS |
| 20512 | LIBS="-lreadline $LIBS" |
| 20513 | cat >conftest.$ac_ext <<_ACEOF |
| 20514 | /* confdefs.h. */ |
| 20515 | _ACEOF |
| 20516 | cat confdefs.h >>conftest.$ac_ext |
| 20517 | cat >>conftest.$ac_ext <<_ACEOF |
| 20518 | /* end confdefs.h. */ |
| 20519 | |
| 20520 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 20521 | #ifdef __cplusplus |
| 20522 | extern "C" |
| 20523 | #endif |
| 20524 | /* We use char because int might match the return type of a gcc2 |
| 20525 | builtin and then its argument prototype would still apply. */ |
| 20526 | char readline (); |
| 20527 | int |
| 20528 | main () |
| 20529 | { |
| 20530 | readline (); |
| 20531 | ; |
| 20532 | return 0; |
| 20533 | } |
| 20534 | _ACEOF |
| 20535 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20536 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20537 | (eval $ac_link) 2>conftest.er1 |
| 20538 | ac_status=$? |
| 20539 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20540 | rm -f conftest.er1 |
| 20541 | cat conftest.err >&5 |
| 20542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20543 | (exit $ac_status); } && |
| 20544 | { ac_try='test -z "$ac_c_werror_flag" |
| 20545 | || test ! -s conftest.err' |
| 20546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20547 | (eval $ac_try) 2>&5 |
| 20548 | ac_status=$? |
| 20549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20550 | (exit $ac_status); }; } && |
| 20551 | { ac_try='test -s conftest$ac_exeext' |
| 20552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20553 | (eval $ac_try) 2>&5 |
| 20554 | ac_status=$? |
| 20555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20556 | (exit $ac_status); }; }; then |
| 20557 | ac_cv_lib_readline_readline=yes |
| 20558 | else |
| 20559 | echo "$as_me: failed program was:" >&5 |
| 20560 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20561 | |
| 20562 | ac_cv_lib_readline_readline=no |
| 20563 | fi |
| 20564 | rm -f conftest.err conftest.$ac_objext \ |
| 20565 | conftest$ac_exeext conftest.$ac_ext |
| 20566 | LIBS=$ac_check_lib_save_LIBS |
| 20567 | fi |
| 20568 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5 |
| 20569 | echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6 |
| 20570 | if test $ac_cv_lib_readline_readline = yes; then |
| 20571 | cat >>confdefs.h <<_ACEOF |
| 20572 | #define HAVE_LIBREADLINE 1 |
| 20573 | _ACEOF |
| 20574 | |
| 20575 | LIBS="-lreadline $LIBS" |
| 20576 | |
| 20577 | fi |
| 20578 | |
| 20579 | if test "$ac_cv_have_readline_readline" = no |
| 20580 | then |
| 20581 | |
| 20582 | echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5 |
| 20583 | echo $ECHO_N "checking for readline in -ltermcap... $ECHO_C" >&6 |
| 20584 | if test "${ac_cv_lib_termcap_readline+set}" = set; then |
| 20585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20586 | else |
| 20587 | ac_check_lib_save_LIBS=$LIBS |
| 20588 | LIBS="-ltermcap $LIBS" |
| 20589 | cat >conftest.$ac_ext <<_ACEOF |
| 20590 | /* confdefs.h. */ |
| 20591 | _ACEOF |
| 20592 | cat confdefs.h >>conftest.$ac_ext |
| 20593 | cat >>conftest.$ac_ext <<_ACEOF |
| 20594 | /* end confdefs.h. */ |
| 20595 | |
| 20596 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 20597 | #ifdef __cplusplus |
| 20598 | extern "C" |
| 20599 | #endif |
| 20600 | /* We use char because int might match the return type of a gcc2 |
| 20601 | builtin and then its argument prototype would still apply. */ |
| 20602 | char readline (); |
| 20603 | int |
| 20604 | main () |
| 20605 | { |
| 20606 | readline (); |
| 20607 | ; |
| 20608 | return 0; |
| 20609 | } |
| 20610 | _ACEOF |
| 20611 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20612 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 20613 | (eval $ac_link) 2>conftest.er1 |
| 20614 | ac_status=$? |
| 20615 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20616 | rm -f conftest.er1 |
| 20617 | cat conftest.err >&5 |
| 20618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20619 | (exit $ac_status); } && |
| 20620 | { ac_try='test -z "$ac_c_werror_flag" |
| 20621 | || test ! -s conftest.err' |
| 20622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20623 | (eval $ac_try) 2>&5 |
| 20624 | ac_status=$? |
| 20625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20626 | (exit $ac_status); }; } && |
| 20627 | { ac_try='test -s conftest$ac_exeext' |
| 20628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20629 | (eval $ac_try) 2>&5 |
| 20630 | ac_status=$? |
| 20631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20632 | (exit $ac_status); }; }; then |
| 20633 | ac_cv_lib_termcap_readline=yes |
| 20634 | else |
| 20635 | echo "$as_me: failed program was:" >&5 |
| 20636 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20637 | |
| 20638 | ac_cv_lib_termcap_readline=no |
| 20639 | fi |
| 20640 | rm -f conftest.err conftest.$ac_objext \ |
| 20641 | conftest$ac_exeext conftest.$ac_ext |
| 20642 | LIBS=$ac_check_lib_save_LIBS |
| 20643 | fi |
| 20644 | echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_readline" >&5 |
| 20645 | echo "${ECHO_T}$ac_cv_lib_termcap_readline" >&6 |
| 20646 | if test $ac_cv_lib_termcap_readline = yes; then |
| 20647 | cat >>confdefs.h <<_ACEOF |
| 20648 | #define HAVE_LIBTERMCAP 1 |
| 20649 | _ACEOF |
| 20650 | |
| 20651 | LIBS="-ltermcap $LIBS" |
| 20652 | |
| 20653 | fi |
| 20654 | |
| 20655 | fi |
| 20656 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20657 | # check for readline 2.1 |
| 20658 | echo "$as_me:$LINENO: checking for rl_callback_handler_install in -lreadline" >&5 |
| 20659 | echo $ECHO_N "checking for rl_callback_handler_install in -lreadline... $ECHO_C" >&6 |
| 20660 | if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then |
| 20661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 20662 | else |
| 20663 | ac_check_lib_save_LIBS=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 20664 | LIBS="-lreadline $LIBS" |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20665 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20666 | /* confdefs.h. */ |
| 20667 | _ACEOF |
| 20668 | cat confdefs.h >>conftest.$ac_ext |
| 20669 | cat >>conftest.$ac_ext <<_ACEOF |
| 20670 | /* end confdefs.h. */ |
| 20671 | |
| 20672 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 20673 | #ifdef __cplusplus |
| 20674 | extern "C" |
| 20675 | #endif |
| 20676 | /* We use char because int might match the return type of a gcc2 |
| 20677 | builtin and then its argument prototype would still apply. */ |
| 20678 | char rl_callback_handler_install (); |
| 20679 | int |
| 20680 | main () |
| 20681 | { |
| 20682 | rl_callback_handler_install (); |
| 20683 | ; |
| 20684 | return 0; |
| 20685 | } |
| 20686 | _ACEOF |
| 20687 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20689 | (eval $ac_link) 2>conftest.er1 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20690 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20691 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20692 | rm -f conftest.er1 |
| 20693 | cat conftest.err >&5 |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20695 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20696 | { ac_try='test -z "$ac_c_werror_flag" |
| 20697 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20699 | (eval $ac_try) 2>&5 |
| 20700 | ac_status=$? |
| 20701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20702 | (exit $ac_status); }; } && |
| 20703 | { ac_try='test -s conftest$ac_exeext' |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20705 | (eval $ac_try) 2>&5 |
| 20706 | ac_status=$? |
| 20707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20708 | (exit $ac_status); }; }; then |
| 20709 | ac_cv_lib_readline_rl_callback_handler_install=yes |
| 20710 | else |
| 20711 | echo "$as_me: failed program was:" >&5 |
| 20712 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20713 | |
| 20714 | ac_cv_lib_readline_rl_callback_handler_install=no |
| 20715 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20716 | rm -f conftest.err conftest.$ac_objext \ |
| 20717 | conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20718 | LIBS=$ac_check_lib_save_LIBS |
| 20719 | fi |
| 20720 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 |
| 20721 | echo "${ECHO_T}$ac_cv_lib_readline_rl_callback_handler_install" >&6 |
| 20722 | if test $ac_cv_lib_readline_rl_callback_handler_install = yes; then |
| 20723 | |
| 20724 | cat >>confdefs.h <<\_ACEOF |
| 20725 | #define HAVE_RL_CALLBACK 1 |
| 20726 | _ACEOF |
| 20727 | |
| 20728 | fi |
| 20729 | |
| 20730 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 20731 | # check for readline 2.2 |
| 20732 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20733 | /* confdefs.h. */ |
| 20734 | _ACEOF |
| 20735 | cat confdefs.h >>conftest.$ac_ext |
| 20736 | cat >>conftest.$ac_ext <<_ACEOF |
| 20737 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 20738 | #include <readline/readline.h> |
| 20739 | _ACEOF |
| 20740 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 20741 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 20742 | ac_status=$? |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20743 | grep -v '^ *+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 20744 | rm -f conftest.er1 |
| 20745 | cat conftest.err >&5 |
| 20746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20747 | (exit $ac_status); } >/dev/null; then |
| 20748 | if test -s conftest.err; then |
| 20749 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20750 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 20751 | else |
| 20752 | ac_cpp_err= |
| 20753 | fi |
| 20754 | else |
| 20755 | ac_cpp_err=yes |
| 20756 | fi |
| 20757 | if test -z "$ac_cpp_err"; then |
| 20758 | have_readline=yes |
| 20759 | else |
| 20760 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20761 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20762 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 20763 | have_readline=no |
| 20764 | fi |
| 20765 | rm -f conftest.err conftest.$ac_ext |
| 20766 | if test $have_readline = yes |
| 20767 | then |
| 20768 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20769 | /* confdefs.h. */ |
| 20770 | _ACEOF |
| 20771 | cat confdefs.h >>conftest.$ac_ext |
| 20772 | cat >>conftest.$ac_ext <<_ACEOF |
| 20773 | /* end confdefs.h. */ |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 20774 | #include <readline/readline.h> |
| 20775 | |
| 20776 | _ACEOF |
| 20777 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20778 | $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] | 20779 | |
| 20780 | cat >>confdefs.h <<\_ACEOF |
| 20781 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 20782 | _ACEOF |
| 20783 | |
| 20784 | fi |
| 20785 | rm -f conftest* |
| 20786 | |
| 20787 | fi |
| 20788 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 20789 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20790 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 20791 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 20792 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 20793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 20794 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20795 | ac_check_lib_save_LIBS=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 20796 | LIBS="-lreadline $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20797 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20798 | /* confdefs.h. */ |
| 20799 | _ACEOF |
| 20800 | cat confdefs.h >>conftest.$ac_ext |
| 20801 | cat >>conftest.$ac_ext <<_ACEOF |
| 20802 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20803 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 20804 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20805 | #ifdef __cplusplus |
| 20806 | extern "C" |
| 20807 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 20808 | /* 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] | 20809 | builtin and then its argument prototype would still apply. */ |
| 20810 | char rl_pre_input_hook (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20811 | int |
| 20812 | main () |
| 20813 | { |
| 20814 | rl_pre_input_hook (); |
| 20815 | ; |
| 20816 | return 0; |
| 20817 | } |
| 20818 | _ACEOF |
| 20819 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20820 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20821 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20822 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20823 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20824 | rm -f conftest.er1 |
| 20825 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20827 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20828 | { ac_try='test -z "$ac_c_werror_flag" |
| 20829 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20831 | (eval $ac_try) 2>&5 |
| 20832 | ac_status=$? |
| 20833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20834 | (exit $ac_status); }; } && |
| 20835 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20837 | (eval $ac_try) 2>&5 |
| 20838 | ac_status=$? |
| 20839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20840 | (exit $ac_status); }; }; then |
| 20841 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 20842 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20843 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20844 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20845 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20846 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 20847 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20848 | rm -f conftest.err conftest.$ac_objext \ |
| 20849 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20850 | LIBS=$ac_check_lib_save_LIBS |
| 20851 | fi |
| 20852 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 20853 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 20854 | 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] | 20855 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20856 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 20857 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20858 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 20859 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 20860 | fi |
| 20861 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20862 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 20863 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20864 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 20865 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 20866 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 20867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 20868 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20869 | ac_check_lib_save_LIBS=$LIBS |
Neal Norwitz | fe8e3d9 | 2006-01-07 21:07:20 +0000 | [diff] [blame] | 20870 | LIBS="-lreadline $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20871 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20872 | /* confdefs.h. */ |
| 20873 | _ACEOF |
| 20874 | cat confdefs.h >>conftest.$ac_ext |
| 20875 | cat >>conftest.$ac_ext <<_ACEOF |
| 20876 | /* end confdefs.h. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20877 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 20878 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20879 | #ifdef __cplusplus |
| 20880 | extern "C" |
| 20881 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 20882 | /* 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] | 20883 | builtin and then its argument prototype would still apply. */ |
| 20884 | char rl_completion_matches (); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20885 | int |
| 20886 | main () |
| 20887 | { |
| 20888 | rl_completion_matches (); |
| 20889 | ; |
| 20890 | return 0; |
| 20891 | } |
| 20892 | _ACEOF |
| 20893 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 20894 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20895 | (eval $ac_link) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20896 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20897 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20898 | rm -f conftest.er1 |
| 20899 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20901 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 20902 | { ac_try='test -z "$ac_c_werror_flag" |
| 20903 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20905 | (eval $ac_try) 2>&5 |
| 20906 | ac_status=$? |
| 20907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20908 | (exit $ac_status); }; } && |
| 20909 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 20911 | (eval $ac_try) 2>&5 |
| 20912 | ac_status=$? |
| 20913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20914 | (exit $ac_status); }; }; then |
| 20915 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 20916 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20917 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 20918 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20919 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20920 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 20921 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20922 | rm -f conftest.err conftest.$ac_objext \ |
| 20923 | conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20924 | LIBS=$ac_check_lib_save_LIBS |
| 20925 | fi |
| 20926 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 20927 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 20928 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 20929 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20930 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 20931 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20932 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 20933 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 20934 | fi |
| 20935 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 20936 | |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20937 | # also in readline 4.2 |
| 20938 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20939 | /* confdefs.h. */ |
| 20940 | _ACEOF |
| 20941 | cat confdefs.h >>conftest.$ac_ext |
| 20942 | cat >>conftest.$ac_ext <<_ACEOF |
| 20943 | /* end confdefs.h. */ |
| 20944 | #include <readline/readline.h> |
| 20945 | _ACEOF |
| 20946 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 20947 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 20948 | ac_status=$? |
| 20949 | grep -v '^ *+' conftest.er1 >conftest.err |
| 20950 | rm -f conftest.er1 |
| 20951 | cat conftest.err >&5 |
| 20952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 20953 | (exit $ac_status); } >/dev/null; then |
| 20954 | if test -s conftest.err; then |
| 20955 | ac_cpp_err=$ac_c_preproc_warn_flag |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 20956 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20957 | else |
| 20958 | ac_cpp_err= |
| 20959 | fi |
| 20960 | else |
| 20961 | ac_cpp_err=yes |
| 20962 | fi |
| 20963 | if test -z "$ac_cpp_err"; then |
| 20964 | have_readline=yes |
| 20965 | else |
| 20966 | echo "$as_me: failed program was:" >&5 |
| 20967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 20968 | |
| 20969 | have_readline=no |
| 20970 | fi |
| 20971 | rm -f conftest.err conftest.$ac_ext |
| 20972 | if test $have_readline = yes |
| 20973 | then |
| 20974 | cat >conftest.$ac_ext <<_ACEOF |
Michael W. Hudson | 30ea2f2 | 2004-07-07 17:44:12 +0000 | [diff] [blame] | 20975 | /* confdefs.h. */ |
| 20976 | _ACEOF |
| 20977 | cat confdefs.h >>conftest.$ac_ext |
| 20978 | cat >>conftest.$ac_ext <<_ACEOF |
| 20979 | /* end confdefs.h. */ |
| 20980 | #include <readline/readline.h> |
| 20981 | |
| 20982 | _ACEOF |
| 20983 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 20984 | $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then |
| 20985 | |
| 20986 | cat >>confdefs.h <<\_ACEOF |
| 20987 | #define HAVE_RL_CATCH_SIGNAL 1 |
| 20988 | _ACEOF |
| 20989 | |
| 20990 | fi |
| 20991 | rm -f conftest* |
| 20992 | |
| 20993 | fi |
| 20994 | |
Martin v. Löwis | 82bca63 | 2006-02-10 20:49:30 +0000 | [diff] [blame] | 20995 | # End of readline checks: restore LIBS |
| 20996 | LIBS=$LIBS_no_readline |
| 20997 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 20998 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 20999 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 21000 | if test "${ac_cv_broken_nice+set}" = set; then |
| 21001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21002 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21003 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21004 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 21005 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21006 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21007 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21008 | /* confdefs.h. */ |
| 21009 | _ACEOF |
| 21010 | cat confdefs.h >>conftest.$ac_ext |
| 21011 | cat >>conftest.$ac_ext <<_ACEOF |
| 21012 | /* end confdefs.h. */ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21013 | |
| 21014 | int main() |
| 21015 | { |
| 21016 | int val1 = nice(1); |
| 21017 | if (val1 != -1 && val1 == nice(2)) |
| 21018 | exit(0); |
| 21019 | exit(1); |
| 21020 | } |
| 21021 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21022 | _ACEOF |
| 21023 | rm -f conftest$ac_exeext |
| 21024 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21025 | (eval $ac_link) 2>&5 |
| 21026 | ac_status=$? |
| 21027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21028 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21030 | (eval $ac_try) 2>&5 |
| 21031 | ac_status=$? |
| 21032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21033 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21034 | ac_cv_broken_nice=yes |
| 21035 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21036 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21037 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21038 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21039 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21040 | ( exit $ac_status ) |
| 21041 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21042 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21043 | 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] | 21044 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21045 | fi |
| 21046 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21047 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 21048 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21049 | if test "$ac_cv_broken_nice" = yes |
| 21050 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21051 | |
| 21052 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21053 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21054 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 21055 | |
| 21056 | fi |
| 21057 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 21058 | echo "$as_me:$LINENO: checking for broken poll()" >&5 |
| 21059 | echo $ECHO_N "checking for broken poll()... $ECHO_C" >&6 |
| 21060 | if test "$cross_compiling" = yes; then |
| 21061 | ac_cv_broken_poll=no |
| 21062 | else |
| 21063 | cat >conftest.$ac_ext <<_ACEOF |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 21064 | /* confdefs.h. */ |
| 21065 | _ACEOF |
| 21066 | cat confdefs.h >>conftest.$ac_ext |
| 21067 | cat >>conftest.$ac_ext <<_ACEOF |
| 21068 | /* end confdefs.h. */ |
| 21069 | |
| 21070 | #include <poll.h> |
| 21071 | |
| 21072 | int main (void) |
| 21073 | { |
| 21074 | struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; |
| 21075 | |
| 21076 | close (42); |
| 21077 | |
| 21078 | int poll_test = poll (&poll_struct, 1, 0); |
| 21079 | |
| 21080 | if (poll_test < 0) |
| 21081 | { |
| 21082 | exit(0); |
| 21083 | } |
| 21084 | else if (poll_test == 0 && poll_struct.revents != POLLNVAL) |
| 21085 | { |
| 21086 | exit(0); |
| 21087 | } |
| 21088 | else |
| 21089 | { |
| 21090 | exit(1); |
| 21091 | } |
| 21092 | } |
| 21093 | |
| 21094 | _ACEOF |
| 21095 | rm -f conftest$ac_exeext |
| 21096 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21097 | (eval $ac_link) 2>&5 |
| 21098 | ac_status=$? |
| 21099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21100 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21102 | (eval $ac_try) 2>&5 |
| 21103 | ac_status=$? |
| 21104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21105 | (exit $ac_status); }; }; then |
| 21106 | ac_cv_broken_poll=yes |
| 21107 | else |
| 21108 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21109 | echo "$as_me: failed program was:" >&5 |
| 21110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21111 | |
| 21112 | ( exit $ac_status ) |
| 21113 | ac_cv_broken_poll=no |
| 21114 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21115 | 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] | 21116 | fi |
| 21117 | echo "$as_me:$LINENO: result: $ac_cv_broken_poll" >&5 |
| 21118 | echo "${ECHO_T}$ac_cv_broken_poll" >&6 |
| 21119 | if test "$ac_cv_broken_poll" = yes |
| 21120 | then |
| 21121 | |
| 21122 | cat >>confdefs.h <<\_ACEOF |
| 21123 | #define HAVE_BROKEN_POLL 1 |
| 21124 | _ACEOF |
| 21125 | |
| 21126 | fi |
| 21127 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21128 | # 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] | 21129 | # (which is not required by ISO C or UNIX spec) and/or if we support |
| 21130 | # tzname[] |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21131 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 21132 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 21133 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 21134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21135 | else |
| 21136 | cat >conftest.$ac_ext <<_ACEOF |
| 21137 | /* confdefs.h. */ |
| 21138 | _ACEOF |
| 21139 | cat confdefs.h >>conftest.$ac_ext |
| 21140 | cat >>conftest.$ac_ext <<_ACEOF |
| 21141 | /* end confdefs.h. */ |
| 21142 | #include <sys/types.h> |
| 21143 | #include <$ac_cv_struct_tm> |
| 21144 | |
| 21145 | |
| 21146 | int |
| 21147 | main () |
| 21148 | { |
| 21149 | static struct tm ac_aggr; |
| 21150 | if (ac_aggr.tm_zone) |
| 21151 | return 0; |
| 21152 | ; |
| 21153 | return 0; |
| 21154 | } |
| 21155 | _ACEOF |
| 21156 | rm -f conftest.$ac_objext |
| 21157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21158 | (eval $ac_compile) 2>conftest.er1 |
| 21159 | ac_status=$? |
| 21160 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21161 | rm -f conftest.er1 |
| 21162 | cat conftest.err >&5 |
| 21163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21164 | (exit $ac_status); } && |
| 21165 | { ac_try='test -z "$ac_c_werror_flag" |
| 21166 | || test ! -s conftest.err' |
| 21167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21168 | (eval $ac_try) 2>&5 |
| 21169 | ac_status=$? |
| 21170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21171 | (exit $ac_status); }; } && |
| 21172 | { ac_try='test -s conftest.$ac_objext' |
| 21173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21174 | (eval $ac_try) 2>&5 |
| 21175 | ac_status=$? |
| 21176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21177 | (exit $ac_status); }; }; then |
| 21178 | ac_cv_member_struct_tm_tm_zone=yes |
| 21179 | else |
| 21180 | echo "$as_me: failed program was:" >&5 |
| 21181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21182 | |
| 21183 | cat >conftest.$ac_ext <<_ACEOF |
| 21184 | /* confdefs.h. */ |
| 21185 | _ACEOF |
| 21186 | cat confdefs.h >>conftest.$ac_ext |
| 21187 | cat >>conftest.$ac_ext <<_ACEOF |
| 21188 | /* end confdefs.h. */ |
| 21189 | #include <sys/types.h> |
| 21190 | #include <$ac_cv_struct_tm> |
| 21191 | |
| 21192 | |
| 21193 | int |
| 21194 | main () |
| 21195 | { |
| 21196 | static struct tm ac_aggr; |
| 21197 | if (sizeof ac_aggr.tm_zone) |
| 21198 | return 0; |
| 21199 | ; |
| 21200 | return 0; |
| 21201 | } |
| 21202 | _ACEOF |
| 21203 | rm -f conftest.$ac_objext |
| 21204 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21205 | (eval $ac_compile) 2>conftest.er1 |
| 21206 | ac_status=$? |
| 21207 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21208 | rm -f conftest.er1 |
| 21209 | cat conftest.err >&5 |
| 21210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21211 | (exit $ac_status); } && |
| 21212 | { ac_try='test -z "$ac_c_werror_flag" |
| 21213 | || test ! -s conftest.err' |
| 21214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21215 | (eval $ac_try) 2>&5 |
| 21216 | ac_status=$? |
| 21217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21218 | (exit $ac_status); }; } && |
| 21219 | { ac_try='test -s conftest.$ac_objext' |
| 21220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21221 | (eval $ac_try) 2>&5 |
| 21222 | ac_status=$? |
| 21223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21224 | (exit $ac_status); }; }; then |
| 21225 | ac_cv_member_struct_tm_tm_zone=yes |
| 21226 | else |
| 21227 | echo "$as_me: failed program was:" >&5 |
| 21228 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21229 | |
| 21230 | ac_cv_member_struct_tm_tm_zone=no |
| 21231 | fi |
| 21232 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21233 | fi |
| 21234 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21235 | fi |
| 21236 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 21237 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 21238 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 21239 | |
| 21240 | cat >>confdefs.h <<_ACEOF |
| 21241 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 21242 | _ACEOF |
| 21243 | |
| 21244 | |
| 21245 | fi |
| 21246 | |
| 21247 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 21248 | |
| 21249 | cat >>confdefs.h <<\_ACEOF |
| 21250 | #define HAVE_TM_ZONE 1 |
| 21251 | _ACEOF |
| 21252 | |
| 21253 | else |
| 21254 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 21255 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 21256 | if test "${ac_cv_var_tzname+set}" = set; then |
| 21257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21258 | else |
| 21259 | cat >conftest.$ac_ext <<_ACEOF |
| 21260 | /* confdefs.h. */ |
| 21261 | _ACEOF |
| 21262 | cat confdefs.h >>conftest.$ac_ext |
| 21263 | cat >>conftest.$ac_ext <<_ACEOF |
| 21264 | /* end confdefs.h. */ |
| 21265 | #include <time.h> |
| 21266 | #ifndef tzname /* For SGI. */ |
| 21267 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
| 21268 | #endif |
| 21269 | |
| 21270 | int |
| 21271 | main () |
| 21272 | { |
| 21273 | atoi(*tzname); |
| 21274 | ; |
| 21275 | return 0; |
| 21276 | } |
| 21277 | _ACEOF |
| 21278 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 21279 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21280 | (eval $ac_link) 2>conftest.er1 |
| 21281 | ac_status=$? |
| 21282 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21283 | rm -f conftest.er1 |
| 21284 | cat conftest.err >&5 |
| 21285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21286 | (exit $ac_status); } && |
| 21287 | { ac_try='test -z "$ac_c_werror_flag" |
| 21288 | || test ! -s conftest.err' |
| 21289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21290 | (eval $ac_try) 2>&5 |
| 21291 | ac_status=$? |
| 21292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21293 | (exit $ac_status); }; } && |
| 21294 | { ac_try='test -s conftest$ac_exeext' |
| 21295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21296 | (eval $ac_try) 2>&5 |
| 21297 | ac_status=$? |
| 21298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21299 | (exit $ac_status); }; }; then |
| 21300 | ac_cv_var_tzname=yes |
| 21301 | else |
| 21302 | echo "$as_me: failed program was:" >&5 |
| 21303 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21304 | |
| 21305 | ac_cv_var_tzname=no |
| 21306 | fi |
| 21307 | rm -f conftest.err conftest.$ac_objext \ |
| 21308 | conftest$ac_exeext conftest.$ac_ext |
| 21309 | fi |
| 21310 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 21311 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
| 21312 | if test $ac_cv_var_tzname = yes; then |
| 21313 | |
| 21314 | cat >>confdefs.h <<\_ACEOF |
| 21315 | #define HAVE_TZNAME 1 |
| 21316 | _ACEOF |
| 21317 | |
| 21318 | fi |
| 21319 | fi |
| 21320 | |
Nicholas Bastin | e62c5c8 | 2004-03-21 23:45:42 +0000 | [diff] [blame] | 21321 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 21322 | # check tzset(3) exists and works like we expect it to |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 21323 | echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 21324 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6 |
| 21325 | if test "${ac_cv_working_tzset+set}" = set; then |
| 21326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21327 | else |
| 21328 | |
| 21329 | if test "$cross_compiling" = yes; then |
| 21330 | ac_cv_working_tzset=no |
| 21331 | else |
| 21332 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21333 | /* confdefs.h. */ |
| 21334 | _ACEOF |
| 21335 | cat confdefs.h >>conftest.$ac_ext |
| 21336 | cat >>conftest.$ac_ext <<_ACEOF |
| 21337 | /* end confdefs.h. */ |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 21338 | |
| 21339 | #include <stdlib.h> |
| 21340 | #include <time.h> |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 21341 | #include <string.h> |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21342 | |
| 21343 | #if HAVE_TZNAME |
| 21344 | extern char *tzname[]; |
| 21345 | #endif |
| 21346 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 21347 | int main() |
| 21348 | { |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 21349 | /* Note that we need to ensure that not only does tzset(3) |
| 21350 | do 'something' with localtime, but it works as documented |
| 21351 | 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] | 21352 | This includes making sure that tzname is set properly if |
| 21353 | tm->tm_zone does not exist since it is the alternative way |
| 21354 | of getting timezone info. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 21355 | |
| 21356 | Red Hat 6.2 doesn't understand the southern hemisphere |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 21357 | after New Year's Day. |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 21358 | */ |
| 21359 | |
Martin v. Löwis | 1d45906 | 2005-03-14 21:23:33 +0000 | [diff] [blame] | 21360 | time_t groundhogday = 1044144000; /* GMT-based */ |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 21361 | time_t midyear = groundhogday + (365 * 24 * 3600 / 2); |
| 21362 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 21363 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 21364 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 21365 | if (localtime(&groundhogday)->tm_hour != 0) |
| 21366 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21367 | #if HAVE_TZNAME |
| 21368 | /* For UTC, tzname[1] is sometimes "", sometimes " " */ |
| 21369 | if (strcmp(tzname[0], "UTC") || |
| 21370 | (tzname[1][0] != 0 && tzname[1][0] != ' ')) |
| 21371 | exit(1); |
| 21372 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 21373 | |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 21374 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 21375 | tzset(); |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 21376 | if (localtime(&groundhogday)->tm_hour != 19) |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 21377 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21378 | #if HAVE_TZNAME |
| 21379 | if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) |
| 21380 | exit(1); |
| 21381 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 21382 | |
| 21383 | putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); |
| 21384 | tzset(); |
| 21385 | if (localtime(&groundhogday)->tm_hour != 11) |
| 21386 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21387 | #if HAVE_TZNAME |
| 21388 | if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) |
| 21389 | exit(1); |
| 21390 | #endif |
| 21391 | |
| 21392 | #if HAVE_STRUCT_TM_TM_ZONE |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 21393 | if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) |
| 21394 | exit(1); |
| 21395 | if (strcmp(localtime(&midyear)->tm_zone, "AEST")) |
| 21396 | exit(1); |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21397 | #endif |
Brett Cannon | 1836781 | 2003-09-19 00:59:16 +0000 | [diff] [blame] | 21398 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 21399 | exit(0); |
| 21400 | } |
| 21401 | |
| 21402 | _ACEOF |
| 21403 | rm -f conftest$ac_exeext |
| 21404 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 21405 | (eval $ac_link) 2>&5 |
| 21406 | ac_status=$? |
| 21407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21408 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 21409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21410 | (eval $ac_try) 2>&5 |
| 21411 | ac_status=$? |
| 21412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21413 | (exit $ac_status); }; }; then |
| 21414 | ac_cv_working_tzset=yes |
| 21415 | else |
| 21416 | echo "$as_me: program exited with status $ac_status" >&5 |
| 21417 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21418 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21419 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 21420 | ( exit $ac_status ) |
| 21421 | ac_cv_working_tzset=no |
| 21422 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21423 | 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] | 21424 | fi |
| 21425 | fi |
| 21426 | |
| 21427 | echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 21428 | echo "${ECHO_T}$ac_cv_working_tzset" >&6 |
| 21429 | if test "$ac_cv_working_tzset" = yes |
| 21430 | then |
| 21431 | |
| 21432 | cat >>confdefs.h <<\_ACEOF |
| 21433 | #define HAVE_WORKING_TZSET 1 |
| 21434 | _ACEOF |
| 21435 | |
| 21436 | fi |
| 21437 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 21438 | # Look for subsecond timestamps in struct stat |
| 21439 | echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 21440 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6 |
| 21441 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 21442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21443 | else |
| 21444 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21445 | /* confdefs.h. */ |
| 21446 | _ACEOF |
| 21447 | cat confdefs.h >>conftest.$ac_ext |
| 21448 | cat >>conftest.$ac_ext <<_ACEOF |
| 21449 | /* end confdefs.h. */ |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 21450 | #include <sys/stat.h> |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 21451 | int |
| 21452 | main () |
| 21453 | { |
| 21454 | |
| 21455 | struct stat st; |
| 21456 | st.st_mtim.tv_nsec = 1; |
| 21457 | |
| 21458 | ; |
| 21459 | return 0; |
| 21460 | } |
| 21461 | _ACEOF |
| 21462 | rm -f conftest.$ac_objext |
| 21463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21464 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 21465 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21466 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21467 | rm -f conftest.er1 |
| 21468 | cat conftest.err >&5 |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 21469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21470 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21471 | { ac_try='test -z "$ac_c_werror_flag" |
| 21472 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21474 | (eval $ac_try) 2>&5 |
| 21475 | ac_status=$? |
| 21476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21477 | (exit $ac_status); }; } && |
| 21478 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 21479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21480 | (eval $ac_try) 2>&5 |
| 21481 | ac_status=$? |
| 21482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21483 | (exit $ac_status); }; }; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 21484 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 21485 | else |
| 21486 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21487 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21488 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 21489 | ac_cv_stat_tv_nsec=no |
| 21490 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21491 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 21492 | fi |
| 21493 | |
| 21494 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 21495 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6 |
| 21496 | if test "$ac_cv_stat_tv_nsec" = yes |
| 21497 | then |
| 21498 | |
| 21499 | cat >>confdefs.h <<\_ACEOF |
| 21500 | #define HAVE_STAT_TV_NSEC 1 |
| 21501 | _ACEOF |
| 21502 | |
| 21503 | fi |
| 21504 | |
Martin v. Löwis | ebd9d5b | 2005-08-09 15:00:59 +0000 | [diff] [blame] | 21505 | # Look for BSD style subsecond timestamps in struct stat |
| 21506 | echo "$as_me:$LINENO: checking for tv_nsec2 in struct stat" >&5 |
| 21507 | echo $ECHO_N "checking for tv_nsec2 in struct stat... $ECHO_C" >&6 |
| 21508 | if test "${ac_cv_stat_tv_nsec2+set}" = set; then |
| 21509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 21510 | else |
| 21511 | cat >conftest.$ac_ext <<_ACEOF |
| 21512 | /* confdefs.h. */ |
| 21513 | _ACEOF |
| 21514 | cat confdefs.h >>conftest.$ac_ext |
| 21515 | cat >>conftest.$ac_ext <<_ACEOF |
| 21516 | /* end confdefs.h. */ |
| 21517 | #include <sys/stat.h> |
| 21518 | int |
| 21519 | main () |
| 21520 | { |
| 21521 | |
| 21522 | struct stat st; |
| 21523 | st.st_mtimespec.tv_nsec = 1; |
| 21524 | |
| 21525 | ; |
| 21526 | return 0; |
| 21527 | } |
| 21528 | _ACEOF |
| 21529 | rm -f conftest.$ac_objext |
| 21530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 21531 | (eval $ac_compile) 2>conftest.er1 |
| 21532 | ac_status=$? |
| 21533 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21534 | rm -f conftest.er1 |
| 21535 | cat conftest.err >&5 |
| 21536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21537 | (exit $ac_status); } && |
| 21538 | { ac_try='test -z "$ac_c_werror_flag" |
| 21539 | || test ! -s conftest.err' |
| 21540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21541 | (eval $ac_try) 2>&5 |
| 21542 | ac_status=$? |
| 21543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21544 | (exit $ac_status); }; } && |
| 21545 | { ac_try='test -s conftest.$ac_objext' |
| 21546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21547 | (eval $ac_try) 2>&5 |
| 21548 | ac_status=$? |
| 21549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21550 | (exit $ac_status); }; }; then |
| 21551 | ac_cv_stat_tv_nsec2=yes |
| 21552 | else |
| 21553 | echo "$as_me: failed program was:" >&5 |
| 21554 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21555 | |
| 21556 | ac_cv_stat_tv_nsec2=no |
| 21557 | fi |
| 21558 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21559 | fi |
| 21560 | |
| 21561 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec2" >&5 |
| 21562 | echo "${ECHO_T}$ac_cv_stat_tv_nsec2" >&6 |
| 21563 | if test "$ac_cv_stat_tv_nsec2" = yes |
| 21564 | then |
| 21565 | |
| 21566 | cat >>confdefs.h <<\_ACEOF |
| 21567 | #define HAVE_STAT_TV_NSEC2 1 |
| 21568 | _ACEOF |
| 21569 | |
| 21570 | fi |
| 21571 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21572 | # 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] | 21573 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 21574 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 21575 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 21576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21577 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21578 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21579 | /* confdefs.h. */ |
| 21580 | _ACEOF |
| 21581 | cat confdefs.h >>conftest.$ac_ext |
| 21582 | cat >>conftest.$ac_ext <<_ACEOF |
| 21583 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21584 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21585 | int |
| 21586 | main () |
| 21587 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21588 | |
| 21589 | int rtn; |
| 21590 | rtn = mvwdelch(0,0,0); |
| 21591 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21592 | ; |
| 21593 | return 0; |
| 21594 | } |
| 21595 | _ACEOF |
| 21596 | rm -f conftest.$ac_objext |
| 21597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21598 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21599 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21600 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21601 | rm -f conftest.er1 |
| 21602 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21604 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21605 | { ac_try='test -z "$ac_c_werror_flag" |
| 21606 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21608 | (eval $ac_try) 2>&5 |
| 21609 | ac_status=$? |
| 21610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21611 | (exit $ac_status); }; } && |
| 21612 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21614 | (eval $ac_try) 2>&5 |
| 21615 | ac_status=$? |
| 21616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21617 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21618 | ac_cv_mvwdelch_is_expression=yes |
| 21619 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21620 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21621 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21622 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21623 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21624 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21625 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21626 | fi |
| 21627 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21628 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 21629 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21630 | |
| 21631 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 21632 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21633 | |
| 21634 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21635 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21636 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21637 | |
| 21638 | fi |
| 21639 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21640 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 21641 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 21642 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 21643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21644 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21645 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21646 | /* confdefs.h. */ |
| 21647 | _ACEOF |
| 21648 | cat confdefs.h >>conftest.$ac_ext |
| 21649 | cat >>conftest.$ac_ext <<_ACEOF |
| 21650 | /* end confdefs.h. */ |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21651 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21652 | int |
| 21653 | main () |
| 21654 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21655 | |
| 21656 | WINDOW *w; |
| 21657 | w->_flags = 0; |
| 21658 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21659 | ; |
| 21660 | return 0; |
| 21661 | } |
| 21662 | _ACEOF |
| 21663 | rm -f conftest.$ac_objext |
| 21664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21665 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21666 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21667 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21668 | rm -f conftest.er1 |
| 21669 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21671 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21672 | { ac_try='test -z "$ac_c_werror_flag" |
| 21673 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21675 | (eval $ac_try) 2>&5 |
| 21676 | ac_status=$? |
| 21677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21678 | (exit $ac_status); }; } && |
| 21679 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21681 | (eval $ac_try) 2>&5 |
| 21682 | ac_status=$? |
| 21683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21684 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21685 | ac_cv_window_has_flags=yes |
| 21686 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21687 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21689 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21690 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21691 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21692 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21693 | fi |
| 21694 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21695 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 21696 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21697 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21698 | |
| 21699 | if test "$ac_cv_window_has_flags" = yes |
| 21700 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21701 | |
| 21702 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21703 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21704 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 21705 | |
| 21706 | fi |
| 21707 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 21708 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 21709 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
| 21710 | |
| 21711 | if test -e /dev/ptmx |
| 21712 | then |
| 21713 | echo "$as_me:$LINENO: result: yes" >&5 |
| 21714 | echo "${ECHO_T}yes" >&6 |
| 21715 | |
| 21716 | cat >>confdefs.h <<\_ACEOF |
| 21717 | #define HAVE_DEV_PTMX 1 |
| 21718 | _ACEOF |
| 21719 | |
| 21720 | else |
| 21721 | echo "$as_me:$LINENO: result: no" >&5 |
| 21722 | echo "${ECHO_T}no" >&6 |
| 21723 | fi |
| 21724 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 21725 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 21726 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
| 21727 | |
| 21728 | if test -e /dev/ptc |
| 21729 | then |
| 21730 | echo "$as_me:$LINENO: result: yes" >&5 |
| 21731 | echo "${ECHO_T}yes" >&6 |
| 21732 | |
| 21733 | cat >>confdefs.h <<\_ACEOF |
| 21734 | #define HAVE_DEV_PTC 1 |
| 21735 | _ACEOF |
| 21736 | |
| 21737 | else |
| 21738 | echo "$as_me:$LINENO: result: no" >&5 |
| 21739 | echo "${ECHO_T}no" >&6 |
| 21740 | fi |
| 21741 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21742 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 21743 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 21744 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 21745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 21746 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21747 | cat >conftest.$ac_ext <<_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21748 | /* confdefs.h. */ |
| 21749 | _ACEOF |
| 21750 | cat confdefs.h >>conftest.$ac_ext |
| 21751 | cat >>conftest.$ac_ext <<_ACEOF |
| 21752 | /* end confdefs.h. */ |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 21753 | |
| 21754 | #ifdef HAVE_SYS_TYPES_H |
| 21755 | #include <sys/types.h> |
| 21756 | #endif |
| 21757 | #ifdef HAVE_SYS_SOCKET_H |
| 21758 | #include <sys/socket.h> |
| 21759 | #endif |
| 21760 | |
| 21761 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21762 | int |
| 21763 | main () |
| 21764 | { |
| 21765 | if ((socklen_t *) 0) |
| 21766 | return 0; |
| 21767 | if (sizeof (socklen_t)) |
| 21768 | return 0; |
| 21769 | ; |
| 21770 | return 0; |
| 21771 | } |
| 21772 | _ACEOF |
| 21773 | rm -f conftest.$ac_objext |
| 21774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21775 | (eval $ac_compile) 2>conftest.er1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21776 | ac_status=$? |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21777 | grep -v '^ *+' conftest.er1 >conftest.err |
| 21778 | rm -f conftest.er1 |
| 21779 | cat conftest.err >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21781 | (exit $ac_status); } && |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 21782 | { ac_try='test -z "$ac_c_werror_flag" |
| 21783 | || test ! -s conftest.err' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21785 | (eval $ac_try) 2>&5 |
| 21786 | ac_status=$? |
| 21787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21788 | (exit $ac_status); }; } && |
| 21789 | { ac_try='test -s conftest.$ac_objext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 21791 | (eval $ac_try) 2>&5 |
| 21792 | ac_status=$? |
| 21793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 21794 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 21795 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 21796 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21797 | echo "$as_me: failed program was:" >&5 |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21798 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 21799 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21800 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 21801 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21802 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21803 | fi |
| 21804 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 21805 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 21806 | if test $ac_cv_type_socklen_t = yes; then |
| 21807 | : |
| 21808 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 21809 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 21810 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 21811 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21812 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 21813 | |
| 21814 | fi |
| 21815 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21816 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21817 | |
| 21818 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 21819 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 21820 | do |
| 21821 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 21822 | done |
| 21823 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21824 | |
Neal Norwitz | d24499d | 2005-12-18 21:36:39 +0000 | [diff] [blame] | 21825 | SRCDIRS="Parser Grammar Objects Python Modules Mac" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21826 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 21827 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 21828 | for dir in $SRCDIRS; do |
| 21829 | if test ! -d $dir; then |
| 21830 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 21831 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 21832 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21833 | echo "$as_me:$LINENO: result: done" >&5 |
| 21834 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 21835 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21836 | # generate output files |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21837 | 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] | 21838 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21839 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21840 | # This file is a shell script that caches the results of configure |
| 21841 | # 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] | 21842 | # scripts and configure runs, see configure's option --config-cache. |
| 21843 | # It is not useful on other systems. If it contains results you don't |
| 21844 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21845 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21846 | # config.status only pays attention to the cache file if you give it |
| 21847 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21848 | # |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21849 | # `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] | 21850 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 21851 | # following values. |
| 21852 | |
| 21853 | _ACEOF |
| 21854 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 21855 | # The following way of writing the cache mishandles newlines in values, |
| 21856 | # but we know of no workaround that is simple, portable, and efficient. |
| 21857 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 21858 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 21859 | # 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] | 21860 | { |
| 21861 | (set) 2>&1 | |
| 21862 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 21863 | *ac_space=\ *) |
| 21864 | # `set' does not quote correctly, so add quotes (double-quote |
| 21865 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 21866 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21867 | "s/'/'\\\\''/g; |
| 21868 | 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] | 21869 | ;; |
| 21870 | *) |
| 21871 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 21872 | sed -n \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21873 | "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] | 21874 | ;; |
| 21875 | esac; |
| 21876 | } | |
| 21877 | sed ' |
| 21878 | t clear |
| 21879 | : clear |
| 21880 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 21881 | t end |
| 21882 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 21883 | : end' >>confcache |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21884 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 21885 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21886 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 21887 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 21888 | else |
| 21889 | echo "not updating unwritable cache $cache_file" |
| 21890 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21891 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 21892 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 21893 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21894 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 21895 | # Let make expand exec_prefix. |
| 21896 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 21897 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21898 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 21899 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 21900 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 21901 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21902 | if test "x$srcdir" = x.; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21903 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21904 | s/:*\$(srcdir):*/:/; |
| 21905 | s/:*\${srcdir}:*/:/; |
| 21906 | s/:*@srcdir@:*/:/; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21907 | s/^\([^=]*=[ ]*\):*/\1/; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21908 | s/:*$//; |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21909 | s/^[^=]*=[ ]*$//; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21910 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 21911 | fi |
| 21912 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21913 | DEFS=-DHAVE_CONFIG_H |
| 21914 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21915 | ac_libobjs= |
| 21916 | ac_ltlibobjs= |
| 21917 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 21918 | # 1. Remove the extension, and $U if already installed. |
| 21919 | ac_i=`echo "$ac_i" | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21920 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21921 | # 2. Add them. |
| 21922 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 21923 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 21924 | done |
| 21925 | LIBOBJS=$ac_libobjs |
| 21926 | |
| 21927 | LTLIBOBJS=$ac_ltlibobjs |
| 21928 | |
| 21929 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21930 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21931 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21932 | ac_clean_files_save=$ac_clean_files |
| 21933 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 21934 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 21935 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 21936 | cat >$CONFIG_STATUS <<_ACEOF |
| 21937 | #! $SHELL |
| 21938 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21939 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 21940 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21941 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 21942 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21943 | debug=false |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21944 | ac_cs_recheck=false |
| 21945 | ac_cs_silent=false |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21946 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 21947 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21948 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21949 | cat >>$CONFIG_STATUS <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21950 | ## --------------------- ## |
| 21951 | ## M4sh Initialization. ## |
| 21952 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 21953 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21954 | # Be Bourne compatible |
| 21955 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 21956 | emulate sh |
| 21957 | NULLCMD=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21958 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 21959 | # is contrary to our usage. Disable this feature. |
| 21960 | alias -g '${1+"$@"}'='"$@"' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21961 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 21962 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21963 | fi |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21964 | DUALCASE=1; export DUALCASE # for MKS sh |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21965 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 21966 | # Support unset when possible. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21967 | 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] | 21968 | as_unset=unset |
| 21969 | else |
| 21970 | as_unset=false |
| 21971 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 21972 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 21973 | |
| 21974 | # Work around bugs in pre-3.0 UWIN ksh. |
| 21975 | $as_unset ENV MAIL MAILPATH |
| 21976 | PS1='$ ' |
| 21977 | PS2='> ' |
| 21978 | PS4='+ ' |
| 21979 | |
| 21980 | # NLS nuisances. |
| 21981 | for as_var in \ |
| 21982 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 21983 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 21984 | LC_TELEPHONE LC_TIME |
| 21985 | do |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 21986 | 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] | 21987 | eval $as_var=C; export $as_var |
| 21988 | else |
| 21989 | $as_unset $as_var |
| 21990 | fi |
| 21991 | done |
| 21992 | |
| 21993 | # Required to use basename. |
| 21994 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 21995 | as_expr=expr |
| 21996 | else |
| 21997 | as_expr=false |
| 21998 | fi |
| 21999 | |
| 22000 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 22001 | as_basename=basename |
| 22002 | else |
| 22003 | as_basename=false |
| 22004 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22005 | |
| 22006 | |
| 22007 | # Name of the executable. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22008 | as_me=`$as_basename "$0" || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22009 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 22010 | X"$0" : 'X\(//\)$' \| \ |
| 22011 | X"$0" : 'X\(/\)$' \| \ |
| 22012 | . : '\(.\)' 2>/dev/null || |
| 22013 | echo X/"$0" | |
| 22014 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 22015 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 22016 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 22017 | s/.*/./; q'` |
| 22018 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22019 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22020 | # PATH needs CR, and LINENO needs CR and PATH. |
| 22021 | # Avoid depending upon Character Ranges. |
| 22022 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 22023 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 22024 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 22025 | as_cr_digits='0123456789' |
| 22026 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 22027 | |
| 22028 | # The user is always right. |
| 22029 | if test "${PATH_SEPARATOR+set}" != set; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22030 | echo "#! /bin/sh" >conf$$.sh |
| 22031 | echo "exit 0" >>conf$$.sh |
| 22032 | chmod +x conf$$.sh |
| 22033 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22034 | PATH_SEPARATOR=';' |
| 22035 | else |
| 22036 | PATH_SEPARATOR=: |
| 22037 | fi |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22038 | rm -f conf$$.sh |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22039 | fi |
| 22040 | |
| 22041 | |
| 22042 | as_lineno_1=$LINENO |
| 22043 | as_lineno_2=$LINENO |
| 22044 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 22045 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 22046 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 22047 | # Find who we are. Look in the path if we contain no path at all |
| 22048 | # relative or not. |
| 22049 | case $0 in |
| 22050 | *[\\/]* ) as_myself=$0 ;; |
| 22051 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22052 | for as_dir in $PATH |
| 22053 | do |
| 22054 | IFS=$as_save_IFS |
| 22055 | test -z "$as_dir" && as_dir=. |
| 22056 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 22057 | done |
| 22058 | |
| 22059 | ;; |
| 22060 | esac |
| 22061 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 22062 | # in which case we are not to be found in the path. |
| 22063 | if test "x$as_myself" = x; then |
| 22064 | as_myself=$0 |
| 22065 | fi |
| 22066 | if test ! -f "$as_myself"; then |
| 22067 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 22068 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 22069 | { (exit 1); exit 1; }; } |
| 22070 | fi |
| 22071 | case $CONFIG_SHELL in |
| 22072 | '') |
| 22073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 22074 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 22075 | do |
| 22076 | IFS=$as_save_IFS |
| 22077 | test -z "$as_dir" && as_dir=. |
| 22078 | for as_base in sh bash ksh sh5; do |
| 22079 | case $as_dir in |
| 22080 | /*) |
| 22081 | if ("$as_dir/$as_base" -c ' |
| 22082 | as_lineno_1=$LINENO |
| 22083 | as_lineno_2=$LINENO |
| 22084 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 22085 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 22086 | 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] | 22087 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 22088 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22089 | CONFIG_SHELL=$as_dir/$as_base |
| 22090 | export CONFIG_SHELL |
| 22091 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 22092 | fi;; |
| 22093 | esac |
| 22094 | done |
| 22095 | done |
| 22096 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22097 | esac |
| 22098 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22099 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 22100 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 22101 | # line-number line before each line; the second 'sed' does the real |
| 22102 | # work. The second script uses 'N' to pair each line-number line |
| 22103 | # with the numbered line, and appends trailing '-' during |
| 22104 | # substitution so that $LINENO is not a special case at line end. |
| 22105 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 22106 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 22107 | sed '=' <$as_myself | |
| 22108 | sed ' |
| 22109 | N |
| 22110 | s,$,-, |
| 22111 | : loop |
| 22112 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 22113 | t loop |
| 22114 | s,-$,, |
| 22115 | s,^['$as_cr_digits']*\n,, |
| 22116 | ' >$as_me.lineno && |
| 22117 | chmod +x $as_me.lineno || |
| 22118 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 22119 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 22120 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22121 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22122 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 22123 | # (the dirname of $[0] is not the place where we might find the |
| 22124 | # original and so on. Autoconf is especially sensible to this). |
| 22125 | . ./$as_me.lineno |
| 22126 | # Exit status is that of the last command. |
| 22127 | exit |
| 22128 | } |
| 22129 | |
| 22130 | |
| 22131 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 22132 | *c*,-n*) ECHO_N= ECHO_C=' |
| 22133 | ' ECHO_T=' ' ;; |
| 22134 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 22135 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 22136 | esac |
| 22137 | |
| 22138 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 22139 | as_expr=expr |
| 22140 | else |
| 22141 | as_expr=false |
| 22142 | fi |
| 22143 | |
| 22144 | rm -f conf$$ conf$$.exe conf$$.file |
| 22145 | echo >conf$$.file |
| 22146 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 22147 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 22148 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 22149 | if test -f conf$$.exe; then |
| 22150 | # Don't use ln at all; we don't have any links |
| 22151 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22152 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22153 | as_ln_s='ln -s' |
| 22154 | fi |
| 22155 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 22156 | as_ln_s=ln |
| 22157 | else |
| 22158 | as_ln_s='cp -p' |
| 22159 | fi |
| 22160 | rm -f conf$$ conf$$.exe conf$$.file |
| 22161 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22162 | if mkdir -p . 2>/dev/null; then |
| 22163 | as_mkdir_p=: |
| 22164 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22165 | test -d ./-p && rmdir ./-p |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22166 | as_mkdir_p=false |
| 22167 | fi |
| 22168 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22169 | as_executable_p="test -f" |
| 22170 | |
| 22171 | # Sed expression to map a string onto a valid CPP name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22172 | 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] | 22173 | |
| 22174 | # Sed expression to map a string onto a valid variable name. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22175 | 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] | 22176 | |
| 22177 | |
| 22178 | # IFS |
| 22179 | # We need space, tab and new line, in precisely that order. |
| 22180 | as_nl=' |
| 22181 | ' |
| 22182 | IFS=" $as_nl" |
| 22183 | |
| 22184 | # CDPATH. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22185 | $as_unset CDPATH |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22186 | |
| 22187 | exec 6>&1 |
| 22188 | |
| 22189 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 22190 | # report actual input values of CONFIG_FILES etc. instead of their |
| 22191 | # values after options handling. Logging --version etc. is OK. |
| 22192 | exec 5>>config.log |
| 22193 | { |
| 22194 | echo |
| 22195 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 22196 | ## Running $as_me. ## |
| 22197 | _ASBOX |
| 22198 | } >&5 |
| 22199 | cat >&5 <<_CSEOF |
| 22200 | |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 22201 | This file was extended by python $as_me 2.5, which was |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22202 | generated by GNU Autoconf 2.59. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22203 | |
| 22204 | CONFIG_FILES = $CONFIG_FILES |
| 22205 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 22206 | CONFIG_LINKS = $CONFIG_LINKS |
| 22207 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 22208 | $ $0 $@ |
| 22209 | |
| 22210 | _CSEOF |
| 22211 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 22212 | echo >&5 |
| 22213 | _ACEOF |
| 22214 | |
| 22215 | # Files that config.status was made for. |
| 22216 | if test -n "$ac_config_files"; then |
| 22217 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 22218 | fi |
| 22219 | |
| 22220 | if test -n "$ac_config_headers"; then |
| 22221 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 22222 | fi |
| 22223 | |
| 22224 | if test -n "$ac_config_links"; then |
| 22225 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 22226 | fi |
| 22227 | |
| 22228 | if test -n "$ac_config_commands"; then |
| 22229 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 22230 | fi |
| 22231 | |
| 22232 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22233 | |
| 22234 | ac_cs_usage="\ |
| 22235 | \`$as_me' instantiates files from templates according to the |
| 22236 | current configuration. |
| 22237 | |
| 22238 | Usage: $0 [OPTIONS] [FILE]... |
| 22239 | |
| 22240 | -h, --help print this help, then exit |
| 22241 | -V, --version print version number, then exit |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22242 | -q, --quiet do not print progress messages |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22243 | -d, --debug don't remove temporary files |
| 22244 | --recheck update $as_me by reconfiguring in the same conditions |
| 22245 | --file=FILE[:TEMPLATE] |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22246 | instantiate the configuration file FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22247 | --header=FILE[:TEMPLATE] |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22248 | instantiate the configuration header FILE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22249 | |
| 22250 | Configuration files: |
| 22251 | $config_files |
| 22252 | |
| 22253 | Configuration headers: |
| 22254 | $config_headers |
| 22255 | |
| 22256 | Report bugs to <bug-autoconf@gnu.org>." |
| 22257 | _ACEOF |
| 22258 | |
| 22259 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22260 | ac_cs_version="\\ |
Martin v. Löwis | fd1c69e7 | 2004-11-30 22:09:37 +0000 | [diff] [blame] | 22261 | python config.status 2.5 |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22262 | configured by $0, generated by GNU Autoconf 2.59, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22263 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 22264 | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22265 | Copyright (C) 2003 Free Software Foundation, Inc. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22266 | This config.status script is free software; the Free Software Foundation |
| 22267 | gives unlimited permission to copy, distribute and modify it." |
| 22268 | srcdir=$srcdir |
| 22269 | INSTALL="$INSTALL" |
| 22270 | _ACEOF |
| 22271 | |
| 22272 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22273 | # If no file are specified by the user, then we need to provide default |
| 22274 | # value. By we need to know if files were specified by the user. |
| 22275 | ac_need_defaults=: |
| 22276 | while test $# != 0 |
| 22277 | do |
| 22278 | case $1 in |
| 22279 | --*=*) |
| 22280 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 22281 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22282 | ac_shift=: |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22283 | ;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22284 | -*) |
| 22285 | ac_option=$1 |
| 22286 | ac_optarg=$2 |
| 22287 | ac_shift=shift |
| 22288 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22289 | *) # This is not an option, so the user has probably given explicit |
| 22290 | # arguments. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22291 | ac_option=$1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22292 | ac_need_defaults=false;; |
| 22293 | esac |
| 22294 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22295 | case $ac_option in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22296 | # Handling of the options. |
| 22297 | _ACEOF |
Marc-André Lemburg | d7160f8 | 2003-09-22 11:14:40 +0000 | [diff] [blame] | 22298 | cat >>$CONFIG_STATUS <<\_ACEOF |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22299 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 22300 | ac_cs_recheck=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22301 | --version | --vers* | -V ) |
| 22302 | echo "$ac_cs_version"; exit 0 ;; |
| 22303 | --he | --h) |
| 22304 | # Conflict between --help and --header |
| 22305 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 22306 | Try \`$0 --help' for more information." >&5 |
| 22307 | echo "$as_me: error: ambiguous option: $1 |
| 22308 | Try \`$0 --help' for more information." >&2;} |
| 22309 | { (exit 1); exit 1; }; };; |
| 22310 | --help | --hel | -h ) |
| 22311 | echo "$ac_cs_usage"; exit 0 ;; |
| 22312 | --debug | --d* | -d ) |
| 22313 | debug=: ;; |
| 22314 | --file | --fil | --fi | --f ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22315 | $ac_shift |
| 22316 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22317 | ac_need_defaults=false;; |
| 22318 | --header | --heade | --head | --hea ) |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22319 | $ac_shift |
| 22320 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22321 | ac_need_defaults=false;; |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22322 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 22323 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 22324 | ac_cs_silent=: ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22325 | |
| 22326 | # This is an error. |
| 22327 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 22328 | Try \`$0 --help' for more information." >&5 |
| 22329 | echo "$as_me: error: unrecognized option: $1 |
| 22330 | Try \`$0 --help' for more information." >&2;} |
| 22331 | { (exit 1); exit 1; }; } ;; |
| 22332 | |
| 22333 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 22334 | |
| 22335 | esac |
| 22336 | shift |
| 22337 | done |
| 22338 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22339 | ac_configure_extra_args= |
| 22340 | |
| 22341 | if $ac_cs_silent; then |
| 22342 | exec 6>/dev/null |
| 22343 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 22344 | fi |
| 22345 | |
| 22346 | _ACEOF |
| 22347 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22348 | if \$ac_cs_recheck; then |
| 22349 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 22350 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 22351 | fi |
| 22352 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22353 | _ACEOF |
| 22354 | |
| 22355 | |
| 22356 | |
| 22357 | |
| 22358 | |
| 22359 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22360 | for ac_config_target in $ac_config_targets |
| 22361 | do |
| 22362 | case "$ac_config_target" in |
| 22363 | # Handling of arguments. |
| 22364 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 22365 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 22366 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 22367 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 22368 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 22369 | { (exit 1); exit 1; }; };; |
| 22370 | esac |
| 22371 | done |
| 22372 | |
| 22373 | # If the user did not use the arguments to specify the items to instantiate, |
| 22374 | # then the envvar interface is used. Set only those that are not. |
| 22375 | # We use the long form for the default assignment because of an extremely |
| 22376 | # bizarre bug on SunOS 4.1.3. |
| 22377 | if $ac_need_defaults; then |
| 22378 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 22379 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 22380 | fi |
| 22381 | |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22382 | # Have a temporary directory for convenience. Make it in the build tree |
| 22383 | # simply because there is no reason to put it here, and in addition, |
| 22384 | # creating and moving files from /tmp can sometimes cause problems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22385 | # Create a temporary directory, and hook for its removal unless debugging. |
| 22386 | $debug || |
| 22387 | { |
| 22388 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 22389 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 22390 | } |
| 22391 | |
| 22392 | # Create a (secure) tmp directory for tmp files. |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22393 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22394 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22395 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22396 | test -n "$tmp" && test -d "$tmp" |
| 22397 | } || |
| 22398 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22399 | tmp=./confstat$$-$RANDOM |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22400 | (umask 077 && mkdir $tmp) |
| 22401 | } || |
| 22402 | { |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22403 | echo "$me: cannot create a temporary directory in ." >&2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22404 | { (exit 1); exit 1; } |
| 22405 | } |
| 22406 | |
| 22407 | _ACEOF |
| 22408 | |
| 22409 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22410 | |
| 22411 | # |
| 22412 | # CONFIG_FILES section. |
| 22413 | # |
| 22414 | |
| 22415 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 22416 | # This happens for instance when ./config.status config.h |
| 22417 | if test -n "\$CONFIG_FILES"; then |
| 22418 | # Protect against being on the right side of a sed subst in config.status. |
| 22419 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 22420 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 22421 | s,@SHELL@,$SHELL,;t t |
| 22422 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 22423 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 22424 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 22425 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 22426 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 22427 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 22428 | s,@exec_prefix@,$exec_prefix,;t t |
| 22429 | s,@prefix@,$prefix,;t t |
| 22430 | s,@program_transform_name@,$program_transform_name,;t t |
| 22431 | s,@bindir@,$bindir,;t t |
| 22432 | s,@sbindir@,$sbindir,;t t |
| 22433 | s,@libexecdir@,$libexecdir,;t t |
| 22434 | s,@datadir@,$datadir,;t t |
| 22435 | s,@sysconfdir@,$sysconfdir,;t t |
| 22436 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 22437 | s,@localstatedir@,$localstatedir,;t t |
| 22438 | s,@libdir@,$libdir,;t t |
| 22439 | s,@includedir@,$includedir,;t t |
| 22440 | s,@oldincludedir@,$oldincludedir,;t t |
| 22441 | s,@infodir@,$infodir,;t t |
| 22442 | s,@mandir@,$mandir,;t t |
| 22443 | s,@build_alias@,$build_alias,;t t |
| 22444 | s,@host_alias@,$host_alias,;t t |
| 22445 | s,@target_alias@,$target_alias,;t t |
| 22446 | s,@DEFS@,$DEFS,;t t |
| 22447 | s,@ECHO_C@,$ECHO_C,;t t |
| 22448 | s,@ECHO_N@,$ECHO_N,;t t |
| 22449 | s,@ECHO_T@,$ECHO_T,;t t |
| 22450 | s,@LIBS@,$LIBS,;t t |
| 22451 | s,@VERSION@,$VERSION,;t t |
| 22452 | s,@SOVERSION@,$SOVERSION,;t t |
| 22453 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 22454 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 22455 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 22456 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 22457 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 22458 | s,@MACHDEP@,$MACHDEP,;t t |
| 22459 | s,@SGI_ABI@,$SGI_ABI,;t t |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 22460 | s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 22461 | s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t |
Jack Jansen | 6b08a40 | 2004-06-03 12:41:45 +0000 | [diff] [blame] | 22462 | 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] | 22463 | s,@CXX@,$CXX,;t t |
| 22464 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 22465 | s,@EXEEXT@,$EXEEXT,;t t |
| 22466 | s,@CC@,$CC,;t t |
| 22467 | s,@CFLAGS@,$CFLAGS,;t t |
| 22468 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 22469 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 22470 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 22471 | s,@OBJEXT@,$OBJEXT,;t t |
| 22472 | s,@CPP@,$CPP,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22473 | s,@EGREP@,$EGREP,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22474 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 22475 | s,@LIBRARY@,$LIBRARY,;t t |
| 22476 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 22477 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 22478 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 22479 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 22480 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 22481 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 22482 | s,@LINKCC@,$LINKCC,;t t |
| 22483 | s,@RANLIB@,$RANLIB,;t t |
| 22484 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 22485 | s,@AR@,$AR,;t t |
Martin v. Löwis | dea59e5 | 2006-01-05 10:00:36 +0000 | [diff] [blame] | 22486 | s,@SVNVERSION@,$SVNVERSION,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22487 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 22488 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 22489 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 22490 | s,@LN@,$LN,;t t |
| 22491 | s,@OPT@,$OPT,;t t |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 22492 | s,@BASECFLAGS@,$BASECFLAGS,;t t |
Bob Ippolito | 7026a0a | 2005-03-28 23:23:47 +0000 | [diff] [blame] | 22493 | s,@OTHER_LIBTOOL_OPT@,$OTHER_LIBTOOL_OPT,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22494 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 22495 | s,@SO@,$SO,;t t |
| 22496 | s,@LDSHARED@,$LDSHARED,;t t |
| 22497 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 22498 | s,@CCSHARED@,$CCSHARED,;t t |
| 22499 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 22500 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 22501 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22502 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 22503 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 22504 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 22505 | s,@LDLAST@,$LDLAST,;t t |
| 22506 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 22507 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 22508 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 22509 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 22510 | s,@TRUE@,$TRUE,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22511 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 22512 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 22513 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 22514 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 22515 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 22516 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 22517 | s,@LIBM@,$LIBM,;t t |
| 22518 | s,@LIBC@,$LIBC,;t t |
| 22519 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 22520 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 22521 | s,@SRCDIRS@,$SRCDIRS,;t t |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22522 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22523 | CEOF |
| 22524 | |
| 22525 | _ACEOF |
| 22526 | |
| 22527 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22528 | # Split the substitutions into bite-sized pieces for seds with |
| 22529 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 22530 | ac_max_sed_lines=48 |
| 22531 | ac_sed_frag=1 # Number of current file. |
| 22532 | ac_beg=1 # First line for current file. |
| 22533 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 22534 | ac_more_lines=: |
| 22535 | ac_sed_cmds= |
| 22536 | while $ac_more_lines; do |
| 22537 | if test $ac_beg -gt 1; then |
| 22538 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 22539 | else |
| 22540 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 22541 | fi |
| 22542 | if test ! -s $tmp/subs.frag; then |
| 22543 | ac_more_lines=false |
| 22544 | else |
| 22545 | # The purpose of the label and of the branching condition is to |
| 22546 | # speed up the sed processing (if there are no `@' at all, there |
| 22547 | # is no need to browse any of the substitutions). |
| 22548 | # These are the two extra sed commands mentioned above. |
| 22549 | (echo ':t |
| 22550 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 22551 | if test -z "$ac_sed_cmds"; then |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22552 | 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] | 22553 | else |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22554 | 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] | 22555 | fi |
| 22556 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 22557 | ac_beg=$ac_end |
| 22558 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 22559 | fi |
| 22560 | done |
| 22561 | if test -z "$ac_sed_cmds"; then |
| 22562 | ac_sed_cmds=cat |
| 22563 | fi |
| 22564 | fi # test -n "$CONFIG_FILES" |
| 22565 | |
| 22566 | _ACEOF |
| 22567 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22568 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 22569 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 22570 | case $ac_file in |
| 22571 | - | *:- | *:-:* ) # input from stdin |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22572 | cat >$tmp/stdin |
| 22573 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 22574 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22575 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22576 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22577 | * ) ac_file_in=$ac_file.in ;; |
| 22578 | esac |
| 22579 | |
| 22580 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 22581 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 22582 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22583 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 22584 | X"$ac_file" : 'X\(//\)$' \| \ |
| 22585 | X"$ac_file" : 'X\(/\)' \| \ |
| 22586 | . : '\(.\)' 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22587 | echo X"$ac_file" | |
| 22588 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 22589 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 22590 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 22591 | /^X\(\/\).*/{ s//\1/; q; } |
| 22592 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22593 | { if $as_mkdir_p; then |
| 22594 | mkdir -p "$ac_dir" |
| 22595 | else |
| 22596 | as_dir="$ac_dir" |
| 22597 | as_dirs= |
| 22598 | while test ! -d "$as_dir"; do |
| 22599 | as_dirs="$as_dir $as_dirs" |
| 22600 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 22601 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22602 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22603 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22604 | X"$as_dir" : 'X\(/\)' \| \ |
| 22605 | . : '\(.\)' 2>/dev/null || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22606 | echo X"$as_dir" | |
| 22607 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 22608 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 22609 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 22610 | /^X\(\/\).*/{ s//\1/; q; } |
| 22611 | s/.*/./; q'` |
| 22612 | done |
| 22613 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 22614 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 22615 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 22616 | { (exit 1); exit 1; }; }; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22617 | |
| 22618 | ac_builddir=. |
| 22619 | |
| 22620 | if test "$ac_dir" != .; then |
| 22621 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 22622 | # A "../" for each directory in $ac_dir_suffix. |
| 22623 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 22624 | else |
| 22625 | ac_dir_suffix= ac_top_builddir= |
| 22626 | fi |
| 22627 | |
| 22628 | case $srcdir in |
| 22629 | .) # No --srcdir option. We are building in place. |
| 22630 | ac_srcdir=. |
| 22631 | if test -z "$ac_top_builddir"; then |
| 22632 | ac_top_srcdir=. |
| 22633 | else |
| 22634 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 22635 | fi ;; |
| 22636 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 22637 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 22638 | ac_top_srcdir=$srcdir ;; |
| 22639 | *) # Relative path. |
| 22640 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 22641 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 22642 | esac |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22643 | |
| 22644 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 22645 | # the directories may not exist. |
| 22646 | case `pwd` in |
| 22647 | .) ac_abs_builddir="$ac_dir";; |
| 22648 | *) |
| 22649 | case "$ac_dir" in |
| 22650 | .) ac_abs_builddir=`pwd`;; |
| 22651 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 22652 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 22653 | esac;; |
| 22654 | esac |
| 22655 | case $ac_abs_builddir in |
| 22656 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 22657 | *) |
| 22658 | case ${ac_top_builddir}. in |
| 22659 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 22660 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 22661 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 22662 | esac;; |
| 22663 | esac |
| 22664 | case $ac_abs_builddir in |
| 22665 | .) ac_abs_srcdir=$ac_srcdir;; |
| 22666 | *) |
| 22667 | case $ac_srcdir in |
| 22668 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 22669 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 22670 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 22671 | esac;; |
| 22672 | esac |
| 22673 | case $ac_abs_builddir in |
| 22674 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 22675 | *) |
| 22676 | case $ac_top_srcdir in |
| 22677 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 22678 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 22679 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 22680 | esac;; |
| 22681 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22682 | |
| 22683 | |
| 22684 | case $INSTALL in |
| 22685 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 22686 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 22687 | esac |
| 22688 | |
Brett Cannon | 4380242 | 2005-02-10 20:48:03 +0000 | [diff] [blame] | 22689 | if test x"$ac_file" != x-; then |
| 22690 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 22691 | echo "$as_me: creating $ac_file" >&6;} |
| 22692 | rm -f "$ac_file" |
| 22693 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22694 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 22695 | # use $as_me), people would be surprised to read: |
| 22696 | # /* config.h. Generated by config.status. */ |
| 22697 | if test x"$ac_file" = x-; then |
| 22698 | configure_input= |
| 22699 | else |
| 22700 | configure_input="$ac_file. " |
| 22701 | fi |
| 22702 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22703 | sed 's,.*/,,'` by configure." |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22704 | |
| 22705 | # First look for the input files in the build tree, otherwise in the |
| 22706 | # src tree. |
| 22707 | ac_file_inputs=`IFS=: |
| 22708 | for f in $ac_file_in; do |
| 22709 | case $f in |
| 22710 | -) echo $tmp/stdin ;; |
| 22711 | [\\/$]*) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22712 | # Absolute (can't be DOS-style, as IFS=:) |
| 22713 | 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] | 22714 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 22715 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22716 | echo "$f";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22717 | *) # Relative |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22718 | if test -f "$f"; then |
| 22719 | # Build tree |
| 22720 | echo "$f" |
| 22721 | elif test -f "$srcdir/$f"; then |
| 22722 | # Source tree |
| 22723 | echo "$srcdir/$f" |
| 22724 | else |
| 22725 | # /dev/null tree |
| 22726 | { { 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] | 22727 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 22728 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22729 | fi;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22730 | esac |
| 22731 | done` || { (exit 1); exit 1; } |
| 22732 | _ACEOF |
| 22733 | cat >>$CONFIG_STATUS <<_ACEOF |
| 22734 | sed "$ac_vpsub |
| 22735 | $extrasub |
| 22736 | _ACEOF |
| 22737 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22738 | :t |
| 22739 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 22740 | s,@configure_input@,$configure_input,;t t |
| 22741 | s,@srcdir@,$ac_srcdir,;t t |
| 22742 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 22743 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 22744 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 22745 | s,@builddir@,$ac_builddir,;t t |
| 22746 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 22747 | s,@top_builddir@,$ac_top_builddir,;t t |
| 22748 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 22749 | s,@INSTALL@,$ac_INSTALL,;t t |
| 22750 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 22751 | rm -f $tmp/stdin |
| 22752 | if test x"$ac_file" != x-; then |
| 22753 | mv $tmp/out $ac_file |
| 22754 | else |
| 22755 | cat $tmp/out |
| 22756 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22757 | fi |
| 22758 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22759 | done |
| 22760 | _ACEOF |
| 22761 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22762 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22763 | # |
| 22764 | # CONFIG_HEADER section. |
| 22765 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22766 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22767 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 22768 | # 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] | 22769 | # |
| 22770 | # ac_d sets the value in "#define NAME VALUE" lines. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22771 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 22772 | ac_dB='[ ].*$,\1#\2' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22773 | ac_dC=' ' |
| 22774 | ac_dD=',;t' |
| 22775 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22776 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22777 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22778 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22779 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22780 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22781 | 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] | 22782 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22783 | case $ac_file in |
| 22784 | - | *:- | *:-:* ) # input from stdin |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22785 | cat >$tmp/stdin |
| 22786 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 22787 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22788 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22789 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22790 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22791 | esac |
| 22792 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22793 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 22794 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22795 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22796 | # First look for the input files in the build tree, otherwise in the |
| 22797 | # src tree. |
| 22798 | ac_file_inputs=`IFS=: |
| 22799 | for f in $ac_file_in; do |
| 22800 | case $f in |
| 22801 | -) echo $tmp/stdin ;; |
| 22802 | [\\/$]*) |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22803 | # Absolute (can't be DOS-style, as IFS=:) |
| 22804 | 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] | 22805 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 22806 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22807 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 22808 | echo "$f";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22809 | *) # Relative |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22810 | if test -f "$f"; then |
| 22811 | # Build tree |
| 22812 | echo "$f" |
| 22813 | elif test -f "$srcdir/$f"; then |
| 22814 | # Source tree |
| 22815 | echo "$srcdir/$f" |
| 22816 | else |
| 22817 | # /dev/null tree |
| 22818 | { { 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] | 22819 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 22820 | { (exit 1); exit 1; }; } |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22821 | fi;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22822 | esac |
| 22823 | done` || { (exit 1); exit 1; } |
| 22824 | # Remove the trailing spaces. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22825 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22826 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22827 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22828 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22829 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 22830 | # `conftest.undefs', that substitutes the proper values into |
| 22831 | # config.h.in to produce config.h. The first handles `#define' |
| 22832 | # templates, and the second `#undef' templates. |
| 22833 | # And first: Protect against being on the right side of a sed subst in |
| 22834 | # config.status. Protect against being in an unquoted here document |
| 22835 | # in config.status. |
| 22836 | rm -f conftest.defines conftest.undefs |
| 22837 | # Using a here document instead of a string reduces the quoting nightmare. |
| 22838 | # Putting comments in sed scripts is not portable. |
| 22839 | # |
| 22840 | # `end' is used to avoid that the second main sed command (meant for |
| 22841 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 22842 | # See the Autoconf documentation for `clear'. |
| 22843 | cat >confdef2sed.sed <<\_ACEOF |
| 22844 | s/[\\&,]/\\&/g |
| 22845 | s,[\\$`],\\&,g |
| 22846 | t clear |
| 22847 | : clear |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22848 | 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] | 22849 | t end |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22850 | 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] | 22851 | : end |
| 22852 | _ACEOF |
| 22853 | # If some macros were called several times there might be several times |
| 22854 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 22855 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 22856 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 22857 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 22858 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22859 | |
| 22860 | # This sed command replaces #undef with comments. This is necessary, for |
| 22861 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 22862 | # 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] | 22863 | cat >>conftest.undefs <<\_ACEOF |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22864 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22865 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22866 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22867 | # Break up conftest.defines because some shells have a limit on the size |
| 22868 | # of here documents, and old seds have small limits too (100 cmds). |
| 22869 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22870 | 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] | 22871 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 22872 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22873 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22874 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22875 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22876 | # Write a limited-size here document to $tmp/defines.sed. |
| 22877 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 22878 | # Speed up: don't consider the non `#define' lines. |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22879 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22880 | # Work around the forget-to-reset-the-flag bug. |
| 22881 | echo 't clr' >>$CONFIG_STATUS |
| 22882 | echo ': clr' >>$CONFIG_STATUS |
| 22883 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22884 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22885 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 22886 | rm -f $tmp/in |
| 22887 | mv $tmp/out $tmp/in |
| 22888 | ' >>$CONFIG_STATUS |
| 22889 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 22890 | rm -f conftest.defines |
| 22891 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22892 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22893 | rm -f conftest.defines |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22894 | echo ' fi # grep' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22895 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22896 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22897 | # Break up conftest.undefs because some shells have a limit on the size |
| 22898 | # of here documents, and old seds have small limits too (100 cmds). |
| 22899 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 22900 | rm -f conftest.tail |
| 22901 | while grep . conftest.undefs >/dev/null |
| 22902 | do |
| 22903 | # Write a limited-size here document to $tmp/undefs.sed. |
| 22904 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 22905 | # Speed up: don't consider the non `#undef' |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22906 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22907 | # Work around the forget-to-reset-the-flag bug. |
| 22908 | echo 't clr' >>$CONFIG_STATUS |
| 22909 | echo ': clr' >>$CONFIG_STATUS |
| 22910 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 22911 | echo 'CEOF |
| 22912 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 22913 | rm -f $tmp/in |
| 22914 | mv $tmp/out $tmp/in |
| 22915 | ' >>$CONFIG_STATUS |
| 22916 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 22917 | rm -f conftest.undefs |
| 22918 | mv conftest.tail conftest.undefs |
| 22919 | done |
| 22920 | rm -f conftest.undefs |
| 22921 | |
| 22922 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 22923 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 22924 | # use $as_me), people would be surprised to read: |
| 22925 | # /* config.h. Generated by config.status. */ |
| 22926 | if test x"$ac_file" = x-; then |
| 22927 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22928 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22929 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 22930 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22931 | cat $tmp/in >>$tmp/config.h |
| 22932 | rm -f $tmp/in |
| 22933 | if test x"$ac_file" != x-; then |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22934 | 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] | 22935 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 22936 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 22937 | else |
| 22938 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 22939 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22940 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 22941 | X"$ac_file" : 'X\(//\)$' \| \ |
| 22942 | X"$ac_file" : 'X\(/\)' \| \ |
| 22943 | . : '\(.\)' 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22944 | echo X"$ac_file" | |
| 22945 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 22946 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 22947 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 22948 | /^X\(\/\).*/{ s//\1/; q; } |
| 22949 | s/.*/./; q'` |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22950 | { if $as_mkdir_p; then |
| 22951 | mkdir -p "$ac_dir" |
| 22952 | else |
| 22953 | as_dir="$ac_dir" |
| 22954 | as_dirs= |
| 22955 | while test ! -d "$as_dir"; do |
| 22956 | as_dirs="$as_dir $as_dirs" |
| 22957 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 22958 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Skip Montanaro | f0d5f79 | 2004-08-15 14:08:23 +0000 | [diff] [blame] | 22959 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 22960 | X"$as_dir" : 'X\(//\)$' \| \ |
| 22961 | X"$as_dir" : 'X\(/\)' \| \ |
| 22962 | . : '\(.\)' 2>/dev/null || |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 22963 | echo X"$as_dir" | |
| 22964 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 22965 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 22966 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 22967 | /^X\(\/\).*/{ s//\1/; q; } |
| 22968 | s/.*/./; q'` |
| 22969 | done |
| 22970 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 22971 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 22972 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 22973 | { (exit 1); exit 1; }; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 22974 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22975 | rm -f $ac_file |
| 22976 | mv $tmp/config.h $ac_file |
| 22977 | fi |
| 22978 | else |
| 22979 | cat $tmp/config.h |
| 22980 | rm -f $tmp/config.h |
| 22981 | fi |
| 22982 | done |
| 22983 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 22984 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22985 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 22986 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22987 | { (exit 0); exit 0; } |
| 22988 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 22989 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 22990 | ac_clean_files=$ac_clean_files_save |
| 22991 | |
| 22992 | |
| 22993 | # configure is writing to config.log, and then calls config.status. |
| 22994 | # config.status does its own redirection, appending to config.log. |
| 22995 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 22996 | # by configure, so config.status won't be able to write to it; its |
| 22997 | # output is simply discarded. So we exec the FD to /dev/null, |
| 22998 | # effectively closing config.log, so it can be properly (re)opened and |
| 22999 | # appended to by config.status. When coming back to configure, we |
| 23000 | # need to make the FD available again. |
| 23001 | if test "$no_create" != yes; then |
| 23002 | ac_cs_success=: |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23003 | ac_config_status_args= |
| 23004 | test "$silent" = yes && |
| 23005 | ac_config_status_args="$ac_config_status_args --quiet" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 23006 | exec 5>/dev/null |
Skip Montanaro | 6dead95 | 2003-09-25 14:50:04 +0000 | [diff] [blame] | 23007 | $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] | 23008 | exec 5>>config.log |
| 23009 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 23010 | # would make configure fail if this is the last instruction. |
| 23011 | $ac_cs_success || { (exit 1); exit 1; } |
| 23012 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 23013 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 23014 | |
| 23015 | echo "creating Setup" |
| 23016 | if test ! -f Modules/Setup |
| 23017 | then |
| 23018 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 23019 | fi |
| 23020 | |
| 23021 | echo "creating Setup.local" |
| 23022 | if test ! -f Modules/Setup.local |
| 23023 | then |
| 23024 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 23025 | fi |
| 23026 | |
| 23027 | echo "creating Makefile" |
| 23028 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 23029 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 23030 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 23031 | mv config.c Modules |