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 | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3 | # From configure.in Revision: 1.166 |
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. |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 6 | # Generated automatically using autoconf version 2.13 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8 | # |
| 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12 | # Defaults: |
| 13 | ac_help= |
| 14 | ac_default_prefix=/usr/local |
| 15 | # Any additions from configure.in: |
| 16 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 17 | --with-next-archs='arch1 arch2 ..' build MAB binary" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 18 | ac_help="$ac_help |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 19 | --with-next-framework Build (OpenStep|Rhapsody|MacOSX|Darwin) framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 20 | ac_help="$ac_help |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 21 | --with-dyld Use (OpenStep|Rhapsody|MacOSX|Darwin) dynamic linker" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 22 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 23 | --without-gcc never use gcc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 25 | --with-cxx=<compiler> enable C++ support" |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 26 | ac_help="$ac_help |
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 | c0d24d8b | 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 | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 33 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 34 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 35 | --with(out)-threads[=DIRECTORY] disable/enable thread support" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 36 | ac_help="$ac_help |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 37 | --with(out)-thread[=DIRECTORY] deprecated; use --with(out)-threads" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 38 | ac_help="$ac_help |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 39 | --with-pth use GNU pth threading libraries" |
| 40 | ac_help="$ac_help |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 41 | --with(out)-cycle-gc disable/enable garbage collection" |
| 42 | ac_help="$ac_help |
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 | c0d24d8b | 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 | c0d24d8b | 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 | c0d24d8b | 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 | c0d24d8b | 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 | c0d24d8b | 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) |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +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" |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +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*) |
| 703 | # Dunno if it's a good idea to get this over with all at once, or |
| 704 | # to handle it in with the other goodies. |
| 705 | MACHDEP=beos |
| 706 | |
| 707 | case $BE_HOST_CPU in |
| 708 | ppc) |
Guido van Rossum | 8137680 | 1999-04-06 15:50:51 +0000 | [diff] [blame] | 709 | CC="mwcc -I$PWD/BeOS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 710 | without_gcc=yes |
Guido van Rossum | 6b9da45 | 1999-03-24 17:48:12 +0000 | [diff] [blame] | 711 | case `uname -r` in |
| 712 | 4.0*) OPT="-DUSE_DL_EXPORT -O7 -opt schedule604 -export pragma" ;; |
| 713 | *) OPT="-DUSE_DL_EXPORT -O2 -proc 604e -export pragma" ;; |
| 714 | esac |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 715 | CCSHARED=-UUSE_DL_EXPORT |
| 716 | LDFLAGS="$LDFLAGS -nodup" |
| 717 | |
| 718 | AR="$PWD/BeOS/ar-fake" |
| 719 | RANLIB=: |
| 720 | |
| 721 | cat >> confdefs.h <<\EOF |
| 722 | #define DL_EXPORT_HEADER "dl_export.h" |
| 723 | EOF |
| 724 | |
| 725 | ;; |
| 726 | x86) |
| 727 | CC="gcc -I$PWD/BeOS" |
| 728 | without_gcc=no |
Guido van Rossum | 32000e8 | 2000-05-22 21:31:50 +0000 | [diff] [blame] | 729 | OPT="-DUSE_DL_EXPORT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 730 | CCSHARED=-UUSE_DL_EXPORT |
| 731 | |
| 732 | AR="$PWD/BeOS/ar-fake" |
| 733 | RANLIB=: |
| 734 | |
| 735 | cat >> confdefs.h <<\EOF |
| 736 | #define DL_EXPORT_HEADER "dl_export.h" |
| 737 | EOF |
| 738 | |
| 739 | ;; |
| 740 | *) |
| 741 | { echo "configure: error: Your BeOS system isn't PowerPC or x86... neat" 1>&2; exit 1; } |
| 742 | ;; |
| 743 | esac |
| 744 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 745 | Monterey*) |
| 746 | RANLIB=: |
| 747 | without_gcc=;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 748 | *) without_gcc=no;; |
| 749 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 750 | fi |
| 751 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 752 | echo "$ac_t""$without_gcc" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 753 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 754 | |
| 755 | |
| 756 | MAINOBJ=python.o |
| 757 | echo $ac_n "checking for --with-cxx=<compiler>""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 758 | echo "configure:759: checking for --with-cxx=<compiler>" >&5 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 759 | # Check whether --with-cxx or --without-cxx was given. |
| 760 | if test "${with_cxx+set}" = set; then |
| 761 | withval="$with_cxx" |
| 762 | |
| 763 | case $withval in |
| 764 | no) CXX= |
| 765 | with_cxx=no;; |
| 766 | *) CXX=$withval |
| 767 | MAINOBJ=ccpython.o |
| 768 | with_cxx=$withval;; |
| 769 | esac |
| 770 | else |
| 771 | |
| 772 | with_cxx=no |
| 773 | |
| 774 | fi |
| 775 | |
| 776 | echo "$ac_t""$with_cxx" 1>&6 |
Guido van Rossum | e126233 | 2000-09-22 19:41:56 +0000 | [diff] [blame] | 777 | SET_CXX="CXX=$CXX" |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 778 | |
| 779 | #AC_MSG_CHECKING(CCC) |
| 780 | #if test -z "$CCC" |
| 781 | #then |
| 782 | # case $ac_sys_system in |
| 783 | # IRIX*) SET_CCC="CCC= CC ${SGI_ABI}";; |
| 784 | # Linux*) SET_CCC="CCC= g++";; |
| 785 | # *) SET_CCC="" |
| 786 | # esac |
| 787 | #else |
| 788 | # SET_CCC="CCC= ${CCC}" |
| 789 | #fi |
| 790 | #AC_MSG_RESULT($SET_CCC) |
| 791 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 792 | # If the user switches compilers, we can't believe the cache |
| 793 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 794 | then |
| 795 | { echo "configure: error: cached CC is different -- throw away $cache_file |
| 796 | (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; } |
| 797 | fi |
| 798 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 799 | # Extract the first word of "gcc", so it can be a program name with args. |
| 800 | set dummy gcc; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 801 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 802 | echo "configure:803: checking for $ac_word" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 803 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 804 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 805 | else |
| 806 | if test -n "$CC"; then |
| 807 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 808 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 809 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 810 | ac_dummy="$PATH" |
| 811 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 812 | test -z "$ac_dir" && ac_dir=. |
| 813 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 814 | ac_cv_prog_CC="gcc" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 815 | break |
| 816 | fi |
| 817 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 818 | IFS="$ac_save_ifs" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 819 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 820 | fi |
| 821 | CC="$ac_cv_prog_CC" |
| 822 | if test -n "$CC"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 823 | echo "$ac_t""$CC" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 824 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 825 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 826 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 827 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 828 | if test -z "$CC"; then |
| 829 | # Extract the first word of "cc", so it can be a program name with args. |
| 830 | set dummy cc; ac_word=$2 |
| 831 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 832 | echo "configure:833: checking for $ac_word" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 833 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 834 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 835 | else |
| 836 | if test -n "$CC"; then |
| 837 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 838 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 839 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 840 | ac_prog_rejected=no |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 841 | ac_dummy="$PATH" |
| 842 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 843 | test -z "$ac_dir" && ac_dir=. |
| 844 | if test -f $ac_dir/$ac_word; then |
| 845 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 846 | ac_prog_rejected=yes |
| 847 | continue |
| 848 | fi |
| 849 | ac_cv_prog_CC="cc" |
| 850 | break |
| 851 | fi |
| 852 | done |
| 853 | IFS="$ac_save_ifs" |
| 854 | if test $ac_prog_rejected = yes; then |
| 855 | # We found a bogon in the path, so make sure we never use it. |
| 856 | set dummy $ac_cv_prog_CC |
| 857 | shift |
| 858 | if test $# -gt 0; then |
| 859 | # We chose a different compiler from the bogus one. |
| 860 | # However, it has the same basename, so the bogon will be chosen |
| 861 | # first if we set CC to just the basename; use the full file name. |
| 862 | shift |
| 863 | set dummy "$ac_dir/$ac_word" "$@" |
| 864 | shift |
| 865 | ac_cv_prog_CC="$@" |
| 866 | fi |
| 867 | fi |
| 868 | fi |
| 869 | fi |
| 870 | CC="$ac_cv_prog_CC" |
| 871 | if test -n "$CC"; then |
| 872 | echo "$ac_t""$CC" 1>&6 |
| 873 | else |
| 874 | echo "$ac_t""no" 1>&6 |
| 875 | fi |
| 876 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 877 | if test -z "$CC"; then |
| 878 | case "`uname -s`" in |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 879 | *win32* | *WIN32*) |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 880 | # Extract the first word of "cl", so it can be a program name with args. |
| 881 | set dummy cl; ac_word=$2 |
| 882 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 883 | echo "configure:884: checking for $ac_word" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 884 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 885 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 886 | else |
| 887 | if test -n "$CC"; then |
| 888 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 889 | else |
| 890 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 891 | ac_dummy="$PATH" |
| 892 | for ac_dir in $ac_dummy; do |
| 893 | test -z "$ac_dir" && ac_dir=. |
| 894 | if test -f $ac_dir/$ac_word; then |
| 895 | ac_cv_prog_CC="cl" |
| 896 | break |
| 897 | fi |
| 898 | done |
| 899 | IFS="$ac_save_ifs" |
| 900 | fi |
| 901 | fi |
| 902 | CC="$ac_cv_prog_CC" |
| 903 | if test -n "$CC"; then |
| 904 | echo "$ac_t""$CC" 1>&6 |
| 905 | else |
| 906 | echo "$ac_t""no" 1>&6 |
| 907 | fi |
| 908 | ;; |
| 909 | esac |
| 910 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 911 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 912 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 913 | |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 914 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 915 | echo "configure:916: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 916 | |
| 917 | ac_ext=c |
| 918 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 919 | ac_cpp='$CPP $CPPFLAGS' |
| 920 | 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] | 921 | 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] | 922 | cross_compiling=$ac_cv_prog_cc_cross |
| 923 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 924 | cat > conftest.$ac_ext << EOF |
| 925 | |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 926 | #line 927 "configure" |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 927 | #include "confdefs.h" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 928 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 929 | main(){return(0);} |
| 930 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 931 | if { (eval echo configure:932: \"$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] | 932 | ac_cv_prog_cc_works=yes |
| 933 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 934 | if (./conftest; exit) 2>/dev/null; then |
| 935 | ac_cv_prog_cc_cross=no |
| 936 | else |
| 937 | ac_cv_prog_cc_cross=yes |
| 938 | fi |
| 939 | else |
| 940 | echo "configure: failed program was:" >&5 |
| 941 | cat conftest.$ac_ext >&5 |
| 942 | ac_cv_prog_cc_works=no |
| 943 | fi |
| 944 | rm -fr conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 945 | ac_ext=c |
| 946 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 947 | ac_cpp='$CPP $CPPFLAGS' |
| 948 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 949 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 950 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 951 | |
| 952 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 953 | if test $ac_cv_prog_cc_works = no; then |
| 954 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 955 | fi |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 956 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 957 | echo "configure:958: 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] | 958 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 959 | cross_compiling=$ac_cv_prog_cc_cross |
| 960 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 961 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 962 | echo "configure:963: checking whether we are using GNU C" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 963 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 964 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 965 | else |
| 966 | cat > conftest.c <<EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 967 | #ifdef __GNUC__ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 968 | yes; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 969 | #endif |
| 970 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 971 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:972: \"$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] | 972 | ac_cv_prog_gcc=yes |
| 973 | else |
| 974 | ac_cv_prog_gcc=no |
| 975 | fi |
| 976 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 977 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 978 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 979 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 980 | if test $ac_cv_prog_gcc = yes; then |
| 981 | GCC=yes |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 982 | else |
| 983 | GCC= |
| 984 | fi |
| 985 | |
| 986 | ac_test_CFLAGS="${CFLAGS+set}" |
| 987 | ac_save_CFLAGS="$CFLAGS" |
| 988 | CFLAGS= |
| 989 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 990 | echo "configure:991: checking whether ${CC-cc} accepts -g" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 991 | 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] | 992 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 993 | else |
| 994 | echo 'void f(){}' > conftest.c |
| 995 | 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] | 996 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 997 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 998 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 999 | fi |
| 1000 | rm -f conftest* |
| 1001 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1002 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1003 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1004 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1005 | if test "$ac_test_CFLAGS" = set; then |
| 1006 | CFLAGS="$ac_save_CFLAGS" |
| 1007 | elif test $ac_cv_prog_cc_g = yes; then |
| 1008 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1009 | CFLAGS="-g -O2" |
| 1010 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1011 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1012 | fi |
| 1013 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1014 | if test "$GCC" = yes; then |
| 1015 | CFLAGS="-O2" |
| 1016 | else |
| 1017 | CFLAGS= |
| 1018 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1019 | fi |
| 1020 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1021 | |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1022 | echo $ac_n "checking for --with-suffix""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1023 | echo "configure:1024: checking for --with-suffix" >&5 |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1024 | # Check whether --with-suffix or --without-suffix was given. |
| 1025 | if test "${with_suffix+set}" = set; then |
| 1026 | withval="$with_suffix" |
| 1027 | |
| 1028 | case $withval in |
| 1029 | no) EXE=;; |
| 1030 | yes) EXE=.exe;; |
| 1031 | *) EXE=$withval;; |
| 1032 | esac |
| 1033 | fi |
| 1034 | |
| 1035 | echo "$ac_t""$EXE" 1>&6 |
| 1036 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 1037 | case $MACHDEP in |
| 1038 | bsdos*) |
| 1039 | case $CC in |
| 1040 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 1041 | esac;; |
| 1042 | esac |
| 1043 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1044 | case $ac_sys_system in |
| 1045 | hp*|HP*) |
| 1046 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 1047 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1048 | esac;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1049 | BeOS*) |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 1050 | case $CC in |
| 1051 | cc) CC=cc;; |
| 1052 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1053 | Monterey*) |
| 1054 | case $CC in |
| 1055 | cc) CC="$CC -Wl,-Bexport";; |
| 1056 | esac;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1057 | esac |
| 1058 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1059 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 1060 | # name of the library into which to insert object files). On systems |
| 1061 | # without shared libraries, LDLIBRARY is the same as LIBRARY (defined in |
| 1062 | # the Makefiles). |
| 1063 | |
| 1064 | |
| 1065 | LDLIBRARY='' |
| 1066 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1067 | # LINKCC is the command that links the python executable -- default is $(CC). |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1068 | # This is altered for AIX and BeOS in order to build the export list before |
| 1069 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1070 | |
| 1071 | echo $ac_n "checking LINKCC""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1072 | echo "configure:1073: checking LINKCC" >&5 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1073 | if test -z "$LINKCC" -a ! -z "$CXX" |
| 1074 | then |
| 1075 | LINKCC="$CXX" |
| 1076 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1077 | if test -z "$LINKCC" |
| 1078 | then |
| 1079 | case $ac_sys_system in |
| 1080 | AIX*) |
Guido van Rossum | 45140f9 | 1997-08-29 18:44:06 +0000 | [diff] [blame] | 1081 | LINKCC="\$(srcdir)/makexp_aix python.exp \"\" \$(LIBRARY); \$(PURIFY) \$(CC)";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1082 | BeOS*) |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 1083 | LINKCC="\$(srcdir)/../BeOS/linkcc \$(LIBRARY) \$(PURIFY) \$(CC) \$(OPT)" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1084 | LDLIBRARY='libpython$(VERSION).so';; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 1085 | dgux*) |
| 1086 | LINKCC="LD_RUN_PATH=$libdir \$(PURIFY) \$(CC)";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1087 | Monterey64*) |
| 1088 | LINKCC="\$(PURIFY) \$(CC) -L/usr/lib/ia64l64";; |
Guido van Rossum | 25f9303 | 1997-08-18 16:00:04 +0000 | [diff] [blame] | 1089 | *) LINKCC="\$(PURIFY) \$(CC)";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1090 | esac |
| 1091 | fi |
| 1092 | echo "$ac_t""$LINKCC" 1>&6 |
| 1093 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1094 | echo $ac_n "checking LDLIBRARY""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1095 | echo "configure:1096: checking LDLIBRARY" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1096 | |
| 1097 | # NeXT framework builds require that the 'ar' library be converted into |
| 1098 | # a bundle using libtool. |
| 1099 | if test "$with_next_framework" |
| 1100 | then |
| 1101 | LDLIBRARY='libpython$(VERSION).dylib' |
| 1102 | fi |
| 1103 | |
| 1104 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 1105 | if test "$MACHDEP" = "dguxR4" |
| 1106 | then |
| 1107 | LDLIBRARY='libpython$(VERSION).so' |
| 1108 | OPT="$OPT -pic" |
| 1109 | fi |
| 1110 | echo "$ac_t""$LDLIBRARY" 1>&6 |
| 1111 | |
| 1112 | # If LDLIBRARY is different from LIBRARY, emit a rule to build it. |
| 1113 | if test -z "$LDLIBRARY" |
| 1114 | then |
| 1115 | LDLIBRARY='libpython$(VERSION).a' |
| 1116 | MAKE_LDLIBRARY="true" |
| 1117 | else |
| 1118 | MAKE_LDLIBRARY='$(MAKE) $(LDLIBRARY)' |
| 1119 | fi |
| 1120 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1121 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1122 | set dummy ranlib; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1123 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1124 | echo "configure:1125: checking for $ac_word" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 1125 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1126 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1127 | else |
| 1128 | if test -n "$RANLIB"; then |
| 1129 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1130 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1131 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1132 | ac_dummy="$PATH" |
| 1133 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1134 | test -z "$ac_dir" && ac_dir=. |
| 1135 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1136 | ac_cv_prog_RANLIB="ranlib" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1137 | break |
| 1138 | fi |
| 1139 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1140 | IFS="$ac_save_ifs" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1141 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1142 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1143 | fi |
| 1144 | RANLIB="$ac_cv_prog_RANLIB" |
| 1145 | if test -n "$RANLIB"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1146 | echo "$ac_t""$RANLIB" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1147 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1148 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1149 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1150 | |
| 1151 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1152 | for ac_prog in ar aal |
| 1153 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1154 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1155 | set dummy $ac_prog; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1156 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1157 | echo "configure:1158: checking for $ac_word" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 1158 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1159 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1160 | else |
| 1161 | if test -n "$AR"; then |
| 1162 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 1163 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1164 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1165 | ac_dummy="$PATH" |
| 1166 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1167 | test -z "$ac_dir" && ac_dir=. |
| 1168 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1169 | ac_cv_prog_AR="$ac_prog" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1170 | break |
| 1171 | fi |
| 1172 | done |
| 1173 | IFS="$ac_save_ifs" |
| 1174 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1175 | fi |
| 1176 | AR="$ac_cv_prog_AR" |
| 1177 | if test -n "$AR"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1178 | echo "$ac_t""$AR" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1179 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1180 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1181 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1182 | |
| 1183 | test -n "$AR" && break |
| 1184 | done |
| 1185 | test -n "$AR" || AR="ar" |
| 1186 | |
| 1187 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1188 | |
| 1189 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1190 | # Install just never works :-( |
| 1191 | if test -z "$INSTALL" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1192 | then |
| 1193 | INSTALL=cp |
| 1194 | INSTALL_PROGRAM=cp |
| 1195 | INSTALL_DATA=cp |
| 1196 | else |
| 1197 | INSTALL_PROGRAM="$INSTALL" |
| 1198 | INSTALL_DATA="$INSTALL -m 644" |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1199 | fi |
| 1200 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1201 | # Not every filesystem supports hard links |
| 1202 | |
| 1203 | if test -z "$LN" ; then |
| 1204 | case $ac_sys_system in |
| 1205 | BeOS*) LN="ln -s";; |
| 1206 | *) LN=ln;; |
| 1207 | esac |
| 1208 | fi |
| 1209 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1210 | # Optimizer/debugger flags passed between Makefiles |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1211 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1212 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1213 | then |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 1214 | case $GCC in |
| 1215 | yes) |
| 1216 | case $ac_cv_prog_cc_g in |
| 1217 | yes) OPT="-g -O2";; |
| 1218 | *) OPT="-O2";; |
| 1219 | esac |
| 1220 | ;; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1221 | *) OPT="-O";; |
| 1222 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1223 | fi |
| 1224 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1225 | # The current (beta) Monterey compiler dies with optimizations |
| 1226 | case $ac_sys_system in |
| 1227 | Monterey*) OPT="";; |
| 1228 | esac |
| 1229 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1230 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 1231 | then |
| 1232 | OPT="$OPT $ac_arch_flags" |
| 1233 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1234 | # checks for UNIX variants that set C preprocessor variables |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1235 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1236 | echo "configure:1237: checking how to run the C preprocessor" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1237 | # On Suns, sometimes $CPP names a directory. |
| 1238 | if test -n "$CPP" && test -d "$CPP"; then |
| 1239 | CPP= |
| 1240 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1241 | if test -z "$CPP"; then |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 1242 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1243 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1244 | else |
| 1245 | # This must be in double quotes, not single quotes, because CPP may get |
| 1246 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1247 | CPP="${CC-cc} -E" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1248 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 1249 | # not just through cpp. |
| 1250 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1251 | #line 1252 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1252 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1253 | #include <assert.h> |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1254 | Syntax Error |
| 1255 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1256 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1257 | { (eval echo configure:1258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1258 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1259 | if test -z "$ac_err"; then |
| 1260 | : |
| 1261 | else |
| 1262 | echo "$ac_err" >&5 |
| 1263 | echo "configure: failed program was:" >&5 |
| 1264 | cat conftest.$ac_ext >&5 |
| 1265 | rm -rf conftest* |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1266 | CPP="${CC-cc} -E -traditional-cpp" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1267 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1268 | #line 1269 "configure" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1269 | #include "confdefs.h" |
| 1270 | #include <assert.h> |
| 1271 | Syntax Error |
| 1272 | EOF |
| 1273 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1274 | { (eval echo configure:1275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1275 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1276 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1277 | : |
| 1278 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1279 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1280 | echo "configure: failed program was:" >&5 |
| 1281 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1282 | rm -rf conftest* |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1283 | CPP="${CC-cc} -nologo -E" |
| 1284 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1285 | #line 1286 "configure" |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1286 | #include "confdefs.h" |
| 1287 | #include <assert.h> |
| 1288 | Syntax Error |
| 1289 | EOF |
| 1290 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1291 | { (eval echo configure:1292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1292 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1293 | if test -z "$ac_err"; then |
| 1294 | : |
| 1295 | else |
| 1296 | echo "$ac_err" >&5 |
| 1297 | echo "configure: failed program was:" >&5 |
| 1298 | cat conftest.$ac_ext >&5 |
| 1299 | rm -rf conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1300 | CPP=/lib/cpp |
| 1301 | fi |
| 1302 | rm -f conftest* |
| 1303 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1304 | rm -f conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1305 | fi |
| 1306 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1307 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1308 | fi |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1309 | CPP="$ac_cv_prog_CPP" |
| 1310 | else |
| 1311 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1312 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1313 | echo "$ac_t""$CPP" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1314 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1315 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1316 | echo "configure:1317: checking for AIX" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1317 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1318 | #line 1319 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1319 | #include "confdefs.h" |
| 1320 | #ifdef _AIX |
| 1321 | yes |
| 1322 | #endif |
| 1323 | |
| 1324 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1325 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1326 | egrep "yes" >/dev/null 2>&1; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1327 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1328 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1329 | #define _ALL_SOURCE 1 |
| 1330 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1331 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1332 | else |
| 1333 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1334 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1335 | fi |
| 1336 | rm -f conftest* |
| 1337 | |
| 1338 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1339 | ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1340 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1341 | echo "configure:1342: checking for minix/config.h" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 1342 | 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] | 1343 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1344 | else |
| 1345 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1346 | #line 1347 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1347 | #include "confdefs.h" |
| 1348 | #include <minix/config.h> |
| 1349 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1350 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1351 | { (eval echo configure:1352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1352 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1353 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1354 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1355 | eval "ac_cv_header_$ac_safe=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1356 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1357 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1358 | echo "configure: failed program was:" >&5 |
| 1359 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1360 | rm -rf conftest* |
| 1361 | eval "ac_cv_header_$ac_safe=no" |
| 1362 | fi |
| 1363 | rm -f conftest* |
| 1364 | fi |
| 1365 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1366 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1367 | MINIX=yes |
| 1368 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1369 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1370 | MINIX= |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1371 | fi |
| 1372 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1373 | if test "$MINIX" = yes; then |
| 1374 | cat >> confdefs.h <<\EOF |
| 1375 | #define _POSIX_SOURCE 1 |
| 1376 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1377 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1378 | cat >> confdefs.h <<\EOF |
| 1379 | #define _POSIX_1_SOURCE 2 |
| 1380 | EOF |
| 1381 | |
| 1382 | cat >> confdefs.h <<\EOF |
| 1383 | #define _MINIX 1 |
| 1384 | EOF |
| 1385 | |
| 1386 | fi |
| 1387 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1388 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1389 | echo $ac_n "checking whether $CC accepts -OPT:Olimit=0""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1390 | echo "configure:1391: checking whether $CC accepts -OPT:Olimit=0" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 1391 | 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] | 1392 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1393 | else |
| 1394 | ac_save_cc="$CC" |
| 1395 | CC="$CC -OPT:Olimit=0" |
| 1396 | if test "$cross_compiling" = yes; then |
| 1397 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1398 | else |
| 1399 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1400 | #line 1401 "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1401 | #include "confdefs.h" |
| 1402 | int main() { return 0; } |
| 1403 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1404 | if { (eval echo configure:1405: \"$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] | 1405 | then |
| 1406 | ac_cv_opt_olimit_ok=yes |
| 1407 | else |
| 1408 | echo "configure: failed program was:" >&5 |
| 1409 | cat conftest.$ac_ext >&5 |
| 1410 | rm -fr conftest* |
| 1411 | ac_cv_opt_olimit_ok=no |
| 1412 | fi |
| 1413 | rm -fr conftest* |
| 1414 | fi |
| 1415 | |
| 1416 | CC="$ac_save_cc" |
| 1417 | fi |
| 1418 | |
| 1419 | echo "$ac_t""$ac_cv_opt_olimit_ok" 1>&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 1420 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 304dd2d | 1997-10-20 23:10:56 +0000 | [diff] [blame] | 1421 | OPT="$OPT -OPT:Olimit=0" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1422 | else |
| 1423 | echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1424 | echo "configure:1425: checking whether $CC accepts -Olimit 1500" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 1425 | if eval "test \"`echo '$''{'ac_cv_olimit_ok'+set}'`\" = set"; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1426 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1427 | else |
| 1428 | ac_save_cc="$CC" |
| 1429 | CC="$CC -Olimit 1500" |
| 1430 | if test "$cross_compiling" = yes; then |
| 1431 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1432 | else |
| 1433 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1434 | #line 1435 "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1435 | #include "confdefs.h" |
| 1436 | int main() { return 0; } |
| 1437 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1438 | if { (eval echo configure:1439: \"$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] | 1439 | then |
| 1440 | ac_cv_olimit_ok=yes |
| 1441 | else |
| 1442 | echo "configure: failed program was:" >&5 |
| 1443 | cat conftest.$ac_ext >&5 |
| 1444 | rm -fr conftest* |
| 1445 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 1446 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1447 | rm -fr conftest* |
| 1448 | fi |
| 1449 | |
| 1450 | CC="$ac_save_cc" |
| 1451 | fi |
| 1452 | |
| 1453 | echo "$ac_t""$ac_cv_olimit_ok" 1>&6 |
| 1454 | if test $ac_cv_olimit_ok = yes; then |
| 1455 | OPT="$OPT -Olimit 1500" |
| 1456 | fi |
| 1457 | fi |
| 1458 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1459 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1460 | # checks for header files |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1461 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1462 | echo "configure:1463: checking for ANSI C header files" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 1463 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1464 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1465 | else |
| 1466 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1467 | #line 1468 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1468 | #include "confdefs.h" |
| 1469 | #include <stdlib.h> |
| 1470 | #include <stdarg.h> |
| 1471 | #include <string.h> |
| 1472 | #include <float.h> |
| 1473 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1474 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1475 | { (eval echo configure:1476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1476 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1477 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1478 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1479 | ac_cv_header_stdc=yes |
| 1480 | else |
| 1481 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1482 | echo "configure: failed program was:" >&5 |
| 1483 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1484 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1485 | ac_cv_header_stdc=no |
| 1486 | fi |
| 1487 | rm -f conftest* |
| 1488 | |
| 1489 | if test $ac_cv_header_stdc = yes; then |
| 1490 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 1491 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +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 <string.h> |
| 1495 | EOF |
| 1496 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1497 | egrep "memchr" >/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 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 1509 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1510 | #line 1511 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1511 | #include "confdefs.h" |
| 1512 | #include <stdlib.h> |
| 1513 | EOF |
| 1514 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1515 | egrep "free" >/dev/null 2>&1; then |
| 1516 | : |
| 1517 | else |
| 1518 | rm -rf conftest* |
| 1519 | ac_cv_header_stdc=no |
| 1520 | fi |
| 1521 | rm -f conftest* |
| 1522 | |
| 1523 | fi |
| 1524 | |
| 1525 | if test $ac_cv_header_stdc = yes; then |
| 1526 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 1527 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1528 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1529 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1530 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1531 | #line 1532 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1532 | #include "confdefs.h" |
| 1533 | #include <ctype.h> |
| 1534 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 1535 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1536 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1537 | int main () { int i; for (i = 0; i < 256; i++) |
| 1538 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 1539 | exit (0); } |
| 1540 | |
| 1541 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1542 | if { (eval echo configure:1543: \"$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] | 1543 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1544 | : |
| 1545 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1546 | echo "configure: failed program was:" >&5 |
| 1547 | cat conftest.$ac_ext >&5 |
| 1548 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1549 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1550 | fi |
| 1551 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1552 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1553 | |
| 1554 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1555 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1556 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1557 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1558 | if test $ac_cv_header_stdc = yes; then |
| 1559 | cat >> confdefs.h <<\EOF |
| 1560 | #define STDC_HEADERS 1 |
| 1561 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1562 | |
| 1563 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1564 | |
Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame] | 1565 | 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] | 1566 | 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] | 1567 | 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] | 1568 | 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] | 1569 | sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ |
| 1570 | ndbm.h db1/ndbm.h gdbm/ndbm.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1571 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1572 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1573 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1574 | echo "configure:1575: checking for $ac_hdr" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 1575 | 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] | 1576 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1577 | else |
| 1578 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1579 | #line 1580 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1580 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1581 | #include <$ac_hdr> |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1582 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1583 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1584 | { (eval echo configure:1585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1585 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1586 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1587 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1588 | eval "ac_cv_header_$ac_safe=yes" |
| 1589 | else |
| 1590 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1591 | echo "configure: failed program was:" >&5 |
| 1592 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1593 | rm -rf conftest* |
| 1594 | eval "ac_cv_header_$ac_safe=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1595 | fi |
| 1596 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1597 | fi |
| 1598 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1599 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1600 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1601 | cat >> confdefs.h <<EOF |
| 1602 | #define $ac_tr_hdr 1 |
| 1603 | EOF |
| 1604 | |
| 1605 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1606 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1607 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1608 | done |
| 1609 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1610 | ac_header_dirent=no |
| 1611 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
| 1612 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1613 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1614 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1615 | echo "configure:1616: checking for $ac_hdr that defines DIR" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 1616 | 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] | 1617 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1618 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1619 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1620 | #line 1621 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1621 | #include "confdefs.h" |
| 1622 | #include <sys/types.h> |
| 1623 | #include <$ac_hdr> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1624 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1625 | DIR *dirp = 0; |
| 1626 | ; return 0; } |
| 1627 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1628 | if { (eval echo configure:1629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1629 | rm -rf conftest* |
| 1630 | eval "ac_cv_header_dirent_$ac_safe=yes" |
| 1631 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1632 | echo "configure: failed program was:" >&5 |
| 1633 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1634 | rm -rf conftest* |
| 1635 | eval "ac_cv_header_dirent_$ac_safe=no" |
| 1636 | fi |
| 1637 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1638 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1639 | 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] | 1640 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1641 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1642 | cat >> confdefs.h <<EOF |
| 1643 | #define $ac_tr_hdr 1 |
| 1644 | EOF |
| 1645 | ac_header_dirent=$ac_hdr; break |
| 1646 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1647 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1648 | fi |
| 1649 | done |
| 1650 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 1651 | if test $ac_header_dirent = dirent.h; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1652 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1653 | echo "configure:1654: checking for opendir in -ldir" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1654 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 1655 | 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] | 1656 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1657 | else |
| 1658 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1659 | LIBS="-ldir $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1660 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1661 | #line 1662 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1662 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1663 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1664 | /* We use char because int might match the return type of a gcc2 |
| 1665 | builtin and then its argument prototype would still apply. */ |
| 1666 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1667 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1668 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1669 | opendir() |
| 1670 | ; return 0; } |
| 1671 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1672 | if { (eval echo configure:1673: \"$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] | 1673 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1674 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1675 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1676 | echo "configure: failed program was:" >&5 |
| 1677 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1678 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1679 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1680 | fi |
| 1681 | rm -f conftest* |
| 1682 | LIBS="$ac_save_LIBS" |
| 1683 | |
| 1684 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1685 | 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] | 1686 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1687 | LIBS="$LIBS -ldir" |
| 1688 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1689 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1690 | fi |
| 1691 | |
| 1692 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1693 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1694 | echo "configure:1695: checking for opendir in -lx" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1695 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 1696 | 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] | 1697 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1698 | else |
| 1699 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1700 | LIBS="-lx $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1701 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1702 | #line 1703 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1703 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1704 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1705 | /* We use char because int might match the return type of a gcc2 |
| 1706 | builtin and then its argument prototype would still apply. */ |
| 1707 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1708 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1709 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1710 | opendir() |
| 1711 | ; return 0; } |
| 1712 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1713 | if { (eval echo configure:1714: \"$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] | 1714 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1715 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1716 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1717 | echo "configure: failed program was:" >&5 |
| 1718 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1719 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1720 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1721 | fi |
| 1722 | rm -f conftest* |
| 1723 | LIBS="$ac_save_LIBS" |
| 1724 | |
| 1725 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1726 | 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] | 1727 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1728 | LIBS="$LIBS -lx" |
| 1729 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1730 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1731 | fi |
| 1732 | |
| 1733 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1734 | |
| 1735 | |
| 1736 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1737 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1738 | echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1739 | echo "configure:1740: checking for clock_t in time.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1740 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1741 | #line 1742 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1742 | #include "confdefs.h" |
| 1743 | #include <time.h> |
| 1744 | EOF |
| 1745 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1746 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1747 | rm -rf conftest* |
| 1748 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1749 | else |
| 1750 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1751 | cat >> confdefs.h <<\EOF |
| 1752 | #define clock_t long |
| 1753 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1754 | |
| 1755 | fi |
| 1756 | rm -f conftest* |
| 1757 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1758 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1759 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1760 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 1761 | cat >> confdefs.h <<\EOF |
| 1762 | #if defined(SCO_DS) |
| 1763 | #undef _OFF_T |
| 1764 | #endif |
| 1765 | EOF |
| 1766 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 1767 | # Type availability checks |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1768 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1769 | echo "configure:1770: checking for mode_t" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 1770 | 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] | 1771 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1772 | else |
| 1773 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1774 | #line 1775 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1775 | #include "confdefs.h" |
| 1776 | #include <sys/types.h> |
| 1777 | #if STDC_HEADERS |
| 1778 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1779 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1780 | #endif |
| 1781 | EOF |
| 1782 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1783 | 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] | 1784 | rm -rf conftest* |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 1785 | ac_cv_type_mode_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1786 | else |
| 1787 | rm -rf conftest* |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 1788 | ac_cv_type_mode_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1789 | fi |
| 1790 | rm -f conftest* |
| 1791 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1792 | fi |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 1793 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
| 1794 | if test $ac_cv_type_mode_t = no; then |
| 1795 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1796 | #define mode_t int |
| 1797 | EOF |
| 1798 | |
| 1799 | fi |
| 1800 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1801 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1802 | echo "configure:1803: checking for off_t" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 1803 | 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] | 1804 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1805 | else |
| 1806 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1807 | #line 1808 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1808 | #include "confdefs.h" |
| 1809 | #include <sys/types.h> |
| 1810 | #if STDC_HEADERS |
| 1811 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1812 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1813 | #endif |
| 1814 | EOF |
| 1815 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1816 | 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] | 1817 | rm -rf conftest* |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 1818 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1819 | else |
| 1820 | rm -rf conftest* |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 1821 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1822 | fi |
| 1823 | rm -f conftest* |
| 1824 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1825 | fi |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 1826 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
| 1827 | if test $ac_cv_type_off_t = no; then |
| 1828 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1829 | #define off_t long |
| 1830 | EOF |
| 1831 | |
| 1832 | fi |
| 1833 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1834 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1835 | echo "configure:1836: checking for pid_t" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 1836 | 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] | 1837 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1838 | else |
| 1839 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1840 | #line 1841 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1841 | #include "confdefs.h" |
| 1842 | #include <sys/types.h> |
| 1843 | #if STDC_HEADERS |
| 1844 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1845 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1846 | #endif |
| 1847 | EOF |
| 1848 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1849 | 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] | 1850 | rm -rf conftest* |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 1851 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1852 | else |
| 1853 | rm -rf conftest* |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 1854 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1855 | fi |
| 1856 | rm -f conftest* |
| 1857 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1858 | fi |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 1859 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
| 1860 | if test $ac_cv_type_pid_t = no; then |
| 1861 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1862 | #define pid_t int |
| 1863 | EOF |
| 1864 | |
| 1865 | fi |
| 1866 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1867 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1868 | echo "configure:1869: checking return type of signal handlers" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 1869 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1870 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1871 | else |
| 1872 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1873 | #line 1874 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1874 | #include "confdefs.h" |
| 1875 | #include <sys/types.h> |
| 1876 | #include <signal.h> |
| 1877 | #ifdef signal |
| 1878 | #undef signal |
| 1879 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1880 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1881 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 1882 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1883 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1884 | #endif |
| 1885 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1886 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1887 | int i; |
| 1888 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1889 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1890 | if { (eval echo configure:1891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1891 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1892 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1893 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1894 | echo "configure: failed program was:" >&5 |
| 1895 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1896 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1897 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1898 | fi |
| 1899 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1900 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1901 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1902 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1903 | cat >> confdefs.h <<EOF |
| 1904 | #define RETSIGTYPE $ac_cv_type_signal |
| 1905 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1906 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1907 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1908 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1909 | echo "configure:1910: checking for size_t" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 1910 | 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] | 1911 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1912 | else |
| 1913 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1914 | #line 1915 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1915 | #include "confdefs.h" |
| 1916 | #include <sys/types.h> |
| 1917 | #if STDC_HEADERS |
| 1918 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1919 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1920 | #endif |
| 1921 | EOF |
| 1922 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1923 | 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] | 1924 | rm -rf conftest* |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 1925 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1926 | else |
| 1927 | rm -rf conftest* |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 1928 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1929 | fi |
| 1930 | rm -f conftest* |
| 1931 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1932 | fi |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 1933 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
| 1934 | if test $ac_cv_type_size_t = no; then |
| 1935 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1936 | #define size_t unsigned |
| 1937 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1938 | |
| 1939 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1940 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1941 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1942 | echo "configure:1943: checking for uid_t in sys/types.h" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 1943 | 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] | 1944 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1945 | else |
| 1946 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1947 | #line 1948 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1948 | #include "confdefs.h" |
| 1949 | #include <sys/types.h> |
| 1950 | EOF |
| 1951 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1952 | egrep "uid_t" >/dev/null 2>&1; then |
| 1953 | rm -rf conftest* |
| 1954 | ac_cv_type_uid_t=yes |
| 1955 | else |
| 1956 | rm -rf conftest* |
| 1957 | ac_cv_type_uid_t=no |
| 1958 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1959 | rm -f conftest* |
| 1960 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1961 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1962 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1963 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1964 | if test $ac_cv_type_uid_t = no; then |
| 1965 | cat >> confdefs.h <<\EOF |
| 1966 | #define uid_t int |
| 1967 | EOF |
| 1968 | |
| 1969 | cat >> confdefs.h <<\EOF |
| 1970 | #define gid_t int |
| 1971 | EOF |
| 1972 | |
| 1973 | fi |
| 1974 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1975 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 1976 | # Sizes of various common basic types |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1977 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1978 | echo "configure:1979: checking size of int" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 1979 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1980 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1981 | else |
| 1982 | if test "$cross_compiling" = yes; then |
| 1983 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1984 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1985 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1986 | #line 1987 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1987 | #include "confdefs.h" |
| 1988 | #include <stdio.h> |
| 1989 | main() |
| 1990 | { |
| 1991 | FILE *f=fopen("conftestval", "w"); |
| 1992 | if (!f) exit(1); |
| 1993 | fprintf(f, "%d\n", sizeof(int)); |
| 1994 | exit(0); |
| 1995 | } |
| 1996 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 1997 | if { (eval echo configure:1998: \"$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] | 1998 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1999 | ac_cv_sizeof_int=`cat conftestval` |
| 2000 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2001 | echo "configure: failed program was:" >&5 |
| 2002 | cat conftest.$ac_ext >&5 |
| 2003 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2004 | ac_cv_sizeof_int=0 |
| 2005 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2006 | rm -fr conftest* |
| 2007 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2008 | |
| 2009 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2010 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 2011 | cat >> confdefs.h <<EOF |
| 2012 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 2013 | EOF |
| 2014 | |
| 2015 | |
| 2016 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2017 | echo "configure:2018: checking size of long" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 2018 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2019 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2020 | else |
| 2021 | if test "$cross_compiling" = yes; then |
| 2022 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2023 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2024 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2025 | #line 2026 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2026 | #include "confdefs.h" |
| 2027 | #include <stdio.h> |
| 2028 | main() |
| 2029 | { |
| 2030 | FILE *f=fopen("conftestval", "w"); |
| 2031 | if (!f) exit(1); |
| 2032 | fprintf(f, "%d\n", sizeof(long)); |
| 2033 | exit(0); |
| 2034 | } |
| 2035 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2036 | if { (eval echo configure:2037: \"$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] | 2037 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2038 | ac_cv_sizeof_long=`cat conftestval` |
| 2039 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2040 | echo "configure: failed program was:" >&5 |
| 2041 | cat conftest.$ac_ext >&5 |
| 2042 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2043 | ac_cv_sizeof_long=0 |
| 2044 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2045 | rm -fr conftest* |
| 2046 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2047 | |
| 2048 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2049 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
| 2050 | cat >> confdefs.h <<EOF |
| 2051 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 2052 | EOF |
| 2053 | |
| 2054 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2055 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2056 | echo "configure:2057: checking size of void *" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 2057 | 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] | 2058 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2059 | else |
| 2060 | if test "$cross_compiling" = yes; then |
| 2061 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2062 | else |
| 2063 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2064 | #line 2065 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2065 | #include "confdefs.h" |
| 2066 | #include <stdio.h> |
| 2067 | main() |
| 2068 | { |
| 2069 | FILE *f=fopen("conftestval", "w"); |
| 2070 | if (!f) exit(1); |
| 2071 | fprintf(f, "%d\n", sizeof(void *)); |
| 2072 | exit(0); |
| 2073 | } |
| 2074 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2075 | if { (eval echo configure:2076: \"$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] | 2076 | then |
| 2077 | ac_cv_sizeof_void_p=`cat conftestval` |
| 2078 | else |
| 2079 | echo "configure: failed program was:" >&5 |
| 2080 | cat conftest.$ac_ext >&5 |
| 2081 | rm -fr conftest* |
| 2082 | ac_cv_sizeof_void_p=0 |
| 2083 | fi |
| 2084 | rm -fr conftest* |
| 2085 | fi |
| 2086 | |
| 2087 | fi |
| 2088 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
| 2089 | cat >> confdefs.h <<EOF |
| 2090 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
| 2091 | EOF |
| 2092 | |
| 2093 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2094 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2095 | echo "configure:2096: checking size of char" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 2096 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2097 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2098 | else |
| 2099 | if test "$cross_compiling" = yes; then |
| 2100 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2101 | else |
| 2102 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2103 | #line 2104 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2104 | #include "confdefs.h" |
| 2105 | #include <stdio.h> |
| 2106 | main() |
| 2107 | { |
| 2108 | FILE *f=fopen("conftestval", "w"); |
| 2109 | if (!f) exit(1); |
| 2110 | fprintf(f, "%d\n", sizeof(char)); |
| 2111 | exit(0); |
| 2112 | } |
| 2113 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2114 | if { (eval echo configure:2115: \"$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] | 2115 | then |
| 2116 | ac_cv_sizeof_char=`cat conftestval` |
| 2117 | else |
| 2118 | echo "configure: failed program was:" >&5 |
| 2119 | cat conftest.$ac_ext >&5 |
| 2120 | rm -fr conftest* |
| 2121 | ac_cv_sizeof_char=0 |
| 2122 | fi |
| 2123 | rm -fr conftest* |
| 2124 | fi |
| 2125 | |
| 2126 | fi |
| 2127 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
| 2128 | cat >> confdefs.h <<EOF |
| 2129 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
| 2130 | EOF |
| 2131 | |
| 2132 | |
| 2133 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2134 | echo "configure:2135: checking size of short" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 2135 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2136 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2137 | else |
| 2138 | if test "$cross_compiling" = yes; then |
| 2139 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2140 | else |
| 2141 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2142 | #line 2143 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2143 | #include "confdefs.h" |
| 2144 | #include <stdio.h> |
| 2145 | main() |
| 2146 | { |
| 2147 | FILE *f=fopen("conftestval", "w"); |
| 2148 | if (!f) exit(1); |
| 2149 | fprintf(f, "%d\n", sizeof(short)); |
| 2150 | exit(0); |
| 2151 | } |
| 2152 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2153 | if { (eval echo configure:2154: \"$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] | 2154 | then |
| 2155 | ac_cv_sizeof_short=`cat conftestval` |
| 2156 | else |
| 2157 | echo "configure: failed program was:" >&5 |
| 2158 | cat conftest.$ac_ext >&5 |
| 2159 | rm -fr conftest* |
| 2160 | ac_cv_sizeof_short=0 |
| 2161 | fi |
| 2162 | rm -fr conftest* |
| 2163 | fi |
| 2164 | |
| 2165 | fi |
| 2166 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
| 2167 | cat >> confdefs.h <<EOF |
| 2168 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 2169 | EOF |
| 2170 | |
| 2171 | |
| 2172 | echo $ac_n "checking size of float""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2173 | echo "configure:2174: checking size of float" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 2174 | if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2175 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2176 | else |
| 2177 | if test "$cross_compiling" = yes; then |
| 2178 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2179 | else |
| 2180 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2181 | #line 2182 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2182 | #include "confdefs.h" |
| 2183 | #include <stdio.h> |
| 2184 | main() |
| 2185 | { |
| 2186 | FILE *f=fopen("conftestval", "w"); |
| 2187 | if (!f) exit(1); |
| 2188 | fprintf(f, "%d\n", sizeof(float)); |
| 2189 | exit(0); |
| 2190 | } |
| 2191 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2192 | if { (eval echo configure:2193: \"$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] | 2193 | then |
| 2194 | ac_cv_sizeof_float=`cat conftestval` |
| 2195 | else |
| 2196 | echo "configure: failed program was:" >&5 |
| 2197 | cat conftest.$ac_ext >&5 |
| 2198 | rm -fr conftest* |
| 2199 | ac_cv_sizeof_float=0 |
| 2200 | fi |
| 2201 | rm -fr conftest* |
| 2202 | fi |
| 2203 | |
| 2204 | fi |
| 2205 | echo "$ac_t""$ac_cv_sizeof_float" 1>&6 |
| 2206 | cat >> confdefs.h <<EOF |
| 2207 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
| 2208 | EOF |
| 2209 | |
| 2210 | |
| 2211 | echo $ac_n "checking size of double""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2212 | echo "configure:2213: checking size of double" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 2213 | if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2214 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2215 | else |
| 2216 | if test "$cross_compiling" = yes; then |
| 2217 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2218 | else |
| 2219 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2220 | #line 2221 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2221 | #include "confdefs.h" |
| 2222 | #include <stdio.h> |
| 2223 | main() |
| 2224 | { |
| 2225 | FILE *f=fopen("conftestval", "w"); |
| 2226 | if (!f) exit(1); |
| 2227 | fprintf(f, "%d\n", sizeof(double)); |
| 2228 | exit(0); |
| 2229 | } |
| 2230 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2231 | if { (eval echo configure:2232: \"$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] | 2232 | then |
| 2233 | ac_cv_sizeof_double=`cat conftestval` |
| 2234 | else |
| 2235 | echo "configure: failed program was:" >&5 |
| 2236 | cat conftest.$ac_ext >&5 |
| 2237 | rm -fr conftest* |
| 2238 | ac_cv_sizeof_double=0 |
| 2239 | fi |
| 2240 | rm -fr conftest* |
| 2241 | fi |
| 2242 | |
| 2243 | fi |
| 2244 | echo "$ac_t""$ac_cv_sizeof_double" 1>&6 |
| 2245 | cat >> confdefs.h <<EOF |
| 2246 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
| 2247 | EOF |
| 2248 | |
| 2249 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2250 | echo $ac_n "checking size of fpos_t""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2251 | echo "configure:2252: checking size of fpos_t" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 2252 | 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] | 2253 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2254 | else |
| 2255 | if test "$cross_compiling" = yes; then |
| 2256 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2257 | else |
| 2258 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2259 | #line 2260 "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2260 | #include "confdefs.h" |
| 2261 | #include <stdio.h> |
| 2262 | main() |
| 2263 | { |
| 2264 | FILE *f=fopen("conftestval", "w"); |
| 2265 | if (!f) exit(1); |
| 2266 | fprintf(f, "%d\n", sizeof(fpos_t)); |
| 2267 | exit(0); |
| 2268 | } |
| 2269 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2270 | if { (eval echo configure:2271: \"$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] | 2271 | then |
| 2272 | ac_cv_sizeof_fpos_t=`cat conftestval` |
| 2273 | else |
| 2274 | echo "configure: failed program was:" >&5 |
| 2275 | cat conftest.$ac_ext >&5 |
| 2276 | rm -fr conftest* |
| 2277 | ac_cv_sizeof_fpos_t=0 |
| 2278 | fi |
| 2279 | rm -fr conftest* |
| 2280 | fi |
| 2281 | |
| 2282 | fi |
| 2283 | echo "$ac_t""$ac_cv_sizeof_fpos_t" 1>&6 |
| 2284 | cat >> confdefs.h <<EOF |
| 2285 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
| 2286 | EOF |
| 2287 | |
| 2288 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2289 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2290 | echo $ac_n "checking for long long support""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2291 | echo "configure:2292: checking for long long support" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2292 | have_long_long=no |
| 2293 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2294 | #line 2295 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2295 | #include "confdefs.h" |
| 2296 | |
| 2297 | int main() { |
| 2298 | long long x; x = (long long)0; |
| 2299 | ; return 0; } |
| 2300 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2301 | if { (eval echo configure:2302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2302 | rm -rf conftest* |
| 2303 | cat >> confdefs.h <<\EOF |
| 2304 | #define HAVE_LONG_LONG 1 |
| 2305 | EOF |
| 2306 | have_long_long=yes |
| 2307 | else |
| 2308 | echo "configure: failed program was:" >&5 |
| 2309 | cat conftest.$ac_ext >&5 |
| 2310 | fi |
| 2311 | rm -f conftest* |
| 2312 | echo "$ac_t""$have_long_long" 1>&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2313 | if test "$have_long_long" = yes ; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2314 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2315 | echo "configure:2316: checking size of long long" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 2316 | 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] | 2317 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2318 | else |
| 2319 | if test "$cross_compiling" = yes; then |
| 2320 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2321 | else |
| 2322 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2323 | #line 2324 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2324 | #include "confdefs.h" |
| 2325 | #include <stdio.h> |
| 2326 | main() |
| 2327 | { |
| 2328 | FILE *f=fopen("conftestval", "w"); |
| 2329 | if (!f) exit(1); |
| 2330 | fprintf(f, "%d\n", sizeof(long long)); |
| 2331 | exit(0); |
| 2332 | } |
| 2333 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2334 | if { (eval echo configure:2335: \"$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] | 2335 | then |
| 2336 | ac_cv_sizeof_long_long=`cat conftestval` |
| 2337 | else |
| 2338 | echo "configure: failed program was:" >&5 |
| 2339 | cat conftest.$ac_ext >&5 |
| 2340 | rm -fr conftest* |
| 2341 | ac_cv_sizeof_long_long=0 |
| 2342 | fi |
| 2343 | rm -fr conftest* |
| 2344 | fi |
| 2345 | |
| 2346 | fi |
| 2347 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
| 2348 | cat >> confdefs.h <<EOF |
| 2349 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 2350 | EOF |
| 2351 | |
| 2352 | |
| 2353 | fi |
| 2354 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2355 | echo $ac_n "checking for uintptr_t support""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2356 | echo "configure:2357: checking for uintptr_t support" >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2357 | have_uintptr_t=no |
| 2358 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2359 | #line 2360 "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2360 | #include "confdefs.h" |
| 2361 | |
| 2362 | int main() { |
| 2363 | uintptr_t x; x = (uintptr_t)0; |
| 2364 | ; return 0; } |
| 2365 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2366 | if { (eval echo configure:2367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2367 | rm -rf conftest* |
| 2368 | cat >> confdefs.h <<\EOF |
| 2369 | #define HAVE_UINTPTR_T 1 |
| 2370 | EOF |
| 2371 | have_uintptr_t=yes |
| 2372 | else |
| 2373 | echo "configure: failed program was:" >&5 |
| 2374 | cat conftest.$ac_ext >&5 |
| 2375 | fi |
| 2376 | rm -f conftest* |
| 2377 | echo "$ac_t""$have_uintptr_t" 1>&6 |
| 2378 | if test "$have_uintptr_t" = yes ; then |
| 2379 | echo $ac_n "checking size of uintptr_t""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2380 | echo "configure:2381: checking size of uintptr_t" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 2381 | if eval "test \"`echo '$''{'ac_cv_sizeof_uintptr_t'+set}'`\" = set"; then |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2382 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2383 | else |
| 2384 | if test "$cross_compiling" = yes; then |
| 2385 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2386 | else |
| 2387 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2388 | #line 2389 "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2389 | #include "confdefs.h" |
| 2390 | #include <stdio.h> |
| 2391 | main() |
| 2392 | { |
| 2393 | FILE *f=fopen("conftestval", "w"); |
| 2394 | if (!f) exit(1); |
| 2395 | fprintf(f, "%d\n", sizeof(uintptr_t)); |
| 2396 | exit(0); |
| 2397 | } |
| 2398 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2399 | if { (eval echo configure:2400: \"$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] | 2400 | then |
| 2401 | ac_cv_sizeof_uintptr_t=`cat conftestval` |
| 2402 | else |
| 2403 | echo "configure: failed program was:" >&5 |
| 2404 | cat conftest.$ac_ext >&5 |
| 2405 | rm -fr conftest* |
| 2406 | ac_cv_sizeof_uintptr_t=0 |
| 2407 | fi |
| 2408 | rm -fr conftest* |
| 2409 | fi |
| 2410 | |
| 2411 | fi |
| 2412 | echo "$ac_t""$ac_cv_sizeof_uintptr_t" 1>&6 |
| 2413 | cat >> confdefs.h <<EOF |
| 2414 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
| 2415 | EOF |
| 2416 | |
| 2417 | |
| 2418 | fi |
| 2419 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2420 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
| 2421 | echo $ac_n "checking size of off_t""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2422 | echo "configure:2423: checking size of off_t" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 2423 | 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] | 2424 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2425 | else |
| 2426 | if test "$cross_compiling" = yes; then |
| 2427 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2428 | else |
| 2429 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2430 | #line 2431 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2431 | #include "confdefs.h" |
| 2432 | #include <stdio.h> |
| 2433 | #include <sys/types.h> |
| 2434 | main() |
| 2435 | { |
| 2436 | FILE *f=fopen("conftestval", "w"); |
| 2437 | if (!f) exit(1); |
| 2438 | fprintf(f, "%d\n", sizeof(off_t)); |
| 2439 | exit(0); |
| 2440 | } |
| 2441 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2442 | if { (eval echo configure:2443: \"$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] | 2443 | then |
| 2444 | ac_cv_sizeof_off_t=`cat conftestval` |
| 2445 | else |
| 2446 | echo "configure: failed program was:" >&5 |
| 2447 | cat conftest.$ac_ext >&5 |
| 2448 | rm -fr conftest* |
| 2449 | ac_cv_sizeof_off_t=0 |
| 2450 | fi |
| 2451 | rm -fr conftest* |
| 2452 | fi |
| 2453 | |
| 2454 | |
| 2455 | fi |
| 2456 | |
| 2457 | echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6 |
| 2458 | cat >> confdefs.h <<EOF |
| 2459 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 2460 | EOF |
| 2461 | |
| 2462 | |
| 2463 | echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2464 | echo "configure:2465: checking whether to enable large file support" >&5 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2465 | if test "$have_long_long" = yes -a \ |
| 2466 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 2467 | "$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] | 2468 | cat >> confdefs.h <<\EOF |
| 2469 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 2470 | EOF |
| 2471 | |
| 2472 | echo "$ac_t""yes" 1>&6 |
| 2473 | else |
| 2474 | echo "$ac_t""no" 1>&6 |
| 2475 | fi |
| 2476 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2477 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
| 2478 | echo $ac_n "checking size of time_t""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2479 | echo "configure:2480: checking size of time_t" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 2480 | 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] | 2481 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2482 | else |
| 2483 | if test "$cross_compiling" = yes; then |
| 2484 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2485 | else |
| 2486 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2487 | #line 2488 "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2488 | #include "confdefs.h" |
| 2489 | #include <stdio.h> |
| 2490 | #include <time.h> |
| 2491 | main() |
| 2492 | { |
| 2493 | FILE *f=fopen("conftestval", "w"); |
| 2494 | if (!f) exit(1); |
| 2495 | fprintf(f, "%d\n", sizeof(time_t)); |
| 2496 | exit(0); |
| 2497 | } |
| 2498 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2499 | if { (eval echo configure:2500: \"$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] | 2500 | then |
| 2501 | ac_cv_sizeof_time_t=`cat conftestval` |
| 2502 | else |
| 2503 | echo "configure: failed program was:" >&5 |
| 2504 | cat conftest.$ac_ext >&5 |
| 2505 | rm -fr conftest* |
| 2506 | ac_cv_sizeof_time_t=0 |
| 2507 | fi |
| 2508 | rm -fr conftest* |
| 2509 | fi |
| 2510 | |
| 2511 | |
| 2512 | fi |
| 2513 | |
| 2514 | echo "$ac_t""$ac_cv_sizeof_time_t" 1>&6 |
| 2515 | cat >> confdefs.h <<EOF |
| 2516 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
| 2517 | EOF |
| 2518 | |
| 2519 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2520 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2521 | # if have pthread_t then define SIZEOF_PTHREAD_T |
| 2522 | echo $ac_n "checking for pthread_t""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2523 | echo "configure:2524: checking for pthread_t" >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2524 | have_pthread_t=no |
| 2525 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2526 | #line 2527 "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2527 | #include "confdefs.h" |
| 2528 | #include <pthread.h> |
| 2529 | int main() { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 2530 | pthread_t x; x = *(pthread_t*)0; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2531 | ; return 0; } |
| 2532 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2533 | if { (eval echo configure:2534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2534 | rm -rf conftest* |
| 2535 | have_pthread_t=yes |
| 2536 | else |
| 2537 | echo "configure: failed program was:" >&5 |
| 2538 | cat conftest.$ac_ext >&5 |
| 2539 | fi |
| 2540 | rm -f conftest* |
| 2541 | echo "$ac_t""$have_pthread_t" 1>&6 |
| 2542 | if test "$have_pthread_t" = yes ; then |
| 2543 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
| 2544 | echo $ac_n "checking size of pthread_t""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2545 | echo "configure:2546: checking size of pthread_t" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 2546 | if eval "test \"`echo '$''{'ac_cv_sizeof_pthread_t'+set}'`\" = set"; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2547 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2548 | else |
| 2549 | if test "$cross_compiling" = yes; then |
| 2550 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2551 | else |
| 2552 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2553 | #line 2554 "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2554 | #include "confdefs.h" |
| 2555 | #include <stdio.h> |
| 2556 | #include <pthread.h> |
| 2557 | main() |
| 2558 | { |
| 2559 | FILE *f=fopen("conftestval", "w"); |
| 2560 | if (!f) exit(1); |
| 2561 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 2562 | exit(0); |
| 2563 | } |
| 2564 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2565 | if { (eval echo configure:2566: \"$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] | 2566 | then |
| 2567 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 2568 | else |
| 2569 | echo "configure: failed program was:" >&5 |
| 2570 | cat conftest.$ac_ext >&5 |
| 2571 | rm -fr conftest* |
| 2572 | ac_cv_sizeof_pthread_t=0 |
| 2573 | fi |
| 2574 | rm -fr conftest* |
| 2575 | fi |
| 2576 | |
| 2577 | |
| 2578 | fi |
| 2579 | |
| 2580 | echo "$ac_t""$ac_cv_sizeof_pthread_t" 1>&6 |
| 2581 | cat >> confdefs.h <<EOF |
| 2582 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
| 2583 | EOF |
| 2584 | |
| 2585 | fi |
| 2586 | |
| 2587 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2588 | # Minor variations in building a framework between NextStep versions 4 and 5 |
| 2589 | |
| 2590 | case $ac_sys_system/$ac_sys_release in |
| 2591 | next/4*) |
| 2592 | ns_undef_sym='__environ' |
| 2593 | LIBTOOL_CRUFT="-U $ns_undef_sym" ;; |
| 2594 | next/5*) |
| 2595 | ns_undef_sym='_environ' |
| 2596 | LIBTOOL_CRUFT="-lcc_dynamic -U $ns_undef_sym" ;; |
| 2597 | esac |
| 2598 | |
| 2599 | echo $ac_n "checking for --with-next-framework""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2600 | echo "configure:2601: checking for --with-next-framework" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2601 | if test "$with_next_framework" |
| 2602 | then |
| 2603 | OPT="$OPT -fno-common" |
| 2604 | # -U __environ is needed since bundles don't have access |
| 2605 | # to crt0 when built but will always be linked against it |
| 2606 | LDFLAGS="$LDFLAGS -Wl,-U,$ns_undef_sym" |
| 2607 | cat >> confdefs.h <<\EOF |
| 2608 | #define WITH_NEXT_FRAMEWORK 1 |
| 2609 | EOF |
| 2610 | |
| 2611 | echo "$ac_t""yes" 1>&6 |
| 2612 | else |
| 2613 | echo "$ac_t""no" 1>&6 |
| 2614 | fi |
| 2615 | |
| 2616 | echo $ac_n "checking for --with-dyld""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2617 | echo "configure:2618: checking for --with-dyld" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2618 | if test "$with_next_framework" -o "$with_dyld" |
| 2619 | then |
| 2620 | if test "$with_dyld" |
| 2621 | then |
| 2622 | echo "$ac_t""yes" 1>&6 |
| 2623 | else |
| 2624 | echo "$ac_t""required for framework build" 1>&6 |
| 2625 | fi |
| 2626 | cat >> confdefs.h <<\EOF |
| 2627 | #define WITH_DYLD 1 |
| 2628 | EOF |
| 2629 | |
| 2630 | ns_dyld='set' |
| 2631 | else |
| 2632 | echo "$ac_t""no" 1>&6 |
| 2633 | fi |
| 2634 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2635 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2636 | |
| 2637 | |
| 2638 | |
| 2639 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2640 | # SO is the extension of shared libraries `(including the dot!) |
| 2641 | # -- usually .so, .sl on HP-UX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2642 | echo $ac_n "checking SO""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2643 | echo "configure:2644: checking SO" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2644 | if test -z "$SO" |
| 2645 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2646 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2647 | hp*|HP*) SO=.sl;; |
| 2648 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2649 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2650 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2651 | echo "$ac_t""$SO" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2652 | # LDSHARED is the ld *command* used to create shared library |
| 2653 | # -- "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] | 2654 | # (Shared libraries in this instance are shared modules to be loaded into |
| 2655 | # Python, as opposed to building Python itself as a shared library.) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2656 | echo $ac_n "checking LDSHARED""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2657 | echo "configure:2658: checking LDSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2658 | if test -z "$LDSHARED" |
| 2659 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2660 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 45140f9 | 1997-08-29 18:44:06 +0000 | [diff] [blame] | 2661 | AIX*) LDSHARED="\$(srcdir)/ld_so_aix \$(CC)";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2662 | BeOS*) LDSHARED="\$(srcdir)/../BeOS/linkmodule -L.. -lpython\$(VERSION)";; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2663 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2664 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2665 | SunOS/4*) LDSHARED="ld";; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 2666 | SunOS/5*) |
| 2667 | if test "$GCC" = "yes" |
| 2668 | then LDSHARED='$(CC) -G' |
| 2669 | else LDSHARED="ld -G"; |
| 2670 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2671 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2672 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 2673 | DYNIX/ptx*) LDSHARED="ld -G";; |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2674 | Darwin/*|next/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2675 | if test "$ns_dyld" |
| 2676 | then LDSHARED='$(CC) $(LDFLAGS) -bundle -prebind' |
| 2677 | else LDSHARED='$(CC) $(CFLAGS) -nostdlib -r'; |
| 2678 | fi |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2679 | if test "$with_next_framework" ; then |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2680 | LDSHARED="$LDSHARED \$(LDLIBRARY)" |
| 2681 | fi ;; |
Guido van Rossum | 81652ab | 1996-07-21 02:53:27 +0000 | [diff] [blame] | 2682 | Linux*) LDSHARED="gcc -shared";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 2683 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 2684 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2685 | OpenBSD*) LDSHARED="ld -Bshareable";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2686 | NetBSD*) |
| 2687 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 2688 | then |
| 2689 | LDSHARED="cc -shared" |
| 2690 | else |
| 2691 | LDSHARED="ld -Bshareable" |
| 2692 | fi;; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2693 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 2694 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2695 | then |
| 2696 | LDSHARED="cc -shared ${LDFLAGS}" |
| 2697 | else |
| 2698 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 2699 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2700 | SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2701 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2702 | *) LDSHARED="ld";; |
| 2703 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2704 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2705 | echo "$ac_t""$LDSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2706 | # 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] | 2707 | # library (module) -- this is only needed for a few systems |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2708 | echo $ac_n "checking CCSHARED""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2709 | echo "configure:2710: checking CCSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2710 | if test -z "$CCSHARED" |
| 2711 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2712 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 2713 | hp*|HP*) if test "$GCC" = yes; |
| 2714 | then CCSHARED="-fpic"; |
| 2715 | else CCSHARED="+z"; |
| 2716 | fi;; |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2717 | Linux*) CCSHARED="-fpic";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 2718 | BSD/OS*/4*) CCSHARED="-fpic";; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2719 | OpenBSD*) CCSHARED="-fpic";; |
| 2720 | FreeBSD*|NetBSD*) CCSHARED="-fPIC";; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2721 | SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2722 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2723 | IRIX*/6*) case $CC in |
| 2724 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 2725 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2726 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2727 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2728 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2729 | echo "$ac_t""$CCSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2730 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2731 | # the python executable -- this is only needed for a few systems |
| 2732 | echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2733 | echo "configure:2734: checking LINKFORSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2734 | if test -z "$LINKFORSHARED" |
| 2735 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2736 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 69f6580 | 1998-03-03 21:47:00 +0000 | [diff] [blame] | 2737 | AIX*) LINKFORSHARED='-Wl,-bE:python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2738 | hp*|HP*) |
Guido van Rossum | 304dd2d | 1997-10-20 23:10:56 +0000 | [diff] [blame] | 2739 | LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 2740 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 2d9feed | 1997-11-24 17:36:21 +0000 | [diff] [blame] | 2741 | Linux*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2742 | # -u libsys_s pulls in all symbols in libsys |
| 2743 | next/2*|next/3*) LINKFORSHARED="-u libsys_s";; |
| 2744 | # -u __dummy makes the linker aware of the objc runtime |
| 2745 | # in System.framework; otherwise, __objcInit (referenced in |
| 2746 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 2747 | # loading of any modules which reference it in System.framework |
| 2748 | next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2749 | SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 2750 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2751 | FreeBSD*|NetBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2752 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 2753 | then |
| 2754 | LINKFORSHARED="-Wl,--export-dynamic" |
| 2755 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2756 | SunOS/5*) case $CC in |
| 2757 | *gcc*) |
Guido van Rossum | ff48418 | 2000-02-03 13:50:24 +0000 | [diff] [blame] | 2758 | if $CC -Xlinker -V 2>&1 | grep BFD >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 2759 | then |
| 2760 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2761 | fi;; |
| 2762 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2763 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2764 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2765 | echo "$ac_t""$LINKFORSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2766 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2767 | # checks for libraries |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2768 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2769 | echo "configure:2770: checking for dlopen in -ldl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2770 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 2771 | 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] | 2772 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2773 | else |
| 2774 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2775 | LIBS="-ldl $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2776 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2777 | #line 2778 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2778 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2779 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2780 | /* We use char because int might match the return type of a gcc2 |
| 2781 | builtin and then its argument prototype would still apply. */ |
| 2782 | char dlopen(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2783 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2784 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2785 | dlopen() |
| 2786 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2787 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2788 | if { (eval echo configure:2789: \"$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] | 2789 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2790 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2791 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2792 | echo "configure: failed program was:" >&5 |
| 2793 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2794 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2795 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2796 | fi |
| 2797 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2798 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2799 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2800 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2801 | 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] | 2802 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2803 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2804 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2805 | cat >> confdefs.h <<EOF |
| 2806 | #define $ac_tr_lib 1 |
| 2807 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2808 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2809 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2810 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2811 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2812 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2813 | fi |
| 2814 | # Dynamic linking for SunOS/Solaris and SYSV |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2815 | echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2816 | echo "configure:2817: checking for shl_load in -ldld" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2817 | ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 2818 | 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] | 2819 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2820 | else |
| 2821 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2822 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2823 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2824 | #line 2825 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2825 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2826 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2827 | /* We use char because int might match the return type of a gcc2 |
| 2828 | builtin and then its argument prototype would still apply. */ |
| 2829 | char shl_load(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2830 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2831 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2832 | shl_load() |
| 2833 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2834 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2835 | if { (eval echo configure:2836: \"$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] | 2836 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2837 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2838 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2839 | echo "configure: failed program was:" >&5 |
| 2840 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2841 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2842 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2843 | fi |
| 2844 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2845 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2846 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2847 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2848 | 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] | 2849 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2850 | ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2851 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2852 | cat >> confdefs.h <<EOF |
| 2853 | #define $ac_tr_lib 1 |
| 2854 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2855 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2856 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2857 | |
| 2858 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2859 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2860 | fi |
| 2861 | # Dynamic linking for HP-UX |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2862 | |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2863 | # Check for --with-pydebug |
| 2864 | echo $ac_n "checking for --with-pydebug""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2865 | echo "configure:2866: checking for --with-pydebug" >&5 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2866 | # Check whether --with-pydebug or --without-pydebug was given. |
| 2867 | if test "${with_pydebug+set}" = set; then |
| 2868 | withval="$with_pydebug" |
| 2869 | |
| 2870 | if test "$withval" != no |
| 2871 | then cat >> confdefs.h <<\EOF |
| 2872 | #define Py_DEBUG 1 |
| 2873 | EOF |
| 2874 | echo "$ac_t""yes" 1>&6 |
| 2875 | else echo "$ac_t""no" 1>&6 |
| 2876 | fi |
| 2877 | else |
| 2878 | echo "$ac_t""no" 1>&6 |
| 2879 | fi |
| 2880 | |
| 2881 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2882 | # checks for system dependent C++ extensions support |
| 2883 | case "$ac_sys_system" in |
| 2884 | AIX*) echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2885 | echo "configure:2886: checking for genuine AIX C++ extensions support" >&5 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2886 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2887 | #line 2888 "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2888 | #include "confdefs.h" |
| 2889 | #include "/usr/lpp/xlC/include/load.h" |
| 2890 | int main() { |
| 2891 | loadAndInit("", 0, "") |
| 2892 | ; return 0; } |
| 2893 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2894 | if { (eval echo configure:2895: \"$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] | 2895 | rm -rf conftest* |
| 2896 | cat >> confdefs.h <<\EOF |
| 2897 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 2898 | EOF |
| 2899 | |
| 2900 | echo "$ac_t""yes" 1>&6 |
| 2901 | else |
| 2902 | echo "configure: failed program was:" >&5 |
| 2903 | cat conftest.$ac_ext >&5 |
| 2904 | rm -rf conftest* |
| 2905 | echo "$ac_t""no" 1>&6 |
| 2906 | fi |
| 2907 | rm -f conftest*;; |
| 2908 | *) ;; |
| 2909 | esac |
| 2910 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 2911 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| 2912 | # However on SGI IRIX, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2913 | # BeOS' sockets are stashed in libnet. |
| 2914 | case "$ac_sys_system" in |
| 2915 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 2916 | *) |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2917 | echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2918 | echo "configure:2919: checking for t_open in -lnsl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2919 | ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'` |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 2920 | 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] | 2921 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2922 | else |
| 2923 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2924 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2925 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2926 | #line 2927 "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2927 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2928 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2929 | /* We use char because int might match the return type of a gcc2 |
| 2930 | builtin and then its argument prototype would still apply. */ |
| 2931 | char t_open(); |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2932 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2933 | int main() { |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 2934 | t_open() |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2935 | ; return 0; } |
| 2936 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2937 | if { (eval echo configure:2938: \"$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] | 2938 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2939 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2940 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2941 | echo "configure: failed program was:" >&5 |
| 2942 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2943 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2944 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2945 | fi |
| 2946 | rm -f conftest* |
| 2947 | LIBS="$ac_save_LIBS" |
| 2948 | |
| 2949 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2950 | 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] | 2951 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2952 | LIBS="-lnsl $LIBS" |
| 2953 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2954 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2955 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 2956 | # SVR4 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2957 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2958 | echo "configure:2959: checking for socket in -lsocket" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2959 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 2960 | 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] | 2961 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2962 | else |
| 2963 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2964 | LIBS="-lsocket $LIBS $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2965 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2966 | #line 2967 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2967 | #include "confdefs.h" |
| 2968 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2969 | /* We use char because int might match the return type of a gcc2 |
| 2970 | builtin and then its argument prototype would still apply. */ |
| 2971 | char socket(); |
| 2972 | |
| 2973 | int main() { |
| 2974 | socket() |
| 2975 | ; return 0; } |
| 2976 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 2977 | if { (eval echo configure:2978: \"$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] | 2978 | rm -rf conftest* |
| 2979 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2980 | else |
| 2981 | echo "configure: failed program was:" >&5 |
| 2982 | cat conftest.$ac_ext >&5 |
| 2983 | rm -rf conftest* |
| 2984 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2985 | fi |
| 2986 | rm -f conftest* |
| 2987 | LIBS="$ac_save_LIBS" |
| 2988 | |
| 2989 | fi |
| 2990 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2991 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2992 | LIBS="-lsocket $LIBS" |
| 2993 | else |
| 2994 | echo "$ac_t""no" 1>&6 |
| 2995 | fi |
| 2996 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 2997 | ;; |
| 2998 | esac |
| 2999 | case "$ac_sys_system" in |
| 3000 | BeOS*) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3001 | echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3002 | echo "configure:3003: checking for socket in -lnet" >&5 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3003 | ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'` |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 3004 | 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] | 3005 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3006 | else |
| 3007 | ac_save_LIBS="$LIBS" |
| 3008 | LIBS="-lnet $LIBS $LIBS" |
| 3009 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3010 | #line 3011 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3011 | #include "confdefs.h" |
| 3012 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3013 | /* We use char because int might match the return type of a gcc2 |
| 3014 | builtin and then its argument prototype would still apply. */ |
| 3015 | char socket(); |
| 3016 | |
| 3017 | int main() { |
| 3018 | socket() |
| 3019 | ; return 0; } |
| 3020 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3021 | if { (eval echo configure:3022: \"$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] | 3022 | rm -rf conftest* |
| 3023 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3024 | else |
| 3025 | echo "configure: failed program was:" >&5 |
| 3026 | cat conftest.$ac_ext >&5 |
| 3027 | rm -rf conftest* |
| 3028 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3029 | fi |
| 3030 | rm -f conftest* |
| 3031 | LIBS="$ac_save_LIBS" |
| 3032 | |
| 3033 | fi |
| 3034 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3035 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3036 | LIBS="-lnet $LIBS" |
| 3037 | else |
| 3038 | echo "$ac_t""no" 1>&6 |
| 3039 | fi |
| 3040 | # BeOS |
| 3041 | ;; |
| 3042 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 3043 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3044 | echo $ac_n "checking for --with-libs""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3045 | echo "configure:3046: checking for --with-libs" >&5 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3046 | # Check whether --with-libs or --without-libs was given. |
| 3047 | if test "${with_libs+set}" = set; then |
| 3048 | withval="$with_libs" |
| 3049 | |
| 3050 | echo "$ac_t""$withval" 1>&6 |
| 3051 | LIBS="$withval $LIBS" |
| 3052 | |
| 3053 | else |
| 3054 | echo "$ac_t""no" 1>&6 |
| 3055 | fi |
| 3056 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3057 | |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 3058 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3059 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 3060 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3061 | echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3062 | echo "configure:3063: checking for --with-dec-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3063 | |
| 3064 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 3065 | if test "${with_dec_threads+set}" = set; then |
| 3066 | withval="$with_dec_threads" |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3067 | |
| 3068 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3069 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3070 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3071 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3072 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3073 | else |
| 3074 | echo "$ac_t""no" 1>&6 |
| 3075 | fi |
| 3076 | |
| 3077 | |
| 3078 | echo $ac_n "checking for --with-threads""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3079 | echo "configure:3080: checking for --with-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3080 | # Check whether --with-threads or --without-threads was given. |
| 3081 | if test "${with_threads+set}" = set; then |
| 3082 | withval="$with_threads" |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3083 | : |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3084 | fi |
| 3085 | |
| 3086 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3087 | # --with-thread is deprecated, but check for it anyway |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3088 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3089 | if test "${with_thread+set}" = set; then |
| 3090 | withval="$with_thread" |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3091 | |
| 3092 | with_threads=$with_thread |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3093 | fi |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3094 | |
| 3095 | |
| 3096 | if test -z "$with_threads" |
| 3097 | then with_threads="yes" |
| 3098 | fi |
| 3099 | echo "$ac_t""$with_threads" 1>&6 |
| 3100 | |
| 3101 | if test "$with_threads" = "no" |
| 3102 | then |
| 3103 | USE_THREAD_MODULE="#" |
| 3104 | else |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame^] | 3105 | if test ! -z $with_threads -a -d $with_threads |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3106 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 3107 | fi |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame^] | 3108 | if test ! -z $withval -a -d $withval |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3109 | then LDFLAGS="$LDFLAGS -L$withval" |
| 3110 | fi |
| 3111 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 3112 | #define _REENTRANT 1 |
| 3113 | EOF |
| 3114 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3115 | ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3116 | echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3117 | echo "configure:3118: checking for mach/cthreads.h" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 3118 | 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] | 3119 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3120 | else |
| 3121 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3122 | #line 3123 "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3123 | #include "confdefs.h" |
| 3124 | #include <mach/cthreads.h> |
| 3125 | EOF |
| 3126 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3127 | { (eval echo configure:3128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3128 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3129 | if test -z "$ac_err"; then |
| 3130 | rm -rf conftest* |
| 3131 | eval "ac_cv_header_$ac_safe=yes" |
| 3132 | else |
| 3133 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3134 | echo "configure: failed program was:" >&5 |
| 3135 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3136 | rm -rf conftest* |
| 3137 | eval "ac_cv_header_$ac_safe=no" |
| 3138 | fi |
| 3139 | rm -f conftest* |
| 3140 | fi |
| 3141 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3142 | echo "$ac_t""yes" 1>&6 |
| 3143 | cat >> confdefs.h <<\EOF |
| 3144 | #define WITH_THREAD 1 |
| 3145 | EOF |
| 3146 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3147 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3148 | #define C_THREADS 1 |
| 3149 | EOF |
| 3150 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3151 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3152 | else |
| 3153 | echo "$ac_t""no" 1>&6 |
| 3154 | |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3155 | echo $ac_n "checking for --with-pth""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3156 | echo "configure:3157: checking for --with-pth" >&5 |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3157 | # Check whether --with-pth or --without-pth was given. |
| 3158 | if test "${with_pth+set}" = set; then |
| 3159 | withval="$with_pth" |
| 3160 | |
| 3161 | echo "$ac_t""$withval" 1>&6 |
| 3162 | cat >> confdefs.h <<\EOF |
| 3163 | #define WITH_THREAD 1 |
| 3164 | EOF |
| 3165 | |
| 3166 | cat >> confdefs.h <<\EOF |
| 3167 | #define HAVE_PTH 1 |
| 3168 | EOF |
| 3169 | |
| 3170 | LIBS="-lpth $LIBS" |
| 3171 | LIBOBJS="$LIBOBJS thread.o" |
| 3172 | else |
| 3173 | |
| 3174 | echo "$ac_t""no" 1>&6 |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3175 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3176 | echo "configure:3177: checking for pthread_create in -lpthread" >&5 |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3177 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 3178 | 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] | 3179 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3180 | else |
| 3181 | ac_save_LIBS="$LIBS" |
| 3182 | LIBS="-lpthread $LIBS" |
| 3183 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3184 | #line 3185 "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3185 | #include "confdefs.h" |
| 3186 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3187 | /* We use char because int might match the return type of a gcc2 |
| 3188 | builtin and then its argument prototype would still apply. */ |
| 3189 | char pthread_create(); |
| 3190 | |
| 3191 | int main() { |
| 3192 | pthread_create() |
| 3193 | ; return 0; } |
| 3194 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3195 | if { (eval echo configure:3196: \"$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] | 3196 | rm -rf conftest* |
| 3197 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3198 | else |
| 3199 | echo "configure: failed program was:" >&5 |
| 3200 | cat conftest.$ac_ext >&5 |
| 3201 | rm -rf conftest* |
| 3202 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3203 | fi |
| 3204 | rm -f conftest* |
| 3205 | LIBS="$ac_save_LIBS" |
| 3206 | |
| 3207 | fi |
| 3208 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3209 | echo "$ac_t""yes" 1>&6 |
| 3210 | cat >> confdefs.h <<\EOF |
| 3211 | #define WITH_THREAD 1 |
| 3212 | EOF |
| 3213 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3214 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3215 | #define _POSIX_THREADS 1 |
| 3216 | EOF |
| 3217 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3218 | LIBS="-lpthread $LIBS" |
| 3219 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3220 | else |
| 3221 | echo "$ac_t""no" 1>&6 |
| 3222 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3223 | echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3224 | echo "configure:3225: checking for pthread_detach" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 3225 | 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] | 3226 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3227 | else |
| 3228 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3229 | #line 3230 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3230 | #include "confdefs.h" |
| 3231 | /* System header to define __stub macros and hopefully few prototypes, |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3232 | which can conflict with char pthread_detach(); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3233 | #include <assert.h> |
| 3234 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3235 | /* We use char because int might match the return type of a gcc2 |
| 3236 | builtin and then its argument prototype would still apply. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3237 | char pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3238 | |
| 3239 | int main() { |
| 3240 | |
| 3241 | /* The GNU C library defines this for functions which it implements |
| 3242 | to always fail with ENOSYS. Some functions are actually named |
| 3243 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3244 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3245 | choke me |
| 3246 | #else |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 3247 | pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3248 | #endif |
| 3249 | |
| 3250 | ; return 0; } |
| 3251 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3252 | if { (eval echo configure:3253: \"$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] | 3253 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3254 | eval "ac_cv_func_pthread_detach=yes" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3255 | else |
| 3256 | echo "configure: failed program was:" >&5 |
| 3257 | cat conftest.$ac_ext >&5 |
| 3258 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3259 | eval "ac_cv_func_pthread_detach=no" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3260 | fi |
| 3261 | rm -f conftest* |
| 3262 | fi |
| 3263 | |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3264 | if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3265 | echo "$ac_t""yes" 1>&6 |
| 3266 | cat >> confdefs.h <<\EOF |
| 3267 | #define WITH_THREAD 1 |
| 3268 | EOF |
| 3269 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3270 | cat >> confdefs.h <<\EOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3271 | #define _POSIX_THREADS 1 |
| 3272 | EOF |
| 3273 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3274 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3275 | else |
| 3276 | echo "$ac_t""no" 1>&6 |
| 3277 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3278 | ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3279 | echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3280 | echo "configure:3281: checking for kernel/OS.h" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 3281 | 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] | 3282 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3283 | else |
| 3284 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3285 | #line 3286 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3286 | #include "confdefs.h" |
| 3287 | #include <kernel/OS.h> |
| 3288 | EOF |
| 3289 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3290 | { (eval echo configure:3291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3291 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3292 | if test -z "$ac_err"; then |
| 3293 | rm -rf conftest* |
| 3294 | eval "ac_cv_header_$ac_safe=yes" |
| 3295 | else |
| 3296 | echo "$ac_err" >&5 |
| 3297 | echo "configure: failed program was:" >&5 |
| 3298 | cat conftest.$ac_ext >&5 |
| 3299 | rm -rf conftest* |
| 3300 | eval "ac_cv_header_$ac_safe=no" |
| 3301 | fi |
| 3302 | rm -f conftest* |
| 3303 | fi |
| 3304 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3305 | echo "$ac_t""yes" 1>&6 |
| 3306 | cat >> confdefs.h <<\EOF |
| 3307 | #define WITH_THREAD 1 |
| 3308 | EOF |
| 3309 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3310 | cat >> confdefs.h <<\EOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3311 | #define BEOS_THREADS 1 |
| 3312 | EOF |
| 3313 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3314 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3315 | else |
| 3316 | echo "$ac_t""no" 1>&6 |
| 3317 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3318 | echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3319 | echo "configure:3320: checking for pthread_create in -lpthreads" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3320 | ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 3321 | 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] | 3322 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3323 | else |
| 3324 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3325 | LIBS="-lpthreads $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3326 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3327 | #line 3328 "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3328 | #include "confdefs.h" |
| 3329 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3330 | /* We use char because int might match the return type of a gcc2 |
| 3331 | builtin and then its argument prototype would still apply. */ |
| 3332 | char pthread_create(); |
| 3333 | |
| 3334 | int main() { |
| 3335 | pthread_create() |
| 3336 | ; return 0; } |
| 3337 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3338 | if { (eval echo configure:3339: \"$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] | 3339 | rm -rf conftest* |
| 3340 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3341 | else |
| 3342 | echo "configure: failed program was:" >&5 |
| 3343 | cat conftest.$ac_ext >&5 |
| 3344 | rm -rf conftest* |
| 3345 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3346 | fi |
| 3347 | rm -f conftest* |
| 3348 | LIBS="$ac_save_LIBS" |
| 3349 | |
| 3350 | fi |
| 3351 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3352 | echo "$ac_t""yes" 1>&6 |
| 3353 | cat >> confdefs.h <<\EOF |
| 3354 | #define WITH_THREAD 1 |
| 3355 | EOF |
| 3356 | |
| 3357 | cat >> confdefs.h <<\EOF |
| 3358 | #define _POSIX_THREADS 1 |
| 3359 | EOF |
| 3360 | |
| 3361 | LIBS="$LIBS -lpthreads" |
| 3362 | LIBOBJS="$LIBOBJS thread.o" |
| 3363 | else |
| 3364 | echo "$ac_t""no" 1>&6 |
| 3365 | |
| 3366 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3367 | echo "configure:3368: checking for pthread_create in -lc_r" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3368 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 3369 | 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] | 3370 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3371 | else |
| 3372 | ac_save_LIBS="$LIBS" |
| 3373 | LIBS="-lc_r $LIBS" |
| 3374 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3375 | #line 3376 "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3376 | #include "confdefs.h" |
| 3377 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3378 | /* We use char because int might match the return type of a gcc2 |
| 3379 | builtin and then its argument prototype would still apply. */ |
| 3380 | char pthread_create(); |
| 3381 | |
| 3382 | int main() { |
| 3383 | pthread_create() |
| 3384 | ; return 0; } |
| 3385 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3386 | if { (eval echo configure:3387: \"$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] | 3387 | rm -rf conftest* |
| 3388 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3389 | else |
| 3390 | echo "configure: failed program was:" >&5 |
| 3391 | cat conftest.$ac_ext >&5 |
| 3392 | rm -rf conftest* |
| 3393 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3394 | fi |
| 3395 | rm -f conftest* |
| 3396 | LIBS="$ac_save_LIBS" |
| 3397 | |
| 3398 | fi |
| 3399 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3400 | echo "$ac_t""yes" 1>&6 |
| 3401 | cat >> confdefs.h <<\EOF |
| 3402 | #define WITH_THREAD 1 |
| 3403 | EOF |
| 3404 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3405 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3406 | #define _POSIX_THREADS 1 |
| 3407 | EOF |
| 3408 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3409 | LIBS="$LIBS -lc_r" |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3410 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3411 | else |
| 3412 | echo "$ac_t""no" 1>&6 |
| 3413 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3414 | echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3415 | echo "configure:3416: checking for __d6_pthread_create in -lthread" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3416 | ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'` |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 3417 | 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] | 3418 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3419 | else |
| 3420 | ac_save_LIBS="$LIBS" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3421 | LIBS="-lthread $LIBS" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3422 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3423 | #line 3424 "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3424 | #include "confdefs.h" |
| 3425 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3426 | /* We use char because int might match the return type of a gcc2 |
| 3427 | builtin and then its argument prototype would still apply. */ |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3428 | char __d6_pthread_create(); |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3429 | |
| 3430 | int main() { |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3431 | __d6_pthread_create() |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3432 | ; return 0; } |
| 3433 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3434 | if { (eval echo configure:3435: \"$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] | 3435 | rm -rf conftest* |
| 3436 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3437 | else |
| 3438 | echo "configure: failed program was:" >&5 |
| 3439 | cat conftest.$ac_ext >&5 |
| 3440 | rm -rf conftest* |
| 3441 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3442 | fi |
| 3443 | rm -f conftest* |
| 3444 | LIBS="$ac_save_LIBS" |
| 3445 | |
| 3446 | fi |
| 3447 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3448 | echo "$ac_t""yes" 1>&6 |
| 3449 | cat >> confdefs.h <<\EOF |
| 3450 | #define WITH_THREAD 1 |
| 3451 | EOF |
| 3452 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3453 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3454 | #define _POSIX_THREADS 1 |
| 3455 | EOF |
| 3456 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3457 | LIBS="$LIBS -lthread" |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3458 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3459 | else |
| 3460 | echo "$ac_t""no" 1>&6 |
| 3461 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3462 | echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3463 | echo "configure:3464: checking for pthread_create in -lcma" >&5 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3464 | ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'` |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 3465 | 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] | 3466 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3467 | else |
| 3468 | ac_save_LIBS="$LIBS" |
| 3469 | LIBS="-lcma $LIBS" |
| 3470 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3471 | #line 3472 "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3472 | #include "confdefs.h" |
| 3473 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3474 | /* We use char because int might match the return type of a gcc2 |
| 3475 | builtin and then its argument prototype would still apply. */ |
| 3476 | char pthread_create(); |
| 3477 | |
| 3478 | int main() { |
| 3479 | pthread_create() |
| 3480 | ; return 0; } |
| 3481 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3482 | if { (eval echo configure:3483: \"$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] | 3483 | rm -rf conftest* |
| 3484 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3485 | else |
| 3486 | echo "configure: failed program was:" >&5 |
| 3487 | cat conftest.$ac_ext >&5 |
| 3488 | rm -rf conftest* |
| 3489 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3490 | fi |
| 3491 | rm -f conftest* |
| 3492 | LIBS="$ac_save_LIBS" |
| 3493 | |
| 3494 | fi |
| 3495 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3496 | echo "$ac_t""yes" 1>&6 |
| 3497 | cat >> confdefs.h <<\EOF |
| 3498 | #define WITH_THREAD 1 |
| 3499 | EOF |
| 3500 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3501 | cat >> confdefs.h <<\EOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3502 | #define _POSIX_THREADS 1 |
| 3503 | EOF |
| 3504 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3505 | LIBS="$LIBS -lcma" |
| 3506 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3507 | else |
| 3508 | echo "$ac_t""no" 1>&6 |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 3509 | |
| 3510 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 3511 | fi |
| 3512 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3513 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3514 | fi |
| 3515 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3516 | fi |
| 3517 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3518 | fi |
| 3519 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3520 | fi |
| 3521 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3522 | fi |
| 3523 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3524 | fi |
| 3525 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3526 | fi |
| 3527 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3528 | fi |
| 3529 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3530 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3531 | echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3532 | echo "configure:3533: checking for usconfig in -lmpc" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3533 | ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'` |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 3534 | 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] | 3535 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3536 | else |
| 3537 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3538 | LIBS="-lmpc $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3539 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3540 | #line 3541 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3541 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3542 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3543 | /* We use char because int might match the return type of a gcc2 |
| 3544 | builtin and then its argument prototype would still apply. */ |
| 3545 | char usconfig(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3546 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3547 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3548 | usconfig() |
| 3549 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3550 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3551 | if { (eval echo configure:3552: \"$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] | 3552 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3553 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3554 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3555 | echo "configure: failed program was:" >&5 |
| 3556 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3557 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3558 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3559 | fi |
| 3560 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3561 | LIBS="$ac_save_LIBS" |
| 3562 | |
| 3563 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3564 | 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] | 3565 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3566 | cat >> confdefs.h <<\EOF |
| 3567 | #define WITH_THREAD 1 |
| 3568 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3569 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3570 | LIBS="$LIBS -lmpc" |
| 3571 | LIBOBJS="$LIBOBJS thread.o" |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 3572 | USE_THREAD_MODULE="" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3573 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3574 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3575 | fi |
| 3576 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3577 | echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3578 | echo "configure:3579: checking for thr_create in -lthread" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3579 | ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'` |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 3580 | 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] | 3581 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3582 | else |
| 3583 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3584 | LIBS="-lthread $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3585 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3586 | #line 3587 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3587 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3588 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3589 | /* We use char because int might match the return type of a gcc2 |
| 3590 | builtin and then its argument prototype would still apply. */ |
| 3591 | char thr_create(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3592 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3593 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3594 | thr_create() |
| 3595 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3596 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3597 | if { (eval echo configure:3598: \"$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] | 3598 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3599 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3600 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3601 | echo "configure: failed program was:" >&5 |
| 3602 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3603 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3604 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3605 | fi |
| 3606 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3607 | LIBS="$ac_save_LIBS" |
| 3608 | |
| 3609 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3610 | 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] | 3611 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3612 | cat >> confdefs.h <<\EOF |
| 3613 | #define WITH_THREAD 1 |
| 3614 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3615 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3616 | LIBS="$LIBS -lthread" |
| 3617 | LIBOBJS="$LIBOBJS thread.o" |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 3618 | USE_THREAD_MODULE="" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3619 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3620 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3621 | fi |
| 3622 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3623 | fi |
| 3624 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3625 | # Check for GC support |
| 3626 | |
| 3627 | USE_GC_MODULE="" |
| 3628 | echo $ac_n "checking for --with-cycle-gc""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3629 | echo "configure:3630: checking for --with-cycle-gc" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3630 | # Check whether --with-cycle-gc or --without-cycle-gc was given. |
| 3631 | if test "${with_cycle_gc+set}" = set; then |
| 3632 | withval="$with_cycle_gc" |
| 3633 | : |
| 3634 | fi |
| 3635 | |
| 3636 | |
| 3637 | if test -z "$with_cycle_gc" |
| 3638 | then with_cycle_gc="yes" |
| 3639 | fi |
| 3640 | if test "$with_cycle_gc" = "no" |
| 3641 | then |
| 3642 | USE_GC_MODULE="#" |
| 3643 | else |
| 3644 | cat >> confdefs.h <<\EOF |
| 3645 | #define WITH_CYCLE_GC 1 |
| 3646 | EOF |
| 3647 | |
| 3648 | fi |
| 3649 | echo "$ac_t""$with_cycle_gc" 1>&6 |
| 3650 | |
Fred Drake | a50d6ec | 2000-08-31 16:13:20 +0000 | [diff] [blame] | 3651 | # Check for LIBDB support |
| 3652 | # either --with-libdb or, in its absence, the presence of db.h |
| 3653 | |
| 3654 | USE_BSDDB_MODULE="" |
| 3655 | echo $ac_n "checking for --with-libdb""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3656 | echo "configure:3657: checking for --with-libdb" >&5 |
Fred Drake | a50d6ec | 2000-08-31 16:13:20 +0000 | [diff] [blame] | 3657 | # Check whether --with-libdb or --without-libdb was given. |
| 3658 | if test "${with_libdb+set}" = set; then |
| 3659 | withval="$with_libdb" |
| 3660 | : |
| 3661 | fi |
| 3662 | |
| 3663 | |
Skip Montanaro | b89f41e | 2000-09-04 04:06:05 +0000 | [diff] [blame] | 3664 | # enabled by default, but db.h must be found |
| 3665 | if test "$ac_cv_header_db_h" = "yes" |
| 3666 | then |
| 3667 | if test "$with_libdb" != "no" |
| 3668 | then with_libdb="yes" |
| 3669 | fi |
| 3670 | else |
| 3671 | # make sure user knows why bsddb support wasn't enabled event |
| 3672 | # though s/he requested it |
| 3673 | if test "$with_libdb" = "yes" |
| 3674 | then echo $ac_n "(requested, but db.h was not found) $ac_c" |
| 3675 | fi |
| 3676 | with_libdb="no" |
Fred Drake | a50d6ec | 2000-08-31 16:13:20 +0000 | [diff] [blame] | 3677 | fi |
Skip Montanaro | b89f41e | 2000-09-04 04:06:05 +0000 | [diff] [blame] | 3678 | |
Fred Drake | a50d6ec | 2000-08-31 16:13:20 +0000 | [diff] [blame] | 3679 | if test "$with_libdb" = "no" |
| 3680 | then |
| 3681 | USE_BSDDB_MODULE="#" |
| 3682 | else |
| 3683 | cat >> confdefs.h <<\EOF |
| 3684 | #define WITH_LIBDB 1 |
| 3685 | EOF |
| 3686 | |
| 3687 | fi |
| 3688 | echo "$ac_t""$with_libdb" 1>&6 |
| 3689 | |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 3690 | if test "$with_libdb" = "yes" |
| 3691 | then |
| 3692 | # check for libdb; BSD systems have the DB routines in libc --tg |
| 3693 | |
Martin v. Löwis | 05a65d6 | 2000-09-24 19:40:25 +0000 | [diff] [blame] | 3694 | # If dbopen is not in libc, then checking whether it is in libdb |
| 3695 | # is difficult: db_185.h may #define it as __db185_open |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 3696 | # Instead, we just trust it is in libdb; linking will fail if it |
| 3697 | # is not. |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 3698 | echo $ac_n "checking for dbopen""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3699 | echo "configure:3700: checking for dbopen" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 3700 | if eval "test \"`echo '$''{'ac_cv_func_dbopen'+set}'`\" = set"; then |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 3701 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3702 | else |
| 3703 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3704 | #line 3705 "configure" |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 3705 | #include "confdefs.h" |
| 3706 | /* System header to define __stub macros and hopefully few prototypes, |
| 3707 | which can conflict with char dbopen(); below. */ |
| 3708 | #include <assert.h> |
| 3709 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3710 | /* We use char because int might match the return type of a gcc2 |
| 3711 | builtin and then its argument prototype would still apply. */ |
| 3712 | char dbopen(); |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 3713 | |
| 3714 | int main() { |
| 3715 | |
| 3716 | /* The GNU C library defines this for functions which it implements |
| 3717 | to always fail with ENOSYS. Some functions are actually named |
| 3718 | something starting with __ and the normal name is an alias. */ |
| 3719 | #if defined (__stub_dbopen) || defined (__stub___dbopen) |
| 3720 | choke me |
| 3721 | #else |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 3722 | dbopen(); |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 3723 | #endif |
| 3724 | |
| 3725 | ; return 0; } |
| 3726 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3727 | if { (eval echo configure:3728: \"$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] | 3728 | rm -rf conftest* |
| 3729 | eval "ac_cv_func_dbopen=yes" |
| 3730 | else |
| 3731 | echo "configure: failed program was:" >&5 |
| 3732 | cat conftest.$ac_ext >&5 |
| 3733 | rm -rf conftest* |
| 3734 | eval "ac_cv_func_dbopen=no" |
| 3735 | fi |
| 3736 | rm -f conftest* |
| 3737 | fi |
| 3738 | |
| 3739 | if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then |
| 3740 | echo "$ac_t""yes" 1>&6 |
| 3741 | HAVE_LIBDB= |
| 3742 | else |
| 3743 | echo "$ac_t""no" 1>&6 |
Martin v. Löwis | 05a65d6 | 2000-09-24 19:40:25 +0000 | [diff] [blame] | 3744 | HAVE_LIBDB=-ldb |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 3745 | fi |
| 3746 | |
| 3747 | fi |
| 3748 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3749 | # Check for --with-wctype-functions |
| 3750 | echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3751 | echo "configure:3752: checking for --with-wctype-functions" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3752 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 3753 | if test "${with_wctype_functions+set}" = set; then |
| 3754 | withval="$with_wctype_functions" |
| 3755 | |
| 3756 | if test "$withval" != no |
| 3757 | then cat >> confdefs.h <<\EOF |
| 3758 | #define WANT_WCTYPE_FUNCTIONS 1 |
| 3759 | EOF |
| 3760 | echo "$ac_t""yes" 1>&6 |
| 3761 | else echo "$ac_t""no" 1>&6 |
| 3762 | fi |
| 3763 | else |
| 3764 | echo "$ac_t""no" 1>&6 |
| 3765 | fi |
| 3766 | |
| 3767 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3768 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3769 | |
| 3770 | DLINCLDIR=/ |
| 3771 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3772 | echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3773 | echo "configure:3774: checking for --with-sgi-dl" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3774 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3775 | if test "${with_sgi_dl+set}" = set; then |
| 3776 | withval="$with_sgi_dl" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3777 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3778 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3779 | cat >> confdefs.h <<\EOF |
| 3780 | #define WITH_SGI_DL 1 |
| 3781 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3782 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3783 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3784 | dldir=$withval |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame^] | 3785 | if test ! -z $dldir -a -d $dldir |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3786 | then LDFLAGS="$LDFLAGS -L$dldir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3787 | 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] | 3788 | fi |
| 3789 | DLINCLDIR=${dldir} |
| 3790 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3791 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3792 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3793 | fi |
| 3794 | |
| 3795 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3796 | echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3797 | echo "configure:3798: checking for --with-dl-dld" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3798 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3799 | if test "${with_dl_dld+set}" = set; then |
| 3800 | withval="$with_dl_dld" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3801 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3802 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3803 | cat >> confdefs.h <<\EOF |
| 3804 | #define WITH_DL_DLD 1 |
| 3805 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3806 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3807 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3808 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 3809 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame^] | 3810 | 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] | 3811 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3812 | 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] | 3813 | fi |
| 3814 | DLINCLDIR=${dldir} |
| 3815 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3816 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3817 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3818 | fi |
| 3819 | |
| 3820 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3821 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 3822 | # 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] | 3823 | for ac_func in dlopen |
| 3824 | do |
| 3825 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3826 | echo "configure:3827: checking for $ac_func" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 3827 | 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] | 3828 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3829 | else |
| 3830 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3831 | #line 3832 "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3832 | #include "confdefs.h" |
| 3833 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3834 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3835 | #include <assert.h> |
| 3836 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3837 | /* We use char because int might match the return type of a gcc2 |
| 3838 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3839 | char $ac_func(); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3840 | |
| 3841 | int main() { |
| 3842 | |
| 3843 | /* The GNU C library defines this for functions which it implements |
| 3844 | to always fail with ENOSYS. Some functions are actually named |
| 3845 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3846 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3847 | choke me |
| 3848 | #else |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 3849 | $ac_func(); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3850 | #endif |
| 3851 | |
| 3852 | ; return 0; } |
| 3853 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3854 | if { (eval echo configure:3855: \"$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] | 3855 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3856 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3857 | else |
| 3858 | echo "configure: failed program was:" >&5 |
| 3859 | cat conftest.$ac_ext >&5 |
| 3860 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3861 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3862 | fi |
| 3863 | rm -f conftest* |
| 3864 | fi |
| 3865 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3866 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3867 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3868 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3869 | cat >> confdefs.h <<EOF |
| 3870 | #define $ac_tr_func 1 |
| 3871 | EOF |
| 3872 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3873 | else |
| 3874 | echo "$ac_t""no" 1>&6 |
| 3875 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3876 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3877 | |
| 3878 | |
| 3879 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 3880 | # loading of modules. |
| 3881 | |
| 3882 | echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3883 | echo "configure:3884: checking DYNLOADFILE" >&5 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3884 | if test -z "$DYNLOADFILE" |
| 3885 | then |
| 3886 | case $ac_sys_system/$ac_sys_release in |
| 3887 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 3888 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 3889 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
| 3890 | next/*) DYNLOADFILE="dynload_next.o";; |
| 3891 | *) |
| 3892 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 3893 | # out any dynamic loading |
| 3894 | if test "$ac_cv_func_dlopen" = yes |
| 3895 | then DYNLOADFILE="dynload_shlib.o" |
| 3896 | else DYNLOADFILE="dynload_stub.o" |
| 3897 | fi |
| 3898 | ;; |
| 3899 | esac |
| 3900 | fi |
| 3901 | echo "$ac_t""$DYNLOADFILE" 1>&6 |
| 3902 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 3903 | then |
| 3904 | cat >> confdefs.h <<\EOF |
| 3905 | #define HAVE_DYNAMIC_LOADING 1 |
| 3906 | EOF |
| 3907 | |
| 3908 | fi |
| 3909 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3910 | # checks for library functions |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3911 | for ac_func in alarm chown clock confstr ctermid ctermid_r execv \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 3912 | flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3913 | getgroups getlogin getpeername getpid getpwent getwd \ |
Andrew M. Kuchling | 22c6934 | 2000-06-18 15:07:40 +0000 | [diff] [blame] | 3914 | kill link lstat mkfifo mktime mremap \ |
Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame] | 3915 | nice pathconf pause plock poll pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 3916 | putenv readlink \ |
Andrew M. Kuchling | 8d2f2b2 | 2000-07-13 01:26:58 +0000 | [diff] [blame] | 3917 | select setegid seteuid setgid \ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3918 | setlocale setregid setreuid setsid setpgid setuid setvbuf \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 3919 | sigaction siginterrupt sigrelse strftime strptime symlink sysconf \ |
Fred Drake | 89143df | 1999-12-09 22:03:25 +0000 | [diff] [blame] | 3920 | tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Thomas Wouters | 70c21a1 | 2000-07-14 14:28:33 +0000 | [diff] [blame] | 3921 | truncate uname waitpid _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3922 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3923 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3924 | echo "configure:3925: checking for $ac_func" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 3925 | 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] | 3926 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3927 | else |
| 3928 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3929 | #line 3930 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3930 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3931 | /* System header to define __stub macros and hopefully few prototypes, |
| 3932 | which can conflict with char $ac_func(); below. */ |
| 3933 | #include <assert.h> |
| 3934 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3935 | /* We use char because int might match the return type of a gcc2 |
| 3936 | builtin and then its argument prototype would still apply. */ |
| 3937 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3938 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3939 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3940 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3941 | /* The GNU C library defines this for functions which it implements |
| 3942 | to always fail with ENOSYS. Some functions are actually named |
| 3943 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3944 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3945 | choke me |
| 3946 | #else |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 3947 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3948 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3949 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3950 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3951 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3952 | if { (eval echo configure:3953: \"$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] | 3953 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3954 | eval "ac_cv_func_$ac_func=yes" |
| 3955 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3956 | echo "configure: failed program was:" >&5 |
| 3957 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3958 | rm -rf conftest* |
| 3959 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3960 | fi |
| 3961 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3962 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3963 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3964 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3965 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3966 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3967 | cat >> confdefs.h <<EOF |
| 3968 | #define $ac_tr_func 1 |
| 3969 | EOF |
| 3970 | |
| 3971 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3972 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3973 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3974 | done |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3975 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 3976 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3977 | # check for openpty and forkpty |
| 3978 | |
| 3979 | for ac_func in openpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3980 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3981 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3982 | echo "configure:3983: checking for $ac_func" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 3983 | 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] | 3984 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3985 | else |
| 3986 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3987 | #line 3988 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3988 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3989 | /* System header to define __stub macros and hopefully few prototypes, |
| 3990 | which can conflict with char $ac_func(); below. */ |
| 3991 | #include <assert.h> |
| 3992 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3993 | /* We use char because int might match the return type of a gcc2 |
| 3994 | builtin and then its argument prototype would still apply. */ |
| 3995 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3996 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3997 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3998 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3999 | /* The GNU C library defines this for functions which it implements |
| 4000 | to always fail with ENOSYS. Some functions are actually named |
| 4001 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4002 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4003 | choke me |
| 4004 | #else |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 4005 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4006 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4007 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4008 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4009 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4010 | if { (eval echo configure:4011: \"$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] | 4011 | rm -rf conftest* |
| 4012 | eval "ac_cv_func_$ac_func=yes" |
| 4013 | else |
| 4014 | echo "configure: failed program was:" >&5 |
| 4015 | cat conftest.$ac_ext >&5 |
| 4016 | rm -rf conftest* |
| 4017 | eval "ac_cv_func_$ac_func=no" |
| 4018 | fi |
| 4019 | rm -f conftest* |
| 4020 | fi |
| 4021 | |
| 4022 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4023 | echo "$ac_t""yes" 1>&6 |
| 4024 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4025 | cat >> confdefs.h <<EOF |
| 4026 | #define $ac_tr_func 1 |
| 4027 | EOF |
| 4028 | |
| 4029 | else |
| 4030 | echo "$ac_t""no" 1>&6 |
| 4031 | echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4032 | echo "configure:4033: checking for openpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4033 | ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 4034 | 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] | 4035 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4036 | else |
| 4037 | ac_save_LIBS="$LIBS" |
| 4038 | LIBS="-lutil $LIBS" |
| 4039 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4040 | #line 4041 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4041 | #include "confdefs.h" |
| 4042 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4043 | /* We use char because int might match the return type of a gcc2 |
| 4044 | builtin and then its argument prototype would still apply. */ |
| 4045 | char openpty(); |
| 4046 | |
| 4047 | int main() { |
| 4048 | openpty() |
| 4049 | ; return 0; } |
| 4050 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4051 | if { (eval echo configure:4052: \"$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] | 4052 | rm -rf conftest* |
| 4053 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4054 | else |
| 4055 | echo "configure: failed program was:" >&5 |
| 4056 | cat conftest.$ac_ext >&5 |
| 4057 | rm -rf conftest* |
| 4058 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4059 | fi |
| 4060 | rm -f conftest* |
| 4061 | LIBS="$ac_save_LIBS" |
| 4062 | |
| 4063 | fi |
| 4064 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4065 | echo "$ac_t""yes" 1>&6 |
| 4066 | cat >> confdefs.h <<\EOF |
| 4067 | #define HAVE_OPENPTY 1 |
| 4068 | EOF |
| 4069 | LIBS="$LIBS -lutil" |
| 4070 | else |
| 4071 | echo "$ac_t""no" 1>&6 |
| 4072 | fi |
| 4073 | |
| 4074 | fi |
| 4075 | done |
| 4076 | |
| 4077 | for ac_func in forkpty |
| 4078 | do |
| 4079 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4080 | echo "configure:4081: checking for $ac_func" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 4081 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4082 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4083 | else |
| 4084 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4085 | #line 4086 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4086 | #include "confdefs.h" |
| 4087 | /* System header to define __stub macros and hopefully few prototypes, |
| 4088 | which can conflict with char $ac_func(); below. */ |
| 4089 | #include <assert.h> |
| 4090 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4091 | /* We use char because int might match the return type of a gcc2 |
| 4092 | builtin and then its argument prototype would still apply. */ |
| 4093 | char $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4094 | |
| 4095 | int main() { |
| 4096 | |
| 4097 | /* The GNU C library defines this for functions which it implements |
| 4098 | to always fail with ENOSYS. Some functions are actually named |
| 4099 | something starting with __ and the normal name is an alias. */ |
| 4100 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4101 | choke me |
| 4102 | #else |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 4103 | $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4104 | #endif |
| 4105 | |
| 4106 | ; return 0; } |
| 4107 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4108 | if { (eval echo configure:4109: \"$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] | 4109 | rm -rf conftest* |
| 4110 | eval "ac_cv_func_$ac_func=yes" |
| 4111 | else |
| 4112 | echo "configure: failed program was:" >&5 |
| 4113 | cat conftest.$ac_ext >&5 |
| 4114 | rm -rf conftest* |
| 4115 | eval "ac_cv_func_$ac_func=no" |
| 4116 | fi |
| 4117 | rm -f conftest* |
| 4118 | fi |
| 4119 | |
| 4120 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4121 | echo "$ac_t""yes" 1>&6 |
| 4122 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4123 | cat >> confdefs.h <<EOF |
| 4124 | #define $ac_tr_func 1 |
| 4125 | EOF |
| 4126 | |
| 4127 | else |
| 4128 | echo "$ac_t""no" 1>&6 |
| 4129 | echo $ac_n "checking for forkpty in -lutil""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4130 | echo "configure:4131: checking for forkpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4131 | ac_lib_var=`echo util'_'forkpty | sed 'y%./+-%__p_%'` |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 4132 | 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] | 4133 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4134 | else |
| 4135 | ac_save_LIBS="$LIBS" |
| 4136 | LIBS="-lutil $LIBS" |
| 4137 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4138 | #line 4139 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4139 | #include "confdefs.h" |
| 4140 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4141 | /* We use char because int might match the return type of a gcc2 |
| 4142 | builtin and then its argument prototype would still apply. */ |
| 4143 | char forkpty(); |
| 4144 | |
| 4145 | int main() { |
| 4146 | forkpty() |
| 4147 | ; return 0; } |
| 4148 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4149 | if { (eval echo configure:4150: \"$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] | 4150 | rm -rf conftest* |
| 4151 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4152 | else |
| 4153 | echo "configure: failed program was:" >&5 |
| 4154 | cat conftest.$ac_ext >&5 |
| 4155 | rm -rf conftest* |
| 4156 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4157 | fi |
| 4158 | rm -f conftest* |
| 4159 | LIBS="$ac_save_LIBS" |
| 4160 | |
| 4161 | fi |
| 4162 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4163 | echo "$ac_t""yes" 1>&6 |
| 4164 | cat >> confdefs.h <<\EOF |
| 4165 | #define HAVE_FORKPTY 1 |
| 4166 | EOF |
| 4167 | LIBS="$LIBS -lutil" |
| 4168 | else |
| 4169 | echo "$ac_t""no" 1>&6 |
| 4170 | fi |
| 4171 | |
| 4172 | fi |
| 4173 | done |
| 4174 | |
| 4175 | |
| 4176 | # check for long file support functions |
| 4177 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 4178 | do |
| 4179 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4180 | echo "configure:4181: checking for $ac_func" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 4181 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4182 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4183 | else |
| 4184 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4185 | #line 4186 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4186 | #include "confdefs.h" |
| 4187 | /* System header to define __stub macros and hopefully few prototypes, |
| 4188 | which can conflict with char $ac_func(); below. */ |
| 4189 | #include <assert.h> |
| 4190 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4191 | /* We use char because int might match the return type of a gcc2 |
| 4192 | builtin and then its argument prototype would still apply. */ |
| 4193 | char $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4194 | |
| 4195 | int main() { |
| 4196 | |
| 4197 | /* The GNU C library defines this for functions which it implements |
| 4198 | to always fail with ENOSYS. Some functions are actually named |
| 4199 | something starting with __ and the normal name is an alias. */ |
| 4200 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4201 | choke me |
| 4202 | #else |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 4203 | $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4204 | #endif |
| 4205 | |
| 4206 | ; return 0; } |
| 4207 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4208 | if { (eval echo configure:4209: \"$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] | 4209 | rm -rf conftest* |
| 4210 | eval "ac_cv_func_$ac_func=yes" |
| 4211 | else |
| 4212 | echo "configure: failed program was:" >&5 |
| 4213 | cat conftest.$ac_ext >&5 |
| 4214 | rm -rf conftest* |
| 4215 | eval "ac_cv_func_$ac_func=no" |
| 4216 | fi |
| 4217 | rm -f conftest* |
| 4218 | fi |
| 4219 | |
| 4220 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4221 | echo "$ac_t""yes" 1>&6 |
| 4222 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4223 | cat >> confdefs.h <<EOF |
| 4224 | #define $ac_tr_func 1 |
| 4225 | EOF |
| 4226 | |
| 4227 | else |
| 4228 | echo "$ac_t""no" 1>&6 |
| 4229 | fi |
| 4230 | done |
| 4231 | |
| 4232 | |
| 4233 | for ac_func in dup2 getcwd strdup strerror memmove |
| 4234 | do |
| 4235 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4236 | echo "configure:4237: checking for $ac_func" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 4237 | 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] | 4238 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4239 | else |
| 4240 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4241 | #line 4242 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4242 | #include "confdefs.h" |
| 4243 | /* System header to define __stub macros and hopefully few prototypes, |
| 4244 | which can conflict with char $ac_func(); below. */ |
| 4245 | #include <assert.h> |
| 4246 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4247 | /* We use char because int might match the return type of a gcc2 |
| 4248 | builtin and then its argument prototype would still apply. */ |
| 4249 | char $ac_func(); |
| 4250 | |
| 4251 | int main() { |
| 4252 | |
| 4253 | /* The GNU C library defines this for functions which it implements |
| 4254 | to always fail with ENOSYS. Some functions are actually named |
| 4255 | something starting with __ and the normal name is an alias. */ |
| 4256 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4257 | choke me |
| 4258 | #else |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 4259 | $ac_func(); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4260 | #endif |
| 4261 | |
| 4262 | ; return 0; } |
| 4263 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4264 | if { (eval echo configure:4265: \"$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] | 4265 | rm -rf conftest* |
| 4266 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4267 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4268 | echo "configure: failed program was:" >&5 |
| 4269 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4270 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4271 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4272 | fi |
| 4273 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4274 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4275 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4276 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4277 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4278 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4279 | cat >> confdefs.h <<EOF |
| 4280 | #define $ac_tr_func 1 |
| 4281 | EOF |
| 4282 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4283 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4284 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4285 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4286 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4287 | done |
| 4288 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4289 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4290 | for ac_func in getpgrp |
| 4291 | do |
| 4292 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4293 | echo "configure:4294: checking for $ac_func" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 4294 | 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] | 4295 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4296 | else |
| 4297 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4298 | #line 4299 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4299 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4300 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4301 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4302 | #include <assert.h> |
| 4303 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4304 | /* We use char because int might match the return type of a gcc2 |
| 4305 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4306 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4307 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4308 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4309 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4310 | /* The GNU C library defines this for functions which it implements |
| 4311 | to always fail with ENOSYS. Some functions are actually named |
| 4312 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4313 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4314 | choke me |
| 4315 | #else |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 4316 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4317 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4318 | |
| 4319 | ; return 0; } |
| 4320 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4321 | if { (eval echo configure:4322: \"$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] | 4322 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4323 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4324 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4325 | echo "configure: failed program was:" >&5 |
| 4326 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4327 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4328 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4329 | fi |
| 4330 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4331 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4332 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4333 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4334 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4335 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4336 | cat >> confdefs.h <<EOF |
| 4337 | #define $ac_tr_func 1 |
| 4338 | EOF |
| 4339 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4340 | #line 4341 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4341 | #include "confdefs.h" |
| 4342 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4343 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4344 | getpgrp(0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4345 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4346 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4347 | if { (eval echo configure:4348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4348 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4349 | cat >> confdefs.h <<\EOF |
| 4350 | #define GETPGRP_HAVE_ARG 1 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4351 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4352 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4353 | else |
| 4354 | echo "configure: failed program was:" >&5 |
| 4355 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4356 | fi |
| 4357 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4358 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4359 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4360 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4361 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4362 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4363 | for ac_func in setpgrp |
| 4364 | do |
| 4365 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4366 | echo "configure:4367: checking for $ac_func" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 4367 | 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] | 4368 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4369 | else |
| 4370 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4371 | #line 4372 "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4372 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4373 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4374 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4375 | #include <assert.h> |
| 4376 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4377 | /* We use char because int might match the return type of a gcc2 |
| 4378 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4379 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4380 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4381 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4382 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4383 | /* The GNU C library defines this for functions which it implements |
| 4384 | to always fail with ENOSYS. Some functions are actually named |
| 4385 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4386 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4387 | choke me |
| 4388 | #else |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 4389 | $ac_func(); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4390 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4391 | |
| 4392 | ; return 0; } |
| 4393 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4394 | if { (eval echo configure:4395: \"$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] | 4395 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4396 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4397 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4398 | echo "configure: failed program was:" >&5 |
| 4399 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4400 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4401 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4402 | fi |
| 4403 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4404 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4405 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4406 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4407 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4408 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4409 | cat >> confdefs.h <<EOF |
| 4410 | #define $ac_tr_func 1 |
| 4411 | EOF |
| 4412 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4413 | #line 4414 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4414 | #include "confdefs.h" |
| 4415 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4416 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4417 | setpgrp(0,0); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4418 | ; return 0; } |
| 4419 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4420 | if { (eval echo configure:4421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4421 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4422 | cat >> confdefs.h <<\EOF |
| 4423 | #define SETPGRP_HAVE_ARG 1 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4424 | EOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4425 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4426 | else |
| 4427 | echo "configure: failed program was:" >&5 |
| 4428 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4429 | fi |
| 4430 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4431 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4432 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4433 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4434 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4435 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4436 | for ac_func in gettimeofday |
| 4437 | do |
| 4438 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4439 | echo "configure:4440: checking for $ac_func" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 4440 | 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] | 4441 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4442 | else |
| 4443 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4444 | #line 4445 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4445 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4446 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4447 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4448 | #include <assert.h> |
| 4449 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4450 | /* We use char because int might match the return type of a gcc2 |
| 4451 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4452 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4453 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4454 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4455 | |
| 4456 | /* The GNU C library defines this for functions which it implements |
| 4457 | to always fail with ENOSYS. Some functions are actually named |
| 4458 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4459 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4460 | choke me |
| 4461 | #else |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 4462 | $ac_func(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4463 | #endif |
| 4464 | |
| 4465 | ; return 0; } |
| 4466 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4467 | if { (eval echo configure:4468: \"$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] | 4468 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4469 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4470 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4471 | echo "configure: failed program was:" >&5 |
| 4472 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4473 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4474 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4475 | fi |
| 4476 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4477 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4478 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4479 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4480 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4481 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4482 | cat >> confdefs.h <<EOF |
| 4483 | #define $ac_tr_func 1 |
| 4484 | EOF |
| 4485 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4486 | #line 4487 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4487 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4488 | #include <sys/time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4489 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4490 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
| 4491 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4492 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4493 | if { (eval echo configure:4494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4494 | : |
| 4495 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4496 | echo "configure: failed program was:" >&5 |
| 4497 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4498 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4499 | cat >> confdefs.h <<\EOF |
| 4500 | #define GETTIMEOFDAY_NO_TZ 1 |
| 4501 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4502 | |
| 4503 | fi |
| 4504 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4505 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4506 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4507 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4508 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4509 | |
| 4510 | |
| 4511 | # checks for structures |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4512 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4513 | echo "configure:4514: checking whether time.h and sys/time.h may both be included" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 4514 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4515 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4516 | else |
| 4517 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4518 | #line 4519 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4519 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4520 | #include <sys/types.h> |
| 4521 | #include <sys/time.h> |
| 4522 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4523 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4524 | struct tm *tp; |
| 4525 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4526 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4527 | if { (eval echo configure:4528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4528 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4529 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4530 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4531 | echo "configure: failed program was:" >&5 |
| 4532 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4533 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4534 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4535 | fi |
| 4536 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4537 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4538 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4539 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4540 | if test $ac_cv_header_time = yes; then |
| 4541 | cat >> confdefs.h <<\EOF |
| 4542 | #define TIME_WITH_SYS_TIME 1 |
| 4543 | EOF |
| 4544 | |
| 4545 | fi |
| 4546 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4547 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4548 | echo "configure:4549: checking whether struct tm is in sys/time.h or time.h" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 4549 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4550 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4551 | else |
| 4552 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4553 | #line 4554 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4554 | #include "confdefs.h" |
| 4555 | #include <sys/types.h> |
| 4556 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4557 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4558 | struct tm *tp; tp->tm_sec; |
| 4559 | ; return 0; } |
| 4560 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4561 | if { (eval echo configure:4562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4562 | rm -rf conftest* |
| 4563 | ac_cv_struct_tm=time.h |
| 4564 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4565 | echo "configure: failed program was:" >&5 |
| 4566 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4567 | rm -rf conftest* |
| 4568 | ac_cv_struct_tm=sys/time.h |
| 4569 | fi |
| 4570 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4571 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4572 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4573 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4574 | if test $ac_cv_struct_tm = sys/time.h; then |
| 4575 | cat >> confdefs.h <<\EOF |
| 4576 | #define TM_IN_SYS_TIME 1 |
| 4577 | EOF |
| 4578 | |
| 4579 | fi |
| 4580 | |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 4581 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4582 | echo "configure:4583: checking for tm_zone in struct tm" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 4583 | 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] | 4584 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4585 | else |
| 4586 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4587 | #line 4588 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4588 | #include "confdefs.h" |
| 4589 | #include <sys/types.h> |
| 4590 | #include <$ac_cv_struct_tm> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4591 | int main() { |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 4592 | struct tm tm; tm.tm_zone; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4593 | ; return 0; } |
| 4594 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4595 | if { (eval echo configure:4596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4596 | rm -rf conftest* |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 4597 | ac_cv_struct_tm_zone=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4598 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4599 | echo "configure: failed program was:" >&5 |
| 4600 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4601 | rm -rf conftest* |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 4602 | ac_cv_struct_tm_zone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4603 | fi |
| 4604 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4605 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4606 | |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 4607 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 |
| 4608 | if test "$ac_cv_struct_tm_zone" = yes; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4609 | cat >> confdefs.h <<\EOF |
| 4610 | #define HAVE_TM_ZONE 1 |
| 4611 | EOF |
| 4612 | |
| 4613 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4614 | echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4615 | echo "configure:4616: checking for tzname" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 4616 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4617 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4618 | else |
| 4619 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4620 | #line 4621 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4621 | #include "confdefs.h" |
| 4622 | #include <time.h> |
| 4623 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4624 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4625 | #endif |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4626 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4627 | atoi(*tzname); |
| 4628 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4629 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4630 | if { (eval echo configure:4631: \"$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] | 4631 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4632 | ac_cv_var_tzname=yes |
| 4633 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4634 | echo "configure: failed program was:" >&5 |
| 4635 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4636 | rm -rf conftest* |
| 4637 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4638 | fi |
| 4639 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4640 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4641 | |
| 4642 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4643 | if test $ac_cv_var_tzname = yes; then |
| 4644 | cat >> confdefs.h <<\EOF |
| 4645 | #define HAVE_TZNAME 1 |
| 4646 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4647 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4648 | fi |
| 4649 | fi |
| 4650 | |
| 4651 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4652 | echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4653 | echo "configure:4654: checking for time.h that defines altzone" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 4654 | 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] | 4655 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4656 | else |
| 4657 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4658 | #line 4659 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4659 | #include "confdefs.h" |
| 4660 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4661 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4662 | return altzone; |
| 4663 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4664 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4665 | if { (eval echo configure:4666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4666 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4667 | ac_cv_header_time_altzone=yes |
| 4668 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4669 | echo "configure: failed program was:" >&5 |
| 4670 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4671 | rm -rf conftest* |
| 4672 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4673 | fi |
| 4674 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4675 | fi |
| 4676 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4677 | echo "$ac_t""$ac_cv_header_time_altzone" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4678 | if test $ac_cv_header_time_altzone = yes; then |
| 4679 | cat >> confdefs.h <<\EOF |
| 4680 | #define HAVE_ALTZONE 1 |
| 4681 | EOF |
| 4682 | |
| 4683 | fi |
| 4684 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4685 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4686 | echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4687 | echo "configure:4688: 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] | 4688 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4689 | #line 4690 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4690 | #include "confdefs.h" |
| 4691 | |
| 4692 | #include <sys/types.h> |
| 4693 | #include <sys/select.h> |
| 4694 | #include <sys/time.h> |
| 4695 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4696 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4697 | ; |
| 4698 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4699 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4700 | if { (eval echo configure:4701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4701 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4702 | cat >> confdefs.h <<\EOF |
| 4703 | #define SYS_SELECT_WITH_SYS_TIME 1 |
| 4704 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4705 | was_it_defined=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4706 | else |
| 4707 | echo "configure: failed program was:" >&5 |
| 4708 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4709 | fi |
| 4710 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4711 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4712 | |
| 4713 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4714 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4715 | echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4716 | echo "configure:4717: checking whether char is unsigned" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 4717 | 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] | 4718 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4719 | else |
| 4720 | if test "$GCC" = yes; then |
| 4721 | # GCC predefines this symbol on systems where it applies. |
| 4722 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4723 | #line 4724 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4724 | #include "confdefs.h" |
| 4725 | #ifdef __CHAR_UNSIGNED__ |
| 4726 | yes |
| 4727 | #endif |
| 4728 | |
| 4729 | EOF |
| 4730 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4731 | egrep "yes" >/dev/null 2>&1; then |
| 4732 | rm -rf conftest* |
| 4733 | ac_cv_c_char_unsigned=yes |
| 4734 | else |
| 4735 | rm -rf conftest* |
| 4736 | ac_cv_c_char_unsigned=no |
| 4737 | fi |
| 4738 | rm -f conftest* |
| 4739 | |
| 4740 | else |
| 4741 | if test "$cross_compiling" = yes; then |
| 4742 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 4743 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4744 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4745 | #line 4746 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4746 | #include "confdefs.h" |
| 4747 | /* volatile prevents gcc2 from optimizing the test away on sparcs. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4748 | #if !defined(__STDC__) || __STDC__ != 1 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4749 | #define volatile |
| 4750 | #endif |
| 4751 | main() { |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4752 | volatile char c = 255; exit(c < 0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4753 | } |
| 4754 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4755 | if { (eval echo configure:4756: \"$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] | 4756 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4757 | ac_cv_c_char_unsigned=yes |
| 4758 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4759 | echo "configure: failed program was:" >&5 |
| 4760 | cat conftest.$ac_ext >&5 |
| 4761 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4762 | ac_cv_c_char_unsigned=no |
| 4763 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4764 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4765 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4766 | |
| 4767 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4768 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4769 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4770 | echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4771 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
| 4772 | cat >> confdefs.h <<\EOF |
| 4773 | #define __CHAR_UNSIGNED__ 1 |
| 4774 | EOF |
| 4775 | |
| 4776 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4777 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4778 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4779 | echo "configure:4780: checking for working const" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 4780 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4781 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4782 | else |
| 4783 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4784 | #line 4785 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4785 | #include "confdefs.h" |
| 4786 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4787 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4788 | |
| 4789 | /* Ultrix mips cc rejects this. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4790 | typedef int charset[2]; const charset x; |
| 4791 | /* SunOS 4.1.1 cc rejects this. */ |
| 4792 | char const *const *ccp; |
| 4793 | char **p; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4794 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 4795 | struct point {int x, y;}; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4796 | static struct point const zero = {0,0}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4797 | /* AIX XL C 1.02.0.0 rejects this. |
| 4798 | It does not let you subtract one const X* pointer from another in an arm |
| 4799 | of an if-expression whose if-part is not a constant expression */ |
| 4800 | const char *g = "string"; |
| 4801 | ccp = &g + (g ? g-g : 0); |
| 4802 | /* HPUX 7.0 cc rejects these. */ |
| 4803 | ++ccp; |
| 4804 | p = (char**) ccp; |
| 4805 | ccp = (char const *const *) p; |
| 4806 | { /* SCO 3.2v4 cc rejects this. */ |
| 4807 | char *t; |
| 4808 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 4809 | |
| 4810 | *t++ = 0; |
| 4811 | } |
| 4812 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4813 | int x[] = {25, 17}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4814 | const int *foo = &x[0]; |
| 4815 | ++foo; |
| 4816 | } |
| 4817 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 4818 | typedef const int *iptr; |
| 4819 | iptr p = 0; |
| 4820 | ++p; |
| 4821 | } |
| 4822 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 4823 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 4824 | struct s { int j; const int *ap[3]; }; |
| 4825 | struct s *b; b->j = 5; |
| 4826 | } |
| 4827 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 4828 | const int foo = 10; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4829 | } |
| 4830 | |
| 4831 | ; return 0; } |
| 4832 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4833 | if { (eval echo configure:4834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4834 | rm -rf conftest* |
| 4835 | ac_cv_c_const=yes |
| 4836 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4837 | echo "configure: failed program was:" >&5 |
| 4838 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4839 | rm -rf conftest* |
| 4840 | ac_cv_c_const=no |
| 4841 | fi |
| 4842 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4843 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4844 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4845 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4846 | if test $ac_cv_c_const = no; then |
| 4847 | cat >> confdefs.h <<\EOF |
| 4848 | #define const |
| 4849 | EOF |
| 4850 | |
| 4851 | fi |
| 4852 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4853 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4854 | echo "configure:4855: checking for inline" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 4855 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4856 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4857 | else |
| 4858 | ac_cv_c_inline=no |
| 4859 | for ac_kw in inline __inline__ __inline; do |
| 4860 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4861 | #line 4862 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4862 | #include "confdefs.h" |
| 4863 | |
| 4864 | int main() { |
| 4865 | } $ac_kw foo() { |
| 4866 | ; return 0; } |
| 4867 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4868 | if { (eval echo configure:4869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4869 | rm -rf conftest* |
| 4870 | ac_cv_c_inline=$ac_kw; break |
| 4871 | else |
| 4872 | echo "configure: failed program was:" >&5 |
| 4873 | cat conftest.$ac_ext >&5 |
| 4874 | fi |
| 4875 | rm -f conftest* |
| 4876 | done |
| 4877 | |
| 4878 | fi |
| 4879 | |
| 4880 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
| 4881 | case "$ac_cv_c_inline" in |
| 4882 | inline | yes) ;; |
| 4883 | no) cat >> confdefs.h <<\EOF |
| 4884 | #define inline |
| 4885 | EOF |
| 4886 | ;; |
| 4887 | *) cat >> confdefs.h <<EOF |
| 4888 | #define inline $ac_cv_c_inline |
| 4889 | EOF |
| 4890 | ;; |
| 4891 | esac |
| 4892 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4893 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4894 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4895 | echo $ac_n "checking for working volatile""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4896 | echo "configure:4897: checking for working volatile" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4897 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4898 | #line 4899 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4899 | #include "confdefs.h" |
| 4900 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4901 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4902 | volatile int x; x = 0; |
| 4903 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4904 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4905 | if { (eval echo configure:4906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4906 | rm -rf conftest* |
| 4907 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4908 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4909 | echo "configure: failed program was:" >&5 |
| 4910 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4911 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4912 | cat >> confdefs.h <<\EOF |
| 4913 | #define volatile |
| 4914 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4915 | |
| 4916 | fi |
| 4917 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4918 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4919 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4920 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4921 | echo $ac_n "checking for working signed char""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4922 | echo "configure:4923: checking for working signed char" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4923 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4924 | #line 4925 "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4925 | #include "confdefs.h" |
| 4926 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4927 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4928 | signed char c; |
| 4929 | ; return 0; } |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4930 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4931 | if { (eval echo configure:4932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4932 | rm -rf conftest* |
| 4933 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4934 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4935 | echo "configure: failed program was:" >&5 |
| 4936 | cat conftest.$ac_ext >&5 |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4937 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4938 | cat >> confdefs.h <<\EOF |
| 4939 | #define signed |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4940 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4941 | |
| 4942 | fi |
| 4943 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4944 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4945 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4946 | have_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4947 | echo $ac_n "checking for prototypes""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4948 | echo "configure:4949: checking for prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4949 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4950 | #line 4951 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4951 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4952 | int foo(int x) { return 0; } |
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 | return foo(10); |
| 4955 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4956 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4957 | if { (eval echo configure:4958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4958 | rm -rf conftest* |
| 4959 | cat >> confdefs.h <<\EOF |
| 4960 | #define HAVE_PROTOTYPES 1 |
| 4961 | EOF |
| 4962 | have_prototypes=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4963 | else |
| 4964 | echo "configure: failed program was:" >&5 |
| 4965 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4966 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4967 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4968 | echo "$ac_t""$have_prototypes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4969 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4970 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4971 | echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4972 | echo "configure:4973: checking for variable length prototypes and stdarg.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4973 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4974 | #line 4975 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4975 | #include "confdefs.h" |
| 4976 | |
| 4977 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 4978 | int foo(int x, ...) { |
| 4979 | va_list va; |
| 4980 | va_start(va, x); |
| 4981 | va_arg(va, int); |
| 4982 | va_arg(va, char *); |
| 4983 | va_arg(va, double); |
| 4984 | return 0; |
| 4985 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4986 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4987 | int main() { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 4988 | return foo(10, "", 3.14); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4989 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4990 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 4991 | if { (eval echo configure:4992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4992 | rm -rf conftest* |
| 4993 | cat >> confdefs.h <<\EOF |
| 4994 | #define HAVE_STDARG_PROTOTYPES 1 |
| 4995 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4996 | works=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4997 | else |
| 4998 | echo "configure: failed program was:" >&5 |
| 4999 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5000 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5001 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5002 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5003 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5004 | if test "$have_prototypes" = yes; then |
| 5005 | bad_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5006 | echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5007 | echo "configure:5008: checking for bad exec* prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5008 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5009 | #line 5010 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5010 | #include "confdefs.h" |
| 5011 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5012 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5013 | char **t;execve("@",t,t); |
| 5014 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5015 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5016 | if { (eval echo configure:5017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5017 | : |
| 5018 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5019 | echo "configure: failed program was:" >&5 |
| 5020 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5021 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5022 | cat >> confdefs.h <<\EOF |
| 5023 | #define BAD_EXEC_PROTOTYPES 1 |
| 5024 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5025 | bad_prototypes=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5026 | fi |
| 5027 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5028 | echo "$ac_t""$bad_prototypes" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5029 | fi |
| 5030 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5031 | bad_forward=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5032 | echo $ac_n "checking for bad static forward""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5033 | echo "configure:5034: checking for bad static forward" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5034 | if test "$cross_compiling" = yes; then |
| 5035 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5036 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5037 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5038 | #line 5039 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5039 | #include "confdefs.h" |
| 5040 | |
| 5041 | struct s { int a; int b; }; |
| 5042 | static struct s foo; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5043 | int foobar() { |
| 5044 | static int random; |
| 5045 | random = (int) &foo; |
| 5046 | return random; |
| 5047 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5048 | static struct s foo = { 1, 2 }; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5049 | main() { |
| 5050 | exit(!((int)&foo == foobar())); |
| 5051 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5052 | |
| 5053 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5054 | if { (eval echo configure:5055: \"$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] | 5055 | then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5056 | : |
| 5057 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5058 | echo "configure: failed program was:" >&5 |
| 5059 | cat conftest.$ac_ext >&5 |
| 5060 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5061 | cat >> confdefs.h <<\EOF |
| 5062 | #define BAD_STATIC_FORWARD 1 |
| 5063 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5064 | bad_forward=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5065 | fi |
| 5066 | rm -fr conftest* |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5067 | fi |
| 5068 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5069 | echo "$ac_t""$bad_forward" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5070 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5071 | va_list_is_array=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5072 | echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5073 | echo "configure:5074: checking whether va_list is an array" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5074 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5075 | #line 5076 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5076 | #include "confdefs.h" |
| 5077 | |
| 5078 | #ifdef HAVE_STDARG_PROTOTYPES |
| 5079 | #include <stdarg.h> |
| 5080 | #else |
| 5081 | #include <varargs.h> |
| 5082 | #endif |
| 5083 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5084 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5085 | va_list list1, list2; list1 = list2; |
| 5086 | ; return 0; } |
| 5087 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5088 | if { (eval echo configure:5089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5089 | : |
| 5090 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5091 | echo "configure: failed program was:" >&5 |
| 5092 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5093 | rm -rf conftest* |
| 5094 | cat >> confdefs.h <<\EOF |
| 5095 | #define VA_LIST_IS_ARRAY 1 |
| 5096 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5097 | va_list_is_array=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5098 | fi |
| 5099 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5100 | echo "$ac_t""$va_list_is_array" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5101 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5102 | # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( |
| 5103 | echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5104 | echo "configure:5105: checking for gethostbyname_r" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 5105 | 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] | 5106 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5107 | else |
| 5108 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5109 | #line 5110 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5110 | #include "confdefs.h" |
| 5111 | /* System header to define __stub macros and hopefully few prototypes, |
| 5112 | which can conflict with char gethostbyname_r(); below. */ |
| 5113 | #include <assert.h> |
| 5114 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5115 | /* We use char because int might match the return type of a gcc2 |
| 5116 | builtin and then its argument prototype would still apply. */ |
| 5117 | char gethostbyname_r(); |
| 5118 | |
| 5119 | int main() { |
| 5120 | |
| 5121 | /* The GNU C library defines this for functions which it implements |
| 5122 | to always fail with ENOSYS. Some functions are actually named |
| 5123 | something starting with __ and the normal name is an alias. */ |
| 5124 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 5125 | choke me |
| 5126 | #else |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 5127 | gethostbyname_r(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5128 | #endif |
| 5129 | |
| 5130 | ; return 0; } |
| 5131 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5132 | if { (eval echo configure:5133: \"$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] | 5133 | rm -rf conftest* |
| 5134 | eval "ac_cv_func_gethostbyname_r=yes" |
| 5135 | else |
| 5136 | echo "configure: failed program was:" >&5 |
| 5137 | cat conftest.$ac_ext >&5 |
| 5138 | rm -rf conftest* |
| 5139 | eval "ac_cv_func_gethostbyname_r=no" |
| 5140 | fi |
| 5141 | rm -f conftest* |
| 5142 | fi |
| 5143 | |
| 5144 | if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then |
| 5145 | echo "$ac_t""yes" 1>&6 |
| 5146 | |
| 5147 | cat >> confdefs.h <<\EOF |
| 5148 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5149 | EOF |
| 5150 | |
| 5151 | echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5152 | echo "configure:5153: checking gethostbyname_r with 6 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5153 | OLD_CFLAGS=$CFLAGS |
| 5154 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
| 5155 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5156 | #line 5157 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5157 | #include "confdefs.h" |
| 5158 | |
| 5159 | # include <netdb.h> |
| 5160 | |
| 5161 | int main() { |
| 5162 | |
| 5163 | char *name; |
| 5164 | struct hostent *he, *res; |
| 5165 | char buffer[2048]; |
| 5166 | int buflen = 2048; |
| 5167 | int h_errnop; |
| 5168 | |
| 5169 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
| 5170 | |
| 5171 | ; return 0; } |
| 5172 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5173 | if { (eval echo configure:5174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5174 | rm -rf conftest* |
| 5175 | |
| 5176 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5177 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5178 | EOF |
| 5179 | |
| 5180 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5181 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
| 5182 | EOF |
| 5183 | |
| 5184 | echo "$ac_t""yes" 1>&6 |
| 5185 | |
| 5186 | else |
| 5187 | echo "configure: failed program was:" >&5 |
| 5188 | cat conftest.$ac_ext >&5 |
| 5189 | rm -rf conftest* |
| 5190 | |
| 5191 | echo "$ac_t""no" 1>&6 |
| 5192 | echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5193 | echo "configure:5194: checking gethostbyname_r with 5 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5194 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5195 | #line 5196 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5196 | #include "confdefs.h" |
| 5197 | |
| 5198 | # include <netdb.h> |
| 5199 | |
| 5200 | int main() { |
| 5201 | |
| 5202 | char *name; |
| 5203 | struct hostent *he; |
| 5204 | char buffer[2048]; |
| 5205 | int buflen = 2048; |
| 5206 | int h_errnop; |
| 5207 | |
| 5208 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
| 5209 | |
| 5210 | ; return 0; } |
| 5211 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5212 | if { (eval echo configure:5213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5213 | rm -rf conftest* |
| 5214 | |
| 5215 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5216 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5217 | EOF |
| 5218 | |
| 5219 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5220 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
| 5221 | EOF |
| 5222 | |
| 5223 | echo "$ac_t""yes" 1>&6 |
| 5224 | |
| 5225 | else |
| 5226 | echo "configure: failed program was:" >&5 |
| 5227 | cat conftest.$ac_ext >&5 |
| 5228 | rm -rf conftest* |
| 5229 | |
| 5230 | echo "$ac_t""no" 1>&6 |
| 5231 | echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5232 | echo "configure:5233: checking gethostbyname_r with 3 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5233 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5234 | #line 5235 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5235 | #include "confdefs.h" |
| 5236 | |
| 5237 | # include <netdb.h> |
| 5238 | |
| 5239 | int main() { |
| 5240 | |
| 5241 | char *name; |
| 5242 | struct hostent *he; |
| 5243 | struct hostent_data data; |
| 5244 | |
| 5245 | (void) gethostbyname_r(name, he, &data); |
| 5246 | |
| 5247 | ; return 0; } |
| 5248 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5249 | if { (eval echo configure:5250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5250 | rm -rf conftest* |
| 5251 | |
| 5252 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5253 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5254 | EOF |
| 5255 | |
| 5256 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5257 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
| 5258 | EOF |
| 5259 | |
| 5260 | echo "$ac_t""yes" 1>&6 |
| 5261 | |
| 5262 | else |
| 5263 | echo "configure: failed program was:" >&5 |
| 5264 | cat conftest.$ac_ext >&5 |
| 5265 | rm -rf conftest* |
| 5266 | |
| 5267 | echo "$ac_t""no" 1>&6 |
| 5268 | |
| 5269 | fi |
| 5270 | rm -f conftest* |
| 5271 | |
| 5272 | fi |
| 5273 | rm -f conftest* |
| 5274 | |
| 5275 | fi |
| 5276 | rm -f conftest* |
| 5277 | CFLAGS=$OLD_CFLAGS |
| 5278 | |
| 5279 | else |
| 5280 | echo "$ac_t""no" 1>&6 |
| 5281 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5282 | for ac_func in gethostbyname |
| 5283 | do |
| 5284 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5285 | echo "configure:5286: checking for $ac_func" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 5286 | 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] | 5287 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5288 | else |
| 5289 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5290 | #line 5291 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5291 | #include "confdefs.h" |
| 5292 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5293 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5294 | #include <assert.h> |
| 5295 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5296 | /* We use char because int might match the return type of a gcc2 |
| 5297 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5298 | char $ac_func(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5299 | |
| 5300 | int main() { |
| 5301 | |
| 5302 | /* The GNU C library defines this for functions which it implements |
| 5303 | to always fail with ENOSYS. Some functions are actually named |
| 5304 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5305 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5306 | choke me |
| 5307 | #else |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 5308 | $ac_func(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5309 | #endif |
| 5310 | |
| 5311 | ; return 0; } |
| 5312 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5313 | if { (eval echo configure:5314: \"$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] | 5314 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5315 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5316 | else |
| 5317 | echo "configure: failed program was:" >&5 |
| 5318 | cat conftest.$ac_ext >&5 |
| 5319 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5320 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5321 | fi |
| 5322 | rm -f conftest* |
| 5323 | fi |
| 5324 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5325 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5326 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5327 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5328 | cat >> confdefs.h <<EOF |
| 5329 | #define $ac_tr_func 1 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5330 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5331 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5332 | else |
| 5333 | echo "$ac_t""no" 1>&6 |
| 5334 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5335 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5336 | |
| 5337 | |
| 5338 | fi |
| 5339 | |
| 5340 | |
| 5341 | |
| 5342 | |
| 5343 | |
| 5344 | |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5345 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5346 | # checks for system services |
| 5347 | # (none yet) |
| 5348 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5349 | # Linux requires this for correct f.p. operations |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5350 | echo $ac_n "checking for __fpu_control""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5351 | echo "configure:5352: checking for __fpu_control" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 5352 | if eval "test \"`echo '$''{'ac_cv_func___fpu_control'+set}'`\" = set"; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5353 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5354 | else |
| 5355 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5356 | #line 5357 "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5357 | #include "confdefs.h" |
| 5358 | /* System header to define __stub macros and hopefully few prototypes, |
| 5359 | which can conflict with char __fpu_control(); below. */ |
| 5360 | #include <assert.h> |
| 5361 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5362 | /* We use char because int might match the return type of a gcc2 |
| 5363 | builtin and then its argument prototype would still apply. */ |
| 5364 | char __fpu_control(); |
| 5365 | |
| 5366 | int main() { |
| 5367 | |
| 5368 | /* The GNU C library defines this for functions which it implements |
| 5369 | to always fail with ENOSYS. Some functions are actually named |
| 5370 | something starting with __ and the normal name is an alias. */ |
| 5371 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 5372 | choke me |
| 5373 | #else |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 5374 | __fpu_control(); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5375 | #endif |
| 5376 | |
| 5377 | ; return 0; } |
| 5378 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5379 | if { (eval echo configure:5380: \"$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] | 5380 | rm -rf conftest* |
| 5381 | eval "ac_cv_func___fpu_control=yes" |
| 5382 | else |
| 5383 | echo "configure: failed program was:" >&5 |
| 5384 | cat conftest.$ac_ext >&5 |
| 5385 | rm -rf conftest* |
| 5386 | eval "ac_cv_func___fpu_control=no" |
| 5387 | fi |
| 5388 | rm -f conftest* |
| 5389 | fi |
| 5390 | |
| 5391 | if eval "test \"`echo '$ac_cv_func_'__fpu_control`\" = yes"; then |
| 5392 | echo "$ac_t""yes" 1>&6 |
| 5393 | : |
| 5394 | else |
| 5395 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5396 | echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5397 | echo "configure:5398: checking for __fpu_control in -lieee" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5398 | ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'` |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 5399 | 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] | 5400 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5401 | else |
| 5402 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5403 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5404 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5405 | #line 5406 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5406 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5407 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5408 | /* We use char because int might match the return type of a gcc2 |
| 5409 | builtin and then its argument prototype would still apply. */ |
| 5410 | char __fpu_control(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5411 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5412 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5413 | __fpu_control() |
| 5414 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5415 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5416 | if { (eval echo configure:5417: \"$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] | 5417 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5418 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5419 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5420 | echo "configure: failed program was:" >&5 |
| 5421 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5422 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5423 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5424 | fi |
| 5425 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5426 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5427 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5428 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5429 | 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] | 5430 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5431 | ac_tr_lib=HAVE_LIB`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 5432 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5433 | cat >> confdefs.h <<EOF |
| 5434 | #define $ac_tr_lib 1 |
| 5435 | EOF |
| 5436 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5437 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5438 | |
| 5439 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5440 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5441 | fi |
| 5442 | |
| 5443 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5444 | fi |
| 5445 | |
| 5446 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5447 | # Check for --with-fpectl |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5448 | echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5449 | echo "configure:5450: checking for --with-fpectl" >&5 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5450 | # Check whether --with-fpectl or --without-fpectl was given. |
| 5451 | if test "${with_fpectl+set}" = set; then |
| 5452 | withval="$with_fpectl" |
| 5453 | |
| 5454 | if test "$withval" != no |
| 5455 | then cat >> confdefs.h <<\EOF |
| 5456 | #define WANT_SIGFPE_HANDLER 1 |
| 5457 | EOF |
| 5458 | echo "$ac_t""yes" 1>&6 |
| 5459 | else echo "$ac_t""no" 1>&6 |
| 5460 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5461 | else |
| 5462 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5463 | fi |
| 5464 | |
| 5465 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5466 | # check for --with-libm=... |
| 5467 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 5468 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5469 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 5470 | next) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 5471 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 5472 | *) LIBM=-lm |
| 5473 | esac |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5474 | echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5475 | echo "configure:5476: checking for --with-libm=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5476 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5477 | if test "${with_libm+set}" = set; then |
| 5478 | withval="$with_libm" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5479 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5480 | if test "$withval" = no |
| 5481 | then LIBM= |
| 5482 | echo "$ac_t""force LIBM empty" 1>&6 |
| 5483 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5484 | then LIBM=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5485 | echo "$ac_t""set LIBM=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5486 | 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] | 5487 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5488 | else |
| 5489 | echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5490 | fi |
| 5491 | |
| 5492 | |
| 5493 | # check for --with-libc=... |
| 5494 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5495 | echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5496 | echo "configure:5497: checking for --with-libc=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5497 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5498 | if test "${with_libc+set}" = set; then |
| 5499 | withval="$with_libc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5500 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5501 | if test "$withval" = no |
| 5502 | then LIBC= |
| 5503 | echo "$ac_t""force LIBC empty" 1>&6 |
| 5504 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5505 | then LIBC=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5506 | echo "$ac_t""set LIBC=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5507 | 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] | 5508 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5509 | else |
| 5510 | echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5511 | fi |
| 5512 | |
| 5513 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5514 | # check for hypot() in math library |
| 5515 | LIBS_SAVE=$LIBS |
| 5516 | LIBS="$LIBS $LIBM" |
| 5517 | for ac_func in hypot |
| 5518 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5519 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5520 | echo "configure:5521: checking for $ac_func" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 5521 | 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] | 5522 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5523 | else |
| 5524 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5525 | #line 5526 "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5526 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5527 | /* System header to define __stub macros and hopefully few prototypes, |
| 5528 | which can conflict with char $ac_func(); below. */ |
| 5529 | #include <assert.h> |
| 5530 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5531 | /* We use char because int might match the return type of a gcc2 |
| 5532 | builtin and then its argument prototype would still apply. */ |
| 5533 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5534 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5535 | int main() { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5536 | |
| 5537 | /* The GNU C library defines this for functions which it implements |
| 5538 | to always fail with ENOSYS. Some functions are actually named |
| 5539 | something starting with __ and the normal name is an alias. */ |
| 5540 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5541 | choke me |
| 5542 | #else |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 5543 | $ac_func(); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5544 | #endif |
| 5545 | |
| 5546 | ; return 0; } |
| 5547 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5548 | if { (eval echo configure:5549: \"$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] | 5549 | rm -rf conftest* |
| 5550 | eval "ac_cv_func_$ac_func=yes" |
| 5551 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5552 | echo "configure: failed program was:" >&5 |
| 5553 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5554 | rm -rf conftest* |
| 5555 | eval "ac_cv_func_$ac_func=no" |
| 5556 | fi |
| 5557 | rm -f conftest* |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5558 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5559 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5560 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5561 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5562 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5563 | cat >> confdefs.h <<EOF |
| 5564 | #define $ac_tr_func 1 |
| 5565 | EOF |
| 5566 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5567 | else |
| 5568 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5569 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5570 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5571 | done |
| 5572 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5573 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5574 | LIBS=$LIBS_SAVE |
| 5575 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5576 | # check for getopt |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5577 | echo $ac_n "checking for genuine getopt""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5578 | echo "configure:5579: checking for genuine getopt" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 5579 | if eval "test \"`echo '$''{'ac_cv_func_getopt'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5580 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5581 | else |
| 5582 | if test "$cross_compiling" = yes; then |
| 5583 | ac_cv_func_getopt=no |
| 5584 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5585 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5586 | #line 5587 "configure" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5587 | #include "confdefs.h" |
| 5588 | #include <stdio.h> |
| 5589 | extern int optind, opterr, getopt(); |
| 5590 | extern char* optarg; |
| 5591 | int main() { |
| 5592 | char* av[] = { "testprog", "parameter", "-fFlag", NULL }; |
| 5593 | opterr = 0; |
| 5594 | if (getopt(3, av, "f:") == 'f') { exit(1); } |
| 5595 | exit(0); |
| 5596 | } |
| 5597 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5598 | if { (eval echo configure:5599: \"$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] | 5599 | then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5600 | ac_cv_func_getopt=yes |
| 5601 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5602 | echo "configure: failed program was:" >&5 |
| 5603 | cat conftest.$ac_ext >&5 |
| 5604 | rm -fr conftest* |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5605 | ac_cv_func_getopt=no |
| 5606 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5607 | rm -fr conftest* |
| 5608 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5609 | |
| 5610 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5611 | echo "$ac_t""$ac_cv_func_getopt" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5612 | test $ac_cv_func_getopt = no && LIBOBJS="$LIBOBJS getopt.o" |
| 5613 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5614 | # check whether malloc(0) returns NULL or not |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5615 | echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5616 | echo "configure:5617: checking what malloc(0) returns" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 5617 | if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5618 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5619 | else |
| 5620 | if test "$cross_compiling" = yes; then |
| 5621 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5622 | else |
| 5623 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5624 | #line 5625 "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5625 | #include "confdefs.h" |
| 5626 | #include <stdio.h> |
| 5627 | #ifdef HAVE_STDLIB |
| 5628 | #include <stdlib.h> |
| 5629 | #else |
| 5630 | char *malloc(), *realloc(); |
| 5631 | int *free(); |
| 5632 | #endif |
| 5633 | main() { |
| 5634 | char *p; |
| 5635 | p = malloc(0); |
| 5636 | if (p == NULL) exit(1); |
| 5637 | p = realloc(p, 0); |
| 5638 | if (p == NULL) exit(1); |
| 5639 | free(p); |
| 5640 | exit(0); |
| 5641 | } |
| 5642 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5643 | if { (eval echo configure:5644: \"$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] | 5644 | then |
| 5645 | ac_cv_malloc_zero=nonnull |
| 5646 | else |
| 5647 | echo "configure: failed program was:" >&5 |
| 5648 | cat conftest.$ac_ext >&5 |
| 5649 | rm -fr conftest* |
| 5650 | ac_cv_malloc_zero=null |
| 5651 | fi |
| 5652 | rm -fr conftest* |
| 5653 | fi |
| 5654 | |
| 5655 | fi |
| 5656 | |
| 5657 | echo "$ac_t""$ac_cv_malloc_zero" 1>&6 |
| 5658 | if test "$ac_cv_malloc_zero" = null |
| 5659 | then |
| 5660 | cat >> confdefs.h <<\EOF |
| 5661 | #define MALLOC_ZERO_RETURNS_NULL 1 |
| 5662 | EOF |
| 5663 | |
| 5664 | fi |
| 5665 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5666 | # check for wchar.h |
| 5667 | ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'` |
| 5668 | echo $ac_n "checking for wchar.h""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5669 | echo "configure:5670: checking for wchar.h" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 5670 | 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] | 5671 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5672 | else |
| 5673 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5674 | #line 5675 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5675 | #include "confdefs.h" |
| 5676 | #include <wchar.h> |
| 5677 | EOF |
| 5678 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5679 | { (eval echo configure:5680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5680 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5681 | if test -z "$ac_err"; then |
| 5682 | rm -rf conftest* |
| 5683 | eval "ac_cv_header_$ac_safe=yes" |
| 5684 | else |
| 5685 | echo "$ac_err" >&5 |
| 5686 | echo "configure: failed program was:" >&5 |
| 5687 | cat conftest.$ac_ext >&5 |
| 5688 | rm -rf conftest* |
| 5689 | eval "ac_cv_header_$ac_safe=no" |
| 5690 | fi |
| 5691 | rm -f conftest* |
| 5692 | fi |
| 5693 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5694 | echo "$ac_t""yes" 1>&6 |
| 5695 | cat >> confdefs.h <<\EOF |
| 5696 | #define HAVE_WCHAR_H 1 |
| 5697 | EOF |
| 5698 | wchar_h="yes" |
| 5699 | else |
| 5700 | echo "$ac_t""no" 1>&6 |
| 5701 | wchar_h="no" |
| 5702 | |
| 5703 | fi |
| 5704 | |
| 5705 | |
| 5706 | # check for usable wchar_t |
| 5707 | usable_wchar_t="unkown" |
| 5708 | echo $ac_n "checking for usable wchar_t""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5709 | echo "configure:5710: checking for usable wchar_t" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5710 | if test "$cross_compiling" = yes; then |
| 5711 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5712 | else |
| 5713 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5714 | #line 5715 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5715 | #include "confdefs.h" |
| 5716 | |
| 5717 | #include "wchar.h" |
| 5718 | #include "wctype.h" |
| 5719 | main() { |
| 5720 | wchar_t s; |
| 5721 | if (sizeof(s) == 2) |
| 5722 | exit(0); |
| 5723 | else |
| 5724 | exit(1); |
| 5725 | } |
| 5726 | |
| 5727 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5728 | if { (eval echo configure:5729: \"$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] | 5729 | then |
| 5730 | cat >> confdefs.h <<\EOF |
| 5731 | #define HAVE_USABLE_WCHAR_T 1 |
| 5732 | EOF |
| 5733 | usable_wchar_t="yes" |
| 5734 | else |
| 5735 | echo "configure: failed program was:" >&5 |
| 5736 | cat conftest.$ac_ext >&5 |
| 5737 | rm -fr conftest* |
| 5738 | usable_wchar_t="no" |
| 5739 | fi |
| 5740 | rm -fr conftest* |
| 5741 | fi |
| 5742 | |
| 5743 | echo "$ac_t""$usable_wchar_t" 1>&6 |
| 5744 | |
| 5745 | # check for endianness |
| 5746 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5747 | echo "configure:5748: checking whether byte ordering is bigendian" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 5748 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5749 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5750 | else |
| 5751 | ac_cv_c_bigendian=unknown |
| 5752 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 5753 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5754 | #line 5755 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5755 | #include "confdefs.h" |
| 5756 | #include <sys/types.h> |
| 5757 | #include <sys/param.h> |
| 5758 | int main() { |
| 5759 | |
| 5760 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 5761 | bogus endian macros |
| 5762 | #endif |
| 5763 | ; return 0; } |
| 5764 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5765 | if { (eval echo configure:5766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5766 | rm -rf conftest* |
| 5767 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 5768 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5769 | #line 5770 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5770 | #include "confdefs.h" |
| 5771 | #include <sys/types.h> |
| 5772 | #include <sys/param.h> |
| 5773 | int main() { |
| 5774 | |
| 5775 | #if BYTE_ORDER != BIG_ENDIAN |
| 5776 | not big endian |
| 5777 | #endif |
| 5778 | ; return 0; } |
| 5779 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5780 | if { (eval echo configure:5781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5781 | rm -rf conftest* |
| 5782 | ac_cv_c_bigendian=yes |
| 5783 | else |
| 5784 | echo "configure: failed program was:" >&5 |
| 5785 | cat conftest.$ac_ext >&5 |
| 5786 | rm -rf conftest* |
| 5787 | ac_cv_c_bigendian=no |
| 5788 | fi |
| 5789 | rm -f conftest* |
| 5790 | else |
| 5791 | echo "configure: failed program was:" >&5 |
| 5792 | cat conftest.$ac_ext >&5 |
| 5793 | fi |
| 5794 | rm -f conftest* |
| 5795 | if test $ac_cv_c_bigendian = unknown; then |
| 5796 | if test "$cross_compiling" = yes; then |
| 5797 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5798 | else |
| 5799 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5800 | #line 5801 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5801 | #include "confdefs.h" |
| 5802 | main () { |
| 5803 | /* Are we little or big endian? From Harbison&Steele. */ |
| 5804 | union |
| 5805 | { |
| 5806 | long l; |
| 5807 | char c[sizeof (long)]; |
| 5808 | } u; |
| 5809 | u.l = 1; |
| 5810 | exit (u.c[sizeof (long) - 1] == 1); |
| 5811 | } |
| 5812 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5813 | if { (eval echo configure:5814: \"$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] | 5814 | then |
| 5815 | ac_cv_c_bigendian=no |
| 5816 | else |
| 5817 | echo "configure: failed program was:" >&5 |
| 5818 | cat conftest.$ac_ext >&5 |
| 5819 | rm -fr conftest* |
| 5820 | ac_cv_c_bigendian=yes |
| 5821 | fi |
| 5822 | rm -fr conftest* |
| 5823 | fi |
| 5824 | |
| 5825 | fi |
| 5826 | fi |
| 5827 | |
| 5828 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
| 5829 | if test $ac_cv_c_bigendian = yes; then |
| 5830 | cat >> confdefs.h <<\EOF |
| 5831 | #define WORDS_BIGENDIAN 1 |
| 5832 | EOF |
| 5833 | |
| 5834 | fi |
| 5835 | |
| 5836 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5837 | # Check whether right shifting a negative integer extends the sign bit |
| 5838 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
| 5839 | echo $ac_n "checking whether right shift extends the sign bit""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5840 | echo "configure:5841: checking whether right shift extends the sign bit" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 5841 | if eval "test \"`echo '$''{'ac_cv_rshift_extends_sign'+set}'`\" = set"; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 5842 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5843 | else |
| 5844 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5845 | if test "$cross_compiling" = yes; then |
| 5846 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5847 | else |
| 5848 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5849 | #line 5850 "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5850 | #include "confdefs.h" |
| 5851 | |
| 5852 | int main() |
| 5853 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 5854 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5855 | } |
| 5856 | |
| 5857 | EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5858 | if { (eval echo configure:5859: \"$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] | 5859 | then |
| 5860 | ac_cv_rshift_extends_sign=yes |
| 5861 | else |
| 5862 | echo "configure: failed program was:" >&5 |
| 5863 | cat conftest.$ac_ext >&5 |
| 5864 | rm -fr conftest* |
| 5865 | ac_cv_rshift_extends_sign=no |
| 5866 | fi |
| 5867 | rm -fr conftest* |
| 5868 | fi |
| 5869 | |
| 5870 | fi |
| 5871 | |
| 5872 | echo "$ac_t""$ac_cv_rshift_extends_sign" 1>&6 |
| 5873 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5874 | then |
| 5875 | cat >> confdefs.h <<\EOF |
| 5876 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
| 5877 | EOF |
| 5878 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5879 | fi |
| 5880 | |
| 5881 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5882 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! |
| 5883 | # Add sys/socket.h to confdefs.h |
| 5884 | cat >> confdefs.h <<\EOF |
| 5885 | #ifdef HAVE_SYS_SOCKET_H |
| 5886 | #include <sys/socket.h> |
| 5887 | #endif |
| 5888 | EOF |
| 5889 | echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5890 | echo "configure:5891: checking for socklen_t" >&5 |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 5891 | 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] | 5892 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5893 | else |
| 5894 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 5895 | #line 5896 "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5896 | #include "confdefs.h" |
| 5897 | #include <sys/types.h> |
| 5898 | #if STDC_HEADERS |
| 5899 | #include <stdlib.h> |
| 5900 | #include <stddef.h> |
| 5901 | #endif |
| 5902 | EOF |
| 5903 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5904 | egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 5905 | rm -rf conftest* |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 5906 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5907 | else |
| 5908 | rm -rf conftest* |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 5909 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5910 | fi |
| 5911 | rm -f conftest* |
| 5912 | |
| 5913 | fi |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 5914 | echo "$ac_t""$ac_cv_type_socklen_t" 1>&6 |
| 5915 | if test $ac_cv_type_socklen_t = no; then |
| 5916 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5917 | #define socklen_t int |
| 5918 | EOF |
| 5919 | |
| 5920 | fi |
| 5921 | |
| 5922 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5923 | # generate output files |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5924 | trap '' 1 2 15 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5925 | cat > confcache <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5926 | # This file is a shell script that caches the results of configure |
| 5927 | # tests run on this system so they can be shared between configure |
| 5928 | # scripts and configure runs. It is not useful on other systems. |
| 5929 | # If it contains results you don't want to keep, you may remove or edit it. |
| 5930 | # |
| 5931 | # By default, configure uses ./config.cache as the cache file, |
| 5932 | # creating it if it does not exist already. You can give configure |
| 5933 | # the --cache-file=FILE option to use a different cache file; that is |
| 5934 | # what configure does when it calls configure scripts in |
| 5935 | # subdirectories, so they share the cache. |
| 5936 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 5937 | # config.status only pays attention to the cache file if you give it the |
| 5938 | # --recheck option to rerun configure. |
| 5939 | # |
| 5940 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5941 | # The following way of writing the cache mishandles newlines in values, |
| 5942 | # but we know of no workaround that is simple, portable, and efficient. |
| 5943 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5944 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 5945 | # 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] | 5946 | (set) 2>&1 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5947 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5948 | *ac_space=\ *) |
| 5949 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 5950 | # turns \\\\ into \\, and sed turns \\ into \). |
| 5951 | sed -n \ |
| 5952 | -e "s/'/'\\\\''/g" \ |
| 5953 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 5954 | ;; |
| 5955 | *) |
| 5956 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 5957 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 5958 | ;; |
| 5959 | esac >> confcache |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5960 | if cmp -s $cache_file confcache; then |
| 5961 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5962 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5963 | if test -w $cache_file; then |
| 5964 | echo "updating cache $cache_file" |
| 5965 | cat confcache > $cache_file |
| 5966 | else |
| 5967 | echo "not updating unwritable cache $cache_file" |
| 5968 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5969 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5970 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 5971 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5972 | 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] | 5973 | |
| 5974 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 5975 | # Let make expand exec_prefix. |
| 5976 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 5977 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5978 | # Any assignment to VPATH causes Sun make to only execute |
| 5979 | # the first set of double-colon rules, so remove it if not needed. |
| 5980 | # If there is a colon in the path, we need to keep it. |
| 5981 | if test "x$srcdir" = x.; then |
| 5982 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 5983 | fi |
| 5984 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5985 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5986 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5987 | DEFS=-DHAVE_CONFIG_H |
| 5988 | |
| 5989 | # Without the "./", some shells look in PATH for config.status. |
| 5990 | : ${CONFIG_STATUS=./config.status} |
| 5991 | |
| 5992 | echo creating $CONFIG_STATUS |
| 5993 | rm -f $CONFIG_STATUS |
| 5994 | cat > $CONFIG_STATUS <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5995 | #! /bin/sh |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5996 | # Generated automatically by configure. |
| 5997 | # Run this file to recreate the current configuration. |
| 5998 | # This directory was configured as follows, |
| 5999 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 6000 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6001 | # $0 $ac_configure_args |
| 6002 | # |
| 6003 | # Compiler output produced by configure, useful for debugging |
| 6004 | # configure, is in ./config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6005 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6006 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6007 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6008 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6009 | case "\$ac_option" in |
| 6010 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6011 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 6012 | 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] | 6013 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 6014 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6015 | exit 0 ;; |
| 6016 | -help | --help | --hel | --he | --h) |
| 6017 | echo "\$ac_cs_usage"; exit 0 ;; |
| 6018 | *) echo "\$ac_cs_usage"; exit 1 ;; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6019 | esac |
| 6020 | done |
| 6021 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6022 | ac_given_srcdir=$srcdir |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6023 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 6024 | trap 'rm -fr `echo "Makefile \ |
| 6025 | Objects/Makefile \ |
| 6026 | Parser/Makefile \ |
Sjoerd Mullender | a179503 | 2000-08-17 11:41:06 +0000 | [diff] [blame] | 6027 | Grammar/Makefile \ |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 6028 | Python/Makefile \ |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 6029 | Modules/Makefile.pre \ |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 6030 | 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] | 6031 | EOF |
| 6032 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6033 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6034 | # Protect against being on the right side of a sed subst in config.status. |
| 6035 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 6036 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6037 | $ac_vpsub |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6038 | $extrasub |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 6039 | s%@SHELL@%$SHELL%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6040 | s%@CFLAGS@%$CFLAGS%g |
| 6041 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 6042 | s%@CXXFLAGS@%$CXXFLAGS%g |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 6043 | s%@FFLAGS@%$FFLAGS%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6044 | s%@DEFS@%$DEFS%g |
| 6045 | s%@LDFLAGS@%$LDFLAGS%g |
| 6046 | s%@LIBS@%$LIBS%g |
| 6047 | s%@exec_prefix@%$exec_prefix%g |
| 6048 | s%@prefix@%$prefix%g |
| 6049 | s%@program_transform_name@%$program_transform_name%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6050 | s%@bindir@%$bindir%g |
| 6051 | s%@sbindir@%$sbindir%g |
| 6052 | s%@libexecdir@%$libexecdir%g |
| 6053 | s%@datadir@%$datadir%g |
| 6054 | s%@sysconfdir@%$sysconfdir%g |
| 6055 | s%@sharedstatedir@%$sharedstatedir%g |
| 6056 | s%@localstatedir@%$localstatedir%g |
| 6057 | s%@libdir@%$libdir%g |
| 6058 | s%@includedir@%$includedir%g |
| 6059 | s%@oldincludedir@%$oldincludedir%g |
| 6060 | s%@infodir@%$infodir%g |
| 6061 | s%@mandir@%$mandir%g |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 6062 | s%@VERSION@%$VERSION%g |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 6063 | s%@MACHDEP@%$MACHDEP%g |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 6064 | s%@SGI_ABI@%$SGI_ABI%g |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 6065 | s%@SET_CXX@%$SET_CXX%g |
| 6066 | s%@MAINOBJ@%$MAINOBJ%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6067 | s%@CC@%$CC%g |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 6068 | s%@EXE@%$EXE%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 6069 | s%@MAKE_LDLIBRARY@%$MAKE_LDLIBRARY%g |
| 6070 | s%@LDLIBRARY@%$LDLIBRARY%g |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 6071 | s%@LINKCC@%$LINKCC%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6072 | s%@RANLIB@%$RANLIB%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6073 | s%@AR@%$AR%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 6074 | s%@INSTALL@%$INSTALL%g |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6075 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 6076 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6077 | s%@LN@%$LN%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 6078 | s%@OPT@%$OPT%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6079 | s%@CPP@%$CPP%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 6080 | s%@LIBTOOL_CRUFT@%$LIBTOOL_CRUFT%g |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 6081 | s%@SO@%$SO%g |
| 6082 | s%@LDSHARED@%$LDSHARED%g |
| 6083 | s%@CCSHARED@%$CCSHARED%g |
| 6084 | s%@LINKFORSHARED@%$LINKFORSHARED%g |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 6085 | s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 6086 | s%@LDLAST@%$LDLAST%g |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 6087 | s%@USE_GC_MODULE@%$USE_GC_MODULE%g |
Fred Drake | a50d6ec | 2000-08-31 16:13:20 +0000 | [diff] [blame] | 6088 | s%@USE_BSDDB_MODULE@%$USE_BSDDB_MODULE%g |
Skip Montanaro | ed33c9a | 2000-09-08 02:17:15 +0000 | [diff] [blame] | 6089 | s%@HAVE_LIBDB@%$HAVE_LIBDB%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6090 | s%@DLINCLDIR@%$DLINCLDIR%g |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 6091 | s%@DYNLOADFILE@%$DYNLOADFILE%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6092 | s%@LIBOBJS@%$LIBOBJS%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6093 | s%@HAVE_GETHOSTBYNAME_R_6_ARG@%$HAVE_GETHOSTBYNAME_R_6_ARG%g |
| 6094 | s%@HAVE_GETHOSTBYNAME_R_5_ARG@%$HAVE_GETHOSTBYNAME_R_5_ARG%g |
| 6095 | 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] | 6096 | s%@HAVE_GETHOSTBYNAME_R@%$HAVE_GETHOSTBYNAME_R%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6097 | s%@HAVE_GETHOSTBYNAME@%$HAVE_GETHOSTBYNAME%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6098 | s%@LIBM@%$LIBM%g |
| 6099 | s%@LIBC@%$LIBC%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6100 | |
| 6101 | CEOF |
| 6102 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6103 | |
| 6104 | cat >> $CONFIG_STATUS <<\EOF |
| 6105 | |
| 6106 | # Split the substitutions into bite-sized pieces for seds with |
| 6107 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 6108 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 6109 | ac_file=1 # Number of current file. |
| 6110 | ac_beg=1 # First line for current file. |
| 6111 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 6112 | ac_more_lines=: |
| 6113 | ac_sed_cmds="" |
| 6114 | while $ac_more_lines; do |
| 6115 | if test $ac_beg -gt 1; then |
| 6116 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 6117 | else |
| 6118 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 6119 | fi |
| 6120 | if test ! -s conftest.s$ac_file; then |
| 6121 | ac_more_lines=false |
| 6122 | rm -f conftest.s$ac_file |
| 6123 | else |
| 6124 | if test -z "$ac_sed_cmds"; then |
| 6125 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 6126 | else |
| 6127 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 6128 | fi |
| 6129 | ac_file=`expr $ac_file + 1` |
| 6130 | ac_beg=$ac_end |
| 6131 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 6132 | fi |
| 6133 | done |
| 6134 | if test -z "$ac_sed_cmds"; then |
| 6135 | ac_sed_cmds=cat |
| 6136 | fi |
| 6137 | EOF |
| 6138 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6139 | cat >> $CONFIG_STATUS <<EOF |
| 6140 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 6141 | CONFIG_FILES=\${CONFIG_FILES-"Makefile \ |
| 6142 | Objects/Makefile \ |
| 6143 | Parser/Makefile \ |
Sjoerd Mullender | a179503 | 2000-08-17 11:41:06 +0000 | [diff] [blame] | 6144 | Grammar/Makefile \ |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 6145 | Python/Makefile \ |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 6146 | Modules/Makefile.pre \ |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 6147 | Modules/Setup.config"} |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6148 | EOF |
| 6149 | cat >> $CONFIG_STATUS <<\EOF |
| 6150 | 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] | 6151 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6152 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6153 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6154 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 6155 | *) ac_file_in="${ac_file}.in" ;; |
| 6156 | esac |
| 6157 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6158 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6159 | |
| 6160 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 6161 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 6162 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 6163 | # The file is in a subdirectory. |
| 6164 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6165 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6166 | # A "../" for each directory in $ac_dir_suffix. |
| 6167 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 6168 | else |
| 6169 | ac_dir_suffix= ac_dots= |
| 6170 | fi |
| 6171 | |
| 6172 | case "$ac_given_srcdir" in |
| 6173 | .) srcdir=. |
| 6174 | if test -z "$ac_dots"; then top_srcdir=. |
| 6175 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 6176 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 6177 | *) # Relative path. |
| 6178 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 6179 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 6180 | esac |
| 6181 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6182 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6183 | echo creating "$ac_file" |
| 6184 | rm -f "$ac_file" |
| 6185 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 6186 | case "$ac_file" in |
| 6187 | *Makefile*) ac_comsub="1i\\ |
| 6188 | # $configure_input" ;; |
| 6189 | *) ac_comsub= ;; |
| 6190 | esac |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6191 | |
| 6192 | 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] | 6193 | sed -e "$ac_comsub |
| 6194 | s%@configure_input@%$configure_input%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6195 | s%@srcdir@%$srcdir%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6196 | s%@top_srcdir@%$top_srcdir%g |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6197 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6198 | fi; done |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6199 | rm -f conftest.s* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6200 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6201 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 6202 | # 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] | 6203 | # |
| 6204 | # ac_d sets the value in "#define NAME VALUE" lines. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6205 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 6206 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6207 | ac_dC='\3' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6208 | ac_dD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6209 | # 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] | 6210 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 6211 | ac_uB='\([ ]\)%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6212 | ac_uC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6213 | ac_uD='\4%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6214 | # 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] | 6215 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 6216 | ac_eB='$%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6217 | ac_eC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6218 | ac_eD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6219 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6220 | if test "${CONFIG_HEADERS+set}" != set; then |
| 6221 | EOF |
| 6222 | cat >> $CONFIG_STATUS <<EOF |
| 6223 | CONFIG_HEADERS="config.h" |
| 6224 | EOF |
| 6225 | cat >> $CONFIG_STATUS <<\EOF |
| 6226 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6227 | 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] | 6228 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6229 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6230 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6231 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 6232 | *) ac_file_in="${ac_file}.in" ;; |
| 6233 | esac |
| 6234 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6235 | echo creating $ac_file |
| 6236 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6237 | rm -f conftest.frag conftest.in conftest.out |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6238 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 6239 | cat $ac_file_inputs > conftest.in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6240 | |
| 6241 | EOF |
| 6242 | |
| 6243 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 6244 | # 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] | 6245 | # 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] | 6246 | # Protect against being in an unquoted here document in config.status. |
| 6247 | rm -f conftest.vals |
| 6248 | cat > conftest.hdr <<\EOF |
| 6249 | s/[\\&%]/\\&/g |
| 6250 | s%[\\$`]%\\&%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6251 | 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] | 6252 | s%ac_d%ac_u%gp |
| 6253 | s%ac_u%ac_e%gp |
| 6254 | EOF |
| 6255 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 6256 | rm -f conftest.hdr |
| 6257 | |
| 6258 | # This sed command replaces #undef with comments. This is necessary, for |
| 6259 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 6260 | # on some systems where configure will not decide to define it. |
| 6261 | cat >> conftest.vals <<\EOF |
| 6262 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 6263 | EOF |
| 6264 | |
| 6265 | # Break up conftest.vals because some shells have a limit on |
| 6266 | # 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] | 6267 | |
| 6268 | rm -f conftest.tail |
| 6269 | while : |
| 6270 | do |
| 6271 | ac_lines=`grep -c . conftest.vals` |
| 6272 | # grep -c gives empty output for an empty file on some AIX systems. |
| 6273 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 6274 | # Write a limited-size here document to conftest.frag. |
| 6275 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 6276 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 6277 | echo 'CEOF |
| 6278 | sed -f conftest.frag conftest.in > conftest.out |
| 6279 | rm -f conftest.in |
| 6280 | mv conftest.out conftest.in |
| 6281 | ' >> $CONFIG_STATUS |
| 6282 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 6283 | rm -f conftest.vals |
| 6284 | mv conftest.tail conftest.vals |
| 6285 | done |
| 6286 | rm -f conftest.vals |
| 6287 | |
| 6288 | cat >> $CONFIG_STATUS <<\EOF |
| 6289 | rm -f conftest.frag conftest.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6290 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6291 | cat conftest.in >> conftest.h |
| 6292 | rm -f conftest.in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6293 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6294 | echo "$ac_file is unchanged" |
| 6295 | rm -f conftest.h |
| 6296 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6297 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 6298 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 6299 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 6300 | # The file is in a subdirectory. |
| 6301 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 6302 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6303 | rm -f $ac_file |
| 6304 | mv conftest.h $ac_file |
| 6305 | fi |
| 6306 | fi; done |
| 6307 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6308 | EOF |
| 6309 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6310 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6311 | EOF |
| 6312 | cat >> $CONFIG_STATUS <<\EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6313 | |
| 6314 | exit 0 |
| 6315 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6316 | chmod +x $CONFIG_STATUS |
| 6317 | rm -fr confdefs* $ac_clean_files |
Jeremy Hylton | 1bac645 | 2000-09-26 16:57:37 +0000 | [diff] [blame] | 6318 | 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] | 6319 | |