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 | |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 3 | # From configure.in Revision: 1.176 |
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 | c0d24d8 | 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 | c0d24d8 | 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 | c0d24d8 | 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 |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 27 | --with-suffix=.exe set executable suffix" |
| 28 | ac_help="$ac_help |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 29 | --with-pydebug build with Py_DEBUG defined" |
| 30 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 31 | --with-libs='lib1 ...' link against additional libs" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 32 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 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 | c0d24d8 | 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 |
Fred Drake | a50d6ec | 2000-08-31 16:13:20 +0000 | [diff] [blame] | 43 | --with(out)-libdb disable/enable bsddb module" |
| 44 | ac_help="$ac_help |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 45 | --with-wctype-functions use wctype.h functions" |
| 46 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 47 | --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 48 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 49 | --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 50 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 51 | --with-fpectl enable SIGFPE catching" |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 52 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 53 | --with-libm=STRING math library" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 54 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 55 | --with-libc=STRING C library" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 56 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 57 | # Initialize some variables set by options. |
| 58 | # The variables have the same names as the options, with |
| 59 | # dashes changed to underlines. |
| 60 | build=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 61 | cache_file=./config.cache |
| 62 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 63 | host=NONE |
| 64 | no_create= |
| 65 | nonopt=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 66 | no_recursion= |
| 67 | prefix=NONE |
| 68 | program_prefix=NONE |
| 69 | program_suffix=NONE |
| 70 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 71 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 72 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 73 | srcdir= |
| 74 | target=NONE |
| 75 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 76 | x_includes=NONE |
| 77 | x_libraries=NONE |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 78 | bindir='${exec_prefix}/bin' |
| 79 | sbindir='${exec_prefix}/sbin' |
| 80 | libexecdir='${exec_prefix}/libexec' |
| 81 | datadir='${prefix}/share' |
| 82 | sysconfdir='${prefix}/etc' |
| 83 | sharedstatedir='${prefix}/com' |
| 84 | localstatedir='${prefix}/var' |
| 85 | libdir='${exec_prefix}/lib' |
| 86 | includedir='${prefix}/include' |
| 87 | oldincludedir='/usr/include' |
| 88 | infodir='${prefix}/info' |
| 89 | mandir='${prefix}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 90 | |
| 91 | # Initialize some other variables. |
| 92 | subdirs= |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 93 | MFLAGS= MAKEFLAGS= |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 94 | SHELL=${CONFIG_SHELL-/bin/sh} |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 95 | # Maximum number of lines to put in a shell here document. |
| 96 | ac_max_here_lines=12 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 97 | |
| 98 | ac_prev= |
| 99 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 100 | do |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 101 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 102 | # If the previous option needs an argument, assign it. |
| 103 | if test -n "$ac_prev"; then |
| 104 | eval "$ac_prev=\$ac_option" |
| 105 | ac_prev= |
| 106 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 107 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 108 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 109 | case "$ac_option" in |
| 110 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 111 | *) ac_optarg= ;; |
| 112 | esac |
| 113 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 114 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 115 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 116 | case "$ac_option" in |
| 117 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 118 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 119 | ac_prev=bindir ;; |
| 120 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 121 | bindir="$ac_optarg" ;; |
| 122 | |
| 123 | -build | --build | --buil | --bui | --bu) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 124 | ac_prev=build ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 125 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 126 | build="$ac_optarg" ;; |
| 127 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 128 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 129 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 130 | ac_prev=cache_file ;; |
| 131 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 132 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 133 | cache_file="$ac_optarg" ;; |
| 134 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 135 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 136 | ac_prev=datadir ;; |
| 137 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 138 | | --da=*) |
| 139 | datadir="$ac_optarg" ;; |
| 140 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 141 | -disable-* | --disable-*) |
| 142 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 143 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 144 | 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] | 145 | { 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] | 146 | fi |
| 147 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 148 | eval "enable_${ac_feature}=no" ;; |
| 149 | |
| 150 | -enable-* | --enable-*) |
| 151 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 152 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 153 | 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] | 154 | { 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] | 155 | fi |
| 156 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 157 | case "$ac_option" in |
| 158 | *=*) ;; |
| 159 | *) ac_optarg=yes ;; |
| 160 | esac |
| 161 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 162 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 163 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 164 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 165 | | --exec | --exe | --ex) |
| 166 | ac_prev=exec_prefix ;; |
| 167 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 168 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 169 | | --exec=* | --exe=* | --ex=*) |
| 170 | exec_prefix="$ac_optarg" ;; |
| 171 | |
| 172 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 173 | # Obsolete; use --with-gas. |
| 174 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 175 | |
| 176 | -help | --help | --hel | --he) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 177 | # Omit some internal or obsolete options to make the list less imposing. |
| 178 | # 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] | 179 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 180 | Usage: configure [options] [host] |
| 181 | Options: [defaults in brackets after descriptions] |
| 182 | Configuration: |
| 183 | --cache-file=FILE cache test results in FILE |
| 184 | --help print this message |
| 185 | --no-create do not create output files |
| 186 | --quiet, --silent do not print \`checking...' messages |
| 187 | --version print the version of autoconf that created configure |
| 188 | Directory and file names: |
| 189 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 190 | [$ac_default_prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 191 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 192 | [same as prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 193 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 194 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 195 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 196 | --datadir=DIR read-only architecture-independent data in DIR |
| 197 | [PREFIX/share] |
| 198 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 199 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 200 | [PREFIX/com] |
| 201 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 202 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 203 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 204 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 205 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 206 | --mandir=DIR man documentation in DIR [PREFIX/man] |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 207 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 208 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 209 | --program-suffix=SUFFIX append SUFFIX to installed program names |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 210 | --program-transform-name=PROGRAM |
| 211 | run sed PROGRAM on installed program names |
| 212 | EOF |
| 213 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 214 | Host type: |
| 215 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 216 | --host=HOST configure for HOST [guessed] |
| 217 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 218 | Features and packages: |
| 219 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 220 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 221 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 222 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 223 | --x-includes=DIR X include files are in DIR |
| 224 | --x-libraries=DIR X library files are in DIR |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 225 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 226 | if test -n "$ac_help"; then |
| 227 | echo "--enable and --with options recognized:$ac_help" |
| 228 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 229 | exit 0 ;; |
| 230 | |
| 231 | -host | --host | --hos | --ho) |
| 232 | ac_prev=host ;; |
| 233 | -host=* | --host=* | --hos=* | --ho=*) |
| 234 | host="$ac_optarg" ;; |
| 235 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 236 | -includedir | --includedir | --includedi | --included | --include \ |
| 237 | | --includ | --inclu | --incl | --inc) |
| 238 | ac_prev=includedir ;; |
| 239 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 240 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 241 | includedir="$ac_optarg" ;; |
| 242 | |
| 243 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 244 | ac_prev=infodir ;; |
| 245 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 246 | infodir="$ac_optarg" ;; |
| 247 | |
| 248 | -libdir | --libdir | --libdi | --libd) |
| 249 | ac_prev=libdir ;; |
| 250 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 251 | libdir="$ac_optarg" ;; |
| 252 | |
| 253 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 254 | | --libexe | --libex | --libe) |
| 255 | ac_prev=libexecdir ;; |
| 256 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 257 | | --libexe=* | --libex=* | --libe=*) |
| 258 | libexecdir="$ac_optarg" ;; |
| 259 | |
| 260 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 261 | | --localstate | --localstat | --localsta | --localst \ |
| 262 | | --locals | --local | --loca | --loc | --lo) |
| 263 | ac_prev=localstatedir ;; |
| 264 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 265 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 266 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 267 | localstatedir="$ac_optarg" ;; |
| 268 | |
| 269 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 270 | ac_prev=mandir ;; |
| 271 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 272 | mandir="$ac_optarg" ;; |
| 273 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 274 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 275 | # Obsolete; use --without-fp. |
| 276 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 277 | |
| 278 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 279 | | --no-cr | --no-c) |
| 280 | no_create=yes ;; |
| 281 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 282 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 283 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 284 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 285 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 286 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 287 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 288 | | --oldin | --oldi | --old | --ol | --o) |
| 289 | ac_prev=oldincludedir ;; |
| 290 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 291 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 292 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 293 | oldincludedir="$ac_optarg" ;; |
| 294 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 295 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 296 | ac_prev=prefix ;; |
| 297 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 298 | prefix="$ac_optarg" ;; |
| 299 | |
| 300 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 301 | | --program-pre | --program-pr | --program-p) |
| 302 | ac_prev=program_prefix ;; |
| 303 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 304 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 305 | program_prefix="$ac_optarg" ;; |
| 306 | |
| 307 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 308 | | --program-suf | --program-su | --program-s) |
| 309 | ac_prev=program_suffix ;; |
| 310 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 311 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 312 | program_suffix="$ac_optarg" ;; |
| 313 | |
| 314 | -program-transform-name | --program-transform-name \ |
| 315 | | --program-transform-nam | --program-transform-na \ |
| 316 | | --program-transform-n | --program-transform- \ |
| 317 | | --program-transform | --program-transfor \ |
| 318 | | --program-transfo | --program-transf \ |
| 319 | | --program-trans | --program-tran \ |
| 320 | | --progr-tra | --program-tr | --program-t) |
| 321 | ac_prev=program_transform_name ;; |
| 322 | -program-transform-name=* | --program-transform-name=* \ |
| 323 | | --program-transform-nam=* | --program-transform-na=* \ |
| 324 | | --program-transform-n=* | --program-transform-=* \ |
| 325 | | --program-transform=* | --program-transfor=* \ |
| 326 | | --program-transfo=* | --program-transf=* \ |
| 327 | | --program-trans=* | --program-tran=* \ |
| 328 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 329 | program_transform_name="$ac_optarg" ;; |
| 330 | |
| 331 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 332 | | -silent | --silent | --silen | --sile | --sil) |
| 333 | silent=yes ;; |
| 334 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 335 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 336 | ac_prev=sbindir ;; |
| 337 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 338 | | --sbi=* | --sb=*) |
| 339 | sbindir="$ac_optarg" ;; |
| 340 | |
| 341 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 342 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 343 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 344 | | --sha | --sh) |
| 345 | ac_prev=sharedstatedir ;; |
| 346 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 347 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 348 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 349 | | --sha=* | --sh=*) |
| 350 | sharedstatedir="$ac_optarg" ;; |
| 351 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 352 | -site | --site | --sit) |
| 353 | ac_prev=site ;; |
| 354 | -site=* | --site=* | --sit=*) |
| 355 | site="$ac_optarg" ;; |
| 356 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 357 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 358 | ac_prev=srcdir ;; |
| 359 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 360 | srcdir="$ac_optarg" ;; |
| 361 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 362 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 363 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 364 | ac_prev=sysconfdir ;; |
| 365 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 366 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 367 | sysconfdir="$ac_optarg" ;; |
| 368 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 369 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 370 | ac_prev=target ;; |
| 371 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 372 | target="$ac_optarg" ;; |
| 373 | |
| 374 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 375 | verbose=yes ;; |
| 376 | |
| 377 | -version | --version | --versio | --versi | --vers) |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 378 | echo "configure generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 379 | exit 0 ;; |
| 380 | |
| 381 | -with-* | --with-*) |
| 382 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 383 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 384 | 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] | 385 | { 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] | 386 | fi |
| 387 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 388 | case "$ac_option" in |
| 389 | *=*) ;; |
| 390 | *) ac_optarg=yes ;; |
| 391 | esac |
| 392 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 393 | |
| 394 | -without-* | --without-*) |
| 395 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 396 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 397 | 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] | 398 | { 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] | 399 | fi |
| 400 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 401 | eval "with_${ac_package}=no" ;; |
| 402 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 403 | --x) |
| 404 | # Obsolete; use --with-x. |
| 405 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 406 | |
| 407 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 408 | | --x-incl | --x-inc | --x-in | --x-i) |
| 409 | ac_prev=x_includes ;; |
| 410 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 411 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 412 | x_includes="$ac_optarg" ;; |
| 413 | |
| 414 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 415 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 416 | ac_prev=x_libraries ;; |
| 417 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 418 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 419 | x_libraries="$ac_optarg" ;; |
| 420 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 421 | -*) { 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] | 422 | ;; |
| 423 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 424 | *) |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 425 | 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] | 426 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 427 | fi |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 428 | if test "x$nonopt" != xNONE; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 429 | { 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] | 430 | fi |
| 431 | nonopt="$ac_option" |
| 432 | ;; |
| 433 | |
| 434 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 435 | done |
| 436 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 437 | if test -n "$ac_prev"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 438 | { 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] | 439 | fi |
| 440 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 441 | 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] | 442 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 443 | # File descriptor usage: |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 444 | # 0 standard input |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 445 | # 1 file creation |
| 446 | # 2 errors and warnings |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 447 | # 3 some systems may open it to /dev/tty |
| 448 | # 4 used on the Kubota Titan |
| 449 | # 6 checking for... messages and results |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 450 | # 5 compiler messages saved in config.log |
| 451 | if test "$silent" = yes; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 452 | exec 6>/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 453 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 454 | exec 6>&1 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 455 | fi |
| 456 | exec 5>./config.log |
| 457 | |
| 458 | echo "\ |
| 459 | This file contains any messages produced by compilers while |
| 460 | running configure, to aid debugging if configure makes a mistake. |
| 461 | " 1>&5 |
| 462 | |
| 463 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 464 | # Also quote any args containing shell metacharacters. |
| 465 | ac_configure_args= |
| 466 | for ac_arg |
| 467 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 468 | case "$ac_arg" in |
| 469 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 470 | | --no-cr | --no-c) ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 471 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 472 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 473 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 474 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 475 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 476 | esac |
| 477 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 478 | |
| 479 | # NLS nuisances. |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 480 | # Only set these to C if already set. These must not be set unconditionally |
| 481 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 482 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 483 | # Non-C LC_CTYPE values break the ctype check. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 484 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 485 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 486 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 487 | 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] | 488 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 489 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 490 | rm -rf conftest* confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 491 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 492 | echo > confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 493 | |
| 494 | # A filename unique to this package, relative to the directory that |
| 495 | # 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] | 496 | ac_unique_file=Include/object.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 497 | |
| 498 | # Find the source files, if location was not specified. |
| 499 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 500 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 501 | # Try the directory containing this script, then its parent. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 502 | ac_prog=$0 |
| 503 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 504 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 505 | srcdir=$ac_confdir |
| 506 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 507 | srcdir=.. |
| 508 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 509 | else |
| 510 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 511 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 512 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 513 | if test "$ac_srcdir_defaulted" = yes; then |
| 514 | { 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] | 515 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 516 | { 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] | 517 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 518 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 519 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 520 | |
| 521 | # Prefer explicitly selected file to automatically selected ones. |
| 522 | if test -z "$CONFIG_SITE"; then |
| 523 | if test "x$prefix" != xNONE; then |
| 524 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 525 | else |
| 526 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 527 | fi |
| 528 | fi |
| 529 | for ac_site_file in $CONFIG_SITE; do |
| 530 | if test -r "$ac_site_file"; then |
| 531 | echo "loading site script $ac_site_file" |
| 532 | . "$ac_site_file" |
| 533 | fi |
| 534 | done |
| 535 | |
| 536 | if test -r "$cache_file"; then |
| 537 | echo "loading cache $cache_file" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 538 | . $cache_file |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 539 | else |
| 540 | echo "creating cache $cache_file" |
| 541 | > $cache_file |
| 542 | fi |
| 543 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 544 | ac_ext=c |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 545 | # 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] | 546 | ac_cpp='$CPP $CPPFLAGS' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 547 | 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] | 548 | 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] | 549 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 550 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 551 | ac_exeext= |
| 552 | ac_objext=o |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 553 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 554 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 555 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 556 | ac_n= ac_c=' |
| 557 | ' ac_t=' ' |
| 558 | else |
| 559 | ac_n=-n ac_c= ac_t= |
| 560 | fi |
| 561 | else |
| 562 | ac_n= ac_c='\c' ac_t= |
| 563 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 564 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 565 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 566 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 567 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 568 | # Set VERSION so we only need to edit in one place (i.e., here) |
| 569 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 570 | VERSION=2.0 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 571 | |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 572 | # NEXTSTEP|MacOSX|Darwin stuff |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 573 | 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] | 574 | |
| 575 | echo $ac_n "checking for --with-next-archs""... $ac_c" 1>&6 |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 576 | echo "configure:577: checking for --with-next-archs" >&5 |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 577 | # Check whether --with-next-archs or --without-next-archs was given. |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 578 | if test "${with_next_archs+set}" = set; then |
| 579 | withval="$with_next_archs" |
| 580 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 581 | if test -n "$withval"; then |
| 582 | ac_arch_flags=`/usr/lib/arch_tool -archify_list $withval` |
| 583 | # GCC does not currently support multi archs on the NeXT |
| 584 | with_gcc=no |
| 585 | fi |
| 586 | echo "$ac_t""$with_next_archs" 1>&6 |
| 587 | |
| 588 | else |
| 589 | echo "$ac_t""none: using `arch`" 1>&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 590 | fi |
| 591 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 592 | |
| 593 | if test -z "$MACHDEP" |
| 594 | then |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 595 | ac_sys_system=`uname -s` |
| 596 | if test "$ac_sys_system" = "Darwin" ; then |
| 597 | ac_sys_release=`uname -r` |
| 598 | else |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 599 | set X `hostinfo | egrep '(NeXT Mach|Kernel Release).*:' | \ |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 600 | sed -e 's/://' -e 's/\./_/'` && \ |
| 601 | ac_sys_system=next && ac_sys_release=$4 |
| 602 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 603 | |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 604 | MACHDEP="$ac_sys_system$ac_sys_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 605 | fi |
| 606 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 607 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 608 | # Check whether --with-next-framework or --without-next-framework was given. |
| 609 | if test "${with_next_framework+set}" = set; then |
| 610 | withval="$with_next_framework" |
| 611 | : |
| 612 | fi |
| 613 | |
| 614 | # Check whether --with-dyld or --without-dyld was given. |
| 615 | if test "${with_dyld+set}" = set; then |
| 616 | withval="$with_dyld" |
| 617 | : |
| 618 | fi |
| 619 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 620 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 621 | # Set name for machine-dependent library files |
| 622 | |
| 623 | echo $ac_n "checking MACHDEP""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 624 | echo "configure:625: checking MACHDEP" >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 625 | if test -z "$MACHDEP" |
| 626 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 627 | ac_sys_system=`uname -s` |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 628 | 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] | 629 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 630 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 631 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 632 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 633 | ac_md_system=`echo $ac_sys_system | |
| 634 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 635 | ac_md_release=`echo $ac_sys_release | |
| 636 | tr -d '/ ' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 637 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 638 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 639 | case $MACHDEP in |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 640 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 641 | esac |
| 642 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 643 | |
| 644 | # |
| 645 | # SGI compilers allow the specification of the both the ABI and the |
| 646 | # ISA on the command line. Depending on the values of these switches, |
| 647 | # different and often incompatable code will be generated. |
| 648 | # |
| 649 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 650 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 651 | # variable is also adjusted. |
| 652 | # |
| 653 | |
| 654 | if test ! -z "$SGI_ABI" |
| 655 | then |
| 656 | CC="cc $SGI_ABI" |
| 657 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 658 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 659 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 660 | echo "$ac_t""$MACHDEP" 1>&6 |
| 661 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 662 | # |
| 663 | # CCC is the command that compiles C++ programs |
| 664 | # |
| 665 | # Not all make programs have this predefined. |
| 666 | # |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 667 | #AC_SUBST(SET_CCC) |
| 668 | #AC_MSG_CHECKING(CCC) |
| 669 | #if test -z "$CCC" |
| 670 | #then |
| 671 | # case $ac_sys_system in |
| 672 | # IRIX*) SET_CCC="CCC= CC ${SGI_ABI}";; |
| 673 | # Linux*) SET_CCC="CCC= g++";; |
| 674 | # *) SET_CCC="" |
| 675 | # esac |
| 676 | #else |
| 677 | # SET_CCC="CCC= ${CCC}" |
| 678 | #fi |
| 679 | #AC_MSG_RESULT($SET_CCC) |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 680 | |
| 681 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 682 | # checks for alternative programs |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 683 | echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 684 | echo "configure:685: checking for --without-gcc" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 685 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 686 | if test "${with_gcc+set}" = set; then |
| 687 | withval="$with_gcc" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 688 | |
| 689 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 690 | no) CC=cc |
| 691 | without_gcc=yes;; |
| 692 | yes) CC=gcc |
| 693 | without_gcc=no;; |
| 694 | *) CC=$withval |
| 695 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 696 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 697 | else |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 698 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 699 | case $ac_sys_system in |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 700 | OSF1) CC=cc |
| 701 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 702 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 703 | case $BE_HOST_CPU in |
| 704 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 705 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 706 | without_gcc=yes |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 707 | OPT="-O -D'DL_EXPORT(RTYPE)=__declspec(dllexport) RTYPE' -D'DL_IMPORT(RTYPE)=__declspec(dllexport) RTYPE' -export pragma" |
| 708 | CCSHARED="UDL_IMPORT -D'DL_IMPORT(RTYPE)=__declspec(dllimport) RTYPE'" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 709 | LDFLAGS="$LDFLAGS -nodup" |
| 710 | |
| 711 | AR="$PWD/BeOS/ar-fake" |
| 712 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 713 | ;; |
| 714 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 715 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 716 | without_gcc=no |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 717 | OPT=-O |
| 718 | # Really should use srcdir instead of PWD |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 719 | AR="$PWD/BeOS/ar-fake" |
| 720 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 721 | ;; |
| 722 | *) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 723 | { 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] | 724 | ;; |
| 725 | esac |
| 726 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 727 | Monterey*) |
| 728 | RANLIB=: |
| 729 | without_gcc=;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 730 | *) without_gcc=no;; |
| 731 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 732 | fi |
| 733 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 734 | echo "$ac_t""$without_gcc" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 735 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 736 | |
| 737 | |
| 738 | MAINOBJ=python.o |
| 739 | echo $ac_n "checking for --with-cxx=<compiler>""... $ac_c" 1>&6 |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 740 | echo "configure:741: checking for --with-cxx=<compiler>" >&5 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 741 | # Check whether --with-cxx or --without-cxx was given. |
| 742 | if test "${with_cxx+set}" = set; then |
| 743 | withval="$with_cxx" |
| 744 | |
| 745 | case $withval in |
| 746 | no) CXX= |
| 747 | with_cxx=no;; |
| 748 | *) CXX=$withval |
| 749 | MAINOBJ=ccpython.o |
| 750 | with_cxx=$withval;; |
| 751 | esac |
| 752 | else |
| 753 | |
| 754 | with_cxx=no |
| 755 | |
| 756 | fi |
| 757 | |
| 758 | echo "$ac_t""$with_cxx" 1>&6 |
Guido van Rossum | e126233 | 2000-09-22 19:41:56 +0000 | [diff] [blame] | 759 | SET_CXX="CXX=$CXX" |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 760 | |
| 761 | #AC_MSG_CHECKING(CCC) |
| 762 | #if test -z "$CCC" |
| 763 | #then |
| 764 | # case $ac_sys_system in |
| 765 | # IRIX*) SET_CCC="CCC= CC ${SGI_ABI}";; |
| 766 | # Linux*) SET_CCC="CCC= g++";; |
| 767 | # *) SET_CCC="" |
| 768 | # esac |
| 769 | #else |
| 770 | # SET_CCC="CCC= ${CCC}" |
| 771 | #fi |
| 772 | #AC_MSG_RESULT($SET_CCC) |
| 773 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 774 | # If the user switches compilers, we can't believe the cache |
| 775 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 776 | then |
| 777 | { echo "configure: error: cached CC is different -- throw away $cache_file |
| 778 | (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; } |
| 779 | fi |
| 780 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 781 | # Extract the first word of "gcc", so it can be a program name with args. |
| 782 | set dummy gcc; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 783 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 784 | echo "configure:785: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 785 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 786 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 787 | else |
| 788 | if test -n "$CC"; then |
| 789 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 790 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 791 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 792 | ac_dummy="$PATH" |
| 793 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 794 | test -z "$ac_dir" && ac_dir=. |
| 795 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 796 | ac_cv_prog_CC="gcc" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 797 | break |
| 798 | fi |
| 799 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 800 | IFS="$ac_save_ifs" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 801 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 802 | fi |
| 803 | CC="$ac_cv_prog_CC" |
| 804 | if test -n "$CC"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 805 | echo "$ac_t""$CC" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 806 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 807 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 808 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 809 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 810 | if test -z "$CC"; then |
| 811 | # Extract the first word of "cc", so it can be a program name with args. |
| 812 | set dummy cc; ac_word=$2 |
| 813 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 814 | echo "configure:815: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 815 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 816 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 817 | else |
| 818 | if test -n "$CC"; then |
| 819 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 820 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 821 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 822 | ac_prog_rejected=no |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 823 | ac_dummy="$PATH" |
| 824 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 825 | test -z "$ac_dir" && ac_dir=. |
| 826 | if test -f $ac_dir/$ac_word; then |
| 827 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 828 | ac_prog_rejected=yes |
| 829 | continue |
| 830 | fi |
| 831 | ac_cv_prog_CC="cc" |
| 832 | break |
| 833 | fi |
| 834 | done |
| 835 | IFS="$ac_save_ifs" |
| 836 | if test $ac_prog_rejected = yes; then |
| 837 | # We found a bogon in the path, so make sure we never use it. |
| 838 | set dummy $ac_cv_prog_CC |
| 839 | shift |
| 840 | if test $# -gt 0; then |
| 841 | # We chose a different compiler from the bogus one. |
| 842 | # However, it has the same basename, so the bogon will be chosen |
| 843 | # first if we set CC to just the basename; use the full file name. |
| 844 | shift |
| 845 | set dummy "$ac_dir/$ac_word" "$@" |
| 846 | shift |
| 847 | ac_cv_prog_CC="$@" |
| 848 | fi |
| 849 | fi |
| 850 | fi |
| 851 | fi |
| 852 | CC="$ac_cv_prog_CC" |
| 853 | if test -n "$CC"; then |
| 854 | echo "$ac_t""$CC" 1>&6 |
| 855 | else |
| 856 | echo "$ac_t""no" 1>&6 |
| 857 | fi |
| 858 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 859 | if test -z "$CC"; then |
| 860 | case "`uname -s`" in |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 861 | *win32* | *WIN32*) |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 862 | # Extract the first word of "cl", so it can be a program name with args. |
| 863 | set dummy cl; ac_word=$2 |
| 864 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 865 | echo "configure:866: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 866 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 867 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 868 | else |
| 869 | if test -n "$CC"; then |
| 870 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 871 | else |
| 872 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 873 | ac_dummy="$PATH" |
| 874 | for ac_dir in $ac_dummy; do |
| 875 | test -z "$ac_dir" && ac_dir=. |
| 876 | if test -f $ac_dir/$ac_word; then |
| 877 | ac_cv_prog_CC="cl" |
| 878 | break |
| 879 | fi |
| 880 | done |
| 881 | IFS="$ac_save_ifs" |
| 882 | fi |
| 883 | fi |
| 884 | CC="$ac_cv_prog_CC" |
| 885 | if test -n "$CC"; then |
| 886 | echo "$ac_t""$CC" 1>&6 |
| 887 | else |
| 888 | echo "$ac_t""no" 1>&6 |
| 889 | fi |
| 890 | ;; |
| 891 | esac |
| 892 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 893 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 894 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 895 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 896 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| 897 | echo "configure:898: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 898 | |
| 899 | ac_ext=c |
| 900 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 901 | ac_cpp='$CPP $CPPFLAGS' |
| 902 | 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] | 903 | 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] | 904 | cross_compiling=$ac_cv_prog_cc_cross |
| 905 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 906 | cat > conftest.$ac_ext << EOF |
| 907 | |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 908 | #line 909 "configure" |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 909 | #include "confdefs.h" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 910 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 911 | main(){return(0);} |
| 912 | EOF |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 913 | if { (eval echo configure:914: \"$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] | 914 | ac_cv_prog_cc_works=yes |
| 915 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 916 | if (./conftest; exit) 2>/dev/null; then |
| 917 | ac_cv_prog_cc_cross=no |
| 918 | else |
| 919 | ac_cv_prog_cc_cross=yes |
| 920 | fi |
| 921 | else |
| 922 | echo "configure: failed program was:" >&5 |
| 923 | cat conftest.$ac_ext >&5 |
| 924 | ac_cv_prog_cc_works=no |
| 925 | fi |
| 926 | rm -fr conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 927 | ac_ext=c |
| 928 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 929 | ac_cpp='$CPP $CPPFLAGS' |
| 930 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 931 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 932 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 933 | |
| 934 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 935 | if test $ac_cv_prog_cc_works = no; then |
| 936 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 937 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 938 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| 939 | echo "configure:940: 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] | 940 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 941 | cross_compiling=$ac_cv_prog_cc_cross |
| 942 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 943 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 944 | echo "configure:945: checking whether we are using GNU C" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 945 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 946 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 947 | else |
| 948 | cat > conftest.c <<EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 949 | #ifdef __GNUC__ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 950 | yes; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 951 | #endif |
| 952 | EOF |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 953 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:954: \"$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] | 954 | ac_cv_prog_gcc=yes |
| 955 | else |
| 956 | ac_cv_prog_gcc=no |
| 957 | fi |
| 958 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 959 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 960 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 961 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 962 | if test $ac_cv_prog_gcc = yes; then |
| 963 | GCC=yes |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 964 | else |
| 965 | GCC= |
| 966 | fi |
| 967 | |
| 968 | ac_test_CFLAGS="${CFLAGS+set}" |
| 969 | ac_save_CFLAGS="$CFLAGS" |
| 970 | CFLAGS= |
| 971 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 972 | echo "configure:973: checking whether ${CC-cc} accepts -g" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 973 | 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] | 974 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 975 | else |
| 976 | echo 'void f(){}' > conftest.c |
| 977 | 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] | 978 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 979 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 980 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 981 | fi |
| 982 | rm -f conftest* |
| 983 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 984 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 985 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 986 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 987 | if test "$ac_test_CFLAGS" = set; then |
| 988 | CFLAGS="$ac_save_CFLAGS" |
| 989 | elif test $ac_cv_prog_cc_g = yes; then |
| 990 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 991 | CFLAGS="-g -O2" |
| 992 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 993 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 994 | fi |
| 995 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 996 | if test "$GCC" = yes; then |
| 997 | CFLAGS="-O2" |
| 998 | else |
| 999 | CFLAGS= |
| 1000 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1001 | fi |
| 1002 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1003 | |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1004 | echo $ac_n "checking for --with-suffix""... $ac_c" 1>&6 |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1005 | echo "configure:1006: checking for --with-suffix" >&5 |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1006 | # Check whether --with-suffix or --without-suffix was given. |
| 1007 | if test "${with_suffix+set}" = set; then |
| 1008 | withval="$with_suffix" |
| 1009 | |
| 1010 | case $withval in |
| 1011 | no) EXE=;; |
| 1012 | yes) EXE=.exe;; |
| 1013 | *) EXE=$withval;; |
| 1014 | esac |
| 1015 | fi |
| 1016 | |
| 1017 | echo "$ac_t""$EXE" 1>&6 |
| 1018 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 1019 | case $MACHDEP in |
| 1020 | bsdos*) |
| 1021 | case $CC in |
| 1022 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 1023 | esac;; |
| 1024 | esac |
| 1025 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1026 | case $ac_sys_system in |
| 1027 | hp*|HP*) |
| 1028 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 1029 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1030 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1031 | Monterey*) |
| 1032 | case $CC in |
| 1033 | cc) CC="$CC -Wl,-Bexport";; |
| 1034 | esac;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1035 | esac |
| 1036 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1037 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 1038 | # name of the library into which to insert object files). On systems |
| 1039 | # without shared libraries, LDLIBRARY is the same as LIBRARY (defined in |
| 1040 | # the Makefiles). |
| 1041 | |
| 1042 | |
| 1043 | LDLIBRARY='' |
| 1044 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1045 | # LINKCC is the command that links the python executable -- default is $(CC). |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1046 | # 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] | 1047 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1048 | |
| 1049 | echo $ac_n "checking LINKCC""... $ac_c" 1>&6 |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1050 | echo "configure:1051: checking LINKCC" >&5 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1051 | if test -z "$LINKCC" -a ! -z "$CXX" |
| 1052 | then |
| 1053 | LINKCC="$CXX" |
| 1054 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1055 | if test -z "$LINKCC" |
| 1056 | then |
| 1057 | case $ac_sys_system in |
| 1058 | AIX*) |
Guido van Rossum | 45140f9 | 1997-08-29 18:44:06 +0000 | [diff] [blame] | 1059 | LINKCC="\$(srcdir)/makexp_aix python.exp \"\" \$(LIBRARY); \$(PURIFY) \$(CC)";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 1060 | dgux*) |
| 1061 | LINKCC="LD_RUN_PATH=$libdir \$(PURIFY) \$(CC)";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1062 | Monterey64*) |
| 1063 | LINKCC="\$(PURIFY) \$(CC) -L/usr/lib/ia64l64";; |
Guido van Rossum | 25f9303 | 1997-08-18 16:00:04 +0000 | [diff] [blame] | 1064 | *) LINKCC="\$(PURIFY) \$(CC)";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1065 | esac |
| 1066 | fi |
| 1067 | echo "$ac_t""$LINKCC" 1>&6 |
| 1068 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1069 | echo $ac_n "checking LDLIBRARY""... $ac_c" 1>&6 |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1070 | echo "configure:1071: checking LDLIBRARY" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1071 | |
| 1072 | # NeXT framework builds require that the 'ar' library be converted into |
| 1073 | # a bundle using libtool. |
| 1074 | if test "$with_next_framework" |
| 1075 | then |
| 1076 | LDLIBRARY='libpython$(VERSION).dylib' |
| 1077 | fi |
| 1078 | |
| 1079 | # 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] | 1080 | case $MACHDEP in |
| 1081 | dguxR4) |
| 1082 | LDLIBRARY='libpython$(VERSION).so' |
| 1083 | OPT="$OPT -pic" |
| 1084 | ;; |
| 1085 | beos*) |
| 1086 | LDLIBRARY='libpython$(VERSION).so' |
| 1087 | ;; |
| 1088 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1089 | echo "$ac_t""$LDLIBRARY" 1>&6 |
| 1090 | |
| 1091 | # If LDLIBRARY is different from LIBRARY, emit a rule to build it. |
| 1092 | if test -z "$LDLIBRARY" |
| 1093 | then |
| 1094 | LDLIBRARY='libpython$(VERSION).a' |
| 1095 | MAKE_LDLIBRARY="true" |
| 1096 | else |
| 1097 | MAKE_LDLIBRARY='$(MAKE) $(LDLIBRARY)' |
| 1098 | fi |
| 1099 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1100 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1101 | set dummy ranlib; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1102 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1103 | echo "configure:1104: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1104 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1105 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1106 | else |
| 1107 | if test -n "$RANLIB"; then |
| 1108 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1109 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1110 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1111 | ac_dummy="$PATH" |
| 1112 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1113 | test -z "$ac_dir" && ac_dir=. |
| 1114 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1115 | ac_cv_prog_RANLIB="ranlib" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1116 | break |
| 1117 | fi |
| 1118 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1119 | IFS="$ac_save_ifs" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1120 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1121 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1122 | fi |
| 1123 | RANLIB="$ac_cv_prog_RANLIB" |
| 1124 | if test -n "$RANLIB"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1125 | echo "$ac_t""$RANLIB" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1126 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1127 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1128 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1129 | |
| 1130 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1131 | for ac_prog in ar aal |
| 1132 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1133 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1134 | set dummy $ac_prog; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1135 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1136 | echo "configure:1137: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1137 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1138 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1139 | else |
| 1140 | if test -n "$AR"; then |
| 1141 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 1142 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1143 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1144 | ac_dummy="$PATH" |
| 1145 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1146 | test -z "$ac_dir" && ac_dir=. |
| 1147 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1148 | ac_cv_prog_AR="$ac_prog" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1149 | break |
| 1150 | fi |
| 1151 | done |
| 1152 | IFS="$ac_save_ifs" |
| 1153 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1154 | fi |
| 1155 | AR="$ac_cv_prog_AR" |
| 1156 | if test -n "$AR"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1157 | echo "$ac_t""$AR" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1158 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1159 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1160 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1161 | |
| 1162 | test -n "$AR" && break |
| 1163 | done |
| 1164 | test -n "$AR" || AR="ar" |
| 1165 | |
| 1166 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1167 | |
| 1168 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1169 | # Install just never works :-( |
| 1170 | if test -z "$INSTALL" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1171 | then |
| 1172 | INSTALL=cp |
| 1173 | INSTALL_PROGRAM=cp |
| 1174 | INSTALL_DATA=cp |
| 1175 | else |
| 1176 | INSTALL_PROGRAM="$INSTALL" |
| 1177 | INSTALL_DATA="$INSTALL -m 644" |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1178 | fi |
| 1179 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1180 | # Not every filesystem supports hard links |
| 1181 | |
| 1182 | if test -z "$LN" ; then |
| 1183 | case $ac_sys_system in |
| 1184 | BeOS*) LN="ln -s";; |
| 1185 | *) LN=ln;; |
| 1186 | esac |
| 1187 | fi |
| 1188 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1189 | # Optimizer/debugger flags passed between Makefiles |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1190 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1191 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1192 | then |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 1193 | case $GCC in |
| 1194 | yes) |
| 1195 | case $ac_cv_prog_cc_g in |
Fred Drake | f4670e9 | 2000-10-12 17:11:38 +0000 | [diff] [blame] | 1196 | yes) OPT="-g -O2 -Wall -Wstrict-prototypes";; |
| 1197 | *) OPT="-O2 -Wall -Wstrict-prototypes";; |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 1198 | esac |
| 1199 | ;; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1200 | *) OPT="-O";; |
| 1201 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1202 | fi |
| 1203 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1204 | # The current (beta) Monterey compiler dies with optimizations |
| 1205 | case $ac_sys_system in |
| 1206 | Monterey*) OPT="";; |
| 1207 | esac |
| 1208 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1209 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 1210 | then |
| 1211 | OPT="$OPT $ac_arch_flags" |
| 1212 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1213 | # checks for UNIX variants that set C preprocessor variables |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1214 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1215 | echo "configure:1216: checking how to run the C preprocessor" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1216 | # On Suns, sometimes $CPP names a directory. |
| 1217 | if test -n "$CPP" && test -d "$CPP"; then |
| 1218 | CPP= |
| 1219 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1220 | if test -z "$CPP"; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1221 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1222 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1223 | else |
| 1224 | # This must be in double quotes, not single quotes, because CPP may get |
| 1225 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1226 | CPP="${CC-cc} -E" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1227 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 1228 | # not just through cpp. |
| 1229 | cat > conftest.$ac_ext <<EOF |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1230 | #line 1231 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1231 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1232 | #include <assert.h> |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1233 | Syntax Error |
| 1234 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1235 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1236 | { (eval echo configure:1237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1237 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1238 | if test -z "$ac_err"; then |
| 1239 | : |
| 1240 | else |
| 1241 | echo "$ac_err" >&5 |
| 1242 | echo "configure: failed program was:" >&5 |
| 1243 | cat conftest.$ac_ext >&5 |
| 1244 | rm -rf conftest* |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1245 | CPP="${CC-cc} -E -traditional-cpp" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1246 | cat > conftest.$ac_ext <<EOF |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1247 | #line 1248 "configure" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1248 | #include "confdefs.h" |
| 1249 | #include <assert.h> |
| 1250 | Syntax Error |
| 1251 | EOF |
| 1252 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1253 | { (eval echo configure:1254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1254 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1255 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1256 | : |
| 1257 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1258 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1259 | echo "configure: failed program was:" >&5 |
| 1260 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1261 | rm -rf conftest* |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1262 | CPP="${CC-cc} -nologo -E" |
| 1263 | cat > conftest.$ac_ext <<EOF |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1264 | #line 1265 "configure" |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1265 | #include "confdefs.h" |
| 1266 | #include <assert.h> |
| 1267 | Syntax Error |
| 1268 | EOF |
| 1269 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1270 | { (eval echo configure:1271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1271 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1272 | if test -z "$ac_err"; then |
| 1273 | : |
| 1274 | else |
| 1275 | echo "$ac_err" >&5 |
| 1276 | echo "configure: failed program was:" >&5 |
| 1277 | cat conftest.$ac_ext >&5 |
| 1278 | rm -rf conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1279 | CPP=/lib/cpp |
| 1280 | fi |
| 1281 | rm -f conftest* |
| 1282 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1283 | rm -f conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1284 | fi |
| 1285 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1286 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1287 | fi |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1288 | CPP="$ac_cv_prog_CPP" |
| 1289 | else |
| 1290 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1291 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1292 | echo "$ac_t""$CPP" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1293 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1294 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1295 | echo "configure:1296: checking for AIX" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1296 | cat > conftest.$ac_ext <<EOF |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1297 | #line 1298 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1298 | #include "confdefs.h" |
| 1299 | #ifdef _AIX |
| 1300 | yes |
| 1301 | #endif |
| 1302 | |
| 1303 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1304 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1305 | egrep "yes" >/dev/null 2>&1; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1306 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1307 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1308 | #define _ALL_SOURCE 1 |
| 1309 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1310 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1311 | else |
| 1312 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1313 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1314 | fi |
| 1315 | rm -f conftest* |
| 1316 | |
| 1317 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1318 | ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1319 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1320 | echo "configure:1321: checking for minix/config.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1321 | 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] | 1322 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1323 | else |
| 1324 | cat > conftest.$ac_ext <<EOF |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1325 | #line 1326 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1326 | #include "confdefs.h" |
| 1327 | #include <minix/config.h> |
| 1328 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1329 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1330 | { (eval echo configure:1331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1331 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1332 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1333 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1334 | eval "ac_cv_header_$ac_safe=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1335 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1336 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1337 | echo "configure: failed program was:" >&5 |
| 1338 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1339 | rm -rf conftest* |
| 1340 | eval "ac_cv_header_$ac_safe=no" |
| 1341 | fi |
| 1342 | rm -f conftest* |
| 1343 | fi |
| 1344 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1345 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1346 | MINIX=yes |
| 1347 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1348 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1349 | MINIX= |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1350 | fi |
| 1351 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1352 | if test "$MINIX" = yes; then |
| 1353 | cat >> confdefs.h <<\EOF |
| 1354 | #define _POSIX_SOURCE 1 |
| 1355 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1356 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1357 | cat >> confdefs.h <<\EOF |
| 1358 | #define _POSIX_1_SOURCE 2 |
| 1359 | EOF |
| 1360 | |
| 1361 | cat >> confdefs.h <<\EOF |
| 1362 | #define _MINIX 1 |
| 1363 | EOF |
| 1364 | |
| 1365 | fi |
| 1366 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1367 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1368 | echo $ac_n "checking whether $CC accepts -OPT:Olimit=0""... $ac_c" 1>&6 |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1369 | echo "configure:1370: checking whether $CC accepts -OPT:Olimit=0" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1370 | 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] | 1371 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1372 | else |
| 1373 | ac_save_cc="$CC" |
| 1374 | CC="$CC -OPT:Olimit=0" |
| 1375 | if test "$cross_compiling" = yes; then |
| 1376 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1377 | else |
| 1378 | cat > conftest.$ac_ext <<EOF |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1379 | #line 1380 "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1380 | #include "confdefs.h" |
| 1381 | int main() { return 0; } |
| 1382 | EOF |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1383 | if { (eval echo configure:1384: \"$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] | 1384 | then |
| 1385 | ac_cv_opt_olimit_ok=yes |
| 1386 | else |
| 1387 | echo "configure: failed program was:" >&5 |
| 1388 | cat conftest.$ac_ext >&5 |
| 1389 | rm -fr conftest* |
| 1390 | ac_cv_opt_olimit_ok=no |
| 1391 | fi |
| 1392 | rm -fr conftest* |
| 1393 | fi |
| 1394 | |
| 1395 | CC="$ac_save_cc" |
| 1396 | fi |
| 1397 | |
| 1398 | echo "$ac_t""$ac_cv_opt_olimit_ok" 1>&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 1399 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 1400 | case $ac_sys_system in |
| 1401 | Darwin*) OPT="$OPT" ;; |
| 1402 | *) OPT="$OPT -OPT:Olimit=0";; |
| 1403 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1404 | else |
| 1405 | echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6 |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1406 | echo "configure:1407: checking whether $CC accepts -Olimit 1500" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1407 | if eval "test \"`echo '$''{'ac_cv_olimit_ok'+set}'`\" = set"; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1408 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1409 | else |
| 1410 | ac_save_cc="$CC" |
| 1411 | CC="$CC -Olimit 1500" |
| 1412 | if test "$cross_compiling" = yes; then |
| 1413 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1414 | else |
| 1415 | cat > conftest.$ac_ext <<EOF |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1416 | #line 1417 "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1417 | #include "confdefs.h" |
| 1418 | int main() { return 0; } |
| 1419 | EOF |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1420 | if { (eval echo configure:1421: \"$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] | 1421 | then |
| 1422 | ac_cv_olimit_ok=yes |
| 1423 | else |
| 1424 | echo "configure: failed program was:" >&5 |
| 1425 | cat conftest.$ac_ext >&5 |
| 1426 | rm -fr conftest* |
| 1427 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 1428 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1429 | rm -fr conftest* |
| 1430 | fi |
| 1431 | |
| 1432 | CC="$ac_save_cc" |
| 1433 | fi |
| 1434 | |
| 1435 | echo "$ac_t""$ac_cv_olimit_ok" 1>&6 |
| 1436 | if test $ac_cv_olimit_ok = yes; then |
| 1437 | OPT="$OPT -Olimit 1500" |
| 1438 | fi |
| 1439 | fi |
| 1440 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1441 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1442 | # checks for header files |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1443 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1444 | echo "configure:1445: checking for ANSI C header files" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1445 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1446 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1447 | else |
| 1448 | cat > conftest.$ac_ext <<EOF |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1449 | #line 1450 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1450 | #include "confdefs.h" |
| 1451 | #include <stdlib.h> |
| 1452 | #include <stdarg.h> |
| 1453 | #include <string.h> |
| 1454 | #include <float.h> |
| 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" |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +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}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1459 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1460 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1461 | ac_cv_header_stdc=yes |
| 1462 | else |
| 1463 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1464 | echo "configure: failed program was:" >&5 |
| 1465 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1466 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1467 | ac_cv_header_stdc=no |
| 1468 | fi |
| 1469 | rm -f conftest* |
| 1470 | |
| 1471 | if test $ac_cv_header_stdc = yes; then |
| 1472 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 1473 | cat > conftest.$ac_ext <<EOF |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1474 | #line 1475 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1475 | #include "confdefs.h" |
| 1476 | #include <string.h> |
| 1477 | EOF |
| 1478 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1479 | egrep "memchr" >/dev/null 2>&1; then |
| 1480 | : |
| 1481 | else |
| 1482 | rm -rf conftest* |
| 1483 | ac_cv_header_stdc=no |
| 1484 | fi |
| 1485 | rm -f conftest* |
| 1486 | |
| 1487 | fi |
| 1488 | |
| 1489 | if test $ac_cv_header_stdc = yes; then |
| 1490 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 1491 | cat > conftest.$ac_ext <<EOF |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1492 | #line 1493 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1493 | #include "confdefs.h" |
| 1494 | #include <stdlib.h> |
| 1495 | EOF |
| 1496 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1497 | egrep "free" >/dev/null 2>&1; then |
| 1498 | : |
| 1499 | else |
| 1500 | rm -rf conftest* |
| 1501 | ac_cv_header_stdc=no |
| 1502 | fi |
| 1503 | rm -f conftest* |
| 1504 | |
| 1505 | fi |
| 1506 | |
| 1507 | if test $ac_cv_header_stdc = yes; then |
| 1508 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 1509 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1510 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1511 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1512 | cat > conftest.$ac_ext <<EOF |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1513 | #line 1514 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1514 | #include "confdefs.h" |
| 1515 | #include <ctype.h> |
| 1516 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 1517 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1518 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1519 | int main () { int i; for (i = 0; i < 256; i++) |
| 1520 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 1521 | exit (0); } |
| 1522 | |
| 1523 | EOF |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1524 | if { (eval echo configure:1525: \"$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] | 1525 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1526 | : |
| 1527 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1528 | echo "configure: failed program was:" >&5 |
| 1529 | cat conftest.$ac_ext >&5 |
| 1530 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1531 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1532 | fi |
| 1533 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1534 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1535 | |
| 1536 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1537 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1538 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1539 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1540 | if test $ac_cv_header_stdc = yes; then |
| 1541 | cat >> confdefs.h <<\EOF |
| 1542 | #define STDC_HEADERS 1 |
| 1543 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1544 | |
| 1545 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1546 | |
Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame] | 1547 | for ac_hdr in dlfcn.h fcntl.h limits.h locale.h ncurses.h poll.h pthread.h \ |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 1548 | signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h \ |
Fred Drake | a50d6ec | 2000-08-31 16:13:20 +0000 | [diff] [blame] | 1549 | 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] | 1550 | 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] | 1551 | sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ |
| 1552 | ndbm.h db1/ndbm.h gdbm/ndbm.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1553 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1554 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1555 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1556 | echo "configure:1557: checking for $ac_hdr" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1557 | 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] | 1558 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1559 | else |
| 1560 | cat > conftest.$ac_ext <<EOF |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1561 | #line 1562 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1562 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1563 | #include <$ac_hdr> |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1564 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1565 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1566 | { (eval echo configure:1567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1567 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1568 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1569 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1570 | eval "ac_cv_header_$ac_safe=yes" |
| 1571 | else |
| 1572 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1573 | echo "configure: failed program was:" >&5 |
| 1574 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1575 | rm -rf conftest* |
| 1576 | eval "ac_cv_header_$ac_safe=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1577 | fi |
| 1578 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1579 | fi |
| 1580 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1581 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1582 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1583 | cat >> confdefs.h <<EOF |
| 1584 | #define $ac_tr_hdr 1 |
| 1585 | EOF |
| 1586 | |
| 1587 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1588 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1589 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1590 | done |
| 1591 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1592 | ac_header_dirent=no |
| 1593 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
| 1594 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1595 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1596 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1597 | echo "configure:1598: checking for $ac_hdr that defines DIR" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1598 | 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] | 1599 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1600 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1601 | cat > conftest.$ac_ext <<EOF |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1602 | #line 1603 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1603 | #include "confdefs.h" |
| 1604 | #include <sys/types.h> |
| 1605 | #include <$ac_hdr> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1606 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1607 | DIR *dirp = 0; |
| 1608 | ; return 0; } |
| 1609 | EOF |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1610 | if { (eval echo configure:1611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1611 | rm -rf conftest* |
| 1612 | eval "ac_cv_header_dirent_$ac_safe=yes" |
| 1613 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1614 | echo "configure: failed program was:" >&5 |
| 1615 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1616 | rm -rf conftest* |
| 1617 | eval "ac_cv_header_dirent_$ac_safe=no" |
| 1618 | fi |
| 1619 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1620 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1621 | 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] | 1622 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1623 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1624 | cat >> confdefs.h <<EOF |
| 1625 | #define $ac_tr_hdr 1 |
| 1626 | EOF |
| 1627 | ac_header_dirent=$ac_hdr; break |
| 1628 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1629 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1630 | fi |
| 1631 | done |
| 1632 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 1633 | if test $ac_header_dirent = dirent.h; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1634 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1635 | echo "configure:1636: checking for opendir in -ldir" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1636 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1637 | 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] | 1638 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1639 | else |
| 1640 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1641 | LIBS="-ldir $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1642 | cat > conftest.$ac_ext <<EOF |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1643 | #line 1644 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1644 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1645 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1646 | /* We use char because int might match the return type of a gcc2 |
| 1647 | builtin and then its argument prototype would still apply. */ |
| 1648 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1649 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1650 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1651 | opendir() |
| 1652 | ; return 0; } |
| 1653 | EOF |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1654 | if { (eval echo configure:1655: \"$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] | 1655 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1656 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1657 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1658 | echo "configure: failed program was:" >&5 |
| 1659 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1660 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1661 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1662 | fi |
| 1663 | rm -f conftest* |
| 1664 | LIBS="$ac_save_LIBS" |
| 1665 | |
| 1666 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1667 | 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] | 1668 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1669 | LIBS="$LIBS -ldir" |
| 1670 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1671 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1672 | fi |
| 1673 | |
| 1674 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1675 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1676 | echo "configure:1677: checking for opendir in -lx" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1677 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1678 | 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] | 1679 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1680 | else |
| 1681 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1682 | LIBS="-lx $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1683 | cat > conftest.$ac_ext <<EOF |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1684 | #line 1685 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1685 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1686 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1687 | /* We use char because int might match the return type of a gcc2 |
| 1688 | builtin and then its argument prototype would still apply. */ |
| 1689 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1690 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1691 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1692 | opendir() |
| 1693 | ; return 0; } |
| 1694 | EOF |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1695 | if { (eval echo configure:1696: \"$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] | 1696 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1697 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1698 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1699 | echo "configure: failed program was:" >&5 |
| 1700 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1701 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1702 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1703 | fi |
| 1704 | rm -f conftest* |
| 1705 | LIBS="$ac_save_LIBS" |
| 1706 | |
| 1707 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1708 | 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] | 1709 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1710 | LIBS="$LIBS -lx" |
| 1711 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1712 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1713 | fi |
| 1714 | |
| 1715 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1716 | |
| 1717 | |
| 1718 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1719 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1720 | echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6 |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1721 | echo "configure:1722: checking for clock_t in time.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1722 | cat > conftest.$ac_ext <<EOF |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1723 | #line 1724 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1724 | #include "confdefs.h" |
| 1725 | #include <time.h> |
| 1726 | EOF |
| 1727 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1728 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1729 | rm -rf conftest* |
| 1730 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1731 | else |
| 1732 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1733 | cat >> confdefs.h <<\EOF |
| 1734 | #define clock_t long |
| 1735 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1736 | |
| 1737 | fi |
| 1738 | rm -f conftest* |
| 1739 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1740 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1741 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1742 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 1743 | cat >> confdefs.h <<\EOF |
| 1744 | #if defined(SCO_DS) |
| 1745 | #undef _OFF_T |
| 1746 | #endif |
| 1747 | EOF |
| 1748 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 1749 | # Type availability checks |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1750 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1751 | echo "configure:1752: checking for mode_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1752 | 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] | 1753 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1754 | else |
| 1755 | cat > conftest.$ac_ext <<EOF |
Fred Drake | c9a5cc1 | 2000-10-09 20:18:32 +0000 | [diff] [blame] | 1756 | #line 1757 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1757 | #include "confdefs.h" |
| 1758 | #include <sys/types.h> |
| 1759 | #if STDC_HEADERS |
| 1760 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1761 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1762 | #endif |
| 1763 | EOF |
| 1764 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1765 | 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] | 1766 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1767 | ac_cv_type_mode_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1768 | else |
| 1769 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1770 | ac_cv_type_mode_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1771 | fi |
| 1772 | rm -f conftest* |
| 1773 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1774 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1775 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
| 1776 | if test $ac_cv_type_mode_t = no; then |
| 1777 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1778 | #define mode_t int |
| 1779 | EOF |
| 1780 | |
| 1781 | fi |
| 1782 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1783 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1784 | echo "configure:1785: checking for off_t" >&5 |
| 1785 | 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] | 1786 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1787 | else |
| 1788 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1789 | #line 1790 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1790 | #include "confdefs.h" |
| 1791 | #include <sys/types.h> |
| 1792 | #if STDC_HEADERS |
| 1793 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1794 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1795 | #endif |
| 1796 | EOF |
| 1797 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1798 | 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] | 1799 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1800 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1801 | else |
| 1802 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1803 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1804 | fi |
| 1805 | rm -f conftest* |
| 1806 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1807 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1808 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
| 1809 | if test $ac_cv_type_off_t = no; then |
| 1810 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1811 | #define off_t long |
| 1812 | EOF |
| 1813 | |
| 1814 | fi |
| 1815 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1816 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1817 | echo "configure:1818: checking for pid_t" >&5 |
| 1818 | 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] | 1819 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1820 | else |
| 1821 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1822 | #line 1823 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1823 | #include "confdefs.h" |
| 1824 | #include <sys/types.h> |
| 1825 | #if STDC_HEADERS |
| 1826 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1827 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1828 | #endif |
| 1829 | EOF |
| 1830 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1831 | 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] | 1832 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1833 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1834 | else |
| 1835 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1836 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1837 | fi |
| 1838 | rm -f conftest* |
| 1839 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1840 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1841 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
| 1842 | if test $ac_cv_type_pid_t = no; then |
| 1843 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1844 | #define pid_t int |
| 1845 | EOF |
| 1846 | |
| 1847 | fi |
| 1848 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1849 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1850 | echo "configure:1851: checking return type of signal handlers" >&5 |
| 1851 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1852 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1853 | else |
| 1854 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1855 | #line 1856 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1856 | #include "confdefs.h" |
| 1857 | #include <sys/types.h> |
| 1858 | #include <signal.h> |
| 1859 | #ifdef signal |
| 1860 | #undef signal |
| 1861 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1862 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1863 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 1864 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1865 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1866 | #endif |
| 1867 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1868 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1869 | int i; |
| 1870 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1871 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1872 | if { (eval echo configure:1873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1873 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1874 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1875 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1876 | echo "configure: failed program was:" >&5 |
| 1877 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1878 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1879 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1880 | fi |
| 1881 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1882 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1883 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1884 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1885 | cat >> confdefs.h <<EOF |
| 1886 | #define RETSIGTYPE $ac_cv_type_signal |
| 1887 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1888 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1889 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1890 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1891 | echo "configure:1892: checking for size_t" >&5 |
| 1892 | 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] | 1893 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1894 | else |
| 1895 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1896 | #line 1897 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1897 | #include "confdefs.h" |
| 1898 | #include <sys/types.h> |
| 1899 | #if STDC_HEADERS |
| 1900 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1901 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1902 | #endif |
| 1903 | EOF |
| 1904 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1905 | 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] | 1906 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1907 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1908 | else |
| 1909 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1910 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1911 | fi |
| 1912 | rm -f conftest* |
| 1913 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1914 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1915 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
| 1916 | if test $ac_cv_type_size_t = no; then |
| 1917 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1918 | #define size_t unsigned |
| 1919 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1920 | |
| 1921 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1922 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1923 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1924 | echo "configure:1925: checking for uid_t in sys/types.h" >&5 |
| 1925 | 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] | 1926 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1927 | else |
| 1928 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1929 | #line 1930 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1930 | #include "confdefs.h" |
| 1931 | #include <sys/types.h> |
| 1932 | EOF |
| 1933 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1934 | egrep "uid_t" >/dev/null 2>&1; then |
| 1935 | rm -rf conftest* |
| 1936 | ac_cv_type_uid_t=yes |
| 1937 | else |
| 1938 | rm -rf conftest* |
| 1939 | ac_cv_type_uid_t=no |
| 1940 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1941 | rm -f conftest* |
| 1942 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1943 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1944 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1945 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1946 | if test $ac_cv_type_uid_t = no; then |
| 1947 | cat >> confdefs.h <<\EOF |
| 1948 | #define uid_t int |
| 1949 | EOF |
| 1950 | |
| 1951 | cat >> confdefs.h <<\EOF |
| 1952 | #define gid_t int |
| 1953 | EOF |
| 1954 | |
| 1955 | fi |
| 1956 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1957 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 1958 | # Sizes of various common basic types |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1959 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1960 | echo "configure:1961: checking size of int" >&5 |
| 1961 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1962 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1963 | else |
| 1964 | if test "$cross_compiling" = yes; then |
| 1965 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1966 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1967 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1968 | #line 1969 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1969 | #include "confdefs.h" |
| 1970 | #include <stdio.h> |
| 1971 | main() |
| 1972 | { |
| 1973 | FILE *f=fopen("conftestval", "w"); |
| 1974 | if (!f) exit(1); |
| 1975 | fprintf(f, "%d\n", sizeof(int)); |
| 1976 | exit(0); |
| 1977 | } |
| 1978 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1979 | if { (eval echo configure:1980: \"$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] | 1980 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1981 | ac_cv_sizeof_int=`cat conftestval` |
| 1982 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1983 | echo "configure: failed program was:" >&5 |
| 1984 | cat conftest.$ac_ext >&5 |
| 1985 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1986 | ac_cv_sizeof_int=0 |
| 1987 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1988 | rm -fr conftest* |
| 1989 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1990 | |
| 1991 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1992 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 1993 | cat >> confdefs.h <<EOF |
| 1994 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 1995 | EOF |
| 1996 | |
| 1997 | |
| 1998 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1999 | echo "configure:2000: checking size of long" >&5 |
| 2000 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2001 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2002 | else |
| 2003 | if test "$cross_compiling" = yes; then |
| 2004 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2005 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2006 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2007 | #line 2008 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2008 | #include "confdefs.h" |
| 2009 | #include <stdio.h> |
| 2010 | main() |
| 2011 | { |
| 2012 | FILE *f=fopen("conftestval", "w"); |
| 2013 | if (!f) exit(1); |
| 2014 | fprintf(f, "%d\n", sizeof(long)); |
| 2015 | exit(0); |
| 2016 | } |
| 2017 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2018 | if { (eval echo configure:2019: \"$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] | 2019 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2020 | ac_cv_sizeof_long=`cat conftestval` |
| 2021 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2022 | echo "configure: failed program was:" >&5 |
| 2023 | cat conftest.$ac_ext >&5 |
| 2024 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2025 | ac_cv_sizeof_long=0 |
| 2026 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2027 | rm -fr conftest* |
| 2028 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2029 | |
| 2030 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2031 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
| 2032 | cat >> confdefs.h <<EOF |
| 2033 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 2034 | EOF |
| 2035 | |
| 2036 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2037 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2038 | echo "configure:2039: checking size of void *" >&5 |
| 2039 | 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] | 2040 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2041 | else |
| 2042 | if test "$cross_compiling" = yes; then |
| 2043 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2044 | else |
| 2045 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2046 | #line 2047 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2047 | #include "confdefs.h" |
| 2048 | #include <stdio.h> |
| 2049 | main() |
| 2050 | { |
| 2051 | FILE *f=fopen("conftestval", "w"); |
| 2052 | if (!f) exit(1); |
| 2053 | fprintf(f, "%d\n", sizeof(void *)); |
| 2054 | exit(0); |
| 2055 | } |
| 2056 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2057 | if { (eval echo configure:2058: \"$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] | 2058 | then |
| 2059 | ac_cv_sizeof_void_p=`cat conftestval` |
| 2060 | else |
| 2061 | echo "configure: failed program was:" >&5 |
| 2062 | cat conftest.$ac_ext >&5 |
| 2063 | rm -fr conftest* |
| 2064 | ac_cv_sizeof_void_p=0 |
| 2065 | fi |
| 2066 | rm -fr conftest* |
| 2067 | fi |
| 2068 | |
| 2069 | fi |
| 2070 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
| 2071 | cat >> confdefs.h <<EOF |
| 2072 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
| 2073 | EOF |
| 2074 | |
| 2075 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2076 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2077 | echo "configure:2078: checking size of char" >&5 |
| 2078 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2079 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2080 | else |
| 2081 | if test "$cross_compiling" = yes; then |
| 2082 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2083 | else |
| 2084 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2085 | #line 2086 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2086 | #include "confdefs.h" |
| 2087 | #include <stdio.h> |
| 2088 | main() |
| 2089 | { |
| 2090 | FILE *f=fopen("conftestval", "w"); |
| 2091 | if (!f) exit(1); |
| 2092 | fprintf(f, "%d\n", sizeof(char)); |
| 2093 | exit(0); |
| 2094 | } |
| 2095 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2096 | if { (eval echo configure:2097: \"$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] | 2097 | then |
| 2098 | ac_cv_sizeof_char=`cat conftestval` |
| 2099 | else |
| 2100 | echo "configure: failed program was:" >&5 |
| 2101 | cat conftest.$ac_ext >&5 |
| 2102 | rm -fr conftest* |
| 2103 | ac_cv_sizeof_char=0 |
| 2104 | fi |
| 2105 | rm -fr conftest* |
| 2106 | fi |
| 2107 | |
| 2108 | fi |
| 2109 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
| 2110 | cat >> confdefs.h <<EOF |
| 2111 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
| 2112 | EOF |
| 2113 | |
| 2114 | |
| 2115 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2116 | echo "configure:2117: checking size of short" >&5 |
| 2117 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2118 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2119 | else |
| 2120 | if test "$cross_compiling" = yes; then |
| 2121 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2122 | else |
| 2123 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2124 | #line 2125 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2125 | #include "confdefs.h" |
| 2126 | #include <stdio.h> |
| 2127 | main() |
| 2128 | { |
| 2129 | FILE *f=fopen("conftestval", "w"); |
| 2130 | if (!f) exit(1); |
| 2131 | fprintf(f, "%d\n", sizeof(short)); |
| 2132 | exit(0); |
| 2133 | } |
| 2134 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2135 | if { (eval echo configure:2136: \"$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] | 2136 | then |
| 2137 | ac_cv_sizeof_short=`cat conftestval` |
| 2138 | else |
| 2139 | echo "configure: failed program was:" >&5 |
| 2140 | cat conftest.$ac_ext >&5 |
| 2141 | rm -fr conftest* |
| 2142 | ac_cv_sizeof_short=0 |
| 2143 | fi |
| 2144 | rm -fr conftest* |
| 2145 | fi |
| 2146 | |
| 2147 | fi |
| 2148 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
| 2149 | cat >> confdefs.h <<EOF |
| 2150 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 2151 | EOF |
| 2152 | |
| 2153 | |
| 2154 | echo $ac_n "checking size of float""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2155 | echo "configure:2156: checking size of float" >&5 |
| 2156 | if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2157 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2158 | else |
| 2159 | if test "$cross_compiling" = yes; then |
| 2160 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2161 | else |
| 2162 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2163 | #line 2164 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2164 | #include "confdefs.h" |
| 2165 | #include <stdio.h> |
| 2166 | main() |
| 2167 | { |
| 2168 | FILE *f=fopen("conftestval", "w"); |
| 2169 | if (!f) exit(1); |
| 2170 | fprintf(f, "%d\n", sizeof(float)); |
| 2171 | exit(0); |
| 2172 | } |
| 2173 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2174 | if { (eval echo configure:2175: \"$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] | 2175 | then |
| 2176 | ac_cv_sizeof_float=`cat conftestval` |
| 2177 | else |
| 2178 | echo "configure: failed program was:" >&5 |
| 2179 | cat conftest.$ac_ext >&5 |
| 2180 | rm -fr conftest* |
| 2181 | ac_cv_sizeof_float=0 |
| 2182 | fi |
| 2183 | rm -fr conftest* |
| 2184 | fi |
| 2185 | |
| 2186 | fi |
| 2187 | echo "$ac_t""$ac_cv_sizeof_float" 1>&6 |
| 2188 | cat >> confdefs.h <<EOF |
| 2189 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
| 2190 | EOF |
| 2191 | |
| 2192 | |
| 2193 | echo $ac_n "checking size of double""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2194 | echo "configure:2195: checking size of double" >&5 |
| 2195 | if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2196 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2197 | else |
| 2198 | if test "$cross_compiling" = yes; then |
| 2199 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2200 | else |
| 2201 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2202 | #line 2203 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2203 | #include "confdefs.h" |
| 2204 | #include <stdio.h> |
| 2205 | main() |
| 2206 | { |
| 2207 | FILE *f=fopen("conftestval", "w"); |
| 2208 | if (!f) exit(1); |
| 2209 | fprintf(f, "%d\n", sizeof(double)); |
| 2210 | exit(0); |
| 2211 | } |
| 2212 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2213 | if { (eval echo configure:2214: \"$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] | 2214 | then |
| 2215 | ac_cv_sizeof_double=`cat conftestval` |
| 2216 | else |
| 2217 | echo "configure: failed program was:" >&5 |
| 2218 | cat conftest.$ac_ext >&5 |
| 2219 | rm -fr conftest* |
| 2220 | ac_cv_sizeof_double=0 |
| 2221 | fi |
| 2222 | rm -fr conftest* |
| 2223 | fi |
| 2224 | |
| 2225 | fi |
| 2226 | echo "$ac_t""$ac_cv_sizeof_double" 1>&6 |
| 2227 | cat >> confdefs.h <<EOF |
| 2228 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
| 2229 | EOF |
| 2230 | |
| 2231 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2232 | echo $ac_n "checking size of fpos_t""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2233 | echo "configure:2234: checking size of fpos_t" >&5 |
| 2234 | 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] | 2235 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2236 | else |
| 2237 | if test "$cross_compiling" = yes; then |
| 2238 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2239 | else |
| 2240 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2241 | #line 2242 "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2242 | #include "confdefs.h" |
| 2243 | #include <stdio.h> |
| 2244 | main() |
| 2245 | { |
| 2246 | FILE *f=fopen("conftestval", "w"); |
| 2247 | if (!f) exit(1); |
| 2248 | fprintf(f, "%d\n", sizeof(fpos_t)); |
| 2249 | exit(0); |
| 2250 | } |
| 2251 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2252 | if { (eval echo configure:2253: \"$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] | 2253 | then |
| 2254 | ac_cv_sizeof_fpos_t=`cat conftestval` |
| 2255 | else |
| 2256 | echo "configure: failed program was:" >&5 |
| 2257 | cat conftest.$ac_ext >&5 |
| 2258 | rm -fr conftest* |
| 2259 | ac_cv_sizeof_fpos_t=0 |
| 2260 | fi |
| 2261 | rm -fr conftest* |
| 2262 | fi |
| 2263 | |
| 2264 | fi |
| 2265 | echo "$ac_t""$ac_cv_sizeof_fpos_t" 1>&6 |
| 2266 | cat >> confdefs.h <<EOF |
| 2267 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
| 2268 | EOF |
| 2269 | |
| 2270 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2271 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2272 | echo $ac_n "checking for long long support""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2273 | echo "configure:2274: checking for long long support" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2274 | have_long_long=no |
| 2275 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2276 | #line 2277 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2277 | #include "confdefs.h" |
| 2278 | |
| 2279 | int main() { |
| 2280 | long long x; x = (long long)0; |
| 2281 | ; return 0; } |
| 2282 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2283 | if { (eval echo configure:2284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2284 | rm -rf conftest* |
| 2285 | cat >> confdefs.h <<\EOF |
| 2286 | #define HAVE_LONG_LONG 1 |
| 2287 | EOF |
| 2288 | have_long_long=yes |
| 2289 | else |
| 2290 | echo "configure: failed program was:" >&5 |
| 2291 | cat conftest.$ac_ext >&5 |
| 2292 | fi |
| 2293 | rm -f conftest* |
| 2294 | echo "$ac_t""$have_long_long" 1>&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2295 | if test "$have_long_long" = yes ; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2296 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2297 | echo "configure:2298: checking size of long long" >&5 |
| 2298 | 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] | 2299 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2300 | else |
| 2301 | if test "$cross_compiling" = yes; then |
| 2302 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2303 | else |
| 2304 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2305 | #line 2306 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2306 | #include "confdefs.h" |
| 2307 | #include <stdio.h> |
| 2308 | main() |
| 2309 | { |
| 2310 | FILE *f=fopen("conftestval", "w"); |
| 2311 | if (!f) exit(1); |
| 2312 | fprintf(f, "%d\n", sizeof(long long)); |
| 2313 | exit(0); |
| 2314 | } |
| 2315 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2316 | if { (eval echo configure:2317: \"$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] | 2317 | then |
| 2318 | ac_cv_sizeof_long_long=`cat conftestval` |
| 2319 | else |
| 2320 | echo "configure: failed program was:" >&5 |
| 2321 | cat conftest.$ac_ext >&5 |
| 2322 | rm -fr conftest* |
| 2323 | ac_cv_sizeof_long_long=0 |
| 2324 | fi |
| 2325 | rm -fr conftest* |
| 2326 | fi |
| 2327 | |
| 2328 | fi |
| 2329 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
| 2330 | cat >> confdefs.h <<EOF |
| 2331 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 2332 | EOF |
| 2333 | |
| 2334 | |
| 2335 | fi |
| 2336 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2337 | echo $ac_n "checking for uintptr_t support""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2338 | echo "configure:2339: checking for uintptr_t support" >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2339 | have_uintptr_t=no |
| 2340 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2341 | #line 2342 "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2342 | #include "confdefs.h" |
| 2343 | |
| 2344 | int main() { |
| 2345 | uintptr_t x; x = (uintptr_t)0; |
| 2346 | ; return 0; } |
| 2347 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2348 | if { (eval echo configure:2349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2349 | rm -rf conftest* |
| 2350 | cat >> confdefs.h <<\EOF |
| 2351 | #define HAVE_UINTPTR_T 1 |
| 2352 | EOF |
| 2353 | have_uintptr_t=yes |
| 2354 | else |
| 2355 | echo "configure: failed program was:" >&5 |
| 2356 | cat conftest.$ac_ext >&5 |
| 2357 | fi |
| 2358 | rm -f conftest* |
| 2359 | echo "$ac_t""$have_uintptr_t" 1>&6 |
| 2360 | if test "$have_uintptr_t" = yes ; then |
| 2361 | echo $ac_n "checking size of uintptr_t""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2362 | echo "configure:2363: checking size of uintptr_t" >&5 |
| 2363 | if eval "test \"`echo '$''{'ac_cv_sizeof_uintptr_t'+set}'`\" = set"; then |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2364 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2365 | else |
| 2366 | if test "$cross_compiling" = yes; then |
| 2367 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2368 | else |
| 2369 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2370 | #line 2371 "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2371 | #include "confdefs.h" |
| 2372 | #include <stdio.h> |
| 2373 | main() |
| 2374 | { |
| 2375 | FILE *f=fopen("conftestval", "w"); |
| 2376 | if (!f) exit(1); |
| 2377 | fprintf(f, "%d\n", sizeof(uintptr_t)); |
| 2378 | exit(0); |
| 2379 | } |
| 2380 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2381 | if { (eval echo configure:2382: \"$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] | 2382 | then |
| 2383 | ac_cv_sizeof_uintptr_t=`cat conftestval` |
| 2384 | else |
| 2385 | echo "configure: failed program was:" >&5 |
| 2386 | cat conftest.$ac_ext >&5 |
| 2387 | rm -fr conftest* |
| 2388 | ac_cv_sizeof_uintptr_t=0 |
| 2389 | fi |
| 2390 | rm -fr conftest* |
| 2391 | fi |
| 2392 | |
| 2393 | fi |
| 2394 | echo "$ac_t""$ac_cv_sizeof_uintptr_t" 1>&6 |
| 2395 | cat >> confdefs.h <<EOF |
| 2396 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
| 2397 | EOF |
| 2398 | |
| 2399 | |
| 2400 | fi |
| 2401 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2402 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
| 2403 | echo $ac_n "checking size of off_t""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2404 | echo "configure:2405: checking size of off_t" >&5 |
| 2405 | 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] | 2406 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2407 | else |
| 2408 | if test "$cross_compiling" = yes; then |
| 2409 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2410 | else |
| 2411 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2412 | #line 2413 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2413 | #include "confdefs.h" |
| 2414 | #include <stdio.h> |
| 2415 | #include <sys/types.h> |
| 2416 | main() |
| 2417 | { |
| 2418 | FILE *f=fopen("conftestval", "w"); |
| 2419 | if (!f) exit(1); |
| 2420 | fprintf(f, "%d\n", sizeof(off_t)); |
| 2421 | exit(0); |
| 2422 | } |
| 2423 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2424 | if { (eval echo configure:2425: \"$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] | 2425 | then |
| 2426 | ac_cv_sizeof_off_t=`cat conftestval` |
| 2427 | else |
| 2428 | echo "configure: failed program was:" >&5 |
| 2429 | cat conftest.$ac_ext >&5 |
| 2430 | rm -fr conftest* |
| 2431 | ac_cv_sizeof_off_t=0 |
| 2432 | fi |
| 2433 | rm -fr conftest* |
| 2434 | fi |
| 2435 | |
| 2436 | |
| 2437 | fi |
| 2438 | |
| 2439 | echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6 |
| 2440 | cat >> confdefs.h <<EOF |
| 2441 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 2442 | EOF |
| 2443 | |
| 2444 | |
| 2445 | echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2446 | echo "configure:2447: checking whether to enable large file support" >&5 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2447 | if test "$have_long_long" = yes -a \ |
| 2448 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 2449 | "$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] | 2450 | cat >> confdefs.h <<\EOF |
| 2451 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 2452 | EOF |
| 2453 | |
| 2454 | echo "$ac_t""yes" 1>&6 |
| 2455 | else |
| 2456 | echo "$ac_t""no" 1>&6 |
| 2457 | fi |
| 2458 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2459 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
| 2460 | echo $ac_n "checking size of time_t""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2461 | echo "configure:2462: checking size of time_t" >&5 |
| 2462 | 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] | 2463 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2464 | else |
| 2465 | if test "$cross_compiling" = yes; then |
| 2466 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2467 | else |
| 2468 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2469 | #line 2470 "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2470 | #include "confdefs.h" |
| 2471 | #include <stdio.h> |
| 2472 | #include <time.h> |
| 2473 | main() |
| 2474 | { |
| 2475 | FILE *f=fopen("conftestval", "w"); |
| 2476 | if (!f) exit(1); |
| 2477 | fprintf(f, "%d\n", sizeof(time_t)); |
| 2478 | exit(0); |
| 2479 | } |
| 2480 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2481 | if { (eval echo configure:2482: \"$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] | 2482 | then |
| 2483 | ac_cv_sizeof_time_t=`cat conftestval` |
| 2484 | else |
| 2485 | echo "configure: failed program was:" >&5 |
| 2486 | cat conftest.$ac_ext >&5 |
| 2487 | rm -fr conftest* |
| 2488 | ac_cv_sizeof_time_t=0 |
| 2489 | fi |
| 2490 | rm -fr conftest* |
| 2491 | fi |
| 2492 | |
| 2493 | |
| 2494 | fi |
| 2495 | |
| 2496 | echo "$ac_t""$ac_cv_sizeof_time_t" 1>&6 |
| 2497 | cat >> confdefs.h <<EOF |
| 2498 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
| 2499 | EOF |
| 2500 | |
| 2501 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2502 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2503 | # if have pthread_t then define SIZEOF_PTHREAD_T |
| 2504 | echo $ac_n "checking for pthread_t""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2505 | echo "configure:2506: checking for pthread_t" >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2506 | have_pthread_t=no |
| 2507 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2508 | #line 2509 "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2509 | #include "confdefs.h" |
| 2510 | #include <pthread.h> |
| 2511 | int main() { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 2512 | pthread_t x; x = *(pthread_t*)0; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2513 | ; return 0; } |
| 2514 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2515 | if { (eval echo configure:2516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2516 | rm -rf conftest* |
| 2517 | have_pthread_t=yes |
| 2518 | else |
| 2519 | echo "configure: failed program was:" >&5 |
| 2520 | cat conftest.$ac_ext >&5 |
| 2521 | fi |
| 2522 | rm -f conftest* |
| 2523 | echo "$ac_t""$have_pthread_t" 1>&6 |
| 2524 | if test "$have_pthread_t" = yes ; then |
| 2525 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
| 2526 | echo $ac_n "checking size of pthread_t""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2527 | echo "configure:2528: checking size of pthread_t" >&5 |
| 2528 | if eval "test \"`echo '$''{'ac_cv_sizeof_pthread_t'+set}'`\" = set"; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2529 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2530 | else |
| 2531 | if test "$cross_compiling" = yes; then |
| 2532 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2533 | else |
| 2534 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2535 | #line 2536 "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2536 | #include "confdefs.h" |
| 2537 | #include <stdio.h> |
| 2538 | #include <pthread.h> |
| 2539 | main() |
| 2540 | { |
| 2541 | FILE *f=fopen("conftestval", "w"); |
| 2542 | if (!f) exit(1); |
| 2543 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 2544 | exit(0); |
| 2545 | } |
| 2546 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2547 | if { (eval echo configure:2548: \"$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] | 2548 | then |
| 2549 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 2550 | else |
| 2551 | echo "configure: failed program was:" >&5 |
| 2552 | cat conftest.$ac_ext >&5 |
| 2553 | rm -fr conftest* |
| 2554 | ac_cv_sizeof_pthread_t=0 |
| 2555 | fi |
| 2556 | rm -fr conftest* |
| 2557 | fi |
| 2558 | |
| 2559 | |
| 2560 | fi |
| 2561 | |
| 2562 | echo "$ac_t""$ac_cv_sizeof_pthread_t" 1>&6 |
| 2563 | cat >> confdefs.h <<EOF |
| 2564 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
| 2565 | EOF |
| 2566 | |
| 2567 | fi |
| 2568 | |
| 2569 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2570 | # Minor variations in building a framework between NextStep versions 4 and 5 |
| 2571 | |
| 2572 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 2573 | Darwin/*) |
| 2574 | ns_undef_sym='_environ' |
| 2575 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -U $ns_undef_sym" ;; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2576 | next/4*) |
| 2577 | ns_undef_sym='__environ' |
| 2578 | LIBTOOL_CRUFT="-U $ns_undef_sym" ;; |
| 2579 | next/5*) |
| 2580 | ns_undef_sym='_environ' |
| 2581 | LIBTOOL_CRUFT="-lcc_dynamic -U $ns_undef_sym" ;; |
| 2582 | esac |
| 2583 | |
| 2584 | echo $ac_n "checking for --with-next-framework""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2585 | echo "configure:2586: checking for --with-next-framework" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2586 | if test "$with_next_framework" |
| 2587 | then |
| 2588 | OPT="$OPT -fno-common" |
| 2589 | # -U __environ is needed since bundles don't have access |
| 2590 | # to crt0 when built but will always be linked against it |
| 2591 | LDFLAGS="$LDFLAGS -Wl,-U,$ns_undef_sym" |
| 2592 | cat >> confdefs.h <<\EOF |
| 2593 | #define WITH_NEXT_FRAMEWORK 1 |
| 2594 | EOF |
| 2595 | |
| 2596 | echo "$ac_t""yes" 1>&6 |
| 2597 | else |
| 2598 | echo "$ac_t""no" 1>&6 |
| 2599 | fi |
| 2600 | |
| 2601 | echo $ac_n "checking for --with-dyld""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2602 | echo "configure:2603: checking for --with-dyld" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2603 | if test "$with_next_framework" -o "$with_dyld" |
| 2604 | then |
| 2605 | if test "$with_dyld" |
| 2606 | then |
| 2607 | echo "$ac_t""yes" 1>&6 |
| 2608 | else |
| 2609 | echo "$ac_t""required for framework build" 1>&6 |
| 2610 | fi |
| 2611 | cat >> confdefs.h <<\EOF |
| 2612 | #define WITH_DYLD 1 |
| 2613 | EOF |
| 2614 | |
| 2615 | ns_dyld='set' |
| 2616 | else |
| 2617 | echo "$ac_t""no" 1>&6 |
| 2618 | fi |
| 2619 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2620 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2621 | |
| 2622 | |
| 2623 | |
| 2624 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2625 | # SO is the extension of shared libraries `(including the dot!) |
| 2626 | # -- usually .so, .sl on HP-UX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2627 | echo $ac_n "checking SO""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2628 | echo "configure:2629: checking SO" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2629 | if test -z "$SO" |
| 2630 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2631 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2632 | hp*|HP*) SO=.sl;; |
| 2633 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2634 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2635 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2636 | echo "$ac_t""$SO" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2637 | # LDSHARED is the ld *command* used to create shared library |
| 2638 | # -- "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] | 2639 | # (Shared libraries in this instance are shared modules to be loaded into |
| 2640 | # Python, as opposed to building Python itself as a shared library.) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2641 | echo $ac_n "checking LDSHARED""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2642 | echo "configure:2643: checking LDSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2643 | if test -z "$LDSHARED" |
| 2644 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2645 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 45140f9 | 1997-08-29 18:44:06 +0000 | [diff] [blame] | 2646 | AIX*) LDSHARED="\$(srcdir)/ld_so_aix \$(CC)";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2647 | BeOS*) LDSHARED="\$(srcdir)/../BeOS/linkmodule -L.. -lpython\$(VERSION)";; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2648 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2649 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2650 | SunOS/4*) LDSHARED="ld";; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 2651 | SunOS/5*) |
| 2652 | if test "$GCC" = "yes" |
| 2653 | then LDSHARED='$(CC) -G' |
| 2654 | else LDSHARED="ld -G"; |
| 2655 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2656 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2657 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 2658 | DYNIX/ptx*) LDSHARED="ld -G";; |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2659 | Darwin/*|next/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2660 | if test "$ns_dyld" |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 2661 | then |
| 2662 | if test "$ac_sys_system" = Darwin |
| 2663 | then LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined suppress' |
| 2664 | else LDSHARED='$(CC) $(LDFLAGS) -bundle -prebind' |
| 2665 | fi |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2666 | else LDSHARED='$(CC) $(CFLAGS) -nostdlib -r'; |
| 2667 | fi |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2668 | if test "$with_next_framework" ; then |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2669 | LDSHARED="$LDSHARED \$(LDLIBRARY)" |
| 2670 | fi ;; |
Guido van Rossum | 81652ab | 1996-07-21 02:53:27 +0000 | [diff] [blame] | 2671 | Linux*) LDSHARED="gcc -shared";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 2672 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 2673 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2674 | OpenBSD*) LDSHARED="ld -Bshareable";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2675 | NetBSD*) |
| 2676 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 2677 | then |
| 2678 | LDSHARED="cc -shared" |
| 2679 | else |
| 2680 | LDSHARED="ld -Bshareable" |
| 2681 | fi;; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2682 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 2683 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2684 | then |
| 2685 | LDSHARED="cc -shared ${LDFLAGS}" |
| 2686 | else |
| 2687 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 2688 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2689 | SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2690 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2691 | *) LDSHARED="ld";; |
| 2692 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2693 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2694 | echo "$ac_t""$LDSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2695 | # 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] | 2696 | # library (module) -- this is only needed for a few systems |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2697 | echo $ac_n "checking CCSHARED""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2698 | echo "configure:2699: checking CCSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2699 | if test -z "$CCSHARED" |
| 2700 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2701 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 2702 | hp*|HP*) if test "$GCC" = yes; |
| 2703 | then CCSHARED="-fpic"; |
| 2704 | else CCSHARED="+z"; |
| 2705 | fi;; |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2706 | Linux*) CCSHARED="-fpic";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 2707 | BSD/OS*/4*) CCSHARED="-fpic";; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2708 | OpenBSD*) CCSHARED="-fpic";; |
| 2709 | FreeBSD*|NetBSD*) CCSHARED="-fPIC";; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2710 | SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2711 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2712 | IRIX*/6*) case $CC in |
| 2713 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 2714 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2715 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2716 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2717 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2718 | echo "$ac_t""$CCSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2719 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2720 | # the python executable -- this is only needed for a few systems |
| 2721 | echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2722 | echo "configure:2723: checking LINKFORSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2723 | if test -z "$LINKFORSHARED" |
| 2724 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2725 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 69f6580 | 1998-03-03 21:47:00 +0000 | [diff] [blame] | 2726 | AIX*) LINKFORSHARED='-Wl,-bE:python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2727 | hp*|HP*) |
Guido van Rossum | 304dd2d | 1997-10-20 23:10:56 +0000 | [diff] [blame] | 2728 | LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 2729 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 2d9feed | 1997-11-24 17:36:21 +0000 | [diff] [blame] | 2730 | Linux*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2731 | # -u libsys_s pulls in all symbols in libsys |
| 2732 | next/2*|next/3*) LINKFORSHARED="-u libsys_s";; |
| 2733 | # -u __dummy makes the linker aware of the objc runtime |
| 2734 | # in System.framework; otherwise, __objcInit (referenced in |
| 2735 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 2736 | # loading of any modules which reference it in System.framework |
| 2737 | next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 2738 | Darwin/*) LINKFORSHARED="-framework System" ;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2739 | SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 2740 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2741 | FreeBSD*|NetBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2742 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 2743 | then |
| 2744 | LINKFORSHARED="-Wl,--export-dynamic" |
| 2745 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2746 | SunOS/5*) case $CC in |
| 2747 | *gcc*) |
Guido van Rossum | ff48418 | 2000-02-03 13:50:24 +0000 | [diff] [blame] | 2748 | if $CC -Xlinker -V 2>&1 | grep BFD >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 2749 | then |
| 2750 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2751 | fi;; |
| 2752 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2753 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2754 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2755 | echo "$ac_t""$LINKFORSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2756 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2757 | # checks for libraries |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2758 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2759 | echo "configure:2760: checking for dlopen in -ldl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2760 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2761 | 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] | 2762 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2763 | else |
| 2764 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2765 | LIBS="-ldl $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2766 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2767 | #line 2768 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2768 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2769 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2770 | /* We use char because int might match the return type of a gcc2 |
| 2771 | builtin and then its argument prototype would still apply. */ |
| 2772 | char dlopen(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2773 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2774 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2775 | dlopen() |
| 2776 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2777 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2778 | if { (eval echo configure:2779: \"$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] | 2779 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2780 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2781 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2782 | echo "configure: failed program was:" >&5 |
| 2783 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2784 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2785 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2786 | fi |
| 2787 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2788 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2789 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2790 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2791 | 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] | 2792 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2793 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2794 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2795 | cat >> confdefs.h <<EOF |
| 2796 | #define $ac_tr_lib 1 |
| 2797 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2798 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2799 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2800 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2801 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2802 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2803 | fi |
| 2804 | # Dynamic linking for SunOS/Solaris and SYSV |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2805 | echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2806 | echo "configure:2807: checking for shl_load in -ldld" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2807 | ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2808 | 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] | 2809 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2810 | else |
| 2811 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2812 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2813 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2814 | #line 2815 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2815 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2816 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2817 | /* We use char because int might match the return type of a gcc2 |
| 2818 | builtin and then its argument prototype would still apply. */ |
| 2819 | char shl_load(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2820 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2821 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2822 | shl_load() |
| 2823 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2824 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2825 | if { (eval echo configure:2826: \"$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] | 2826 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2827 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2828 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2829 | echo "configure: failed program was:" >&5 |
| 2830 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2831 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2832 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2833 | fi |
| 2834 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2835 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2836 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2837 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2838 | 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] | 2839 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2840 | ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2841 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2842 | cat >> confdefs.h <<EOF |
| 2843 | #define $ac_tr_lib 1 |
| 2844 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2845 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2846 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2847 | |
| 2848 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2849 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2850 | fi |
| 2851 | # Dynamic linking for HP-UX |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2852 | |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2853 | # Check for --with-pydebug |
| 2854 | echo $ac_n "checking for --with-pydebug""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2855 | echo "configure:2856: checking for --with-pydebug" >&5 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2856 | # Check whether --with-pydebug or --without-pydebug was given. |
| 2857 | if test "${with_pydebug+set}" = set; then |
| 2858 | withval="$with_pydebug" |
| 2859 | |
| 2860 | if test "$withval" != no |
| 2861 | then cat >> confdefs.h <<\EOF |
| 2862 | #define Py_DEBUG 1 |
| 2863 | EOF |
| 2864 | echo "$ac_t""yes" 1>&6 |
| 2865 | else echo "$ac_t""no" 1>&6 |
| 2866 | fi |
| 2867 | else |
| 2868 | echo "$ac_t""no" 1>&6 |
| 2869 | fi |
| 2870 | |
| 2871 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2872 | # checks for system dependent C++ extensions support |
| 2873 | case "$ac_sys_system" in |
| 2874 | AIX*) echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2875 | echo "configure:2876: checking for genuine AIX C++ extensions support" >&5 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2876 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2877 | #line 2878 "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2878 | #include "confdefs.h" |
| 2879 | #include "/usr/lpp/xlC/include/load.h" |
| 2880 | int main() { |
| 2881 | loadAndInit("", 0, "") |
| 2882 | ; return 0; } |
| 2883 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2884 | if { (eval echo configure:2885: \"$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] | 2885 | rm -rf conftest* |
| 2886 | cat >> confdefs.h <<\EOF |
| 2887 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 2888 | EOF |
| 2889 | |
| 2890 | echo "$ac_t""yes" 1>&6 |
| 2891 | else |
| 2892 | echo "configure: failed program was:" >&5 |
| 2893 | cat conftest.$ac_ext >&5 |
| 2894 | rm -rf conftest* |
| 2895 | echo "$ac_t""no" 1>&6 |
| 2896 | fi |
| 2897 | rm -f conftest*;; |
| 2898 | *) ;; |
| 2899 | esac |
| 2900 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 2901 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| 2902 | # However on SGI IRIX, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2903 | # BeOS' sockets are stashed in libnet. |
| 2904 | case "$ac_sys_system" in |
| 2905 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 2906 | *) |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2907 | echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2908 | echo "configure:2909: checking for t_open in -lnsl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2909 | ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2910 | 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] | 2911 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2912 | else |
| 2913 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2914 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2915 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2916 | #line 2917 "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2917 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2918 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2919 | /* We use char because int might match the return type of a gcc2 |
| 2920 | builtin and then its argument prototype would still apply. */ |
| 2921 | char t_open(); |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2922 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2923 | int main() { |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 2924 | t_open() |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2925 | ; return 0; } |
| 2926 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2927 | if { (eval echo configure:2928: \"$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] | 2928 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2929 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2930 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2931 | echo "configure: failed program was:" >&5 |
| 2932 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2933 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2934 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2935 | fi |
| 2936 | rm -f conftest* |
| 2937 | LIBS="$ac_save_LIBS" |
| 2938 | |
| 2939 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2940 | 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] | 2941 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2942 | LIBS="-lnsl $LIBS" |
| 2943 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2944 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2945 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 2946 | # SVR4 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2947 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2948 | echo "configure:2949: checking for socket in -lsocket" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2949 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2950 | 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] | 2951 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2952 | else |
| 2953 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2954 | LIBS="-lsocket $LIBS $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2955 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2956 | #line 2957 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2957 | #include "confdefs.h" |
| 2958 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2959 | /* We use char because int might match the return type of a gcc2 |
| 2960 | builtin and then its argument prototype would still apply. */ |
| 2961 | char socket(); |
| 2962 | |
| 2963 | int main() { |
| 2964 | socket() |
| 2965 | ; return 0; } |
| 2966 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2967 | if { (eval echo configure:2968: \"$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] | 2968 | rm -rf conftest* |
| 2969 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2970 | else |
| 2971 | echo "configure: failed program was:" >&5 |
| 2972 | cat conftest.$ac_ext >&5 |
| 2973 | rm -rf conftest* |
| 2974 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2975 | fi |
| 2976 | rm -f conftest* |
| 2977 | LIBS="$ac_save_LIBS" |
| 2978 | |
| 2979 | fi |
| 2980 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2981 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2982 | LIBS="-lsocket $LIBS" |
| 2983 | else |
| 2984 | echo "$ac_t""no" 1>&6 |
| 2985 | fi |
| 2986 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 2987 | ;; |
| 2988 | esac |
| 2989 | case "$ac_sys_system" in |
| 2990 | BeOS*) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2991 | echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2992 | echo "configure:2993: checking for socket in -lnet" >&5 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2993 | ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2994 | 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] | 2995 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2996 | else |
| 2997 | ac_save_LIBS="$LIBS" |
| 2998 | LIBS="-lnet $LIBS $LIBS" |
| 2999 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3000 | #line 3001 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3001 | #include "confdefs.h" |
| 3002 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3003 | /* We use char because int might match the return type of a gcc2 |
| 3004 | builtin and then its argument prototype would still apply. */ |
| 3005 | char socket(); |
| 3006 | |
| 3007 | int main() { |
| 3008 | socket() |
| 3009 | ; return 0; } |
| 3010 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3011 | if { (eval echo configure:3012: \"$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] | 3012 | rm -rf conftest* |
| 3013 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3014 | else |
| 3015 | echo "configure: failed program was:" >&5 |
| 3016 | cat conftest.$ac_ext >&5 |
| 3017 | rm -rf conftest* |
| 3018 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3019 | fi |
| 3020 | rm -f conftest* |
| 3021 | LIBS="$ac_save_LIBS" |
| 3022 | |
| 3023 | fi |
| 3024 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3025 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3026 | LIBS="-lnet $LIBS" |
| 3027 | else |
| 3028 | echo "$ac_t""no" 1>&6 |
| 3029 | fi |
| 3030 | # BeOS |
| 3031 | ;; |
| 3032 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 3033 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3034 | echo $ac_n "checking for --with-libs""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3035 | echo "configure:3036: checking for --with-libs" >&5 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3036 | # Check whether --with-libs or --without-libs was given. |
| 3037 | if test "${with_libs+set}" = set; then |
| 3038 | withval="$with_libs" |
| 3039 | |
| 3040 | echo "$ac_t""$withval" 1>&6 |
| 3041 | LIBS="$withval $LIBS" |
| 3042 | |
| 3043 | else |
| 3044 | echo "$ac_t""no" 1>&6 |
| 3045 | fi |
| 3046 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3047 | |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 3048 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3049 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 3050 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3051 | echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3052 | echo "configure:3053: checking for --with-dec-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3053 | |
| 3054 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 3055 | if test "${with_dec_threads+set}" = set; then |
| 3056 | withval="$with_dec_threads" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3057 | |
| 3058 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3059 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3060 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3061 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3062 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3063 | else |
| 3064 | echo "$ac_t""no" 1>&6 |
| 3065 | fi |
| 3066 | |
| 3067 | |
| 3068 | echo $ac_n "checking for --with-threads""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3069 | echo "configure:3070: checking for --with-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3070 | # Check whether --with-threads or --without-threads was given. |
| 3071 | if test "${with_threads+set}" = set; then |
| 3072 | withval="$with_threads" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3073 | : |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3074 | fi |
| 3075 | |
| 3076 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3077 | # --with-thread is deprecated, but check for it anyway |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3078 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3079 | if test "${with_thread+set}" = set; then |
| 3080 | withval="$with_thread" |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3081 | |
| 3082 | with_threads=$with_thread |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3083 | fi |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3084 | |
| 3085 | |
| 3086 | if test -z "$with_threads" |
| 3087 | then with_threads="yes" |
| 3088 | fi |
| 3089 | echo "$ac_t""$with_threads" 1>&6 |
| 3090 | |
| 3091 | if test "$with_threads" = "no" |
| 3092 | then |
| 3093 | USE_THREAD_MODULE="#" |
| 3094 | else |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 3095 | if test ! -z "$with_threads" -a -d "$with_threads" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3096 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 3097 | fi |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 3098 | if test ! -z "$withval" -a -d "$withval" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3099 | then LDFLAGS="$LDFLAGS -L$withval" |
| 3100 | fi |
| 3101 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 3102 | #define _REENTRANT 1 |
| 3103 | EOF |
| 3104 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3105 | ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3106 | echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3107 | echo "configure:3108: checking for mach/cthreads.h" >&5 |
| 3108 | 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] | 3109 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3110 | else |
| 3111 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3112 | #line 3113 "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3113 | #include "confdefs.h" |
| 3114 | #include <mach/cthreads.h> |
| 3115 | EOF |
| 3116 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3117 | { (eval echo configure:3118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3118 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3119 | if test -z "$ac_err"; then |
| 3120 | rm -rf conftest* |
| 3121 | eval "ac_cv_header_$ac_safe=yes" |
| 3122 | else |
| 3123 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3124 | echo "configure: failed program was:" >&5 |
| 3125 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3126 | rm -rf conftest* |
| 3127 | eval "ac_cv_header_$ac_safe=no" |
| 3128 | fi |
| 3129 | rm -f conftest* |
| 3130 | fi |
| 3131 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3132 | echo "$ac_t""yes" 1>&6 |
| 3133 | cat >> confdefs.h <<\EOF |
| 3134 | #define WITH_THREAD 1 |
| 3135 | EOF |
| 3136 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3137 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3138 | #define C_THREADS 1 |
| 3139 | EOF |
| 3140 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3141 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3142 | else |
| 3143 | echo "$ac_t""no" 1>&6 |
| 3144 | |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3145 | echo $ac_n "checking for --with-pth""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3146 | echo "configure:3147: checking for --with-pth" >&5 |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3147 | # Check whether --with-pth or --without-pth was given. |
| 3148 | if test "${with_pth+set}" = set; then |
| 3149 | withval="$with_pth" |
| 3150 | |
| 3151 | echo "$ac_t""$withval" 1>&6 |
| 3152 | cat >> confdefs.h <<\EOF |
| 3153 | #define WITH_THREAD 1 |
| 3154 | EOF |
| 3155 | |
| 3156 | cat >> confdefs.h <<\EOF |
| 3157 | #define HAVE_PTH 1 |
| 3158 | EOF |
| 3159 | |
| 3160 | LIBS="-lpth $LIBS" |
| 3161 | LIBOBJS="$LIBOBJS thread.o" |
| 3162 | else |
| 3163 | |
| 3164 | echo "$ac_t""no" 1>&6 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3165 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3166 | echo "configure:3167: checking for pthread_create in -lpthread" >&5 |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3167 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3168 | 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] | 3169 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3170 | else |
| 3171 | ac_save_LIBS="$LIBS" |
| 3172 | LIBS="-lpthread $LIBS" |
| 3173 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3174 | #line 3175 "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3175 | #include "confdefs.h" |
| 3176 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3177 | /* We use char because int might match the return type of a gcc2 |
| 3178 | builtin and then its argument prototype would still apply. */ |
| 3179 | char pthread_create(); |
| 3180 | |
| 3181 | int main() { |
| 3182 | pthread_create() |
| 3183 | ; return 0; } |
| 3184 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3185 | if { (eval echo configure:3186: \"$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] | 3186 | rm -rf conftest* |
| 3187 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3188 | else |
| 3189 | echo "configure: failed program was:" >&5 |
| 3190 | cat conftest.$ac_ext >&5 |
| 3191 | rm -rf conftest* |
| 3192 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3193 | fi |
| 3194 | rm -f conftest* |
| 3195 | LIBS="$ac_save_LIBS" |
| 3196 | |
| 3197 | fi |
| 3198 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3199 | echo "$ac_t""yes" 1>&6 |
| 3200 | cat >> confdefs.h <<\EOF |
| 3201 | #define WITH_THREAD 1 |
| 3202 | EOF |
| 3203 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3204 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3205 | #define _POSIX_THREADS 1 |
| 3206 | EOF |
| 3207 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3208 | LIBS="-lpthread $LIBS" |
| 3209 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3210 | else |
| 3211 | echo "$ac_t""no" 1>&6 |
| 3212 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3213 | echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3214 | echo "configure:3215: checking for pthread_detach" >&5 |
| 3215 | 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] | 3216 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3217 | else |
| 3218 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3219 | #line 3220 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3220 | #include "confdefs.h" |
| 3221 | /* System header to define __stub macros and hopefully few prototypes, |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3222 | which can conflict with char pthread_detach(); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3223 | #include <assert.h> |
| 3224 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3225 | /* We use char because int might match the return type of a gcc2 |
| 3226 | builtin and then its argument prototype would still apply. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3227 | char pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3228 | |
| 3229 | int main() { |
| 3230 | |
| 3231 | /* The GNU C library defines this for functions which it implements |
| 3232 | to always fail with ENOSYS. Some functions are actually named |
| 3233 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3234 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3235 | choke me |
| 3236 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3237 | pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3238 | #endif |
| 3239 | |
| 3240 | ; return 0; } |
| 3241 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3242 | if { (eval echo configure:3243: \"$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] | 3243 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3244 | eval "ac_cv_func_pthread_detach=yes" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3245 | else |
| 3246 | echo "configure: failed program was:" >&5 |
| 3247 | cat conftest.$ac_ext >&5 |
| 3248 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3249 | eval "ac_cv_func_pthread_detach=no" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3250 | fi |
| 3251 | rm -f conftest* |
| 3252 | fi |
| 3253 | |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3254 | if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3255 | echo "$ac_t""yes" 1>&6 |
| 3256 | cat >> confdefs.h <<\EOF |
| 3257 | #define WITH_THREAD 1 |
| 3258 | EOF |
| 3259 | |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3260 | case $ac_sys_system in |
| 3261 | Darwin*) ;; |
| 3262 | *) cat >> confdefs.h <<\EOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3263 | #define _POSIX_THREADS 1 |
| 3264 | EOF |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3265 | ;; |
| 3266 | esac |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3267 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3268 | else |
| 3269 | echo "$ac_t""no" 1>&6 |
| 3270 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3271 | ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3272 | echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3273 | echo "configure:3274: checking for kernel/OS.h" >&5 |
| 3274 | 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] | 3275 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3276 | else |
| 3277 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3278 | #line 3279 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3279 | #include "confdefs.h" |
| 3280 | #include <kernel/OS.h> |
| 3281 | EOF |
| 3282 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3283 | { (eval echo configure:3284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3284 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3285 | if test -z "$ac_err"; then |
| 3286 | rm -rf conftest* |
| 3287 | eval "ac_cv_header_$ac_safe=yes" |
| 3288 | else |
| 3289 | echo "$ac_err" >&5 |
| 3290 | echo "configure: failed program was:" >&5 |
| 3291 | cat conftest.$ac_ext >&5 |
| 3292 | rm -rf conftest* |
| 3293 | eval "ac_cv_header_$ac_safe=no" |
| 3294 | fi |
| 3295 | rm -f conftest* |
| 3296 | fi |
| 3297 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3298 | echo "$ac_t""yes" 1>&6 |
| 3299 | cat >> confdefs.h <<\EOF |
| 3300 | #define WITH_THREAD 1 |
| 3301 | EOF |
| 3302 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3303 | cat >> confdefs.h <<\EOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3304 | #define BEOS_THREADS 1 |
| 3305 | EOF |
| 3306 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3307 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3308 | else |
| 3309 | echo "$ac_t""no" 1>&6 |
| 3310 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3311 | echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3312 | echo "configure:3313: checking for pthread_create in -lpthreads" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3313 | ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3314 | 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] | 3315 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3316 | else |
| 3317 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3318 | LIBS="-lpthreads $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3319 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3320 | #line 3321 "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3321 | #include "confdefs.h" |
| 3322 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3323 | /* We use char because int might match the return type of a gcc2 |
| 3324 | builtin and then its argument prototype would still apply. */ |
| 3325 | char pthread_create(); |
| 3326 | |
| 3327 | int main() { |
| 3328 | pthread_create() |
| 3329 | ; return 0; } |
| 3330 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3331 | if { (eval echo configure:3332: \"$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] | 3332 | rm -rf conftest* |
| 3333 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3334 | else |
| 3335 | echo "configure: failed program was:" >&5 |
| 3336 | cat conftest.$ac_ext >&5 |
| 3337 | rm -rf conftest* |
| 3338 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3339 | fi |
| 3340 | rm -f conftest* |
| 3341 | LIBS="$ac_save_LIBS" |
| 3342 | |
| 3343 | fi |
| 3344 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3345 | echo "$ac_t""yes" 1>&6 |
| 3346 | cat >> confdefs.h <<\EOF |
| 3347 | #define WITH_THREAD 1 |
| 3348 | EOF |
| 3349 | |
| 3350 | cat >> confdefs.h <<\EOF |
| 3351 | #define _POSIX_THREADS 1 |
| 3352 | EOF |
| 3353 | |
| 3354 | LIBS="$LIBS -lpthreads" |
| 3355 | LIBOBJS="$LIBOBJS thread.o" |
| 3356 | else |
| 3357 | echo "$ac_t""no" 1>&6 |
| 3358 | |
| 3359 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3360 | echo "configure:3361: checking for pthread_create in -lc_r" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3361 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3362 | 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] | 3363 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3364 | else |
| 3365 | ac_save_LIBS="$LIBS" |
| 3366 | LIBS="-lc_r $LIBS" |
| 3367 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3368 | #line 3369 "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3369 | #include "confdefs.h" |
| 3370 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3371 | /* We use char because int might match the return type of a gcc2 |
| 3372 | builtin and then its argument prototype would still apply. */ |
| 3373 | char pthread_create(); |
| 3374 | |
| 3375 | int main() { |
| 3376 | pthread_create() |
| 3377 | ; return 0; } |
| 3378 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3379 | if { (eval echo configure:3380: \"$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] | 3380 | rm -rf conftest* |
| 3381 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3382 | else |
| 3383 | echo "configure: failed program was:" >&5 |
| 3384 | cat conftest.$ac_ext >&5 |
| 3385 | rm -rf conftest* |
| 3386 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3387 | fi |
| 3388 | rm -f conftest* |
| 3389 | LIBS="$ac_save_LIBS" |
| 3390 | |
| 3391 | fi |
| 3392 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3393 | echo "$ac_t""yes" 1>&6 |
| 3394 | cat >> confdefs.h <<\EOF |
| 3395 | #define WITH_THREAD 1 |
| 3396 | EOF |
| 3397 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3398 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3399 | #define _POSIX_THREADS 1 |
| 3400 | EOF |
| 3401 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3402 | LIBS="$LIBS -lc_r" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3403 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3404 | else |
| 3405 | echo "$ac_t""no" 1>&6 |
| 3406 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3407 | echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3408 | echo "configure:3409: checking for __d6_pthread_create in -lthread" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3409 | ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3410 | 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] | 3411 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3412 | else |
| 3413 | ac_save_LIBS="$LIBS" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3414 | LIBS="-lthread $LIBS" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3415 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3416 | #line 3417 "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3417 | #include "confdefs.h" |
| 3418 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3419 | /* We use char because int might match the return type of a gcc2 |
| 3420 | builtin and then its argument prototype would still apply. */ |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3421 | char __d6_pthread_create(); |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3422 | |
| 3423 | int main() { |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3424 | __d6_pthread_create() |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3425 | ; return 0; } |
| 3426 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3427 | if { (eval echo configure:3428: \"$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] | 3428 | rm -rf conftest* |
| 3429 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3430 | else |
| 3431 | echo "configure: failed program was:" >&5 |
| 3432 | cat conftest.$ac_ext >&5 |
| 3433 | rm -rf conftest* |
| 3434 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3435 | fi |
| 3436 | rm -f conftest* |
| 3437 | LIBS="$ac_save_LIBS" |
| 3438 | |
| 3439 | fi |
| 3440 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3441 | echo "$ac_t""yes" 1>&6 |
| 3442 | cat >> confdefs.h <<\EOF |
| 3443 | #define WITH_THREAD 1 |
| 3444 | EOF |
| 3445 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3446 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3447 | #define _POSIX_THREADS 1 |
| 3448 | EOF |
| 3449 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3450 | LIBS="$LIBS -lthread" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3451 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3452 | else |
| 3453 | echo "$ac_t""no" 1>&6 |
| 3454 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3455 | echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6 |
| 3456 | echo "configure:3457: checking for __pthread_create_system in -lpthread" >&5 |
| 3457 | ac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'` |
| 3458 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3459 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3460 | else |
| 3461 | ac_save_LIBS="$LIBS" |
| 3462 | LIBS="-lpthread $LIBS" |
| 3463 | cat > conftest.$ac_ext <<EOF |
| 3464 | #line 3465 "configure" |
| 3465 | #include "confdefs.h" |
| 3466 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3467 | /* We use char because int might match the return type of a gcc2 |
| 3468 | builtin and then its argument prototype would still apply. */ |
| 3469 | char __pthread_create_system(); |
| 3470 | |
| 3471 | int main() { |
| 3472 | __pthread_create_system() |
| 3473 | ; return 0; } |
| 3474 | EOF |
| 3475 | if { (eval echo configure:3476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3476 | rm -rf conftest* |
| 3477 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3478 | else |
| 3479 | echo "configure: failed program was:" >&5 |
| 3480 | cat conftest.$ac_ext >&5 |
| 3481 | rm -rf conftest* |
| 3482 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3483 | fi |
| 3484 | rm -f conftest* |
| 3485 | LIBS="$ac_save_LIBS" |
| 3486 | |
| 3487 | fi |
| 3488 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3489 | echo "$ac_t""yes" 1>&6 |
| 3490 | cat >> confdefs.h <<\EOF |
| 3491 | #define WITH_THREAD 1 |
| 3492 | EOF |
| 3493 | |
| 3494 | cat >> confdefs.h <<\EOF |
| 3495 | #define _POSIX_THREADS 1 |
| 3496 | EOF |
| 3497 | |
| 3498 | LIBS="$LIBS -lpthread" |
| 3499 | LIBOBJS="$LIBOBJS thread.o" |
| 3500 | else |
| 3501 | echo "$ac_t""no" 1>&6 |
| 3502 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3503 | echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3504 | echo "configure:3505: checking for pthread_create in -lcma" >&5 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3505 | ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3506 | 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] | 3507 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3508 | else |
| 3509 | ac_save_LIBS="$LIBS" |
| 3510 | LIBS="-lcma $LIBS" |
| 3511 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3512 | #line 3513 "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3513 | #include "confdefs.h" |
| 3514 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3515 | /* We use char because int might match the return type of a gcc2 |
| 3516 | builtin and then its argument prototype would still apply. */ |
| 3517 | char pthread_create(); |
| 3518 | |
| 3519 | int main() { |
| 3520 | pthread_create() |
| 3521 | ; return 0; } |
| 3522 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3523 | if { (eval echo configure:3524: \"$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] | 3524 | rm -rf conftest* |
| 3525 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3526 | else |
| 3527 | echo "configure: failed program was:" >&5 |
| 3528 | cat conftest.$ac_ext >&5 |
| 3529 | rm -rf conftest* |
| 3530 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3531 | fi |
| 3532 | rm -f conftest* |
| 3533 | LIBS="$ac_save_LIBS" |
| 3534 | |
| 3535 | fi |
| 3536 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3537 | echo "$ac_t""yes" 1>&6 |
| 3538 | cat >> confdefs.h <<\EOF |
| 3539 | #define WITH_THREAD 1 |
| 3540 | EOF |
| 3541 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3542 | cat >> confdefs.h <<\EOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3543 | #define _POSIX_THREADS 1 |
| 3544 | EOF |
| 3545 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3546 | LIBS="$LIBS -lcma" |
| 3547 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3548 | else |
| 3549 | echo "$ac_t""no" 1>&6 |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 3550 | |
| 3551 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 3552 | fi |
| 3553 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3554 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3555 | fi |
| 3556 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3557 | fi |
| 3558 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3559 | fi |
| 3560 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3561 | fi |
| 3562 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3563 | fi |
| 3564 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3565 | fi |
| 3566 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3567 | fi |
| 3568 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3569 | fi |
| 3570 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3571 | fi |
| 3572 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3573 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3574 | echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3575 | echo "configure:3576: checking for usconfig in -lmpc" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3576 | ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3577 | 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] | 3578 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3579 | else |
| 3580 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3581 | LIBS="-lmpc $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3582 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3583 | #line 3584 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3584 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3585 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3586 | /* We use char because int might match the return type of a gcc2 |
| 3587 | builtin and then its argument prototype would still apply. */ |
| 3588 | char usconfig(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3589 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3590 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3591 | usconfig() |
| 3592 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3593 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3594 | if { (eval echo configure:3595: \"$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] | 3595 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3596 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3597 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3598 | echo "configure: failed program was:" >&5 |
| 3599 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3600 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3601 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3602 | fi |
| 3603 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3604 | LIBS="$ac_save_LIBS" |
| 3605 | |
| 3606 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3607 | 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] | 3608 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3609 | cat >> confdefs.h <<\EOF |
| 3610 | #define WITH_THREAD 1 |
| 3611 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3612 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3613 | LIBS="$LIBS -lmpc" |
| 3614 | LIBOBJS="$LIBOBJS thread.o" |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 3615 | USE_THREAD_MODULE="" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3616 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3617 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3618 | fi |
| 3619 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3620 | echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3621 | echo "configure:3622: checking for thr_create in -lthread" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3622 | ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3623 | 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] | 3624 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3625 | else |
| 3626 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3627 | LIBS="-lthread $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3628 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3629 | #line 3630 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3630 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3631 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3632 | /* We use char because int might match the return type of a gcc2 |
| 3633 | builtin and then its argument prototype would still apply. */ |
| 3634 | char thr_create(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3635 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3636 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3637 | thr_create() |
| 3638 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3639 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3640 | if { (eval echo configure:3641: \"$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] | 3641 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3642 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3643 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3644 | echo "configure: failed program was:" >&5 |
| 3645 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3646 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3647 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3648 | fi |
| 3649 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3650 | LIBS="$ac_save_LIBS" |
| 3651 | |
| 3652 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3653 | 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] | 3654 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3655 | cat >> confdefs.h <<\EOF |
| 3656 | #define WITH_THREAD 1 |
| 3657 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3658 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3659 | LIBS="$LIBS -lthread" |
| 3660 | LIBOBJS="$LIBOBJS thread.o" |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 3661 | USE_THREAD_MODULE="" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3662 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3663 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3664 | fi |
| 3665 | |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 3666 | |
| 3667 | if test "$USE_THREAD_MODULE" != "#" |
| 3668 | then |
| 3669 | # If the above checks didn't disable threads, (at least) OSF1 |
| 3670 | # needs this '-threads' argument during linking. |
| 3671 | case $ac_sys_system in |
| 3672 | OSF1) LDLAST=-threads;; |
| 3673 | esac |
| 3674 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3675 | fi |
| 3676 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3677 | # Check for GC support |
| 3678 | |
| 3679 | USE_GC_MODULE="" |
| 3680 | echo $ac_n "checking for --with-cycle-gc""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3681 | echo "configure:3682: checking for --with-cycle-gc" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3682 | # Check whether --with-cycle-gc or --without-cycle-gc was given. |
| 3683 | if test "${with_cycle_gc+set}" = set; then |
| 3684 | withval="$with_cycle_gc" |
| 3685 | : |
| 3686 | fi |
| 3687 | |
| 3688 | |
| 3689 | if test -z "$with_cycle_gc" |
| 3690 | then with_cycle_gc="yes" |
| 3691 | fi |
| 3692 | if test "$with_cycle_gc" = "no" |
| 3693 | then |
| 3694 | USE_GC_MODULE="#" |
| 3695 | else |
| 3696 | cat >> confdefs.h <<\EOF |
| 3697 | #define WITH_CYCLE_GC 1 |
| 3698 | EOF |
| 3699 | |
| 3700 | fi |
| 3701 | echo "$ac_t""$with_cycle_gc" 1>&6 |
| 3702 | |
Fred Drake | a50d6ec | 2000-08-31 16:13:20 +0000 | [diff] [blame] | 3703 | # Check for LIBDB support |
| 3704 | # either --with-libdb or, in its absence, the presence of db.h |
| 3705 | |
| 3706 | USE_BSDDB_MODULE="" |
| 3707 | echo $ac_n "checking for --with-libdb""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3708 | echo "configure:3709: checking for --with-libdb" >&5 |
Fred Drake | a50d6ec | 2000-08-31 16:13:20 +0000 | [diff] [blame] | 3709 | # Check whether --with-libdb or --without-libdb was given. |
| 3710 | if test "${with_libdb+set}" = set; then |
| 3711 | withval="$with_libdb" |
| 3712 | : |
| 3713 | fi |
| 3714 | |
| 3715 | |
Skip Montanaro | b89f41e | 2000-09-04 04:06:05 +0000 | [diff] [blame] | 3716 | # enabled by default, but db.h must be found |
| 3717 | if test "$ac_cv_header_db_h" = "yes" |
| 3718 | then |
| 3719 | if test "$with_libdb" != "no" |
| 3720 | then with_libdb="yes" |
| 3721 | fi |
| 3722 | else |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 3723 | # make sure user knows why bsddb support wasn't enabled even |
Skip Montanaro | b89f41e | 2000-09-04 04:06:05 +0000 | [diff] [blame] | 3724 | # though s/he requested it |
| 3725 | if test "$with_libdb" = "yes" |
| 3726 | then echo $ac_n "(requested, but db.h was not found) $ac_c" |
| 3727 | fi |
| 3728 | with_libdb="no" |
Fred Drake | a50d6ec | 2000-08-31 16:13:20 +0000 | [diff] [blame] | 3729 | fi |
Skip Montanaro | b89f41e | 2000-09-04 04:06:05 +0000 | [diff] [blame] | 3730 | |
Fred Drake | a50d6ec | 2000-08-31 16:13:20 +0000 | [diff] [blame] | 3731 | if test "$with_libdb" = "no" |
| 3732 | then |
| 3733 | USE_BSDDB_MODULE="#" |
| 3734 | else |
| 3735 | cat >> confdefs.h <<\EOF |
| 3736 | #define WITH_LIBDB 1 |
| 3737 | EOF |
| 3738 | |
| 3739 | fi |
| 3740 | echo "$ac_t""$with_libdb" 1>&6 |
| 3741 | |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 3742 | if test "$with_libdb" = "yes" |
| 3743 | then |
| 3744 | # check for libdb; BSD systems have the DB routines in libc --tg |
| 3745 | |
Martin v. Löwis | 05a65d6 | 2000-09-24 19:40:25 +0000 | [diff] [blame] | 3746 | # If dbopen is not in libc, then checking whether it is in libdb |
| 3747 | # is difficult: db_185.h may #define it as __db185_open |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 3748 | # Instead, we just trust it is in libdb; linking will fail if it |
| 3749 | # is not. |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 3750 | echo $ac_n "checking for dbopen""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3751 | echo "configure:3752: checking for dbopen" >&5 |
| 3752 | if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 3753 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3754 | else |
| 3755 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3756 | #line 3757 "configure" |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 3757 | #include "confdefs.h" |
| 3758 | /* System header to define __stub macros and hopefully few prototypes, |
| 3759 | which can conflict with char dbopen(); below. */ |
| 3760 | #include <assert.h> |
| 3761 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3762 | /* We use char because int might match the return type of a gcc2 |
| 3763 | builtin and then its argument prototype would still apply. */ |
| 3764 | char dbopen(); |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 3765 | |
| 3766 | int main() { |
| 3767 | |
| 3768 | /* The GNU C library defines this for functions which it implements |
| 3769 | to always fail with ENOSYS. Some functions are actually named |
| 3770 | something starting with __ and the normal name is an alias. */ |
| 3771 | #if defined (__stub_dbopen) || defined (__stub___dbopen) |
| 3772 | choke me |
| 3773 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3774 | dbopen(); |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 3775 | #endif |
| 3776 | |
| 3777 | ; return 0; } |
| 3778 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3779 | if { (eval echo configure:3780: \"$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] | 3780 | rm -rf conftest* |
| 3781 | eval "ac_cv_func_dbopen=yes" |
| 3782 | else |
| 3783 | echo "configure: failed program was:" >&5 |
| 3784 | cat conftest.$ac_ext >&5 |
| 3785 | rm -rf conftest* |
| 3786 | eval "ac_cv_func_dbopen=no" |
| 3787 | fi |
| 3788 | rm -f conftest* |
| 3789 | fi |
| 3790 | |
| 3791 | if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then |
| 3792 | echo "$ac_t""yes" 1>&6 |
| 3793 | HAVE_LIBDB= |
| 3794 | else |
| 3795 | echo "$ac_t""no" 1>&6 |
Martin v. Löwis | 05a65d6 | 2000-09-24 19:40:25 +0000 | [diff] [blame] | 3796 | HAVE_LIBDB=-ldb |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 3797 | fi |
| 3798 | |
| 3799 | fi |
| 3800 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3801 | # Check for --with-wctype-functions |
| 3802 | echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3803 | echo "configure:3804: checking for --with-wctype-functions" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3804 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 3805 | if test "${with_wctype_functions+set}" = set; then |
| 3806 | withval="$with_wctype_functions" |
| 3807 | |
| 3808 | if test "$withval" != no |
| 3809 | then cat >> confdefs.h <<\EOF |
| 3810 | #define WANT_WCTYPE_FUNCTIONS 1 |
| 3811 | EOF |
| 3812 | echo "$ac_t""yes" 1>&6 |
| 3813 | else echo "$ac_t""no" 1>&6 |
| 3814 | fi |
| 3815 | else |
| 3816 | echo "$ac_t""no" 1>&6 |
| 3817 | fi |
| 3818 | |
| 3819 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3820 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3821 | |
| 3822 | DLINCLDIR=/ |
| 3823 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3824 | echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3825 | echo "configure:3826: checking for --with-sgi-dl" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3826 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3827 | if test "${with_sgi_dl+set}" = set; then |
| 3828 | withval="$with_sgi_dl" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3829 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3830 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3831 | cat >> confdefs.h <<\EOF |
| 3832 | #define WITH_SGI_DL 1 |
| 3833 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3834 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3835 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3836 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 3837 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3838 | then LDFLAGS="$LDFLAGS -L$dldir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3839 | 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] | 3840 | fi |
| 3841 | DLINCLDIR=${dldir} |
| 3842 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3843 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3844 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3845 | fi |
| 3846 | |
| 3847 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3848 | echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3849 | echo "configure:3850: checking for --with-dl-dld" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3850 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3851 | if test "${with_dl_dld+set}" = set; then |
| 3852 | withval="$with_dl_dld" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3853 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3854 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3855 | cat >> confdefs.h <<\EOF |
| 3856 | #define WITH_DL_DLD 1 |
| 3857 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3858 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3859 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3860 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 3861 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 3862 | 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] | 3863 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3864 | 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] | 3865 | fi |
| 3866 | DLINCLDIR=${dldir} |
| 3867 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3868 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3869 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3870 | fi |
| 3871 | |
| 3872 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3873 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 3874 | # 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] | 3875 | for ac_func in dlopen |
| 3876 | do |
| 3877 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3878 | echo "configure:3879: checking for $ac_func" >&5 |
| 3879 | 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] | 3880 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3881 | else |
| 3882 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3883 | #line 3884 "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3884 | #include "confdefs.h" |
| 3885 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3886 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3887 | #include <assert.h> |
| 3888 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3889 | /* We use char because int might match the return type of a gcc2 |
| 3890 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3891 | char $ac_func(); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3892 | |
| 3893 | int main() { |
| 3894 | |
| 3895 | /* The GNU C library defines this for functions which it implements |
| 3896 | to always fail with ENOSYS. Some functions are actually named |
| 3897 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3898 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3899 | choke me |
| 3900 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3901 | $ac_func(); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3902 | #endif |
| 3903 | |
| 3904 | ; return 0; } |
| 3905 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3906 | if { (eval echo configure:3907: \"$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] | 3907 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3908 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3909 | else |
| 3910 | echo "configure: failed program was:" >&5 |
| 3911 | cat conftest.$ac_ext >&5 |
| 3912 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3913 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3914 | fi |
| 3915 | rm -f conftest* |
| 3916 | fi |
| 3917 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3918 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3919 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3920 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3921 | cat >> confdefs.h <<EOF |
| 3922 | #define $ac_tr_func 1 |
| 3923 | EOF |
| 3924 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3925 | else |
| 3926 | echo "$ac_t""no" 1>&6 |
| 3927 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3928 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3929 | |
| 3930 | |
| 3931 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 3932 | # loading of modules. |
| 3933 | |
| 3934 | echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3935 | echo "configure:3936: checking DYNLOADFILE" >&5 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3936 | if test -z "$DYNLOADFILE" |
| 3937 | then |
| 3938 | case $ac_sys_system/$ac_sys_release in |
| 3939 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 3940 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 3941 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3942 | Darwin/*|next/*) DYNLOADFILE="dynload_next.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3943 | *) |
| 3944 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 3945 | # out any dynamic loading |
| 3946 | if test "$ac_cv_func_dlopen" = yes |
| 3947 | then DYNLOADFILE="dynload_shlib.o" |
| 3948 | else DYNLOADFILE="dynload_stub.o" |
| 3949 | fi |
| 3950 | ;; |
| 3951 | esac |
| 3952 | fi |
| 3953 | echo "$ac_t""$DYNLOADFILE" 1>&6 |
| 3954 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 3955 | then |
| 3956 | cat >> confdefs.h <<\EOF |
| 3957 | #define HAVE_DYNAMIC_LOADING 1 |
| 3958 | EOF |
| 3959 | |
| 3960 | fi |
| 3961 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3962 | # checks for library functions |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3963 | for ac_func in alarm chown clock confstr ctermid ctermid_r execv \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 3964 | flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3965 | getgroups getlogin getpeername getpid getpwent getwd \ |
Andrew M. Kuchling | 22c6934 | 2000-06-18 15:07:40 +0000 | [diff] [blame] | 3966 | kill link lstat mkfifo mktime mremap \ |
Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame] | 3967 | nice pathconf pause plock poll pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 3968 | putenv readlink \ |
Andrew M. Kuchling | 8d2f2b2 | 2000-07-13 01:26:58 +0000 | [diff] [blame] | 3969 | select setegid seteuid setgid \ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3970 | setlocale setregid setreuid setsid setpgid setuid setvbuf \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 3971 | sigaction siginterrupt sigrelse strftime strptime symlink sysconf \ |
Fred Drake | 89143df | 1999-12-09 22:03:25 +0000 | [diff] [blame] | 3972 | tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Thomas Wouters | 70c21a1 | 2000-07-14 14:28:33 +0000 | [diff] [blame] | 3973 | truncate uname waitpid _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3974 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3975 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3976 | echo "configure:3977: checking for $ac_func" >&5 |
| 3977 | 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] | 3978 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3979 | else |
| 3980 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3981 | #line 3982 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3982 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3983 | /* System header to define __stub macros and hopefully few prototypes, |
| 3984 | which can conflict with char $ac_func(); below. */ |
| 3985 | #include <assert.h> |
| 3986 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3987 | /* We use char because int might match the return type of a gcc2 |
| 3988 | builtin and then its argument prototype would still apply. */ |
| 3989 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3990 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3991 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3992 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3993 | /* The GNU C library defines this for functions which it implements |
| 3994 | to always fail with ENOSYS. Some functions are actually named |
| 3995 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3996 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3997 | choke me |
| 3998 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3999 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4000 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4001 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4002 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4003 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4004 | if { (eval echo configure:4005: \"$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] | 4005 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4006 | eval "ac_cv_func_$ac_func=yes" |
| 4007 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4008 | echo "configure: failed program was:" >&5 |
| 4009 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4010 | rm -rf conftest* |
| 4011 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4012 | fi |
| 4013 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4014 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4015 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4016 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4017 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4018 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4019 | cat >> confdefs.h <<EOF |
| 4020 | #define $ac_tr_func 1 |
| 4021 | EOF |
| 4022 | |
| 4023 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4024 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4025 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4026 | done |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4027 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4028 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4029 | # check for openpty and forkpty |
| 4030 | |
| 4031 | for ac_func in openpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4032 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4033 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4034 | echo "configure:4035: checking for $ac_func" >&5 |
| 4035 | 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] | 4036 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4037 | else |
| 4038 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4039 | #line 4040 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4040 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4041 | /* System header to define __stub macros and hopefully few prototypes, |
| 4042 | which can conflict with char $ac_func(); below. */ |
| 4043 | #include <assert.h> |
| 4044 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4045 | /* We use char because int might match the return type of a gcc2 |
| 4046 | builtin and then its argument prototype would still apply. */ |
| 4047 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4048 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4049 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4050 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4051 | /* The GNU C library defines this for functions which it implements |
| 4052 | to always fail with ENOSYS. Some functions are actually named |
| 4053 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4054 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4055 | choke me |
| 4056 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4057 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4058 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4059 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4060 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4061 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4062 | if { (eval echo configure:4063: \"$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] | 4063 | rm -rf conftest* |
| 4064 | eval "ac_cv_func_$ac_func=yes" |
| 4065 | else |
| 4066 | echo "configure: failed program was:" >&5 |
| 4067 | cat conftest.$ac_ext >&5 |
| 4068 | rm -rf conftest* |
| 4069 | eval "ac_cv_func_$ac_func=no" |
| 4070 | fi |
| 4071 | rm -f conftest* |
| 4072 | fi |
| 4073 | |
| 4074 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4075 | echo "$ac_t""yes" 1>&6 |
| 4076 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4077 | cat >> confdefs.h <<EOF |
| 4078 | #define $ac_tr_func 1 |
| 4079 | EOF |
| 4080 | |
| 4081 | else |
| 4082 | echo "$ac_t""no" 1>&6 |
| 4083 | echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4084 | echo "configure:4085: checking for openpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4085 | ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4086 | 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] | 4087 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4088 | else |
| 4089 | ac_save_LIBS="$LIBS" |
| 4090 | LIBS="-lutil $LIBS" |
| 4091 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4092 | #line 4093 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4093 | #include "confdefs.h" |
| 4094 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4095 | /* We use char because int might match the return type of a gcc2 |
| 4096 | builtin and then its argument prototype would still apply. */ |
| 4097 | char openpty(); |
| 4098 | |
| 4099 | int main() { |
| 4100 | openpty() |
| 4101 | ; return 0; } |
| 4102 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4103 | if { (eval echo configure:4104: \"$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] | 4104 | rm -rf conftest* |
| 4105 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4106 | else |
| 4107 | echo "configure: failed program was:" >&5 |
| 4108 | cat conftest.$ac_ext >&5 |
| 4109 | rm -rf conftest* |
| 4110 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4111 | fi |
| 4112 | rm -f conftest* |
| 4113 | LIBS="$ac_save_LIBS" |
| 4114 | |
| 4115 | fi |
| 4116 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4117 | echo "$ac_t""yes" 1>&6 |
| 4118 | cat >> confdefs.h <<\EOF |
| 4119 | #define HAVE_OPENPTY 1 |
| 4120 | EOF |
| 4121 | LIBS="$LIBS -lutil" |
| 4122 | else |
| 4123 | echo "$ac_t""no" 1>&6 |
| 4124 | fi |
| 4125 | |
| 4126 | fi |
| 4127 | done |
| 4128 | |
| 4129 | for ac_func in forkpty |
| 4130 | do |
| 4131 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4132 | echo "configure:4133: checking for $ac_func" >&5 |
| 4133 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4134 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4135 | else |
| 4136 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4137 | #line 4138 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4138 | #include "confdefs.h" |
| 4139 | /* System header to define __stub macros and hopefully few prototypes, |
| 4140 | which can conflict with char $ac_func(); below. */ |
| 4141 | #include <assert.h> |
| 4142 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4143 | /* We use char because int might match the return type of a gcc2 |
| 4144 | builtin and then its argument prototype would still apply. */ |
| 4145 | char $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4146 | |
| 4147 | int main() { |
| 4148 | |
| 4149 | /* The GNU C library defines this for functions which it implements |
| 4150 | to always fail with ENOSYS. Some functions are actually named |
| 4151 | something starting with __ and the normal name is an alias. */ |
| 4152 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4153 | choke me |
| 4154 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4155 | $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4156 | #endif |
| 4157 | |
| 4158 | ; return 0; } |
| 4159 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4160 | if { (eval echo configure:4161: \"$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] | 4161 | rm -rf conftest* |
| 4162 | eval "ac_cv_func_$ac_func=yes" |
| 4163 | else |
| 4164 | echo "configure: failed program was:" >&5 |
| 4165 | cat conftest.$ac_ext >&5 |
| 4166 | rm -rf conftest* |
| 4167 | eval "ac_cv_func_$ac_func=no" |
| 4168 | fi |
| 4169 | rm -f conftest* |
| 4170 | fi |
| 4171 | |
| 4172 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4173 | echo "$ac_t""yes" 1>&6 |
| 4174 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4175 | cat >> confdefs.h <<EOF |
| 4176 | #define $ac_tr_func 1 |
| 4177 | EOF |
| 4178 | |
| 4179 | else |
| 4180 | echo "$ac_t""no" 1>&6 |
| 4181 | echo $ac_n "checking for forkpty in -lutil""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4182 | echo "configure:4183: checking for forkpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4183 | ac_lib_var=`echo util'_'forkpty | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4184 | 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] | 4185 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4186 | else |
| 4187 | ac_save_LIBS="$LIBS" |
| 4188 | LIBS="-lutil $LIBS" |
| 4189 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4190 | #line 4191 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4191 | #include "confdefs.h" |
| 4192 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4193 | /* We use char because int might match the return type of a gcc2 |
| 4194 | builtin and then its argument prototype would still apply. */ |
| 4195 | char forkpty(); |
| 4196 | |
| 4197 | int main() { |
| 4198 | forkpty() |
| 4199 | ; return 0; } |
| 4200 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4201 | if { (eval echo configure:4202: \"$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] | 4202 | rm -rf conftest* |
| 4203 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4204 | else |
| 4205 | echo "configure: failed program was:" >&5 |
| 4206 | cat conftest.$ac_ext >&5 |
| 4207 | rm -rf conftest* |
| 4208 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4209 | fi |
| 4210 | rm -f conftest* |
| 4211 | LIBS="$ac_save_LIBS" |
| 4212 | |
| 4213 | fi |
| 4214 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4215 | echo "$ac_t""yes" 1>&6 |
| 4216 | cat >> confdefs.h <<\EOF |
| 4217 | #define HAVE_FORKPTY 1 |
| 4218 | EOF |
| 4219 | LIBS="$LIBS -lutil" |
| 4220 | else |
| 4221 | echo "$ac_t""no" 1>&6 |
| 4222 | fi |
| 4223 | |
| 4224 | fi |
| 4225 | done |
| 4226 | |
| 4227 | |
| 4228 | # check for long file support functions |
| 4229 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 4230 | do |
| 4231 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4232 | echo "configure:4233: checking for $ac_func" >&5 |
| 4233 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4234 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4235 | else |
| 4236 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4237 | #line 4238 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4238 | #include "confdefs.h" |
| 4239 | /* System header to define __stub macros and hopefully few prototypes, |
| 4240 | which can conflict with char $ac_func(); below. */ |
| 4241 | #include <assert.h> |
| 4242 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4243 | /* We use char because int might match the return type of a gcc2 |
| 4244 | builtin and then its argument prototype would still apply. */ |
| 4245 | char $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4246 | |
| 4247 | int main() { |
| 4248 | |
| 4249 | /* The GNU C library defines this for functions which it implements |
| 4250 | to always fail with ENOSYS. Some functions are actually named |
| 4251 | something starting with __ and the normal name is an alias. */ |
| 4252 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4253 | choke me |
| 4254 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4255 | $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4256 | #endif |
| 4257 | |
| 4258 | ; return 0; } |
| 4259 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4260 | if { (eval echo configure:4261: \"$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] | 4261 | rm -rf conftest* |
| 4262 | eval "ac_cv_func_$ac_func=yes" |
| 4263 | else |
| 4264 | echo "configure: failed program was:" >&5 |
| 4265 | cat conftest.$ac_ext >&5 |
| 4266 | rm -rf conftest* |
| 4267 | eval "ac_cv_func_$ac_func=no" |
| 4268 | fi |
| 4269 | rm -f conftest* |
| 4270 | fi |
| 4271 | |
| 4272 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4273 | echo "$ac_t""yes" 1>&6 |
| 4274 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4275 | cat >> confdefs.h <<EOF |
| 4276 | #define $ac_tr_func 1 |
| 4277 | EOF |
| 4278 | |
| 4279 | else |
| 4280 | echo "$ac_t""no" 1>&6 |
| 4281 | fi |
| 4282 | done |
| 4283 | |
| 4284 | |
| 4285 | for ac_func in dup2 getcwd strdup strerror memmove |
| 4286 | do |
| 4287 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4288 | echo "configure:4289: checking for $ac_func" >&5 |
| 4289 | 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] | 4290 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4291 | else |
| 4292 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4293 | #line 4294 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4294 | #include "confdefs.h" |
| 4295 | /* System header to define __stub macros and hopefully few prototypes, |
| 4296 | which can conflict with char $ac_func(); below. */ |
| 4297 | #include <assert.h> |
| 4298 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4299 | /* We use char because int might match the return type of a gcc2 |
| 4300 | builtin and then its argument prototype would still apply. */ |
| 4301 | char $ac_func(); |
| 4302 | |
| 4303 | int main() { |
| 4304 | |
| 4305 | /* The GNU C library defines this for functions which it implements |
| 4306 | to always fail with ENOSYS. Some functions are actually named |
| 4307 | something starting with __ and the normal name is an alias. */ |
| 4308 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4309 | choke me |
| 4310 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4311 | $ac_func(); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4312 | #endif |
| 4313 | |
| 4314 | ; return 0; } |
| 4315 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4316 | if { (eval echo configure:4317: \"$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] | 4317 | rm -rf conftest* |
| 4318 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4319 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4320 | echo "configure: failed program was:" >&5 |
| 4321 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4322 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4323 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4324 | fi |
| 4325 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4326 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4327 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4328 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4329 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4330 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4331 | cat >> confdefs.h <<EOF |
| 4332 | #define $ac_tr_func 1 |
| 4333 | EOF |
| 4334 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4335 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4336 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4337 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4338 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4339 | done |
| 4340 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4341 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4342 | for ac_func in getpgrp |
| 4343 | do |
| 4344 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4345 | echo "configure:4346: checking for $ac_func" >&5 |
| 4346 | 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] | 4347 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4348 | else |
| 4349 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4350 | #line 4351 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4351 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4352 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4353 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4354 | #include <assert.h> |
| 4355 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4356 | /* We use char because int might match the return type of a gcc2 |
| 4357 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4358 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4359 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4360 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4361 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4362 | /* The GNU C library defines this for functions which it implements |
| 4363 | to always fail with ENOSYS. Some functions are actually named |
| 4364 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4365 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4366 | choke me |
| 4367 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4368 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4369 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4370 | |
| 4371 | ; return 0; } |
| 4372 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4373 | if { (eval echo configure:4374: \"$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] | 4374 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4375 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4376 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4377 | echo "configure: failed program was:" >&5 |
| 4378 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4379 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4380 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4381 | fi |
| 4382 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4383 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4384 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4385 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4386 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4387 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4388 | cat >> confdefs.h <<EOF |
| 4389 | #define $ac_tr_func 1 |
| 4390 | EOF |
| 4391 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4392 | #line 4393 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4393 | #include "confdefs.h" |
| 4394 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4395 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4396 | getpgrp(0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4397 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4398 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4399 | if { (eval echo configure:4400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4400 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4401 | cat >> confdefs.h <<\EOF |
| 4402 | #define GETPGRP_HAVE_ARG 1 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4403 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4404 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4405 | else |
| 4406 | echo "configure: failed program was:" >&5 |
| 4407 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4408 | fi |
| 4409 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4410 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4411 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4412 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4413 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4414 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4415 | for ac_func in setpgrp |
| 4416 | do |
| 4417 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4418 | echo "configure:4419: checking for $ac_func" >&5 |
| 4419 | 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] | 4420 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4421 | else |
| 4422 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4423 | #line 4424 "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4424 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4425 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4426 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4427 | #include <assert.h> |
| 4428 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4429 | /* We use char because int might match the return type of a gcc2 |
| 4430 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4431 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4432 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4433 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4434 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4435 | /* The GNU C library defines this for functions which it implements |
| 4436 | to always fail with ENOSYS. Some functions are actually named |
| 4437 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4438 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4439 | choke me |
| 4440 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4441 | $ac_func(); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4442 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4443 | |
| 4444 | ; return 0; } |
| 4445 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4446 | if { (eval echo configure:4447: \"$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] | 4447 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4448 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4449 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4450 | echo "configure: failed program was:" >&5 |
| 4451 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4452 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4453 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4454 | fi |
| 4455 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4456 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4457 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4458 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4459 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4460 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4461 | cat >> confdefs.h <<EOF |
| 4462 | #define $ac_tr_func 1 |
| 4463 | EOF |
| 4464 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4465 | #line 4466 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4466 | #include "confdefs.h" |
| 4467 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4468 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4469 | setpgrp(0,0); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4470 | ; return 0; } |
| 4471 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4472 | if { (eval echo configure:4473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4473 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4474 | cat >> confdefs.h <<\EOF |
| 4475 | #define SETPGRP_HAVE_ARG 1 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4476 | EOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4477 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4478 | else |
| 4479 | echo "configure: failed program was:" >&5 |
| 4480 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4481 | fi |
| 4482 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4483 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4484 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4485 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4486 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4487 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4488 | for ac_func in gettimeofday |
| 4489 | do |
| 4490 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4491 | echo "configure:4492: checking for $ac_func" >&5 |
| 4492 | 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] | 4493 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4494 | else |
| 4495 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4496 | #line 4497 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4497 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4498 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4499 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4500 | #include <assert.h> |
| 4501 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4502 | /* We use char because int might match the return type of a gcc2 |
| 4503 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4504 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4505 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4506 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4507 | |
| 4508 | /* The GNU C library defines this for functions which it implements |
| 4509 | to always fail with ENOSYS. Some functions are actually named |
| 4510 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4511 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4512 | choke me |
| 4513 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4514 | $ac_func(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4515 | #endif |
| 4516 | |
| 4517 | ; return 0; } |
| 4518 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4519 | if { (eval echo configure:4520: \"$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] | 4520 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4521 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4522 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4523 | echo "configure: failed program was:" >&5 |
| 4524 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4525 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4526 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4527 | fi |
| 4528 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4529 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4530 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4531 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4532 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4533 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4534 | cat >> confdefs.h <<EOF |
| 4535 | #define $ac_tr_func 1 |
| 4536 | EOF |
| 4537 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4538 | #line 4539 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4539 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4540 | #include <sys/time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4541 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4542 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
| 4543 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4544 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4545 | if { (eval echo configure:4546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4546 | : |
| 4547 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4548 | echo "configure: failed program was:" >&5 |
| 4549 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4550 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4551 | cat >> confdefs.h <<\EOF |
| 4552 | #define GETTIMEOFDAY_NO_TZ 1 |
| 4553 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4554 | |
| 4555 | fi |
| 4556 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4557 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4558 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4559 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4560 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4561 | |
| 4562 | |
| 4563 | # checks for structures |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4564 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4565 | echo "configure:4566: checking whether time.h and sys/time.h may both be included" >&5 |
| 4566 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4567 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4568 | else |
| 4569 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4570 | #line 4571 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4571 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4572 | #include <sys/types.h> |
| 4573 | #include <sys/time.h> |
| 4574 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4575 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4576 | struct tm *tp; |
| 4577 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4578 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4579 | if { (eval echo configure:4580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4580 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4581 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4582 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4583 | echo "configure: failed program was:" >&5 |
| 4584 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4585 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4586 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4587 | fi |
| 4588 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4589 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4590 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4591 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4592 | if test $ac_cv_header_time = yes; then |
| 4593 | cat >> confdefs.h <<\EOF |
| 4594 | #define TIME_WITH_SYS_TIME 1 |
| 4595 | EOF |
| 4596 | |
| 4597 | fi |
| 4598 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4599 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4600 | echo "configure:4601: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 4601 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4602 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4603 | else |
| 4604 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4605 | #line 4606 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4606 | #include "confdefs.h" |
| 4607 | #include <sys/types.h> |
| 4608 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4609 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4610 | struct tm *tp; tp->tm_sec; |
| 4611 | ; return 0; } |
| 4612 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4613 | if { (eval echo configure:4614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4614 | rm -rf conftest* |
| 4615 | ac_cv_struct_tm=time.h |
| 4616 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4617 | echo "configure: failed program was:" >&5 |
| 4618 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4619 | rm -rf conftest* |
| 4620 | ac_cv_struct_tm=sys/time.h |
| 4621 | fi |
| 4622 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4623 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4624 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4625 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4626 | if test $ac_cv_struct_tm = sys/time.h; then |
| 4627 | cat >> confdefs.h <<\EOF |
| 4628 | #define TM_IN_SYS_TIME 1 |
| 4629 | EOF |
| 4630 | |
| 4631 | fi |
| 4632 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4633 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 |
| 4634 | echo "configure:4635: checking for tm_zone in struct tm" >&5 |
| 4635 | 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] | 4636 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4637 | else |
| 4638 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4639 | #line 4640 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4640 | #include "confdefs.h" |
| 4641 | #include <sys/types.h> |
| 4642 | #include <$ac_cv_struct_tm> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4643 | int main() { |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4644 | struct tm tm; tm.tm_zone; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4645 | ; return 0; } |
| 4646 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4647 | if { (eval echo configure:4648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4648 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4649 | ac_cv_struct_tm_zone=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4650 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4651 | echo "configure: failed program was:" >&5 |
| 4652 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4653 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4654 | ac_cv_struct_tm_zone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4655 | fi |
| 4656 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4657 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4658 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4659 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 |
| 4660 | if test "$ac_cv_struct_tm_zone" = yes; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4661 | cat >> confdefs.h <<\EOF |
| 4662 | #define HAVE_TM_ZONE 1 |
| 4663 | EOF |
| 4664 | |
| 4665 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4666 | echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4667 | echo "configure:4668: checking for tzname" >&5 |
| 4668 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4669 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4670 | else |
| 4671 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4672 | #line 4673 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4673 | #include "confdefs.h" |
| 4674 | #include <time.h> |
| 4675 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4676 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4677 | #endif |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4678 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4679 | atoi(*tzname); |
| 4680 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4681 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4682 | if { (eval echo configure:4683: \"$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] | 4683 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4684 | ac_cv_var_tzname=yes |
| 4685 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4686 | echo "configure: failed program was:" >&5 |
| 4687 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4688 | rm -rf conftest* |
| 4689 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4690 | fi |
| 4691 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4692 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4693 | |
| 4694 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4695 | if test $ac_cv_var_tzname = yes; then |
| 4696 | cat >> confdefs.h <<\EOF |
| 4697 | #define HAVE_TZNAME 1 |
| 4698 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4699 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4700 | fi |
| 4701 | fi |
| 4702 | |
| 4703 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4704 | echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4705 | echo "configure:4706: checking for time.h that defines altzone" >&5 |
| 4706 | 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] | 4707 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4708 | else |
| 4709 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4710 | #line 4711 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4711 | #include "confdefs.h" |
| 4712 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4713 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4714 | return altzone; |
| 4715 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4716 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4717 | if { (eval echo configure:4718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4718 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4719 | ac_cv_header_time_altzone=yes |
| 4720 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4721 | echo "configure: failed program was:" >&5 |
| 4722 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4723 | rm -rf conftest* |
| 4724 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4725 | fi |
| 4726 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4727 | fi |
| 4728 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4729 | echo "$ac_t""$ac_cv_header_time_altzone" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4730 | if test $ac_cv_header_time_altzone = yes; then |
| 4731 | cat >> confdefs.h <<\EOF |
| 4732 | #define HAVE_ALTZONE 1 |
| 4733 | EOF |
| 4734 | |
| 4735 | fi |
| 4736 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4737 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4738 | echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4739 | echo "configure:4740: 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] | 4740 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4741 | #line 4742 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4742 | #include "confdefs.h" |
| 4743 | |
| 4744 | #include <sys/types.h> |
| 4745 | #include <sys/select.h> |
| 4746 | #include <sys/time.h> |
| 4747 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4748 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4749 | ; |
| 4750 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4751 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4752 | if { (eval echo configure:4753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4753 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4754 | cat >> confdefs.h <<\EOF |
| 4755 | #define SYS_SELECT_WITH_SYS_TIME 1 |
| 4756 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4757 | was_it_defined=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4758 | else |
| 4759 | echo "configure: failed program was:" >&5 |
| 4760 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4761 | fi |
| 4762 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4763 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4764 | |
| 4765 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4766 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4767 | echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4768 | echo "configure:4769: checking whether char is unsigned" >&5 |
| 4769 | 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] | 4770 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4771 | else |
| 4772 | if test "$GCC" = yes; then |
| 4773 | # GCC predefines this symbol on systems where it applies. |
| 4774 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4775 | #line 4776 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4776 | #include "confdefs.h" |
| 4777 | #ifdef __CHAR_UNSIGNED__ |
| 4778 | yes |
| 4779 | #endif |
| 4780 | |
| 4781 | EOF |
| 4782 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4783 | egrep "yes" >/dev/null 2>&1; then |
| 4784 | rm -rf conftest* |
| 4785 | ac_cv_c_char_unsigned=yes |
| 4786 | else |
| 4787 | rm -rf conftest* |
| 4788 | ac_cv_c_char_unsigned=no |
| 4789 | fi |
| 4790 | rm -f conftest* |
| 4791 | |
| 4792 | else |
| 4793 | if test "$cross_compiling" = yes; then |
| 4794 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 4795 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4796 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4797 | #line 4798 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4798 | #include "confdefs.h" |
| 4799 | /* volatile prevents gcc2 from optimizing the test away on sparcs. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4800 | #if !defined(__STDC__) || __STDC__ != 1 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4801 | #define volatile |
| 4802 | #endif |
| 4803 | main() { |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4804 | volatile char c = 255; exit(c < 0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4805 | } |
| 4806 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4807 | if { (eval echo configure:4808: \"$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] | 4808 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4809 | ac_cv_c_char_unsigned=yes |
| 4810 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4811 | echo "configure: failed program was:" >&5 |
| 4812 | cat conftest.$ac_ext >&5 |
| 4813 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4814 | ac_cv_c_char_unsigned=no |
| 4815 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4816 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4817 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4818 | |
| 4819 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4820 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4821 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4822 | echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4823 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
| 4824 | cat >> confdefs.h <<\EOF |
| 4825 | #define __CHAR_UNSIGNED__ 1 |
| 4826 | EOF |
| 4827 | |
| 4828 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4829 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4830 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4831 | echo "configure:4832: checking for working const" >&5 |
| 4832 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4833 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4834 | else |
| 4835 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4836 | #line 4837 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4837 | #include "confdefs.h" |
| 4838 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4839 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4840 | |
| 4841 | /* Ultrix mips cc rejects this. */ |
Thomas Wouters | 2cffc7d | 2000-11-03 08:18:37 +0000 | [diff] [blame] | 4842 | typedef int charset[2]; const charset x = {0,0}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4843 | /* SunOS 4.1.1 cc rejects this. */ |
| 4844 | char const *const *ccp; |
| 4845 | char **p; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4846 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 4847 | struct point {int x, y;}; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4848 | static struct point const zero = {0,0}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4849 | /* AIX XL C 1.02.0.0 rejects this. |
| 4850 | It does not let you subtract one const X* pointer from another in an arm |
| 4851 | of an if-expression whose if-part is not a constant expression */ |
| 4852 | const char *g = "string"; |
| 4853 | ccp = &g + (g ? g-g : 0); |
| 4854 | /* HPUX 7.0 cc rejects these. */ |
| 4855 | ++ccp; |
| 4856 | p = (char**) ccp; |
| 4857 | ccp = (char const *const *) p; |
| 4858 | { /* SCO 3.2v4 cc rejects this. */ |
| 4859 | char *t; |
| 4860 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 4861 | |
| 4862 | *t++ = 0; |
| 4863 | } |
| 4864 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4865 | int x[] = {25, 17}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4866 | const int *foo = &x[0]; |
| 4867 | ++foo; |
| 4868 | } |
| 4869 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 4870 | typedef const int *iptr; |
| 4871 | iptr p = 0; |
| 4872 | ++p; |
| 4873 | } |
| 4874 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 4875 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 4876 | struct s { int j; const int *ap[3]; }; |
| 4877 | struct s *b; b->j = 5; |
| 4878 | } |
| 4879 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 4880 | const int foo = 10; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4881 | } |
| 4882 | |
| 4883 | ; return 0; } |
| 4884 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4885 | if { (eval echo configure:4886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4886 | rm -rf conftest* |
| 4887 | ac_cv_c_const=yes |
| 4888 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4889 | echo "configure: failed program was:" >&5 |
| 4890 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4891 | rm -rf conftest* |
| 4892 | ac_cv_c_const=no |
| 4893 | fi |
| 4894 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4895 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4896 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4897 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4898 | if test $ac_cv_c_const = no; then |
| 4899 | cat >> confdefs.h <<\EOF |
| 4900 | #define const |
| 4901 | EOF |
| 4902 | |
| 4903 | fi |
| 4904 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4905 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4906 | echo "configure:4907: checking for inline" >&5 |
| 4907 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4908 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4909 | else |
| 4910 | ac_cv_c_inline=no |
| 4911 | for ac_kw in inline __inline__ __inline; do |
| 4912 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4913 | #line 4914 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4914 | #include "confdefs.h" |
| 4915 | |
| 4916 | int main() { |
Thomas Wouters | 2cffc7d | 2000-11-03 08:18:37 +0000 | [diff] [blame] | 4917 | } int $ac_kw foo() { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4918 | ; return 0; } |
| 4919 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4920 | if { (eval echo configure:4921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4921 | rm -rf conftest* |
| 4922 | ac_cv_c_inline=$ac_kw; break |
| 4923 | else |
| 4924 | echo "configure: failed program was:" >&5 |
| 4925 | cat conftest.$ac_ext >&5 |
| 4926 | fi |
| 4927 | rm -f conftest* |
| 4928 | done |
| 4929 | |
| 4930 | fi |
| 4931 | |
| 4932 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
| 4933 | case "$ac_cv_c_inline" in |
| 4934 | inline | yes) ;; |
| 4935 | no) cat >> confdefs.h <<\EOF |
| 4936 | #define inline |
| 4937 | EOF |
| 4938 | ;; |
| 4939 | *) cat >> confdefs.h <<EOF |
| 4940 | #define inline $ac_cv_c_inline |
| 4941 | EOF |
| 4942 | ;; |
| 4943 | esac |
| 4944 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4945 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4946 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4947 | echo $ac_n "checking for working volatile""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4948 | echo "configure:4949: checking for working volatile" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4949 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4950 | #line 4951 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4951 | #include "confdefs.h" |
| 4952 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4953 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4954 | volatile int x; x = 0; |
| 4955 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4956 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4957 | if { (eval echo configure:4958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4958 | rm -rf conftest* |
| 4959 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4960 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4961 | echo "configure: failed program was:" >&5 |
| 4962 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4963 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4964 | cat >> confdefs.h <<\EOF |
| 4965 | #define volatile |
| 4966 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4967 | |
| 4968 | fi |
| 4969 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4970 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4971 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4972 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4973 | echo $ac_n "checking for working signed char""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4974 | echo "configure:4975: checking for working signed char" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4975 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4976 | #line 4977 "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4977 | #include "confdefs.h" |
| 4978 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4979 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4980 | signed char c; |
| 4981 | ; return 0; } |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4982 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4983 | if { (eval echo configure:4984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4984 | rm -rf conftest* |
| 4985 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4986 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4987 | echo "configure: failed program was:" >&5 |
| 4988 | cat conftest.$ac_ext >&5 |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4989 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4990 | cat >> confdefs.h <<\EOF |
| 4991 | #define signed |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4992 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4993 | |
| 4994 | fi |
| 4995 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4996 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4997 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4998 | have_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4999 | echo $ac_n "checking for prototypes""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5000 | echo "configure:5001: checking for prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5001 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5002 | #line 5003 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5003 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5004 | int foo(int x) { return 0; } |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5005 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5006 | return foo(10); |
| 5007 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5008 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5009 | if { (eval echo configure:5010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5010 | rm -rf conftest* |
| 5011 | cat >> confdefs.h <<\EOF |
| 5012 | #define HAVE_PROTOTYPES 1 |
| 5013 | EOF |
| 5014 | have_prototypes=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5015 | else |
| 5016 | echo "configure: failed program was:" >&5 |
| 5017 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5018 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5019 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5020 | echo "$ac_t""$have_prototypes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5021 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5022 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5023 | echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5024 | echo "configure:5025: checking for variable length prototypes and stdarg.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5025 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5026 | #line 5027 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5027 | #include "confdefs.h" |
| 5028 | |
| 5029 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 5030 | int foo(int x, ...) { |
| 5031 | va_list va; |
| 5032 | va_start(va, x); |
| 5033 | va_arg(va, int); |
| 5034 | va_arg(va, char *); |
| 5035 | va_arg(va, double); |
| 5036 | return 0; |
| 5037 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5038 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5039 | int main() { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 5040 | return foo(10, "", 3.14); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5041 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5042 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5043 | if { (eval echo configure:5044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5044 | rm -rf conftest* |
| 5045 | cat >> confdefs.h <<\EOF |
| 5046 | #define HAVE_STDARG_PROTOTYPES 1 |
| 5047 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5048 | works=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5049 | else |
| 5050 | echo "configure: failed program was:" >&5 |
| 5051 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5052 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5053 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5054 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5055 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5056 | if test "$have_prototypes" = yes; then |
| 5057 | bad_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5058 | echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5059 | echo "configure:5060: checking for bad exec* prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5060 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5061 | #line 5062 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5062 | #include "confdefs.h" |
| 5063 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5064 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5065 | char **t;execve("@",t,t); |
| 5066 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5067 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5068 | if { (eval echo configure:5069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5069 | : |
| 5070 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5071 | echo "configure: failed program was:" >&5 |
| 5072 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5073 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5074 | cat >> confdefs.h <<\EOF |
| 5075 | #define BAD_EXEC_PROTOTYPES 1 |
| 5076 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5077 | bad_prototypes=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5078 | fi |
| 5079 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5080 | echo "$ac_t""$bad_prototypes" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5081 | fi |
| 5082 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5083 | bad_forward=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5084 | echo $ac_n "checking for bad static forward""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5085 | echo "configure:5086: checking for bad static forward" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5086 | if test "$cross_compiling" = yes; then |
| 5087 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5088 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5089 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5090 | #line 5091 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5091 | #include "confdefs.h" |
| 5092 | |
| 5093 | struct s { int a; int b; }; |
| 5094 | static struct s foo; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5095 | int foobar() { |
| 5096 | static int random; |
| 5097 | random = (int) &foo; |
| 5098 | return random; |
| 5099 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5100 | static struct s foo = { 1, 2 }; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5101 | main() { |
| 5102 | exit(!((int)&foo == foobar())); |
| 5103 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5104 | |
| 5105 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5106 | if { (eval echo configure:5107: \"$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] | 5107 | then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5108 | : |
| 5109 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5110 | echo "configure: failed program was:" >&5 |
| 5111 | cat conftest.$ac_ext >&5 |
| 5112 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5113 | cat >> confdefs.h <<\EOF |
| 5114 | #define BAD_STATIC_FORWARD 1 |
| 5115 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5116 | bad_forward=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5117 | fi |
| 5118 | rm -fr conftest* |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5119 | fi |
| 5120 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5121 | echo "$ac_t""$bad_forward" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5122 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5123 | va_list_is_array=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5124 | echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5125 | echo "configure:5126: checking whether va_list is an array" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5126 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5127 | #line 5128 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5128 | #include "confdefs.h" |
| 5129 | |
| 5130 | #ifdef HAVE_STDARG_PROTOTYPES |
| 5131 | #include <stdarg.h> |
| 5132 | #else |
| 5133 | #include <varargs.h> |
| 5134 | #endif |
| 5135 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5136 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5137 | va_list list1, list2; list1 = list2; |
| 5138 | ; return 0; } |
| 5139 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5140 | if { (eval echo configure:5141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5141 | : |
| 5142 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5143 | echo "configure: failed program was:" >&5 |
| 5144 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5145 | rm -rf conftest* |
| 5146 | cat >> confdefs.h <<\EOF |
| 5147 | #define VA_LIST_IS_ARRAY 1 |
| 5148 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5149 | va_list_is_array=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5150 | fi |
| 5151 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5152 | echo "$ac_t""$va_list_is_array" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5153 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5154 | # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( |
| 5155 | echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5156 | echo "configure:5157: checking for gethostbyname_r" >&5 |
| 5157 | 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] | 5158 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5159 | else |
| 5160 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5161 | #line 5162 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5162 | #include "confdefs.h" |
| 5163 | /* System header to define __stub macros and hopefully few prototypes, |
| 5164 | which can conflict with char gethostbyname_r(); below. */ |
| 5165 | #include <assert.h> |
| 5166 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5167 | /* We use char because int might match the return type of a gcc2 |
| 5168 | builtin and then its argument prototype would still apply. */ |
| 5169 | char gethostbyname_r(); |
| 5170 | |
| 5171 | int main() { |
| 5172 | |
| 5173 | /* The GNU C library defines this for functions which it implements |
| 5174 | to always fail with ENOSYS. Some functions are actually named |
| 5175 | something starting with __ and the normal name is an alias. */ |
| 5176 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 5177 | choke me |
| 5178 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5179 | gethostbyname_r(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5180 | #endif |
| 5181 | |
| 5182 | ; return 0; } |
| 5183 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5184 | if { (eval echo configure:5185: \"$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] | 5185 | rm -rf conftest* |
| 5186 | eval "ac_cv_func_gethostbyname_r=yes" |
| 5187 | else |
| 5188 | echo "configure: failed program was:" >&5 |
| 5189 | cat conftest.$ac_ext >&5 |
| 5190 | rm -rf conftest* |
| 5191 | eval "ac_cv_func_gethostbyname_r=no" |
| 5192 | fi |
| 5193 | rm -f conftest* |
| 5194 | fi |
| 5195 | |
| 5196 | if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then |
| 5197 | echo "$ac_t""yes" 1>&6 |
| 5198 | |
| 5199 | cat >> confdefs.h <<\EOF |
| 5200 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5201 | EOF |
| 5202 | |
| 5203 | echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5204 | echo "configure:5205: checking gethostbyname_r with 6 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5205 | OLD_CFLAGS=$CFLAGS |
| 5206 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
| 5207 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5208 | #line 5209 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5209 | #include "confdefs.h" |
| 5210 | |
| 5211 | # include <netdb.h> |
| 5212 | |
| 5213 | int main() { |
| 5214 | |
| 5215 | char *name; |
| 5216 | struct hostent *he, *res; |
| 5217 | char buffer[2048]; |
| 5218 | int buflen = 2048; |
| 5219 | int h_errnop; |
| 5220 | |
| 5221 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
| 5222 | |
| 5223 | ; return 0; } |
| 5224 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5225 | if { (eval echo configure:5226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5226 | rm -rf conftest* |
| 5227 | |
| 5228 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5229 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5230 | EOF |
| 5231 | |
| 5232 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5233 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
| 5234 | EOF |
| 5235 | |
| 5236 | echo "$ac_t""yes" 1>&6 |
| 5237 | |
| 5238 | else |
| 5239 | echo "configure: failed program was:" >&5 |
| 5240 | cat conftest.$ac_ext >&5 |
| 5241 | rm -rf conftest* |
| 5242 | |
| 5243 | echo "$ac_t""no" 1>&6 |
| 5244 | echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5245 | echo "configure:5246: checking gethostbyname_r with 5 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5246 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5247 | #line 5248 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5248 | #include "confdefs.h" |
| 5249 | |
| 5250 | # include <netdb.h> |
| 5251 | |
| 5252 | int main() { |
| 5253 | |
| 5254 | char *name; |
| 5255 | struct hostent *he; |
| 5256 | char buffer[2048]; |
| 5257 | int buflen = 2048; |
| 5258 | int h_errnop; |
| 5259 | |
| 5260 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
| 5261 | |
| 5262 | ; return 0; } |
| 5263 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5264 | if { (eval echo configure:5265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5265 | rm -rf conftest* |
| 5266 | |
| 5267 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5268 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5269 | EOF |
| 5270 | |
| 5271 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5272 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
| 5273 | EOF |
| 5274 | |
| 5275 | echo "$ac_t""yes" 1>&6 |
| 5276 | |
| 5277 | else |
| 5278 | echo "configure: failed program was:" >&5 |
| 5279 | cat conftest.$ac_ext >&5 |
| 5280 | rm -rf conftest* |
| 5281 | |
| 5282 | echo "$ac_t""no" 1>&6 |
| 5283 | echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5284 | echo "configure:5285: checking gethostbyname_r with 3 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5285 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5286 | #line 5287 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5287 | #include "confdefs.h" |
| 5288 | |
| 5289 | # include <netdb.h> |
| 5290 | |
| 5291 | int main() { |
| 5292 | |
| 5293 | char *name; |
| 5294 | struct hostent *he; |
| 5295 | struct hostent_data data; |
| 5296 | |
| 5297 | (void) gethostbyname_r(name, he, &data); |
| 5298 | |
| 5299 | ; return 0; } |
| 5300 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5301 | if { (eval echo configure:5302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5302 | rm -rf conftest* |
| 5303 | |
| 5304 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5305 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5306 | EOF |
| 5307 | |
| 5308 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5309 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
| 5310 | EOF |
| 5311 | |
| 5312 | echo "$ac_t""yes" 1>&6 |
| 5313 | |
| 5314 | else |
| 5315 | echo "configure: failed program was:" >&5 |
| 5316 | cat conftest.$ac_ext >&5 |
| 5317 | rm -rf conftest* |
| 5318 | |
| 5319 | echo "$ac_t""no" 1>&6 |
| 5320 | |
| 5321 | fi |
| 5322 | rm -f conftest* |
| 5323 | |
| 5324 | fi |
| 5325 | rm -f conftest* |
| 5326 | |
| 5327 | fi |
| 5328 | rm -f conftest* |
| 5329 | CFLAGS=$OLD_CFLAGS |
| 5330 | |
| 5331 | else |
| 5332 | echo "$ac_t""no" 1>&6 |
| 5333 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5334 | for ac_func in gethostbyname |
| 5335 | do |
| 5336 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5337 | echo "configure:5338: checking for $ac_func" >&5 |
| 5338 | 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] | 5339 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5340 | else |
| 5341 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5342 | #line 5343 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5343 | #include "confdefs.h" |
| 5344 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5345 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5346 | #include <assert.h> |
| 5347 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5348 | /* We use char because int might match the return type of a gcc2 |
| 5349 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5350 | char $ac_func(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5351 | |
| 5352 | int main() { |
| 5353 | |
| 5354 | /* The GNU C library defines this for functions which it implements |
| 5355 | to always fail with ENOSYS. Some functions are actually named |
| 5356 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5357 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5358 | choke me |
| 5359 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5360 | $ac_func(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5361 | #endif |
| 5362 | |
| 5363 | ; return 0; } |
| 5364 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5365 | if { (eval echo configure:5366: \"$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] | 5366 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5367 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5368 | else |
| 5369 | echo "configure: failed program was:" >&5 |
| 5370 | cat conftest.$ac_ext >&5 |
| 5371 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5372 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5373 | fi |
| 5374 | rm -f conftest* |
| 5375 | fi |
| 5376 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5377 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5378 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5379 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5380 | cat >> confdefs.h <<EOF |
| 5381 | #define $ac_tr_func 1 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5382 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5383 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5384 | else |
| 5385 | echo "$ac_t""no" 1>&6 |
| 5386 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5387 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5388 | |
| 5389 | |
| 5390 | fi |
| 5391 | |
| 5392 | |
| 5393 | |
| 5394 | |
| 5395 | |
| 5396 | |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5397 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5398 | # checks for system services |
| 5399 | # (none yet) |
| 5400 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5401 | # Linux requires this for correct f.p. operations |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5402 | echo $ac_n "checking for __fpu_control""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5403 | echo "configure:5404: checking for __fpu_control" >&5 |
| 5404 | if eval "test \"`echo '$''{'ac_cv_func___fpu_control'+set}'`\" = set"; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5405 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5406 | else |
| 5407 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5408 | #line 5409 "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5409 | #include "confdefs.h" |
| 5410 | /* System header to define __stub macros and hopefully few prototypes, |
| 5411 | which can conflict with char __fpu_control(); below. */ |
| 5412 | #include <assert.h> |
| 5413 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5414 | /* We use char because int might match the return type of a gcc2 |
| 5415 | builtin and then its argument prototype would still apply. */ |
| 5416 | char __fpu_control(); |
| 5417 | |
| 5418 | int main() { |
| 5419 | |
| 5420 | /* The GNU C library defines this for functions which it implements |
| 5421 | to always fail with ENOSYS. Some functions are actually named |
| 5422 | something starting with __ and the normal name is an alias. */ |
| 5423 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 5424 | choke me |
| 5425 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5426 | __fpu_control(); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5427 | #endif |
| 5428 | |
| 5429 | ; return 0; } |
| 5430 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5431 | if { (eval echo configure:5432: \"$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] | 5432 | rm -rf conftest* |
| 5433 | eval "ac_cv_func___fpu_control=yes" |
| 5434 | else |
| 5435 | echo "configure: failed program was:" >&5 |
| 5436 | cat conftest.$ac_ext >&5 |
| 5437 | rm -rf conftest* |
| 5438 | eval "ac_cv_func___fpu_control=no" |
| 5439 | fi |
| 5440 | rm -f conftest* |
| 5441 | fi |
| 5442 | |
| 5443 | if eval "test \"`echo '$ac_cv_func_'__fpu_control`\" = yes"; then |
| 5444 | echo "$ac_t""yes" 1>&6 |
| 5445 | : |
| 5446 | else |
| 5447 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5448 | echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5449 | echo "configure:5450: checking for __fpu_control in -lieee" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5450 | ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5451 | 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] | 5452 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5453 | else |
| 5454 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5455 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5456 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5457 | #line 5458 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5458 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5459 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5460 | /* We use char because int might match the return type of a gcc2 |
| 5461 | builtin and then its argument prototype would still apply. */ |
| 5462 | char __fpu_control(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5463 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5464 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5465 | __fpu_control() |
| 5466 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5467 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5468 | if { (eval echo configure:5469: \"$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] | 5469 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5470 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5471 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5472 | echo "configure: failed program was:" >&5 |
| 5473 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5474 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5475 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5476 | fi |
| 5477 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5478 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5479 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5480 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5481 | 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] | 5482 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5483 | ac_tr_lib=HAVE_LIB`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 5484 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5485 | cat >> confdefs.h <<EOF |
| 5486 | #define $ac_tr_lib 1 |
| 5487 | EOF |
| 5488 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5489 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5490 | |
| 5491 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5492 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5493 | fi |
| 5494 | |
| 5495 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5496 | fi |
| 5497 | |
| 5498 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5499 | # Check for --with-fpectl |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5500 | echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5501 | echo "configure:5502: checking for --with-fpectl" >&5 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5502 | # Check whether --with-fpectl or --without-fpectl was given. |
| 5503 | if test "${with_fpectl+set}" = set; then |
| 5504 | withval="$with_fpectl" |
| 5505 | |
| 5506 | if test "$withval" != no |
| 5507 | then cat >> confdefs.h <<\EOF |
| 5508 | #define WANT_SIGFPE_HANDLER 1 |
| 5509 | EOF |
| 5510 | echo "$ac_t""yes" 1>&6 |
| 5511 | else echo "$ac_t""no" 1>&6 |
| 5512 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5513 | else |
| 5514 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5515 | fi |
| 5516 | |
| 5517 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5518 | # check for --with-libm=... |
| 5519 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 5520 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5521 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 5522 | next) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 5523 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 5524 | *) LIBM=-lm |
| 5525 | esac |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5526 | echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5527 | echo "configure:5528: checking for --with-libm=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5528 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5529 | if test "${with_libm+set}" = set; then |
| 5530 | withval="$with_libm" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5531 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5532 | if test "$withval" = no |
| 5533 | then LIBM= |
| 5534 | echo "$ac_t""force LIBM empty" 1>&6 |
| 5535 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5536 | then LIBM=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5537 | echo "$ac_t""set LIBM=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5538 | 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] | 5539 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5540 | else |
| 5541 | echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5542 | fi |
| 5543 | |
| 5544 | |
| 5545 | # check for --with-libc=... |
| 5546 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5547 | echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5548 | echo "configure:5549: checking for --with-libc=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5549 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5550 | if test "${with_libc+set}" = set; then |
| 5551 | withval="$with_libc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5552 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5553 | if test "$withval" = no |
| 5554 | then LIBC= |
| 5555 | echo "$ac_t""force LIBC empty" 1>&6 |
| 5556 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5557 | then LIBC=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5558 | echo "$ac_t""set LIBC=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5559 | 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] | 5560 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5561 | else |
| 5562 | echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5563 | fi |
| 5564 | |
| 5565 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5566 | # check for hypot() in math library |
| 5567 | LIBS_SAVE=$LIBS |
| 5568 | LIBS="$LIBS $LIBM" |
| 5569 | for ac_func in hypot |
| 5570 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5571 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5572 | echo "configure:5573: checking for $ac_func" >&5 |
| 5573 | 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] | 5574 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5575 | else |
| 5576 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5577 | #line 5578 "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5578 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5579 | /* System header to define __stub macros and hopefully few prototypes, |
| 5580 | which can conflict with char $ac_func(); below. */ |
| 5581 | #include <assert.h> |
| 5582 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5583 | /* We use char because int might match the return type of a gcc2 |
| 5584 | builtin and then its argument prototype would still apply. */ |
| 5585 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5586 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5587 | int main() { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5588 | |
| 5589 | /* The GNU C library defines this for functions which it implements |
| 5590 | to always fail with ENOSYS. Some functions are actually named |
| 5591 | something starting with __ and the normal name is an alias. */ |
| 5592 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5593 | choke me |
| 5594 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5595 | $ac_func(); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5596 | #endif |
| 5597 | |
| 5598 | ; return 0; } |
| 5599 | EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5600 | if { (eval echo configure:5601: \"$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] | 5601 | rm -rf conftest* |
| 5602 | eval "ac_cv_func_$ac_func=yes" |
| 5603 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5604 | echo "configure: failed program was:" >&5 |
| 5605 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5606 | rm -rf conftest* |
| 5607 | eval "ac_cv_func_$ac_func=no" |
| 5608 | fi |
| 5609 | rm -f conftest* |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5610 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5611 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5612 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5613 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5614 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5615 | cat >> confdefs.h <<EOF |
| 5616 | #define $ac_tr_func 1 |
| 5617 | EOF |
| 5618 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5619 | else |
| 5620 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5621 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5622 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5623 | done |
| 5624 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5625 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5626 | LIBS=$LIBS_SAVE |
| 5627 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5628 | # check whether malloc(0) returns NULL or not |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5629 | echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6 |
Thomas Wouters | 2cffc7d | 2000-11-03 08:18:37 +0000 | [diff] [blame] | 5630 | echo "configure:5631: checking what malloc(0) returns" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5631 | if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5632 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5633 | else |
| 5634 | if test "$cross_compiling" = yes; then |
| 5635 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5636 | else |
| 5637 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 2cffc7d | 2000-11-03 08:18:37 +0000 | [diff] [blame] | 5638 | #line 5639 "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5639 | #include "confdefs.h" |
| 5640 | #include <stdio.h> |
| 5641 | #ifdef HAVE_STDLIB |
| 5642 | #include <stdlib.h> |
| 5643 | #else |
| 5644 | char *malloc(), *realloc(); |
| 5645 | int *free(); |
| 5646 | #endif |
| 5647 | main() { |
| 5648 | char *p; |
| 5649 | p = malloc(0); |
| 5650 | if (p == NULL) exit(1); |
| 5651 | p = realloc(p, 0); |
| 5652 | if (p == NULL) exit(1); |
| 5653 | free(p); |
| 5654 | exit(0); |
| 5655 | } |
| 5656 | EOF |
Thomas Wouters | 2cffc7d | 2000-11-03 08:18:37 +0000 | [diff] [blame] | 5657 | if { (eval echo configure:5658: \"$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] | 5658 | then |
| 5659 | ac_cv_malloc_zero=nonnull |
| 5660 | else |
| 5661 | echo "configure: failed program was:" >&5 |
| 5662 | cat conftest.$ac_ext >&5 |
| 5663 | rm -fr conftest* |
| 5664 | ac_cv_malloc_zero=null |
| 5665 | fi |
| 5666 | rm -fr conftest* |
| 5667 | fi |
| 5668 | |
| 5669 | fi |
| 5670 | |
| 5671 | echo "$ac_t""$ac_cv_malloc_zero" 1>&6 |
| 5672 | if test "$ac_cv_malloc_zero" = null |
| 5673 | then |
| 5674 | cat >> confdefs.h <<\EOF |
| 5675 | #define MALLOC_ZERO_RETURNS_NULL 1 |
| 5676 | EOF |
| 5677 | |
| 5678 | fi |
| 5679 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5680 | # check for wchar.h |
| 5681 | ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'` |
| 5682 | echo $ac_n "checking for wchar.h""... $ac_c" 1>&6 |
Thomas Wouters | 2cffc7d | 2000-11-03 08:18:37 +0000 | [diff] [blame] | 5683 | echo "configure:5684: checking for wchar.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5684 | 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] | 5685 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5686 | else |
| 5687 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 2cffc7d | 2000-11-03 08:18:37 +0000 | [diff] [blame] | 5688 | #line 5689 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5689 | #include "confdefs.h" |
| 5690 | #include <wchar.h> |
| 5691 | EOF |
| 5692 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Thomas Wouters | 2cffc7d | 2000-11-03 08:18:37 +0000 | [diff] [blame] | 5693 | { (eval echo configure:5694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5694 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5695 | if test -z "$ac_err"; then |
| 5696 | rm -rf conftest* |
| 5697 | eval "ac_cv_header_$ac_safe=yes" |
| 5698 | else |
| 5699 | echo "$ac_err" >&5 |
| 5700 | echo "configure: failed program was:" >&5 |
| 5701 | cat conftest.$ac_ext >&5 |
| 5702 | rm -rf conftest* |
| 5703 | eval "ac_cv_header_$ac_safe=no" |
| 5704 | fi |
| 5705 | rm -f conftest* |
| 5706 | fi |
| 5707 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5708 | echo "$ac_t""yes" 1>&6 |
| 5709 | cat >> confdefs.h <<\EOF |
| 5710 | #define HAVE_WCHAR_H 1 |
| 5711 | EOF |
| 5712 | wchar_h="yes" |
| 5713 | else |
| 5714 | echo "$ac_t""no" 1>&6 |
| 5715 | wchar_h="no" |
| 5716 | |
| 5717 | fi |
| 5718 | |
| 5719 | |
| 5720 | # check for usable wchar_t |
| 5721 | usable_wchar_t="unkown" |
| 5722 | echo $ac_n "checking for usable wchar_t""... $ac_c" 1>&6 |
Thomas Wouters | 2cffc7d | 2000-11-03 08:18:37 +0000 | [diff] [blame] | 5723 | echo "configure:5724: checking for usable wchar_t" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5724 | if test "$cross_compiling" = yes; then |
| 5725 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5726 | else |
| 5727 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 2cffc7d | 2000-11-03 08:18:37 +0000 | [diff] [blame] | 5728 | #line 5729 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5729 | #include "confdefs.h" |
| 5730 | |
| 5731 | #include "wchar.h" |
| 5732 | #include "wctype.h" |
| 5733 | main() { |
| 5734 | wchar_t s; |
| 5735 | if (sizeof(s) == 2) |
| 5736 | exit(0); |
| 5737 | else |
| 5738 | exit(1); |
| 5739 | } |
| 5740 | |
| 5741 | EOF |
Thomas Wouters | 2cffc7d | 2000-11-03 08:18:37 +0000 | [diff] [blame] | 5742 | if { (eval echo configure:5743: \"$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] | 5743 | then |
| 5744 | cat >> confdefs.h <<\EOF |
| 5745 | #define HAVE_USABLE_WCHAR_T 1 |
| 5746 | EOF |
| 5747 | usable_wchar_t="yes" |
| 5748 | else |
| 5749 | echo "configure: failed program was:" >&5 |
| 5750 | cat conftest.$ac_ext >&5 |
| 5751 | rm -fr conftest* |
| 5752 | usable_wchar_t="no" |
| 5753 | fi |
| 5754 | rm -fr conftest* |
| 5755 | fi |
| 5756 | |
| 5757 | echo "$ac_t""$usable_wchar_t" 1>&6 |
| 5758 | |
| 5759 | # check for endianness |
| 5760 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
Thomas Wouters | 2cffc7d | 2000-11-03 08:18:37 +0000 | [diff] [blame] | 5761 | echo "configure:5762: checking whether byte ordering is bigendian" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5762 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5763 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5764 | else |
| 5765 | ac_cv_c_bigendian=unknown |
| 5766 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 5767 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 2cffc7d | 2000-11-03 08:18:37 +0000 | [diff] [blame] | 5768 | #line 5769 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5769 | #include "confdefs.h" |
| 5770 | #include <sys/types.h> |
| 5771 | #include <sys/param.h> |
| 5772 | int main() { |
| 5773 | |
| 5774 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 5775 | bogus endian macros |
| 5776 | #endif |
| 5777 | ; return 0; } |
| 5778 | EOF |
Thomas Wouters | 2cffc7d | 2000-11-03 08:18:37 +0000 | [diff] [blame] | 5779 | if { (eval echo configure:5780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5780 | rm -rf conftest* |
| 5781 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 5782 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 2cffc7d | 2000-11-03 08:18:37 +0000 | [diff] [blame] | 5783 | #line 5784 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5784 | #include "confdefs.h" |
| 5785 | #include <sys/types.h> |
| 5786 | #include <sys/param.h> |
| 5787 | int main() { |
| 5788 | |
| 5789 | #if BYTE_ORDER != BIG_ENDIAN |
| 5790 | not big endian |
| 5791 | #endif |
| 5792 | ; return 0; } |
| 5793 | EOF |
Thomas Wouters | 2cffc7d | 2000-11-03 08:18:37 +0000 | [diff] [blame] | 5794 | if { (eval echo configure:5795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5795 | rm -rf conftest* |
| 5796 | ac_cv_c_bigendian=yes |
| 5797 | else |
| 5798 | echo "configure: failed program was:" >&5 |
| 5799 | cat conftest.$ac_ext >&5 |
| 5800 | rm -rf conftest* |
| 5801 | ac_cv_c_bigendian=no |
| 5802 | fi |
| 5803 | rm -f conftest* |
| 5804 | else |
| 5805 | echo "configure: failed program was:" >&5 |
| 5806 | cat conftest.$ac_ext >&5 |
| 5807 | fi |
| 5808 | rm -f conftest* |
| 5809 | if test $ac_cv_c_bigendian = unknown; then |
| 5810 | if test "$cross_compiling" = yes; then |
| 5811 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5812 | else |
| 5813 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 2cffc7d | 2000-11-03 08:18:37 +0000 | [diff] [blame] | 5814 | #line 5815 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5815 | #include "confdefs.h" |
| 5816 | main () { |
| 5817 | /* Are we little or big endian? From Harbison&Steele. */ |
| 5818 | union |
| 5819 | { |
| 5820 | long l; |
| 5821 | char c[sizeof (long)]; |
| 5822 | } u; |
| 5823 | u.l = 1; |
| 5824 | exit (u.c[sizeof (long) - 1] == 1); |
| 5825 | } |
| 5826 | EOF |
Thomas Wouters | 2cffc7d | 2000-11-03 08:18:37 +0000 | [diff] [blame] | 5827 | if { (eval echo configure:5828: \"$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] | 5828 | then |
| 5829 | ac_cv_c_bigendian=no |
| 5830 | else |
| 5831 | echo "configure: failed program was:" >&5 |
| 5832 | cat conftest.$ac_ext >&5 |
| 5833 | rm -fr conftest* |
| 5834 | ac_cv_c_bigendian=yes |
| 5835 | fi |
| 5836 | rm -fr conftest* |
| 5837 | fi |
| 5838 | |
| 5839 | fi |
| 5840 | fi |
| 5841 | |
| 5842 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
| 5843 | if test $ac_cv_c_bigendian = yes; then |
| 5844 | cat >> confdefs.h <<\EOF |
| 5845 | #define WORDS_BIGENDIAN 1 |
| 5846 | EOF |
| 5847 | |
| 5848 | fi |
| 5849 | |
| 5850 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5851 | # Check whether right shifting a negative integer extends the sign bit |
| 5852 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
| 5853 | echo $ac_n "checking whether right shift extends the sign bit""... $ac_c" 1>&6 |
Thomas Wouters | 2cffc7d | 2000-11-03 08:18:37 +0000 | [diff] [blame] | 5854 | echo "configure:5855: checking whether right shift extends the sign bit" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5855 | if eval "test \"`echo '$''{'ac_cv_rshift_extends_sign'+set}'`\" = set"; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 5856 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5857 | else |
| 5858 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5859 | if test "$cross_compiling" = yes; then |
| 5860 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5861 | else |
| 5862 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 2cffc7d | 2000-11-03 08:18:37 +0000 | [diff] [blame] | 5863 | #line 5864 "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5864 | #include "confdefs.h" |
| 5865 | |
| 5866 | int main() |
| 5867 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 5868 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5869 | } |
| 5870 | |
| 5871 | EOF |
Thomas Wouters | 2cffc7d | 2000-11-03 08:18:37 +0000 | [diff] [blame] | 5872 | if { (eval echo configure:5873: \"$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] | 5873 | then |
| 5874 | ac_cv_rshift_extends_sign=yes |
| 5875 | else |
| 5876 | echo "configure: failed program was:" >&5 |
| 5877 | cat conftest.$ac_ext >&5 |
| 5878 | rm -fr conftest* |
| 5879 | ac_cv_rshift_extends_sign=no |
| 5880 | fi |
| 5881 | rm -fr conftest* |
| 5882 | fi |
| 5883 | |
| 5884 | fi |
| 5885 | |
| 5886 | echo "$ac_t""$ac_cv_rshift_extends_sign" 1>&6 |
| 5887 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5888 | then |
| 5889 | cat >> confdefs.h <<\EOF |
| 5890 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
| 5891 | EOF |
| 5892 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5893 | fi |
| 5894 | |
| 5895 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5896 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! |
| 5897 | # Add sys/socket.h to confdefs.h |
| 5898 | cat >> confdefs.h <<\EOF |
| 5899 | #ifdef HAVE_SYS_SOCKET_H |
| 5900 | #include <sys/socket.h> |
| 5901 | #endif |
| 5902 | EOF |
| 5903 | echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 |
Thomas Wouters | 2cffc7d | 2000-11-03 08:18:37 +0000 | [diff] [blame] | 5904 | echo "configure:5905: checking for socklen_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5905 | 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] | 5906 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5907 | else |
| 5908 | cat > conftest.$ac_ext <<EOF |
Thomas Wouters | 2cffc7d | 2000-11-03 08:18:37 +0000 | [diff] [blame] | 5909 | #line 5910 "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5910 | #include "confdefs.h" |
| 5911 | #include <sys/types.h> |
| 5912 | #if STDC_HEADERS |
| 5913 | #include <stdlib.h> |
| 5914 | #include <stddef.h> |
| 5915 | #endif |
| 5916 | EOF |
| 5917 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5918 | egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 5919 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5920 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5921 | else |
| 5922 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5923 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5924 | fi |
| 5925 | rm -f conftest* |
| 5926 | |
| 5927 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5928 | echo "$ac_t""$ac_cv_type_socklen_t" 1>&6 |
| 5929 | if test $ac_cv_type_socklen_t = no; then |
| 5930 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5931 | #define socklen_t int |
| 5932 | EOF |
| 5933 | |
| 5934 | fi |
| 5935 | |
| 5936 | |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 5937 | echo $ac_n "checking for Modules/Setup""... $ac_c" 1>&6 |
Thomas Wouters | 2cffc7d | 2000-11-03 08:18:37 +0000 | [diff] [blame] | 5938 | echo "configure:5939: checking for Modules/Setup" >&5 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 5939 | if test ! -f Modules/Setup ; then |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 5940 | if test ! -d Modules ; then |
| 5941 | mkdir Modules |
| 5942 | fi |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 5943 | cp "$srcdir/Modules/Setup.dist" Modules/Setup |
| 5944 | echo "$ac_t""creating" 1>&6 |
| 5945 | else |
| 5946 | echo "$ac_t""already exists" 1>&6 |
| 5947 | fi |
| 5948 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5949 | # generate output files |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5950 | trap '' 1 2 15 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5951 | cat > confcache <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5952 | # This file is a shell script that caches the results of configure |
| 5953 | # tests run on this system so they can be shared between configure |
| 5954 | # scripts and configure runs. It is not useful on other systems. |
| 5955 | # If it contains results you don't want to keep, you may remove or edit it. |
| 5956 | # |
| 5957 | # By default, configure uses ./config.cache as the cache file, |
| 5958 | # creating it if it does not exist already. You can give configure |
| 5959 | # the --cache-file=FILE option to use a different cache file; that is |
| 5960 | # what configure does when it calls configure scripts in |
| 5961 | # subdirectories, so they share the cache. |
| 5962 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 5963 | # config.status only pays attention to the cache file if you give it the |
| 5964 | # --recheck option to rerun configure. |
| 5965 | # |
| 5966 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5967 | # The following way of writing the cache mishandles newlines in values, |
| 5968 | # but we know of no workaround that is simple, portable, and efficient. |
| 5969 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5970 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 5971 | # 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] | 5972 | (set) 2>&1 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5973 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5974 | *ac_space=\ *) |
| 5975 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 5976 | # turns \\\\ into \\, and sed turns \\ into \). |
| 5977 | sed -n \ |
| 5978 | -e "s/'/'\\\\''/g" \ |
| 5979 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 5980 | ;; |
| 5981 | *) |
| 5982 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 5983 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 5984 | ;; |
| 5985 | esac >> confcache |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5986 | if cmp -s $cache_file confcache; then |
| 5987 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5988 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5989 | if test -w $cache_file; then |
| 5990 | echo "updating cache $cache_file" |
| 5991 | cat confcache > $cache_file |
| 5992 | else |
| 5993 | echo "not updating unwritable cache $cache_file" |
| 5994 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5995 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5996 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 5997 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5998 | 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] | 5999 | |
| 6000 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 6001 | # Let make expand exec_prefix. |
| 6002 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 6003 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6004 | # Any assignment to VPATH causes Sun make to only execute |
| 6005 | # the first set of double-colon rules, so remove it if not needed. |
| 6006 | # If there is a colon in the path, we need to keep it. |
| 6007 | if test "x$srcdir" = x.; then |
| 6008 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 6009 | fi |
| 6010 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6011 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6012 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6013 | DEFS=-DHAVE_CONFIG_H |
| 6014 | |
| 6015 | # Without the "./", some shells look in PATH for config.status. |
| 6016 | : ${CONFIG_STATUS=./config.status} |
| 6017 | |
| 6018 | echo creating $CONFIG_STATUS |
| 6019 | rm -f $CONFIG_STATUS |
| 6020 | cat > $CONFIG_STATUS <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6021 | #! /bin/sh |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6022 | # Generated automatically by configure. |
| 6023 | # Run this file to recreate the current configuration. |
| 6024 | # This directory was configured as follows, |
| 6025 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 6026 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6027 | # $0 $ac_configure_args |
| 6028 | # |
| 6029 | # Compiler output produced by configure, useful for debugging |
| 6030 | # configure, is in ./config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6031 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6032 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6033 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6034 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6035 | case "\$ac_option" in |
| 6036 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6037 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 6038 | 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] | 6039 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6040 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6041 | exit 0 ;; |
| 6042 | -help | --help | --hel | --he | --h) |
| 6043 | echo "\$ac_cs_usage"; exit 0 ;; |
| 6044 | *) echo "\$ac_cs_usage"; exit 1 ;; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6045 | esac |
| 6046 | done |
| 6047 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6048 | ac_given_srcdir=$srcdir |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6049 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 6050 | trap 'rm -fr `echo "Makefile \ |
| 6051 | Objects/Makefile \ |
| 6052 | Parser/Makefile \ |
Sjoerd Mullender | a179503 | 2000-08-17 11:41:06 +0000 | [diff] [blame] | 6053 | Grammar/Makefile \ |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 6054 | Python/Makefile \ |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 6055 | Modules/Makefile.pre \ |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 6056 | 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] | 6057 | EOF |
| 6058 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6059 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6060 | # Protect against being on the right side of a sed subst in config.status. |
| 6061 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 6062 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6063 | $ac_vpsub |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6064 | $extrasub |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 6065 | s%@SHELL@%$SHELL%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6066 | s%@CFLAGS@%$CFLAGS%g |
| 6067 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 6068 | s%@CXXFLAGS@%$CXXFLAGS%g |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 6069 | s%@FFLAGS@%$FFLAGS%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6070 | s%@DEFS@%$DEFS%g |
| 6071 | s%@LDFLAGS@%$LDFLAGS%g |
| 6072 | s%@LIBS@%$LIBS%g |
| 6073 | s%@exec_prefix@%$exec_prefix%g |
| 6074 | s%@prefix@%$prefix%g |
| 6075 | s%@program_transform_name@%$program_transform_name%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6076 | s%@bindir@%$bindir%g |
| 6077 | s%@sbindir@%$sbindir%g |
| 6078 | s%@libexecdir@%$libexecdir%g |
| 6079 | s%@datadir@%$datadir%g |
| 6080 | s%@sysconfdir@%$sysconfdir%g |
| 6081 | s%@sharedstatedir@%$sharedstatedir%g |
| 6082 | s%@localstatedir@%$localstatedir%g |
| 6083 | s%@libdir@%$libdir%g |
| 6084 | s%@includedir@%$includedir%g |
| 6085 | s%@oldincludedir@%$oldincludedir%g |
| 6086 | s%@infodir@%$infodir%g |
| 6087 | s%@mandir@%$mandir%g |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 6088 | s%@VERSION@%$VERSION%g |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 6089 | s%@MACHDEP@%$MACHDEP%g |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 6090 | s%@SGI_ABI@%$SGI_ABI%g |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 6091 | s%@SET_CXX@%$SET_CXX%g |
| 6092 | s%@MAINOBJ@%$MAINOBJ%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6093 | s%@CC@%$CC%g |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 6094 | s%@EXE@%$EXE%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 6095 | s%@MAKE_LDLIBRARY@%$MAKE_LDLIBRARY%g |
| 6096 | s%@LDLIBRARY@%$LDLIBRARY%g |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 6097 | s%@LINKCC@%$LINKCC%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6098 | s%@RANLIB@%$RANLIB%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6099 | s%@AR@%$AR%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 6100 | s%@INSTALL@%$INSTALL%g |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6101 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 6102 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6103 | s%@LN@%$LN%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 6104 | s%@OPT@%$OPT%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6105 | s%@CPP@%$CPP%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 6106 | s%@LIBTOOL_CRUFT@%$LIBTOOL_CRUFT%g |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 6107 | s%@SO@%$SO%g |
| 6108 | s%@LDSHARED@%$LDSHARED%g |
| 6109 | s%@CCSHARED@%$CCSHARED%g |
| 6110 | s%@LINKFORSHARED@%$LINKFORSHARED%g |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 6111 | s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 6112 | s%@LDLAST@%$LDLAST%g |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 6113 | s%@USE_GC_MODULE@%$USE_GC_MODULE%g |
Fred Drake | a50d6ec | 2000-08-31 16:13:20 +0000 | [diff] [blame] | 6114 | s%@USE_BSDDB_MODULE@%$USE_BSDDB_MODULE%g |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 6115 | s%@HAVE_LIBDB@%$HAVE_LIBDB%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6116 | s%@DLINCLDIR@%$DLINCLDIR%g |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 6117 | s%@DYNLOADFILE@%$DYNLOADFILE%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6118 | s%@LIBOBJS@%$LIBOBJS%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6119 | s%@HAVE_GETHOSTBYNAME_R_6_ARG@%$HAVE_GETHOSTBYNAME_R_6_ARG%g |
| 6120 | s%@HAVE_GETHOSTBYNAME_R_5_ARG@%$HAVE_GETHOSTBYNAME_R_5_ARG%g |
| 6121 | 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] | 6122 | s%@HAVE_GETHOSTBYNAME_R@%$HAVE_GETHOSTBYNAME_R%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6123 | s%@HAVE_GETHOSTBYNAME@%$HAVE_GETHOSTBYNAME%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6124 | s%@LIBM@%$LIBM%g |
| 6125 | s%@LIBC@%$LIBC%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6126 | |
| 6127 | CEOF |
| 6128 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6129 | |
| 6130 | cat >> $CONFIG_STATUS <<\EOF |
| 6131 | |
| 6132 | # Split the substitutions into bite-sized pieces for seds with |
| 6133 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 6134 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 6135 | ac_file=1 # Number of current file. |
| 6136 | ac_beg=1 # First line for current file. |
| 6137 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 6138 | ac_more_lines=: |
| 6139 | ac_sed_cmds="" |
| 6140 | while $ac_more_lines; do |
| 6141 | if test $ac_beg -gt 1; then |
| 6142 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 6143 | else |
| 6144 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 6145 | fi |
| 6146 | if test ! -s conftest.s$ac_file; then |
| 6147 | ac_more_lines=false |
| 6148 | rm -f conftest.s$ac_file |
| 6149 | else |
| 6150 | if test -z "$ac_sed_cmds"; then |
| 6151 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 6152 | else |
| 6153 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 6154 | fi |
| 6155 | ac_file=`expr $ac_file + 1` |
| 6156 | ac_beg=$ac_end |
| 6157 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 6158 | fi |
| 6159 | done |
| 6160 | if test -z "$ac_sed_cmds"; then |
| 6161 | ac_sed_cmds=cat |
| 6162 | fi |
| 6163 | EOF |
| 6164 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6165 | cat >> $CONFIG_STATUS <<EOF |
| 6166 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 6167 | CONFIG_FILES=\${CONFIG_FILES-"Makefile \ |
| 6168 | Objects/Makefile \ |
| 6169 | Parser/Makefile \ |
Sjoerd Mullender | a179503 | 2000-08-17 11:41:06 +0000 | [diff] [blame] | 6170 | Grammar/Makefile \ |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 6171 | Python/Makefile \ |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 6172 | Modules/Makefile.pre \ |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 6173 | Modules/Setup.config"} |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6174 | EOF |
| 6175 | cat >> $CONFIG_STATUS <<\EOF |
| 6176 | 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] | 6177 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6178 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6179 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6180 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 6181 | *) ac_file_in="${ac_file}.in" ;; |
| 6182 | esac |
| 6183 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6184 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6185 | |
| 6186 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 6187 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 6188 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 6189 | # The file is in a subdirectory. |
| 6190 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6191 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6192 | # A "../" for each directory in $ac_dir_suffix. |
| 6193 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 6194 | else |
| 6195 | ac_dir_suffix= ac_dots= |
| 6196 | fi |
| 6197 | |
| 6198 | case "$ac_given_srcdir" in |
| 6199 | .) srcdir=. |
| 6200 | if test -z "$ac_dots"; then top_srcdir=. |
| 6201 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 6202 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 6203 | *) # Relative path. |
| 6204 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 6205 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 6206 | esac |
| 6207 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6208 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6209 | echo creating "$ac_file" |
| 6210 | rm -f "$ac_file" |
| 6211 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 6212 | case "$ac_file" in |
| 6213 | *Makefile*) ac_comsub="1i\\ |
| 6214 | # $configure_input" ;; |
| 6215 | *) ac_comsub= ;; |
| 6216 | esac |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6217 | |
| 6218 | 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] | 6219 | sed -e "$ac_comsub |
| 6220 | s%@configure_input@%$configure_input%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6221 | s%@srcdir@%$srcdir%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6222 | s%@top_srcdir@%$top_srcdir%g |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6223 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6224 | fi; done |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6225 | rm -f conftest.s* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6226 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6227 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 6228 | # 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] | 6229 | # |
| 6230 | # ac_d sets the value in "#define NAME VALUE" lines. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6231 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 6232 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6233 | ac_dC='\3' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6234 | ac_dD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6235 | # 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] | 6236 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 6237 | ac_uB='\([ ]\)%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6238 | ac_uC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6239 | ac_uD='\4%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6240 | # 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] | 6241 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 6242 | ac_eB='$%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6243 | ac_eC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6244 | ac_eD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6245 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6246 | if test "${CONFIG_HEADERS+set}" != set; then |
| 6247 | EOF |
| 6248 | cat >> $CONFIG_STATUS <<EOF |
| 6249 | CONFIG_HEADERS="config.h" |
| 6250 | EOF |
| 6251 | cat >> $CONFIG_STATUS <<\EOF |
| 6252 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6253 | 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] | 6254 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6255 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6256 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6257 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 6258 | *) ac_file_in="${ac_file}.in" ;; |
| 6259 | esac |
| 6260 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6261 | echo creating $ac_file |
| 6262 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6263 | rm -f conftest.frag conftest.in conftest.out |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6264 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 6265 | cat $ac_file_inputs > conftest.in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6266 | |
| 6267 | EOF |
| 6268 | |
| 6269 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 6270 | # 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] | 6271 | # 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] | 6272 | # Protect against being in an unquoted here document in config.status. |
| 6273 | rm -f conftest.vals |
| 6274 | cat > conftest.hdr <<\EOF |
| 6275 | s/[\\&%]/\\&/g |
| 6276 | s%[\\$`]%\\&%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6277 | 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] | 6278 | s%ac_d%ac_u%gp |
| 6279 | s%ac_u%ac_e%gp |
| 6280 | EOF |
| 6281 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 6282 | rm -f conftest.hdr |
| 6283 | |
| 6284 | # This sed command replaces #undef with comments. This is necessary, for |
| 6285 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 6286 | # on some systems where configure will not decide to define it. |
| 6287 | cat >> conftest.vals <<\EOF |
| 6288 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 6289 | EOF |
| 6290 | |
| 6291 | # Break up conftest.vals because some shells have a limit on |
| 6292 | # 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] | 6293 | |
| 6294 | rm -f conftest.tail |
| 6295 | while : |
| 6296 | do |
| 6297 | ac_lines=`grep -c . conftest.vals` |
| 6298 | # grep -c gives empty output for an empty file on some AIX systems. |
| 6299 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 6300 | # Write a limited-size here document to conftest.frag. |
| 6301 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 6302 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 6303 | echo 'CEOF |
| 6304 | sed -f conftest.frag conftest.in > conftest.out |
| 6305 | rm -f conftest.in |
| 6306 | mv conftest.out conftest.in |
| 6307 | ' >> $CONFIG_STATUS |
| 6308 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 6309 | rm -f conftest.vals |
| 6310 | mv conftest.tail conftest.vals |
| 6311 | done |
| 6312 | rm -f conftest.vals |
| 6313 | |
| 6314 | cat >> $CONFIG_STATUS <<\EOF |
| 6315 | rm -f conftest.frag conftest.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6316 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6317 | cat conftest.in >> conftest.h |
| 6318 | rm -f conftest.in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6319 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6320 | echo "$ac_file is unchanged" |
| 6321 | rm -f conftest.h |
| 6322 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6323 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 6324 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 6325 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 6326 | # The file is in a subdirectory. |
| 6327 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 6328 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6329 | rm -f $ac_file |
| 6330 | mv conftest.h $ac_file |
| 6331 | fi |
| 6332 | fi; done |
| 6333 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6334 | EOF |
| 6335 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6336 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6337 | EOF |
| 6338 | cat >> $CONFIG_STATUS <<\EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6339 | |
| 6340 | exit 0 |
| 6341 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6342 | chmod +x $CONFIG_STATUS |
| 6343 | rm -fr confdefs* $ac_clean_files |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6344 | 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] | 6345 | |