Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2 | |
Andrew M. Kuchling | 8abedde | 2001-01-26 22:55:24 +0000 | [diff] [blame] | 3 | # From configure.in Revision: 1.196 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5 | # Guess values for system-dependent variables and create Makefiles. |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6 | # Generated automatically using autoconf version 2.13 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8 | # |
| 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12 | # Defaults: |
| 13 | ac_help= |
| 14 | ac_default_prefix=/usr/local |
| 15 | # Any additions from configure.in: |
| 16 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 17 | --with-next-archs='arch1 arch2 ..' build MAB binary" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 18 | ac_help="$ac_help |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 19 | --with-next-framework Build (OpenStep|Rhapsody|MacOSX|Darwin) framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 20 | ac_help="$ac_help |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 21 | --with-dyld Use (OpenStep|Rhapsody|MacOSX|Darwin) dynamic linker" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 22 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 23 | --without-gcc never use gcc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 25 | --with-cxx=<compiler> enable C++ support" |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 26 | ac_help="$ac_help |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 27 | --with-pydebug build with Py_DEBUG defined" |
| 28 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 29 | --with-libs='lib1 ...' link against additional libs" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 30 | ac_help="$ac_help |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 31 | --with-signal-module disable/enable signal module" |
| 32 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 33 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 34 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 35 | --with(out)-threads[=DIRECTORY] disable/enable thread support" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 36 | ac_help="$ac_help |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 37 | --with(out)-thread[=DIRECTORY] deprecated; use --with(out)-threads" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 38 | ac_help="$ac_help |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 39 | --with-pth use GNU pth threading libraries" |
| 40 | ac_help="$ac_help |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 41 | --with(out)-cycle-gc disable/enable garbage collection" |
| 42 | ac_help="$ac_help |
Barry Warsaw | a57b89b | 2001-01-15 17:07:21 +0000 | [diff] [blame] | 43 | --with(out)-dbm disable/enable dbm module" |
| 44 | ac_help="$ac_help |
Fred Drake | a50d6ec | 2000-08-31 16:13:20 +0000 | [diff] [blame] | 45 | --with(out)-libdb disable/enable bsddb module" |
| 46 | ac_help="$ac_help |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 47 | --with-wctype-functions use wctype.h functions" |
| 48 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 49 | --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 50 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 51 | --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 52 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 53 | --with-fpectl enable SIGFPE catching" |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 54 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 55 | --with-libm=STRING math library" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 56 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 57 | --with-libc=STRING C library" |
Guido van Rossum | 4c3f57c | 2001-01-10 20:40:46 +0000 | [diff] [blame] | 58 | ac_help="$ac_help |
| 59 | --with-check-import-case enable imported module name case checking" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 60 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 61 | # Initialize some variables set by options. |
| 62 | # The variables have the same names as the options, with |
| 63 | # dashes changed to underlines. |
| 64 | build=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 65 | cache_file=./config.cache |
| 66 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 67 | host=NONE |
| 68 | no_create= |
| 69 | nonopt=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 70 | no_recursion= |
| 71 | prefix=NONE |
| 72 | program_prefix=NONE |
| 73 | program_suffix=NONE |
| 74 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 75 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 76 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 77 | srcdir= |
| 78 | target=NONE |
| 79 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 80 | x_includes=NONE |
| 81 | x_libraries=NONE |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 82 | bindir='${exec_prefix}/bin' |
| 83 | sbindir='${exec_prefix}/sbin' |
| 84 | libexecdir='${exec_prefix}/libexec' |
| 85 | datadir='${prefix}/share' |
| 86 | sysconfdir='${prefix}/etc' |
| 87 | sharedstatedir='${prefix}/com' |
| 88 | localstatedir='${prefix}/var' |
| 89 | libdir='${exec_prefix}/lib' |
| 90 | includedir='${prefix}/include' |
| 91 | oldincludedir='/usr/include' |
| 92 | infodir='${prefix}/info' |
| 93 | mandir='${prefix}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 94 | |
| 95 | # Initialize some other variables. |
| 96 | subdirs= |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 97 | MFLAGS= MAKEFLAGS= |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 98 | SHELL=${CONFIG_SHELL-/bin/sh} |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 99 | # Maximum number of lines to put in a shell here document. |
| 100 | ac_max_here_lines=12 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 101 | |
| 102 | ac_prev= |
| 103 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 104 | do |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 105 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 106 | # If the previous option needs an argument, assign it. |
| 107 | if test -n "$ac_prev"; then |
| 108 | eval "$ac_prev=\$ac_option" |
| 109 | ac_prev= |
| 110 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 111 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 112 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 113 | case "$ac_option" in |
| 114 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 115 | *) ac_optarg= ;; |
| 116 | esac |
| 117 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 118 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 119 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 120 | case "$ac_option" in |
| 121 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 122 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 123 | ac_prev=bindir ;; |
| 124 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 125 | bindir="$ac_optarg" ;; |
| 126 | |
| 127 | -build | --build | --buil | --bui | --bu) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 128 | ac_prev=build ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 129 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 130 | build="$ac_optarg" ;; |
| 131 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 132 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 133 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 134 | ac_prev=cache_file ;; |
| 135 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 136 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 137 | cache_file="$ac_optarg" ;; |
| 138 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 139 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 140 | ac_prev=datadir ;; |
| 141 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 142 | | --da=*) |
| 143 | datadir="$ac_optarg" ;; |
| 144 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 145 | -disable-* | --disable-*) |
| 146 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 147 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 148 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 149 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 150 | fi |
| 151 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 152 | eval "enable_${ac_feature}=no" ;; |
| 153 | |
| 154 | -enable-* | --enable-*) |
| 155 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 156 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 157 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 158 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 159 | fi |
| 160 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 161 | case "$ac_option" in |
| 162 | *=*) ;; |
| 163 | *) ac_optarg=yes ;; |
| 164 | esac |
| 165 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 166 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 167 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 168 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 169 | | --exec | --exe | --ex) |
| 170 | ac_prev=exec_prefix ;; |
| 171 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 172 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 173 | | --exec=* | --exe=* | --ex=*) |
| 174 | exec_prefix="$ac_optarg" ;; |
| 175 | |
| 176 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 177 | # Obsolete; use --with-gas. |
| 178 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 179 | |
| 180 | -help | --help | --hel | --he) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 181 | # Omit some internal or obsolete options to make the list less imposing. |
| 182 | # This message is too long to be a string in the A/UX 3.1 sh. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 183 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 184 | Usage: configure [options] [host] |
| 185 | Options: [defaults in brackets after descriptions] |
| 186 | Configuration: |
| 187 | --cache-file=FILE cache test results in FILE |
| 188 | --help print this message |
| 189 | --no-create do not create output files |
| 190 | --quiet, --silent do not print \`checking...' messages |
| 191 | --version print the version of autoconf that created configure |
| 192 | Directory and file names: |
| 193 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 194 | [$ac_default_prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 195 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 196 | [same as prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 197 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 198 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 199 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 200 | --datadir=DIR read-only architecture-independent data in DIR |
| 201 | [PREFIX/share] |
| 202 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 203 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 204 | [PREFIX/com] |
| 205 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 206 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 207 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 208 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 209 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 210 | --mandir=DIR man documentation in DIR [PREFIX/man] |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 211 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 212 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 213 | --program-suffix=SUFFIX append SUFFIX to installed program names |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 214 | --program-transform-name=PROGRAM |
| 215 | run sed PROGRAM on installed program names |
| 216 | EOF |
| 217 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 218 | Host type: |
| 219 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 220 | --host=HOST configure for HOST [guessed] |
| 221 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 222 | Features and packages: |
| 223 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 224 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 225 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 226 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 227 | --x-includes=DIR X include files are in DIR |
| 228 | --x-libraries=DIR X library files are in DIR |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 229 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 230 | if test -n "$ac_help"; then |
| 231 | echo "--enable and --with options recognized:$ac_help" |
| 232 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 233 | exit 0 ;; |
| 234 | |
| 235 | -host | --host | --hos | --ho) |
| 236 | ac_prev=host ;; |
| 237 | -host=* | --host=* | --hos=* | --ho=*) |
| 238 | host="$ac_optarg" ;; |
| 239 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 240 | -includedir | --includedir | --includedi | --included | --include \ |
| 241 | | --includ | --inclu | --incl | --inc) |
| 242 | ac_prev=includedir ;; |
| 243 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 244 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 245 | includedir="$ac_optarg" ;; |
| 246 | |
| 247 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 248 | ac_prev=infodir ;; |
| 249 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 250 | infodir="$ac_optarg" ;; |
| 251 | |
| 252 | -libdir | --libdir | --libdi | --libd) |
| 253 | ac_prev=libdir ;; |
| 254 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 255 | libdir="$ac_optarg" ;; |
| 256 | |
| 257 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 258 | | --libexe | --libex | --libe) |
| 259 | ac_prev=libexecdir ;; |
| 260 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 261 | | --libexe=* | --libex=* | --libe=*) |
| 262 | libexecdir="$ac_optarg" ;; |
| 263 | |
| 264 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 265 | | --localstate | --localstat | --localsta | --localst \ |
| 266 | | --locals | --local | --loca | --loc | --lo) |
| 267 | ac_prev=localstatedir ;; |
| 268 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 269 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 270 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 271 | localstatedir="$ac_optarg" ;; |
| 272 | |
| 273 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 274 | ac_prev=mandir ;; |
| 275 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 276 | mandir="$ac_optarg" ;; |
| 277 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 278 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 279 | # Obsolete; use --without-fp. |
| 280 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 281 | |
| 282 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 283 | | --no-cr | --no-c) |
| 284 | no_create=yes ;; |
| 285 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 286 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 287 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 288 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 289 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 290 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 291 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 292 | | --oldin | --oldi | --old | --ol | --o) |
| 293 | ac_prev=oldincludedir ;; |
| 294 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 295 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 296 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 297 | oldincludedir="$ac_optarg" ;; |
| 298 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 299 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 300 | ac_prev=prefix ;; |
| 301 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 302 | prefix="$ac_optarg" ;; |
| 303 | |
| 304 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 305 | | --program-pre | --program-pr | --program-p) |
| 306 | ac_prev=program_prefix ;; |
| 307 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 308 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 309 | program_prefix="$ac_optarg" ;; |
| 310 | |
| 311 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 312 | | --program-suf | --program-su | --program-s) |
| 313 | ac_prev=program_suffix ;; |
| 314 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 315 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 316 | program_suffix="$ac_optarg" ;; |
| 317 | |
| 318 | -program-transform-name | --program-transform-name \ |
| 319 | | --program-transform-nam | --program-transform-na \ |
| 320 | | --program-transform-n | --program-transform- \ |
| 321 | | --program-transform | --program-transfor \ |
| 322 | | --program-transfo | --program-transf \ |
| 323 | | --program-trans | --program-tran \ |
| 324 | | --progr-tra | --program-tr | --program-t) |
| 325 | ac_prev=program_transform_name ;; |
| 326 | -program-transform-name=* | --program-transform-name=* \ |
| 327 | | --program-transform-nam=* | --program-transform-na=* \ |
| 328 | | --program-transform-n=* | --program-transform-=* \ |
| 329 | | --program-transform=* | --program-transfor=* \ |
| 330 | | --program-transfo=* | --program-transf=* \ |
| 331 | | --program-trans=* | --program-tran=* \ |
| 332 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 333 | program_transform_name="$ac_optarg" ;; |
| 334 | |
| 335 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 336 | | -silent | --silent | --silen | --sile | --sil) |
| 337 | silent=yes ;; |
| 338 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 339 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 340 | ac_prev=sbindir ;; |
| 341 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 342 | | --sbi=* | --sb=*) |
| 343 | sbindir="$ac_optarg" ;; |
| 344 | |
| 345 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 346 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 347 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 348 | | --sha | --sh) |
| 349 | ac_prev=sharedstatedir ;; |
| 350 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 351 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 352 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 353 | | --sha=* | --sh=*) |
| 354 | sharedstatedir="$ac_optarg" ;; |
| 355 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 356 | -site | --site | --sit) |
| 357 | ac_prev=site ;; |
| 358 | -site=* | --site=* | --sit=*) |
| 359 | site="$ac_optarg" ;; |
| 360 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 361 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 362 | ac_prev=srcdir ;; |
| 363 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 364 | srcdir="$ac_optarg" ;; |
| 365 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 366 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 367 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 368 | ac_prev=sysconfdir ;; |
| 369 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 370 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 371 | sysconfdir="$ac_optarg" ;; |
| 372 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 373 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 374 | ac_prev=target ;; |
| 375 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 376 | target="$ac_optarg" ;; |
| 377 | |
| 378 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 379 | verbose=yes ;; |
| 380 | |
| 381 | -version | --version | --versio | --versi | --vers) |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 382 | echo "configure generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 383 | exit 0 ;; |
| 384 | |
| 385 | -with-* | --with-*) |
| 386 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 387 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 388 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 389 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 390 | fi |
| 391 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 392 | case "$ac_option" in |
| 393 | *=*) ;; |
| 394 | *) ac_optarg=yes ;; |
| 395 | esac |
| 396 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 397 | |
| 398 | -without-* | --without-*) |
| 399 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 400 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 401 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 402 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 403 | fi |
| 404 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 405 | eval "with_${ac_package}=no" ;; |
| 406 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 407 | --x) |
| 408 | # Obsolete; use --with-x. |
| 409 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 410 | |
| 411 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 412 | | --x-incl | --x-inc | --x-in | --x-i) |
| 413 | ac_prev=x_includes ;; |
| 414 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 415 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 416 | x_includes="$ac_optarg" ;; |
| 417 | |
| 418 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 419 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 420 | ac_prev=x_libraries ;; |
| 421 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 422 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 423 | x_libraries="$ac_optarg" ;; |
| 424 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 425 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 426 | ;; |
| 427 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 428 | *) |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 429 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 430 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 431 | fi |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 432 | if test "x$nonopt" != xNONE; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 433 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 434 | fi |
| 435 | nonopt="$ac_option" |
| 436 | ;; |
| 437 | |
| 438 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 439 | done |
| 440 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 441 | if test -n "$ac_prev"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 442 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 443 | fi |
| 444 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 445 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 446 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 447 | # File descriptor usage: |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 448 | # 0 standard input |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 449 | # 1 file creation |
| 450 | # 2 errors and warnings |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 451 | # 3 some systems may open it to /dev/tty |
| 452 | # 4 used on the Kubota Titan |
| 453 | # 6 checking for... messages and results |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 454 | # 5 compiler messages saved in config.log |
| 455 | if test "$silent" = yes; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 456 | exec 6>/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 457 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 458 | exec 6>&1 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 459 | fi |
| 460 | exec 5>./config.log |
| 461 | |
| 462 | echo "\ |
| 463 | This file contains any messages produced by compilers while |
| 464 | running configure, to aid debugging if configure makes a mistake. |
| 465 | " 1>&5 |
| 466 | |
| 467 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 468 | # Also quote any args containing shell metacharacters. |
| 469 | ac_configure_args= |
| 470 | for ac_arg |
| 471 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 472 | case "$ac_arg" in |
| 473 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 474 | | --no-cr | --no-c) ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 475 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 476 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 477 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 478 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 479 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 480 | esac |
| 481 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 482 | |
| 483 | # NLS nuisances. |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 484 | # Only set these to C if already set. These must not be set unconditionally |
| 485 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 486 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 487 | # Non-C LC_CTYPE values break the ctype check. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 488 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 489 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 490 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 491 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 492 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 493 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 494 | rm -rf conftest* confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 495 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 496 | echo > confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 497 | |
| 498 | # A filename unique to this package, relative to the directory that |
| 499 | # configure is in, which we can look for to find out if srcdir is correct. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 500 | ac_unique_file=Include/object.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 501 | |
| 502 | # Find the source files, if location was not specified. |
| 503 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 504 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 505 | # Try the directory containing this script, then its parent. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 506 | ac_prog=$0 |
| 507 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 508 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 509 | srcdir=$ac_confdir |
| 510 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 511 | srcdir=.. |
| 512 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 513 | else |
| 514 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 515 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 516 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 517 | if test "$ac_srcdir_defaulted" = yes; then |
| 518 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 519 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 520 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 521 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 522 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 523 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 524 | |
| 525 | # Prefer explicitly selected file to automatically selected ones. |
| 526 | if test -z "$CONFIG_SITE"; then |
| 527 | if test "x$prefix" != xNONE; then |
| 528 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 529 | else |
| 530 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 531 | fi |
| 532 | fi |
| 533 | for ac_site_file in $CONFIG_SITE; do |
| 534 | if test -r "$ac_site_file"; then |
| 535 | echo "loading site script $ac_site_file" |
| 536 | . "$ac_site_file" |
| 537 | fi |
| 538 | done |
| 539 | |
| 540 | if test -r "$cache_file"; then |
| 541 | echo "loading cache $cache_file" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 542 | . $cache_file |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 543 | else |
| 544 | echo "creating cache $cache_file" |
| 545 | > $cache_file |
| 546 | fi |
| 547 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 548 | ac_ext=c |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 549 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 550 | ac_cpp='$CPP $CPPFLAGS' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 551 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 552 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 553 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 554 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 555 | ac_exeext= |
| 556 | ac_objext=o |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 557 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 558 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 559 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 560 | ac_n= ac_c=' |
| 561 | ' ac_t=' ' |
| 562 | else |
| 563 | ac_n=-n ac_c= ac_t= |
| 564 | fi |
| 565 | else |
| 566 | ac_n= ac_c='\c' ac_t= |
| 567 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 568 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 569 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 570 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 571 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 572 | # Set VERSION so we only need to edit in one place (i.e., here) |
| 573 | |
Neil Schemenauer | 7d64577 | 2001-01-17 21:59:33 +0000 | [diff] [blame] | 574 | VERSION=2.1 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 575 | |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 576 | # NEXTSTEP|MacOSX|Darwin stuff |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 577 | if test -f /usr/lib/NextStep/software_version -o -f /System/Library/CoreServices/software_version ; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 578 | |
| 579 | echo $ac_n "checking for --with-next-archs""... $ac_c" 1>&6 |
Barry Warsaw | a57b89b | 2001-01-15 17:07:21 +0000 | [diff] [blame] | 580 | echo "configure:581: checking for --with-next-archs" >&5 |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 581 | # Check whether --with-next-archs or --without-next-archs was given. |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 582 | if test "${with_next_archs+set}" = set; then |
| 583 | withval="$with_next_archs" |
| 584 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 585 | if test -n "$withval"; then |
| 586 | ac_arch_flags=`/usr/lib/arch_tool -archify_list $withval` |
| 587 | # GCC does not currently support multi archs on the NeXT |
| 588 | with_gcc=no |
| 589 | fi |
| 590 | echo "$ac_t""$with_next_archs" 1>&6 |
| 591 | |
| 592 | else |
| 593 | echo "$ac_t""none: using `arch`" 1>&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 594 | fi |
| 595 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 596 | |
| 597 | if test -z "$MACHDEP" |
| 598 | then |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 599 | ac_sys_system=`uname -s` |
| 600 | if test "$ac_sys_system" = "Darwin" ; then |
| 601 | ac_sys_release=`uname -r` |
| 602 | else |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 603 | set X `hostinfo | egrep '(NeXT Mach|Kernel Release).*:' | \ |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 604 | sed -e 's/://' -e 's/\./_/'` && \ |
| 605 | ac_sys_system=next && ac_sys_release=$4 |
| 606 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 607 | |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 608 | MACHDEP="$ac_sys_system$ac_sys_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 609 | fi |
| 610 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 611 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 612 | # Check whether --with-next-framework or --without-next-framework was given. |
| 613 | if test "${with_next_framework+set}" = set; then |
| 614 | withval="$with_next_framework" |
| 615 | : |
| 616 | fi |
| 617 | |
| 618 | # Check whether --with-dyld or --without-dyld was given. |
| 619 | if test "${with_dyld+set}" = set; then |
| 620 | withval="$with_dyld" |
| 621 | : |
| 622 | fi |
| 623 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 624 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 625 | # Set name for machine-dependent library files |
| 626 | |
| 627 | echo $ac_n "checking MACHDEP""... $ac_c" 1>&6 |
Barry Warsaw | a57b89b | 2001-01-15 17:07:21 +0000 | [diff] [blame] | 628 | echo "configure:629: checking MACHDEP" >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 629 | if test -z "$MACHDEP" |
| 630 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 631 | ac_sys_system=`uname -s` |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 632 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 633 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 634 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 635 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 636 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 637 | ac_md_system=`echo $ac_sys_system | |
| 638 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 639 | ac_md_release=`echo $ac_sys_release | |
| 640 | tr -d '/ ' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 641 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 642 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 643 | case $MACHDEP in |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 644 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 645 | esac |
| 646 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 647 | |
| 648 | # |
| 649 | # SGI compilers allow the specification of the both the ABI and the |
| 650 | # ISA on the command line. Depending on the values of these switches, |
| 651 | # different and often incompatable code will be generated. |
| 652 | # |
| 653 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 654 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 655 | # variable is also adjusted. |
| 656 | # |
| 657 | |
| 658 | if test ! -z "$SGI_ABI" |
| 659 | then |
| 660 | CC="cc $SGI_ABI" |
| 661 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 662 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 663 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 664 | echo "$ac_t""$MACHDEP" 1>&6 |
| 665 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 666 | # checks for alternative programs |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 667 | echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 668 | echo "configure:669: checking for --without-gcc" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 669 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 670 | if test "${with_gcc+set}" = set; then |
| 671 | withval="$with_gcc" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 672 | |
| 673 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 674 | no) CC=cc |
| 675 | without_gcc=yes;; |
| 676 | yes) CC=gcc |
| 677 | without_gcc=no;; |
| 678 | *) CC=$withval |
| 679 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 680 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 681 | else |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 682 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 683 | case $ac_sys_system in |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 684 | OSF1) CC=cc |
| 685 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 686 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 687 | case $BE_HOST_CPU in |
| 688 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 689 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 690 | without_gcc=yes |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 691 | OPT="-O -D'DL_EXPORT(RTYPE)=__declspec(dllexport) RTYPE' -D'DL_IMPORT(RTYPE)=__declspec(dllexport) RTYPE' -export pragma" |
| 692 | CCSHARED="UDL_IMPORT -D'DL_IMPORT(RTYPE)=__declspec(dllimport) RTYPE'" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 693 | LDFLAGS="$LDFLAGS -nodup" |
| 694 | |
| 695 | AR="$PWD/BeOS/ar-fake" |
| 696 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 697 | ;; |
| 698 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 699 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 700 | without_gcc=no |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 701 | OPT=-O |
| 702 | # Really should use srcdir instead of PWD |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 703 | AR="$PWD/BeOS/ar-fake" |
| 704 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 705 | ;; |
| 706 | *) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 707 | { echo "configure: error: Unknown BeOS platform \"$BE_HOST_CPU\"" 1>&2; exit 1; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 708 | ;; |
| 709 | esac |
| 710 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 711 | Monterey*) |
| 712 | RANLIB=: |
| 713 | without_gcc=;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 714 | *) without_gcc=no;; |
| 715 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 716 | fi |
| 717 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 718 | echo "$ac_t""$without_gcc" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 719 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 720 | |
| 721 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 722 | MAINOBJ=Modules/python.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 723 | echo $ac_n "checking for --with-cxx=<compiler>""... $ac_c" 1>&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 724 | echo "configure:725: checking for --with-cxx=<compiler>" >&5 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 725 | # Check whether --with-cxx or --without-cxx was given. |
| 726 | if test "${with_cxx+set}" = set; then |
| 727 | withval="$with_cxx" |
| 728 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 729 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 730 | case $withval in |
| 731 | no) CXX= |
| 732 | with_cxx=no;; |
| 733 | *) CXX=$withval |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 734 | MAINOBJ=Modules/ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 735 | with_cxx=$withval;; |
| 736 | esac |
| 737 | else |
| 738 | |
| 739 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 740 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 741 | |
| 742 | fi |
| 743 | |
| 744 | echo "$ac_t""$with_cxx" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 745 | |
| 746 | |
| 747 | if test "$check_cxx" = "yes" |
| 748 | then |
| 749 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 750 | do |
| 751 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 752 | set dummy $ac_prog; ac_word=$2 |
| 753 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 754 | echo "configure:755: checking for $ac_word" >&5 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 755 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
| 756 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 757 | else |
| 758 | if test -n "$CXX"; then |
| 759 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 760 | else |
| 761 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 762 | ac_dummy="$PATH" |
| 763 | for ac_dir in $ac_dummy; do |
| 764 | test -z "$ac_dir" && ac_dir=. |
| 765 | if test -f $ac_dir/$ac_word; then |
| 766 | ac_cv_prog_CXX="$ac_prog" |
| 767 | break |
| 768 | fi |
| 769 | done |
| 770 | IFS="$ac_save_ifs" |
| 771 | fi |
| 772 | fi |
| 773 | CXX="$ac_cv_prog_CXX" |
| 774 | if test -n "$CXX"; then |
| 775 | echo "$ac_t""$CXX" 1>&6 |
| 776 | else |
| 777 | echo "$ac_t""no" 1>&6 |
| 778 | fi |
| 779 | |
| 780 | test -n "$CXX" && break |
| 781 | done |
| 782 | test -n "$CXX" || CXX="notfound" |
| 783 | |
| 784 | if test "$CXX" = "notfound" |
| 785 | then |
| 786 | CXX= |
| 787 | else |
| 788 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 789 | echo "configure:790: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 790 | |
| 791 | ac_ext=C |
| 792 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 793 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 794 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 795 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 796 | cross_compiling=$ac_cv_prog_cxx_cross |
| 797 | |
| 798 | cat > conftest.$ac_ext << EOF |
| 799 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 800 | #line 801 "configure" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 801 | #include "confdefs.h" |
| 802 | |
| 803 | int main(){return(0);} |
| 804 | EOF |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 805 | if { (eval echo configure:806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 806 | ac_cv_prog_cxx_works=yes |
| 807 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 808 | if (./conftest; exit) 2>/dev/null; then |
| 809 | ac_cv_prog_cxx_cross=no |
| 810 | else |
| 811 | ac_cv_prog_cxx_cross=yes |
| 812 | fi |
| 813 | else |
| 814 | echo "configure: failed program was:" >&5 |
| 815 | cat conftest.$ac_ext >&5 |
| 816 | ac_cv_prog_cxx_works=no |
| 817 | fi |
| 818 | rm -fr conftest* |
| 819 | ac_ext=c |
| 820 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 821 | ac_cpp='$CPP $CPPFLAGS' |
| 822 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 823 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 824 | cross_compiling=$ac_cv_prog_cc_cross |
| 825 | |
| 826 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
| 827 | if test $ac_cv_prog_cxx_works = no; then |
| 828 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } |
| 829 | fi |
| 830 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 831 | echo "configure:832: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 832 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
| 833 | cross_compiling=$ac_cv_prog_cxx_cross |
| 834 | |
| 835 | fi |
| 836 | fi |
| 837 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 838 | # If the user switches compilers, we can't believe the cache |
| 839 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 840 | then |
| 841 | { echo "configure: error: cached CC is different -- throw away $cache_file |
| 842 | (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; } |
| 843 | fi |
| 844 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 845 | # Extract the first word of "gcc", so it can be a program name with args. |
| 846 | set dummy gcc; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 847 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 848 | echo "configure:849: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 849 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 850 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 851 | else |
| 852 | if test -n "$CC"; then |
| 853 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 854 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 855 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 856 | ac_dummy="$PATH" |
| 857 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 858 | test -z "$ac_dir" && ac_dir=. |
| 859 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 860 | ac_cv_prog_CC="gcc" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 861 | break |
| 862 | fi |
| 863 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 864 | IFS="$ac_save_ifs" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 865 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 866 | fi |
| 867 | CC="$ac_cv_prog_CC" |
| 868 | if test -n "$CC"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 869 | echo "$ac_t""$CC" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 870 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 871 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 872 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 873 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 874 | if test -z "$CC"; then |
| 875 | # Extract the first word of "cc", so it can be a program name with args. |
| 876 | set dummy cc; ac_word=$2 |
| 877 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 878 | echo "configure:879: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 879 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 880 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 881 | else |
| 882 | if test -n "$CC"; then |
| 883 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 884 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 885 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 886 | ac_prog_rejected=no |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 887 | ac_dummy="$PATH" |
| 888 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 889 | test -z "$ac_dir" && ac_dir=. |
| 890 | if test -f $ac_dir/$ac_word; then |
| 891 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 892 | ac_prog_rejected=yes |
| 893 | continue |
| 894 | fi |
| 895 | ac_cv_prog_CC="cc" |
| 896 | break |
| 897 | fi |
| 898 | done |
| 899 | IFS="$ac_save_ifs" |
| 900 | if test $ac_prog_rejected = yes; then |
| 901 | # We found a bogon in the path, so make sure we never use it. |
| 902 | set dummy $ac_cv_prog_CC |
| 903 | shift |
| 904 | if test $# -gt 0; then |
| 905 | # We chose a different compiler from the bogus one. |
| 906 | # However, it has the same basename, so the bogon will be chosen |
| 907 | # first if we set CC to just the basename; use the full file name. |
| 908 | shift |
| 909 | set dummy "$ac_dir/$ac_word" "$@" |
| 910 | shift |
| 911 | ac_cv_prog_CC="$@" |
| 912 | fi |
| 913 | fi |
| 914 | fi |
| 915 | fi |
| 916 | CC="$ac_cv_prog_CC" |
| 917 | if test -n "$CC"; then |
| 918 | echo "$ac_t""$CC" 1>&6 |
| 919 | else |
| 920 | echo "$ac_t""no" 1>&6 |
| 921 | fi |
| 922 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 923 | if test -z "$CC"; then |
| 924 | case "`uname -s`" in |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 925 | *win32* | *WIN32*) |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 926 | # Extract the first word of "cl", so it can be a program name with args. |
| 927 | set dummy cl; ac_word=$2 |
| 928 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 929 | echo "configure:930: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 930 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 931 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 932 | else |
| 933 | if test -n "$CC"; then |
| 934 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 935 | else |
| 936 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 937 | ac_dummy="$PATH" |
| 938 | for ac_dir in $ac_dummy; do |
| 939 | test -z "$ac_dir" && ac_dir=. |
| 940 | if test -f $ac_dir/$ac_word; then |
| 941 | ac_cv_prog_CC="cl" |
| 942 | break |
| 943 | fi |
| 944 | done |
| 945 | IFS="$ac_save_ifs" |
| 946 | fi |
| 947 | fi |
| 948 | CC="$ac_cv_prog_CC" |
| 949 | if test -n "$CC"; then |
| 950 | echo "$ac_t""$CC" 1>&6 |
| 951 | else |
| 952 | echo "$ac_t""no" 1>&6 |
| 953 | fi |
| 954 | ;; |
| 955 | esac |
| 956 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 957 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 958 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 959 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 960 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 961 | echo "configure:962: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 962 | |
| 963 | ac_ext=c |
| 964 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 965 | ac_cpp='$CPP $CPPFLAGS' |
| 966 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 967 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 968 | cross_compiling=$ac_cv_prog_cc_cross |
| 969 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 970 | cat > conftest.$ac_ext << EOF |
| 971 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 972 | #line 973 "configure" |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 973 | #include "confdefs.h" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 974 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 975 | main(){return(0);} |
| 976 | EOF |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 977 | if { (eval echo configure:978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 978 | ac_cv_prog_cc_works=yes |
| 979 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 980 | if (./conftest; exit) 2>/dev/null; then |
| 981 | ac_cv_prog_cc_cross=no |
| 982 | else |
| 983 | ac_cv_prog_cc_cross=yes |
| 984 | fi |
| 985 | else |
| 986 | echo "configure: failed program was:" >&5 |
| 987 | cat conftest.$ac_ext >&5 |
| 988 | ac_cv_prog_cc_works=no |
| 989 | fi |
| 990 | rm -fr conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 991 | ac_ext=c |
| 992 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 993 | ac_cpp='$CPP $CPPFLAGS' |
| 994 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 995 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 996 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 997 | |
| 998 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 999 | if test $ac_cv_prog_cc_works = no; then |
| 1000 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 1001 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1002 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1003 | echo "configure:1004: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1004 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 1005 | cross_compiling=$ac_cv_prog_cc_cross |
| 1006 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1007 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1008 | echo "configure:1009: checking whether we are using GNU C" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1009 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1010 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1011 | else |
| 1012 | cat > conftest.c <<EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1013 | #ifdef __GNUC__ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1014 | yes; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1015 | #endif |
| 1016 | EOF |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1017 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1018 | ac_cv_prog_gcc=yes |
| 1019 | else |
| 1020 | ac_cv_prog_gcc=no |
| 1021 | fi |
| 1022 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1023 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1024 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1025 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1026 | if test $ac_cv_prog_gcc = yes; then |
| 1027 | GCC=yes |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1028 | else |
| 1029 | GCC= |
| 1030 | fi |
| 1031 | |
| 1032 | ac_test_CFLAGS="${CFLAGS+set}" |
| 1033 | ac_save_CFLAGS="$CFLAGS" |
| 1034 | CFLAGS= |
| 1035 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1036 | echo "configure:1037: checking whether ${CC-cc} accepts -g" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1037 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1038 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1039 | else |
| 1040 | echo 'void f(){}' > conftest.c |
| 1041 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1042 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1043 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1044 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1045 | fi |
| 1046 | rm -f conftest* |
| 1047 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1048 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1049 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1050 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1051 | if test "$ac_test_CFLAGS" = set; then |
| 1052 | CFLAGS="$ac_save_CFLAGS" |
| 1053 | elif test $ac_cv_prog_cc_g = yes; then |
| 1054 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1055 | CFLAGS="-g -O2" |
| 1056 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1057 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1058 | fi |
| 1059 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1060 | if test "$GCC" = yes; then |
| 1061 | CFLAGS="-O2" |
| 1062 | else |
| 1063 | CFLAGS= |
| 1064 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1065 | fi |
| 1066 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1067 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 |
| 1068 | echo "configure:1069: checking for Cygwin environment" >&5 |
| 1069 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
| 1070 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1071 | else |
| 1072 | cat > conftest.$ac_ext <<EOF |
| 1073 | #line 1074 "configure" |
| 1074 | #include "confdefs.h" |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1075 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1076 | int main() { |
| 1077 | |
| 1078 | #ifndef __CYGWIN__ |
| 1079 | #define __CYGWIN__ __CYGWIN32__ |
| 1080 | #endif |
| 1081 | return __CYGWIN__; |
| 1082 | ; return 0; } |
| 1083 | EOF |
| 1084 | if { (eval echo configure:1085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1085 | rm -rf conftest* |
| 1086 | ac_cv_cygwin=yes |
| 1087 | else |
| 1088 | echo "configure: failed program was:" >&5 |
| 1089 | cat conftest.$ac_ext >&5 |
| 1090 | rm -rf conftest* |
| 1091 | ac_cv_cygwin=no |
| 1092 | fi |
| 1093 | rm -f conftest* |
| 1094 | rm -f conftest* |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1095 | fi |
| 1096 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1097 | echo "$ac_t""$ac_cv_cygwin" 1>&6 |
| 1098 | CYGWIN= |
| 1099 | test "$ac_cv_cygwin" = yes && CYGWIN=yes |
| 1100 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 |
| 1101 | echo "configure:1102: checking for mingw32 environment" >&5 |
| 1102 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
| 1103 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1104 | else |
| 1105 | cat > conftest.$ac_ext <<EOF |
| 1106 | #line 1107 "configure" |
| 1107 | #include "confdefs.h" |
| 1108 | |
| 1109 | int main() { |
| 1110 | return __MINGW32__; |
| 1111 | ; return 0; } |
| 1112 | EOF |
| 1113 | if { (eval echo configure:1114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1114 | rm -rf conftest* |
| 1115 | ac_cv_mingw32=yes |
| 1116 | else |
| 1117 | echo "configure: failed program was:" >&5 |
| 1118 | cat conftest.$ac_ext >&5 |
| 1119 | rm -rf conftest* |
| 1120 | ac_cv_mingw32=no |
| 1121 | fi |
| 1122 | rm -f conftest* |
| 1123 | rm -f conftest* |
| 1124 | fi |
| 1125 | |
| 1126 | echo "$ac_t""$ac_cv_mingw32" 1>&6 |
| 1127 | MINGW32= |
| 1128 | test "$ac_cv_mingw32" = yes && MINGW32=yes |
| 1129 | |
| 1130 | |
| 1131 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 |
| 1132 | echo "configure:1133: checking for executable suffix" >&5 |
| 1133 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
| 1134 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1135 | else |
| 1136 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 1137 | ac_cv_exeext=.exe |
| 1138 | else |
| 1139 | rm -f conftest* |
| 1140 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 1141 | ac_cv_exeext= |
| 1142 | if { (eval echo configure:1143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
| 1143 | for file in conftest.*; do |
| 1144 | case $file in |
| 1145 | *.c | *.o | *.obj) ;; |
| 1146 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
| 1147 | esac |
| 1148 | done |
| 1149 | else |
| 1150 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } |
| 1151 | fi |
| 1152 | rm -f conftest* |
| 1153 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no |
| 1154 | fi |
| 1155 | fi |
| 1156 | |
| 1157 | EXEEXT="" |
| 1158 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} |
| 1159 | echo "$ac_t""${ac_cv_exeext}" 1>&6 |
| 1160 | ac_exeext=$EXEEXT |
| 1161 | |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1162 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 1163 | case $MACHDEP in |
| 1164 | bsdos*) |
| 1165 | case $CC in |
| 1166 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 1167 | esac;; |
| 1168 | esac |
| 1169 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1170 | case $ac_sys_system in |
| 1171 | hp*|HP*) |
| 1172 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 1173 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1174 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1175 | Monterey*) |
| 1176 | case $CC in |
| 1177 | cc) CC="$CC -Wl,-Bexport";; |
| 1178 | esac;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1179 | esac |
| 1180 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1181 | |
| 1182 | echo $ac_n "checking LIBRARY""... $ac_c" 1>&6 |
| 1183 | echo "configure:1184: checking LIBRARY" >&5 |
| 1184 | if test -z "$LIBRARY" |
| 1185 | then |
| 1186 | LIBRARY='libpython$(VERSION).a' |
| 1187 | fi |
| 1188 | echo "$ac_t""$LIBRARY" 1>&6 |
| 1189 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1190 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 1191 | # name of the library into which to insert object files). On systems |
| 1192 | # without shared libraries, LDLIBRARY is the same as LIBRARY (defined in |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1193 | # the Makefiles). On Cygwin LDLIBRARY is the import library, DLLLIBRARY is the |
| 1194 | # shared (i.e., DLL) library. |
| 1195 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1196 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1197 | LDLIBRARY="$LIBRARY" |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 1198 | DLLLIBRARY='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1199 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1200 | # LINKCC is the command that links the python executable -- default is $(CC). |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1201 | # 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] | 1202 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1203 | |
| 1204 | echo $ac_n "checking LINKCC""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1205 | echo "configure:1206: checking LINKCC" >&5 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1206 | if test -z "$LINKCC" -a ! -z "$CXX" |
| 1207 | then |
| 1208 | LINKCC="$CXX" |
| 1209 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1210 | if test -z "$LINKCC" |
| 1211 | then |
| 1212 | case $ac_sys_system in |
| 1213 | AIX*) |
Guido van Rossum | 45140f9 | 1997-08-29 18:44:06 +0000 | [diff] [blame] | 1214 | LINKCC="\$(srcdir)/makexp_aix python.exp \"\" \$(LIBRARY); \$(PURIFY) \$(CC)";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 1215 | dgux*) |
| 1216 | LINKCC="LD_RUN_PATH=$libdir \$(PURIFY) \$(CC)";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1217 | Monterey64*) |
| 1218 | LINKCC="\$(PURIFY) \$(CC) -L/usr/lib/ia64l64";; |
Guido van Rossum | 25f9303 | 1997-08-18 16:00:04 +0000 | [diff] [blame] | 1219 | *) LINKCC="\$(PURIFY) \$(CC)";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1220 | esac |
| 1221 | fi |
| 1222 | echo "$ac_t""$LINKCC" 1>&6 |
| 1223 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1224 | echo $ac_n "checking LDLIBRARY""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1225 | echo "configure:1226: checking LDLIBRARY" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1226 | |
| 1227 | # NeXT framework builds require that the 'ar' library be converted into |
| 1228 | # a bundle using libtool. |
| 1229 | if test "$with_next_framework" |
| 1230 | then |
| 1231 | LDLIBRARY='libpython$(VERSION).dylib' |
| 1232 | fi |
| 1233 | |
| 1234 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1235 | case $MACHDEP in |
| 1236 | dguxR4) |
| 1237 | LDLIBRARY='libpython$(VERSION).so' |
| 1238 | OPT="$OPT -pic" |
| 1239 | ;; |
| 1240 | beos*) |
| 1241 | LDLIBRARY='libpython$(VERSION).so' |
| 1242 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1243 | cygwin*) |
| 1244 | LDLIBRARY='libpython$(VERSION).dll.a' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1245 | DLLLIBRARY='libpython$(VERSION).dll' |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1246 | ;; |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1247 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1248 | echo "$ac_t""$LDLIBRARY" 1>&6 |
| 1249 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1250 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1251 | set dummy ranlib; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1252 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1253 | echo "configure:1254: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1254 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1255 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1256 | else |
| 1257 | if test -n "$RANLIB"; then |
| 1258 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1259 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1260 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1261 | ac_dummy="$PATH" |
| 1262 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1263 | test -z "$ac_dir" && ac_dir=. |
| 1264 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1265 | ac_cv_prog_RANLIB="ranlib" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1266 | break |
| 1267 | fi |
| 1268 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1269 | IFS="$ac_save_ifs" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1270 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1271 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1272 | fi |
| 1273 | RANLIB="$ac_cv_prog_RANLIB" |
| 1274 | if test -n "$RANLIB"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1275 | echo "$ac_t""$RANLIB" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1276 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1277 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1278 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1279 | |
| 1280 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1281 | for ac_prog in ar aal |
| 1282 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1283 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1284 | set dummy $ac_prog; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1285 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1286 | echo "configure:1287: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1287 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1288 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1289 | else |
| 1290 | if test -n "$AR"; then |
| 1291 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 1292 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1293 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1294 | ac_dummy="$PATH" |
| 1295 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1296 | test -z "$ac_dir" && ac_dir=. |
| 1297 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1298 | ac_cv_prog_AR="$ac_prog" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1299 | break |
| 1300 | fi |
| 1301 | done |
| 1302 | IFS="$ac_save_ifs" |
| 1303 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1304 | fi |
| 1305 | AR="$ac_cv_prog_AR" |
| 1306 | if test -n "$AR"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1307 | echo "$ac_t""$AR" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1308 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1309 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1310 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1311 | |
| 1312 | test -n "$AR" && break |
| 1313 | done |
| 1314 | test -n "$AR" || AR="ar" |
| 1315 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1316 | ac_aux_dir= |
| 1317 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1318 | if test -f $ac_dir/install-sh; then |
| 1319 | ac_aux_dir=$ac_dir |
| 1320 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1321 | break |
| 1322 | elif test -f $ac_dir/install.sh; then |
| 1323 | ac_aux_dir=$ac_dir |
| 1324 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1325 | break |
| 1326 | fi |
| 1327 | done |
| 1328 | if test -z "$ac_aux_dir"; then |
| 1329 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1330 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1331 | ac_config_guess=$ac_aux_dir/config.guess |
| 1332 | ac_config_sub=$ac_aux_dir/config.sub |
| 1333 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
| 1334 | |
| 1335 | # Find a good install program. We prefer a C program (faster), |
| 1336 | # so one script is as good as another. But avoid the broken or |
| 1337 | # incompatible versions: |
| 1338 | # SysV /etc/install, /usr/sbin/install |
| 1339 | # SunOS /usr/etc/install |
| 1340 | # IRIX /sbin/install |
| 1341 | # AIX /bin/install |
| 1342 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1343 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1344 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1345 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1346 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1347 | echo "configure:1348: checking for a BSD compatible install" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1348 | if test -z "$INSTALL"; then |
| 1349 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 1350 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1351 | else |
| 1352 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
| 1353 | for ac_dir in $PATH; do |
| 1354 | # Account for people who put trailing slashes in PATH elements. |
| 1355 | case "$ac_dir/" in |
| 1356 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
| 1357 | *) |
| 1358 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1359 | # Don't use installbsd from OSF since it installs stuff as root |
| 1360 | # by default. |
| 1361 | for ac_prog in ginstall scoinst install; do |
| 1362 | if test -f $ac_dir/$ac_prog; then |
| 1363 | if test $ac_prog = install && |
| 1364 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
| 1365 | # AIX install. It has an incompatible calling convention. |
| 1366 | : |
| 1367 | else |
| 1368 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 1369 | break 2 |
| 1370 | fi |
| 1371 | fi |
| 1372 | done |
| 1373 | ;; |
| 1374 | esac |
| 1375 | done |
| 1376 | IFS="$ac_save_IFS" |
| 1377 | |
| 1378 | fi |
| 1379 | if test "${ac_cv_path_install+set}" = set; then |
| 1380 | INSTALL="$ac_cv_path_install" |
| 1381 | else |
| 1382 | # As a last resort, use the slow shell script. We don't cache a |
| 1383 | # path for INSTALL within a source directory, because that will |
| 1384 | # break other packages using the cache if that directory is |
| 1385 | # removed, or if the path is relative. |
| 1386 | INSTALL="$ac_install_sh" |
| 1387 | fi |
| 1388 | fi |
| 1389 | echo "$ac_t""$INSTALL" 1>&6 |
| 1390 | |
| 1391 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1392 | # It thinks the first close brace ends the variable substitution. |
| 1393 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1394 | |
| 1395 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
| 1396 | |
| 1397 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1398 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1399 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1400 | # Not every filesystem supports hard links |
| 1401 | |
| 1402 | if test -z "$LN" ; then |
| 1403 | case $ac_sys_system in |
| 1404 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1405 | CYGWIN*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1406 | *) LN=ln;; |
| 1407 | esac |
| 1408 | fi |
| 1409 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1410 | # Optimizer/debugger flags |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1411 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1412 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1413 | then |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 1414 | case $GCC in |
| 1415 | yes) |
| 1416 | case $ac_cv_prog_cc_g in |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1417 | yes) OPT="-g -O2 -Wall -Wstrict-prototypes";; |
| 1418 | *) OPT="-O2 -Wall -Wstrict-prototypes";; |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 1419 | esac |
| 1420 | ;; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1421 | *) OPT="-O";; |
| 1422 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1423 | fi |
| 1424 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1425 | # The current (beta) Monterey compiler dies with optimizations |
| 1426 | case $ac_sys_system in |
| 1427 | Monterey*) OPT="";; |
| 1428 | esac |
| 1429 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1430 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 1431 | then |
| 1432 | OPT="$OPT $ac_arch_flags" |
| 1433 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1434 | # checks for UNIX variants that set C preprocessor variables |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1435 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1436 | echo "configure:1437: checking how to run the C preprocessor" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1437 | # On Suns, sometimes $CPP names a directory. |
| 1438 | if test -n "$CPP" && test -d "$CPP"; then |
| 1439 | CPP= |
| 1440 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1441 | if test -z "$CPP"; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1442 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1443 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1444 | else |
| 1445 | # This must be in double quotes, not single quotes, because CPP may get |
| 1446 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1447 | CPP="${CC-cc} -E" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1448 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 1449 | # not just through cpp. |
| 1450 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1451 | #line 1452 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1452 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1453 | #include <assert.h> |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1454 | Syntax Error |
| 1455 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1456 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1457 | { (eval echo configure:1458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1458 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1459 | if test -z "$ac_err"; then |
| 1460 | : |
| 1461 | else |
| 1462 | echo "$ac_err" >&5 |
| 1463 | echo "configure: failed program was:" >&5 |
| 1464 | cat conftest.$ac_ext >&5 |
| 1465 | rm -rf conftest* |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1466 | CPP="${CC-cc} -E -traditional-cpp" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1467 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1468 | #line 1469 "configure" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1469 | #include "confdefs.h" |
| 1470 | #include <assert.h> |
| 1471 | Syntax Error |
| 1472 | EOF |
| 1473 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1474 | { (eval echo configure:1475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1475 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1476 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1477 | : |
| 1478 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1479 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1480 | echo "configure: failed program was:" >&5 |
| 1481 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1482 | rm -rf conftest* |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1483 | CPP="${CC-cc} -nologo -E" |
| 1484 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1485 | #line 1486 "configure" |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1486 | #include "confdefs.h" |
| 1487 | #include <assert.h> |
| 1488 | Syntax Error |
| 1489 | EOF |
| 1490 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1491 | { (eval echo configure:1492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1492 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1493 | if test -z "$ac_err"; then |
| 1494 | : |
| 1495 | else |
| 1496 | echo "$ac_err" >&5 |
| 1497 | echo "configure: failed program was:" >&5 |
| 1498 | cat conftest.$ac_ext >&5 |
| 1499 | rm -rf conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1500 | CPP=/lib/cpp |
| 1501 | fi |
| 1502 | rm -f conftest* |
| 1503 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1504 | rm -f conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1505 | fi |
| 1506 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1507 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1508 | fi |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1509 | CPP="$ac_cv_prog_CPP" |
| 1510 | else |
| 1511 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1512 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1513 | echo "$ac_t""$CPP" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1514 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1515 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1516 | echo "configure:1517: checking for AIX" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1517 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1518 | #line 1519 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1519 | #include "confdefs.h" |
| 1520 | #ifdef _AIX |
| 1521 | yes |
| 1522 | #endif |
| 1523 | |
| 1524 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1525 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1526 | egrep "yes" >/dev/null 2>&1; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1527 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1528 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1529 | #define _ALL_SOURCE 1 |
| 1530 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1531 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1532 | else |
| 1533 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1534 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1535 | fi |
| 1536 | rm -f conftest* |
| 1537 | |
| 1538 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1539 | ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1540 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1541 | echo "configure:1542: checking for minix/config.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1542 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1543 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1544 | else |
| 1545 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1546 | #line 1547 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1547 | #include "confdefs.h" |
| 1548 | #include <minix/config.h> |
| 1549 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1550 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1551 | { (eval echo configure:1552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1552 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1553 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1554 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1555 | eval "ac_cv_header_$ac_safe=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1556 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1557 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1558 | echo "configure: failed program was:" >&5 |
| 1559 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1560 | rm -rf conftest* |
| 1561 | eval "ac_cv_header_$ac_safe=no" |
| 1562 | fi |
| 1563 | rm -f conftest* |
| 1564 | fi |
| 1565 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1566 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1567 | MINIX=yes |
| 1568 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1569 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1570 | MINIX= |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1571 | fi |
| 1572 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1573 | if test "$MINIX" = yes; then |
| 1574 | cat >> confdefs.h <<\EOF |
| 1575 | #define _POSIX_SOURCE 1 |
| 1576 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1577 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1578 | cat >> confdefs.h <<\EOF |
| 1579 | #define _POSIX_1_SOURCE 2 |
| 1580 | EOF |
| 1581 | |
| 1582 | cat >> confdefs.h <<\EOF |
| 1583 | #define _MINIX 1 |
| 1584 | EOF |
| 1585 | |
| 1586 | fi |
| 1587 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1588 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1589 | echo $ac_n "checking whether $CC accepts -OPT:Olimit=0""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1590 | echo "configure:1591: checking whether $CC accepts -OPT:Olimit=0" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1591 | if eval "test \"`echo '$''{'ac_cv_opt_olimit_ok'+set}'`\" = set"; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1592 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1593 | else |
| 1594 | ac_save_cc="$CC" |
| 1595 | CC="$CC -OPT:Olimit=0" |
| 1596 | if test "$cross_compiling" = yes; then |
| 1597 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1598 | else |
| 1599 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1600 | #line 1601 "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1601 | #include "confdefs.h" |
| 1602 | int main() { return 0; } |
| 1603 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1604 | if { (eval echo configure:1605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1605 | then |
| 1606 | ac_cv_opt_olimit_ok=yes |
| 1607 | else |
| 1608 | echo "configure: failed program was:" >&5 |
| 1609 | cat conftest.$ac_ext >&5 |
| 1610 | rm -fr conftest* |
| 1611 | ac_cv_opt_olimit_ok=no |
| 1612 | fi |
| 1613 | rm -fr conftest* |
| 1614 | fi |
| 1615 | |
| 1616 | CC="$ac_save_cc" |
| 1617 | fi |
| 1618 | |
| 1619 | echo "$ac_t""$ac_cv_opt_olimit_ok" 1>&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 1620 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 1621 | case $ac_sys_system in |
| 1622 | Darwin*) OPT="$OPT" ;; |
| 1623 | *) OPT="$OPT -OPT:Olimit=0";; |
| 1624 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1625 | else |
| 1626 | echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1627 | echo "configure:1628: checking whether $CC accepts -Olimit 1500" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1628 | if eval "test \"`echo '$''{'ac_cv_olimit_ok'+set}'`\" = set"; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1629 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1630 | else |
| 1631 | ac_save_cc="$CC" |
| 1632 | CC="$CC -Olimit 1500" |
| 1633 | if test "$cross_compiling" = yes; then |
| 1634 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1635 | else |
| 1636 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1637 | #line 1638 "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1638 | #include "confdefs.h" |
| 1639 | int main() { return 0; } |
| 1640 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1641 | if { (eval echo configure:1642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1642 | then |
| 1643 | ac_cv_olimit_ok=yes |
| 1644 | else |
| 1645 | echo "configure: failed program was:" >&5 |
| 1646 | cat conftest.$ac_ext >&5 |
| 1647 | rm -fr conftest* |
| 1648 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 1649 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1650 | rm -fr conftest* |
| 1651 | fi |
| 1652 | |
| 1653 | CC="$ac_save_cc" |
| 1654 | fi |
| 1655 | |
| 1656 | echo "$ac_t""$ac_cv_olimit_ok" 1>&6 |
| 1657 | if test $ac_cv_olimit_ok = yes; then |
| 1658 | OPT="$OPT -Olimit 1500" |
| 1659 | fi |
| 1660 | fi |
| 1661 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1662 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1663 | # checks for header files |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1664 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1665 | echo "configure:1666: checking for ANSI C header files" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1666 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1667 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1668 | else |
| 1669 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1670 | #line 1671 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1671 | #include "confdefs.h" |
| 1672 | #include <stdlib.h> |
| 1673 | #include <stdarg.h> |
| 1674 | #include <string.h> |
| 1675 | #include <float.h> |
| 1676 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1677 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1678 | { (eval echo configure:1679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1679 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1680 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1681 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1682 | ac_cv_header_stdc=yes |
| 1683 | else |
| 1684 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1685 | echo "configure: failed program was:" >&5 |
| 1686 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1687 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1688 | ac_cv_header_stdc=no |
| 1689 | fi |
| 1690 | rm -f conftest* |
| 1691 | |
| 1692 | if test $ac_cv_header_stdc = yes; then |
| 1693 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 1694 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1695 | #line 1696 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1696 | #include "confdefs.h" |
| 1697 | #include <string.h> |
| 1698 | EOF |
| 1699 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1700 | egrep "memchr" >/dev/null 2>&1; then |
| 1701 | : |
| 1702 | else |
| 1703 | rm -rf conftest* |
| 1704 | ac_cv_header_stdc=no |
| 1705 | fi |
| 1706 | rm -f conftest* |
| 1707 | |
| 1708 | fi |
| 1709 | |
| 1710 | if test $ac_cv_header_stdc = yes; then |
| 1711 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 1712 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1713 | #line 1714 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1714 | #include "confdefs.h" |
| 1715 | #include <stdlib.h> |
| 1716 | EOF |
| 1717 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1718 | egrep "free" >/dev/null 2>&1; then |
| 1719 | : |
| 1720 | else |
| 1721 | rm -rf conftest* |
| 1722 | ac_cv_header_stdc=no |
| 1723 | fi |
| 1724 | rm -f conftest* |
| 1725 | |
| 1726 | fi |
| 1727 | |
| 1728 | if test $ac_cv_header_stdc = yes; then |
| 1729 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 1730 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1731 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1732 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1733 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1734 | #line 1735 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1735 | #include "confdefs.h" |
| 1736 | #include <ctype.h> |
| 1737 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 1738 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1739 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1740 | int main () { int i; for (i = 0; i < 256; i++) |
| 1741 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 1742 | exit (0); } |
| 1743 | |
| 1744 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1745 | if { (eval echo configure:1746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1746 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1747 | : |
| 1748 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1749 | echo "configure: failed program was:" >&5 |
| 1750 | cat conftest.$ac_ext >&5 |
| 1751 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1752 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1753 | fi |
| 1754 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1755 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1756 | |
| 1757 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1758 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1759 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1760 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1761 | if test $ac_cv_header_stdc = yes; then |
| 1762 | cat >> confdefs.h <<\EOF |
| 1763 | #define STDC_HEADERS 1 |
| 1764 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1765 | |
| 1766 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1767 | |
Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame] | 1768 | for ac_hdr in dlfcn.h fcntl.h limits.h locale.h ncurses.h poll.h pthread.h \ |
Eric S. Raymond | d2d75d3 | 2001-01-16 15:26:34 +0000 | [diff] [blame] | 1769 | signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h termios.h \ |
Fred Drake | a50d6ec | 2000-08-31 16:13:20 +0000 | [diff] [blame] | 1770 | sys/audioio.h sys/file.h sys/lock.h db_185.h db.h \ |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 1771 | sys/param.h sys/select.h sys/socket.h sys/time.h sys/times.h \ |
Fred Drake | ae90f8d | 2000-09-15 03:38:12 +0000 | [diff] [blame] | 1772 | sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ |
| 1773 | ndbm.h db1/ndbm.h gdbm/ndbm.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1774 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1775 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1776 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1777 | echo "configure:1778: checking for $ac_hdr" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1778 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1779 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1780 | else |
| 1781 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1782 | #line 1783 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1783 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1784 | #include <$ac_hdr> |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1785 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1786 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1787 | { (eval echo configure:1788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1788 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1789 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1790 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1791 | eval "ac_cv_header_$ac_safe=yes" |
| 1792 | else |
| 1793 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1794 | echo "configure: failed program was:" >&5 |
| 1795 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1796 | rm -rf conftest* |
| 1797 | eval "ac_cv_header_$ac_safe=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1798 | fi |
| 1799 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1800 | fi |
| 1801 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1802 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1803 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1804 | cat >> confdefs.h <<EOF |
| 1805 | #define $ac_tr_hdr 1 |
| 1806 | EOF |
| 1807 | |
| 1808 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1809 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1810 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1811 | done |
| 1812 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1813 | ac_header_dirent=no |
| 1814 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
| 1815 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1816 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1817 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1818 | echo "configure:1819: checking for $ac_hdr that defines DIR" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1819 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1820 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1821 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1822 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1823 | #line 1824 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1824 | #include "confdefs.h" |
| 1825 | #include <sys/types.h> |
| 1826 | #include <$ac_hdr> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1827 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1828 | DIR *dirp = 0; |
| 1829 | ; return 0; } |
| 1830 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1831 | if { (eval echo configure:1832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1832 | rm -rf conftest* |
| 1833 | eval "ac_cv_header_dirent_$ac_safe=yes" |
| 1834 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1835 | echo "configure: failed program was:" >&5 |
| 1836 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1837 | rm -rf conftest* |
| 1838 | eval "ac_cv_header_dirent_$ac_safe=no" |
| 1839 | fi |
| 1840 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1841 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1842 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1843 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1844 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1845 | cat >> confdefs.h <<EOF |
| 1846 | #define $ac_tr_hdr 1 |
| 1847 | EOF |
| 1848 | ac_header_dirent=$ac_hdr; break |
| 1849 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1850 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1851 | fi |
| 1852 | done |
| 1853 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 1854 | if test $ac_header_dirent = dirent.h; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1855 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1856 | echo "configure:1857: checking for opendir in -ldir" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1857 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1858 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1859 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1860 | else |
| 1861 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1862 | LIBS="-ldir $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1863 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1864 | #line 1865 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1865 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1866 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1867 | /* We use char because int might match the return type of a gcc2 |
| 1868 | builtin and then its argument prototype would still apply. */ |
| 1869 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1870 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1871 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1872 | opendir() |
| 1873 | ; return 0; } |
| 1874 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1875 | if { (eval echo configure:1876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1876 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1877 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1878 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1879 | echo "configure: failed program was:" >&5 |
| 1880 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1881 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1882 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1883 | fi |
| 1884 | rm -f conftest* |
| 1885 | LIBS="$ac_save_LIBS" |
| 1886 | |
| 1887 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1888 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1889 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1890 | LIBS="$LIBS -ldir" |
| 1891 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1892 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1893 | fi |
| 1894 | |
| 1895 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1896 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1897 | echo "configure:1898: checking for opendir in -lx" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1898 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1899 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1900 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1901 | else |
| 1902 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1903 | LIBS="-lx $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1904 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1905 | #line 1906 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1906 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1907 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1908 | /* We use char because int might match the return type of a gcc2 |
| 1909 | builtin and then its argument prototype would still apply. */ |
| 1910 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1911 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1912 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1913 | opendir() |
| 1914 | ; return 0; } |
| 1915 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1916 | if { (eval echo configure:1917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1917 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1918 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1919 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1920 | echo "configure: failed program was:" >&5 |
| 1921 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1922 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1923 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1924 | fi |
| 1925 | rm -f conftest* |
| 1926 | LIBS="$ac_save_LIBS" |
| 1927 | |
| 1928 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1929 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1930 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1931 | LIBS="$LIBS -lx" |
| 1932 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1933 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1934 | fi |
| 1935 | |
| 1936 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1937 | |
| 1938 | |
| 1939 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1940 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1941 | echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1942 | echo "configure:1943: checking for clock_t in time.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1943 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1944 | #line 1945 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1945 | #include "confdefs.h" |
| 1946 | #include <time.h> |
| 1947 | EOF |
| 1948 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1949 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1950 | rm -rf conftest* |
| 1951 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1952 | else |
| 1953 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1954 | cat >> confdefs.h <<\EOF |
| 1955 | #define clock_t long |
| 1956 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1957 | |
| 1958 | fi |
| 1959 | rm -f conftest* |
| 1960 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1961 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1962 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1963 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 1964 | cat >> confdefs.h <<\EOF |
| 1965 | #if defined(SCO_DS) |
| 1966 | #undef _OFF_T |
| 1967 | #endif |
| 1968 | EOF |
| 1969 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 1970 | # Type availability checks |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1971 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1972 | echo "configure:1973: checking for mode_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1973 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1974 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1975 | else |
| 1976 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1977 | #line 1978 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1978 | #include "confdefs.h" |
| 1979 | #include <sys/types.h> |
| 1980 | #if STDC_HEADERS |
| 1981 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1982 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1983 | #endif |
| 1984 | EOF |
| 1985 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1986 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1987 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1988 | ac_cv_type_mode_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1989 | else |
| 1990 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1991 | ac_cv_type_mode_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1992 | fi |
| 1993 | rm -f conftest* |
| 1994 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1995 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1996 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
| 1997 | if test $ac_cv_type_mode_t = no; then |
| 1998 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1999 | #define mode_t int |
| 2000 | EOF |
| 2001 | |
| 2002 | fi |
| 2003 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2004 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2005 | echo "configure:2006: checking for off_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2006 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2007 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2008 | else |
| 2009 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2010 | #line 2011 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2011 | #include "confdefs.h" |
| 2012 | #include <sys/types.h> |
| 2013 | #if STDC_HEADERS |
| 2014 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2015 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2016 | #endif |
| 2017 | EOF |
| 2018 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2019 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2020 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2021 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2022 | else |
| 2023 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2024 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2025 | fi |
| 2026 | rm -f conftest* |
| 2027 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2028 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2029 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
| 2030 | if test $ac_cv_type_off_t = no; then |
| 2031 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2032 | #define off_t long |
| 2033 | EOF |
| 2034 | |
| 2035 | fi |
| 2036 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2037 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2038 | echo "configure:2039: checking for pid_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2039 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2040 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2041 | else |
| 2042 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2043 | #line 2044 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2044 | #include "confdefs.h" |
| 2045 | #include <sys/types.h> |
| 2046 | #if STDC_HEADERS |
| 2047 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2048 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2049 | #endif |
| 2050 | EOF |
| 2051 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2052 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2053 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2054 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2055 | else |
| 2056 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2057 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2058 | fi |
| 2059 | rm -f conftest* |
| 2060 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2061 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2062 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
| 2063 | if test $ac_cv_type_pid_t = no; then |
| 2064 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2065 | #define pid_t int |
| 2066 | EOF |
| 2067 | |
| 2068 | fi |
| 2069 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2070 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2071 | echo "configure:2072: checking return type of signal handlers" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2072 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2073 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2074 | else |
| 2075 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2076 | #line 2077 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2077 | #include "confdefs.h" |
| 2078 | #include <sys/types.h> |
| 2079 | #include <signal.h> |
| 2080 | #ifdef signal |
| 2081 | #undef signal |
| 2082 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2083 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2084 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 2085 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2086 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2087 | #endif |
| 2088 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2089 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2090 | int i; |
| 2091 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2092 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2093 | if { (eval echo configure:2094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2094 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2095 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2096 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2097 | echo "configure: failed program was:" >&5 |
| 2098 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2099 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2100 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2101 | fi |
| 2102 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2103 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2104 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2105 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2106 | cat >> confdefs.h <<EOF |
| 2107 | #define RETSIGTYPE $ac_cv_type_signal |
| 2108 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2109 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2110 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2111 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2112 | echo "configure:2113: checking for size_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2113 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2114 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2115 | else |
| 2116 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2117 | #line 2118 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2118 | #include "confdefs.h" |
| 2119 | #include <sys/types.h> |
| 2120 | #if STDC_HEADERS |
| 2121 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2122 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2123 | #endif |
| 2124 | EOF |
| 2125 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2126 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2127 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2128 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2129 | else |
| 2130 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2131 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2132 | fi |
| 2133 | rm -f conftest* |
| 2134 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2135 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2136 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
| 2137 | if test $ac_cv_type_size_t = no; then |
| 2138 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2139 | #define size_t unsigned |
| 2140 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2141 | |
| 2142 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2143 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2144 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2145 | echo "configure:2146: checking for uid_t in sys/types.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2146 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2147 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2148 | else |
| 2149 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2150 | #line 2151 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2151 | #include "confdefs.h" |
| 2152 | #include <sys/types.h> |
| 2153 | EOF |
| 2154 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2155 | egrep "uid_t" >/dev/null 2>&1; then |
| 2156 | rm -rf conftest* |
| 2157 | ac_cv_type_uid_t=yes |
| 2158 | else |
| 2159 | rm -rf conftest* |
| 2160 | ac_cv_type_uid_t=no |
| 2161 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2162 | rm -f conftest* |
| 2163 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2164 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2165 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2166 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2167 | if test $ac_cv_type_uid_t = no; then |
| 2168 | cat >> confdefs.h <<\EOF |
| 2169 | #define uid_t int |
| 2170 | EOF |
| 2171 | |
| 2172 | cat >> confdefs.h <<\EOF |
| 2173 | #define gid_t int |
| 2174 | EOF |
| 2175 | |
| 2176 | fi |
| 2177 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2178 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2179 | # Sizes of various common basic types |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2180 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2181 | echo "configure:2182: checking size of int" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2182 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2183 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2184 | else |
| 2185 | if test "$cross_compiling" = yes; then |
| 2186 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2187 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2188 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2189 | #line 2190 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2190 | #include "confdefs.h" |
| 2191 | #include <stdio.h> |
| 2192 | main() |
| 2193 | { |
| 2194 | FILE *f=fopen("conftestval", "w"); |
| 2195 | if (!f) exit(1); |
| 2196 | fprintf(f, "%d\n", sizeof(int)); |
| 2197 | exit(0); |
| 2198 | } |
| 2199 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2200 | if { (eval echo configure:2201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2201 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2202 | ac_cv_sizeof_int=`cat conftestval` |
| 2203 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2204 | echo "configure: failed program was:" >&5 |
| 2205 | cat conftest.$ac_ext >&5 |
| 2206 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2207 | ac_cv_sizeof_int=0 |
| 2208 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2209 | rm -fr conftest* |
| 2210 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2211 | |
| 2212 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2213 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 2214 | cat >> confdefs.h <<EOF |
| 2215 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 2216 | EOF |
| 2217 | |
| 2218 | |
| 2219 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2220 | echo "configure:2221: checking size of long" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2221 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2222 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2223 | else |
| 2224 | if test "$cross_compiling" = yes; then |
| 2225 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2226 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2227 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2228 | #line 2229 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2229 | #include "confdefs.h" |
| 2230 | #include <stdio.h> |
| 2231 | main() |
| 2232 | { |
| 2233 | FILE *f=fopen("conftestval", "w"); |
| 2234 | if (!f) exit(1); |
| 2235 | fprintf(f, "%d\n", sizeof(long)); |
| 2236 | exit(0); |
| 2237 | } |
| 2238 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2239 | if { (eval echo configure:2240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2240 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2241 | ac_cv_sizeof_long=`cat conftestval` |
| 2242 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2243 | echo "configure: failed program was:" >&5 |
| 2244 | cat conftest.$ac_ext >&5 |
| 2245 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2246 | ac_cv_sizeof_long=0 |
| 2247 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2248 | rm -fr conftest* |
| 2249 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2250 | |
| 2251 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2252 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
| 2253 | cat >> confdefs.h <<EOF |
| 2254 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 2255 | EOF |
| 2256 | |
| 2257 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2258 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2259 | echo "configure:2260: checking size of void *" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2260 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2261 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2262 | else |
| 2263 | if test "$cross_compiling" = yes; then |
| 2264 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2265 | else |
| 2266 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2267 | #line 2268 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2268 | #include "confdefs.h" |
| 2269 | #include <stdio.h> |
| 2270 | main() |
| 2271 | { |
| 2272 | FILE *f=fopen("conftestval", "w"); |
| 2273 | if (!f) exit(1); |
| 2274 | fprintf(f, "%d\n", sizeof(void *)); |
| 2275 | exit(0); |
| 2276 | } |
| 2277 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2278 | if { (eval echo configure:2279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2279 | then |
| 2280 | ac_cv_sizeof_void_p=`cat conftestval` |
| 2281 | else |
| 2282 | echo "configure: failed program was:" >&5 |
| 2283 | cat conftest.$ac_ext >&5 |
| 2284 | rm -fr conftest* |
| 2285 | ac_cv_sizeof_void_p=0 |
| 2286 | fi |
| 2287 | rm -fr conftest* |
| 2288 | fi |
| 2289 | |
| 2290 | fi |
| 2291 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
| 2292 | cat >> confdefs.h <<EOF |
| 2293 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
| 2294 | EOF |
| 2295 | |
| 2296 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2297 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2298 | echo "configure:2299: checking size of char" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2299 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2300 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2301 | else |
| 2302 | if test "$cross_compiling" = yes; then |
| 2303 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2304 | else |
| 2305 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2306 | #line 2307 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2307 | #include "confdefs.h" |
| 2308 | #include <stdio.h> |
| 2309 | main() |
| 2310 | { |
| 2311 | FILE *f=fopen("conftestval", "w"); |
| 2312 | if (!f) exit(1); |
| 2313 | fprintf(f, "%d\n", sizeof(char)); |
| 2314 | exit(0); |
| 2315 | } |
| 2316 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2317 | if { (eval echo configure:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2318 | then |
| 2319 | ac_cv_sizeof_char=`cat conftestval` |
| 2320 | else |
| 2321 | echo "configure: failed program was:" >&5 |
| 2322 | cat conftest.$ac_ext >&5 |
| 2323 | rm -fr conftest* |
| 2324 | ac_cv_sizeof_char=0 |
| 2325 | fi |
| 2326 | rm -fr conftest* |
| 2327 | fi |
| 2328 | |
| 2329 | fi |
| 2330 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
| 2331 | cat >> confdefs.h <<EOF |
| 2332 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
| 2333 | EOF |
| 2334 | |
| 2335 | |
| 2336 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2337 | echo "configure:2338: checking size of short" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2338 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2339 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2340 | else |
| 2341 | if test "$cross_compiling" = yes; then |
| 2342 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2343 | else |
| 2344 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2345 | #line 2346 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2346 | #include "confdefs.h" |
| 2347 | #include <stdio.h> |
| 2348 | main() |
| 2349 | { |
| 2350 | FILE *f=fopen("conftestval", "w"); |
| 2351 | if (!f) exit(1); |
| 2352 | fprintf(f, "%d\n", sizeof(short)); |
| 2353 | exit(0); |
| 2354 | } |
| 2355 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2356 | if { (eval echo configure:2357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2357 | then |
| 2358 | ac_cv_sizeof_short=`cat conftestval` |
| 2359 | else |
| 2360 | echo "configure: failed program was:" >&5 |
| 2361 | cat conftest.$ac_ext >&5 |
| 2362 | rm -fr conftest* |
| 2363 | ac_cv_sizeof_short=0 |
| 2364 | fi |
| 2365 | rm -fr conftest* |
| 2366 | fi |
| 2367 | |
| 2368 | fi |
| 2369 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
| 2370 | cat >> confdefs.h <<EOF |
| 2371 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 2372 | EOF |
| 2373 | |
| 2374 | |
| 2375 | echo $ac_n "checking size of float""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2376 | echo "configure:2377: checking size of float" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2377 | if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2378 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2379 | else |
| 2380 | if test "$cross_compiling" = yes; then |
| 2381 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2382 | else |
| 2383 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2384 | #line 2385 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2385 | #include "confdefs.h" |
| 2386 | #include <stdio.h> |
| 2387 | main() |
| 2388 | { |
| 2389 | FILE *f=fopen("conftestval", "w"); |
| 2390 | if (!f) exit(1); |
| 2391 | fprintf(f, "%d\n", sizeof(float)); |
| 2392 | exit(0); |
| 2393 | } |
| 2394 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2395 | if { (eval echo configure:2396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2396 | then |
| 2397 | ac_cv_sizeof_float=`cat conftestval` |
| 2398 | else |
| 2399 | echo "configure: failed program was:" >&5 |
| 2400 | cat conftest.$ac_ext >&5 |
| 2401 | rm -fr conftest* |
| 2402 | ac_cv_sizeof_float=0 |
| 2403 | fi |
| 2404 | rm -fr conftest* |
| 2405 | fi |
| 2406 | |
| 2407 | fi |
| 2408 | echo "$ac_t""$ac_cv_sizeof_float" 1>&6 |
| 2409 | cat >> confdefs.h <<EOF |
| 2410 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
| 2411 | EOF |
| 2412 | |
| 2413 | |
| 2414 | echo $ac_n "checking size of double""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2415 | echo "configure:2416: checking size of double" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2416 | if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2417 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2418 | else |
| 2419 | if test "$cross_compiling" = yes; then |
| 2420 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2421 | else |
| 2422 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2423 | #line 2424 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2424 | #include "confdefs.h" |
| 2425 | #include <stdio.h> |
| 2426 | main() |
| 2427 | { |
| 2428 | FILE *f=fopen("conftestval", "w"); |
| 2429 | if (!f) exit(1); |
| 2430 | fprintf(f, "%d\n", sizeof(double)); |
| 2431 | exit(0); |
| 2432 | } |
| 2433 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2434 | if { (eval echo configure:2435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2435 | then |
| 2436 | ac_cv_sizeof_double=`cat conftestval` |
| 2437 | else |
| 2438 | echo "configure: failed program was:" >&5 |
| 2439 | cat conftest.$ac_ext >&5 |
| 2440 | rm -fr conftest* |
| 2441 | ac_cv_sizeof_double=0 |
| 2442 | fi |
| 2443 | rm -fr conftest* |
| 2444 | fi |
| 2445 | |
| 2446 | fi |
| 2447 | echo "$ac_t""$ac_cv_sizeof_double" 1>&6 |
| 2448 | cat >> confdefs.h <<EOF |
| 2449 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
| 2450 | EOF |
| 2451 | |
| 2452 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2453 | echo $ac_n "checking size of fpos_t""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2454 | echo "configure:2455: checking size of fpos_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2455 | if eval "test \"`echo '$''{'ac_cv_sizeof_fpos_t'+set}'`\" = set"; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2456 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2457 | else |
| 2458 | if test "$cross_compiling" = yes; then |
| 2459 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2460 | else |
| 2461 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2462 | #line 2463 "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2463 | #include "confdefs.h" |
| 2464 | #include <stdio.h> |
| 2465 | main() |
| 2466 | { |
| 2467 | FILE *f=fopen("conftestval", "w"); |
| 2468 | if (!f) exit(1); |
| 2469 | fprintf(f, "%d\n", sizeof(fpos_t)); |
| 2470 | exit(0); |
| 2471 | } |
| 2472 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2473 | if { (eval echo configure:2474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2474 | then |
| 2475 | ac_cv_sizeof_fpos_t=`cat conftestval` |
| 2476 | else |
| 2477 | echo "configure: failed program was:" >&5 |
| 2478 | cat conftest.$ac_ext >&5 |
| 2479 | rm -fr conftest* |
| 2480 | ac_cv_sizeof_fpos_t=0 |
| 2481 | fi |
| 2482 | rm -fr conftest* |
| 2483 | fi |
| 2484 | |
| 2485 | fi |
| 2486 | echo "$ac_t""$ac_cv_sizeof_fpos_t" 1>&6 |
| 2487 | cat >> confdefs.h <<EOF |
| 2488 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
| 2489 | EOF |
| 2490 | |
| 2491 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2492 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2493 | echo $ac_n "checking for long long support""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2494 | echo "configure:2495: checking for long long support" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2495 | have_long_long=no |
| 2496 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2497 | #line 2498 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2498 | #include "confdefs.h" |
| 2499 | |
| 2500 | int main() { |
| 2501 | long long x; x = (long long)0; |
| 2502 | ; return 0; } |
| 2503 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2504 | if { (eval echo configure:2505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2505 | rm -rf conftest* |
| 2506 | cat >> confdefs.h <<\EOF |
| 2507 | #define HAVE_LONG_LONG 1 |
| 2508 | EOF |
| 2509 | have_long_long=yes |
| 2510 | else |
| 2511 | echo "configure: failed program was:" >&5 |
| 2512 | cat conftest.$ac_ext >&5 |
| 2513 | fi |
| 2514 | rm -f conftest* |
| 2515 | echo "$ac_t""$have_long_long" 1>&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2516 | if test "$have_long_long" = yes ; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2517 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2518 | echo "configure:2519: checking size of long long" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2519 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2520 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2521 | else |
| 2522 | if test "$cross_compiling" = yes; then |
| 2523 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2524 | else |
| 2525 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2526 | #line 2527 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2527 | #include "confdefs.h" |
| 2528 | #include <stdio.h> |
| 2529 | main() |
| 2530 | { |
| 2531 | FILE *f=fopen("conftestval", "w"); |
| 2532 | if (!f) exit(1); |
| 2533 | fprintf(f, "%d\n", sizeof(long long)); |
| 2534 | exit(0); |
| 2535 | } |
| 2536 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2537 | if { (eval echo configure:2538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2538 | then |
| 2539 | ac_cv_sizeof_long_long=`cat conftestval` |
| 2540 | else |
| 2541 | echo "configure: failed program was:" >&5 |
| 2542 | cat conftest.$ac_ext >&5 |
| 2543 | rm -fr conftest* |
| 2544 | ac_cv_sizeof_long_long=0 |
| 2545 | fi |
| 2546 | rm -fr conftest* |
| 2547 | fi |
| 2548 | |
| 2549 | fi |
| 2550 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
| 2551 | cat >> confdefs.h <<EOF |
| 2552 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 2553 | EOF |
| 2554 | |
| 2555 | |
| 2556 | fi |
| 2557 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2558 | echo $ac_n "checking for uintptr_t support""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2559 | echo "configure:2560: checking for uintptr_t support" >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2560 | have_uintptr_t=no |
| 2561 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2562 | #line 2563 "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2563 | #include "confdefs.h" |
| 2564 | |
| 2565 | int main() { |
| 2566 | uintptr_t x; x = (uintptr_t)0; |
| 2567 | ; return 0; } |
| 2568 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2569 | if { (eval echo configure:2570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2570 | rm -rf conftest* |
| 2571 | cat >> confdefs.h <<\EOF |
| 2572 | #define HAVE_UINTPTR_T 1 |
| 2573 | EOF |
| 2574 | have_uintptr_t=yes |
| 2575 | else |
| 2576 | echo "configure: failed program was:" >&5 |
| 2577 | cat conftest.$ac_ext >&5 |
| 2578 | fi |
| 2579 | rm -f conftest* |
| 2580 | echo "$ac_t""$have_uintptr_t" 1>&6 |
| 2581 | if test "$have_uintptr_t" = yes ; then |
| 2582 | echo $ac_n "checking size of uintptr_t""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2583 | echo "configure:2584: checking size of uintptr_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2584 | if eval "test \"`echo '$''{'ac_cv_sizeof_uintptr_t'+set}'`\" = set"; then |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2585 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2586 | else |
| 2587 | if test "$cross_compiling" = yes; then |
| 2588 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2589 | else |
| 2590 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2591 | #line 2592 "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2592 | #include "confdefs.h" |
| 2593 | #include <stdio.h> |
| 2594 | main() |
| 2595 | { |
| 2596 | FILE *f=fopen("conftestval", "w"); |
| 2597 | if (!f) exit(1); |
| 2598 | fprintf(f, "%d\n", sizeof(uintptr_t)); |
| 2599 | exit(0); |
| 2600 | } |
| 2601 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2602 | if { (eval echo configure:2603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2603 | then |
| 2604 | ac_cv_sizeof_uintptr_t=`cat conftestval` |
| 2605 | else |
| 2606 | echo "configure: failed program was:" >&5 |
| 2607 | cat conftest.$ac_ext >&5 |
| 2608 | rm -fr conftest* |
| 2609 | ac_cv_sizeof_uintptr_t=0 |
| 2610 | fi |
| 2611 | rm -fr conftest* |
| 2612 | fi |
| 2613 | |
| 2614 | fi |
| 2615 | echo "$ac_t""$ac_cv_sizeof_uintptr_t" 1>&6 |
| 2616 | cat >> confdefs.h <<EOF |
| 2617 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
| 2618 | EOF |
| 2619 | |
| 2620 | |
| 2621 | fi |
| 2622 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2623 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
| 2624 | echo $ac_n "checking size of off_t""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2625 | echo "configure:2626: checking size of off_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2626 | if eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2627 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2628 | else |
| 2629 | if test "$cross_compiling" = yes; then |
| 2630 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2631 | else |
| 2632 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2633 | #line 2634 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2634 | #include "confdefs.h" |
| 2635 | #include <stdio.h> |
| 2636 | #include <sys/types.h> |
| 2637 | main() |
| 2638 | { |
| 2639 | FILE *f=fopen("conftestval", "w"); |
| 2640 | if (!f) exit(1); |
| 2641 | fprintf(f, "%d\n", sizeof(off_t)); |
| 2642 | exit(0); |
| 2643 | } |
| 2644 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2645 | if { (eval echo configure:2646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2646 | then |
| 2647 | ac_cv_sizeof_off_t=`cat conftestval` |
| 2648 | else |
| 2649 | echo "configure: failed program was:" >&5 |
| 2650 | cat conftest.$ac_ext >&5 |
| 2651 | rm -fr conftest* |
| 2652 | ac_cv_sizeof_off_t=0 |
| 2653 | fi |
| 2654 | rm -fr conftest* |
| 2655 | fi |
| 2656 | |
| 2657 | |
| 2658 | fi |
| 2659 | |
| 2660 | echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6 |
| 2661 | cat >> confdefs.h <<EOF |
| 2662 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 2663 | EOF |
| 2664 | |
| 2665 | |
| 2666 | echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2667 | echo "configure:2668: checking whether to enable large file support" >&5 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2668 | if test "$have_long_long" = yes -a \ |
| 2669 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 2670 | "$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] | 2671 | cat >> confdefs.h <<\EOF |
| 2672 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 2673 | EOF |
| 2674 | |
| 2675 | echo "$ac_t""yes" 1>&6 |
| 2676 | else |
| 2677 | echo "$ac_t""no" 1>&6 |
| 2678 | fi |
| 2679 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2680 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
| 2681 | echo $ac_n "checking size of time_t""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2682 | echo "configure:2683: checking size of time_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2683 | if eval "test \"`echo '$''{'ac_cv_sizeof_time_t'+set}'`\" = set"; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2684 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2685 | else |
| 2686 | if test "$cross_compiling" = yes; then |
| 2687 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2688 | else |
| 2689 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2690 | #line 2691 "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2691 | #include "confdefs.h" |
| 2692 | #include <stdio.h> |
| 2693 | #include <time.h> |
| 2694 | main() |
| 2695 | { |
| 2696 | FILE *f=fopen("conftestval", "w"); |
| 2697 | if (!f) exit(1); |
| 2698 | fprintf(f, "%d\n", sizeof(time_t)); |
| 2699 | exit(0); |
| 2700 | } |
| 2701 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2702 | if { (eval echo configure:2703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2703 | then |
| 2704 | ac_cv_sizeof_time_t=`cat conftestval` |
| 2705 | else |
| 2706 | echo "configure: failed program was:" >&5 |
| 2707 | cat conftest.$ac_ext >&5 |
| 2708 | rm -fr conftest* |
| 2709 | ac_cv_sizeof_time_t=0 |
| 2710 | fi |
| 2711 | rm -fr conftest* |
| 2712 | fi |
| 2713 | |
| 2714 | |
| 2715 | fi |
| 2716 | |
| 2717 | echo "$ac_t""$ac_cv_sizeof_time_t" 1>&6 |
| 2718 | cat >> confdefs.h <<EOF |
| 2719 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
| 2720 | EOF |
| 2721 | |
| 2722 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2723 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2724 | # if have pthread_t then define SIZEOF_PTHREAD_T |
| 2725 | echo $ac_n "checking for pthread_t""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2726 | echo "configure:2727: checking for pthread_t" >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2727 | have_pthread_t=no |
| 2728 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2729 | #line 2730 "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2730 | #include "confdefs.h" |
| 2731 | #include <pthread.h> |
| 2732 | int main() { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 2733 | pthread_t x; x = *(pthread_t*)0; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2734 | ; return 0; } |
| 2735 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2736 | if { (eval echo configure:2737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2737 | rm -rf conftest* |
| 2738 | have_pthread_t=yes |
| 2739 | else |
| 2740 | echo "configure: failed program was:" >&5 |
| 2741 | cat conftest.$ac_ext >&5 |
| 2742 | fi |
| 2743 | rm -f conftest* |
| 2744 | echo "$ac_t""$have_pthread_t" 1>&6 |
| 2745 | if test "$have_pthread_t" = yes ; then |
| 2746 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
| 2747 | echo $ac_n "checking size of pthread_t""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2748 | echo "configure:2749: checking size of pthread_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2749 | if eval "test \"`echo '$''{'ac_cv_sizeof_pthread_t'+set}'`\" = set"; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2750 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2751 | else |
| 2752 | if test "$cross_compiling" = yes; then |
| 2753 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2754 | else |
| 2755 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2756 | #line 2757 "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2757 | #include "confdefs.h" |
| 2758 | #include <stdio.h> |
| 2759 | #include <pthread.h> |
| 2760 | main() |
| 2761 | { |
| 2762 | FILE *f=fopen("conftestval", "w"); |
| 2763 | if (!f) exit(1); |
| 2764 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 2765 | exit(0); |
| 2766 | } |
| 2767 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2768 | if { (eval echo configure:2769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2769 | then |
| 2770 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 2771 | else |
| 2772 | echo "configure: failed program was:" >&5 |
| 2773 | cat conftest.$ac_ext >&5 |
| 2774 | rm -fr conftest* |
| 2775 | ac_cv_sizeof_pthread_t=0 |
| 2776 | fi |
| 2777 | rm -fr conftest* |
| 2778 | fi |
| 2779 | |
| 2780 | |
| 2781 | fi |
| 2782 | |
| 2783 | echo "$ac_t""$ac_cv_sizeof_pthread_t" 1>&6 |
| 2784 | cat >> confdefs.h <<EOF |
| 2785 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
| 2786 | EOF |
| 2787 | |
| 2788 | fi |
| 2789 | |
| 2790 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2791 | # Minor variations in building a framework between NextStep versions 4 and 5 |
| 2792 | |
| 2793 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 2794 | Darwin/*) |
| 2795 | ns_undef_sym='_environ' |
| 2796 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -U $ns_undef_sym" ;; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2797 | next/4*) |
| 2798 | ns_undef_sym='__environ' |
| 2799 | LIBTOOL_CRUFT="-U $ns_undef_sym" ;; |
| 2800 | next/5*) |
| 2801 | ns_undef_sym='_environ' |
| 2802 | LIBTOOL_CRUFT="-lcc_dynamic -U $ns_undef_sym" ;; |
| 2803 | esac |
| 2804 | |
| 2805 | echo $ac_n "checking for --with-next-framework""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2806 | echo "configure:2807: checking for --with-next-framework" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2807 | if test "$with_next_framework" |
| 2808 | then |
| 2809 | OPT="$OPT -fno-common" |
| 2810 | # -U __environ is needed since bundles don't have access |
| 2811 | # to crt0 when built but will always be linked against it |
| 2812 | LDFLAGS="$LDFLAGS -Wl,-U,$ns_undef_sym" |
| 2813 | cat >> confdefs.h <<\EOF |
| 2814 | #define WITH_NEXT_FRAMEWORK 1 |
| 2815 | EOF |
| 2816 | |
| 2817 | echo "$ac_t""yes" 1>&6 |
| 2818 | else |
| 2819 | echo "$ac_t""no" 1>&6 |
| 2820 | fi |
| 2821 | |
| 2822 | echo $ac_n "checking for --with-dyld""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2823 | echo "configure:2824: checking for --with-dyld" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2824 | if test "$with_next_framework" -o "$with_dyld" |
| 2825 | then |
| 2826 | if test "$with_dyld" |
| 2827 | then |
| 2828 | echo "$ac_t""yes" 1>&6 |
| 2829 | else |
| 2830 | echo "$ac_t""required for framework build" 1>&6 |
| 2831 | fi |
| 2832 | cat >> confdefs.h <<\EOF |
| 2833 | #define WITH_DYLD 1 |
| 2834 | EOF |
| 2835 | |
| 2836 | ns_dyld='set' |
| 2837 | else |
| 2838 | echo "$ac_t""no" 1>&6 |
| 2839 | fi |
| 2840 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2841 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2842 | |
| 2843 | |
| 2844 | |
| 2845 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2846 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 2847 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2848 | echo $ac_n "checking SO""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2849 | echo "configure:2850: checking SO" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2850 | if test -z "$SO" |
| 2851 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2852 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2853 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 2854 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2855 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2856 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2857 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2858 | echo "$ac_t""$SO" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2859 | # LDSHARED is the ld *command* used to create shared library |
| 2860 | # -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2861 | # (Shared libraries in this instance are shared modules to be loaded into |
| 2862 | # Python, as opposed to building Python itself as a shared library.) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2863 | echo $ac_n "checking LDSHARED""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2864 | echo "configure:2865: checking LDSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2865 | if test -z "$LDSHARED" |
| 2866 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2867 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 45140f9 | 1997-08-29 18:44:06 +0000 | [diff] [blame] | 2868 | AIX*) LDSHARED="\$(srcdir)/ld_so_aix \$(CC)";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2869 | BeOS*) LDSHARED="\$(srcdir)/../BeOS/linkmodule -L.. -lpython\$(VERSION)";; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2870 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2871 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2872 | SunOS/4*) LDSHARED="ld";; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 2873 | SunOS/5*) |
| 2874 | if test "$GCC" = "yes" |
Greg Ward | a1c4da2 | 2000-11-07 15:44:21 +0000 | [diff] [blame] | 2875 | then LDSHARED='$(CC) -shared' |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 2876 | else LDSHARED="ld -G"; |
| 2877 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2878 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2879 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 2880 | DYNIX/ptx*) LDSHARED="ld -G";; |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2881 | Darwin/*|next/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2882 | if test "$ns_dyld" |
Guido van Rossum | acb14c7 | 2001-01-10 21:41:16 +0000 | [diff] [blame] | 2883 | then LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined suppress' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2884 | else LDSHARED='$(CC) $(CFLAGS) -nostdlib -r'; |
| 2885 | fi |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2886 | if test "$with_next_framework" ; then |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2887 | LDSHARED="$LDSHARED \$(LDLIBRARY)" |
| 2888 | fi ;; |
Guido van Rossum | 81652ab | 1996-07-21 02:53:27 +0000 | [diff] [blame] | 2889 | Linux*) LDSHARED="gcc -shared";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 2890 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 2891 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2892 | OpenBSD*) LDSHARED="ld -Bshareable";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2893 | NetBSD*) |
| 2894 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 2895 | then |
| 2896 | LDSHARED="cc -shared" |
| 2897 | else |
| 2898 | LDSHARED="ld -Bshareable" |
| 2899 | fi;; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2900 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 2901 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2902 | then |
| 2903 | LDSHARED="cc -shared ${LDFLAGS}" |
| 2904 | else |
| 2905 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 2906 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2907 | SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2908 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 2909 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2910 | *) LDSHARED="ld";; |
| 2911 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2912 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2913 | echo "$ac_t""$LDSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2914 | # 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] | 2915 | # library (module) -- this is only needed for a few systems |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2916 | echo $ac_n "checking CCSHARED""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2917 | echo "configure:2918: checking CCSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2918 | if test -z "$CCSHARED" |
| 2919 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2920 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 2921 | hp*|HP*) if test "$GCC" = yes; |
| 2922 | then CCSHARED="-fpic"; |
| 2923 | else CCSHARED="+z"; |
| 2924 | fi;; |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2925 | Linux*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 2926 | BSD/OS*/4*) CCSHARED="-fpic";; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2927 | OpenBSD*) CCSHARED="-fpic";; |
| 2928 | FreeBSD*|NetBSD*) CCSHARED="-fPIC";; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2929 | SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2930 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2931 | IRIX*/6*) case $CC in |
| 2932 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 2933 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2934 | esac;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 2935 | CYGWIN*) CCSHARED="-DUSE_DL_IMPORT";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2936 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2937 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2938 | echo "$ac_t""$CCSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2939 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2940 | # the python executable -- this is only needed for a few systems |
| 2941 | echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2942 | echo "configure:2943: checking LINKFORSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2943 | if test -z "$LINKFORSHARED" |
| 2944 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2945 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 69f6580 | 1998-03-03 21:47:00 +0000 | [diff] [blame] | 2946 | AIX*) LINKFORSHARED='-Wl,-bE:python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2947 | hp*|HP*) |
Guido van Rossum | 304dd2d | 1997-10-20 23:10:56 +0000 | [diff] [blame] | 2948 | LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 2949 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 2d9feed | 1997-11-24 17:36:21 +0000 | [diff] [blame] | 2950 | Linux*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2951 | # -u libsys_s pulls in all symbols in libsys |
| 2952 | next/2*|next/3*) LINKFORSHARED="-u libsys_s";; |
| 2953 | # -u __dummy makes the linker aware of the objc runtime |
| 2954 | # in System.framework; otherwise, __objcInit (referenced in |
| 2955 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 2956 | # loading of any modules which reference it in System.framework |
| 2957 | next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;; |
Guido van Rossum | acb14c7 | 2001-01-10 21:41:16 +0000 | [diff] [blame] | 2958 | Darwin/*) LINKFORSHARED="-u __dummy -framework System -framework Foundation" ;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2959 | SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 2960 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2961 | FreeBSD*|NetBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2962 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 2963 | then |
| 2964 | LINKFORSHARED="-Wl,--export-dynamic" |
| 2965 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2966 | SunOS/5*) case $CC in |
| 2967 | *gcc*) |
Guido van Rossum | ff48418 | 2000-02-03 13:50:24 +0000 | [diff] [blame] | 2968 | if $CC -Xlinker -V 2>&1 | grep BFD >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 2969 | then |
| 2970 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2971 | fi;; |
| 2972 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2973 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2974 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2975 | echo "$ac_t""$LINKFORSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2976 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2977 | |
| 2978 | echo $ac_n "checking CFLAGSFORSHARED""... $ac_c" 1>&6 |
| 2979 | echo "configure:2980: checking CFLAGSFORSHARED" >&5 |
| 2980 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 2981 | then |
| 2982 | CFLAGSFORSHARED='$(CCSHARED)' |
| 2983 | fi |
| 2984 | echo "$ac_t""$CFLAGSFORSHARED" 1>&6 |
| 2985 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2986 | # checks for libraries |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2987 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2988 | echo "configure:2989: checking for dlopen in -ldl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2989 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2990 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2991 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2992 | else |
| 2993 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2994 | LIBS="-ldl $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2995 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2996 | #line 2997 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2997 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2998 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2999 | /* We use char because int might match the return type of a gcc2 |
| 3000 | builtin and then its argument prototype would still apply. */ |
| 3001 | char dlopen(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3002 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3003 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3004 | dlopen() |
| 3005 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3006 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3007 | if { (eval echo configure:3008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3008 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3009 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3010 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3011 | echo "configure: failed program was:" >&5 |
| 3012 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3013 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3014 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3015 | fi |
| 3016 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3017 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3018 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3019 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3020 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3021 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3022 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 3023 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3024 | cat >> confdefs.h <<EOF |
| 3025 | #define $ac_tr_lib 1 |
| 3026 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3027 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3028 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3029 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3030 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3031 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3032 | fi |
| 3033 | # Dynamic linking for SunOS/Solaris and SYSV |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3034 | echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3035 | echo "configure:3036: checking for shl_load in -ldld" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3036 | ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3037 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3038 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3039 | else |
| 3040 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3041 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3042 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3043 | #line 3044 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3044 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3045 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3046 | /* We use char because int might match the return type of a gcc2 |
| 3047 | builtin and then its argument prototype would still apply. */ |
| 3048 | char shl_load(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3049 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3050 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3051 | shl_load() |
| 3052 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3053 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3054 | if { (eval echo configure:3055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3055 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3056 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3057 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3058 | echo "configure: failed program was:" >&5 |
| 3059 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3060 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3061 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3062 | fi |
| 3063 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3064 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3065 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3066 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3067 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3068 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3069 | ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 3070 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3071 | cat >> confdefs.h <<EOF |
| 3072 | #define $ac_tr_lib 1 |
| 3073 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3074 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3075 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3076 | |
| 3077 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3078 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3079 | fi |
| 3080 | # Dynamic linking for HP-UX |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3081 | |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3082 | # Check for --with-pydebug |
| 3083 | echo $ac_n "checking for --with-pydebug""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3084 | echo "configure:3085: checking for --with-pydebug" >&5 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3085 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3086 | if test "${with_pydebug+set}" = set; then |
| 3087 | withval="$with_pydebug" |
| 3088 | |
| 3089 | if test "$withval" != no |
| 3090 | then cat >> confdefs.h <<\EOF |
| 3091 | #define Py_DEBUG 1 |
| 3092 | EOF |
| 3093 | echo "$ac_t""yes" 1>&6 |
| 3094 | else echo "$ac_t""no" 1>&6 |
| 3095 | fi |
| 3096 | else |
| 3097 | echo "$ac_t""no" 1>&6 |
| 3098 | fi |
| 3099 | |
| 3100 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3101 | # checks for system dependent C++ extensions support |
| 3102 | case "$ac_sys_system" in |
| 3103 | AIX*) echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3104 | echo "configure:3105: checking for genuine AIX C++ extensions support" >&5 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3105 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3106 | #line 3107 "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3107 | #include "confdefs.h" |
| 3108 | #include "/usr/lpp/xlC/include/load.h" |
| 3109 | int main() { |
| 3110 | loadAndInit("", 0, "") |
| 3111 | ; return 0; } |
| 3112 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3113 | if { (eval echo configure:3114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3114 | rm -rf conftest* |
| 3115 | cat >> confdefs.h <<\EOF |
| 3116 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 3117 | EOF |
| 3118 | |
| 3119 | echo "$ac_t""yes" 1>&6 |
| 3120 | else |
| 3121 | echo "configure: failed program was:" >&5 |
| 3122 | cat conftest.$ac_ext >&5 |
| 3123 | rm -rf conftest* |
| 3124 | echo "$ac_t""no" 1>&6 |
| 3125 | fi |
| 3126 | rm -f conftest*;; |
| 3127 | *) ;; |
| 3128 | esac |
| 3129 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 3130 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| 3131 | # However on SGI IRIX, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3132 | # BeOS' sockets are stashed in libnet. |
| 3133 | case "$ac_sys_system" in |
| 3134 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3135 | *) |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3136 | echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3137 | echo "configure:3138: checking for t_open in -lnsl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3138 | ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3139 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3140 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3141 | else |
| 3142 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3143 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3144 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3145 | #line 3146 "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3146 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3147 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3148 | /* We use char because int might match the return type of a gcc2 |
| 3149 | builtin and then its argument prototype would still apply. */ |
| 3150 | char t_open(); |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3151 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3152 | int main() { |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 3153 | t_open() |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3154 | ; return 0; } |
| 3155 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3156 | if { (eval echo configure:3157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3157 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3158 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3159 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3160 | echo "configure: failed program was:" >&5 |
| 3161 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3162 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3163 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3164 | fi |
| 3165 | rm -f conftest* |
| 3166 | LIBS="$ac_save_LIBS" |
| 3167 | |
| 3168 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3169 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3170 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3171 | LIBS="-lnsl $LIBS" |
| 3172 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3173 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3174 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 3175 | # SVR4 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3176 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3177 | echo "configure:3178: checking for socket in -lsocket" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3178 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3179 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3180 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3181 | else |
| 3182 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3183 | LIBS="-lsocket $LIBS $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3184 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3185 | #line 3186 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3186 | #include "confdefs.h" |
| 3187 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3188 | /* We use char because int might match the return type of a gcc2 |
| 3189 | builtin and then its argument prototype would still apply. */ |
| 3190 | char socket(); |
| 3191 | |
| 3192 | int main() { |
| 3193 | socket() |
| 3194 | ; return 0; } |
| 3195 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3196 | if { (eval echo configure:3197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3197 | rm -rf conftest* |
| 3198 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3199 | else |
| 3200 | echo "configure: failed program was:" >&5 |
| 3201 | cat conftest.$ac_ext >&5 |
| 3202 | rm -rf conftest* |
| 3203 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3204 | fi |
| 3205 | rm -f conftest* |
| 3206 | LIBS="$ac_save_LIBS" |
| 3207 | |
| 3208 | fi |
| 3209 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3210 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3211 | LIBS="-lsocket $LIBS" |
| 3212 | else |
| 3213 | echo "$ac_t""no" 1>&6 |
| 3214 | fi |
| 3215 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3216 | ;; |
| 3217 | esac |
| 3218 | case "$ac_sys_system" in |
| 3219 | BeOS*) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3220 | echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3221 | echo "configure:3222: checking for socket in -lnet" >&5 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3222 | ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3223 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3224 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3225 | else |
| 3226 | ac_save_LIBS="$LIBS" |
| 3227 | LIBS="-lnet $LIBS $LIBS" |
| 3228 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3229 | #line 3230 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3230 | #include "confdefs.h" |
| 3231 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3232 | /* We use char because int might match the return type of a gcc2 |
| 3233 | builtin and then its argument prototype would still apply. */ |
| 3234 | char socket(); |
| 3235 | |
| 3236 | int main() { |
| 3237 | socket() |
| 3238 | ; return 0; } |
| 3239 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3240 | if { (eval echo configure:3241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3241 | rm -rf conftest* |
| 3242 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3243 | else |
| 3244 | echo "configure: failed program was:" >&5 |
| 3245 | cat conftest.$ac_ext >&5 |
| 3246 | rm -rf conftest* |
| 3247 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3248 | fi |
| 3249 | rm -f conftest* |
| 3250 | LIBS="$ac_save_LIBS" |
| 3251 | |
| 3252 | fi |
| 3253 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3254 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3255 | LIBS="-lnet $LIBS" |
| 3256 | else |
| 3257 | echo "$ac_t""no" 1>&6 |
| 3258 | fi |
| 3259 | # BeOS |
| 3260 | ;; |
| 3261 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 3262 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3263 | echo $ac_n "checking for --with-libs""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3264 | echo "configure:3265: checking for --with-libs" >&5 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3265 | # Check whether --with-libs or --without-libs was given. |
| 3266 | if test "${with_libs+set}" = set; then |
| 3267 | withval="$with_libs" |
| 3268 | |
| 3269 | echo "$ac_t""$withval" 1>&6 |
| 3270 | LIBS="$withval $LIBS" |
| 3271 | |
| 3272 | else |
| 3273 | echo "$ac_t""no" 1>&6 |
| 3274 | fi |
| 3275 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3276 | |
Eric S. Raymond | a888540 | 2001-01-17 08:25:11 +0000 | [diff] [blame] | 3277 | # |
| 3278 | # These are used to generate Setup.config. They autoconfigure several |
| 3279 | # features that are otherwise severe pains in the butt. |
| 3280 | # |
| 3281 | # ncurses |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 3282 | |
| 3283 | echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3284 | echo "configure:3285: checking for initscr in -lncurses" >&5 |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 3285 | ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'` |
| 3286 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3287 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3288 | else |
| 3289 | ac_save_LIBS="$LIBS" |
| 3290 | LIBS="-lncurses -ltermcap $LIBS" |
| 3291 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3292 | #line 3293 "configure" |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 3293 | #include "confdefs.h" |
| 3294 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3295 | /* We use char because int might match the return type of a gcc2 |
| 3296 | builtin and then its argument prototype would still apply. */ |
| 3297 | char initscr(); |
| 3298 | |
| 3299 | int main() { |
| 3300 | initscr() |
| 3301 | ; return 0; } |
| 3302 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3303 | if { (eval echo configure:3304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 3304 | rm -rf conftest* |
| 3305 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3306 | else |
| 3307 | echo "configure: failed program was:" >&5 |
| 3308 | cat conftest.$ac_ext >&5 |
| 3309 | rm -rf conftest* |
| 3310 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3311 | fi |
| 3312 | rm -f conftest* |
| 3313 | LIBS="$ac_save_LIBS" |
| 3314 | |
| 3315 | fi |
| 3316 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3317 | echo "$ac_t""yes" 1>&6 |
| 3318 | USE_NCURSES_MODULE="" |
| 3319 | else |
| 3320 | echo "$ac_t""no" 1>&6 |
| 3321 | USE_NCURSES_MODULE="#" |
| 3322 | fi |
| 3323 | |
Eric S. Raymond | a888540 | 2001-01-17 08:25:11 +0000 | [diff] [blame] | 3324 | # GNU readline |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 3325 | |
| 3326 | echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3327 | echo "configure:3328: checking for readline in -lreadline" >&5 |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 3328 | ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'` |
| 3329 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3330 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3331 | else |
| 3332 | ac_save_LIBS="$LIBS" |
| 3333 | LIBS="-lreadline -ltermcap $LIBS" |
| 3334 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3335 | #line 3336 "configure" |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 3336 | #include "confdefs.h" |
| 3337 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3338 | /* We use char because int might match the return type of a gcc2 |
| 3339 | builtin and then its argument prototype would still apply. */ |
| 3340 | char readline(); |
| 3341 | |
| 3342 | int main() { |
| 3343 | readline() |
| 3344 | ; return 0; } |
| 3345 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3346 | if { (eval echo configure:3347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 3347 | rm -rf conftest* |
| 3348 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3349 | else |
| 3350 | echo "configure: failed program was:" >&5 |
| 3351 | cat conftest.$ac_ext >&5 |
| 3352 | rm -rf conftest* |
| 3353 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3354 | fi |
| 3355 | rm -f conftest* |
| 3356 | LIBS="$ac_save_LIBS" |
| 3357 | |
| 3358 | fi |
| 3359 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3360 | echo "$ac_t""yes" 1>&6 |
| 3361 | USE_READLINE_MODULE="" |
| 3362 | else |
| 3363 | echo "$ac_t""no" 1>&6 |
| 3364 | USE_READLINE_MODULE="#" |
| 3365 | fi |
| 3366 | |
Eric S. Raymond | a888540 | 2001-01-17 08:25:11 +0000 | [diff] [blame] | 3367 | # gdbm(3) |
| 3368 | |
| 3369 | |
| 3370 | echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3371 | echo "configure:3372: checking for gdbm_open in -lgdbm" >&5 |
Eric S. Raymond | a888540 | 2001-01-17 08:25:11 +0000 | [diff] [blame] | 3372 | ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-%__p_%'` |
| 3373 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3374 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3375 | else |
| 3376 | ac_save_LIBS="$LIBS" |
| 3377 | LIBS="-lgdbm $LIBS" |
| 3378 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3379 | #line 3380 "configure" |
Eric S. Raymond | a888540 | 2001-01-17 08:25:11 +0000 | [diff] [blame] | 3380 | #include "confdefs.h" |
| 3381 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3382 | /* We use char because int might match the return type of a gcc2 |
| 3383 | builtin and then its argument prototype would still apply. */ |
| 3384 | char gdbm_open(); |
| 3385 | |
| 3386 | int main() { |
| 3387 | gdbm_open() |
| 3388 | ; return 0; } |
| 3389 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3390 | if { (eval echo configure:3391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Eric S. Raymond | a888540 | 2001-01-17 08:25:11 +0000 | [diff] [blame] | 3391 | rm -rf conftest* |
| 3392 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3393 | else |
| 3394 | echo "configure: failed program was:" >&5 |
| 3395 | cat conftest.$ac_ext >&5 |
| 3396 | rm -rf conftest* |
| 3397 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3398 | fi |
| 3399 | rm -f conftest* |
| 3400 | LIBS="$ac_save_LIBS" |
| 3401 | |
| 3402 | fi |
| 3403 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3404 | echo "$ac_t""yes" 1>&6 |
| 3405 | USE_GDBM_MODULE="" |
| 3406 | HAVE_LIBGDBM=-lgdbm |
| 3407 | else |
| 3408 | echo "$ac_t""no" 1>&6 |
| 3409 | USE_GDBM_MODULE="#" |
| 3410 | HAVE_LIBGDBM="" |
| 3411 | fi |
| 3412 | |
| 3413 | # ndbm(3) |
| 3414 | |
| 3415 | |
| 3416 | echo $ac_n "checking for ndbm_open in -lndbm""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3417 | echo "configure:3418: checking for ndbm_open in -lndbm" >&5 |
Eric S. Raymond | a888540 | 2001-01-17 08:25:11 +0000 | [diff] [blame] | 3418 | ac_lib_var=`echo ndbm'_'ndbm_open | sed 'y%./+-%__p_%'` |
| 3419 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3420 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3421 | else |
| 3422 | ac_save_LIBS="$LIBS" |
| 3423 | LIBS="-lndbm $LIBS" |
| 3424 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3425 | #line 3426 "configure" |
Eric S. Raymond | a888540 | 2001-01-17 08:25:11 +0000 | [diff] [blame] | 3426 | #include "confdefs.h" |
| 3427 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3428 | /* We use char because int might match the return type of a gcc2 |
| 3429 | builtin and then its argument prototype would still apply. */ |
| 3430 | char ndbm_open(); |
| 3431 | |
| 3432 | int main() { |
| 3433 | ndbm_open() |
| 3434 | ; return 0; } |
| 3435 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3436 | if { (eval echo configure:3437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Eric S. Raymond | a888540 | 2001-01-17 08:25:11 +0000 | [diff] [blame] | 3437 | rm -rf conftest* |
| 3438 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3439 | else |
| 3440 | echo "configure: failed program was:" >&5 |
| 3441 | cat conftest.$ac_ext >&5 |
| 3442 | rm -rf conftest* |
| 3443 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3444 | fi |
| 3445 | rm -f conftest* |
| 3446 | LIBS="$ac_save_LIBS" |
| 3447 | |
| 3448 | fi |
| 3449 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3450 | echo "$ac_t""yes" 1>&6 |
| 3451 | USE_NDBM_MODULE="" |
| 3452 | HAVE_LIBNDBM=-lndbm |
| 3453 | else |
| 3454 | echo "$ac_t""no" 1>&6 |
| 3455 | USE_NDBM_MODULE="#" |
| 3456 | HAVE_LIBNDBM="" |
| 3457 | fi |
| 3458 | |
| 3459 | # crypt(3) |
| 3460 | |
| 3461 | |
| 3462 | echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3463 | echo "configure:3464: checking for crypt in -lcrypt" >&5 |
Eric S. Raymond | a888540 | 2001-01-17 08:25:11 +0000 | [diff] [blame] | 3464 | ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` |
| 3465 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3466 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3467 | else |
| 3468 | ac_save_LIBS="$LIBS" |
| 3469 | LIBS="-lcrypt $LIBS" |
| 3470 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3471 | #line 3472 "configure" |
Eric S. Raymond | a888540 | 2001-01-17 08:25:11 +0000 | [diff] [blame] | 3472 | #include "confdefs.h" |
| 3473 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3474 | /* We use char because int might match the return type of a gcc2 |
| 3475 | builtin and then its argument prototype would still apply. */ |
| 3476 | char crypt(); |
| 3477 | |
| 3478 | int main() { |
| 3479 | crypt() |
| 3480 | ; return 0; } |
| 3481 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3482 | if { (eval echo configure:3483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Eric S. Raymond | a888540 | 2001-01-17 08:25:11 +0000 | [diff] [blame] | 3483 | rm -rf conftest* |
| 3484 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3485 | else |
| 3486 | echo "configure: failed program was:" >&5 |
| 3487 | cat conftest.$ac_ext >&5 |
| 3488 | rm -rf conftest* |
| 3489 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3490 | fi |
| 3491 | rm -f conftest* |
| 3492 | LIBS="$ac_save_LIBS" |
| 3493 | |
| 3494 | fi |
| 3495 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3496 | echo "$ac_t""yes" 1>&6 |
| 3497 | USE_CRYPT_MODULE="" |
| 3498 | HAVE_LIBCRYPT=-lcrypt |
| 3499 | else |
| 3500 | echo "$ac_t""no" 1>&6 |
| 3501 | USE_CRYPT_MODULE="#" |
| 3502 | HAVE_LIBCRYPT="" |
| 3503 | fi |
| 3504 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 3505 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3506 | |
| 3507 | # Determine if signalmodule should be used. |
| 3508 | |
| 3509 | |
| 3510 | echo $ac_n "checking for --with-signal-module""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3511 | echo "configure:3512: checking for --with-signal-module" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3512 | # Check whether --with-signal-module or --without-signal-module was given. |
| 3513 | if test "${with_signal_module+set}" = set; then |
| 3514 | withval="$with_signal_module" |
| 3515 | : |
| 3516 | fi |
| 3517 | |
| 3518 | |
| 3519 | if test -z "$with_signal_module" |
| 3520 | then with_signal_module="yes" |
| 3521 | fi |
| 3522 | echo "$ac_t""$with_signal_module" 1>&6 |
| 3523 | |
| 3524 | if test "${with_signal_module}" = "yes"; then |
| 3525 | USE_SIGNAL_MODULE="" |
| 3526 | SIGNAL_OBJS="" |
| 3527 | else |
| 3528 | USE_SIGNAL_MODULE="#" |
| 3529 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 3530 | fi |
| 3531 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 3532 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 3533 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3534 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 3535 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3536 | echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3537 | echo "configure:3538: checking for --with-dec-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3538 | |
| 3539 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 3540 | if test "${with_dec_threads+set}" = set; then |
| 3541 | withval="$with_dec_threads" |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3542 | |
| 3543 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3544 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3545 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3546 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3547 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3548 | else |
| 3549 | echo "$ac_t""no" 1>&6 |
| 3550 | fi |
| 3551 | |
| 3552 | |
| 3553 | echo $ac_n "checking for --with-threads""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3554 | echo "configure:3555: checking for --with-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3555 | # Check whether --with-threads or --without-threads was given. |
| 3556 | if test "${with_threads+set}" = set; then |
| 3557 | withval="$with_threads" |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3558 | : |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3559 | fi |
| 3560 | |
| 3561 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3562 | # --with-thread is deprecated, but check for it anyway |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3563 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3564 | if test "${with_thread+set}" = set; then |
| 3565 | withval="$with_thread" |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3566 | |
| 3567 | with_threads=$with_thread |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3568 | fi |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3569 | |
| 3570 | |
| 3571 | if test -z "$with_threads" |
| 3572 | then with_threads="yes" |
| 3573 | fi |
| 3574 | echo "$ac_t""$with_threads" 1>&6 |
| 3575 | |
| 3576 | if test "$with_threads" = "no" |
| 3577 | then |
| 3578 | USE_THREAD_MODULE="#" |
| 3579 | else |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 3580 | if test ! -z "$with_threads" -a -d "$with_threads" |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3581 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 3582 | fi |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 3583 | if test ! -z "$withval" -a -d "$withval" |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3584 | then LDFLAGS="$LDFLAGS -L$withval" |
| 3585 | fi |
| 3586 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 3587 | #define _REENTRANT 1 |
| 3588 | EOF |
| 3589 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3590 | ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3591 | echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3592 | echo "configure:3593: checking for mach/cthreads.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3593 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3594 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3595 | else |
| 3596 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3597 | #line 3598 "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3598 | #include "confdefs.h" |
| 3599 | #include <mach/cthreads.h> |
| 3600 | EOF |
| 3601 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3602 | { (eval echo configure:3603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3603 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3604 | if test -z "$ac_err"; then |
| 3605 | rm -rf conftest* |
| 3606 | eval "ac_cv_header_$ac_safe=yes" |
| 3607 | else |
| 3608 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3609 | echo "configure: failed program was:" >&5 |
| 3610 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3611 | rm -rf conftest* |
| 3612 | eval "ac_cv_header_$ac_safe=no" |
| 3613 | fi |
| 3614 | rm -f conftest* |
| 3615 | fi |
| 3616 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3617 | echo "$ac_t""yes" 1>&6 |
| 3618 | cat >> confdefs.h <<\EOF |
| 3619 | #define WITH_THREAD 1 |
| 3620 | EOF |
| 3621 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3622 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3623 | #define C_THREADS 1 |
| 3624 | EOF |
| 3625 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3626 | LIBOBJS="$LIBOBJS Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3627 | else |
| 3628 | echo "$ac_t""no" 1>&6 |
| 3629 | |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3630 | echo $ac_n "checking for --with-pth""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3631 | echo "configure:3632: checking for --with-pth" >&5 |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3632 | # Check whether --with-pth or --without-pth was given. |
| 3633 | if test "${with_pth+set}" = set; then |
| 3634 | withval="$with_pth" |
| 3635 | |
| 3636 | echo "$ac_t""$withval" 1>&6 |
| 3637 | cat >> confdefs.h <<\EOF |
| 3638 | #define WITH_THREAD 1 |
| 3639 | EOF |
| 3640 | |
| 3641 | cat >> confdefs.h <<\EOF |
| 3642 | #define HAVE_PTH 1 |
| 3643 | EOF |
| 3644 | |
| 3645 | LIBS="-lpth $LIBS" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3646 | LIBOBJS="$LIBOBJS Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3647 | else |
| 3648 | |
| 3649 | echo "$ac_t""no" 1>&6 |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3650 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3651 | echo "configure:3652: checking for pthread_create in -lpthread" >&5 |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3652 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3653 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3654 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3655 | else |
| 3656 | ac_save_LIBS="$LIBS" |
| 3657 | LIBS="-lpthread $LIBS" |
| 3658 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3659 | #line 3660 "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3660 | #include "confdefs.h" |
| 3661 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3662 | /* We use char because int might match the return type of a gcc2 |
| 3663 | builtin and then its argument prototype would still apply. */ |
| 3664 | char pthread_create(); |
| 3665 | |
| 3666 | int main() { |
| 3667 | pthread_create() |
| 3668 | ; return 0; } |
| 3669 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3670 | if { (eval echo configure:3671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3671 | rm -rf conftest* |
| 3672 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3673 | else |
| 3674 | echo "configure: failed program was:" >&5 |
| 3675 | cat conftest.$ac_ext >&5 |
| 3676 | rm -rf conftest* |
| 3677 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3678 | fi |
| 3679 | rm -f conftest* |
| 3680 | LIBS="$ac_save_LIBS" |
| 3681 | |
| 3682 | fi |
| 3683 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3684 | echo "$ac_t""yes" 1>&6 |
| 3685 | cat >> confdefs.h <<\EOF |
| 3686 | #define WITH_THREAD 1 |
| 3687 | EOF |
| 3688 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3689 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3690 | #define _POSIX_THREADS 1 |
| 3691 | EOF |
| 3692 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3693 | LIBS="-lpthread $LIBS" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3694 | LIBOBJS="$LIBOBJS Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3695 | else |
| 3696 | echo "$ac_t""no" 1>&6 |
| 3697 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3698 | echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3699 | echo "configure:3700: checking for pthread_detach" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3700 | if eval "test \"`echo '$''{'ac_cv_func_pthread_detach'+set}'`\" = set"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3701 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3702 | else |
| 3703 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3704 | #line 3705 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3705 | #include "confdefs.h" |
| 3706 | /* System header to define __stub macros and hopefully few prototypes, |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3707 | which can conflict with char pthread_detach(); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3708 | #include <assert.h> |
| 3709 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3710 | /* We use char because int might match the return type of a gcc2 |
| 3711 | builtin and then its argument prototype would still apply. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3712 | char pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3713 | |
| 3714 | int main() { |
| 3715 | |
| 3716 | /* The GNU C library defines this for functions which it implements |
| 3717 | to always fail with ENOSYS. Some functions are actually named |
| 3718 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3719 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3720 | choke me |
| 3721 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3722 | pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3723 | #endif |
| 3724 | |
| 3725 | ; return 0; } |
| 3726 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3727 | if { (eval echo configure:3728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3728 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3729 | eval "ac_cv_func_pthread_detach=yes" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3730 | else |
| 3731 | echo "configure: failed program was:" >&5 |
| 3732 | cat conftest.$ac_ext >&5 |
| 3733 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3734 | eval "ac_cv_func_pthread_detach=no" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3735 | fi |
| 3736 | rm -f conftest* |
| 3737 | fi |
| 3738 | |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3739 | if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3740 | echo "$ac_t""yes" 1>&6 |
| 3741 | cat >> confdefs.h <<\EOF |
| 3742 | #define WITH_THREAD 1 |
| 3743 | EOF |
| 3744 | |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3745 | case $ac_sys_system in |
| 3746 | Darwin*) ;; |
| 3747 | *) cat >> confdefs.h <<\EOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3748 | #define _POSIX_THREADS 1 |
| 3749 | EOF |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3750 | ;; |
| 3751 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3752 | LIBOBJS="$LIBOBJS Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3753 | else |
| 3754 | echo "$ac_t""no" 1>&6 |
| 3755 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3756 | ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3757 | echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3758 | echo "configure:3759: checking for kernel/OS.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3759 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3760 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3761 | else |
| 3762 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3763 | #line 3764 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3764 | #include "confdefs.h" |
| 3765 | #include <kernel/OS.h> |
| 3766 | EOF |
| 3767 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3768 | { (eval echo configure:3769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3769 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3770 | if test -z "$ac_err"; then |
| 3771 | rm -rf conftest* |
| 3772 | eval "ac_cv_header_$ac_safe=yes" |
| 3773 | else |
| 3774 | echo "$ac_err" >&5 |
| 3775 | echo "configure: failed program was:" >&5 |
| 3776 | cat conftest.$ac_ext >&5 |
| 3777 | rm -rf conftest* |
| 3778 | eval "ac_cv_header_$ac_safe=no" |
| 3779 | fi |
| 3780 | rm -f conftest* |
| 3781 | fi |
| 3782 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3783 | echo "$ac_t""yes" 1>&6 |
| 3784 | cat >> confdefs.h <<\EOF |
| 3785 | #define WITH_THREAD 1 |
| 3786 | EOF |
| 3787 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3788 | cat >> confdefs.h <<\EOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3789 | #define BEOS_THREADS 1 |
| 3790 | EOF |
| 3791 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3792 | LIBOBJS="$LIBOBJS Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3793 | else |
| 3794 | echo "$ac_t""no" 1>&6 |
| 3795 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3796 | echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3797 | echo "configure:3798: checking for pthread_create in -lpthreads" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3798 | ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3799 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3800 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3801 | else |
| 3802 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3803 | LIBS="-lpthreads $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3804 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3805 | #line 3806 "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3806 | #include "confdefs.h" |
| 3807 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3808 | /* We use char because int might match the return type of a gcc2 |
| 3809 | builtin and then its argument prototype would still apply. */ |
| 3810 | char pthread_create(); |
| 3811 | |
| 3812 | int main() { |
| 3813 | pthread_create() |
| 3814 | ; return 0; } |
| 3815 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3816 | if { (eval echo configure:3817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3817 | rm -rf conftest* |
| 3818 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3819 | else |
| 3820 | echo "configure: failed program was:" >&5 |
| 3821 | cat conftest.$ac_ext >&5 |
| 3822 | rm -rf conftest* |
| 3823 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3824 | fi |
| 3825 | rm -f conftest* |
| 3826 | LIBS="$ac_save_LIBS" |
| 3827 | |
| 3828 | fi |
| 3829 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3830 | echo "$ac_t""yes" 1>&6 |
| 3831 | cat >> confdefs.h <<\EOF |
| 3832 | #define WITH_THREAD 1 |
| 3833 | EOF |
| 3834 | |
| 3835 | cat >> confdefs.h <<\EOF |
| 3836 | #define _POSIX_THREADS 1 |
| 3837 | EOF |
| 3838 | |
| 3839 | LIBS="$LIBS -lpthreads" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3840 | LIBOBJS="$LIBOBJS Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3841 | else |
| 3842 | echo "$ac_t""no" 1>&6 |
| 3843 | |
| 3844 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3845 | echo "configure:3846: checking for pthread_create in -lc_r" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3846 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3847 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3848 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3849 | else |
| 3850 | ac_save_LIBS="$LIBS" |
| 3851 | LIBS="-lc_r $LIBS" |
| 3852 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3853 | #line 3854 "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3854 | #include "confdefs.h" |
| 3855 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3856 | /* We use char because int might match the return type of a gcc2 |
| 3857 | builtin and then its argument prototype would still apply. */ |
| 3858 | char pthread_create(); |
| 3859 | |
| 3860 | int main() { |
| 3861 | pthread_create() |
| 3862 | ; return 0; } |
| 3863 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3864 | if { (eval echo configure:3865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3865 | rm -rf conftest* |
| 3866 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3867 | else |
| 3868 | echo "configure: failed program was:" >&5 |
| 3869 | cat conftest.$ac_ext >&5 |
| 3870 | rm -rf conftest* |
| 3871 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3872 | fi |
| 3873 | rm -f conftest* |
| 3874 | LIBS="$ac_save_LIBS" |
| 3875 | |
| 3876 | fi |
| 3877 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3878 | echo "$ac_t""yes" 1>&6 |
| 3879 | cat >> confdefs.h <<\EOF |
| 3880 | #define WITH_THREAD 1 |
| 3881 | EOF |
| 3882 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3883 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3884 | #define _POSIX_THREADS 1 |
| 3885 | EOF |
| 3886 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3887 | LIBS="$LIBS -lc_r" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3888 | LIBOBJS="$LIBOBJS Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3889 | else |
| 3890 | echo "$ac_t""no" 1>&6 |
| 3891 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3892 | echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3893 | echo "configure:3894: checking for __d6_pthread_create in -lthread" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3894 | ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3895 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3896 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3897 | else |
| 3898 | ac_save_LIBS="$LIBS" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3899 | LIBS="-lthread $LIBS" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3900 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3901 | #line 3902 "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3902 | #include "confdefs.h" |
| 3903 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3904 | /* We use char because int might match the return type of a gcc2 |
| 3905 | builtin and then its argument prototype would still apply. */ |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3906 | char __d6_pthread_create(); |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3907 | |
| 3908 | int main() { |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3909 | __d6_pthread_create() |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3910 | ; return 0; } |
| 3911 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3912 | if { (eval echo configure:3913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3913 | rm -rf conftest* |
| 3914 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3915 | else |
| 3916 | echo "configure: failed program was:" >&5 |
| 3917 | cat conftest.$ac_ext >&5 |
| 3918 | rm -rf conftest* |
| 3919 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3920 | fi |
| 3921 | rm -f conftest* |
| 3922 | LIBS="$ac_save_LIBS" |
| 3923 | |
| 3924 | fi |
| 3925 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3926 | echo "$ac_t""yes" 1>&6 |
| 3927 | cat >> confdefs.h <<\EOF |
| 3928 | #define WITH_THREAD 1 |
| 3929 | EOF |
| 3930 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3931 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3932 | #define _POSIX_THREADS 1 |
| 3933 | EOF |
| 3934 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3935 | LIBS="$LIBS -lthread" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3936 | LIBOBJS="$LIBOBJS Python/thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3937 | else |
| 3938 | echo "$ac_t""no" 1>&6 |
| 3939 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3940 | echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3941 | echo "configure:3942: checking for __pthread_create_system in -lpthread" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3942 | ac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'` |
| 3943 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3944 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3945 | else |
| 3946 | ac_save_LIBS="$LIBS" |
| 3947 | LIBS="-lpthread $LIBS" |
| 3948 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3949 | #line 3950 "configure" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3950 | #include "confdefs.h" |
| 3951 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3952 | /* We use char because int might match the return type of a gcc2 |
| 3953 | builtin and then its argument prototype would still apply. */ |
| 3954 | char __pthread_create_system(); |
| 3955 | |
| 3956 | int main() { |
| 3957 | __pthread_create_system() |
| 3958 | ; return 0; } |
| 3959 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3960 | if { (eval echo configure:3961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3961 | rm -rf conftest* |
| 3962 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3963 | else |
| 3964 | echo "configure: failed program was:" >&5 |
| 3965 | cat conftest.$ac_ext >&5 |
| 3966 | rm -rf conftest* |
| 3967 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3968 | fi |
| 3969 | rm -f conftest* |
| 3970 | LIBS="$ac_save_LIBS" |
| 3971 | |
| 3972 | fi |
| 3973 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3974 | echo "$ac_t""yes" 1>&6 |
| 3975 | cat >> confdefs.h <<\EOF |
| 3976 | #define WITH_THREAD 1 |
| 3977 | EOF |
| 3978 | |
| 3979 | cat >> confdefs.h <<\EOF |
| 3980 | #define _POSIX_THREADS 1 |
| 3981 | EOF |
| 3982 | |
| 3983 | LIBS="$LIBS -lpthread" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3984 | LIBOBJS="$LIBOBJS Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3985 | else |
| 3986 | echo "$ac_t""no" 1>&6 |
| 3987 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3988 | echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3989 | echo "configure:3990: checking for pthread_create in -lcma" >&5 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3990 | ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3991 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3992 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3993 | else |
| 3994 | ac_save_LIBS="$LIBS" |
| 3995 | LIBS="-lcma $LIBS" |
| 3996 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3997 | #line 3998 "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3998 | #include "confdefs.h" |
| 3999 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4000 | /* We use char because int might match the return type of a gcc2 |
| 4001 | builtin and then its argument prototype would still apply. */ |
| 4002 | char pthread_create(); |
| 4003 | |
| 4004 | int main() { |
| 4005 | pthread_create() |
| 4006 | ; return 0; } |
| 4007 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4008 | if { (eval echo configure:4009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4009 | rm -rf conftest* |
| 4010 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4011 | else |
| 4012 | echo "configure: failed program was:" >&5 |
| 4013 | cat conftest.$ac_ext >&5 |
| 4014 | rm -rf conftest* |
| 4015 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4016 | fi |
| 4017 | rm -f conftest* |
| 4018 | LIBS="$ac_save_LIBS" |
| 4019 | |
| 4020 | fi |
| 4021 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4022 | echo "$ac_t""yes" 1>&6 |
| 4023 | cat >> confdefs.h <<\EOF |
| 4024 | #define WITH_THREAD 1 |
| 4025 | EOF |
| 4026 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 4027 | cat >> confdefs.h <<\EOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4028 | #define _POSIX_THREADS 1 |
| 4029 | EOF |
| 4030 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 4031 | LIBS="$LIBS -lcma" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4032 | LIBOBJS="$LIBOBJS Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4033 | else |
| 4034 | echo "$ac_t""no" 1>&6 |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 4035 | |
| 4036 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 4037 | fi |
| 4038 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 4039 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4040 | fi |
| 4041 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4042 | fi |
| 4043 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 4044 | fi |
| 4045 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 4046 | fi |
| 4047 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4048 | fi |
| 4049 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 4050 | fi |
| 4051 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 4052 | fi |
| 4053 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4054 | fi |
| 4055 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4056 | fi |
| 4057 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 4058 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 4059 | echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4060 | echo "configure:4061: checking for usconfig in -lmpc" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4061 | ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4062 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4063 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4064 | else |
| 4065 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4066 | LIBS="-lmpc $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4067 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4068 | #line 4069 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4069 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4070 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4071 | /* We use char because int might match the return type of a gcc2 |
| 4072 | builtin and then its argument prototype would still apply. */ |
| 4073 | char usconfig(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4074 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4075 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4076 | usconfig() |
| 4077 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4078 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4079 | if { (eval echo configure:4080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4080 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4081 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4082 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4083 | echo "configure: failed program was:" >&5 |
| 4084 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4085 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4086 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4087 | fi |
| 4088 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4089 | LIBS="$ac_save_LIBS" |
| 4090 | |
| 4091 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4092 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4093 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4094 | cat >> confdefs.h <<\EOF |
| 4095 | #define WITH_THREAD 1 |
| 4096 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4097 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 4098 | LIBS="$LIBS -lmpc" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4099 | LIBOBJS="$LIBOBJS Python/thread.o" |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 4100 | USE_THREAD_MODULE="" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4101 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4102 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4103 | fi |
| 4104 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 4105 | echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4106 | echo "configure:4107: checking for thr_create in -lthread" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4107 | ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4108 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4109 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4110 | else |
| 4111 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4112 | LIBS="-lthread $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4113 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4114 | #line 4115 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4115 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4116 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4117 | /* We use char because int might match the return type of a gcc2 |
| 4118 | builtin and then its argument prototype would still apply. */ |
| 4119 | char thr_create(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4120 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4121 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4122 | thr_create() |
| 4123 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4124 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4125 | if { (eval echo configure:4126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4126 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4127 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4128 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4129 | echo "configure: failed program was:" >&5 |
| 4130 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4131 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4132 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4133 | fi |
| 4134 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4135 | LIBS="$ac_save_LIBS" |
| 4136 | |
| 4137 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4138 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4139 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4140 | cat >> confdefs.h <<\EOF |
| 4141 | #define WITH_THREAD 1 |
| 4142 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4143 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 4144 | LIBS="$LIBS -lthread" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 4145 | LIBOBJS="$LIBOBJS Python/thread.o" |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 4146 | USE_THREAD_MODULE="" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4147 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4148 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4149 | fi |
| 4150 | |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 4151 | |
| 4152 | if test "$USE_THREAD_MODULE" != "#" |
| 4153 | then |
| 4154 | # If the above checks didn't disable threads, (at least) OSF1 |
| 4155 | # needs this '-threads' argument during linking. |
| 4156 | case $ac_sys_system in |
| 4157 | OSF1) LDLAST=-threads;; |
| 4158 | esac |
| 4159 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4160 | fi |
| 4161 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4162 | # Check for GC support |
| 4163 | |
| 4164 | USE_GC_MODULE="" |
| 4165 | echo $ac_n "checking for --with-cycle-gc""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4166 | echo "configure:4167: checking for --with-cycle-gc" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4167 | # Check whether --with-cycle-gc or --without-cycle-gc was given. |
| 4168 | if test "${with_cycle_gc+set}" = set; then |
| 4169 | withval="$with_cycle_gc" |
| 4170 | : |
| 4171 | fi |
| 4172 | |
| 4173 | |
| 4174 | if test -z "$with_cycle_gc" |
| 4175 | then with_cycle_gc="yes" |
| 4176 | fi |
| 4177 | if test "$with_cycle_gc" = "no" |
| 4178 | then |
| 4179 | USE_GC_MODULE="#" |
| 4180 | else |
| 4181 | cat >> confdefs.h <<\EOF |
| 4182 | #define WITH_CYCLE_GC 1 |
| 4183 | EOF |
| 4184 | |
| 4185 | fi |
| 4186 | echo "$ac_t""$with_cycle_gc" 1>&6 |
| 4187 | |
Barry Warsaw | a57b89b | 2001-01-15 17:07:21 +0000 | [diff] [blame] | 4188 | # Check for DBM support |
| 4189 | |
| 4190 | USE_DBM_MODULE="" |
| 4191 | echo $ac_n "checking for --with-dbm""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4192 | echo "configure:4193: checking for --with-dbm" >&5 |
Barry Warsaw | a57b89b | 2001-01-15 17:07:21 +0000 | [diff] [blame] | 4193 | # Check whether --with-dbm or --without-dbm was given. |
| 4194 | if test "${with_dbm+set}" = set; then |
| 4195 | withval="$with_dbm" |
| 4196 | : |
| 4197 | fi |
| 4198 | |
| 4199 | |
| 4200 | # enabled by default but one of the dbm.h files must be found |
Sjoerd Mullender | 124698c | 2001-01-17 09:42:21 +0000 | [diff] [blame] | 4201 | if test "$ac_cv_header_ndbm_h" = "yes" -o "$ac_cv_header_db1_ndbm_h" = "yes" -o "$ac_cv_header_gdbm_ndbm_h" = "yes" |
Barry Warsaw | a57b89b | 2001-01-15 17:07:21 +0000 | [diff] [blame] | 4202 | then |
| 4203 | if test "$with_dbm" != "no" |
| 4204 | then with_dbm="yes" |
| 4205 | fi |
| 4206 | else |
| 4207 | # make sure user knows why dbm support wasn't enabled even though |
| 4208 | # s/he requested it |
| 4209 | if test "$with_dbm" = "yes" |
Eric S. Raymond | a888540 | 2001-01-17 08:25:11 +0000 | [diff] [blame] | 4210 | then echo $ac_n "(requested but no ndbm.h was found) $ac_c" |
Barry Warsaw | a57b89b | 2001-01-15 17:07:21 +0000 | [diff] [blame] | 4211 | fi |
| 4212 | with_dbm="no" |
| 4213 | fi |
| 4214 | |
| 4215 | if test "$with_dbm" = "no" |
| 4216 | then |
| 4217 | USE_DBM_MODULE="#" |
| 4218 | else |
| 4219 | cat >> confdefs.h <<\EOF |
| 4220 | #define WITH_LIBNDBM 1 |
| 4221 | EOF |
| 4222 | |
| 4223 | fi |
| 4224 | echo "$ac_t""$with_dbm" 1>&6 |
| 4225 | |
| 4226 | if test "$with_dbm" = "yes" |
| 4227 | then |
| 4228 | # check for libndbm |
| 4229 | |
| 4230 | echo $ac_n "checking for dbmopen""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4231 | echo "configure:4232: checking for dbmopen" >&5 |
Barry Warsaw | a57b89b | 2001-01-15 17:07:21 +0000 | [diff] [blame] | 4232 | if eval "test \"`echo '$''{'ac_cv_func_dbmopen'+set}'`\" = set"; then |
| 4233 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4234 | else |
| 4235 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4236 | #line 4237 "configure" |
Barry Warsaw | a57b89b | 2001-01-15 17:07:21 +0000 | [diff] [blame] | 4237 | #include "confdefs.h" |
| 4238 | /* System header to define __stub macros and hopefully few prototypes, |
| 4239 | which can conflict with char dbmopen(); below. */ |
| 4240 | #include <assert.h> |
| 4241 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4242 | /* We use char because int might match the return type of a gcc2 |
| 4243 | builtin and then its argument prototype would still apply. */ |
| 4244 | char dbmopen(); |
| 4245 | |
| 4246 | int main() { |
| 4247 | |
| 4248 | /* The GNU C library defines this for functions which it implements |
| 4249 | to always fail with ENOSYS. Some functions are actually named |
| 4250 | something starting with __ and the normal name is an alias. */ |
| 4251 | #if defined (__stub_dbmopen) || defined (__stub___dbmopen) |
| 4252 | choke me |
| 4253 | #else |
| 4254 | dbmopen(); |
| 4255 | #endif |
| 4256 | |
| 4257 | ; return 0; } |
| 4258 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4259 | if { (eval echo configure:4260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Barry Warsaw | a57b89b | 2001-01-15 17:07:21 +0000 | [diff] [blame] | 4260 | rm -rf conftest* |
| 4261 | eval "ac_cv_func_dbmopen=yes" |
| 4262 | else |
| 4263 | echo "configure: failed program was:" >&5 |
| 4264 | cat conftest.$ac_ext >&5 |
| 4265 | rm -rf conftest* |
| 4266 | eval "ac_cv_func_dbmopen=no" |
| 4267 | fi |
| 4268 | rm -f conftest* |
| 4269 | fi |
| 4270 | |
| 4271 | if eval "test \"`echo '$ac_cv_func_'dbmopen`\" = yes"; then |
| 4272 | echo "$ac_t""yes" 1>&6 |
| 4273 | HAVE_LIBNDBM= |
| 4274 | else |
| 4275 | echo "$ac_t""no" 1>&6 |
| 4276 | HAVE_LIBNDBM=-lndbm |
| 4277 | fi |
| 4278 | |
| 4279 | fi |
| 4280 | |
Fred Drake | a50d6ec | 2000-08-31 16:13:20 +0000 | [diff] [blame] | 4281 | # Check for LIBDB support |
| 4282 | # either --with-libdb or, in its absence, the presence of db.h |
| 4283 | |
| 4284 | USE_BSDDB_MODULE="" |
| 4285 | echo $ac_n "checking for --with-libdb""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4286 | echo "configure:4287: checking for --with-libdb" >&5 |
Fred Drake | a50d6ec | 2000-08-31 16:13:20 +0000 | [diff] [blame] | 4287 | # Check whether --with-libdb or --without-libdb was given. |
| 4288 | if test "${with_libdb+set}" = set; then |
| 4289 | withval="$with_libdb" |
| 4290 | : |
| 4291 | fi |
| 4292 | |
| 4293 | |
Skip Montanaro | b89f41e | 2000-09-04 04:06:05 +0000 | [diff] [blame] | 4294 | # enabled by default, but db.h must be found |
| 4295 | if test "$ac_cv_header_db_h" = "yes" |
| 4296 | then |
| 4297 | if test "$with_libdb" != "no" |
| 4298 | then with_libdb="yes" |
| 4299 | fi |
| 4300 | else |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 4301 | # make sure user knows why bsddb support wasn't enabled even |
Skip Montanaro | b89f41e | 2000-09-04 04:06:05 +0000 | [diff] [blame] | 4302 | # though s/he requested it |
| 4303 | if test "$with_libdb" = "yes" |
| 4304 | then echo $ac_n "(requested, but db.h was not found) $ac_c" |
| 4305 | fi |
| 4306 | with_libdb="no" |
Fred Drake | a50d6ec | 2000-08-31 16:13:20 +0000 | [diff] [blame] | 4307 | fi |
Skip Montanaro | b89f41e | 2000-09-04 04:06:05 +0000 | [diff] [blame] | 4308 | |
Fred Drake | a50d6ec | 2000-08-31 16:13:20 +0000 | [diff] [blame] | 4309 | if test "$with_libdb" = "no" |
| 4310 | then |
| 4311 | USE_BSDDB_MODULE="#" |
| 4312 | else |
| 4313 | cat >> confdefs.h <<\EOF |
| 4314 | #define WITH_LIBDB 1 |
| 4315 | EOF |
| 4316 | |
| 4317 | fi |
| 4318 | echo "$ac_t""$with_libdb" 1>&6 |
| 4319 | |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 4320 | if test "$with_libdb" = "yes" |
| 4321 | then |
| 4322 | # check for libdb; BSD systems have the DB routines in libc --tg |
| 4323 | |
Martin v. Löwis | 05a65d6 | 2000-09-24 19:40:25 +0000 | [diff] [blame] | 4324 | # If dbopen is not in libc, then checking whether it is in libdb |
| 4325 | # is difficult: db_185.h may #define it as __db185_open |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 4326 | # Instead, we just trust it is in libdb; linking will fail if it |
| 4327 | # is not. |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 4328 | echo $ac_n "checking for dbopen""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4329 | echo "configure:4330: checking for dbopen" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4330 | if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 4331 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4332 | else |
| 4333 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4334 | #line 4335 "configure" |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 4335 | #include "confdefs.h" |
| 4336 | /* System header to define __stub macros and hopefully few prototypes, |
| 4337 | which can conflict with char dbopen(); below. */ |
| 4338 | #include <assert.h> |
| 4339 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4340 | /* We use char because int might match the return type of a gcc2 |
| 4341 | builtin and then its argument prototype would still apply. */ |
| 4342 | char dbopen(); |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 4343 | |
| 4344 | int main() { |
| 4345 | |
| 4346 | /* The GNU C library defines this for functions which it implements |
| 4347 | to always fail with ENOSYS. Some functions are actually named |
| 4348 | something starting with __ and the normal name is an alias. */ |
| 4349 | #if defined (__stub_dbopen) || defined (__stub___dbopen) |
| 4350 | choke me |
| 4351 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4352 | dbopen(); |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 4353 | #endif |
| 4354 | |
| 4355 | ; return 0; } |
| 4356 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4357 | if { (eval echo configure:4358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 4358 | rm -rf conftest* |
| 4359 | eval "ac_cv_func_dbopen=yes" |
| 4360 | else |
| 4361 | echo "configure: failed program was:" >&5 |
| 4362 | cat conftest.$ac_ext >&5 |
| 4363 | rm -rf conftest* |
| 4364 | eval "ac_cv_func_dbopen=no" |
| 4365 | fi |
| 4366 | rm -f conftest* |
| 4367 | fi |
| 4368 | |
| 4369 | if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then |
| 4370 | echo "$ac_t""yes" 1>&6 |
| 4371 | HAVE_LIBDB= |
| 4372 | else |
| 4373 | echo "$ac_t""no" 1>&6 |
Martin v. Löwis | 05a65d6 | 2000-09-24 19:40:25 +0000 | [diff] [blame] | 4374 | HAVE_LIBDB=-ldb |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 4375 | fi |
| 4376 | |
| 4377 | fi |
| 4378 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4379 | # Check for --with-wctype-functions |
| 4380 | echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4381 | echo "configure:4382: checking for --with-wctype-functions" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4382 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 4383 | if test "${with_wctype_functions+set}" = set; then |
| 4384 | withval="$with_wctype_functions" |
| 4385 | |
| 4386 | if test "$withval" != no |
| 4387 | then cat >> confdefs.h <<\EOF |
| 4388 | #define WANT_WCTYPE_FUNCTIONS 1 |
| 4389 | EOF |
| 4390 | echo "$ac_t""yes" 1>&6 |
| 4391 | else echo "$ac_t""no" 1>&6 |
| 4392 | fi |
| 4393 | else |
| 4394 | echo "$ac_t""no" 1>&6 |
| 4395 | fi |
| 4396 | |
| 4397 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4398 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4399 | |
| 4400 | DLINCLDIR=/ |
| 4401 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4402 | echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4403 | echo "configure:4404: checking for --with-sgi-dl" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4404 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4405 | if test "${with_sgi_dl+set}" = set; then |
| 4406 | withval="$with_sgi_dl" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4407 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4408 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4409 | cat >> confdefs.h <<\EOF |
| 4410 | #define WITH_SGI_DL 1 |
| 4411 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4412 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4413 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4414 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 4415 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4416 | then LDFLAGS="$LDFLAGS -L$dldir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4417 | else { echo "configure: error: proper usage is --with-sgi-dl=DIRECTORY" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4418 | fi |
| 4419 | DLINCLDIR=${dldir} |
| 4420 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4421 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4422 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4423 | fi |
| 4424 | |
| 4425 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4426 | echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4427 | echo "configure:4428: checking for --with-dl-dld" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4428 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4429 | if test "${with_dl_dld+set}" = set; then |
| 4430 | withval="$with_dl_dld" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4431 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4432 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4433 | cat >> confdefs.h <<\EOF |
| 4434 | #define WITH_DL_DLD 1 |
| 4435 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4436 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4437 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4438 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 4439 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 4440 | if test ! -z "$dldir" -a -d "$dldir" -a ! -z "$dlddir" -a -d "$dlddir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4441 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4442 | else { echo "configure: error: proper usage is --with-dl-dld=DL_DIRECTORY" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4443 | fi |
| 4444 | DLINCLDIR=${dldir} |
| 4445 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4446 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4447 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4448 | fi |
| 4449 | |
| 4450 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4451 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 4452 | # platforms, such as AIX, have dlopen(), but don't want to use it. |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4453 | for ac_func in dlopen |
| 4454 | do |
| 4455 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4456 | echo "configure:4457: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4457 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4458 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4459 | else |
| 4460 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4461 | #line 4462 "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4462 | #include "confdefs.h" |
| 4463 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4464 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4465 | #include <assert.h> |
| 4466 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4467 | /* We use char because int might match the return type of a gcc2 |
| 4468 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4469 | char $ac_func(); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4470 | |
| 4471 | int main() { |
| 4472 | |
| 4473 | /* The GNU C library defines this for functions which it implements |
| 4474 | to always fail with ENOSYS. Some functions are actually named |
| 4475 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4476 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4477 | choke me |
| 4478 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4479 | $ac_func(); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4480 | #endif |
| 4481 | |
| 4482 | ; return 0; } |
| 4483 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4484 | if { (eval echo configure:4485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4485 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4486 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4487 | else |
| 4488 | echo "configure: failed program was:" >&5 |
| 4489 | cat conftest.$ac_ext >&5 |
| 4490 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4491 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4492 | fi |
| 4493 | rm -f conftest* |
| 4494 | fi |
| 4495 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4496 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4497 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4498 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4499 | cat >> confdefs.h <<EOF |
| 4500 | #define $ac_tr_func 1 |
| 4501 | EOF |
| 4502 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4503 | else |
| 4504 | echo "$ac_t""no" 1>&6 |
| 4505 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4506 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4507 | |
| 4508 | |
| 4509 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 4510 | # loading of modules. |
| 4511 | |
| 4512 | echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4513 | echo "configure:4514: checking DYNLOADFILE" >&5 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4514 | if test -z "$DYNLOADFILE" |
| 4515 | then |
| 4516 | case $ac_sys_system/$ac_sys_release in |
| 4517 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 4518 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 4519 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 4520 | Darwin/*|next/*) DYNLOADFILE="dynload_next.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4521 | *) |
| 4522 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 4523 | # out any dynamic loading |
| 4524 | if test "$ac_cv_func_dlopen" = yes |
| 4525 | then DYNLOADFILE="dynload_shlib.o" |
| 4526 | else DYNLOADFILE="dynload_stub.o" |
| 4527 | fi |
| 4528 | ;; |
| 4529 | esac |
| 4530 | fi |
| 4531 | echo "$ac_t""$DYNLOADFILE" 1>&6 |
| 4532 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 4533 | then |
| 4534 | cat >> confdefs.h <<\EOF |
| 4535 | #define HAVE_DYNAMIC_LOADING 1 |
| 4536 | EOF |
| 4537 | |
| 4538 | fi |
| 4539 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4540 | # checks for library functions |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4541 | for ac_func in alarm chown clock confstr ctermid ctermid_r execv \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4542 | flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Andrew M. Kuchling | a9586c7 | 2001-01-08 17:58:56 +0000 | [diff] [blame] | 4543 | getgroups getlogin getpeername getpid getpwent getwd \ |
Andrew M. Kuchling | 22c6934 | 2000-06-18 15:07:40 +0000 | [diff] [blame] | 4544 | kill link lstat mkfifo mktime mremap \ |
Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame] | 4545 | nice pathconf pause plock poll pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4546 | putenv readlink \ |
Andrew M. Kuchling | 8d2f2b2 | 2000-07-13 01:26:58 +0000 | [diff] [blame] | 4547 | select setegid seteuid setgid \ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4548 | setlocale setregid setreuid setsid setpgid setuid setvbuf \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4549 | sigaction siginterrupt sigrelse strftime strptime symlink sysconf \ |
Fred Drake | 89143df | 1999-12-09 22:03:25 +0000 | [diff] [blame] | 4550 | tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Thomas Wouters | 70c21a1 | 2000-07-14 14:28:33 +0000 | [diff] [blame] | 4551 | truncate uname waitpid _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4552 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4553 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4554 | echo "configure:4555: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4555 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4556 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4557 | else |
| 4558 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4559 | #line 4560 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4560 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4561 | /* System header to define __stub macros and hopefully few prototypes, |
| 4562 | which can conflict with char $ac_func(); below. */ |
| 4563 | #include <assert.h> |
| 4564 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4565 | /* We use char because int might match the return type of a gcc2 |
| 4566 | builtin and then its argument prototype would still apply. */ |
| 4567 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4568 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4569 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4570 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4571 | /* The GNU C library defines this for functions which it implements |
| 4572 | to always fail with ENOSYS. Some functions are actually named |
| 4573 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4574 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4575 | choke me |
| 4576 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4577 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4578 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4579 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4580 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4581 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4582 | if { (eval echo configure:4583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4583 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4584 | eval "ac_cv_func_$ac_func=yes" |
| 4585 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4586 | echo "configure: failed program was:" >&5 |
| 4587 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4588 | rm -rf conftest* |
| 4589 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4590 | fi |
| 4591 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4592 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4593 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4594 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4595 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4596 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4597 | cat >> confdefs.h <<EOF |
| 4598 | #define $ac_tr_func 1 |
| 4599 | EOF |
| 4600 | |
| 4601 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4602 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4603 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4604 | done |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4605 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4606 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4607 | # check for openpty and forkpty |
| 4608 | |
| 4609 | for ac_func in openpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4610 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4611 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4612 | echo "configure:4613: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4613 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4614 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4615 | else |
| 4616 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4617 | #line 4618 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4618 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4619 | /* System header to define __stub macros and hopefully few prototypes, |
| 4620 | which can conflict with char $ac_func(); below. */ |
| 4621 | #include <assert.h> |
| 4622 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4623 | /* We use char because int might match the return type of a gcc2 |
| 4624 | builtin and then its argument prototype would still apply. */ |
| 4625 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4626 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4627 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4628 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4629 | /* The GNU C library defines this for functions which it implements |
| 4630 | to always fail with ENOSYS. Some functions are actually named |
| 4631 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4632 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4633 | choke me |
| 4634 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4635 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4636 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4637 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4638 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4639 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4640 | if { (eval echo configure:4641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4641 | rm -rf conftest* |
| 4642 | eval "ac_cv_func_$ac_func=yes" |
| 4643 | else |
| 4644 | echo "configure: failed program was:" >&5 |
| 4645 | cat conftest.$ac_ext >&5 |
| 4646 | rm -rf conftest* |
| 4647 | eval "ac_cv_func_$ac_func=no" |
| 4648 | fi |
| 4649 | rm -f conftest* |
| 4650 | fi |
| 4651 | |
| 4652 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4653 | echo "$ac_t""yes" 1>&6 |
| 4654 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4655 | cat >> confdefs.h <<EOF |
| 4656 | #define $ac_tr_func 1 |
| 4657 | EOF |
| 4658 | |
| 4659 | else |
| 4660 | echo "$ac_t""no" 1>&6 |
| 4661 | echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4662 | echo "configure:4663: checking for openpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4663 | ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4664 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4665 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4666 | else |
| 4667 | ac_save_LIBS="$LIBS" |
| 4668 | LIBS="-lutil $LIBS" |
| 4669 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4670 | #line 4671 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4671 | #include "confdefs.h" |
| 4672 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4673 | /* We use char because int might match the return type of a gcc2 |
| 4674 | builtin and then its argument prototype would still apply. */ |
| 4675 | char openpty(); |
| 4676 | |
| 4677 | int main() { |
| 4678 | openpty() |
| 4679 | ; return 0; } |
| 4680 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4681 | if { (eval echo configure:4682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4682 | rm -rf conftest* |
| 4683 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4684 | else |
| 4685 | echo "configure: failed program was:" >&5 |
| 4686 | cat conftest.$ac_ext >&5 |
| 4687 | rm -rf conftest* |
| 4688 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4689 | fi |
| 4690 | rm -f conftest* |
| 4691 | LIBS="$ac_save_LIBS" |
| 4692 | |
| 4693 | fi |
| 4694 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4695 | echo "$ac_t""yes" 1>&6 |
| 4696 | cat >> confdefs.h <<\EOF |
| 4697 | #define HAVE_OPENPTY 1 |
| 4698 | EOF |
| 4699 | LIBS="$LIBS -lutil" |
| 4700 | else |
| 4701 | echo "$ac_t""no" 1>&6 |
| 4702 | fi |
| 4703 | |
| 4704 | fi |
| 4705 | done |
| 4706 | |
| 4707 | for ac_func in forkpty |
| 4708 | do |
| 4709 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4710 | echo "configure:4711: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4711 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4712 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4713 | else |
| 4714 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4715 | #line 4716 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4716 | #include "confdefs.h" |
| 4717 | /* System header to define __stub macros and hopefully few prototypes, |
| 4718 | which can conflict with char $ac_func(); below. */ |
| 4719 | #include <assert.h> |
| 4720 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4721 | /* We use char because int might match the return type of a gcc2 |
| 4722 | builtin and then its argument prototype would still apply. */ |
| 4723 | char $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4724 | |
| 4725 | int main() { |
| 4726 | |
| 4727 | /* The GNU C library defines this for functions which it implements |
| 4728 | to always fail with ENOSYS. Some functions are actually named |
| 4729 | something starting with __ and the normal name is an alias. */ |
| 4730 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4731 | choke me |
| 4732 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4733 | $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4734 | #endif |
| 4735 | |
| 4736 | ; return 0; } |
| 4737 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4738 | if { (eval echo configure:4739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4739 | rm -rf conftest* |
| 4740 | eval "ac_cv_func_$ac_func=yes" |
| 4741 | else |
| 4742 | echo "configure: failed program was:" >&5 |
| 4743 | cat conftest.$ac_ext >&5 |
| 4744 | rm -rf conftest* |
| 4745 | eval "ac_cv_func_$ac_func=no" |
| 4746 | fi |
| 4747 | rm -f conftest* |
| 4748 | fi |
| 4749 | |
| 4750 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4751 | echo "$ac_t""yes" 1>&6 |
| 4752 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4753 | cat >> confdefs.h <<EOF |
| 4754 | #define $ac_tr_func 1 |
| 4755 | EOF |
| 4756 | |
| 4757 | else |
| 4758 | echo "$ac_t""no" 1>&6 |
| 4759 | echo $ac_n "checking for forkpty in -lutil""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4760 | echo "configure:4761: checking for forkpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4761 | ac_lib_var=`echo util'_'forkpty | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4762 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4763 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4764 | else |
| 4765 | ac_save_LIBS="$LIBS" |
| 4766 | LIBS="-lutil $LIBS" |
| 4767 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4768 | #line 4769 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4769 | #include "confdefs.h" |
| 4770 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4771 | /* We use char because int might match the return type of a gcc2 |
| 4772 | builtin and then its argument prototype would still apply. */ |
| 4773 | char forkpty(); |
| 4774 | |
| 4775 | int main() { |
| 4776 | forkpty() |
| 4777 | ; return 0; } |
| 4778 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4779 | if { (eval echo configure:4780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4780 | rm -rf conftest* |
| 4781 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4782 | else |
| 4783 | echo "configure: failed program was:" >&5 |
| 4784 | cat conftest.$ac_ext >&5 |
| 4785 | rm -rf conftest* |
| 4786 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4787 | fi |
| 4788 | rm -f conftest* |
| 4789 | LIBS="$ac_save_LIBS" |
| 4790 | |
| 4791 | fi |
| 4792 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4793 | echo "$ac_t""yes" 1>&6 |
| 4794 | cat >> confdefs.h <<\EOF |
| 4795 | #define HAVE_FORKPTY 1 |
| 4796 | EOF |
| 4797 | LIBS="$LIBS -lutil" |
| 4798 | else |
| 4799 | echo "$ac_t""no" 1>&6 |
| 4800 | fi |
| 4801 | |
| 4802 | fi |
| 4803 | done |
| 4804 | |
| 4805 | |
| 4806 | # check for long file support functions |
| 4807 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 4808 | do |
| 4809 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4810 | echo "configure:4811: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4811 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4812 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4813 | else |
| 4814 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4815 | #line 4816 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4816 | #include "confdefs.h" |
| 4817 | /* System header to define __stub macros and hopefully few prototypes, |
| 4818 | which can conflict with char $ac_func(); below. */ |
| 4819 | #include <assert.h> |
| 4820 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4821 | /* We use char because int might match the return type of a gcc2 |
| 4822 | builtin and then its argument prototype would still apply. */ |
| 4823 | char $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4824 | |
| 4825 | int main() { |
| 4826 | |
| 4827 | /* The GNU C library defines this for functions which it implements |
| 4828 | to always fail with ENOSYS. Some functions are actually named |
| 4829 | something starting with __ and the normal name is an alias. */ |
| 4830 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4831 | choke me |
| 4832 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4833 | $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4834 | #endif |
| 4835 | |
| 4836 | ; return 0; } |
| 4837 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4838 | if { (eval echo configure:4839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4839 | rm -rf conftest* |
| 4840 | eval "ac_cv_func_$ac_func=yes" |
| 4841 | else |
| 4842 | echo "configure: failed program was:" >&5 |
| 4843 | cat conftest.$ac_ext >&5 |
| 4844 | rm -rf conftest* |
| 4845 | eval "ac_cv_func_$ac_func=no" |
| 4846 | fi |
| 4847 | rm -f conftest* |
| 4848 | fi |
| 4849 | |
| 4850 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4851 | echo "$ac_t""yes" 1>&6 |
| 4852 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4853 | cat >> confdefs.h <<EOF |
| 4854 | #define $ac_tr_func 1 |
| 4855 | EOF |
| 4856 | |
| 4857 | else |
| 4858 | echo "$ac_t""no" 1>&6 |
| 4859 | fi |
| 4860 | done |
| 4861 | |
| 4862 | |
| 4863 | for ac_func in dup2 getcwd strdup strerror memmove |
| 4864 | do |
| 4865 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4866 | echo "configure:4867: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4867 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4868 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4869 | else |
| 4870 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4871 | #line 4872 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4872 | #include "confdefs.h" |
| 4873 | /* System header to define __stub macros and hopefully few prototypes, |
| 4874 | which can conflict with char $ac_func(); below. */ |
| 4875 | #include <assert.h> |
| 4876 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4877 | /* We use char because int might match the return type of a gcc2 |
| 4878 | builtin and then its argument prototype would still apply. */ |
| 4879 | char $ac_func(); |
| 4880 | |
| 4881 | int main() { |
| 4882 | |
| 4883 | /* The GNU C library defines this for functions which it implements |
| 4884 | to always fail with ENOSYS. Some functions are actually named |
| 4885 | something starting with __ and the normal name is an alias. */ |
| 4886 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4887 | choke me |
| 4888 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4889 | $ac_func(); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4890 | #endif |
| 4891 | |
| 4892 | ; return 0; } |
| 4893 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4894 | if { (eval echo configure:4895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4895 | rm -rf conftest* |
| 4896 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4897 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4898 | echo "configure: failed program was:" >&5 |
| 4899 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4900 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4901 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4902 | fi |
| 4903 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4904 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4905 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4906 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4907 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4908 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4909 | cat >> confdefs.h <<EOF |
| 4910 | #define $ac_tr_func 1 |
| 4911 | EOF |
| 4912 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4913 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4914 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4915 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4916 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4917 | done |
| 4918 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4919 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4920 | for ac_func in getpgrp |
| 4921 | do |
| 4922 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4923 | echo "configure:4924: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4924 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4925 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4926 | else |
| 4927 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4928 | #line 4929 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4929 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4930 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4931 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4932 | #include <assert.h> |
| 4933 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4934 | /* We use char because int might match the return type of a gcc2 |
| 4935 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4936 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4937 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4938 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4939 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4940 | /* The GNU C library defines this for functions which it implements |
| 4941 | to always fail with ENOSYS. Some functions are actually named |
| 4942 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4943 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4944 | choke me |
| 4945 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4946 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4947 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4948 | |
| 4949 | ; return 0; } |
| 4950 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4951 | if { (eval echo configure:4952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4952 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4953 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4954 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4955 | echo "configure: failed program was:" >&5 |
| 4956 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4957 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4958 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4959 | fi |
| 4960 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4961 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4962 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4963 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4964 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4965 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4966 | cat >> confdefs.h <<EOF |
| 4967 | #define $ac_tr_func 1 |
| 4968 | EOF |
| 4969 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4970 | #line 4971 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4971 | #include "confdefs.h" |
| 4972 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4973 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4974 | getpgrp(0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4975 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4976 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4977 | if { (eval echo configure:4978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4978 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4979 | cat >> confdefs.h <<\EOF |
| 4980 | #define GETPGRP_HAVE_ARG 1 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4981 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4982 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4983 | else |
| 4984 | echo "configure: failed program was:" >&5 |
| 4985 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4986 | fi |
| 4987 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4988 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4989 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4990 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4991 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4992 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4993 | for ac_func in setpgrp |
| 4994 | do |
| 4995 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 4996 | echo "configure:4997: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4997 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4998 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4999 | else |
| 5000 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5001 | #line 5002 "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5002 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5003 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5004 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5005 | #include <assert.h> |
| 5006 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5007 | /* We use char because int might match the return type of a gcc2 |
| 5008 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5009 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5010 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5011 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5012 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5013 | /* The GNU C library defines this for functions which it implements |
| 5014 | to always fail with ENOSYS. Some functions are actually named |
| 5015 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5016 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5017 | choke me |
| 5018 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5019 | $ac_func(); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5020 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5021 | |
| 5022 | ; return 0; } |
| 5023 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5024 | if { (eval echo configure:5025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5025 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5026 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5027 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5028 | echo "configure: failed program was:" >&5 |
| 5029 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5030 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5031 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5032 | fi |
| 5033 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5034 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5035 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5036 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5037 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5038 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5039 | cat >> confdefs.h <<EOF |
| 5040 | #define $ac_tr_func 1 |
| 5041 | EOF |
| 5042 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5043 | #line 5044 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5044 | #include "confdefs.h" |
| 5045 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5046 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5047 | setpgrp(0,0); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5048 | ; return 0; } |
| 5049 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5050 | if { (eval echo configure:5051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5051 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5052 | cat >> confdefs.h <<\EOF |
| 5053 | #define SETPGRP_HAVE_ARG 1 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5054 | EOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5055 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5056 | else |
| 5057 | echo "configure: failed program was:" >&5 |
| 5058 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5059 | fi |
| 5060 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5061 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5062 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5063 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5064 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5065 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5066 | for ac_func in gettimeofday |
| 5067 | do |
| 5068 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5069 | echo "configure:5070: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5070 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5071 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5072 | else |
| 5073 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5074 | #line 5075 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5075 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5076 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5077 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5078 | #include <assert.h> |
| 5079 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5080 | /* We use char because int might match the return type of a gcc2 |
| 5081 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5082 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5083 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5084 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5085 | |
| 5086 | /* The GNU C library defines this for functions which it implements |
| 5087 | to always fail with ENOSYS. Some functions are actually named |
| 5088 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5089 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5090 | choke me |
| 5091 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5092 | $ac_func(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5093 | #endif |
| 5094 | |
| 5095 | ; return 0; } |
| 5096 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5097 | if { (eval echo configure:5098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5098 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5099 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5100 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5101 | echo "configure: failed program was:" >&5 |
| 5102 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5103 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5104 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5105 | fi |
| 5106 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5107 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5108 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5109 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5110 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5111 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5112 | cat >> confdefs.h <<EOF |
| 5113 | #define $ac_tr_func 1 |
| 5114 | EOF |
| 5115 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5116 | #line 5117 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5117 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5118 | #include <sys/time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5119 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5120 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
| 5121 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5122 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5123 | if { (eval echo configure:5124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5124 | : |
| 5125 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5126 | echo "configure: failed program was:" >&5 |
| 5127 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5128 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5129 | cat >> confdefs.h <<\EOF |
| 5130 | #define GETTIMEOFDAY_NO_TZ 1 |
| 5131 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5132 | |
| 5133 | fi |
| 5134 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5135 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5136 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5137 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5138 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5139 | |
| 5140 | |
| 5141 | # checks for structures |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5142 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5143 | echo "configure:5144: checking whether time.h and sys/time.h may both be included" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5144 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5145 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5146 | else |
| 5147 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5148 | #line 5149 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5149 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5150 | #include <sys/types.h> |
| 5151 | #include <sys/time.h> |
| 5152 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5153 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5154 | struct tm *tp; |
| 5155 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5156 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5157 | if { (eval echo configure:5158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5158 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5159 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5160 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5161 | echo "configure: failed program was:" >&5 |
| 5162 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5163 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5164 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5165 | fi |
| 5166 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5167 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5168 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5169 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5170 | if test $ac_cv_header_time = yes; then |
| 5171 | cat >> confdefs.h <<\EOF |
| 5172 | #define TIME_WITH_SYS_TIME 1 |
| 5173 | EOF |
| 5174 | |
| 5175 | fi |
| 5176 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5177 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5178 | echo "configure:5179: checking whether struct tm is in sys/time.h or time.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5179 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5180 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5181 | else |
| 5182 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5183 | #line 5184 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5184 | #include "confdefs.h" |
| 5185 | #include <sys/types.h> |
| 5186 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5187 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5188 | struct tm *tp; tp->tm_sec; |
| 5189 | ; return 0; } |
| 5190 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5191 | if { (eval echo configure:5192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5192 | rm -rf conftest* |
| 5193 | ac_cv_struct_tm=time.h |
| 5194 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5195 | echo "configure: failed program was:" >&5 |
| 5196 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5197 | rm -rf conftest* |
| 5198 | ac_cv_struct_tm=sys/time.h |
| 5199 | fi |
| 5200 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5201 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5202 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5203 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5204 | if test $ac_cv_struct_tm = sys/time.h; then |
| 5205 | cat >> confdefs.h <<\EOF |
| 5206 | #define TM_IN_SYS_TIME 1 |
| 5207 | EOF |
| 5208 | |
| 5209 | fi |
| 5210 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5211 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5212 | echo "configure:5213: checking for tm_zone in struct tm" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5213 | if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5214 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5215 | else |
| 5216 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5217 | #line 5218 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5218 | #include "confdefs.h" |
| 5219 | #include <sys/types.h> |
| 5220 | #include <$ac_cv_struct_tm> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5221 | int main() { |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5222 | struct tm tm; tm.tm_zone; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5223 | ; return 0; } |
| 5224 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5225 | if { (eval echo configure:5226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5226 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5227 | ac_cv_struct_tm_zone=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5228 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5229 | echo "configure: failed program was:" >&5 |
| 5230 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5231 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5232 | ac_cv_struct_tm_zone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5233 | fi |
| 5234 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5235 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5236 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5237 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 |
| 5238 | if test "$ac_cv_struct_tm_zone" = yes; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5239 | cat >> confdefs.h <<\EOF |
| 5240 | #define HAVE_TM_ZONE 1 |
| 5241 | EOF |
| 5242 | |
| 5243 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5244 | echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5245 | echo "configure:5246: checking for tzname" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5246 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5247 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5248 | else |
| 5249 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5250 | #line 5251 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5251 | #include "confdefs.h" |
| 5252 | #include <time.h> |
| 5253 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5254 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5255 | #endif |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5256 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5257 | atoi(*tzname); |
| 5258 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5259 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5260 | if { (eval echo configure:5261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5261 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5262 | ac_cv_var_tzname=yes |
| 5263 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5264 | echo "configure: failed program was:" >&5 |
| 5265 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5266 | rm -rf conftest* |
| 5267 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5268 | fi |
| 5269 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5270 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5271 | |
| 5272 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5273 | if test $ac_cv_var_tzname = yes; then |
| 5274 | cat >> confdefs.h <<\EOF |
| 5275 | #define HAVE_TZNAME 1 |
| 5276 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5277 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5278 | fi |
| 5279 | fi |
| 5280 | |
| 5281 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5282 | echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5283 | echo "configure:5284: checking for time.h that defines altzone" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5284 | if eval "test \"`echo '$''{'ac_cv_header_time_altzone'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5285 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5286 | else |
| 5287 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5288 | #line 5289 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5289 | #include "confdefs.h" |
| 5290 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5291 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5292 | return altzone; |
| 5293 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5294 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5295 | if { (eval echo configure:5296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5296 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5297 | ac_cv_header_time_altzone=yes |
| 5298 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5299 | echo "configure: failed program was:" >&5 |
| 5300 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5301 | rm -rf conftest* |
| 5302 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5303 | fi |
| 5304 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5305 | fi |
| 5306 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5307 | echo "$ac_t""$ac_cv_header_time_altzone" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5308 | if test $ac_cv_header_time_altzone = yes; then |
| 5309 | cat >> confdefs.h <<\EOF |
| 5310 | #define HAVE_ALTZONE 1 |
| 5311 | EOF |
| 5312 | |
| 5313 | fi |
| 5314 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5315 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5316 | echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5317 | echo "configure:5318: checking whether sys/select.h and sys/time.h may both be included" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5318 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5319 | #line 5320 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5320 | #include "confdefs.h" |
| 5321 | |
| 5322 | #include <sys/types.h> |
| 5323 | #include <sys/select.h> |
| 5324 | #include <sys/time.h> |
| 5325 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5326 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5327 | ; |
| 5328 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5329 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5330 | if { (eval echo configure:5331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5331 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5332 | cat >> confdefs.h <<\EOF |
| 5333 | #define SYS_SELECT_WITH_SYS_TIME 1 |
| 5334 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5335 | was_it_defined=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5336 | else |
| 5337 | echo "configure: failed program was:" >&5 |
| 5338 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5339 | fi |
| 5340 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5341 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5342 | |
| 5343 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5344 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5345 | echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5346 | echo "configure:5347: checking whether char is unsigned" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5347 | if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5348 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5349 | else |
| 5350 | if test "$GCC" = yes; then |
| 5351 | # GCC predefines this symbol on systems where it applies. |
| 5352 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5353 | #line 5354 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5354 | #include "confdefs.h" |
| 5355 | #ifdef __CHAR_UNSIGNED__ |
| 5356 | yes |
| 5357 | #endif |
| 5358 | |
| 5359 | EOF |
| 5360 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5361 | egrep "yes" >/dev/null 2>&1; then |
| 5362 | rm -rf conftest* |
| 5363 | ac_cv_c_char_unsigned=yes |
| 5364 | else |
| 5365 | rm -rf conftest* |
| 5366 | ac_cv_c_char_unsigned=no |
| 5367 | fi |
| 5368 | rm -f conftest* |
| 5369 | |
| 5370 | else |
| 5371 | if test "$cross_compiling" = yes; then |
| 5372 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5373 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5374 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5375 | #line 5376 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5376 | #include "confdefs.h" |
| 5377 | /* volatile prevents gcc2 from optimizing the test away on sparcs. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5378 | #if !defined(__STDC__) || __STDC__ != 1 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5379 | #define volatile |
| 5380 | #endif |
| 5381 | main() { |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5382 | volatile char c = 255; exit(c < 0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5383 | } |
| 5384 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5385 | if { (eval echo configure:5386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5386 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5387 | ac_cv_c_char_unsigned=yes |
| 5388 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5389 | echo "configure: failed program was:" >&5 |
| 5390 | cat conftest.$ac_ext >&5 |
| 5391 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5392 | ac_cv_c_char_unsigned=no |
| 5393 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5394 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5395 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5396 | |
| 5397 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5398 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5399 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5400 | echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5401 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
| 5402 | cat >> confdefs.h <<\EOF |
| 5403 | #define __CHAR_UNSIGNED__ 1 |
| 5404 | EOF |
| 5405 | |
| 5406 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5407 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5408 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5409 | echo "configure:5410: checking for working const" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5410 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5411 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5412 | else |
| 5413 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5414 | #line 5415 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5415 | #include "confdefs.h" |
| 5416 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5417 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5418 | |
| 5419 | /* Ultrix mips cc rejects this. */ |
Andrew M. Kuchling | 8abedde | 2001-01-26 22:55:24 +0000 | [diff] [blame] | 5420 | typedef int charset[2]; const charset x; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5421 | /* SunOS 4.1.1 cc rejects this. */ |
| 5422 | char const *const *ccp; |
| 5423 | char **p; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5424 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 5425 | struct point {int x, y;}; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5426 | static struct point const zero = {0,0}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5427 | /* AIX XL C 1.02.0.0 rejects this. |
| 5428 | It does not let you subtract one const X* pointer from another in an arm |
| 5429 | of an if-expression whose if-part is not a constant expression */ |
| 5430 | const char *g = "string"; |
| 5431 | ccp = &g + (g ? g-g : 0); |
| 5432 | /* HPUX 7.0 cc rejects these. */ |
| 5433 | ++ccp; |
| 5434 | p = (char**) ccp; |
| 5435 | ccp = (char const *const *) p; |
| 5436 | { /* SCO 3.2v4 cc rejects this. */ |
| 5437 | char *t; |
| 5438 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 5439 | |
| 5440 | *t++ = 0; |
| 5441 | } |
| 5442 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5443 | int x[] = {25, 17}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5444 | const int *foo = &x[0]; |
| 5445 | ++foo; |
| 5446 | } |
| 5447 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 5448 | typedef const int *iptr; |
| 5449 | iptr p = 0; |
| 5450 | ++p; |
| 5451 | } |
| 5452 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 5453 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 5454 | struct s { int j; const int *ap[3]; }; |
| 5455 | struct s *b; b->j = 5; |
| 5456 | } |
| 5457 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 5458 | const int foo = 10; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5459 | } |
| 5460 | |
| 5461 | ; return 0; } |
| 5462 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5463 | if { (eval echo configure:5464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5464 | rm -rf conftest* |
| 5465 | ac_cv_c_const=yes |
| 5466 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5467 | echo "configure: failed program was:" >&5 |
| 5468 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5469 | rm -rf conftest* |
| 5470 | ac_cv_c_const=no |
| 5471 | fi |
| 5472 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5473 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5474 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5475 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5476 | if test $ac_cv_c_const = no; then |
| 5477 | cat >> confdefs.h <<\EOF |
| 5478 | #define const |
| 5479 | EOF |
| 5480 | |
| 5481 | fi |
| 5482 | |
| 5483 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5484 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5485 | echo $ac_n "checking for working volatile""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5486 | echo "configure:5487: checking for working volatile" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5487 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5488 | #line 5489 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5489 | #include "confdefs.h" |
| 5490 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5491 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5492 | volatile int x; x = 0; |
| 5493 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5494 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5495 | if { (eval echo configure:5496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5496 | rm -rf conftest* |
| 5497 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5498 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5499 | echo "configure: failed program was:" >&5 |
| 5500 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5501 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5502 | cat >> confdefs.h <<\EOF |
| 5503 | #define volatile |
| 5504 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5505 | |
| 5506 | fi |
| 5507 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5508 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5509 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5510 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5511 | echo $ac_n "checking for working signed char""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5512 | echo "configure:5513: checking for working signed char" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5513 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5514 | #line 5515 "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5515 | #include "confdefs.h" |
| 5516 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5517 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5518 | signed char c; |
| 5519 | ; return 0; } |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5520 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5521 | if { (eval echo configure:5522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5522 | rm -rf conftest* |
| 5523 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5524 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5525 | echo "configure: failed program was:" >&5 |
| 5526 | cat conftest.$ac_ext >&5 |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5527 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5528 | cat >> confdefs.h <<\EOF |
| 5529 | #define signed |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5530 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5531 | |
| 5532 | fi |
| 5533 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5534 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5535 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5536 | have_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5537 | echo $ac_n "checking for prototypes""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5538 | echo "configure:5539: checking for prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5539 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5540 | #line 5541 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5541 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5542 | int foo(int x) { return 0; } |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5543 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5544 | return foo(10); |
| 5545 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5546 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5547 | if { (eval echo configure:5548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5548 | rm -rf conftest* |
| 5549 | cat >> confdefs.h <<\EOF |
| 5550 | #define HAVE_PROTOTYPES 1 |
| 5551 | EOF |
| 5552 | have_prototypes=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5553 | else |
| 5554 | echo "configure: failed program was:" >&5 |
| 5555 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5556 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5557 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5558 | echo "$ac_t""$have_prototypes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5559 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5560 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5561 | echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5562 | echo "configure:5563: checking for variable length prototypes and stdarg.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5563 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5564 | #line 5565 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5565 | #include "confdefs.h" |
| 5566 | |
| 5567 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 5568 | int foo(int x, ...) { |
| 5569 | va_list va; |
| 5570 | va_start(va, x); |
| 5571 | va_arg(va, int); |
| 5572 | va_arg(va, char *); |
| 5573 | va_arg(va, double); |
| 5574 | return 0; |
| 5575 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5576 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5577 | int main() { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 5578 | return foo(10, "", 3.14); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5579 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5580 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5581 | if { (eval echo configure:5582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5582 | rm -rf conftest* |
| 5583 | cat >> confdefs.h <<\EOF |
| 5584 | #define HAVE_STDARG_PROTOTYPES 1 |
| 5585 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5586 | works=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5587 | else |
| 5588 | echo "configure: failed program was:" >&5 |
| 5589 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5590 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5591 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5592 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5593 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5594 | if test "$have_prototypes" = yes; then |
| 5595 | bad_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5596 | echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5597 | echo "configure:5598: checking for bad exec* prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5598 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5599 | #line 5600 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5600 | #include "confdefs.h" |
| 5601 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5602 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5603 | char **t;execve("@",t,t); |
| 5604 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5605 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5606 | if { (eval echo configure:5607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5607 | : |
| 5608 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5609 | echo "configure: failed program was:" >&5 |
| 5610 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5611 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5612 | cat >> confdefs.h <<\EOF |
| 5613 | #define BAD_EXEC_PROTOTYPES 1 |
| 5614 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5615 | bad_prototypes=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5616 | fi |
| 5617 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5618 | echo "$ac_t""$bad_prototypes" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5619 | fi |
| 5620 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5621 | bad_forward=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5622 | echo $ac_n "checking for bad static forward""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5623 | echo "configure:5624: checking for bad static forward" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5624 | if test "$cross_compiling" = yes; then |
| 5625 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5626 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5627 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5628 | #line 5629 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5629 | #include "confdefs.h" |
| 5630 | |
| 5631 | struct s { int a; int b; }; |
| 5632 | static struct s foo; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5633 | int foobar() { |
| 5634 | static int random; |
| 5635 | random = (int) &foo; |
| 5636 | return random; |
| 5637 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5638 | static struct s foo = { 1, 2 }; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5639 | main() { |
| 5640 | exit(!((int)&foo == foobar())); |
| 5641 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5642 | |
| 5643 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5644 | if { (eval echo configure:5645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5645 | then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5646 | : |
| 5647 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5648 | echo "configure: failed program was:" >&5 |
| 5649 | cat conftest.$ac_ext >&5 |
| 5650 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5651 | cat >> confdefs.h <<\EOF |
| 5652 | #define BAD_STATIC_FORWARD 1 |
| 5653 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5654 | bad_forward=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5655 | fi |
| 5656 | rm -fr conftest* |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5657 | fi |
| 5658 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5659 | echo "$ac_t""$bad_forward" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5660 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5661 | va_list_is_array=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5662 | echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5663 | echo "configure:5664: checking whether va_list is an array" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5664 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5665 | #line 5666 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5666 | #include "confdefs.h" |
| 5667 | |
| 5668 | #ifdef HAVE_STDARG_PROTOTYPES |
| 5669 | #include <stdarg.h> |
| 5670 | #else |
| 5671 | #include <varargs.h> |
| 5672 | #endif |
| 5673 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5674 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5675 | va_list list1, list2; list1 = list2; |
| 5676 | ; return 0; } |
| 5677 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5678 | if { (eval echo configure:5679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5679 | : |
| 5680 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5681 | echo "configure: failed program was:" >&5 |
| 5682 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5683 | rm -rf conftest* |
| 5684 | cat >> confdefs.h <<\EOF |
| 5685 | #define VA_LIST_IS_ARRAY 1 |
| 5686 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5687 | va_list_is_array=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5688 | fi |
| 5689 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5690 | echo "$ac_t""$va_list_is_array" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5691 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5692 | # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( |
| 5693 | echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5694 | echo "configure:5695: checking for gethostbyname_r" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5695 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5696 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5697 | else |
| 5698 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5699 | #line 5700 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5700 | #include "confdefs.h" |
| 5701 | /* System header to define __stub macros and hopefully few prototypes, |
| 5702 | which can conflict with char gethostbyname_r(); below. */ |
| 5703 | #include <assert.h> |
| 5704 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5705 | /* We use char because int might match the return type of a gcc2 |
| 5706 | builtin and then its argument prototype would still apply. */ |
| 5707 | char gethostbyname_r(); |
| 5708 | |
| 5709 | int main() { |
| 5710 | |
| 5711 | /* The GNU C library defines this for functions which it implements |
| 5712 | to always fail with ENOSYS. Some functions are actually named |
| 5713 | something starting with __ and the normal name is an alias. */ |
| 5714 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 5715 | choke me |
| 5716 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5717 | gethostbyname_r(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5718 | #endif |
| 5719 | |
| 5720 | ; return 0; } |
| 5721 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5722 | if { (eval echo configure:5723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5723 | rm -rf conftest* |
| 5724 | eval "ac_cv_func_gethostbyname_r=yes" |
| 5725 | else |
| 5726 | echo "configure: failed program was:" >&5 |
| 5727 | cat conftest.$ac_ext >&5 |
| 5728 | rm -rf conftest* |
| 5729 | eval "ac_cv_func_gethostbyname_r=no" |
| 5730 | fi |
| 5731 | rm -f conftest* |
| 5732 | fi |
| 5733 | |
| 5734 | if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then |
| 5735 | echo "$ac_t""yes" 1>&6 |
| 5736 | |
| 5737 | cat >> confdefs.h <<\EOF |
| 5738 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5739 | EOF |
| 5740 | |
| 5741 | echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5742 | echo "configure:5743: checking gethostbyname_r with 6 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5743 | OLD_CFLAGS=$CFLAGS |
| 5744 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
| 5745 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5746 | #line 5747 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5747 | #include "confdefs.h" |
| 5748 | |
| 5749 | # include <netdb.h> |
| 5750 | |
| 5751 | int main() { |
| 5752 | |
| 5753 | char *name; |
| 5754 | struct hostent *he, *res; |
| 5755 | char buffer[2048]; |
| 5756 | int buflen = 2048; |
| 5757 | int h_errnop; |
| 5758 | |
| 5759 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
| 5760 | |
| 5761 | ; return 0; } |
| 5762 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5763 | if { (eval echo configure:5764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5764 | rm -rf conftest* |
| 5765 | |
| 5766 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5767 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5768 | EOF |
| 5769 | |
| 5770 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5771 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
| 5772 | EOF |
| 5773 | |
| 5774 | echo "$ac_t""yes" 1>&6 |
| 5775 | |
| 5776 | else |
| 5777 | echo "configure: failed program was:" >&5 |
| 5778 | cat conftest.$ac_ext >&5 |
| 5779 | rm -rf conftest* |
| 5780 | |
| 5781 | echo "$ac_t""no" 1>&6 |
| 5782 | echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5783 | echo "configure:5784: checking gethostbyname_r with 5 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5784 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5785 | #line 5786 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5786 | #include "confdefs.h" |
| 5787 | |
| 5788 | # include <netdb.h> |
| 5789 | |
| 5790 | int main() { |
| 5791 | |
| 5792 | char *name; |
| 5793 | struct hostent *he; |
| 5794 | char buffer[2048]; |
| 5795 | int buflen = 2048; |
| 5796 | int h_errnop; |
| 5797 | |
| 5798 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
| 5799 | |
| 5800 | ; return 0; } |
| 5801 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5802 | if { (eval echo configure:5803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5803 | rm -rf conftest* |
| 5804 | |
| 5805 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5806 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5807 | EOF |
| 5808 | |
| 5809 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5810 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
| 5811 | EOF |
| 5812 | |
| 5813 | echo "$ac_t""yes" 1>&6 |
| 5814 | |
| 5815 | else |
| 5816 | echo "configure: failed program was:" >&5 |
| 5817 | cat conftest.$ac_ext >&5 |
| 5818 | rm -rf conftest* |
| 5819 | |
| 5820 | echo "$ac_t""no" 1>&6 |
| 5821 | echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5822 | echo "configure:5823: checking gethostbyname_r with 3 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5823 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5824 | #line 5825 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5825 | #include "confdefs.h" |
| 5826 | |
| 5827 | # include <netdb.h> |
| 5828 | |
| 5829 | int main() { |
| 5830 | |
| 5831 | char *name; |
| 5832 | struct hostent *he; |
| 5833 | struct hostent_data data; |
| 5834 | |
| 5835 | (void) gethostbyname_r(name, he, &data); |
| 5836 | |
| 5837 | ; return 0; } |
| 5838 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5839 | if { (eval echo configure:5840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5840 | rm -rf conftest* |
| 5841 | |
| 5842 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5843 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5844 | EOF |
| 5845 | |
| 5846 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5847 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
| 5848 | EOF |
| 5849 | |
| 5850 | echo "$ac_t""yes" 1>&6 |
| 5851 | |
| 5852 | else |
| 5853 | echo "configure: failed program was:" >&5 |
| 5854 | cat conftest.$ac_ext >&5 |
| 5855 | rm -rf conftest* |
| 5856 | |
| 5857 | echo "$ac_t""no" 1>&6 |
| 5858 | |
| 5859 | fi |
| 5860 | rm -f conftest* |
| 5861 | |
| 5862 | fi |
| 5863 | rm -f conftest* |
| 5864 | |
| 5865 | fi |
| 5866 | rm -f conftest* |
| 5867 | CFLAGS=$OLD_CFLAGS |
| 5868 | |
| 5869 | else |
| 5870 | echo "$ac_t""no" 1>&6 |
| 5871 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5872 | for ac_func in gethostbyname |
| 5873 | do |
| 5874 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5875 | echo "configure:5876: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5876 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5877 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5878 | else |
| 5879 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5880 | #line 5881 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5881 | #include "confdefs.h" |
| 5882 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5883 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5884 | #include <assert.h> |
| 5885 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5886 | /* We use char because int might match the return type of a gcc2 |
| 5887 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5888 | char $ac_func(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5889 | |
| 5890 | int main() { |
| 5891 | |
| 5892 | /* The GNU C library defines this for functions which it implements |
| 5893 | to always fail with ENOSYS. Some functions are actually named |
| 5894 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5895 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5896 | choke me |
| 5897 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5898 | $ac_func(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5899 | #endif |
| 5900 | |
| 5901 | ; return 0; } |
| 5902 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5903 | if { (eval echo configure:5904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5904 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5905 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5906 | else |
| 5907 | echo "configure: failed program was:" >&5 |
| 5908 | cat conftest.$ac_ext >&5 |
| 5909 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5910 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5911 | fi |
| 5912 | rm -f conftest* |
| 5913 | fi |
| 5914 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5915 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5916 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5917 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5918 | cat >> confdefs.h <<EOF |
| 5919 | #define $ac_tr_func 1 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5920 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5921 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5922 | else |
| 5923 | echo "$ac_t""no" 1>&6 |
| 5924 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5925 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5926 | |
| 5927 | |
| 5928 | fi |
| 5929 | |
| 5930 | |
| 5931 | |
| 5932 | |
| 5933 | |
| 5934 | |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5935 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5936 | # checks for system services |
| 5937 | # (none yet) |
| 5938 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5939 | # Linux requires this for correct f.p. operations |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5940 | echo $ac_n "checking for __fpu_control""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5941 | echo "configure:5942: checking for __fpu_control" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5942 | if eval "test \"`echo '$''{'ac_cv_func___fpu_control'+set}'`\" = set"; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5943 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5944 | else |
| 5945 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5946 | #line 5947 "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5947 | #include "confdefs.h" |
| 5948 | /* System header to define __stub macros and hopefully few prototypes, |
| 5949 | which can conflict with char __fpu_control(); below. */ |
| 5950 | #include <assert.h> |
| 5951 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5952 | /* We use char because int might match the return type of a gcc2 |
| 5953 | builtin and then its argument prototype would still apply. */ |
| 5954 | char __fpu_control(); |
| 5955 | |
| 5956 | int main() { |
| 5957 | |
| 5958 | /* The GNU C library defines this for functions which it implements |
| 5959 | to always fail with ENOSYS. Some functions are actually named |
| 5960 | something starting with __ and the normal name is an alias. */ |
| 5961 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 5962 | choke me |
| 5963 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5964 | __fpu_control(); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5965 | #endif |
| 5966 | |
| 5967 | ; return 0; } |
| 5968 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5969 | if { (eval echo configure:5970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5970 | rm -rf conftest* |
| 5971 | eval "ac_cv_func___fpu_control=yes" |
| 5972 | else |
| 5973 | echo "configure: failed program was:" >&5 |
| 5974 | cat conftest.$ac_ext >&5 |
| 5975 | rm -rf conftest* |
| 5976 | eval "ac_cv_func___fpu_control=no" |
| 5977 | fi |
| 5978 | rm -f conftest* |
| 5979 | fi |
| 5980 | |
| 5981 | if eval "test \"`echo '$ac_cv_func_'__fpu_control`\" = yes"; then |
| 5982 | echo "$ac_t""yes" 1>&6 |
| 5983 | : |
| 5984 | else |
| 5985 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5986 | echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5987 | echo "configure:5988: checking for __fpu_control in -lieee" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5988 | ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5989 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5990 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5991 | else |
| 5992 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5993 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5994 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 5995 | #line 5996 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5996 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5997 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5998 | /* We use char because int might match the return type of a gcc2 |
| 5999 | builtin and then its argument prototype would still apply. */ |
| 6000 | char __fpu_control(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6001 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6002 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6003 | __fpu_control() |
| 6004 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6005 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6006 | if { (eval echo configure:6007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6007 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6008 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6009 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6010 | echo "configure: failed program was:" >&5 |
| 6011 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6012 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6013 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6014 | fi |
| 6015 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6016 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6017 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6018 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6019 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6020 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6021 | ac_tr_lib=HAVE_LIB`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 6022 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6023 | cat >> confdefs.h <<EOF |
| 6024 | #define $ac_tr_lib 1 |
| 6025 | EOF |
| 6026 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6027 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6028 | |
| 6029 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6030 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6031 | fi |
| 6032 | |
| 6033 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6034 | fi |
| 6035 | |
| 6036 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6037 | # Check for --with-fpectl |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6038 | echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6039 | echo "configure:6040: checking for --with-fpectl" >&5 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6040 | # Check whether --with-fpectl or --without-fpectl was given. |
| 6041 | if test "${with_fpectl+set}" = set; then |
| 6042 | withval="$with_fpectl" |
| 6043 | |
| 6044 | if test "$withval" != no |
| 6045 | then cat >> confdefs.h <<\EOF |
| 6046 | #define WANT_SIGFPE_HANDLER 1 |
| 6047 | EOF |
| 6048 | echo "$ac_t""yes" 1>&6 |
| 6049 | else echo "$ac_t""no" 1>&6 |
| 6050 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6051 | else |
| 6052 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6053 | fi |
| 6054 | |
| 6055 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6056 | # check for --with-libm=... |
| 6057 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 6058 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 6059 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 6060 | next) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6061 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 6062 | *) LIBM=-lm |
| 6063 | esac |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6064 | echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6065 | echo "configure:6066: checking for --with-libm=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6066 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6067 | if test "${with_libm+set}" = set; then |
| 6068 | withval="$with_libm" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6069 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6070 | if test "$withval" = no |
| 6071 | then LIBM= |
| 6072 | echo "$ac_t""force LIBM empty" 1>&6 |
| 6073 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6074 | then LIBM=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6075 | echo "$ac_t""set LIBM=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6076 | else { echo "configure: error: proper usage is --with-libm=STRING" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6077 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6078 | else |
| 6079 | echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6080 | fi |
| 6081 | |
| 6082 | |
| 6083 | # check for --with-libc=... |
| 6084 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6085 | echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6086 | echo "configure:6087: checking for --with-libc=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6087 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6088 | if test "${with_libc+set}" = set; then |
| 6089 | withval="$with_libc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6090 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6091 | if test "$withval" = no |
| 6092 | then LIBC= |
| 6093 | echo "$ac_t""force LIBC empty" 1>&6 |
| 6094 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6095 | then LIBC=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6096 | echo "$ac_t""set LIBC=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6097 | else { echo "configure: error: proper usage is --with-libc=STRING" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6098 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6099 | else |
| 6100 | echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6101 | fi |
| 6102 | |
| 6103 | |
Guido van Rossum | 4c3f57c | 2001-01-10 20:40:46 +0000 | [diff] [blame] | 6104 | # check for --with-check-import-case |
| 6105 | # Check whether --with-check-import-case or --without-check-import-case was given. |
| 6106 | if test "${with_check_import_case+set}" = set; then |
| 6107 | withval="$with_check_import_case" |
| 6108 | : |
| 6109 | fi |
| 6110 | |
| 6111 | echo $ac_n "checking for --with-check-import-case""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6112 | echo "configure:6113: checking for --with-check-import-case" >&5 |
Guido van Rossum | 4c3f57c | 2001-01-10 20:40:46 +0000 | [diff] [blame] | 6113 | if test "$with_check_import_case" |
| 6114 | then |
| 6115 | cat >> confdefs.h <<\EOF |
| 6116 | #define CHECK_IMPORT_CASE 1 |
| 6117 | EOF |
| 6118 | |
| 6119 | echo "$ac_t""yes" 1>&6 |
| 6120 | else |
| 6121 | echo "$ac_t""no" 1>&6 |
| 6122 | fi |
| 6123 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6124 | # check for hypot() in math library |
| 6125 | LIBS_SAVE=$LIBS |
| 6126 | LIBS="$LIBS $LIBM" |
| 6127 | for ac_func in hypot |
| 6128 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6129 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6130 | echo "configure:6131: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6131 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6132 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6133 | else |
| 6134 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6135 | #line 6136 "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6136 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6137 | /* System header to define __stub macros and hopefully few prototypes, |
| 6138 | which can conflict with char $ac_func(); below. */ |
| 6139 | #include <assert.h> |
| 6140 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6141 | /* We use char because int might match the return type of a gcc2 |
| 6142 | builtin and then its argument prototype would still apply. */ |
| 6143 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6144 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6145 | int main() { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6146 | |
| 6147 | /* The GNU C library defines this for functions which it implements |
| 6148 | to always fail with ENOSYS. Some functions are actually named |
| 6149 | something starting with __ and the normal name is an alias. */ |
| 6150 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6151 | choke me |
| 6152 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6153 | $ac_func(); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6154 | #endif |
| 6155 | |
| 6156 | ; return 0; } |
| 6157 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6158 | if { (eval echo configure:6159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6159 | rm -rf conftest* |
| 6160 | eval "ac_cv_func_$ac_func=yes" |
| 6161 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6162 | echo "configure: failed program was:" >&5 |
| 6163 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6164 | rm -rf conftest* |
| 6165 | eval "ac_cv_func_$ac_func=no" |
| 6166 | fi |
| 6167 | rm -f conftest* |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6168 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6169 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6170 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 6171 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6172 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 6173 | cat >> confdefs.h <<EOF |
| 6174 | #define $ac_tr_func 1 |
| 6175 | EOF |
| 6176 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6177 | else |
| 6178 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 6179 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6180 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6181 | done |
| 6182 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6183 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6184 | LIBS=$LIBS_SAVE |
| 6185 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6186 | # check whether malloc(0) returns NULL or not |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6187 | echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6188 | echo "configure:6189: checking what malloc(0) returns" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6189 | if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6190 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6191 | else |
| 6192 | if test "$cross_compiling" = yes; then |
| 6193 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 6194 | else |
| 6195 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6196 | #line 6197 "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6197 | #include "confdefs.h" |
| 6198 | #include <stdio.h> |
| 6199 | #ifdef HAVE_STDLIB |
| 6200 | #include <stdlib.h> |
| 6201 | #else |
| 6202 | char *malloc(), *realloc(); |
| 6203 | int *free(); |
| 6204 | #endif |
| 6205 | main() { |
| 6206 | char *p; |
| 6207 | p = malloc(0); |
| 6208 | if (p == NULL) exit(1); |
| 6209 | p = realloc(p, 0); |
| 6210 | if (p == NULL) exit(1); |
| 6211 | free(p); |
| 6212 | exit(0); |
| 6213 | } |
| 6214 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6215 | if { (eval echo configure:6216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6216 | then |
| 6217 | ac_cv_malloc_zero=nonnull |
| 6218 | else |
| 6219 | echo "configure: failed program was:" >&5 |
| 6220 | cat conftest.$ac_ext >&5 |
| 6221 | rm -fr conftest* |
| 6222 | ac_cv_malloc_zero=null |
| 6223 | fi |
| 6224 | rm -fr conftest* |
| 6225 | fi |
| 6226 | |
| 6227 | fi |
| 6228 | |
| 6229 | echo "$ac_t""$ac_cv_malloc_zero" 1>&6 |
| 6230 | if test "$ac_cv_malloc_zero" = null |
| 6231 | then |
| 6232 | cat >> confdefs.h <<\EOF |
| 6233 | #define MALLOC_ZERO_RETURNS_NULL 1 |
| 6234 | EOF |
| 6235 | |
| 6236 | fi |
| 6237 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6238 | # check for wchar.h |
| 6239 | ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'` |
| 6240 | echo $ac_n "checking for wchar.h""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6241 | echo "configure:6242: checking for wchar.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6242 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6243 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6244 | else |
| 6245 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6246 | #line 6247 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6247 | #include "confdefs.h" |
| 6248 | #include <wchar.h> |
| 6249 | EOF |
| 6250 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6251 | { (eval echo configure:6252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6252 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 6253 | if test -z "$ac_err"; then |
| 6254 | rm -rf conftest* |
| 6255 | eval "ac_cv_header_$ac_safe=yes" |
| 6256 | else |
| 6257 | echo "$ac_err" >&5 |
| 6258 | echo "configure: failed program was:" >&5 |
| 6259 | cat conftest.$ac_ext >&5 |
| 6260 | rm -rf conftest* |
| 6261 | eval "ac_cv_header_$ac_safe=no" |
| 6262 | fi |
| 6263 | rm -f conftest* |
| 6264 | fi |
| 6265 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 6266 | echo "$ac_t""yes" 1>&6 |
| 6267 | cat >> confdefs.h <<\EOF |
| 6268 | #define HAVE_WCHAR_H 1 |
| 6269 | EOF |
| 6270 | wchar_h="yes" |
| 6271 | else |
| 6272 | echo "$ac_t""no" 1>&6 |
| 6273 | wchar_h="no" |
| 6274 | |
| 6275 | fi |
| 6276 | |
| 6277 | |
| 6278 | # check for usable wchar_t |
| 6279 | usable_wchar_t="unkown" |
| 6280 | echo $ac_n "checking for usable wchar_t""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6281 | echo "configure:6282: checking for usable wchar_t" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6282 | if test "$cross_compiling" = yes; then |
| 6283 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 6284 | else |
| 6285 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6286 | #line 6287 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6287 | #include "confdefs.h" |
| 6288 | |
| 6289 | #include "wchar.h" |
| 6290 | #include "wctype.h" |
| 6291 | main() { |
| 6292 | wchar_t s; |
| 6293 | if (sizeof(s) == 2) |
| 6294 | exit(0); |
| 6295 | else |
| 6296 | exit(1); |
| 6297 | } |
| 6298 | |
| 6299 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6300 | if { (eval echo configure:6301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6301 | then |
| 6302 | cat >> confdefs.h <<\EOF |
| 6303 | #define HAVE_USABLE_WCHAR_T 1 |
| 6304 | EOF |
| 6305 | usable_wchar_t="yes" |
| 6306 | else |
| 6307 | echo "configure: failed program was:" >&5 |
| 6308 | cat conftest.$ac_ext >&5 |
| 6309 | rm -fr conftest* |
| 6310 | usable_wchar_t="no" |
| 6311 | fi |
| 6312 | rm -fr conftest* |
| 6313 | fi |
| 6314 | |
| 6315 | echo "$ac_t""$usable_wchar_t" 1>&6 |
| 6316 | |
| 6317 | # check for endianness |
| 6318 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6319 | echo "configure:6320: checking whether byte ordering is bigendian" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6320 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6321 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6322 | else |
| 6323 | ac_cv_c_bigendian=unknown |
| 6324 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 6325 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6326 | #line 6327 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6327 | #include "confdefs.h" |
| 6328 | #include <sys/types.h> |
| 6329 | #include <sys/param.h> |
| 6330 | int main() { |
| 6331 | |
| 6332 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 6333 | bogus endian macros |
| 6334 | #endif |
| 6335 | ; return 0; } |
| 6336 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6337 | if { (eval echo configure:6338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6338 | rm -rf conftest* |
| 6339 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 6340 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6341 | #line 6342 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6342 | #include "confdefs.h" |
| 6343 | #include <sys/types.h> |
| 6344 | #include <sys/param.h> |
| 6345 | int main() { |
| 6346 | |
| 6347 | #if BYTE_ORDER != BIG_ENDIAN |
| 6348 | not big endian |
| 6349 | #endif |
| 6350 | ; return 0; } |
| 6351 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6352 | if { (eval echo configure:6353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6353 | rm -rf conftest* |
| 6354 | ac_cv_c_bigendian=yes |
| 6355 | else |
| 6356 | echo "configure: failed program was:" >&5 |
| 6357 | cat conftest.$ac_ext >&5 |
| 6358 | rm -rf conftest* |
| 6359 | ac_cv_c_bigendian=no |
| 6360 | fi |
| 6361 | rm -f conftest* |
| 6362 | else |
| 6363 | echo "configure: failed program was:" >&5 |
| 6364 | cat conftest.$ac_ext >&5 |
| 6365 | fi |
| 6366 | rm -f conftest* |
| 6367 | if test $ac_cv_c_bigendian = unknown; then |
| 6368 | if test "$cross_compiling" = yes; then |
| 6369 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 6370 | else |
| 6371 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6372 | #line 6373 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6373 | #include "confdefs.h" |
| 6374 | main () { |
| 6375 | /* Are we little or big endian? From Harbison&Steele. */ |
| 6376 | union |
| 6377 | { |
| 6378 | long l; |
| 6379 | char c[sizeof (long)]; |
| 6380 | } u; |
| 6381 | u.l = 1; |
| 6382 | exit (u.c[sizeof (long) - 1] == 1); |
| 6383 | } |
| 6384 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6385 | if { (eval echo configure:6386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6386 | then |
| 6387 | ac_cv_c_bigendian=no |
| 6388 | else |
| 6389 | echo "configure: failed program was:" >&5 |
| 6390 | cat conftest.$ac_ext >&5 |
| 6391 | rm -fr conftest* |
| 6392 | ac_cv_c_bigendian=yes |
| 6393 | fi |
| 6394 | rm -fr conftest* |
| 6395 | fi |
| 6396 | |
| 6397 | fi |
| 6398 | fi |
| 6399 | |
| 6400 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
| 6401 | if test $ac_cv_c_bigendian = yes; then |
| 6402 | cat >> confdefs.h <<\EOF |
| 6403 | #define WORDS_BIGENDIAN 1 |
| 6404 | EOF |
| 6405 | |
| 6406 | fi |
| 6407 | |
| 6408 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6409 | # Check whether right shifting a negative integer extends the sign bit |
| 6410 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
| 6411 | echo $ac_n "checking whether right shift extends the sign bit""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6412 | echo "configure:6413: checking whether right shift extends the sign bit" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6413 | if eval "test \"`echo '$''{'ac_cv_rshift_extends_sign'+set}'`\" = set"; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 6414 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6415 | else |
| 6416 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6417 | if test "$cross_compiling" = yes; then |
| 6418 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 6419 | else |
| 6420 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6421 | #line 6422 "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6422 | #include "confdefs.h" |
| 6423 | |
| 6424 | int main() |
| 6425 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 6426 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6427 | } |
| 6428 | |
| 6429 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6430 | if { (eval echo configure:6431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 6431 | then |
| 6432 | ac_cv_rshift_extends_sign=yes |
| 6433 | else |
| 6434 | echo "configure: failed program was:" >&5 |
| 6435 | cat conftest.$ac_ext >&5 |
| 6436 | rm -fr conftest* |
| 6437 | ac_cv_rshift_extends_sign=no |
| 6438 | fi |
| 6439 | rm -fr conftest* |
| 6440 | fi |
| 6441 | |
| 6442 | fi |
| 6443 | |
| 6444 | echo "$ac_t""$ac_cv_rshift_extends_sign" 1>&6 |
| 6445 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6446 | then |
| 6447 | cat >> confdefs.h <<\EOF |
| 6448 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
| 6449 | EOF |
| 6450 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6451 | fi |
| 6452 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 6453 | # check for getc_unlocked and related locking functions |
| 6454 | echo $ac_n "checking for getc_unlocked() and friends""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6455 | echo "configure:6456: checking for getc_unlocked() and friends" >&5 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 6456 | if eval "test \"`echo '$''{'ac_cv_have_getc_unlocked'+set}'`\" = set"; then |
| 6457 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6458 | else |
| 6459 | |
| 6460 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6461 | #line 6462 "configure" |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 6462 | #include "confdefs.h" |
| 6463 | #include <stdio.h> |
| 6464 | int main() { |
| 6465 | |
| 6466 | FILE *f = fopen("/dev/null", "r"); |
| 6467 | flockfile(f); |
| 6468 | getc_unlocked(f); |
| 6469 | funlockfile(f); |
| 6470 | |
| 6471 | ; return 0; } |
| 6472 | EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6473 | if { (eval echo configure:6474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 6474 | rm -rf conftest* |
| 6475 | ac_cv_have_getc_unlocked=yes |
| 6476 | else |
| 6477 | echo "configure: failed program was:" >&5 |
| 6478 | cat conftest.$ac_ext >&5 |
| 6479 | rm -rf conftest* |
| 6480 | ac_cv_have_getc_unlocked=no |
| 6481 | fi |
| 6482 | rm -f conftest* |
| 6483 | fi |
| 6484 | |
| 6485 | echo "$ac_t""$ac_cv_have_getc_unlocked" 1>&6 |
| 6486 | if test "$ac_cv_have_getc_unlocked" = yes |
| 6487 | then |
| 6488 | cat >> confdefs.h <<\EOF |
| 6489 | #define HAVE_GETC_UNLOCKED 1 |
| 6490 | EOF |
| 6491 | |
| 6492 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6493 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6494 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! |
| 6495 | # Add sys/socket.h to confdefs.h |
| 6496 | cat >> confdefs.h <<\EOF |
| 6497 | #ifdef HAVE_SYS_SOCKET_H |
| 6498 | #include <sys/socket.h> |
| 6499 | #endif |
| 6500 | EOF |
| 6501 | echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6502 | echo "configure:6503: checking for socklen_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6503 | if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6504 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6505 | else |
| 6506 | cat > conftest.$ac_ext <<EOF |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6507 | #line 6508 "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6508 | #include "confdefs.h" |
| 6509 | #include <sys/types.h> |
| 6510 | #if STDC_HEADERS |
| 6511 | #include <stdlib.h> |
| 6512 | #include <stddef.h> |
| 6513 | #endif |
| 6514 | EOF |
| 6515 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6516 | egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 6517 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6518 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6519 | else |
| 6520 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6521 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6522 | fi |
| 6523 | rm -f conftest* |
| 6524 | |
| 6525 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6526 | echo "$ac_t""$ac_cv_type_socklen_t" 1>&6 |
| 6527 | if test $ac_cv_type_socklen_t = no; then |
| 6528 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6529 | #define socklen_t int |
| 6530 | EOF |
| 6531 | |
| 6532 | fi |
| 6533 | |
| 6534 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6535 | #AC_MSG_CHECKING(for Modules/Setup) |
| 6536 | #if test ! -f Modules/Setup ; then |
| 6537 | # if test ! -d Modules ; then |
| 6538 | # mkdir Modules |
| 6539 | # fi |
| 6540 | # cp "$srcdir/Modules/Setup.dist" Modules/Setup |
| 6541 | # AC_MSG_RESULT(creating) |
| 6542 | #else |
| 6543 | # AC_MSG_RESULT(already exists) |
| 6544 | #fi |
| 6545 | |
| 6546 | |
| 6547 | SRCDIRS="Parser Grammar Objects Python Modules" |
Andrew M. Kuchling | 8abedde | 2001-01-26 22:55:24 +0000 | [diff] [blame] | 6548 | echo $ac_n "checking for build directories""... $ac_c" 1>&6 |
| 6549 | echo "configure:6550: checking for build directories" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6550 | for dir in $SRCDIRS; do |
| 6551 | if test ! -d $dir; then |
| 6552 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 6553 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6554 | done |
| 6555 | echo "$ac_t""done" 1>&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 6556 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6557 | # generate output files |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6558 | trap '' 1 2 15 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6559 | cat > confcache <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6560 | # This file is a shell script that caches the results of configure |
| 6561 | # tests run on this system so they can be shared between configure |
| 6562 | # scripts and configure runs. It is not useful on other systems. |
| 6563 | # If it contains results you don't want to keep, you may remove or edit it. |
| 6564 | # |
| 6565 | # By default, configure uses ./config.cache as the cache file, |
| 6566 | # creating it if it does not exist already. You can give configure |
| 6567 | # the --cache-file=FILE option to use a different cache file; that is |
| 6568 | # what configure does when it calls configure scripts in |
| 6569 | # subdirectories, so they share the cache. |
| 6570 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 6571 | # config.status only pays attention to the cache file if you give it the |
| 6572 | # --recheck option to rerun configure. |
| 6573 | # |
| 6574 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6575 | # The following way of writing the cache mishandles newlines in values, |
| 6576 | # but we know of no workaround that is simple, portable, and efficient. |
| 6577 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6578 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 6579 | # and sets the high bit in the cache file unless we assign to the vars. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6580 | (set) 2>&1 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 6581 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6582 | *ac_space=\ *) |
| 6583 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 6584 | # turns \\\\ into \\, and sed turns \\ into \). |
| 6585 | sed -n \ |
| 6586 | -e "s/'/'\\\\''/g" \ |
| 6587 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 6588 | ;; |
| 6589 | *) |
| 6590 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 6591 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 6592 | ;; |
| 6593 | esac >> confcache |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6594 | if cmp -s $cache_file confcache; then |
| 6595 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6596 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6597 | if test -w $cache_file; then |
| 6598 | echo "updating cache $cache_file" |
| 6599 | cat confcache > $cache_file |
| 6600 | else |
| 6601 | echo "not updating unwritable cache $cache_file" |
| 6602 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6603 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6604 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 6605 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6606 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6607 | |
| 6608 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 6609 | # Let make expand exec_prefix. |
| 6610 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 6611 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6612 | # Any assignment to VPATH causes Sun make to only execute |
| 6613 | # the first set of double-colon rules, so remove it if not needed. |
| 6614 | # If there is a colon in the path, we need to keep it. |
| 6615 | if test "x$srcdir" = x.; then |
| 6616 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 6617 | fi |
| 6618 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6619 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6620 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6621 | DEFS=-DHAVE_CONFIG_H |
| 6622 | |
| 6623 | # Without the "./", some shells look in PATH for config.status. |
| 6624 | : ${CONFIG_STATUS=./config.status} |
| 6625 | |
| 6626 | echo creating $CONFIG_STATUS |
| 6627 | rm -f $CONFIG_STATUS |
| 6628 | cat > $CONFIG_STATUS <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6629 | #! /bin/sh |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6630 | # Generated automatically by configure. |
| 6631 | # Run this file to recreate the current configuration. |
| 6632 | # This directory was configured as follows, |
| 6633 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 6634 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6635 | # $0 $ac_configure_args |
| 6636 | # |
| 6637 | # Compiler output produced by configure, useful for debugging |
| 6638 | # configure, is in ./config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6639 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6640 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6641 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6642 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6643 | case "\$ac_option" in |
| 6644 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6645 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 6646 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6647 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6648 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6649 | exit 0 ;; |
| 6650 | -help | --help | --hel | --he | --h) |
| 6651 | echo "\$ac_cs_usage"; exit 0 ;; |
| 6652 | *) echo "\$ac_cs_usage"; exit 1 ;; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6653 | esac |
| 6654 | done |
| 6655 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6656 | ac_given_srcdir=$srcdir |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6657 | ac_given_INSTALL="$INSTALL" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6658 | |
Andrew M. Kuchling | 8abedde | 2001-01-26 22:55:24 +0000 | [diff] [blame] | 6659 | trap 'rm -fr `echo "Makefile.pre Modules/Setup.config config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6660 | EOF |
| 6661 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6662 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6663 | # Protect against being on the right side of a sed subst in config.status. |
| 6664 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 6665 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6666 | $ac_vpsub |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6667 | $extrasub |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 6668 | s%@SHELL@%$SHELL%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6669 | s%@CFLAGS@%$CFLAGS%g |
| 6670 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 6671 | s%@CXXFLAGS@%$CXXFLAGS%g |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 6672 | s%@FFLAGS@%$FFLAGS%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6673 | s%@DEFS@%$DEFS%g |
| 6674 | s%@LDFLAGS@%$LDFLAGS%g |
| 6675 | s%@LIBS@%$LIBS%g |
| 6676 | s%@exec_prefix@%$exec_prefix%g |
| 6677 | s%@prefix@%$prefix%g |
| 6678 | s%@program_transform_name@%$program_transform_name%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6679 | s%@bindir@%$bindir%g |
| 6680 | s%@sbindir@%$sbindir%g |
| 6681 | s%@libexecdir@%$libexecdir%g |
| 6682 | s%@datadir@%$datadir%g |
| 6683 | s%@sysconfdir@%$sysconfdir%g |
| 6684 | s%@sharedstatedir@%$sharedstatedir%g |
| 6685 | s%@localstatedir@%$localstatedir%g |
| 6686 | s%@libdir@%$libdir%g |
| 6687 | s%@includedir@%$includedir%g |
| 6688 | s%@oldincludedir@%$oldincludedir%g |
| 6689 | s%@infodir@%$infodir%g |
| 6690 | s%@mandir@%$mandir%g |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 6691 | s%@VERSION@%$VERSION%g |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 6692 | s%@MACHDEP@%$MACHDEP%g |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 6693 | s%@SGI_ABI@%$SGI_ABI%g |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 6694 | s%@CXX@%$CXX%g |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 6695 | s%@MAINOBJ@%$MAINOBJ%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6696 | s%@CC@%$CC%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6697 | s%@EXEEXT@%$EXEEXT%g |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6698 | s%@LIBRARY@%$LIBRARY%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 6699 | s%@LDLIBRARY@%$LDLIBRARY%g |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 6700 | s%@DLLLIBRARY@%$DLLLIBRARY%g |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 6701 | s%@LINKCC@%$LINKCC%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6702 | s%@RANLIB@%$RANLIB%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6703 | s%@AR@%$AR%g |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6704 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6705 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6706 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6707 | s%@LN@%$LN%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 6708 | s%@OPT@%$OPT%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6709 | s%@CPP@%$CPP%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 6710 | s%@LIBTOOL_CRUFT@%$LIBTOOL_CRUFT%g |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 6711 | s%@SO@%$SO%g |
| 6712 | s%@LDSHARED@%$LDSHARED%g |
| 6713 | s%@CCSHARED@%$CCSHARED%g |
| 6714 | s%@LINKFORSHARED@%$LINKFORSHARED%g |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6715 | s%@CFLAGSFORSHARED@%$CFLAGSFORSHARED%g |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 6716 | s%@USE_NCURSES_MODULE@%$USE_NCURSES_MODULE%g |
| 6717 | s%@USE_READLINE_MODULE@%$USE_READLINE_MODULE%g |
Eric S. Raymond | a888540 | 2001-01-17 08:25:11 +0000 | [diff] [blame] | 6718 | s%@USE_GDBM_MODULE@%$USE_GDBM_MODULE%g |
| 6719 | s%@HAVE_LIBGDBM@%$HAVE_LIBGDBM%g |
| 6720 | s%@USE_NDBM_MODULE@%$USE_NDBM_MODULE%g |
| 6721 | s%@HAVE_LIBNDBM@%$HAVE_LIBNDBM%g |
| 6722 | s%@USE_CRYPT_MODULE@%$USE_CRYPT_MODULE%g |
| 6723 | s%@HAVE_LIBCRYPT@%$HAVE_LIBCRYPT%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6724 | s%@USE_SIGNAL_MODULE@%$USE_SIGNAL_MODULE%g |
| 6725 | s%@SIGNAL_OBJS@%$SIGNAL_OBJS%g |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 6726 | s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 6727 | s%@LDLAST@%$LDLAST%g |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 6728 | s%@USE_GC_MODULE@%$USE_GC_MODULE%g |
Barry Warsaw | a57b89b | 2001-01-15 17:07:21 +0000 | [diff] [blame] | 6729 | s%@USE_DBM_MODULE@%$USE_DBM_MODULE%g |
Fred Drake | a50d6ec | 2000-08-31 16:13:20 +0000 | [diff] [blame] | 6730 | s%@USE_BSDDB_MODULE@%$USE_BSDDB_MODULE%g |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 6731 | s%@HAVE_LIBDB@%$HAVE_LIBDB%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6732 | s%@DLINCLDIR@%$DLINCLDIR%g |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 6733 | s%@DYNLOADFILE@%$DYNLOADFILE%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6734 | s%@LIBOBJS@%$LIBOBJS%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6735 | s%@HAVE_GETHOSTBYNAME_R_6_ARG@%$HAVE_GETHOSTBYNAME_R_6_ARG%g |
| 6736 | s%@HAVE_GETHOSTBYNAME_R_5_ARG@%$HAVE_GETHOSTBYNAME_R_5_ARG%g |
| 6737 | s%@HAVE_GETHOSTBYNAME_R_3_ARG@%$HAVE_GETHOSTBYNAME_R_3_ARG%g |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 6738 | s%@HAVE_GETHOSTBYNAME_R@%$HAVE_GETHOSTBYNAME_R%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6739 | s%@HAVE_GETHOSTBYNAME@%$HAVE_GETHOSTBYNAME%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6740 | s%@LIBM@%$LIBM%g |
| 6741 | s%@LIBC@%$LIBC%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6742 | s%@SRCDIRS@%$SRCDIRS%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6743 | |
| 6744 | CEOF |
| 6745 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6746 | |
| 6747 | cat >> $CONFIG_STATUS <<\EOF |
| 6748 | |
| 6749 | # Split the substitutions into bite-sized pieces for seds with |
| 6750 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 6751 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 6752 | ac_file=1 # Number of current file. |
| 6753 | ac_beg=1 # First line for current file. |
| 6754 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 6755 | ac_more_lines=: |
| 6756 | ac_sed_cmds="" |
| 6757 | while $ac_more_lines; do |
| 6758 | if test $ac_beg -gt 1; then |
| 6759 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 6760 | else |
| 6761 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 6762 | fi |
| 6763 | if test ! -s conftest.s$ac_file; then |
| 6764 | ac_more_lines=false |
| 6765 | rm -f conftest.s$ac_file |
| 6766 | else |
| 6767 | if test -z "$ac_sed_cmds"; then |
| 6768 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 6769 | else |
| 6770 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 6771 | fi |
| 6772 | ac_file=`expr $ac_file + 1` |
| 6773 | ac_beg=$ac_end |
| 6774 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 6775 | fi |
| 6776 | done |
| 6777 | if test -z "$ac_sed_cmds"; then |
| 6778 | ac_sed_cmds=cat |
| 6779 | fi |
| 6780 | EOF |
| 6781 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6782 | cat >> $CONFIG_STATUS <<EOF |
| 6783 | |
Andrew M. Kuchling | 8abedde | 2001-01-26 22:55:24 +0000 | [diff] [blame] | 6784 | CONFIG_FILES=\${CONFIG_FILES-"Makefile.pre Modules/Setup.config"} |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6785 | EOF |
| 6786 | cat >> $CONFIG_STATUS <<\EOF |
| 6787 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6788 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6789 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6790 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6791 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 6792 | *) ac_file_in="${ac_file}.in" ;; |
| 6793 | esac |
| 6794 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6795 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6796 | |
| 6797 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 6798 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 6799 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 6800 | # The file is in a subdirectory. |
| 6801 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6802 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6803 | # A "../" for each directory in $ac_dir_suffix. |
| 6804 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 6805 | else |
| 6806 | ac_dir_suffix= ac_dots= |
| 6807 | fi |
| 6808 | |
| 6809 | case "$ac_given_srcdir" in |
| 6810 | .) srcdir=. |
| 6811 | if test -z "$ac_dots"; then top_srcdir=. |
| 6812 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 6813 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 6814 | *) # Relative path. |
| 6815 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 6816 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 6817 | esac |
| 6818 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6819 | case "$ac_given_INSTALL" in |
| 6820 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
| 6821 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
| 6822 | esac |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6823 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6824 | echo creating "$ac_file" |
| 6825 | rm -f "$ac_file" |
| 6826 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 6827 | case "$ac_file" in |
| 6828 | *Makefile*) ac_comsub="1i\\ |
| 6829 | # $configure_input" ;; |
| 6830 | *) ac_comsub= ;; |
| 6831 | esac |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6832 | |
| 6833 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6834 | sed -e "$ac_comsub |
| 6835 | s%@configure_input@%$configure_input%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6836 | s%@srcdir@%$srcdir%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6837 | s%@top_srcdir@%$top_srcdir%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6838 | s%@INSTALL@%$INSTALL%g |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6839 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6840 | fi; done |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6841 | rm -f conftest.s* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6842 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6843 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 6844 | # 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] | 6845 | # |
| 6846 | # ac_d sets the value in "#define NAME VALUE" lines. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6847 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 6848 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6849 | ac_dC='\3' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6850 | ac_dD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6851 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6852 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 6853 | ac_uB='\([ ]\)%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6854 | ac_uC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6855 | ac_uD='\4%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6856 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6857 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 6858 | ac_eB='$%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6859 | ac_eC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6860 | ac_eD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6861 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6862 | if test "${CONFIG_HEADERS+set}" != set; then |
| 6863 | EOF |
| 6864 | cat >> $CONFIG_STATUS <<EOF |
| 6865 | CONFIG_HEADERS="config.h" |
| 6866 | EOF |
| 6867 | cat >> $CONFIG_STATUS <<\EOF |
| 6868 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6869 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6870 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6871 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6872 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6873 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 6874 | *) ac_file_in="${ac_file}.in" ;; |
| 6875 | esac |
| 6876 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6877 | echo creating $ac_file |
| 6878 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6879 | rm -f conftest.frag conftest.in conftest.out |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6880 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 6881 | cat $ac_file_inputs > conftest.in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6882 | |
| 6883 | EOF |
| 6884 | |
| 6885 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 6886 | # the proper values into config.h.in to produce config.h. And first: |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6887 | # Protect against being on the right side of a sed subst in config.status. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6888 | # Protect against being in an unquoted here document in config.status. |
| 6889 | rm -f conftest.vals |
| 6890 | cat > conftest.hdr <<\EOF |
| 6891 | s/[\\&%]/\\&/g |
| 6892 | s%[\\$`]%\\&%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6893 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6894 | s%ac_d%ac_u%gp |
| 6895 | s%ac_u%ac_e%gp |
| 6896 | EOF |
| 6897 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 6898 | rm -f conftest.hdr |
| 6899 | |
| 6900 | # This sed command replaces #undef with comments. This is necessary, for |
| 6901 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 6902 | # on some systems where configure will not decide to define it. |
| 6903 | cat >> conftest.vals <<\EOF |
| 6904 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 6905 | EOF |
| 6906 | |
| 6907 | # Break up conftest.vals because some shells have a limit on |
| 6908 | # the size of here documents, and old seds have small limits too. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6909 | |
| 6910 | rm -f conftest.tail |
| 6911 | while : |
| 6912 | do |
| 6913 | ac_lines=`grep -c . conftest.vals` |
| 6914 | # grep -c gives empty output for an empty file on some AIX systems. |
| 6915 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 6916 | # Write a limited-size here document to conftest.frag. |
| 6917 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 6918 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 6919 | echo 'CEOF |
| 6920 | sed -f conftest.frag conftest.in > conftest.out |
| 6921 | rm -f conftest.in |
| 6922 | mv conftest.out conftest.in |
| 6923 | ' >> $CONFIG_STATUS |
| 6924 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 6925 | rm -f conftest.vals |
| 6926 | mv conftest.tail conftest.vals |
| 6927 | done |
| 6928 | rm -f conftest.vals |
| 6929 | |
| 6930 | cat >> $CONFIG_STATUS <<\EOF |
| 6931 | rm -f conftest.frag conftest.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6932 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6933 | cat conftest.in >> conftest.h |
| 6934 | rm -f conftest.in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6935 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6936 | echo "$ac_file is unchanged" |
| 6937 | rm -f conftest.h |
| 6938 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6939 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 6940 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 6941 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 6942 | # The file is in a subdirectory. |
| 6943 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 6944 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6945 | rm -f $ac_file |
| 6946 | mv conftest.h $ac_file |
| 6947 | fi |
| 6948 | fi; done |
| 6949 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6950 | EOF |
| 6951 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6952 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6953 | EOF |
| 6954 | cat >> $CONFIG_STATUS <<\EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6955 | |
| 6956 | exit 0 |
| 6957 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6958 | chmod +x $CONFIG_STATUS |
| 6959 | rm -fr confdefs* $ac_clean_files |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6960 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6961 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 6962 | |
| 6963 | echo "creating Setup" |
| 6964 | if test ! -f Modules/Setup |
| 6965 | then |
| 6966 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 6967 | fi |
| 6968 | |
| 6969 | echo "creating Setup.local" |
| 6970 | if test ! -f Modules/Setup.local |
| 6971 | then |
| 6972 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 6973 | fi |
| 6974 | |
| 6975 | echo "creating Makefile" |
| 6976 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 6977 | -s Modules Modules/Setup.config \ |
| 6978 | Modules/Setup Modules/Setup.local |