Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2 | |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3 | # From configure.in Revision: 1.227 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5 | # Guess values for system-dependent variables and create Makefiles. |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6 | # Generated automatically using autoconf version 2.13 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8 | # |
| 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12 | # Defaults: |
| 13 | ac_help= |
| 14 | ac_default_prefix=/usr/local |
| 15 | # Any additions from configure.in: |
| 16 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 17 | --with-next-archs='arch1 arch2 ..' build MAB binary" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 18 | ac_help="$ac_help |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 19 | --with-next-framework Build (OpenStep|Rhapsody|MacOSX|Darwin) framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 20 | ac_help="$ac_help |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 21 | --with-dyld Use (OpenStep|Rhapsody|MacOSX|Darwin) dynamic linker" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 22 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 23 | --without-gcc never use gcc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 25 | --with-cxx=<compiler> enable C++ support" |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 26 | ac_help="$ac_help |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 27 | --with-suffix=.exe set executable suffix" |
| 28 | ac_help="$ac_help |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 29 | --with-pydebug build with Py_DEBUG defined" |
| 30 | ac_help="$ac_help |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 31 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 32 | --disable-ipv6 Disable ipv6 support" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 33 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 34 | --with-libs='lib1 ...' link against additional libs" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 35 | ac_help="$ac_help |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 36 | --with-signal-module disable/enable signal module" |
| 37 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 38 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 39 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 40 | --with(out)-threads[=DIRECTORY] disable/enable thread support" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 41 | ac_help="$ac_help |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 42 | --with(out)-thread[=DIRECTORY] deprecated; use --with(out)-threads" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 43 | ac_help="$ac_help |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 44 | --with-pth use GNU pth threading libraries" |
| 45 | ac_help="$ac_help |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 46 | --with(out)-cycle-gc disable/enable garbage collection" |
| 47 | ac_help="$ac_help |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 48 | --with(out)-pymalloc disable/enable specialized mallocs" |
| 49 | ac_help="$ac_help |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 50 | --with-wctype-functions use wctype.h functions" |
| 51 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 52 | --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 53 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 54 | --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 55 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 56 | --with-fpectl enable SIGFPE catching" |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 57 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 58 | --with-libm=STRING math library" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 59 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 60 | --with-libc=STRING C library" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 61 | ac_help="$ac_help |
| 62 | --enable-unicode[=ucs2,ucs4] Enable Unicode strings (default is yes)" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 63 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 64 | # Initialize some variables set by options. |
| 65 | # The variables have the same names as the options, with |
| 66 | # dashes changed to underlines. |
| 67 | build=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 68 | cache_file=./config.cache |
| 69 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 70 | host=NONE |
| 71 | no_create= |
| 72 | nonopt=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 73 | no_recursion= |
| 74 | prefix=NONE |
| 75 | program_prefix=NONE |
| 76 | program_suffix=NONE |
| 77 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 78 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 79 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 80 | srcdir= |
| 81 | target=NONE |
| 82 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 83 | x_includes=NONE |
| 84 | x_libraries=NONE |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 85 | bindir='${exec_prefix}/bin' |
| 86 | sbindir='${exec_prefix}/sbin' |
| 87 | libexecdir='${exec_prefix}/libexec' |
| 88 | datadir='${prefix}/share' |
| 89 | sysconfdir='${prefix}/etc' |
| 90 | sharedstatedir='${prefix}/com' |
| 91 | localstatedir='${prefix}/var' |
| 92 | libdir='${exec_prefix}/lib' |
| 93 | includedir='${prefix}/include' |
| 94 | oldincludedir='/usr/include' |
| 95 | infodir='${prefix}/info' |
| 96 | mandir='${prefix}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 97 | |
| 98 | # Initialize some other variables. |
| 99 | subdirs= |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 100 | MFLAGS= MAKEFLAGS= |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 101 | SHELL=${CONFIG_SHELL-/bin/sh} |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 102 | # Maximum number of lines to put in a shell here document. |
| 103 | ac_max_here_lines=12 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 104 | |
| 105 | ac_prev= |
| 106 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 107 | do |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 108 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 109 | # If the previous option needs an argument, assign it. |
| 110 | if test -n "$ac_prev"; then |
| 111 | eval "$ac_prev=\$ac_option" |
| 112 | ac_prev= |
| 113 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 114 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 115 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 116 | case "$ac_option" in |
| 117 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 118 | *) ac_optarg= ;; |
| 119 | esac |
| 120 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 121 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 122 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 123 | case "$ac_option" in |
| 124 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 125 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 126 | ac_prev=bindir ;; |
| 127 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 128 | bindir="$ac_optarg" ;; |
| 129 | |
| 130 | -build | --build | --buil | --bui | --bu) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 131 | ac_prev=build ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 132 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 133 | build="$ac_optarg" ;; |
| 134 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 135 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 136 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 137 | ac_prev=cache_file ;; |
| 138 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 139 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 140 | cache_file="$ac_optarg" ;; |
| 141 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 142 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 143 | ac_prev=datadir ;; |
| 144 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 145 | | --da=*) |
| 146 | datadir="$ac_optarg" ;; |
| 147 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 148 | -disable-* | --disable-*) |
| 149 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 150 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 151 | 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] | 152 | { 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] | 153 | fi |
| 154 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 155 | eval "enable_${ac_feature}=no" ;; |
| 156 | |
| 157 | -enable-* | --enable-*) |
| 158 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 159 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 160 | 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] | 161 | { 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] | 162 | fi |
| 163 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 164 | case "$ac_option" in |
| 165 | *=*) ;; |
| 166 | *) ac_optarg=yes ;; |
| 167 | esac |
| 168 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 169 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 170 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 171 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 172 | | --exec | --exe | --ex) |
| 173 | ac_prev=exec_prefix ;; |
| 174 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 175 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 176 | | --exec=* | --exe=* | --ex=*) |
| 177 | exec_prefix="$ac_optarg" ;; |
| 178 | |
| 179 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 180 | # Obsolete; use --with-gas. |
| 181 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 182 | |
| 183 | -help | --help | --hel | --he) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 184 | # Omit some internal or obsolete options to make the list less imposing. |
| 185 | # 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] | 186 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 187 | Usage: configure [options] [host] |
| 188 | Options: [defaults in brackets after descriptions] |
| 189 | Configuration: |
| 190 | --cache-file=FILE cache test results in FILE |
| 191 | --help print this message |
| 192 | --no-create do not create output files |
| 193 | --quiet, --silent do not print \`checking...' messages |
| 194 | --version print the version of autoconf that created configure |
| 195 | Directory and file names: |
| 196 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 197 | [$ac_default_prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 198 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 199 | [same as prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 200 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 201 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 202 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 203 | --datadir=DIR read-only architecture-independent data in DIR |
| 204 | [PREFIX/share] |
| 205 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 206 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 207 | [PREFIX/com] |
| 208 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 209 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 210 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 211 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 212 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 213 | --mandir=DIR man documentation in DIR [PREFIX/man] |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 214 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 215 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 216 | --program-suffix=SUFFIX append SUFFIX to installed program names |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 217 | --program-transform-name=PROGRAM |
| 218 | run sed PROGRAM on installed program names |
| 219 | EOF |
| 220 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 221 | Host type: |
| 222 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 223 | --host=HOST configure for HOST [guessed] |
| 224 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 225 | Features and packages: |
| 226 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 227 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 228 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 229 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 230 | --x-includes=DIR X include files are in DIR |
| 231 | --x-libraries=DIR X library files are in DIR |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 232 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 233 | if test -n "$ac_help"; then |
| 234 | echo "--enable and --with options recognized:$ac_help" |
| 235 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 236 | exit 0 ;; |
| 237 | |
| 238 | -host | --host | --hos | --ho) |
| 239 | ac_prev=host ;; |
| 240 | -host=* | --host=* | --hos=* | --ho=*) |
| 241 | host="$ac_optarg" ;; |
| 242 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 243 | -includedir | --includedir | --includedi | --included | --include \ |
| 244 | | --includ | --inclu | --incl | --inc) |
| 245 | ac_prev=includedir ;; |
| 246 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 247 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 248 | includedir="$ac_optarg" ;; |
| 249 | |
| 250 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 251 | ac_prev=infodir ;; |
| 252 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 253 | infodir="$ac_optarg" ;; |
| 254 | |
| 255 | -libdir | --libdir | --libdi | --libd) |
| 256 | ac_prev=libdir ;; |
| 257 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 258 | libdir="$ac_optarg" ;; |
| 259 | |
| 260 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 261 | | --libexe | --libex | --libe) |
| 262 | ac_prev=libexecdir ;; |
| 263 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 264 | | --libexe=* | --libex=* | --libe=*) |
| 265 | libexecdir="$ac_optarg" ;; |
| 266 | |
| 267 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 268 | | --localstate | --localstat | --localsta | --localst \ |
| 269 | | --locals | --local | --loca | --loc | --lo) |
| 270 | ac_prev=localstatedir ;; |
| 271 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 272 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 273 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 274 | localstatedir="$ac_optarg" ;; |
| 275 | |
| 276 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 277 | ac_prev=mandir ;; |
| 278 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 279 | mandir="$ac_optarg" ;; |
| 280 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 281 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 282 | # Obsolete; use --without-fp. |
| 283 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 284 | |
| 285 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 286 | | --no-cr | --no-c) |
| 287 | no_create=yes ;; |
| 288 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 289 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 290 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 291 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 292 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 293 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 294 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 295 | | --oldin | --oldi | --old | --ol | --o) |
| 296 | ac_prev=oldincludedir ;; |
| 297 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 298 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 299 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 300 | oldincludedir="$ac_optarg" ;; |
| 301 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 302 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 303 | ac_prev=prefix ;; |
| 304 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 305 | prefix="$ac_optarg" ;; |
| 306 | |
| 307 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 308 | | --program-pre | --program-pr | --program-p) |
| 309 | ac_prev=program_prefix ;; |
| 310 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 311 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 312 | program_prefix="$ac_optarg" ;; |
| 313 | |
| 314 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 315 | | --program-suf | --program-su | --program-s) |
| 316 | ac_prev=program_suffix ;; |
| 317 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 318 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 319 | program_suffix="$ac_optarg" ;; |
| 320 | |
| 321 | -program-transform-name | --program-transform-name \ |
| 322 | | --program-transform-nam | --program-transform-na \ |
| 323 | | --program-transform-n | --program-transform- \ |
| 324 | | --program-transform | --program-transfor \ |
| 325 | | --program-transfo | --program-transf \ |
| 326 | | --program-trans | --program-tran \ |
| 327 | | --progr-tra | --program-tr | --program-t) |
| 328 | ac_prev=program_transform_name ;; |
| 329 | -program-transform-name=* | --program-transform-name=* \ |
| 330 | | --program-transform-nam=* | --program-transform-na=* \ |
| 331 | | --program-transform-n=* | --program-transform-=* \ |
| 332 | | --program-transform=* | --program-transfor=* \ |
| 333 | | --program-transfo=* | --program-transf=* \ |
| 334 | | --program-trans=* | --program-tran=* \ |
| 335 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 336 | program_transform_name="$ac_optarg" ;; |
| 337 | |
| 338 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 339 | | -silent | --silent | --silen | --sile | --sil) |
| 340 | silent=yes ;; |
| 341 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 342 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 343 | ac_prev=sbindir ;; |
| 344 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 345 | | --sbi=* | --sb=*) |
| 346 | sbindir="$ac_optarg" ;; |
| 347 | |
| 348 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 349 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 350 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 351 | | --sha | --sh) |
| 352 | ac_prev=sharedstatedir ;; |
| 353 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 354 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 355 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 356 | | --sha=* | --sh=*) |
| 357 | sharedstatedir="$ac_optarg" ;; |
| 358 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 359 | -site | --site | --sit) |
| 360 | ac_prev=site ;; |
| 361 | -site=* | --site=* | --sit=*) |
| 362 | site="$ac_optarg" ;; |
| 363 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 364 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 365 | ac_prev=srcdir ;; |
| 366 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 367 | srcdir="$ac_optarg" ;; |
| 368 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 369 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 370 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 371 | ac_prev=sysconfdir ;; |
| 372 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 373 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 374 | sysconfdir="$ac_optarg" ;; |
| 375 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 376 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 377 | ac_prev=target ;; |
| 378 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 379 | target="$ac_optarg" ;; |
| 380 | |
| 381 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 382 | verbose=yes ;; |
| 383 | |
| 384 | -version | --version | --versio | --versi | --vers) |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 385 | echo "configure generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 386 | exit 0 ;; |
| 387 | |
| 388 | -with-* | --with-*) |
| 389 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 390 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 391 | 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] | 392 | { 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] | 393 | fi |
| 394 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 395 | case "$ac_option" in |
| 396 | *=*) ;; |
| 397 | *) ac_optarg=yes ;; |
| 398 | esac |
| 399 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 400 | |
| 401 | -without-* | --without-*) |
| 402 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 403 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 404 | 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] | 405 | { 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] | 406 | fi |
| 407 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 408 | eval "with_${ac_package}=no" ;; |
| 409 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 410 | --x) |
| 411 | # Obsolete; use --with-x. |
| 412 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 413 | |
| 414 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 415 | | --x-incl | --x-inc | --x-in | --x-i) |
| 416 | ac_prev=x_includes ;; |
| 417 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 418 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 419 | x_includes="$ac_optarg" ;; |
| 420 | |
| 421 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 422 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 423 | ac_prev=x_libraries ;; |
| 424 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 425 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 426 | x_libraries="$ac_optarg" ;; |
| 427 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 428 | -*) { 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] | 429 | ;; |
| 430 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 431 | *) |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 432 | 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] | 433 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 434 | fi |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 435 | if test "x$nonopt" != xNONE; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 436 | { 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] | 437 | fi |
| 438 | nonopt="$ac_option" |
| 439 | ;; |
| 440 | |
| 441 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 442 | done |
| 443 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 444 | if test -n "$ac_prev"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 445 | { 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] | 446 | fi |
| 447 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 448 | 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] | 449 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 450 | # File descriptor usage: |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 451 | # 0 standard input |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 452 | # 1 file creation |
| 453 | # 2 errors and warnings |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 454 | # 3 some systems may open it to /dev/tty |
| 455 | # 4 used on the Kubota Titan |
| 456 | # 6 checking for... messages and results |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 457 | # 5 compiler messages saved in config.log |
| 458 | if test "$silent" = yes; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 459 | exec 6>/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 460 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 461 | exec 6>&1 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 462 | fi |
| 463 | exec 5>./config.log |
| 464 | |
| 465 | echo "\ |
| 466 | This file contains any messages produced by compilers while |
| 467 | running configure, to aid debugging if configure makes a mistake. |
| 468 | " 1>&5 |
| 469 | |
| 470 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 471 | # Also quote any args containing shell metacharacters. |
| 472 | ac_configure_args= |
| 473 | for ac_arg |
| 474 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 475 | case "$ac_arg" in |
| 476 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 477 | | --no-cr | --no-c) ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 478 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 479 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 480 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 481 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 482 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 483 | esac |
| 484 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 485 | |
| 486 | # NLS nuisances. |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 487 | # Only set these to C if already set. These must not be set unconditionally |
| 488 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 489 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 490 | # Non-C LC_CTYPE values break the ctype check. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 491 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 492 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 493 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 494 | 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] | 495 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 496 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 497 | rm -rf conftest* confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 498 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 499 | echo > confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 500 | |
| 501 | # A filename unique to this package, relative to the directory that |
| 502 | # 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] | 503 | ac_unique_file=Include/object.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 504 | |
| 505 | # Find the source files, if location was not specified. |
| 506 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 507 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 508 | # Try the directory containing this script, then its parent. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 509 | ac_prog=$0 |
| 510 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 511 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 512 | srcdir=$ac_confdir |
| 513 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 514 | srcdir=.. |
| 515 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 516 | else |
| 517 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 518 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 519 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 520 | if test "$ac_srcdir_defaulted" = yes; then |
| 521 | { 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] | 522 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 523 | { 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] | 524 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 525 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 526 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 527 | |
| 528 | # Prefer explicitly selected file to automatically selected ones. |
| 529 | if test -z "$CONFIG_SITE"; then |
| 530 | if test "x$prefix" != xNONE; then |
| 531 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 532 | else |
| 533 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 534 | fi |
| 535 | fi |
| 536 | for ac_site_file in $CONFIG_SITE; do |
| 537 | if test -r "$ac_site_file"; then |
| 538 | echo "loading site script $ac_site_file" |
| 539 | . "$ac_site_file" |
| 540 | fi |
| 541 | done |
| 542 | |
| 543 | if test -r "$cache_file"; then |
| 544 | echo "loading cache $cache_file" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 545 | . $cache_file |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 546 | else |
| 547 | echo "creating cache $cache_file" |
| 548 | > $cache_file |
| 549 | fi |
| 550 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 551 | ac_ext=c |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 552 | # 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] | 553 | ac_cpp='$CPP $CPPFLAGS' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 554 | 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] | 555 | 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] | 556 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 557 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 558 | ac_exeext= |
| 559 | ac_objext=o |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 560 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 561 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 562 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 563 | ac_n= ac_c=' |
| 564 | ' ac_t=' ' |
| 565 | else |
| 566 | ac_n=-n ac_c= ac_t= |
| 567 | fi |
| 568 | else |
| 569 | ac_n= ac_c='\c' ac_t= |
| 570 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 571 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 572 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 573 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 574 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 575 | # Set VERSION so we only need to edit in one place (i.e., here) |
| 576 | |
Guido van Rossum | 6db412b | 2001-04-18 04:37:57 +0000 | [diff] [blame] | 577 | VERSION=2.2 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 578 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 579 | # Arguments passed to configure. |
| 580 | |
| 581 | CONFIG_ARGS="$ac_configure_args" |
| 582 | |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 583 | # NEXTSTEP|MacOSX|Darwin stuff |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 584 | 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] | 585 | |
| 586 | echo $ac_n "checking for --with-next-archs""... $ac_c" 1>&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 587 | echo "configure:588: checking for --with-next-archs" >&5 |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 588 | # Check whether --with-next-archs or --without-next-archs was given. |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 589 | if test "${with_next_archs+set}" = set; then |
| 590 | withval="$with_next_archs" |
| 591 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 592 | if test -n "$withval"; then |
| 593 | ac_arch_flags=`/usr/lib/arch_tool -archify_list $withval` |
| 594 | # GCC does not currently support multi archs on the NeXT |
| 595 | with_gcc=no |
| 596 | fi |
| 597 | echo "$ac_t""$with_next_archs" 1>&6 |
| 598 | |
| 599 | else |
| 600 | echo "$ac_t""none: using `arch`" 1>&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 601 | fi |
| 602 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 603 | |
| 604 | if test -z "$MACHDEP" |
| 605 | then |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 606 | ac_sys_system=`uname -s` |
| 607 | if test "$ac_sys_system" = "Darwin" ; then |
| 608 | ac_sys_release=`uname -r` |
| 609 | else |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 610 | set X `hostinfo | egrep '(NeXT Mach|Kernel Release).*:' | \ |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 611 | sed -e 's/://' -e 's/\./_/'` && \ |
| 612 | ac_sys_system=next && ac_sys_release=$4 |
| 613 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 614 | |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 615 | MACHDEP="$ac_sys_system$ac_sys_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 616 | fi |
| 617 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 618 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 619 | # Check whether --with-next-framework or --without-next-framework was given. |
| 620 | if test "${with_next_framework+set}" = set; then |
| 621 | withval="$with_next_framework" |
| 622 | : |
| 623 | fi |
| 624 | |
| 625 | # Check whether --with-dyld or --without-dyld was given. |
| 626 | if test "${with_dyld+set}" = set; then |
| 627 | withval="$with_dyld" |
| 628 | : |
| 629 | fi |
| 630 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 631 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 632 | # Set name for machine-dependent library files |
| 633 | |
| 634 | echo $ac_n "checking MACHDEP""... $ac_c" 1>&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 635 | echo "configure:636: checking MACHDEP" >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 636 | if test -z "$MACHDEP" |
| 637 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 638 | ac_sys_system=`uname -s` |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 639 | if test "$ac_sys_system" = "AIX" -o \ |
| 640 | "$ac_sys_system" = "Monterey64" -o \ |
| 641 | "$ac_sys_system" = "UnixWare"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 642 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 643 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 644 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 645 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 646 | ac_md_system=`echo $ac_sys_system | |
| 647 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 648 | ac_md_release=`echo $ac_sys_release | |
| 649 | tr -d '/ ' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 650 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 651 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 652 | case $MACHDEP in |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 653 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 654 | esac |
| 655 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 656 | |
| 657 | # |
| 658 | # SGI compilers allow the specification of the both the ABI and the |
| 659 | # ISA on the command line. Depending on the values of these switches, |
| 660 | # different and often incompatable code will be generated. |
| 661 | # |
| 662 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 663 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 664 | # variable is also adjusted. |
| 665 | # |
| 666 | |
| 667 | if test ! -z "$SGI_ABI" |
| 668 | then |
| 669 | CC="cc $SGI_ABI" |
| 670 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 671 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 672 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 673 | echo "$ac_t""$MACHDEP" 1>&6 |
| 674 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 675 | # checks for alternative programs |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 676 | echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 677 | echo "configure:678: checking for --without-gcc" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 678 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 679 | if test "${with_gcc+set}" = set; then |
| 680 | withval="$with_gcc" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 681 | |
| 682 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 683 | no) CC=cc |
| 684 | without_gcc=yes;; |
| 685 | yes) CC=gcc |
| 686 | without_gcc=no;; |
| 687 | *) CC=$withval |
| 688 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 689 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 690 | else |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 691 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 692 | case $ac_sys_system in |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 693 | OSF1) CC=cc |
| 694 | without_gcc=;; |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 695 | AIX*) CC=cc_r |
| 696 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 697 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 698 | case $BE_HOST_CPU in |
| 699 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 700 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 701 | without_gcc=yes |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 702 | OPT="-O -D'DL_EXPORT(RTYPE)=__declspec(dllexport) RTYPE' -D'DL_IMPORT(RTYPE)=__declspec(dllexport) RTYPE' -export pragma" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 703 | CCSHARED="-UDL_IMPORT -D'DL_IMPORT(RTYPE)=__declspec(dllimport) RTYPE'" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 704 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 705 | ;; |
| 706 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 707 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 708 | without_gcc=no |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 709 | OPT=-O |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 710 | ;; |
| 711 | *) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 712 | { echo "configure: error: Unknown BeOS platform \"$BE_HOST_CPU\"" 1>&2; exit 1; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 713 | ;; |
| 714 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 715 | AR="\$(srcdir)/Modules/ar_beos" |
| 716 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 717 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 718 | Monterey*) |
| 719 | RANLIB=: |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 720 | without_gcc= |
| 721 | ;; |
| 722 | UnixWare*) |
| 723 | RANLIB=: |
| 724 | without_gcc= |
| 725 | ;; |
| 726 | *) |
| 727 | without_gcc=no |
| 728 | ;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 729 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 730 | fi |
| 731 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 732 | echo "$ac_t""$without_gcc" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 733 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 734 | |
| 735 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 736 | MAINOBJ=python.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 737 | echo $ac_n "checking for --with-cxx=<compiler>""... $ac_c" 1>&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 738 | echo "configure:739: checking for --with-cxx=<compiler>" >&5 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 739 | # Check whether --with-cxx or --without-cxx was given. |
| 740 | if test "${with_cxx+set}" = set; then |
| 741 | withval="$with_cxx" |
| 742 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 743 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 744 | case $withval in |
| 745 | no) CXX= |
| 746 | with_cxx=no;; |
| 747 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 748 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 749 | with_cxx=$withval;; |
| 750 | esac |
| 751 | else |
| 752 | |
| 753 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 754 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 755 | |
| 756 | fi |
| 757 | |
| 758 | echo "$ac_t""$with_cxx" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 759 | |
| 760 | |
| 761 | if test "$check_cxx" = "yes" |
| 762 | then |
| 763 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 764 | do |
| 765 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 766 | set dummy $ac_prog; ac_word=$2 |
| 767 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 768 | echo "configure:769: checking for $ac_word" >&5 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 769 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
| 770 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 771 | else |
| 772 | if test -n "$CXX"; then |
| 773 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 774 | else |
| 775 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 776 | ac_dummy="$PATH" |
| 777 | for ac_dir in $ac_dummy; do |
| 778 | test -z "$ac_dir" && ac_dir=. |
| 779 | if test -f $ac_dir/$ac_word; then |
| 780 | ac_cv_prog_CXX="$ac_prog" |
| 781 | break |
| 782 | fi |
| 783 | done |
| 784 | IFS="$ac_save_ifs" |
| 785 | fi |
| 786 | fi |
| 787 | CXX="$ac_cv_prog_CXX" |
| 788 | if test -n "$CXX"; then |
| 789 | echo "$ac_t""$CXX" 1>&6 |
| 790 | else |
| 791 | echo "$ac_t""no" 1>&6 |
| 792 | fi |
| 793 | |
| 794 | test -n "$CXX" && break |
| 795 | done |
| 796 | test -n "$CXX" || CXX="notfound" |
| 797 | |
| 798 | if test "$CXX" = "notfound" |
| 799 | then |
| 800 | CXX= |
| 801 | else |
| 802 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 803 | echo "configure:804: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 804 | |
| 805 | ac_ext=C |
| 806 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 807 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 808 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 809 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 810 | cross_compiling=$ac_cv_prog_cxx_cross |
| 811 | |
| 812 | cat > conftest.$ac_ext << EOF |
| 813 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 814 | #line 815 "configure" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 815 | #include "confdefs.h" |
| 816 | |
| 817 | int main(){return(0);} |
| 818 | EOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 819 | if { (eval echo configure:820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 820 | ac_cv_prog_cxx_works=yes |
| 821 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 822 | if (./conftest; exit) 2>/dev/null; then |
| 823 | ac_cv_prog_cxx_cross=no |
| 824 | else |
| 825 | ac_cv_prog_cxx_cross=yes |
| 826 | fi |
| 827 | else |
| 828 | echo "configure: failed program was:" >&5 |
| 829 | cat conftest.$ac_ext >&5 |
| 830 | ac_cv_prog_cxx_works=no |
| 831 | fi |
| 832 | rm -fr conftest* |
| 833 | ac_ext=c |
| 834 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 835 | ac_cpp='$CPP $CPPFLAGS' |
| 836 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 837 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 838 | cross_compiling=$ac_cv_prog_cc_cross |
| 839 | |
| 840 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
| 841 | if test $ac_cv_prog_cxx_works = no; then |
| 842 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } |
| 843 | fi |
| 844 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 845 | echo "configure:846: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 846 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
| 847 | cross_compiling=$ac_cv_prog_cxx_cross |
| 848 | |
| 849 | fi |
| 850 | fi |
| 851 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 852 | # If the user switches compilers, we can't believe the cache |
| 853 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 854 | then |
| 855 | { echo "configure: error: cached CC is different -- throw away $cache_file |
| 856 | (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; } |
| 857 | fi |
| 858 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 859 | # Extract the first word of "gcc", so it can be a program name with args. |
| 860 | set dummy gcc; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 861 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 862 | echo "configure:863: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 863 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 864 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 865 | else |
| 866 | if test -n "$CC"; then |
| 867 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 868 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 869 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 870 | ac_dummy="$PATH" |
| 871 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 872 | test -z "$ac_dir" && ac_dir=. |
| 873 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 874 | ac_cv_prog_CC="gcc" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 875 | break |
| 876 | fi |
| 877 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 878 | IFS="$ac_save_ifs" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 879 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 880 | fi |
| 881 | CC="$ac_cv_prog_CC" |
| 882 | if test -n "$CC"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 883 | echo "$ac_t""$CC" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 884 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 885 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 886 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 887 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 888 | if test -z "$CC"; then |
| 889 | # Extract the first word of "cc", so it can be a program name with args. |
| 890 | set dummy cc; ac_word=$2 |
| 891 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 892 | echo "configure:893: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 893 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 894 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 895 | else |
| 896 | if test -n "$CC"; then |
| 897 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 898 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 899 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 900 | ac_prog_rejected=no |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 901 | ac_dummy="$PATH" |
| 902 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 903 | test -z "$ac_dir" && ac_dir=. |
| 904 | if test -f $ac_dir/$ac_word; then |
| 905 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 906 | ac_prog_rejected=yes |
| 907 | continue |
| 908 | fi |
| 909 | ac_cv_prog_CC="cc" |
| 910 | break |
| 911 | fi |
| 912 | done |
| 913 | IFS="$ac_save_ifs" |
| 914 | if test $ac_prog_rejected = yes; then |
| 915 | # We found a bogon in the path, so make sure we never use it. |
| 916 | set dummy $ac_cv_prog_CC |
| 917 | shift |
| 918 | if test $# -gt 0; then |
| 919 | # We chose a different compiler from the bogus one. |
| 920 | # However, it has the same basename, so the bogon will be chosen |
| 921 | # first if we set CC to just the basename; use the full file name. |
| 922 | shift |
| 923 | set dummy "$ac_dir/$ac_word" "$@" |
| 924 | shift |
| 925 | ac_cv_prog_CC="$@" |
| 926 | fi |
| 927 | fi |
| 928 | fi |
| 929 | fi |
| 930 | CC="$ac_cv_prog_CC" |
| 931 | if test -n "$CC"; then |
| 932 | echo "$ac_t""$CC" 1>&6 |
| 933 | else |
| 934 | echo "$ac_t""no" 1>&6 |
| 935 | fi |
| 936 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 937 | if test -z "$CC"; then |
| 938 | case "`uname -s`" in |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 939 | *win32* | *WIN32*) |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 940 | # Extract the first word of "cl", so it can be a program name with args. |
| 941 | set dummy cl; ac_word=$2 |
| 942 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 943 | echo "configure:944: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 944 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 945 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 946 | else |
| 947 | if test -n "$CC"; then |
| 948 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 949 | else |
| 950 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 951 | ac_dummy="$PATH" |
| 952 | for ac_dir in $ac_dummy; do |
| 953 | test -z "$ac_dir" && ac_dir=. |
| 954 | if test -f $ac_dir/$ac_word; then |
| 955 | ac_cv_prog_CC="cl" |
| 956 | break |
| 957 | fi |
| 958 | done |
| 959 | IFS="$ac_save_ifs" |
| 960 | fi |
| 961 | fi |
| 962 | CC="$ac_cv_prog_CC" |
| 963 | if test -n "$CC"; then |
| 964 | echo "$ac_t""$CC" 1>&6 |
| 965 | else |
| 966 | echo "$ac_t""no" 1>&6 |
| 967 | fi |
| 968 | ;; |
| 969 | esac |
| 970 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 971 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 972 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 973 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 974 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 975 | echo "configure:976: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 976 | |
| 977 | ac_ext=c |
| 978 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 979 | ac_cpp='$CPP $CPPFLAGS' |
| 980 | 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] | 981 | 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] | 982 | cross_compiling=$ac_cv_prog_cc_cross |
| 983 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 984 | cat > conftest.$ac_ext << EOF |
| 985 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 986 | #line 987 "configure" |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 987 | #include "confdefs.h" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 988 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 989 | main(){return(0);} |
| 990 | EOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 991 | if { (eval echo configure:992: \"$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] | 992 | ac_cv_prog_cc_works=yes |
| 993 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 994 | if (./conftest; exit) 2>/dev/null; then |
| 995 | ac_cv_prog_cc_cross=no |
| 996 | else |
| 997 | ac_cv_prog_cc_cross=yes |
| 998 | fi |
| 999 | else |
| 1000 | echo "configure: failed program was:" >&5 |
| 1001 | cat conftest.$ac_ext >&5 |
| 1002 | ac_cv_prog_cc_works=no |
| 1003 | fi |
| 1004 | rm -fr conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1005 | ac_ext=c |
| 1006 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 1007 | ac_cpp='$CPP $CPPFLAGS' |
| 1008 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 1009 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 1010 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1011 | |
| 1012 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 1013 | if test $ac_cv_prog_cc_works = no; then |
| 1014 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 1015 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1016 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1017 | echo "configure:1018: 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] | 1018 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 1019 | cross_compiling=$ac_cv_prog_cc_cross |
| 1020 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1021 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1022 | echo "configure:1023: checking whether we are using GNU C" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1023 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1024 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1025 | else |
| 1026 | cat > conftest.c <<EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1027 | #ifdef __GNUC__ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1028 | yes; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1029 | #endif |
| 1030 | EOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1031 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1032: \"$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] | 1032 | ac_cv_prog_gcc=yes |
| 1033 | else |
| 1034 | ac_cv_prog_gcc=no |
| 1035 | fi |
| 1036 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1037 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1038 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1039 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1040 | if test $ac_cv_prog_gcc = yes; then |
| 1041 | GCC=yes |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1042 | else |
| 1043 | GCC= |
| 1044 | fi |
| 1045 | |
| 1046 | ac_test_CFLAGS="${CFLAGS+set}" |
| 1047 | ac_save_CFLAGS="$CFLAGS" |
| 1048 | CFLAGS= |
| 1049 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1050 | echo "configure:1051: checking whether ${CC-cc} accepts -g" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1051 | 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] | 1052 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1053 | else |
| 1054 | echo 'void f(){}' > conftest.c |
| 1055 | 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] | 1056 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1057 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1058 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1059 | fi |
| 1060 | rm -f conftest* |
| 1061 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1062 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1063 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1064 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1065 | if test "$ac_test_CFLAGS" = set; then |
| 1066 | CFLAGS="$ac_save_CFLAGS" |
| 1067 | elif test $ac_cv_prog_cc_g = yes; then |
| 1068 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1069 | CFLAGS="-g -O2" |
| 1070 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1071 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1072 | fi |
| 1073 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1074 | if test "$GCC" = yes; then |
| 1075 | CFLAGS="-O2" |
| 1076 | else |
| 1077 | CFLAGS= |
| 1078 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1079 | fi |
| 1080 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1081 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1082 | echo "configure:1083: checking for Cygwin environment" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1083 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
| 1084 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1085 | else |
| 1086 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1087 | #line 1088 "configure" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1088 | #include "confdefs.h" |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1089 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1090 | int main() { |
| 1091 | |
| 1092 | #ifndef __CYGWIN__ |
| 1093 | #define __CYGWIN__ __CYGWIN32__ |
| 1094 | #endif |
| 1095 | return __CYGWIN__; |
| 1096 | ; return 0; } |
| 1097 | EOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1098 | if { (eval echo configure:1099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1099 | rm -rf conftest* |
| 1100 | ac_cv_cygwin=yes |
| 1101 | else |
| 1102 | echo "configure: failed program was:" >&5 |
| 1103 | cat conftest.$ac_ext >&5 |
| 1104 | rm -rf conftest* |
| 1105 | ac_cv_cygwin=no |
| 1106 | fi |
| 1107 | rm -f conftest* |
| 1108 | rm -f conftest* |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1109 | fi |
| 1110 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1111 | echo "$ac_t""$ac_cv_cygwin" 1>&6 |
| 1112 | CYGWIN= |
| 1113 | test "$ac_cv_cygwin" = yes && CYGWIN=yes |
| 1114 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1115 | echo "configure:1116: checking for mingw32 environment" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1116 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
| 1117 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1118 | else |
| 1119 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1120 | #line 1121 "configure" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1121 | #include "confdefs.h" |
| 1122 | |
| 1123 | int main() { |
| 1124 | return __MINGW32__; |
| 1125 | ; return 0; } |
| 1126 | EOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1127 | if { (eval echo configure:1128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1128 | rm -rf conftest* |
| 1129 | ac_cv_mingw32=yes |
| 1130 | else |
| 1131 | echo "configure: failed program was:" >&5 |
| 1132 | cat conftest.$ac_ext >&5 |
| 1133 | rm -rf conftest* |
| 1134 | ac_cv_mingw32=no |
| 1135 | fi |
| 1136 | rm -f conftest* |
| 1137 | rm -f conftest* |
| 1138 | fi |
| 1139 | |
| 1140 | echo "$ac_t""$ac_cv_mingw32" 1>&6 |
| 1141 | MINGW32= |
| 1142 | test "$ac_cv_mingw32" = yes && MINGW32=yes |
| 1143 | |
| 1144 | |
| 1145 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1146 | echo "configure:1147: checking for executable suffix" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1147 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
| 1148 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1149 | else |
| 1150 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 1151 | ac_cv_exeext=.exe |
| 1152 | else |
| 1153 | rm -f conftest* |
| 1154 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 1155 | ac_cv_exeext= |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1156 | if { (eval echo configure:1157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1157 | for file in conftest.*; do |
| 1158 | case $file in |
| 1159 | *.c | *.o | *.obj) ;; |
| 1160 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
| 1161 | esac |
| 1162 | done |
| 1163 | else |
| 1164 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } |
| 1165 | fi |
| 1166 | rm -f conftest* |
| 1167 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no |
| 1168 | fi |
| 1169 | fi |
| 1170 | |
| 1171 | EXEEXT="" |
| 1172 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} |
| 1173 | echo "$ac_t""${ac_cv_exeext}" 1>&6 |
| 1174 | ac_exeext=$EXEEXT |
| 1175 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 1176 | echo $ac_n "checking for --with-suffix""... $ac_c" 1>&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1177 | echo "configure:1178: checking for --with-suffix" >&5 |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 1178 | # Check whether --with-suffix or --without-suffix was given. |
| 1179 | if test "${with_suffix+set}" = set; then |
| 1180 | withval="$with_suffix" |
| 1181 | |
| 1182 | case $withval in |
| 1183 | no) EXEEXT=;; |
| 1184 | yes) EXEEXT=.exe;; |
| 1185 | *) EXEEXT=$withval;; |
| 1186 | esac |
| 1187 | fi |
| 1188 | |
| 1189 | echo "$ac_t""$EXEEXT" 1>&6 |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1190 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 1191 | case $MACHDEP in |
| 1192 | bsdos*) |
| 1193 | case $CC in |
| 1194 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 1195 | esac;; |
| 1196 | esac |
| 1197 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1198 | case $ac_sys_system in |
| 1199 | hp*|HP*) |
| 1200 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 1201 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1202 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1203 | Monterey*) |
| 1204 | case $CC in |
| 1205 | cc) CC="$CC -Wl,-Bexport";; |
| 1206 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 1207 | SunOS*) |
| 1208 | # Some functions have a prototype only with that define, e.g. confstr |
| 1209 | cat >> confdefs.h <<\EOF |
| 1210 | #define __EXTENSIONS__ 1 |
| 1211 | EOF |
| 1212 | |
| 1213 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1214 | esac |
| 1215 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1216 | |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 1217 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1218 | echo $ac_n "checking LIBRARY""... $ac_c" 1>&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1219 | echo "configure:1220: checking LIBRARY" >&5 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1220 | if test -z "$LIBRARY" |
| 1221 | then |
| 1222 | LIBRARY='libpython$(VERSION).a' |
| 1223 | fi |
| 1224 | echo "$ac_t""$LIBRARY" 1>&6 |
| 1225 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1226 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 1227 | # name of the library into which to insert object files). On systems |
| 1228 | # without shared libraries, LDLIBRARY is the same as LIBRARY (defined in |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1229 | # the Makefiles). On Cygwin LDLIBRARY is the import library, DLLLIBRARY is the |
| 1230 | # shared (i.e., DLL) library. |
| 1231 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1232 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1233 | LDLIBRARY="$LIBRARY" |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 1234 | DLLLIBRARY='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1235 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1236 | # LINKCC is the command that links the python executable -- default is $(CC). |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1237 | # This is altered for AIX in order to build the export list before |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1238 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1239 | |
| 1240 | echo $ac_n "checking LINKCC""... $ac_c" 1>&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1241 | echo "configure:1242: checking LINKCC" >&5 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1242 | if test -z "$LINKCC" |
| 1243 | then |
| 1244 | case $ac_sys_system in |
| 1245 | AIX*) |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1246 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); \$(PURIFY) \$(CC)";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 1247 | dgux*) |
| 1248 | LINKCC="LD_RUN_PATH=$libdir \$(PURIFY) \$(CC)";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1249 | Monterey64*) |
| 1250 | LINKCC="\$(PURIFY) \$(CC) -L/usr/lib/ia64l64";; |
Guido van Rossum | 25f9303 | 1997-08-18 16:00:04 +0000 | [diff] [blame] | 1251 | *) LINKCC="\$(PURIFY) \$(CC)";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1252 | esac |
| 1253 | fi |
| 1254 | echo "$ac_t""$LINKCC" 1>&6 |
| 1255 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1256 | echo $ac_n "checking LDLIBRARY""... $ac_c" 1>&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1257 | echo "configure:1258: checking LDLIBRARY" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1258 | |
| 1259 | # NeXT framework builds require that the 'ar' library be converted into |
| 1260 | # a bundle using libtool. |
| 1261 | if test "$with_next_framework" |
| 1262 | then |
| 1263 | LDLIBRARY='libpython$(VERSION).dylib' |
| 1264 | fi |
| 1265 | |
| 1266 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1267 | case $MACHDEP in |
| 1268 | dguxR4) |
| 1269 | LDLIBRARY='libpython$(VERSION).so' |
| 1270 | OPT="$OPT -pic" |
| 1271 | ;; |
| 1272 | beos*) |
| 1273 | LDLIBRARY='libpython$(VERSION).so' |
| 1274 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1275 | cygwin*) |
| 1276 | LDLIBRARY='libpython$(VERSION).dll.a' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1277 | DLLLIBRARY='libpython$(VERSION).dll' |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1278 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1279 | unixware*) |
| 1280 | LDLIBRARY='libpython$(VERSION).so' |
| 1281 | ;; |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1282 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1283 | echo "$ac_t""$LDLIBRARY" 1>&6 |
| 1284 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1285 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1286 | set dummy ranlib; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1287 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1288 | echo "configure:1289: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1289 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1290 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1291 | else |
| 1292 | if test -n "$RANLIB"; then |
| 1293 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1294 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1295 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1296 | ac_dummy="$PATH" |
| 1297 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1298 | test -z "$ac_dir" && ac_dir=. |
| 1299 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1300 | ac_cv_prog_RANLIB="ranlib" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1301 | break |
| 1302 | fi |
| 1303 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1304 | IFS="$ac_save_ifs" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1305 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1306 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1307 | fi |
| 1308 | RANLIB="$ac_cv_prog_RANLIB" |
| 1309 | if test -n "$RANLIB"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1310 | echo "$ac_t""$RANLIB" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1311 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1312 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1313 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1314 | |
| 1315 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1316 | for ac_prog in ar aal |
| 1317 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1318 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1319 | set dummy $ac_prog; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1320 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1321 | echo "configure:1322: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1322 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1323 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1324 | else |
| 1325 | if test -n "$AR"; then |
| 1326 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 1327 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1328 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1329 | ac_dummy="$PATH" |
| 1330 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1331 | test -z "$ac_dir" && ac_dir=. |
| 1332 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1333 | ac_cv_prog_AR="$ac_prog" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1334 | break |
| 1335 | fi |
| 1336 | done |
| 1337 | IFS="$ac_save_ifs" |
| 1338 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1339 | fi |
| 1340 | AR="$ac_cv_prog_AR" |
| 1341 | if test -n "$AR"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1342 | echo "$ac_t""$AR" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1343 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1344 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1345 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1346 | |
| 1347 | test -n "$AR" && break |
| 1348 | done |
| 1349 | test -n "$AR" || AR="ar" |
| 1350 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 1351 | |
| 1352 | case $MACHDEP in |
| 1353 | bsdos*) |
| 1354 | # install -d does not work on BSDI |
| 1355 | if test -z "$INSTALL" |
| 1356 | then |
| 1357 | INSTALL="${srcdir}/install-sh -c" |
| 1358 | fi |
| 1359 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1360 | ac_aux_dir= |
| 1361 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1362 | if test -f $ac_dir/install-sh; then |
| 1363 | ac_aux_dir=$ac_dir |
| 1364 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1365 | break |
| 1366 | elif test -f $ac_dir/install.sh; then |
| 1367 | ac_aux_dir=$ac_dir |
| 1368 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1369 | break |
| 1370 | fi |
| 1371 | done |
| 1372 | if test -z "$ac_aux_dir"; then |
| 1373 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1374 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1375 | ac_config_guess=$ac_aux_dir/config.guess |
| 1376 | ac_config_sub=$ac_aux_dir/config.sub |
| 1377 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
| 1378 | |
| 1379 | # Find a good install program. We prefer a C program (faster), |
| 1380 | # so one script is as good as another. But avoid the broken or |
| 1381 | # incompatible versions: |
| 1382 | # SysV /etc/install, /usr/sbin/install |
| 1383 | # SunOS /usr/etc/install |
| 1384 | # IRIX /sbin/install |
| 1385 | # AIX /bin/install |
| 1386 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1387 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1388 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1389 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1390 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 1391 | echo "configure:1392: checking for a BSD compatible install" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1392 | if test -z "$INSTALL"; then |
| 1393 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 1394 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1395 | else |
| 1396 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
| 1397 | for ac_dir in $PATH; do |
| 1398 | # Account for people who put trailing slashes in PATH elements. |
| 1399 | case "$ac_dir/" in |
| 1400 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
| 1401 | *) |
| 1402 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1403 | # Don't use installbsd from OSF since it installs stuff as root |
| 1404 | # by default. |
| 1405 | for ac_prog in ginstall scoinst install; do |
| 1406 | if test -f $ac_dir/$ac_prog; then |
| 1407 | if test $ac_prog = install && |
| 1408 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
| 1409 | # AIX install. It has an incompatible calling convention. |
| 1410 | : |
| 1411 | else |
| 1412 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 1413 | break 2 |
| 1414 | fi |
| 1415 | fi |
| 1416 | done |
| 1417 | ;; |
| 1418 | esac |
| 1419 | done |
| 1420 | IFS="$ac_save_IFS" |
| 1421 | |
| 1422 | fi |
| 1423 | if test "${ac_cv_path_install+set}" = set; then |
| 1424 | INSTALL="$ac_cv_path_install" |
| 1425 | else |
| 1426 | # As a last resort, use the slow shell script. We don't cache a |
| 1427 | # path for INSTALL within a source directory, because that will |
| 1428 | # break other packages using the cache if that directory is |
| 1429 | # removed, or if the path is relative. |
| 1430 | INSTALL="$ac_install_sh" |
| 1431 | fi |
| 1432 | fi |
| 1433 | echo "$ac_t""$INSTALL" 1>&6 |
| 1434 | |
| 1435 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1436 | # It thinks the first close brace ends the variable substitution. |
| 1437 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1438 | |
| 1439 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
| 1440 | |
| 1441 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1442 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1443 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1444 | # Not every filesystem supports hard links |
| 1445 | |
| 1446 | if test -z "$LN" ; then |
| 1447 | case $ac_sys_system in |
| 1448 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1449 | CYGWIN*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1450 | *) LN=ln;; |
| 1451 | esac |
| 1452 | fi |
| 1453 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1454 | # Check for --with-pydebug |
| 1455 | echo $ac_n "checking for --with-pydebug""... $ac_c" 1>&6 |
| 1456 | echo "configure:1457: checking for --with-pydebug" >&5 |
| 1457 | # Check whether --with-pydebug or --without-pydebug was given. |
| 1458 | if test "${with_pydebug+set}" = set; then |
| 1459 | withval="$with_pydebug" |
| 1460 | |
| 1461 | if test "$withval" != no |
| 1462 | then cat >> confdefs.h <<\EOF |
| 1463 | #define Py_DEBUG 1 |
| 1464 | EOF |
| 1465 | echo "$ac_t""yes" 1>&6; Py_DEBUG='true' |
| 1466 | else echo "$ac_t""no" 1>&6; Py_DEBUG='false' |
| 1467 | fi |
| 1468 | else |
| 1469 | echo "$ac_t""no" 1>&6 |
| 1470 | fi |
| 1471 | |
| 1472 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1473 | # Optimizer/debugger flags |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1474 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1475 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1476 | then |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 1477 | case $GCC in |
| 1478 | yes) |
| 1479 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1480 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1481 | if test "$Py_DEBUG" = 'true' ; then |
| 1482 | # Optimization messes up debuggers, so turn it off for |
| 1483 | # debug builds. |
| 1484 | OPT="-g -Wall -Wstrict-prototypes" |
| 1485 | else |
| 1486 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
| 1487 | fi;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1488 | *) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1489 | OPT="-O3 -Wall -Wstrict-prototypes";; |
| 1490 | esac |
| 1491 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1492 | *) |
| 1493 | case $ac_sys_system in |
| 1494 | UnixWare*) |
| 1495 | OPT="-O -K pentium,host,inline,loop_unroll,alloca ";; |
| 1496 | *) |
| 1497 | OPT="-O";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1498 | esac |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1499 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1500 | fi |
| 1501 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1502 | # The current (beta) Monterey compiler dies with optimizations |
| 1503 | case $ac_sys_system in |
| 1504 | Monterey*) OPT="";; |
| 1505 | esac |
| 1506 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1507 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 1508 | then |
| 1509 | OPT="$OPT $ac_arch_flags" |
| 1510 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1511 | # checks for UNIX variants that set C preprocessor variables |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1512 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1513 | echo "configure:1514: checking how to run the C preprocessor" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1514 | # On Suns, sometimes $CPP names a directory. |
| 1515 | if test -n "$CPP" && test -d "$CPP"; then |
| 1516 | CPP= |
| 1517 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1518 | if test -z "$CPP"; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1519 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1520 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1521 | else |
| 1522 | # This must be in double quotes, not single quotes, because CPP may get |
| 1523 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1524 | CPP="${CC-cc} -E" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1525 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 1526 | # not just through cpp. |
| 1527 | cat > conftest.$ac_ext <<EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1528 | #line 1529 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1529 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1530 | #include <assert.h> |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1531 | Syntax Error |
| 1532 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1533 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1534 | { (eval echo configure:1535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1535 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1536 | if test -z "$ac_err"; then |
| 1537 | : |
| 1538 | else |
| 1539 | echo "$ac_err" >&5 |
| 1540 | echo "configure: failed program was:" >&5 |
| 1541 | cat conftest.$ac_ext >&5 |
| 1542 | rm -rf conftest* |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1543 | CPP="${CC-cc} -E -traditional-cpp" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1544 | cat > conftest.$ac_ext <<EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1545 | #line 1546 "configure" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1546 | #include "confdefs.h" |
| 1547 | #include <assert.h> |
| 1548 | Syntax Error |
| 1549 | EOF |
| 1550 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1551 | { (eval echo configure:1552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1552 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1553 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1554 | : |
| 1555 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1556 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1557 | echo "configure: failed program was:" >&5 |
| 1558 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1559 | rm -rf conftest* |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1560 | CPP="${CC-cc} -nologo -E" |
| 1561 | cat > conftest.$ac_ext <<EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1562 | #line 1563 "configure" |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1563 | #include "confdefs.h" |
| 1564 | #include <assert.h> |
| 1565 | Syntax Error |
| 1566 | EOF |
| 1567 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1568 | { (eval echo configure:1569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1569 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1570 | if test -z "$ac_err"; then |
| 1571 | : |
| 1572 | else |
| 1573 | echo "$ac_err" >&5 |
| 1574 | echo "configure: failed program was:" >&5 |
| 1575 | cat conftest.$ac_ext >&5 |
| 1576 | rm -rf conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1577 | CPP=/lib/cpp |
| 1578 | fi |
| 1579 | rm -f conftest* |
| 1580 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1581 | rm -f conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1582 | fi |
| 1583 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1584 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1585 | fi |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1586 | CPP="$ac_cv_prog_CPP" |
| 1587 | else |
| 1588 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1589 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1590 | echo "$ac_t""$CPP" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1591 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1592 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1593 | echo "configure:1594: checking for AIX" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1594 | cat > conftest.$ac_ext <<EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1595 | #line 1596 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1596 | #include "confdefs.h" |
| 1597 | #ifdef _AIX |
| 1598 | yes |
| 1599 | #endif |
| 1600 | |
| 1601 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1602 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1603 | egrep "yes" >/dev/null 2>&1; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1604 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1605 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1606 | #define _ALL_SOURCE 1 |
| 1607 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1608 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1609 | else |
| 1610 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1611 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1612 | fi |
| 1613 | rm -f conftest* |
| 1614 | |
| 1615 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1616 | ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1617 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1618 | echo "configure:1619: checking for minix/config.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1619 | 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] | 1620 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1621 | else |
| 1622 | cat > conftest.$ac_ext <<EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1623 | #line 1624 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1624 | #include "confdefs.h" |
| 1625 | #include <minix/config.h> |
| 1626 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1627 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1628 | { (eval echo configure:1629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1629 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1630 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1631 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1632 | eval "ac_cv_header_$ac_safe=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1633 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1634 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1635 | echo "configure: failed program was:" >&5 |
| 1636 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1637 | rm -rf conftest* |
| 1638 | eval "ac_cv_header_$ac_safe=no" |
| 1639 | fi |
| 1640 | rm -f conftest* |
| 1641 | fi |
| 1642 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1643 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1644 | MINIX=yes |
| 1645 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1646 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1647 | MINIX= |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1648 | fi |
| 1649 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1650 | if test "$MINIX" = yes; then |
| 1651 | cat >> confdefs.h <<\EOF |
| 1652 | #define _POSIX_SOURCE 1 |
| 1653 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1654 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1655 | cat >> confdefs.h <<\EOF |
| 1656 | #define _POSIX_1_SOURCE 2 |
| 1657 | EOF |
| 1658 | |
| 1659 | cat >> confdefs.h <<\EOF |
| 1660 | #define _MINIX 1 |
| 1661 | EOF |
| 1662 | |
| 1663 | fi |
| 1664 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1665 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1666 | echo $ac_n "checking whether $CC accepts -OPT:Olimit=0""... $ac_c" 1>&6 |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1667 | echo "configure:1668: checking whether $CC accepts -OPT:Olimit=0" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1668 | 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] | 1669 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1670 | else |
| 1671 | ac_save_cc="$CC" |
| 1672 | CC="$CC -OPT:Olimit=0" |
| 1673 | if test "$cross_compiling" = yes; then |
| 1674 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1675 | else |
| 1676 | cat > conftest.$ac_ext <<EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1677 | #line 1678 "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1678 | #include "confdefs.h" |
| 1679 | int main() { return 0; } |
| 1680 | EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1681 | if { (eval echo configure:1682: \"$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] | 1682 | then |
| 1683 | ac_cv_opt_olimit_ok=yes |
| 1684 | else |
| 1685 | echo "configure: failed program was:" >&5 |
| 1686 | cat conftest.$ac_ext >&5 |
| 1687 | rm -fr conftest* |
| 1688 | ac_cv_opt_olimit_ok=no |
| 1689 | fi |
| 1690 | rm -fr conftest* |
| 1691 | fi |
| 1692 | |
| 1693 | CC="$ac_save_cc" |
| 1694 | fi |
| 1695 | |
| 1696 | echo "$ac_t""$ac_cv_opt_olimit_ok" 1>&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 1697 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 1698 | case $ac_sys_system in |
| 1699 | Darwin*) OPT="$OPT" ;; |
| 1700 | *) OPT="$OPT -OPT:Olimit=0";; |
| 1701 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1702 | else |
| 1703 | echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6 |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1704 | echo "configure:1705: checking whether $CC accepts -Olimit 1500" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1705 | if eval "test \"`echo '$''{'ac_cv_olimit_ok'+set}'`\" = set"; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1706 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1707 | else |
| 1708 | ac_save_cc="$CC" |
| 1709 | CC="$CC -Olimit 1500" |
| 1710 | if test "$cross_compiling" = yes; then |
| 1711 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1712 | else |
| 1713 | cat > conftest.$ac_ext <<EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1714 | #line 1715 "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1715 | #include "confdefs.h" |
| 1716 | int main() { return 0; } |
| 1717 | EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1718 | if { (eval echo configure:1719: \"$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] | 1719 | then |
| 1720 | ac_cv_olimit_ok=yes |
| 1721 | else |
| 1722 | echo "configure: failed program was:" >&5 |
| 1723 | cat conftest.$ac_ext >&5 |
| 1724 | rm -fr conftest* |
| 1725 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 1726 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1727 | rm -fr conftest* |
| 1728 | fi |
| 1729 | |
| 1730 | CC="$ac_save_cc" |
| 1731 | fi |
| 1732 | |
| 1733 | echo "$ac_t""$ac_cv_olimit_ok" 1>&6 |
| 1734 | if test $ac_cv_olimit_ok = yes; then |
| 1735 | OPT="$OPT -Olimit 1500" |
| 1736 | fi |
| 1737 | fi |
| 1738 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1739 | # Check for enable-ipv6 |
| 1740 | OPT="$OPT -Dss_family=__ss_family -Dss_len=__ss_len" |
| 1741 | echo $ac_n "checking whether to enable ipv6""... $ac_c" 1>&6 |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1742 | echo "configure:1743: checking whether to enable ipv6" >&5 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1743 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 1744 | if test "${enable_ipv6+set}" = set; then |
| 1745 | enableval="$enable_ipv6" |
| 1746 | case "$enableval" in |
| 1747 | no) |
| 1748 | echo "$ac_t""no" 1>&6 |
| 1749 | ipv6=no |
| 1750 | ;; |
| 1751 | *) echo "$ac_t""yes" 1>&6 |
| 1752 | cat >> confdefs.h <<\EOF |
| 1753 | #define ENABLE_IPV6 1 |
| 1754 | EOF |
| 1755 | |
| 1756 | ipv6=yes |
| 1757 | ;; |
| 1758 | esac |
| 1759 | else |
| 1760 | if test "$cross_compiling" = yes; then |
| 1761 | echo "$ac_t""no" 1>&6 |
| 1762 | ipv6=no |
| 1763 | |
| 1764 | else |
| 1765 | cat > conftest.$ac_ext <<EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1766 | #line 1767 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1767 | #include "confdefs.h" |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1768 | /* AF_INET6 available check */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1769 | #include <sys/types.h> |
| 1770 | #include <sys/socket.h> |
| 1771 | main() |
| 1772 | { |
| 1773 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 1774 | exit(1); |
| 1775 | else |
| 1776 | exit(0); |
| 1777 | } |
| 1778 | |
| 1779 | EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1780 | if { (eval echo configure:1781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1781 | then |
| 1782 | echo "$ac_t""yes" 1>&6 |
| 1783 | cat >> confdefs.h <<\EOF |
| 1784 | #define ENABLE_IPV6 1 |
| 1785 | EOF |
| 1786 | |
| 1787 | ipv6=yes |
| 1788 | else |
| 1789 | echo "configure: failed program was:" >&5 |
| 1790 | cat conftest.$ac_ext >&5 |
| 1791 | rm -fr conftest* |
| 1792 | echo "$ac_t""no" 1>&6 |
| 1793 | ipv6=no |
| 1794 | fi |
| 1795 | rm -fr conftest* |
| 1796 | fi |
| 1797 | |
| 1798 | fi |
| 1799 | |
| 1800 | |
| 1801 | ipv6type=unknown |
| 1802 | ipv6lib=none |
| 1803 | ipv6trylibc=no |
| 1804 | |
| 1805 | if test "$ipv6" = "yes"; then |
| 1806 | echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6 |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1807 | echo "configure:1808: checking ipv6 stack type" >&5 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1808 | for i in inria kame linux-glibc linux-inet6 toshiba v6d zeta; do |
| 1809 | case $i in |
| 1810 | inria) |
| 1811 | cat > conftest.$ac_ext <<EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1812 | #line 1813 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1813 | #include "confdefs.h" |
| 1814 | dnl |
| 1815 | #include <netinet/in.h> |
| 1816 | #ifdef IPV6_INRIA_VERSION |
| 1817 | yes |
| 1818 | #endif |
| 1819 | EOF |
| 1820 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1821 | egrep "yes" >/dev/null 2>&1; then |
| 1822 | rm -rf conftest* |
| 1823 | ipv6type=$i; |
| 1824 | OPT="-DINET6 $OPT" |
| 1825 | fi |
| 1826 | rm -f conftest* |
| 1827 | |
| 1828 | ;; |
| 1829 | kame) |
| 1830 | cat > conftest.$ac_ext <<EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1831 | #line 1832 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1832 | #include "confdefs.h" |
| 1833 | dnl |
| 1834 | #include <netinet/in.h> |
| 1835 | #ifdef __KAME__ |
| 1836 | yes |
| 1837 | #endif |
| 1838 | EOF |
| 1839 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1840 | egrep "yes" >/dev/null 2>&1; then |
| 1841 | rm -rf conftest* |
| 1842 | ipv6type=$i; |
| 1843 | ipv6lib=inet6 |
| 1844 | ipv6libdir=/usr/local/v6/lib |
| 1845 | ipv6trylibc=yes |
| 1846 | OPT="-DINET6 $OPT" |
| 1847 | fi |
| 1848 | rm -f conftest* |
| 1849 | |
| 1850 | ;; |
| 1851 | linux-glibc) |
| 1852 | cat > conftest.$ac_ext <<EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1853 | #line 1854 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1854 | #include "confdefs.h" |
| 1855 | dnl |
| 1856 | #include <features.h> |
| 1857 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 1858 | yes |
| 1859 | #endif |
| 1860 | EOF |
| 1861 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1862 | egrep "yes" >/dev/null 2>&1; then |
| 1863 | rm -rf conftest* |
| 1864 | ipv6type=$i; |
| 1865 | ipv6trylibc=yes |
| 1866 | OPT="-DINET6 $OPT" |
| 1867 | fi |
| 1868 | rm -f conftest* |
| 1869 | |
| 1870 | ;; |
| 1871 | linux-inet6) |
| 1872 | if test -d /usr/inet6; then |
| 1873 | ipv6type=$i |
| 1874 | ipv6lib=inet6 |
| 1875 | ipv6libdir=/usr/inet6/lib |
| 1876 | OPT="-DINET6 -I/usr/inet6/include $OPT" |
| 1877 | fi |
| 1878 | ;; |
| 1879 | toshiba) |
| 1880 | cat > conftest.$ac_ext <<EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1881 | #line 1882 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1882 | #include "confdefs.h" |
| 1883 | dnl |
| 1884 | #include <sys/param.h> |
| 1885 | #ifdef _TOSHIBA_INET6 |
| 1886 | yes |
| 1887 | #endif |
| 1888 | EOF |
| 1889 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1890 | egrep "yes" >/dev/null 2>&1; then |
| 1891 | rm -rf conftest* |
| 1892 | ipv6type=$i; |
| 1893 | ipv6lib=inet6; |
| 1894 | ipv6libdir=/usr/local/v6/lib; |
| 1895 | OPT="-DINET6 $OPT" |
| 1896 | fi |
| 1897 | rm -f conftest* |
| 1898 | |
| 1899 | ;; |
| 1900 | v6d) |
| 1901 | cat > conftest.$ac_ext <<EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1902 | #line 1903 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1903 | #include "confdefs.h" |
| 1904 | dnl |
| 1905 | #include </usr/local/v6/include/sys/v6config.h> |
| 1906 | #ifdef __V6D__ |
| 1907 | yes |
| 1908 | #endif |
| 1909 | EOF |
| 1910 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1911 | egrep "yes" >/dev/null 2>&1; then |
| 1912 | rm -rf conftest* |
| 1913 | ipv6type=$i; |
| 1914 | ipv6lib=v6; |
| 1915 | ipv6libdir=/usr/local/v6/lib; |
| 1916 | OPT="-I/usr/local/v6/include $OPT" |
| 1917 | fi |
| 1918 | rm -f conftest* |
| 1919 | |
| 1920 | ;; |
| 1921 | zeta) |
| 1922 | cat > conftest.$ac_ext <<EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1923 | #line 1924 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 1924 | #include "confdefs.h" |
| 1925 | dnl |
| 1926 | #include <sys/param.h> |
| 1927 | #ifdef _ZETA_MINAMI_INET6 |
| 1928 | yes |
| 1929 | #endif |
| 1930 | EOF |
| 1931 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1932 | egrep "yes" >/dev/null 2>&1; then |
| 1933 | rm -rf conftest* |
| 1934 | ipv6type=$i; |
| 1935 | ipv6lib=inet6; |
| 1936 | ipv6libdir=/usr/local/v6/lib; |
| 1937 | OPT="-DINET6 $OPT" |
| 1938 | fi |
| 1939 | rm -f conftest* |
| 1940 | |
| 1941 | ;; |
| 1942 | esac |
| 1943 | if test "$ipv6type" != "unknown"; then |
| 1944 | break |
| 1945 | fi |
| 1946 | done |
| 1947 | echo "$ac_t""$ipv6type" 1>&6 |
| 1948 | fi |
| 1949 | |
| 1950 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 1951 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 1952 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 1953 | echo "using lib$ipv6lib" |
| 1954 | else |
| 1955 | if test $ipv6trylibc = "yes"; then |
| 1956 | echo "using libc" |
| 1957 | else |
| 1958 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 1959 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 1960 | echo 'ipv6 kit and compile beforehand.' |
| 1961 | exit 1 |
| 1962 | fi |
| 1963 | fi |
| 1964 | fi |
| 1965 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1966 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1967 | # checks for header files |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1968 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1969 | echo "configure:1970: checking for ANSI C header files" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1970 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1971 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1972 | else |
| 1973 | cat > conftest.$ac_ext <<EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1974 | #line 1975 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1975 | #include "confdefs.h" |
| 1976 | #include <stdlib.h> |
| 1977 | #include <stdarg.h> |
| 1978 | #include <string.h> |
| 1979 | #include <float.h> |
| 1980 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1981 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1982 | { (eval echo configure:1983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1983 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1984 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1985 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1986 | ac_cv_header_stdc=yes |
| 1987 | else |
| 1988 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1989 | echo "configure: failed program was:" >&5 |
| 1990 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1991 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1992 | ac_cv_header_stdc=no |
| 1993 | fi |
| 1994 | rm -f conftest* |
| 1995 | |
| 1996 | if test $ac_cv_header_stdc = yes; then |
| 1997 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 1998 | cat > conftest.$ac_ext <<EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1999 | #line 2000 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2000 | #include "confdefs.h" |
| 2001 | #include <string.h> |
| 2002 | EOF |
| 2003 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2004 | egrep "memchr" >/dev/null 2>&1; then |
| 2005 | : |
| 2006 | else |
| 2007 | rm -rf conftest* |
| 2008 | ac_cv_header_stdc=no |
| 2009 | fi |
| 2010 | rm -f conftest* |
| 2011 | |
| 2012 | fi |
| 2013 | |
| 2014 | if test $ac_cv_header_stdc = yes; then |
| 2015 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2016 | cat > conftest.$ac_ext <<EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2017 | #line 2018 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2018 | #include "confdefs.h" |
| 2019 | #include <stdlib.h> |
| 2020 | EOF |
| 2021 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2022 | egrep "free" >/dev/null 2>&1; then |
| 2023 | : |
| 2024 | else |
| 2025 | rm -rf conftest* |
| 2026 | ac_cv_header_stdc=no |
| 2027 | fi |
| 2028 | rm -f conftest* |
| 2029 | |
| 2030 | fi |
| 2031 | |
| 2032 | if test $ac_cv_header_stdc = yes; then |
| 2033 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2034 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2035 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2036 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2037 | cat > conftest.$ac_ext <<EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2038 | #line 2039 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2039 | #include "confdefs.h" |
| 2040 | #include <ctype.h> |
| 2041 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2042 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2043 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2044 | int main () { int i; for (i = 0; i < 256; i++) |
| 2045 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 2046 | exit (0); } |
| 2047 | |
| 2048 | EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2049 | if { (eval echo configure:2050: \"$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] | 2050 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2051 | : |
| 2052 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2053 | echo "configure: failed program was:" >&5 |
| 2054 | cat conftest.$ac_ext >&5 |
| 2055 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2056 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2057 | fi |
| 2058 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2059 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2060 | |
| 2061 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2062 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2063 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2064 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2065 | if test $ac_cv_header_stdc = yes; then |
| 2066 | cat >> confdefs.h <<\EOF |
| 2067 | #define STDC_HEADERS 1 |
| 2068 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2069 | |
| 2070 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2071 | |
Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame] | 2072 | for ac_hdr in dlfcn.h fcntl.h limits.h locale.h ncurses.h poll.h pthread.h \ |
Eric S. Raymond | d2d75d3 | 2001-01-16 15:26:34 +0000 | [diff] [blame] | 2073 | signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h termios.h \ |
Fred Drake | bbc3c5a | 2001-05-11 16:11:25 +0000 | [diff] [blame] | 2074 | sys/audioio.h sys/file.h sys/lock.h sys/modem.h db_185.h db.h \ |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2075 | sys/param.h sys/poll.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] | 2076 | sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 2077 | ndbm.h db1/ndbm.h gdbm/ndbm.h sys/resource.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2078 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2079 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2080 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2081 | echo "configure:2082: checking for $ac_hdr" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2082 | 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] | 2083 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2084 | else |
| 2085 | cat > conftest.$ac_ext <<EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2086 | #line 2087 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2087 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2088 | #include <$ac_hdr> |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2089 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2090 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2091 | { (eval echo configure:2092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2092 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2093 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2094 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2095 | eval "ac_cv_header_$ac_safe=yes" |
| 2096 | else |
| 2097 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2098 | echo "configure: failed program was:" >&5 |
| 2099 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2100 | rm -rf conftest* |
| 2101 | eval "ac_cv_header_$ac_safe=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2102 | fi |
| 2103 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2104 | fi |
| 2105 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2106 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2107 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2108 | cat >> confdefs.h <<EOF |
| 2109 | #define $ac_tr_hdr 1 |
| 2110 | EOF |
| 2111 | |
| 2112 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2113 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2114 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2115 | done |
| 2116 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2117 | ac_header_dirent=no |
| 2118 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
| 2119 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2120 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2121 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2122 | echo "configure:2123: checking for $ac_hdr that defines DIR" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2123 | 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] | 2124 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2125 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2126 | cat > conftest.$ac_ext <<EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2127 | #line 2128 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2128 | #include "confdefs.h" |
| 2129 | #include <sys/types.h> |
| 2130 | #include <$ac_hdr> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2131 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2132 | DIR *dirp = 0; |
| 2133 | ; return 0; } |
| 2134 | EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2135 | if { (eval echo configure:2136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2136 | rm -rf conftest* |
| 2137 | eval "ac_cv_header_dirent_$ac_safe=yes" |
| 2138 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2139 | echo "configure: failed program was:" >&5 |
| 2140 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2141 | rm -rf conftest* |
| 2142 | eval "ac_cv_header_dirent_$ac_safe=no" |
| 2143 | fi |
| 2144 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2145 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2146 | 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] | 2147 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2148 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2149 | cat >> confdefs.h <<EOF |
| 2150 | #define $ac_tr_hdr 1 |
| 2151 | EOF |
| 2152 | ac_header_dirent=$ac_hdr; break |
| 2153 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2154 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2155 | fi |
| 2156 | done |
| 2157 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 2158 | if test $ac_header_dirent = dirent.h; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2159 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2160 | echo "configure:2161: checking for opendir in -ldir" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2161 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2162 | 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] | 2163 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2164 | else |
| 2165 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2166 | LIBS="-ldir $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2167 | cat > conftest.$ac_ext <<EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2168 | #line 2169 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2169 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2170 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2171 | /* We use char because int might match the return type of a gcc2 |
| 2172 | builtin and then its argument prototype would still apply. */ |
| 2173 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2174 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2175 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2176 | opendir() |
| 2177 | ; return 0; } |
| 2178 | EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2179 | if { (eval echo configure:2180: \"$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] | 2180 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2181 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2182 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2183 | echo "configure: failed program was:" >&5 |
| 2184 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2185 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2186 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2187 | fi |
| 2188 | rm -f conftest* |
| 2189 | LIBS="$ac_save_LIBS" |
| 2190 | |
| 2191 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2192 | 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] | 2193 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2194 | LIBS="$LIBS -ldir" |
| 2195 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2196 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2197 | fi |
| 2198 | |
| 2199 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2200 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2201 | echo "configure:2202: checking for opendir in -lx" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2202 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2203 | 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] | 2204 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2205 | else |
| 2206 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2207 | LIBS="-lx $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2208 | cat > conftest.$ac_ext <<EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2209 | #line 2210 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2210 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2211 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2212 | /* We use char because int might match the return type of a gcc2 |
| 2213 | builtin and then its argument prototype would still apply. */ |
| 2214 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2215 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2216 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2217 | opendir() |
| 2218 | ; return 0; } |
| 2219 | EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2220 | if { (eval echo configure:2221: \"$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] | 2221 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2222 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2223 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2224 | echo "configure: failed program was:" >&5 |
| 2225 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2226 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2227 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2228 | fi |
| 2229 | rm -f conftest* |
| 2230 | LIBS="$ac_save_LIBS" |
| 2231 | |
| 2232 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2233 | 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] | 2234 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2235 | LIBS="$LIBS -lx" |
| 2236 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2237 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2238 | fi |
| 2239 | |
| 2240 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2241 | |
| 2242 | |
| 2243 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2244 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2245 | echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6 |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2246 | echo "configure:2247: checking for clock_t in time.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2247 | cat > conftest.$ac_ext <<EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2248 | #line 2249 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2249 | #include "confdefs.h" |
| 2250 | #include <time.h> |
| 2251 | EOF |
| 2252 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2253 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2254 | rm -rf conftest* |
| 2255 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2256 | else |
| 2257 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2258 | cat >> confdefs.h <<\EOF |
| 2259 | #define clock_t long |
| 2260 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2261 | |
| 2262 | fi |
| 2263 | rm -f conftest* |
| 2264 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2265 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2266 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2267 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 2268 | cat >> confdefs.h <<\EOF |
| 2269 | #if defined(SCO_DS) |
| 2270 | #undef _OFF_T |
| 2271 | #endif |
| 2272 | EOF |
| 2273 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2274 | # Type availability checks |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2275 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2276 | echo "configure:2277: checking for mode_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2277 | 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] | 2278 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2279 | else |
| 2280 | cat > conftest.$ac_ext <<EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2281 | #line 2282 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2282 | #include "confdefs.h" |
| 2283 | #include <sys/types.h> |
| 2284 | #if STDC_HEADERS |
| 2285 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2286 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2287 | #endif |
| 2288 | EOF |
| 2289 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2290 | 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] | 2291 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2292 | ac_cv_type_mode_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2293 | else |
| 2294 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2295 | ac_cv_type_mode_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2296 | fi |
| 2297 | rm -f conftest* |
| 2298 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2299 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2300 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
| 2301 | if test $ac_cv_type_mode_t = no; then |
| 2302 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2303 | #define mode_t int |
| 2304 | EOF |
| 2305 | |
| 2306 | fi |
| 2307 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2308 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2309 | echo "configure:2310: checking for off_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2310 | 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] | 2311 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2312 | else |
| 2313 | cat > conftest.$ac_ext <<EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2314 | #line 2315 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2315 | #include "confdefs.h" |
| 2316 | #include <sys/types.h> |
| 2317 | #if STDC_HEADERS |
| 2318 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2319 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2320 | #endif |
| 2321 | EOF |
| 2322 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2323 | 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] | 2324 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2325 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2326 | else |
| 2327 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2328 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2329 | fi |
| 2330 | rm -f conftest* |
| 2331 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2332 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2333 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
| 2334 | if test $ac_cv_type_off_t = no; then |
| 2335 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2336 | #define off_t long |
| 2337 | EOF |
| 2338 | |
| 2339 | fi |
| 2340 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2341 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2342 | echo "configure:2343: checking for pid_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2343 | 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] | 2344 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2345 | else |
| 2346 | cat > conftest.$ac_ext <<EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2347 | #line 2348 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2348 | #include "confdefs.h" |
| 2349 | #include <sys/types.h> |
| 2350 | #if STDC_HEADERS |
| 2351 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2352 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2353 | #endif |
| 2354 | EOF |
| 2355 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2356 | 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] | 2357 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2358 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2359 | else |
| 2360 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2361 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2362 | fi |
| 2363 | rm -f conftest* |
| 2364 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2365 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2366 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
| 2367 | if test $ac_cv_type_pid_t = no; then |
| 2368 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2369 | #define pid_t int |
| 2370 | EOF |
| 2371 | |
| 2372 | fi |
| 2373 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2374 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2375 | echo "configure:2376: checking return type of signal handlers" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2376 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2377 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2378 | else |
| 2379 | cat > conftest.$ac_ext <<EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2380 | #line 2381 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2381 | #include "confdefs.h" |
| 2382 | #include <sys/types.h> |
| 2383 | #include <signal.h> |
| 2384 | #ifdef signal |
| 2385 | #undef signal |
| 2386 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2387 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2388 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 2389 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2390 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2391 | #endif |
| 2392 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2393 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2394 | int i; |
| 2395 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2396 | EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2397 | if { (eval echo configure:2398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2398 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2399 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2400 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2401 | echo "configure: failed program was:" >&5 |
| 2402 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2403 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2404 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2405 | fi |
| 2406 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2407 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2408 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2409 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2410 | cat >> confdefs.h <<EOF |
| 2411 | #define RETSIGTYPE $ac_cv_type_signal |
| 2412 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2413 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2414 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2415 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2416 | echo "configure:2417: checking for size_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2417 | 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] | 2418 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2419 | else |
| 2420 | cat > conftest.$ac_ext <<EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2421 | #line 2422 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2422 | #include "confdefs.h" |
| 2423 | #include <sys/types.h> |
| 2424 | #if STDC_HEADERS |
| 2425 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2426 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2427 | #endif |
| 2428 | EOF |
| 2429 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2430 | 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] | 2431 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2432 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2433 | else |
| 2434 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2435 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2436 | fi |
| 2437 | rm -f conftest* |
| 2438 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2439 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2440 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
| 2441 | if test $ac_cv_type_size_t = no; then |
| 2442 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2443 | #define size_t unsigned |
| 2444 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2445 | |
| 2446 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2447 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2448 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2449 | echo "configure:2450: checking for uid_t in sys/types.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2450 | 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] | 2451 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2452 | else |
| 2453 | cat > conftest.$ac_ext <<EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2454 | #line 2455 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2455 | #include "confdefs.h" |
| 2456 | #include <sys/types.h> |
| 2457 | EOF |
| 2458 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2459 | egrep "uid_t" >/dev/null 2>&1; then |
| 2460 | rm -rf conftest* |
| 2461 | ac_cv_type_uid_t=yes |
| 2462 | else |
| 2463 | rm -rf conftest* |
| 2464 | ac_cv_type_uid_t=no |
| 2465 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2466 | rm -f conftest* |
| 2467 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2468 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2469 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2470 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2471 | if test $ac_cv_type_uid_t = no; then |
| 2472 | cat >> confdefs.h <<\EOF |
| 2473 | #define uid_t int |
| 2474 | EOF |
| 2475 | |
| 2476 | cat >> confdefs.h <<\EOF |
| 2477 | #define gid_t int |
| 2478 | EOF |
| 2479 | |
| 2480 | fi |
| 2481 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2482 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2483 | # Sizes of various common basic types |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2484 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2485 | echo "configure:2486: checking size of int" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2486 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2487 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2488 | else |
| 2489 | if test "$cross_compiling" = yes; then |
| 2490 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2491 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2492 | cat > conftest.$ac_ext <<EOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 2493 | #line 2494 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2494 | #include "confdefs.h" |
| 2495 | #include <stdio.h> |
| 2496 | main() |
| 2497 | { |
| 2498 | FILE *f=fopen("conftestval", "w"); |
| 2499 | if (!f) exit(1); |
| 2500 | fprintf(f, "%d\n", sizeof(int)); |
| 2501 | exit(0); |
| 2502 | } |
| 2503 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2504 | if { (eval echo configure:2505: \"$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] | 2505 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2506 | ac_cv_sizeof_int=`cat conftestval` |
| 2507 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2508 | echo "configure: failed program was:" >&5 |
| 2509 | cat conftest.$ac_ext >&5 |
| 2510 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2511 | ac_cv_sizeof_int=0 |
| 2512 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2513 | rm -fr conftest* |
| 2514 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2515 | |
| 2516 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2517 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 2518 | cat >> confdefs.h <<EOF |
| 2519 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 2520 | EOF |
| 2521 | |
| 2522 | |
| 2523 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2524 | echo "configure:2525: checking size of long" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2525 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2526 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2527 | else |
| 2528 | if test "$cross_compiling" = yes; then |
| 2529 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2530 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2531 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2532 | #line 2533 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2533 | #include "confdefs.h" |
| 2534 | #include <stdio.h> |
| 2535 | main() |
| 2536 | { |
| 2537 | FILE *f=fopen("conftestval", "w"); |
| 2538 | if (!f) exit(1); |
| 2539 | fprintf(f, "%d\n", sizeof(long)); |
| 2540 | exit(0); |
| 2541 | } |
| 2542 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2543 | if { (eval echo configure:2544: \"$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] | 2544 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2545 | ac_cv_sizeof_long=`cat conftestval` |
| 2546 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2547 | echo "configure: failed program was:" >&5 |
| 2548 | cat conftest.$ac_ext >&5 |
| 2549 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2550 | ac_cv_sizeof_long=0 |
| 2551 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2552 | rm -fr conftest* |
| 2553 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2554 | |
| 2555 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2556 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
| 2557 | cat >> confdefs.h <<EOF |
| 2558 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 2559 | EOF |
| 2560 | |
| 2561 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2562 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2563 | echo "configure:2564: checking size of void *" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2564 | 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] | 2565 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2566 | else |
| 2567 | if test "$cross_compiling" = yes; then |
| 2568 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2569 | else |
| 2570 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2571 | #line 2572 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2572 | #include "confdefs.h" |
| 2573 | #include <stdio.h> |
| 2574 | main() |
| 2575 | { |
| 2576 | FILE *f=fopen("conftestval", "w"); |
| 2577 | if (!f) exit(1); |
| 2578 | fprintf(f, "%d\n", sizeof(void *)); |
| 2579 | exit(0); |
| 2580 | } |
| 2581 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2582 | if { (eval echo configure:2583: \"$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] | 2583 | then |
| 2584 | ac_cv_sizeof_void_p=`cat conftestval` |
| 2585 | else |
| 2586 | echo "configure: failed program was:" >&5 |
| 2587 | cat conftest.$ac_ext >&5 |
| 2588 | rm -fr conftest* |
| 2589 | ac_cv_sizeof_void_p=0 |
| 2590 | fi |
| 2591 | rm -fr conftest* |
| 2592 | fi |
| 2593 | |
| 2594 | fi |
| 2595 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
| 2596 | cat >> confdefs.h <<EOF |
| 2597 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
| 2598 | EOF |
| 2599 | |
| 2600 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2601 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2602 | echo "configure:2603: checking size of char" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2603 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2604 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2605 | else |
| 2606 | if test "$cross_compiling" = yes; then |
| 2607 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2608 | else |
| 2609 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2610 | #line 2611 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2611 | #include "confdefs.h" |
| 2612 | #include <stdio.h> |
| 2613 | main() |
| 2614 | { |
| 2615 | FILE *f=fopen("conftestval", "w"); |
| 2616 | if (!f) exit(1); |
| 2617 | fprintf(f, "%d\n", sizeof(char)); |
| 2618 | exit(0); |
| 2619 | } |
| 2620 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2621 | if { (eval echo configure:2622: \"$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] | 2622 | then |
| 2623 | ac_cv_sizeof_char=`cat conftestval` |
| 2624 | else |
| 2625 | echo "configure: failed program was:" >&5 |
| 2626 | cat conftest.$ac_ext >&5 |
| 2627 | rm -fr conftest* |
| 2628 | ac_cv_sizeof_char=0 |
| 2629 | fi |
| 2630 | rm -fr conftest* |
| 2631 | fi |
| 2632 | |
| 2633 | fi |
| 2634 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
| 2635 | cat >> confdefs.h <<EOF |
| 2636 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
| 2637 | EOF |
| 2638 | |
| 2639 | |
| 2640 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2641 | echo "configure:2642: checking size of short" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2642 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2643 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2644 | else |
| 2645 | if test "$cross_compiling" = yes; then |
| 2646 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2647 | else |
| 2648 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2649 | #line 2650 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2650 | #include "confdefs.h" |
| 2651 | #include <stdio.h> |
| 2652 | main() |
| 2653 | { |
| 2654 | FILE *f=fopen("conftestval", "w"); |
| 2655 | if (!f) exit(1); |
| 2656 | fprintf(f, "%d\n", sizeof(short)); |
| 2657 | exit(0); |
| 2658 | } |
| 2659 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2660 | if { (eval echo configure:2661: \"$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] | 2661 | then |
| 2662 | ac_cv_sizeof_short=`cat conftestval` |
| 2663 | else |
| 2664 | echo "configure: failed program was:" >&5 |
| 2665 | cat conftest.$ac_ext >&5 |
| 2666 | rm -fr conftest* |
| 2667 | ac_cv_sizeof_short=0 |
| 2668 | fi |
| 2669 | rm -fr conftest* |
| 2670 | fi |
| 2671 | |
| 2672 | fi |
| 2673 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
| 2674 | cat >> confdefs.h <<EOF |
| 2675 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 2676 | EOF |
| 2677 | |
| 2678 | |
| 2679 | echo $ac_n "checking size of float""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2680 | echo "configure:2681: checking size of float" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2681 | if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2682 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2683 | else |
| 2684 | if test "$cross_compiling" = yes; then |
| 2685 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2686 | else |
| 2687 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2688 | #line 2689 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2689 | #include "confdefs.h" |
| 2690 | #include <stdio.h> |
| 2691 | main() |
| 2692 | { |
| 2693 | FILE *f=fopen("conftestval", "w"); |
| 2694 | if (!f) exit(1); |
| 2695 | fprintf(f, "%d\n", sizeof(float)); |
| 2696 | exit(0); |
| 2697 | } |
| 2698 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2699 | if { (eval echo configure:2700: \"$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] | 2700 | then |
| 2701 | ac_cv_sizeof_float=`cat conftestval` |
| 2702 | else |
| 2703 | echo "configure: failed program was:" >&5 |
| 2704 | cat conftest.$ac_ext >&5 |
| 2705 | rm -fr conftest* |
| 2706 | ac_cv_sizeof_float=0 |
| 2707 | fi |
| 2708 | rm -fr conftest* |
| 2709 | fi |
| 2710 | |
| 2711 | fi |
| 2712 | echo "$ac_t""$ac_cv_sizeof_float" 1>&6 |
| 2713 | cat >> confdefs.h <<EOF |
| 2714 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
| 2715 | EOF |
| 2716 | |
| 2717 | |
| 2718 | echo $ac_n "checking size of double""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2719 | echo "configure:2720: checking size of double" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2720 | if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2721 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2722 | else |
| 2723 | if test "$cross_compiling" = yes; then |
| 2724 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2725 | else |
| 2726 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2727 | #line 2728 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2728 | #include "confdefs.h" |
| 2729 | #include <stdio.h> |
| 2730 | main() |
| 2731 | { |
| 2732 | FILE *f=fopen("conftestval", "w"); |
| 2733 | if (!f) exit(1); |
| 2734 | fprintf(f, "%d\n", sizeof(double)); |
| 2735 | exit(0); |
| 2736 | } |
| 2737 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2738 | if { (eval echo configure:2739: \"$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] | 2739 | then |
| 2740 | ac_cv_sizeof_double=`cat conftestval` |
| 2741 | else |
| 2742 | echo "configure: failed program was:" >&5 |
| 2743 | cat conftest.$ac_ext >&5 |
| 2744 | rm -fr conftest* |
| 2745 | ac_cv_sizeof_double=0 |
| 2746 | fi |
| 2747 | rm -fr conftest* |
| 2748 | fi |
| 2749 | |
| 2750 | fi |
| 2751 | echo "$ac_t""$ac_cv_sizeof_double" 1>&6 |
| 2752 | cat >> confdefs.h <<EOF |
| 2753 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
| 2754 | EOF |
| 2755 | |
| 2756 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2757 | echo $ac_n "checking size of fpos_t""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2758 | echo "configure:2759: checking size of fpos_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2759 | 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] | 2760 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2761 | else |
| 2762 | if test "$cross_compiling" = yes; then |
| 2763 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2764 | else |
| 2765 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2766 | #line 2767 "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2767 | #include "confdefs.h" |
| 2768 | #include <stdio.h> |
| 2769 | main() |
| 2770 | { |
| 2771 | FILE *f=fopen("conftestval", "w"); |
| 2772 | if (!f) exit(1); |
| 2773 | fprintf(f, "%d\n", sizeof(fpos_t)); |
| 2774 | exit(0); |
| 2775 | } |
| 2776 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2777 | if { (eval echo configure:2778: \"$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] | 2778 | then |
| 2779 | ac_cv_sizeof_fpos_t=`cat conftestval` |
| 2780 | else |
| 2781 | echo "configure: failed program was:" >&5 |
| 2782 | cat conftest.$ac_ext >&5 |
| 2783 | rm -fr conftest* |
| 2784 | ac_cv_sizeof_fpos_t=0 |
| 2785 | fi |
| 2786 | rm -fr conftest* |
| 2787 | fi |
| 2788 | |
| 2789 | fi |
| 2790 | echo "$ac_t""$ac_cv_sizeof_fpos_t" 1>&6 |
| 2791 | cat >> confdefs.h <<EOF |
| 2792 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
| 2793 | EOF |
| 2794 | |
| 2795 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2796 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2797 | echo $ac_n "checking for long long support""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2798 | echo "configure:2799: checking for long long support" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2799 | have_long_long=no |
| 2800 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2801 | #line 2802 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2802 | #include "confdefs.h" |
| 2803 | |
| 2804 | int main() { |
| 2805 | long long x; x = (long long)0; |
| 2806 | ; return 0; } |
| 2807 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2808 | if { (eval echo configure:2809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2809 | rm -rf conftest* |
| 2810 | cat >> confdefs.h <<\EOF |
| 2811 | #define HAVE_LONG_LONG 1 |
| 2812 | EOF |
| 2813 | have_long_long=yes |
| 2814 | else |
| 2815 | echo "configure: failed program was:" >&5 |
| 2816 | cat conftest.$ac_ext >&5 |
| 2817 | fi |
| 2818 | rm -f conftest* |
| 2819 | echo "$ac_t""$have_long_long" 1>&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2820 | if test "$have_long_long" = yes ; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2821 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2822 | echo "configure:2823: checking size of long long" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2823 | 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] | 2824 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2825 | else |
| 2826 | if test "$cross_compiling" = yes; then |
| 2827 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2828 | else |
| 2829 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2830 | #line 2831 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2831 | #include "confdefs.h" |
| 2832 | #include <stdio.h> |
| 2833 | main() |
| 2834 | { |
| 2835 | FILE *f=fopen("conftestval", "w"); |
| 2836 | if (!f) exit(1); |
| 2837 | fprintf(f, "%d\n", sizeof(long long)); |
| 2838 | exit(0); |
| 2839 | } |
| 2840 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2841 | if { (eval echo configure:2842: \"$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] | 2842 | then |
| 2843 | ac_cv_sizeof_long_long=`cat conftestval` |
| 2844 | else |
| 2845 | echo "configure: failed program was:" >&5 |
| 2846 | cat conftest.$ac_ext >&5 |
| 2847 | rm -fr conftest* |
| 2848 | ac_cv_sizeof_long_long=0 |
| 2849 | fi |
| 2850 | rm -fr conftest* |
| 2851 | fi |
| 2852 | |
| 2853 | fi |
| 2854 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
| 2855 | cat >> confdefs.h <<EOF |
| 2856 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 2857 | EOF |
| 2858 | |
| 2859 | |
| 2860 | fi |
| 2861 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2862 | echo $ac_n "checking for uintptr_t support""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2863 | echo "configure:2864: checking for uintptr_t support" >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2864 | have_uintptr_t=no |
| 2865 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2866 | #line 2867 "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2867 | #include "confdefs.h" |
| 2868 | |
| 2869 | int main() { |
| 2870 | uintptr_t x; x = (uintptr_t)0; |
| 2871 | ; return 0; } |
| 2872 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2873 | if { (eval echo configure:2874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2874 | rm -rf conftest* |
| 2875 | cat >> confdefs.h <<\EOF |
| 2876 | #define HAVE_UINTPTR_T 1 |
| 2877 | EOF |
| 2878 | have_uintptr_t=yes |
| 2879 | else |
| 2880 | echo "configure: failed program was:" >&5 |
| 2881 | cat conftest.$ac_ext >&5 |
| 2882 | fi |
| 2883 | rm -f conftest* |
| 2884 | echo "$ac_t""$have_uintptr_t" 1>&6 |
| 2885 | if test "$have_uintptr_t" = yes ; then |
| 2886 | echo $ac_n "checking size of uintptr_t""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2887 | echo "configure:2888: checking size of uintptr_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2888 | if eval "test \"`echo '$''{'ac_cv_sizeof_uintptr_t'+set}'`\" = set"; then |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2889 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2890 | else |
| 2891 | if test "$cross_compiling" = yes; then |
| 2892 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2893 | else |
| 2894 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2895 | #line 2896 "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2896 | #include "confdefs.h" |
| 2897 | #include <stdio.h> |
| 2898 | main() |
| 2899 | { |
| 2900 | FILE *f=fopen("conftestval", "w"); |
| 2901 | if (!f) exit(1); |
| 2902 | fprintf(f, "%d\n", sizeof(uintptr_t)); |
| 2903 | exit(0); |
| 2904 | } |
| 2905 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2906 | if { (eval echo configure:2907: \"$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] | 2907 | then |
| 2908 | ac_cv_sizeof_uintptr_t=`cat conftestval` |
| 2909 | else |
| 2910 | echo "configure: failed program was:" >&5 |
| 2911 | cat conftest.$ac_ext >&5 |
| 2912 | rm -fr conftest* |
| 2913 | ac_cv_sizeof_uintptr_t=0 |
| 2914 | fi |
| 2915 | rm -fr conftest* |
| 2916 | fi |
| 2917 | |
| 2918 | fi |
| 2919 | echo "$ac_t""$ac_cv_sizeof_uintptr_t" 1>&6 |
| 2920 | cat >> confdefs.h <<EOF |
| 2921 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
| 2922 | EOF |
| 2923 | |
| 2924 | |
| 2925 | fi |
| 2926 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2927 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
| 2928 | echo $ac_n "checking size of off_t""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2929 | echo "configure:2930: checking size of off_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2930 | 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] | 2931 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2932 | else |
| 2933 | if test "$cross_compiling" = yes; then |
| 2934 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2935 | else |
| 2936 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2937 | #line 2938 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2938 | #include "confdefs.h" |
| 2939 | #include <stdio.h> |
| 2940 | #include <sys/types.h> |
| 2941 | main() |
| 2942 | { |
| 2943 | FILE *f=fopen("conftestval", "w"); |
| 2944 | if (!f) exit(1); |
| 2945 | fprintf(f, "%d\n", sizeof(off_t)); |
| 2946 | exit(0); |
| 2947 | } |
| 2948 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2949 | if { (eval echo configure:2950: \"$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] | 2950 | then |
| 2951 | ac_cv_sizeof_off_t=`cat conftestval` |
| 2952 | else |
| 2953 | echo "configure: failed program was:" >&5 |
| 2954 | cat conftest.$ac_ext >&5 |
| 2955 | rm -fr conftest* |
| 2956 | ac_cv_sizeof_off_t=0 |
| 2957 | fi |
| 2958 | rm -fr conftest* |
| 2959 | fi |
| 2960 | |
| 2961 | |
| 2962 | fi |
| 2963 | |
| 2964 | echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6 |
| 2965 | cat >> confdefs.h <<EOF |
| 2966 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 2967 | EOF |
| 2968 | |
| 2969 | |
| 2970 | echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2971 | echo "configure:2972: checking whether to enable large file support" >&5 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2972 | if test "$have_long_long" = yes -a \ |
| 2973 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 2974 | "$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] | 2975 | cat >> confdefs.h <<\EOF |
| 2976 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 2977 | EOF |
| 2978 | |
| 2979 | echo "$ac_t""yes" 1>&6 |
| 2980 | else |
| 2981 | echo "$ac_t""no" 1>&6 |
| 2982 | fi |
| 2983 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2984 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
| 2985 | echo $ac_n "checking size of time_t""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2986 | echo "configure:2987: checking size of time_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2987 | 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] | 2988 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2989 | else |
| 2990 | if test "$cross_compiling" = yes; then |
| 2991 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2992 | else |
| 2993 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 2994 | #line 2995 "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2995 | #include "confdefs.h" |
| 2996 | #include <stdio.h> |
| 2997 | #include <time.h> |
| 2998 | main() |
| 2999 | { |
| 3000 | FILE *f=fopen("conftestval", "w"); |
| 3001 | if (!f) exit(1); |
| 3002 | fprintf(f, "%d\n", sizeof(time_t)); |
| 3003 | exit(0); |
| 3004 | } |
| 3005 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3006 | if { (eval echo configure:3007: \"$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] | 3007 | then |
| 3008 | ac_cv_sizeof_time_t=`cat conftestval` |
| 3009 | else |
| 3010 | echo "configure: failed program was:" >&5 |
| 3011 | cat conftest.$ac_ext >&5 |
| 3012 | rm -fr conftest* |
| 3013 | ac_cv_sizeof_time_t=0 |
| 3014 | fi |
| 3015 | rm -fr conftest* |
| 3016 | fi |
| 3017 | |
| 3018 | |
| 3019 | fi |
| 3020 | |
| 3021 | echo "$ac_t""$ac_cv_sizeof_time_t" 1>&6 |
| 3022 | cat >> confdefs.h <<EOF |
| 3023 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
| 3024 | EOF |
| 3025 | |
| 3026 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 3027 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3028 | # if have pthread_t then define SIZEOF_PTHREAD_T |
| 3029 | echo $ac_n "checking for pthread_t""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3030 | echo "configure:3031: checking for pthread_t" >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3031 | have_pthread_t=no |
| 3032 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3033 | #line 3034 "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3034 | #include "confdefs.h" |
| 3035 | #include <pthread.h> |
| 3036 | int main() { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 3037 | pthread_t x; x = *(pthread_t*)0; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3038 | ; return 0; } |
| 3039 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3040 | if { (eval echo configure:3041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3041 | rm -rf conftest* |
| 3042 | have_pthread_t=yes |
| 3043 | else |
| 3044 | echo "configure: failed program was:" >&5 |
| 3045 | cat conftest.$ac_ext >&5 |
| 3046 | fi |
| 3047 | rm -f conftest* |
| 3048 | echo "$ac_t""$have_pthread_t" 1>&6 |
| 3049 | if test "$have_pthread_t" = yes ; then |
| 3050 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
| 3051 | echo $ac_n "checking size of pthread_t""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3052 | echo "configure:3053: checking size of pthread_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3053 | if eval "test \"`echo '$''{'ac_cv_sizeof_pthread_t'+set}'`\" = set"; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3054 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3055 | else |
| 3056 | if test "$cross_compiling" = yes; then |
| 3057 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 3058 | else |
| 3059 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3060 | #line 3061 "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3061 | #include "confdefs.h" |
| 3062 | #include <stdio.h> |
| 3063 | #include <pthread.h> |
| 3064 | main() |
| 3065 | { |
| 3066 | FILE *f=fopen("conftestval", "w"); |
| 3067 | if (!f) exit(1); |
| 3068 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 3069 | exit(0); |
| 3070 | } |
| 3071 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3072 | if { (eval echo configure:3073: \"$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] | 3073 | then |
| 3074 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 3075 | else |
| 3076 | echo "configure: failed program was:" >&5 |
| 3077 | cat conftest.$ac_ext >&5 |
| 3078 | rm -fr conftest* |
| 3079 | ac_cv_sizeof_pthread_t=0 |
| 3080 | fi |
| 3081 | rm -fr conftest* |
| 3082 | fi |
| 3083 | |
| 3084 | |
| 3085 | fi |
| 3086 | |
| 3087 | echo "$ac_t""$ac_cv_sizeof_pthread_t" 1>&6 |
| 3088 | cat >> confdefs.h <<EOF |
| 3089 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
| 3090 | EOF |
| 3091 | |
| 3092 | fi |
| 3093 | |
| 3094 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3095 | # Minor variations in building a framework between NextStep versions 4 and 5 |
| 3096 | |
| 3097 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3098 | Darwin/*) |
| 3099 | ns_undef_sym='_environ' |
| 3100 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -U $ns_undef_sym" ;; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3101 | next/4*) |
| 3102 | ns_undef_sym='__environ' |
| 3103 | LIBTOOL_CRUFT="-U $ns_undef_sym" ;; |
| 3104 | next/5*) |
| 3105 | ns_undef_sym='_environ' |
| 3106 | LIBTOOL_CRUFT="-lcc_dynamic -U $ns_undef_sym" ;; |
| 3107 | esac |
| 3108 | |
| 3109 | echo $ac_n "checking for --with-next-framework""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3110 | echo "configure:3111: checking for --with-next-framework" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3111 | if test "$with_next_framework" |
| 3112 | then |
| 3113 | OPT="$OPT -fno-common" |
| 3114 | # -U __environ is needed since bundles don't have access |
| 3115 | # to crt0 when built but will always be linked against it |
| 3116 | LDFLAGS="$LDFLAGS -Wl,-U,$ns_undef_sym" |
| 3117 | cat >> confdefs.h <<\EOF |
| 3118 | #define WITH_NEXT_FRAMEWORK 1 |
| 3119 | EOF |
| 3120 | |
| 3121 | echo "$ac_t""yes" 1>&6 |
| 3122 | else |
| 3123 | echo "$ac_t""no" 1>&6 |
| 3124 | fi |
| 3125 | |
| 3126 | echo $ac_n "checking for --with-dyld""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3127 | echo "configure:3128: checking for --with-dyld" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3128 | if test "$with_next_framework" -o "$with_dyld" |
| 3129 | then |
| 3130 | if test "$with_dyld" |
| 3131 | then |
| 3132 | echo "$ac_t""yes" 1>&6 |
| 3133 | else |
| 3134 | echo "$ac_t""required for framework build" 1>&6 |
| 3135 | fi |
| 3136 | cat >> confdefs.h <<\EOF |
| 3137 | #define WITH_DYLD 1 |
| 3138 | EOF |
| 3139 | |
| 3140 | ns_dyld='set' |
| 3141 | else |
| 3142 | echo "$ac_t""no" 1>&6 |
| 3143 | fi |
| 3144 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3145 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3146 | |
| 3147 | |
| 3148 | |
| 3149 | |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3150 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3151 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3152 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3153 | echo $ac_n "checking SO""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3154 | echo "configure:3155: checking SO" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3155 | if test -z "$SO" |
| 3156 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3157 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3158 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3159 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3160 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3161 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3162 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3163 | echo "$ac_t""$SO" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3164 | # LDSHARED is the ld *command* used to create shared library |
| 3165 | # -- "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] | 3166 | # (Shared libraries in this instance are shared modules to be loaded into |
| 3167 | # Python, as opposed to building Python itself as a shared library.) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3168 | echo $ac_n "checking LDSHARED""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3169 | echo "configure:3170: checking LDSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3170 | if test -z "$LDSHARED" |
| 3171 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3172 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3173 | AIX*) |
| 3174 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
| 3175 | LDSHARED="\$(BINLIBDEST)/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/python.exp" |
| 3176 | ;; |
| 3177 | BeOS*) |
| 3178 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
| 3179 | LDSHARED="\$(BINLIBDEST)/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
| 3180 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 3181 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3182 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3183 | SunOS/4*) LDSHARED="ld";; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 3184 | SunOS/5*) |
| 3185 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 3186 | then LDSHARED='$(CC) -shared' |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 3187 | else LDSHARED="ld -G"; |
| 3188 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3189 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3190 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 3191 | DYNIX/ptx*) LDSHARED="ld -G";; |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3192 | Darwin/*|next/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3193 | if test "$ns_dyld" |
Guido van Rossum | acb14c7 | 2001-01-10 21:41:16 +0000 | [diff] [blame] | 3194 | then LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined suppress' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3195 | else LDSHARED='$(CC) $(CFLAGS) -nostdlib -r'; |
| 3196 | fi |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3197 | if test "$with_next_framework" ; then |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3198 | LDSHARED="$LDSHARED \$(LDLIBRARY)" |
| 3199 | fi ;; |
Guido van Rossum | 81652ab | 1996-07-21 02:53:27 +0000 | [diff] [blame] | 3200 | Linux*) LDSHARED="gcc -shared";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 3201 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 3202 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 3203 | OpenBSD*) LDSHARED="ld -Bshareable";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 3204 | NetBSD*) |
| 3205 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 3206 | then |
| 3207 | LDSHARED="cc -shared" |
| 3208 | else |
| 3209 | LDSHARED="ld -Bshareable" |
| 3210 | fi;; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 3211 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 3212 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 3213 | then |
| 3214 | LDSHARED="cc -shared ${LDFLAGS}" |
| 3215 | else |
| 3216 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 3217 | fi;; |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 3218 | UnixWare*) |
| 3219 | if test "$GCC" = "yes" |
| 3220 | then LDSHARED="$(CC) -shared" |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3221 | else LDSHARED="ld -G -dy -Bdynamic" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 3222 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3223 | SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3224 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3225 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3226 | *) LDSHARED="ld";; |
| 3227 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3228 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3229 | echo "$ac_t""$LDSHARED" 1>&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3230 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3231 | # 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] | 3232 | # library (module) -- this is only needed for a few systems |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3233 | echo $ac_n "checking CCSHARED""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3234 | echo "configure:3235: checking CCSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3235 | if test -z "$CCSHARED" |
| 3236 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 3237 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 3238 | SunOS*) if test "$GCC" = yes; |
| 3239 | then CCSHARED="-fPIC"; |
| 3240 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 3241 | hp*|HP*) if test "$GCC" = yes; |
| 3242 | then CCSHARED="-fpic"; |
| 3243 | else CCSHARED="+z"; |
| 3244 | fi;; |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3245 | Linux*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 3246 | BSD/OS*/4*) CCSHARED="-fpic";; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 3247 | OpenBSD*) CCSHARED="-fpic";; |
| 3248 | FreeBSD*|NetBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 3249 | UnixWare*) |
| 3250 | if test "$GCC" = "yes" |
| 3251 | then CCSHARED="-fPIC" |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3252 | else CCSHARED="-KPIC -G -dy -Bdynamic" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 3253 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3254 | SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3255 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3256 | IRIX*/6*) case $CC in |
| 3257 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 3258 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3259 | esac;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3260 | CYGWIN*) CCSHARED="-DUSE_DL_IMPORT";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3261 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3262 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3263 | echo "$ac_t""$CCSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3264 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3265 | # the python executable -- this is only needed for a few systems |
| 3266 | echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3267 | echo "configure:3268: checking LINKFORSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3268 | if test -z "$LINKFORSHARED" |
| 3269 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 3270 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3271 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 3272 | hp*|HP*) |
Guido van Rossum | 304dd2d | 1997-10-20 23:10:56 +0000 | [diff] [blame] | 3273 | LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 3274 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 2d9feed | 1997-11-24 17:36:21 +0000 | [diff] [blame] | 3275 | Linux*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3276 | # -u libsys_s pulls in all symbols in libsys |
| 3277 | next/2*|next/3*) LINKFORSHARED="-u libsys_s";; |
| 3278 | # -u __dummy makes the linker aware of the objc runtime |
| 3279 | # in System.framework; otherwise, __objcInit (referenced in |
| 3280 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 3281 | # loading of any modules which reference it in System.framework |
| 3282 | next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;; |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 3283 | Darwin/*) LINKFORSHARED="-u __dummy -u _PyMac_Error -framework System -framework Foundation -framework Carbon" ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3284 | UnixWare*) LINKFORSHARED="-dy -Bdynamic -Wl,-Bexport";; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3285 | SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 3286 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 3287 | FreeBSD*|NetBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 3288 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 3289 | then |
| 3290 | LINKFORSHARED="-Wl,--export-dynamic" |
| 3291 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3292 | SunOS/5*) case $CC in |
| 3293 | *gcc*) |
Guido van Rossum | ff48418 | 2000-02-03 13:50:24 +0000 | [diff] [blame] | 3294 | if $CC -Xlinker -V 2>&1 | grep BFD >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 3295 | then |
| 3296 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3297 | fi;; |
| 3298 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3299 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3300 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3301 | echo "$ac_t""$LINKFORSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3302 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3303 | |
| 3304 | echo $ac_n "checking CFLAGSFORSHARED""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3305 | echo "configure:3306: checking CFLAGSFORSHARED" >&5 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3306 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 3307 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 3308 | case $ac_sys_system in |
| 3309 | CYGWIN*) |
| 3310 | # Cygwin needs CCSHARED when building extension DLLs |
| 3311 | # but not when building the interpreter DLL. |
| 3312 | CFLAGSFORSHARED='';; |
| 3313 | *) |
| 3314 | CFLAGSFORSHARED='$(CCSHARED)' |
| 3315 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3316 | fi |
| 3317 | echo "$ac_t""$CFLAGSFORSHARED" 1>&6 |
| 3318 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3319 | # checks for libraries |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3320 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3321 | echo "configure:3322: checking for dlopen in -ldl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3322 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3323 | 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] | 3324 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3325 | else |
| 3326 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3327 | LIBS="-ldl $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3328 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3329 | #line 3330 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3330 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3331 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3332 | /* We use char because int might match the return type of a gcc2 |
| 3333 | builtin and then its argument prototype would still apply. */ |
| 3334 | char dlopen(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3335 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3336 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3337 | dlopen() |
| 3338 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3339 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3340 | if { (eval echo configure:3341: \"$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] | 3341 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3342 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3343 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3344 | echo "configure: failed program was:" >&5 |
| 3345 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3346 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3347 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3348 | fi |
| 3349 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3350 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3351 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3352 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3353 | 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] | 3354 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3355 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 3356 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3357 | cat >> confdefs.h <<EOF |
| 3358 | #define $ac_tr_lib 1 |
| 3359 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3360 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3361 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3362 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3363 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3364 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3365 | fi |
| 3366 | # Dynamic linking for SunOS/Solaris and SYSV |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3367 | echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3368 | echo "configure:3369: checking for shl_load in -ldld" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3369 | ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3370 | 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] | 3371 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3372 | else |
| 3373 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3374 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3375 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3376 | #line 3377 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3377 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3378 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3379 | /* We use char because int might match the return type of a gcc2 |
| 3380 | builtin and then its argument prototype would still apply. */ |
| 3381 | char shl_load(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3382 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3383 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3384 | shl_load() |
| 3385 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3386 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3387 | if { (eval echo configure:3388: \"$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] | 3388 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3389 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3390 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3391 | echo "configure: failed program was:" >&5 |
| 3392 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3393 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3394 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3395 | fi |
| 3396 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3397 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3398 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3399 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3400 | 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] | 3401 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3402 | ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 3403 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3404 | cat >> confdefs.h <<EOF |
| 3405 | #define $ac_tr_lib 1 |
| 3406 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3407 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3408 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3409 | |
| 3410 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3411 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3412 | fi |
| 3413 | # Dynamic linking for HP-UX |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3414 | |
| 3415 | # checks for system dependent C++ extensions support |
| 3416 | case "$ac_sys_system" in |
| 3417 | AIX*) echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3418 | echo "configure:3419: checking for genuine AIX C++ extensions support" >&5 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3419 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3420 | #line 3421 "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3421 | #include "confdefs.h" |
| 3422 | #include "/usr/lpp/xlC/include/load.h" |
| 3423 | int main() { |
| 3424 | loadAndInit("", 0, "") |
| 3425 | ; return 0; } |
| 3426 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3427 | if { (eval echo configure:3428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3428 | rm -rf conftest* |
| 3429 | cat >> confdefs.h <<\EOF |
| 3430 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 3431 | EOF |
| 3432 | |
| 3433 | echo "$ac_t""yes" 1>&6 |
| 3434 | else |
| 3435 | echo "configure: failed program was:" >&5 |
| 3436 | cat conftest.$ac_ext >&5 |
| 3437 | rm -rf conftest* |
| 3438 | echo "$ac_t""no" 1>&6 |
| 3439 | fi |
| 3440 | rm -f conftest*;; |
| 3441 | *) ;; |
| 3442 | esac |
| 3443 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 3444 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| 3445 | # However on SGI IRIX, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3446 | # BeOS' sockets are stashed in libnet. |
| 3447 | case "$ac_sys_system" in |
| 3448 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3449 | *) |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3450 | echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3451 | echo "configure:3452: checking for t_open in -lnsl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3452 | ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3453 | 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] | 3454 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3455 | else |
| 3456 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3457 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3458 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3459 | #line 3460 "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3460 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3461 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3462 | /* We use char because int might match the return type of a gcc2 |
| 3463 | builtin and then its argument prototype would still apply. */ |
| 3464 | char t_open(); |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3465 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3466 | int main() { |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 3467 | t_open() |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3468 | ; return 0; } |
| 3469 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3470 | if { (eval echo configure:3471: \"$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] | 3471 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3472 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3473 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3474 | echo "configure: failed program was:" >&5 |
| 3475 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3476 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3477 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3478 | fi |
| 3479 | rm -f conftest* |
| 3480 | LIBS="$ac_save_LIBS" |
| 3481 | |
| 3482 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3483 | 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] | 3484 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3485 | LIBS="-lnsl $LIBS" |
| 3486 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3487 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3488 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 3489 | # SVR4 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3490 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3491 | echo "configure:3492: checking for socket in -lsocket" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3492 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3493 | 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] | 3494 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3495 | else |
| 3496 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3497 | LIBS="-lsocket $LIBS $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3498 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3499 | #line 3500 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3500 | #include "confdefs.h" |
| 3501 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3502 | /* We use char because int might match the return type of a gcc2 |
| 3503 | builtin and then its argument prototype would still apply. */ |
| 3504 | char socket(); |
| 3505 | |
| 3506 | int main() { |
| 3507 | socket() |
| 3508 | ; return 0; } |
| 3509 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3510 | if { (eval echo configure:3511: \"$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] | 3511 | rm -rf conftest* |
| 3512 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3513 | else |
| 3514 | echo "configure: failed program was:" >&5 |
| 3515 | cat conftest.$ac_ext >&5 |
| 3516 | rm -rf conftest* |
| 3517 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3518 | fi |
| 3519 | rm -f conftest* |
| 3520 | LIBS="$ac_save_LIBS" |
| 3521 | |
| 3522 | fi |
| 3523 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3524 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3525 | LIBS="-lsocket $LIBS" |
| 3526 | else |
| 3527 | echo "$ac_t""no" 1>&6 |
| 3528 | fi |
| 3529 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3530 | ;; |
| 3531 | esac |
| 3532 | case "$ac_sys_system" in |
| 3533 | BeOS*) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3534 | echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3535 | echo "configure:3536: checking for socket in -lnet" >&5 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3536 | ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3537 | 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] | 3538 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3539 | else |
| 3540 | ac_save_LIBS="$LIBS" |
| 3541 | LIBS="-lnet $LIBS $LIBS" |
| 3542 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3543 | #line 3544 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3544 | #include "confdefs.h" |
| 3545 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3546 | /* We use char because int might match the return type of a gcc2 |
| 3547 | builtin and then its argument prototype would still apply. */ |
| 3548 | char socket(); |
| 3549 | |
| 3550 | int main() { |
| 3551 | socket() |
| 3552 | ; return 0; } |
| 3553 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3554 | if { (eval echo configure:3555: \"$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] | 3555 | rm -rf conftest* |
| 3556 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3557 | else |
| 3558 | echo "configure: failed program was:" >&5 |
| 3559 | cat conftest.$ac_ext >&5 |
| 3560 | rm -rf conftest* |
| 3561 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3562 | fi |
| 3563 | rm -f conftest* |
| 3564 | LIBS="$ac_save_LIBS" |
| 3565 | |
| 3566 | fi |
| 3567 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3568 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3569 | LIBS="-lnet $LIBS" |
| 3570 | else |
| 3571 | echo "$ac_t""no" 1>&6 |
| 3572 | fi |
| 3573 | # BeOS |
| 3574 | ;; |
| 3575 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 3576 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3577 | echo $ac_n "checking for --with-libs""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3578 | echo "configure:3579: checking for --with-libs" >&5 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3579 | # Check whether --with-libs or --without-libs was given. |
| 3580 | if test "${with_libs+set}" = set; then |
| 3581 | withval="$with_libs" |
| 3582 | |
| 3583 | echo "$ac_t""$withval" 1>&6 |
| 3584 | LIBS="$withval $LIBS" |
| 3585 | |
| 3586 | else |
| 3587 | echo "$ac_t""no" 1>&6 |
| 3588 | fi |
| 3589 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3590 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3591 | # Determine if signalmodule should be used. |
| 3592 | |
| 3593 | |
| 3594 | echo $ac_n "checking for --with-signal-module""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3595 | echo "configure:3596: checking for --with-signal-module" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3596 | # Check whether --with-signal-module or --without-signal-module was given. |
| 3597 | if test "${with_signal_module+set}" = set; then |
| 3598 | withval="$with_signal_module" |
| 3599 | : |
| 3600 | fi |
| 3601 | |
| 3602 | |
| 3603 | if test -z "$with_signal_module" |
| 3604 | then with_signal_module="yes" |
| 3605 | fi |
| 3606 | echo "$ac_t""$with_signal_module" 1>&6 |
| 3607 | |
| 3608 | if test "${with_signal_module}" = "yes"; then |
| 3609 | USE_SIGNAL_MODULE="" |
| 3610 | SIGNAL_OBJS="" |
| 3611 | else |
| 3612 | USE_SIGNAL_MODULE="#" |
| 3613 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 3614 | fi |
| 3615 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 3616 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 3617 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3618 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 3619 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3620 | echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3621 | echo "configure:3622: checking for --with-dec-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3622 | |
| 3623 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 3624 | if test "${with_dec_threads+set}" = set; then |
| 3625 | withval="$with_dec_threads" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3626 | |
| 3627 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3628 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3629 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3630 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3631 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3632 | else |
| 3633 | echo "$ac_t""no" 1>&6 |
| 3634 | fi |
| 3635 | |
| 3636 | |
| 3637 | echo $ac_n "checking for --with-threads""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3638 | echo "configure:3639: checking for --with-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3639 | # Check whether --with-threads or --without-threads was given. |
| 3640 | if test "${with_threads+set}" = set; then |
| 3641 | withval="$with_threads" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3642 | : |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3643 | fi |
| 3644 | |
| 3645 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3646 | # --with-thread is deprecated, but check for it anyway |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3647 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3648 | if test "${with_thread+set}" = set; then |
| 3649 | withval="$with_thread" |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3650 | |
| 3651 | with_threads=$with_thread |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3652 | fi |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3653 | |
| 3654 | |
| 3655 | if test -z "$with_threads" |
| 3656 | then with_threads="yes" |
| 3657 | fi |
| 3658 | echo "$ac_t""$with_threads" 1>&6 |
| 3659 | |
| 3660 | if test "$with_threads" = "no" |
| 3661 | then |
| 3662 | USE_THREAD_MODULE="#" |
| 3663 | else |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3664 | if test "$ac_sys_system" = "UnixWare" |
| 3665 | then |
| 3666 | CC="${CC} -Kthread" |
| 3667 | LIBOBJS="$LIBOBJS thread.o" |
| 3668 | cat >> confdefs.h <<\EOF |
| 3669 | #define WITH_THREAD 1 |
| 3670 | EOF |
| 3671 | |
| 3672 | cat >> confdefs.h <<\EOF |
| 3673 | #define _POSIX_THREADS 1 |
| 3674 | EOF |
| 3675 | |
| 3676 | USE_THREAD_MODULE="" |
| 3677 | else |
| 3678 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 3679 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 3680 | fi |
| 3681 | if test ! -z "$withval" -a -d "$withval" |
| 3682 | then LDFLAGS="$LDFLAGS -L$withval" |
| 3683 | fi |
| 3684 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 3685 | #define _REENTRANT 1 |
| 3686 | EOF |
| 3687 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3688 | ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3689 | echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3690 | echo "configure:3691: checking for mach/cthreads.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3691 | 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] | 3692 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3693 | else |
| 3694 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3695 | #line 3696 "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3696 | #include "confdefs.h" |
| 3697 | #include <mach/cthreads.h> |
| 3698 | EOF |
| 3699 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3700 | { (eval echo configure:3701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3701 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3702 | if test -z "$ac_err"; then |
| 3703 | rm -rf conftest* |
| 3704 | eval "ac_cv_header_$ac_safe=yes" |
| 3705 | else |
| 3706 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3707 | echo "configure: failed program was:" >&5 |
| 3708 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3709 | rm -rf conftest* |
| 3710 | eval "ac_cv_header_$ac_safe=no" |
| 3711 | fi |
| 3712 | rm -f conftest* |
| 3713 | fi |
| 3714 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3715 | echo "$ac_t""yes" 1>&6 |
| 3716 | cat >> confdefs.h <<\EOF |
| 3717 | #define WITH_THREAD 1 |
| 3718 | EOF |
| 3719 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3720 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3721 | #define C_THREADS 1 |
| 3722 | EOF |
| 3723 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3724 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3725 | else |
| 3726 | echo "$ac_t""no" 1>&6 |
| 3727 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3728 | echo $ac_n "checking for --with-pth""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3729 | echo "configure:3730: checking for --with-pth" >&5 |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3730 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3731 | if test "${with_pth+set}" = set; then |
| 3732 | withval="$with_pth" |
| 3733 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3734 | echo "$ac_t""$withval" 1>&6 |
| 3735 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3736 | #define WITH_THREAD 1 |
| 3737 | EOF |
| 3738 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3739 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3740 | #define HAVE_PTH 1 |
| 3741 | EOF |
| 3742 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3743 | LIBS="-lpth $LIBS" |
| 3744 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3745 | else |
| 3746 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3747 | echo "$ac_t""no" 1>&6 |
| 3748 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3749 | echo "configure:3750: checking for pthread_create in -lpthread" >&5 |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3750 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3751 | 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] | 3752 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3753 | else |
| 3754 | ac_save_LIBS="$LIBS" |
| 3755 | LIBS="-lpthread $LIBS" |
| 3756 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3757 | #line 3758 "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3758 | #include "confdefs.h" |
| 3759 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3760 | /* We use char because int might match the return type of a gcc2 |
| 3761 | builtin and then its argument prototype would still apply. */ |
| 3762 | char pthread_create(); |
| 3763 | |
| 3764 | int main() { |
| 3765 | pthread_create() |
| 3766 | ; return 0; } |
| 3767 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3768 | if { (eval echo configure:3769: \"$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] | 3769 | rm -rf conftest* |
| 3770 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3771 | else |
| 3772 | echo "configure: failed program was:" >&5 |
| 3773 | cat conftest.$ac_ext >&5 |
| 3774 | rm -rf conftest* |
| 3775 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3776 | fi |
| 3777 | rm -f conftest* |
| 3778 | LIBS="$ac_save_LIBS" |
| 3779 | |
| 3780 | fi |
| 3781 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3782 | echo "$ac_t""yes" 1>&6 |
| 3783 | cat >> confdefs.h <<\EOF |
| 3784 | #define WITH_THREAD 1 |
| 3785 | EOF |
| 3786 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3787 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3788 | #define _POSIX_THREADS 1 |
| 3789 | EOF |
| 3790 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3791 | LIBS="-lpthread $LIBS" |
| 3792 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3793 | else |
| 3794 | echo "$ac_t""no" 1>&6 |
| 3795 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3796 | echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3797 | echo "configure:3798: checking for pthread_detach" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3798 | 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] | 3799 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3800 | else |
| 3801 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3802 | #line 3803 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3803 | #include "confdefs.h" |
| 3804 | /* System header to define __stub macros and hopefully few prototypes, |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3805 | which can conflict with char pthread_detach(); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3806 | #include <assert.h> |
| 3807 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3808 | /* We use char because int might match the return type of a gcc2 |
| 3809 | builtin and then its argument prototype would still apply. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3810 | char pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3811 | |
| 3812 | int main() { |
| 3813 | |
| 3814 | /* The GNU C library defines this for functions which it implements |
| 3815 | to always fail with ENOSYS. Some functions are actually named |
| 3816 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3817 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3818 | choke me |
| 3819 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3820 | pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3821 | #endif |
| 3822 | |
| 3823 | ; return 0; } |
| 3824 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3825 | if { (eval echo configure:3826: \"$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] | 3826 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3827 | eval "ac_cv_func_pthread_detach=yes" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3828 | else |
| 3829 | echo "configure: failed program was:" >&5 |
| 3830 | cat conftest.$ac_ext >&5 |
| 3831 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3832 | eval "ac_cv_func_pthread_detach=no" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3833 | fi |
| 3834 | rm -f conftest* |
| 3835 | fi |
| 3836 | |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3837 | if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3838 | echo "$ac_t""yes" 1>&6 |
| 3839 | cat >> confdefs.h <<\EOF |
| 3840 | #define WITH_THREAD 1 |
| 3841 | EOF |
| 3842 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3843 | case $ac_sys_system in |
| 3844 | Darwin*) ;; |
| 3845 | *) cat >> confdefs.h <<\EOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3846 | #define _POSIX_THREADS 1 |
| 3847 | EOF |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3848 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3849 | esac |
| 3850 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3851 | else |
| 3852 | echo "$ac_t""no" 1>&6 |
| 3853 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3854 | ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3855 | echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3856 | echo "configure:3857: checking for kernel/OS.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3857 | 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] | 3858 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3859 | else |
| 3860 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3861 | #line 3862 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3862 | #include "confdefs.h" |
| 3863 | #include <kernel/OS.h> |
| 3864 | EOF |
| 3865 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3866 | { (eval echo configure:3867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3867 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3868 | if test -z "$ac_err"; then |
| 3869 | rm -rf conftest* |
| 3870 | eval "ac_cv_header_$ac_safe=yes" |
| 3871 | else |
| 3872 | echo "$ac_err" >&5 |
| 3873 | echo "configure: failed program was:" >&5 |
| 3874 | cat conftest.$ac_ext >&5 |
| 3875 | rm -rf conftest* |
| 3876 | eval "ac_cv_header_$ac_safe=no" |
| 3877 | fi |
| 3878 | rm -f conftest* |
| 3879 | fi |
| 3880 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3881 | echo "$ac_t""yes" 1>&6 |
| 3882 | cat >> confdefs.h <<\EOF |
| 3883 | #define WITH_THREAD 1 |
| 3884 | EOF |
| 3885 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3886 | cat >> confdefs.h <<\EOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3887 | #define BEOS_THREADS 1 |
| 3888 | EOF |
| 3889 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3890 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3891 | else |
| 3892 | echo "$ac_t""no" 1>&6 |
| 3893 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3894 | echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3895 | echo "configure:3896: checking for pthread_create in -lpthreads" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3896 | ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3897 | 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] | 3898 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3899 | else |
| 3900 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3901 | LIBS="-lpthreads $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3902 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3903 | #line 3904 "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3904 | #include "confdefs.h" |
| 3905 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3906 | /* We use char because int might match the return type of a gcc2 |
| 3907 | builtin and then its argument prototype would still apply. */ |
| 3908 | char pthread_create(); |
| 3909 | |
| 3910 | int main() { |
| 3911 | pthread_create() |
| 3912 | ; return 0; } |
| 3913 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3914 | if { (eval echo configure:3915: \"$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] | 3915 | rm -rf conftest* |
| 3916 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3917 | else |
| 3918 | echo "configure: failed program was:" >&5 |
| 3919 | cat conftest.$ac_ext >&5 |
| 3920 | rm -rf conftest* |
| 3921 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3922 | fi |
| 3923 | rm -f conftest* |
| 3924 | LIBS="$ac_save_LIBS" |
| 3925 | |
| 3926 | fi |
| 3927 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3928 | echo "$ac_t""yes" 1>&6 |
| 3929 | cat >> confdefs.h <<\EOF |
| 3930 | #define WITH_THREAD 1 |
| 3931 | EOF |
| 3932 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3933 | cat >> confdefs.h <<\EOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3934 | #define _POSIX_THREADS 1 |
| 3935 | EOF |
| 3936 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3937 | LIBS="$LIBS -lpthreads" |
| 3938 | LIBOBJS="$LIBOBJS thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3939 | else |
| 3940 | echo "$ac_t""no" 1>&6 |
| 3941 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3942 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3943 | echo "configure:3944: checking for pthread_create in -lc_r" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3944 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3945 | 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] | 3946 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3947 | else |
| 3948 | ac_save_LIBS="$LIBS" |
| 3949 | LIBS="-lc_r $LIBS" |
| 3950 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3951 | #line 3952 "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3952 | #include "confdefs.h" |
| 3953 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3954 | /* We use char because int might match the return type of a gcc2 |
| 3955 | builtin and then its argument prototype would still apply. */ |
| 3956 | char pthread_create(); |
| 3957 | |
| 3958 | int main() { |
| 3959 | pthread_create() |
| 3960 | ; return 0; } |
| 3961 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3962 | if { (eval echo configure:3963: \"$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] | 3963 | rm -rf conftest* |
| 3964 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3965 | else |
| 3966 | echo "configure: failed program was:" >&5 |
| 3967 | cat conftest.$ac_ext >&5 |
| 3968 | rm -rf conftest* |
| 3969 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3970 | fi |
| 3971 | rm -f conftest* |
| 3972 | LIBS="$ac_save_LIBS" |
| 3973 | |
| 3974 | fi |
| 3975 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3976 | echo "$ac_t""yes" 1>&6 |
| 3977 | cat >> confdefs.h <<\EOF |
| 3978 | #define WITH_THREAD 1 |
| 3979 | EOF |
| 3980 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3981 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3982 | #define _POSIX_THREADS 1 |
| 3983 | EOF |
| 3984 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3985 | LIBS="$LIBS -lc_r" |
| 3986 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3987 | else |
| 3988 | echo "$ac_t""no" 1>&6 |
| 3989 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3990 | echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3991 | echo "configure:3992: checking for __d6_pthread_create in -lthread" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3992 | ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3993 | 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] | 3994 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3995 | else |
| 3996 | ac_save_LIBS="$LIBS" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3997 | LIBS="-lthread $LIBS" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3998 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3999 | #line 4000 "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4000 | #include "confdefs.h" |
| 4001 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4002 | /* We use char because int might match the return type of a gcc2 |
| 4003 | builtin and then its argument prototype would still apply. */ |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 4004 | char __d6_pthread_create(); |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4005 | |
| 4006 | int main() { |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 4007 | __d6_pthread_create() |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4008 | ; return 0; } |
| 4009 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4010 | if { (eval echo configure:4011: \"$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] | 4011 | rm -rf conftest* |
| 4012 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4013 | else |
| 4014 | echo "configure: failed program was:" >&5 |
| 4015 | cat conftest.$ac_ext >&5 |
| 4016 | rm -rf conftest* |
| 4017 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4018 | fi |
| 4019 | rm -f conftest* |
| 4020 | LIBS="$ac_save_LIBS" |
| 4021 | |
| 4022 | fi |
| 4023 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4024 | echo "$ac_t""yes" 1>&6 |
| 4025 | cat >> confdefs.h <<\EOF |
| 4026 | #define WITH_THREAD 1 |
| 4027 | EOF |
| 4028 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4029 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4030 | #define _POSIX_THREADS 1 |
| 4031 | EOF |
| 4032 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4033 | LIBS="$LIBS -lthread" |
| 4034 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 4035 | else |
| 4036 | echo "$ac_t""no" 1>&6 |
| 4037 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4038 | echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4039 | echo "configure:4040: checking for __pthread_create_system in -lpthread" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4040 | ac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'` |
| 4041 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4042 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4043 | else |
| 4044 | ac_save_LIBS="$LIBS" |
| 4045 | LIBS="-lpthread $LIBS" |
| 4046 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4047 | #line 4048 "configure" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4048 | #include "confdefs.h" |
| 4049 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4050 | /* We use char because int might match the return type of a gcc2 |
| 4051 | builtin and then its argument prototype would still apply. */ |
| 4052 | char __pthread_create_system(); |
| 4053 | |
| 4054 | int main() { |
| 4055 | __pthread_create_system() |
| 4056 | ; return 0; } |
| 4057 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4058 | if { (eval echo configure:4059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4059 | rm -rf conftest* |
| 4060 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4061 | else |
| 4062 | echo "configure: failed program was:" >&5 |
| 4063 | cat conftest.$ac_ext >&5 |
| 4064 | rm -rf conftest* |
| 4065 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4066 | fi |
| 4067 | rm -f conftest* |
| 4068 | LIBS="$ac_save_LIBS" |
| 4069 | |
| 4070 | fi |
| 4071 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4072 | echo "$ac_t""yes" 1>&6 |
| 4073 | cat >> confdefs.h <<\EOF |
| 4074 | #define WITH_THREAD 1 |
| 4075 | EOF |
| 4076 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4077 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4078 | #define _POSIX_THREADS 1 |
| 4079 | EOF |
| 4080 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4081 | LIBS="$LIBS -lpthread" |
| 4082 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4083 | else |
| 4084 | echo "$ac_t""no" 1>&6 |
| 4085 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4086 | echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4087 | echo "configure:4088: checking for pthread_create in -lcma" >&5 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4088 | ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4089 | 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] | 4090 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4091 | else |
| 4092 | ac_save_LIBS="$LIBS" |
| 4093 | LIBS="-lcma $LIBS" |
| 4094 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4095 | #line 4096 "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4096 | #include "confdefs.h" |
| 4097 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4098 | /* We use char because int might match the return type of a gcc2 |
| 4099 | builtin and then its argument prototype would still apply. */ |
| 4100 | char pthread_create(); |
| 4101 | |
| 4102 | int main() { |
| 4103 | pthread_create() |
| 4104 | ; return 0; } |
| 4105 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4106 | if { (eval echo configure:4107: \"$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] | 4107 | rm -rf conftest* |
| 4108 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4109 | else |
| 4110 | echo "configure: failed program was:" >&5 |
| 4111 | cat conftest.$ac_ext >&5 |
| 4112 | rm -rf conftest* |
| 4113 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4114 | fi |
| 4115 | rm -f conftest* |
| 4116 | LIBS="$ac_save_LIBS" |
| 4117 | |
| 4118 | fi |
| 4119 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4120 | echo "$ac_t""yes" 1>&6 |
| 4121 | cat >> confdefs.h <<\EOF |
| 4122 | #define WITH_THREAD 1 |
| 4123 | EOF |
| 4124 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4125 | cat >> confdefs.h <<\EOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4126 | #define _POSIX_THREADS 1 |
| 4127 | EOF |
| 4128 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4129 | LIBS="$LIBS -lcma" |
| 4130 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4131 | else |
| 4132 | echo "$ac_t""no" 1>&6 |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 4133 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4134 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 4135 | fi |
| 4136 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4137 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4138 | fi |
| 4139 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4140 | fi |
| 4141 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 4142 | fi |
| 4143 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 4144 | fi |
| 4145 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4146 | fi |
| 4147 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 4148 | fi |
| 4149 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 4150 | fi |
| 4151 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4152 | fi |
| 4153 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4154 | fi |
| 4155 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 4156 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4157 | echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4158 | echo "configure:4159: checking for usconfig in -lmpc" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4159 | ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4160 | 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] | 4161 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4162 | else |
| 4163 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4164 | LIBS="-lmpc $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4165 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4166 | #line 4167 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4167 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4168 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4169 | /* We use char because int might match the return type of a gcc2 |
| 4170 | builtin and then its argument prototype would still apply. */ |
| 4171 | char usconfig(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4172 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4173 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4174 | usconfig() |
| 4175 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4176 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4177 | if { (eval echo configure:4178: \"$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] | 4178 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4179 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4180 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4181 | echo "configure: failed program was:" >&5 |
| 4182 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4183 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4184 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4185 | fi |
| 4186 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4187 | LIBS="$ac_save_LIBS" |
| 4188 | |
| 4189 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4190 | 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] | 4191 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4192 | cat >> confdefs.h <<\EOF |
| 4193 | #define WITH_THREAD 1 |
| 4194 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4195 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4196 | LIBS="$LIBS -lmpc" |
| 4197 | LIBOBJS="$LIBOBJS thread.o" |
| 4198 | USE_THREAD_MODULE="" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4199 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4200 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4201 | fi |
| 4202 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4203 | echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4204 | echo "configure:4205: checking for thr_create in -lthread" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4205 | ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4206 | 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] | 4207 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4208 | else |
| 4209 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4210 | LIBS="-lthread $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4211 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4212 | #line 4213 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4213 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4214 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4215 | /* We use char because int might match the return type of a gcc2 |
| 4216 | builtin and then its argument prototype would still apply. */ |
| 4217 | char thr_create(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4218 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4219 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4220 | thr_create() |
| 4221 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4222 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4223 | if { (eval echo configure:4224: \"$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] | 4224 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4225 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4226 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4227 | echo "configure: failed program was:" >&5 |
| 4228 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4229 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4230 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4231 | fi |
| 4232 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4233 | LIBS="$ac_save_LIBS" |
| 4234 | |
| 4235 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4236 | 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] | 4237 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4238 | cat >> confdefs.h <<\EOF |
| 4239 | #define WITH_THREAD 1 |
| 4240 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4241 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4242 | LIBS="$LIBS -lthread" |
| 4243 | LIBOBJS="$LIBOBJS thread.o" |
| 4244 | USE_THREAD_MODULE="" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4245 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4246 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4247 | fi |
| 4248 | |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 4249 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 4250 | if test "$USE_THREAD_MODULE" != "#" |
| 4251 | then |
| 4252 | # If the above checks didn't disable threads, (at least) OSF1 |
| 4253 | # needs this '-threads' argument during linking. |
| 4254 | case $ac_sys_system in |
| 4255 | OSF1) LDLAST=-threads;; |
| 4256 | esac |
| 4257 | fi |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 4258 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4259 | fi |
| 4260 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4261 | # Check for GC support |
| 4262 | |
| 4263 | USE_GC_MODULE="" |
| 4264 | echo $ac_n "checking for --with-cycle-gc""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4265 | echo "configure:4266: checking for --with-cycle-gc" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4266 | # Check whether --with-cycle-gc or --without-cycle-gc was given. |
| 4267 | if test "${with_cycle_gc+set}" = set; then |
| 4268 | withval="$with_cycle_gc" |
| 4269 | : |
| 4270 | fi |
| 4271 | |
| 4272 | |
| 4273 | if test -z "$with_cycle_gc" |
| 4274 | then with_cycle_gc="yes" |
| 4275 | fi |
| 4276 | if test "$with_cycle_gc" = "no" |
| 4277 | then |
| 4278 | USE_GC_MODULE="#" |
| 4279 | else |
| 4280 | cat >> confdefs.h <<\EOF |
| 4281 | #define WITH_CYCLE_GC 1 |
| 4282 | EOF |
| 4283 | |
| 4284 | fi |
| 4285 | echo "$ac_t""$with_cycle_gc" 1>&6 |
| 4286 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4287 | # Check for Python-specific malloc support |
| 4288 | echo $ac_n "checking for --with-pymalloc""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4289 | echo "configure:4290: checking for --with-pymalloc" >&5 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4290 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 4291 | if test "${with_pymalloc+set}" = set; then |
| 4292 | withval="$with_pymalloc" |
| 4293 | |
| 4294 | if test "$withval" != no |
| 4295 | then cat >> confdefs.h <<\EOF |
| 4296 | #define WITH_PYMALLOC 1 |
| 4297 | EOF |
| 4298 | echo "$ac_t""yes" 1>&6 |
| 4299 | else echo "$ac_t""no" 1>&6 |
| 4300 | fi |
| 4301 | else |
| 4302 | echo "$ac_t""no" 1>&6 |
| 4303 | fi |
| 4304 | |
| 4305 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4306 | # Check for --with-wctype-functions |
| 4307 | echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4308 | echo "configure:4309: checking for --with-wctype-functions" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4309 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 4310 | if test "${with_wctype_functions+set}" = set; then |
| 4311 | withval="$with_wctype_functions" |
| 4312 | |
| 4313 | if test "$withval" != no |
| 4314 | then cat >> confdefs.h <<\EOF |
| 4315 | #define WANT_WCTYPE_FUNCTIONS 1 |
| 4316 | EOF |
| 4317 | echo "$ac_t""yes" 1>&6 |
| 4318 | else echo "$ac_t""no" 1>&6 |
| 4319 | fi |
| 4320 | else |
| 4321 | echo "$ac_t""no" 1>&6 |
| 4322 | fi |
| 4323 | |
| 4324 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4325 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4326 | |
| 4327 | DLINCLDIR=/ |
| 4328 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4329 | echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4330 | echo "configure:4331: checking for --with-sgi-dl" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4331 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4332 | if test "${with_sgi_dl+set}" = set; then |
| 4333 | withval="$with_sgi_dl" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4334 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4335 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4336 | cat >> confdefs.h <<\EOF |
| 4337 | #define WITH_SGI_DL 1 |
| 4338 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4339 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4340 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4341 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 4342 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4343 | then LDFLAGS="$LDFLAGS -L$dldir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4344 | 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] | 4345 | fi |
| 4346 | DLINCLDIR=${dldir} |
| 4347 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4348 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4349 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4350 | fi |
| 4351 | |
| 4352 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4353 | echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4354 | echo "configure:4355: checking for --with-dl-dld" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4355 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4356 | if test "${with_dl_dld+set}" = set; then |
| 4357 | withval="$with_dl_dld" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4358 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4359 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4360 | cat >> confdefs.h <<\EOF |
| 4361 | #define WITH_DL_DLD 1 |
| 4362 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4363 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4364 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4365 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 4366 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 4367 | 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] | 4368 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4369 | 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] | 4370 | fi |
| 4371 | DLINCLDIR=${dldir} |
| 4372 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4373 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4374 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4375 | fi |
| 4376 | |
| 4377 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4378 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 4379 | # 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] | 4380 | for ac_func in dlopen |
| 4381 | do |
| 4382 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4383 | echo "configure:4384: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4384 | 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] | 4385 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4386 | else |
| 4387 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4388 | #line 4389 "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4389 | #include "confdefs.h" |
| 4390 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4391 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4392 | #include <assert.h> |
| 4393 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4394 | /* We use char because int might match the return type of a gcc2 |
| 4395 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4396 | char $ac_func(); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4397 | |
| 4398 | int main() { |
| 4399 | |
| 4400 | /* The GNU C library defines this for functions which it implements |
| 4401 | to always fail with ENOSYS. Some functions are actually named |
| 4402 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4403 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4404 | choke me |
| 4405 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4406 | $ac_func(); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4407 | #endif |
| 4408 | |
| 4409 | ; return 0; } |
| 4410 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4411 | if { (eval echo configure:4412: \"$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] | 4412 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4413 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4414 | else |
| 4415 | echo "configure: failed program was:" >&5 |
| 4416 | cat conftest.$ac_ext >&5 |
| 4417 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4418 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4419 | fi |
| 4420 | rm -f conftest* |
| 4421 | fi |
| 4422 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4423 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4424 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4425 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4426 | cat >> confdefs.h <<EOF |
| 4427 | #define $ac_tr_func 1 |
| 4428 | EOF |
| 4429 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4430 | else |
| 4431 | echo "$ac_t""no" 1>&6 |
| 4432 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4433 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4434 | |
| 4435 | |
| 4436 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 4437 | # loading of modules. |
| 4438 | |
| 4439 | echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4440 | echo "configure:4441: checking DYNLOADFILE" >&5 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4441 | if test -z "$DYNLOADFILE" |
| 4442 | then |
| 4443 | case $ac_sys_system/$ac_sys_release in |
| 4444 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 4445 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 4446 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 4447 | Darwin/*|next/*) DYNLOADFILE="dynload_next.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4448 | *) |
| 4449 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 4450 | # out any dynamic loading |
| 4451 | if test "$ac_cv_func_dlopen" = yes |
| 4452 | then DYNLOADFILE="dynload_shlib.o" |
| 4453 | else DYNLOADFILE="dynload_stub.o" |
| 4454 | fi |
| 4455 | ;; |
| 4456 | esac |
| 4457 | fi |
| 4458 | echo "$ac_t""$DYNLOADFILE" 1>&6 |
| 4459 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 4460 | then |
| 4461 | cat >> confdefs.h <<\EOF |
| 4462 | #define HAVE_DYNAMIC_LOADING 1 |
| 4463 | EOF |
| 4464 | |
| 4465 | fi |
| 4466 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 4467 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 4468 | |
| 4469 | |
| 4470 | echo $ac_n "checking MACHDEP_OBJS""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4471 | echo "configure:4472: checking MACHDEP_OBJS" >&5 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 4472 | if test -z "$MACHDEP_OBJS" |
| 4473 | then |
| 4474 | case $ac_sys_system/$ac_sys_release in |
| 4475 | Darwin/*) |
| 4476 | MACHDEP_OBJS="Mac/Python/macglue.o" |
| 4477 | cat >> confdefs.h <<\EOF |
| 4478 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
| 4479 | EOF |
| 4480 | |
| 4481 | ;; |
| 4482 | *) MACHDEP_OBJS="";; |
| 4483 | esac |
| 4484 | fi |
| 4485 | echo "$ac_t""$DYNLOADFILE" 1>&6 |
| 4486 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4487 | # checks for library functions |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4488 | for ac_func in alarm chown clock confstr ctermid ctermid_r execv \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4489 | flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Andrew M. Kuchling | a9586c7 | 2001-01-08 17:58:56 +0000 | [diff] [blame] | 4490 | getgroups getlogin getpeername getpid getpwent getwd \ |
Martin v. Löwis | b9ab159 | 2001-06-24 21:18:26 +0000 | [diff] [blame] | 4491 | inet_pton kill link lstat mkfifo mktime mremap \ |
Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame] | 4492 | nice pathconf pause plock poll pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4493 | putenv readlink \ |
Andrew M. Kuchling | 8d2f2b2 | 2000-07-13 01:26:58 +0000 | [diff] [blame] | 4494 | select setegid seteuid setgid \ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4495 | setlocale setregid setreuid setsid setpgid setuid setvbuf \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4496 | sigaction siginterrupt sigrelse strftime strptime symlink sysconf \ |
Fred Drake | 89143df | 1999-12-09 22:03:25 +0000 | [diff] [blame] | 4497 | tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Thomas Wouters | c2c12dc | 2001-07-11 14:45:34 +0000 | [diff] [blame] | 4498 | truncate uname waitpid _getpty getpriority |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4499 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4500 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4501 | echo "configure:4502: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4502 | 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] | 4503 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4504 | else |
| 4505 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4506 | #line 4507 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4507 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4508 | /* System header to define __stub macros and hopefully few prototypes, |
| 4509 | which can conflict with char $ac_func(); below. */ |
| 4510 | #include <assert.h> |
| 4511 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4512 | /* We use char because int might match the return type of a gcc2 |
| 4513 | builtin and then its argument prototype would still apply. */ |
| 4514 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4515 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4516 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4517 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4518 | /* The GNU C library defines this for functions which it implements |
| 4519 | to always fail with ENOSYS. Some functions are actually named |
| 4520 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4521 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4522 | choke me |
| 4523 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4524 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4525 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4526 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4527 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4528 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4529 | if { (eval echo configure:4530: \"$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] | 4530 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4531 | eval "ac_cv_func_$ac_func=yes" |
| 4532 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4533 | echo "configure: failed program was:" >&5 |
| 4534 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4535 | rm -rf conftest* |
| 4536 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4537 | fi |
| 4538 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4539 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4540 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4541 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4542 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4543 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4544 | cat >> confdefs.h <<EOF |
| 4545 | #define $ac_tr_func 1 |
| 4546 | EOF |
| 4547 | |
| 4548 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4549 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4550 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4551 | done |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4552 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4553 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4554 | # check for openpty and forkpty |
| 4555 | |
| 4556 | for ac_func in openpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4557 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4558 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4559 | echo "configure:4560: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4560 | 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] | 4561 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4562 | else |
| 4563 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4564 | #line 4565 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4565 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4566 | /* System header to define __stub macros and hopefully few prototypes, |
| 4567 | which can conflict with char $ac_func(); below. */ |
| 4568 | #include <assert.h> |
| 4569 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4570 | /* We use char because int might match the return type of a gcc2 |
| 4571 | builtin and then its argument prototype would still apply. */ |
| 4572 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4573 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4574 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4575 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4576 | /* The GNU C library defines this for functions which it implements |
| 4577 | to always fail with ENOSYS. Some functions are actually named |
| 4578 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4579 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4580 | choke me |
| 4581 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4582 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4583 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4584 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4585 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4586 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4587 | if { (eval echo configure:4588: \"$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] | 4588 | rm -rf conftest* |
| 4589 | eval "ac_cv_func_$ac_func=yes" |
| 4590 | else |
| 4591 | echo "configure: failed program was:" >&5 |
| 4592 | cat conftest.$ac_ext >&5 |
| 4593 | rm -rf conftest* |
| 4594 | eval "ac_cv_func_$ac_func=no" |
| 4595 | fi |
| 4596 | rm -f conftest* |
| 4597 | fi |
| 4598 | |
| 4599 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4600 | echo "$ac_t""yes" 1>&6 |
| 4601 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4602 | cat >> confdefs.h <<EOF |
| 4603 | #define $ac_tr_func 1 |
| 4604 | EOF |
| 4605 | |
| 4606 | else |
| 4607 | echo "$ac_t""no" 1>&6 |
| 4608 | echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4609 | echo "configure:4610: checking for openpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4610 | ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4611 | 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] | 4612 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4613 | else |
| 4614 | ac_save_LIBS="$LIBS" |
| 4615 | LIBS="-lutil $LIBS" |
| 4616 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4617 | #line 4618 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4618 | #include "confdefs.h" |
| 4619 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4620 | /* We use char because int might match the return type of a gcc2 |
| 4621 | builtin and then its argument prototype would still apply. */ |
| 4622 | char openpty(); |
| 4623 | |
| 4624 | int main() { |
| 4625 | openpty() |
| 4626 | ; return 0; } |
| 4627 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4628 | if { (eval echo configure:4629: \"$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] | 4629 | rm -rf conftest* |
| 4630 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4631 | else |
| 4632 | echo "configure: failed program was:" >&5 |
| 4633 | cat conftest.$ac_ext >&5 |
| 4634 | rm -rf conftest* |
| 4635 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4636 | fi |
| 4637 | rm -f conftest* |
| 4638 | LIBS="$ac_save_LIBS" |
| 4639 | |
| 4640 | fi |
| 4641 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4642 | echo "$ac_t""yes" 1>&6 |
| 4643 | cat >> confdefs.h <<\EOF |
| 4644 | #define HAVE_OPENPTY 1 |
| 4645 | EOF |
| 4646 | LIBS="$LIBS -lutil" |
| 4647 | else |
| 4648 | echo "$ac_t""no" 1>&6 |
| 4649 | fi |
| 4650 | |
| 4651 | fi |
| 4652 | done |
| 4653 | |
| 4654 | for ac_func in forkpty |
| 4655 | do |
| 4656 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4657 | echo "configure:4658: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4658 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4659 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4660 | else |
| 4661 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4662 | #line 4663 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4663 | #include "confdefs.h" |
| 4664 | /* System header to define __stub macros and hopefully few prototypes, |
| 4665 | which can conflict with char $ac_func(); below. */ |
| 4666 | #include <assert.h> |
| 4667 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4668 | /* We use char because int might match the return type of a gcc2 |
| 4669 | builtin and then its argument prototype would still apply. */ |
| 4670 | char $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4671 | |
| 4672 | int main() { |
| 4673 | |
| 4674 | /* The GNU C library defines this for functions which it implements |
| 4675 | to always fail with ENOSYS. Some functions are actually named |
| 4676 | something starting with __ and the normal name is an alias. */ |
| 4677 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4678 | choke me |
| 4679 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4680 | $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4681 | #endif |
| 4682 | |
| 4683 | ; return 0; } |
| 4684 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4685 | if { (eval echo configure:4686: \"$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] | 4686 | rm -rf conftest* |
| 4687 | eval "ac_cv_func_$ac_func=yes" |
| 4688 | else |
| 4689 | echo "configure: failed program was:" >&5 |
| 4690 | cat conftest.$ac_ext >&5 |
| 4691 | rm -rf conftest* |
| 4692 | eval "ac_cv_func_$ac_func=no" |
| 4693 | fi |
| 4694 | rm -f conftest* |
| 4695 | fi |
| 4696 | |
| 4697 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4698 | echo "$ac_t""yes" 1>&6 |
| 4699 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4700 | cat >> confdefs.h <<EOF |
| 4701 | #define $ac_tr_func 1 |
| 4702 | EOF |
| 4703 | |
| 4704 | else |
| 4705 | echo "$ac_t""no" 1>&6 |
| 4706 | echo $ac_n "checking for forkpty in -lutil""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4707 | echo "configure:4708: checking for forkpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4708 | ac_lib_var=`echo util'_'forkpty | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4709 | 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] | 4710 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4711 | else |
| 4712 | ac_save_LIBS="$LIBS" |
| 4713 | LIBS="-lutil $LIBS" |
| 4714 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4715 | #line 4716 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4716 | #include "confdefs.h" |
| 4717 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4718 | /* We use char because int might match the return type of a gcc2 |
| 4719 | builtin and then its argument prototype would still apply. */ |
| 4720 | char forkpty(); |
| 4721 | |
| 4722 | int main() { |
| 4723 | forkpty() |
| 4724 | ; return 0; } |
| 4725 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4726 | if { (eval echo configure:4727: \"$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] | 4727 | rm -rf conftest* |
| 4728 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4729 | else |
| 4730 | echo "configure: failed program was:" >&5 |
| 4731 | cat conftest.$ac_ext >&5 |
| 4732 | rm -rf conftest* |
| 4733 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4734 | fi |
| 4735 | rm -f conftest* |
| 4736 | LIBS="$ac_save_LIBS" |
| 4737 | |
| 4738 | fi |
| 4739 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4740 | echo "$ac_t""yes" 1>&6 |
| 4741 | cat >> confdefs.h <<\EOF |
| 4742 | #define HAVE_FORKPTY 1 |
| 4743 | EOF |
| 4744 | LIBS="$LIBS -lutil" |
| 4745 | else |
| 4746 | echo "$ac_t""no" 1>&6 |
| 4747 | fi |
| 4748 | |
| 4749 | fi |
| 4750 | done |
| 4751 | |
| 4752 | |
| 4753 | # check for long file support functions |
| 4754 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 4755 | do |
| 4756 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4757 | echo "configure:4758: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4758 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4759 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4760 | else |
| 4761 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4762 | #line 4763 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4763 | #include "confdefs.h" |
| 4764 | /* System header to define __stub macros and hopefully few prototypes, |
| 4765 | which can conflict with char $ac_func(); below. */ |
| 4766 | #include <assert.h> |
| 4767 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4768 | /* We use char because int might match the return type of a gcc2 |
| 4769 | builtin and then its argument prototype would still apply. */ |
| 4770 | char $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4771 | |
| 4772 | int main() { |
| 4773 | |
| 4774 | /* The GNU C library defines this for functions which it implements |
| 4775 | to always fail with ENOSYS. Some functions are actually named |
| 4776 | something starting with __ and the normal name is an alias. */ |
| 4777 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4778 | choke me |
| 4779 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4780 | $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4781 | #endif |
| 4782 | |
| 4783 | ; return 0; } |
| 4784 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4785 | if { (eval echo configure:4786: \"$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] | 4786 | rm -rf conftest* |
| 4787 | eval "ac_cv_func_$ac_func=yes" |
| 4788 | else |
| 4789 | echo "configure: failed program was:" >&5 |
| 4790 | cat conftest.$ac_ext >&5 |
| 4791 | rm -rf conftest* |
| 4792 | eval "ac_cv_func_$ac_func=no" |
| 4793 | fi |
| 4794 | rm -f conftest* |
| 4795 | fi |
| 4796 | |
| 4797 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4798 | echo "$ac_t""yes" 1>&6 |
| 4799 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4800 | cat >> confdefs.h <<EOF |
| 4801 | #define $ac_tr_func 1 |
| 4802 | EOF |
| 4803 | |
| 4804 | else |
| 4805 | echo "$ac_t""no" 1>&6 |
| 4806 | fi |
| 4807 | done |
| 4808 | |
| 4809 | |
| 4810 | for ac_func in dup2 getcwd strdup strerror memmove |
| 4811 | do |
| 4812 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4813 | echo "configure:4814: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4814 | 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] | 4815 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4816 | else |
| 4817 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4818 | #line 4819 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4819 | #include "confdefs.h" |
| 4820 | /* System header to define __stub macros and hopefully few prototypes, |
| 4821 | which can conflict with char $ac_func(); below. */ |
| 4822 | #include <assert.h> |
| 4823 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4824 | /* We use char because int might match the return type of a gcc2 |
| 4825 | builtin and then its argument prototype would still apply. */ |
| 4826 | char $ac_func(); |
| 4827 | |
| 4828 | int main() { |
| 4829 | |
| 4830 | /* The GNU C library defines this for functions which it implements |
| 4831 | to always fail with ENOSYS. Some functions are actually named |
| 4832 | something starting with __ and the normal name is an alias. */ |
| 4833 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4834 | choke me |
| 4835 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4836 | $ac_func(); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4837 | #endif |
| 4838 | |
| 4839 | ; return 0; } |
| 4840 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4841 | if { (eval echo configure:4842: \"$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] | 4842 | rm -rf conftest* |
| 4843 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4844 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4845 | echo "configure: failed program was:" >&5 |
| 4846 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4847 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4848 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4849 | fi |
| 4850 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4851 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4852 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4853 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4854 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4855 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4856 | cat >> confdefs.h <<EOF |
| 4857 | #define $ac_tr_func 1 |
| 4858 | EOF |
| 4859 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4860 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4861 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4862 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4863 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4864 | done |
| 4865 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4866 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4867 | for ac_func in getpgrp |
| 4868 | do |
| 4869 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4870 | echo "configure:4871: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4871 | 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] | 4872 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4873 | else |
| 4874 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4875 | #line 4876 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4876 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4877 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4878 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4879 | #include <assert.h> |
| 4880 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4881 | /* We use char because int might match the return type of a gcc2 |
| 4882 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4883 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4884 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4885 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4886 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4887 | /* The GNU C library defines this for functions which it implements |
| 4888 | to always fail with ENOSYS. Some functions are actually named |
| 4889 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4890 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4891 | choke me |
| 4892 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4893 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4894 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4895 | |
| 4896 | ; return 0; } |
| 4897 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4898 | if { (eval echo configure:4899: \"$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] | 4899 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4900 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4901 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4902 | echo "configure: failed program was:" >&5 |
| 4903 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4904 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4905 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4906 | fi |
| 4907 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4908 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4909 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4910 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4911 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4912 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4913 | cat >> confdefs.h <<EOF |
| 4914 | #define $ac_tr_func 1 |
| 4915 | EOF |
| 4916 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4917 | #line 4918 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4918 | #include "confdefs.h" |
| 4919 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4920 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4921 | getpgrp(0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4922 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4923 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4924 | if { (eval echo configure:4925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4925 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4926 | cat >> confdefs.h <<\EOF |
| 4927 | #define GETPGRP_HAVE_ARG 1 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4928 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4929 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4930 | else |
| 4931 | echo "configure: failed program was:" >&5 |
| 4932 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4933 | fi |
| 4934 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4935 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4936 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4937 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4938 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4939 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4940 | for ac_func in setpgrp |
| 4941 | do |
| 4942 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4943 | echo "configure:4944: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4944 | 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] | 4945 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4946 | else |
| 4947 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4948 | #line 4949 "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4949 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4950 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4951 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4952 | #include <assert.h> |
| 4953 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4954 | /* We use char because int might match the return type of a gcc2 |
| 4955 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4956 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4957 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4958 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4959 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4960 | /* The GNU C library defines this for functions which it implements |
| 4961 | to always fail with ENOSYS. Some functions are actually named |
| 4962 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4963 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4964 | choke me |
| 4965 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4966 | $ac_func(); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4967 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4968 | |
| 4969 | ; return 0; } |
| 4970 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4971 | if { (eval echo configure:4972: \"$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] | 4972 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4973 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4974 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4975 | echo "configure: failed program was:" >&5 |
| 4976 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4977 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4978 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4979 | fi |
| 4980 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4981 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4982 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4983 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4984 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4985 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4986 | cat >> confdefs.h <<EOF |
| 4987 | #define $ac_tr_func 1 |
| 4988 | EOF |
| 4989 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4990 | #line 4991 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4991 | #include "confdefs.h" |
| 4992 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4993 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4994 | setpgrp(0,0); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4995 | ; return 0; } |
| 4996 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4997 | if { (eval echo configure:4998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4998 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4999 | cat >> confdefs.h <<\EOF |
| 5000 | #define SETPGRP_HAVE_ARG 1 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5001 | EOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5002 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5003 | else |
| 5004 | echo "configure: failed program was:" >&5 |
| 5005 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5006 | fi |
| 5007 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5008 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5009 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5010 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5011 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5012 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5013 | for ac_func in gettimeofday |
| 5014 | do |
| 5015 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5016 | echo "configure:5017: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5017 | 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] | 5018 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5019 | else |
| 5020 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5021 | #line 5022 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5022 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5023 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5024 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5025 | #include <assert.h> |
| 5026 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5027 | /* We use char because int might match the return type of a gcc2 |
| 5028 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5029 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5030 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5031 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5032 | |
| 5033 | /* The GNU C library defines this for functions which it implements |
| 5034 | to always fail with ENOSYS. Some functions are actually named |
| 5035 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5036 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5037 | choke me |
| 5038 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5039 | $ac_func(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5040 | #endif |
| 5041 | |
| 5042 | ; return 0; } |
| 5043 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5044 | if { (eval echo configure:5045: \"$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] | 5045 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5046 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5047 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5048 | echo "configure: failed program was:" >&5 |
| 5049 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5050 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5051 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5052 | fi |
| 5053 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5054 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5055 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5056 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5057 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5058 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5059 | cat >> confdefs.h <<EOF |
| 5060 | #define $ac_tr_func 1 |
| 5061 | EOF |
| 5062 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5063 | #line 5064 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5064 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5065 | #include <sys/time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5066 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5067 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
| 5068 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5069 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5070 | if { (eval echo configure:5071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5071 | : |
| 5072 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5073 | echo "configure: failed program was:" >&5 |
| 5074 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5075 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5076 | cat >> confdefs.h <<\EOF |
| 5077 | #define GETTIMEOFDAY_NO_TZ 1 |
| 5078 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5079 | |
| 5080 | fi |
| 5081 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5082 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5083 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5084 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5085 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5086 | |
| 5087 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5088 | for ac_func in getaddrinfo |
| 5089 | do |
| 5090 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5091 | echo "configure:5092: checking for $ac_func" >&5 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5092 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 5093 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5094 | else |
| 5095 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5096 | #line 5097 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5097 | #include "confdefs.h" |
| 5098 | /* System header to define __stub macros and hopefully few prototypes, |
| 5099 | which can conflict with char $ac_func(); below. */ |
| 5100 | #include <assert.h> |
| 5101 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5102 | /* We use char because int might match the return type of a gcc2 |
| 5103 | builtin and then its argument prototype would still apply. */ |
| 5104 | char $ac_func(); |
| 5105 | |
| 5106 | int main() { |
| 5107 | |
| 5108 | /* The GNU C library defines this for functions which it implements |
| 5109 | to always fail with ENOSYS. Some functions are actually named |
| 5110 | something starting with __ and the normal name is an alias. */ |
| 5111 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5112 | choke me |
| 5113 | #else |
| 5114 | $ac_func(); |
| 5115 | #endif |
| 5116 | |
| 5117 | ; return 0; } |
| 5118 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5119 | if { (eval echo configure:5120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5120 | rm -rf conftest* |
| 5121 | eval "ac_cv_func_$ac_func=yes" |
| 5122 | else |
| 5123 | echo "configure: failed program was:" >&5 |
| 5124 | cat conftest.$ac_ext >&5 |
| 5125 | rm -rf conftest* |
| 5126 | eval "ac_cv_func_$ac_func=no" |
| 5127 | fi |
| 5128 | rm -f conftest* |
| 5129 | fi |
| 5130 | |
| 5131 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5132 | echo "$ac_t""yes" 1>&6 |
| 5133 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5134 | cat >> confdefs.h <<EOF |
| 5135 | #define $ac_tr_func 1 |
| 5136 | EOF |
| 5137 | echo $ac_n "checking getaddrinfo bug""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5138 | echo "configure:5139: checking getaddrinfo bug" >&5 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5139 | if test "$cross_compiling" = yes; then |
| 5140 | echo "$ac_t""buggy" 1>&6 |
| 5141 | buggygetaddrinfo=yes |
| 5142 | else |
| 5143 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5144 | #line 5145 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5145 | #include "confdefs.h" |
| 5146 | |
| 5147 | #include <sys/types.h> |
| 5148 | #include <netdb.h> |
| 5149 | #include <string.h> |
| 5150 | #include <sys/socket.h> |
| 5151 | #include <netinet/in.h> |
| 5152 | |
| 5153 | main() |
| 5154 | { |
| 5155 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 5156 | struct addrinfo hints, *ai, *aitop; |
| 5157 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 5158 | |
| 5159 | for (passive = 0; passive <= 1; passive++) { |
| 5160 | memset(&hints, 0, sizeof(hints)); |
| 5161 | hints.ai_family = AF_UNSPEC; |
| 5162 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 5163 | hints.ai_socktype = SOCK_STREAM; |
| 5164 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 5165 | (void)gai_strerror(gaierr); |
| 5166 | goto bad; |
| 5167 | } |
| 5168 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 5169 | if (ai->ai_addr == NULL || |
| 5170 | ai->ai_addrlen == 0 || |
| 5171 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 5172 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 5173 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 5174 | goto bad; |
| 5175 | } |
| 5176 | switch (ai->ai_family) { |
| 5177 | case AF_INET: |
| 5178 | if (strcmp(strport, "54321") != 0) { |
| 5179 | goto bad; |
| 5180 | } |
| 5181 | if (passive) { |
| 5182 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 5183 | goto bad; |
| 5184 | } |
| 5185 | } else { |
| 5186 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 5187 | goto bad; |
| 5188 | } |
| 5189 | } |
| 5190 | inet4++; |
| 5191 | break; |
| 5192 | case AF_INET6: |
| 5193 | if (strcmp(strport, "54321") != 0) { |
| 5194 | goto bad; |
| 5195 | } |
| 5196 | if (passive) { |
| 5197 | if (strcmp(straddr, "::") != 0) { |
| 5198 | goto bad; |
| 5199 | } |
| 5200 | } else { |
| 5201 | if (strcmp(straddr, "::1") != 0) { |
| 5202 | goto bad; |
| 5203 | } |
| 5204 | } |
| 5205 | inet6++; |
| 5206 | break; |
| 5207 | case AF_UNSPEC: |
| 5208 | goto bad; |
| 5209 | break; |
| 5210 | default: |
| 5211 | /* another family support? */ |
| 5212 | break; |
| 5213 | } |
| 5214 | } |
| 5215 | } |
| 5216 | |
| 5217 | if (!(inet4 == 0 || inet4 == 2)) |
| 5218 | goto bad; |
| 5219 | if (!(inet6 == 0 || inet6 == 2)) |
| 5220 | goto bad; |
| 5221 | |
| 5222 | if (aitop) |
| 5223 | freeaddrinfo(aitop); |
| 5224 | exit(0); |
| 5225 | |
| 5226 | bad: |
| 5227 | if (aitop) |
| 5228 | freeaddrinfo(aitop); |
| 5229 | exit(1); |
| 5230 | } |
| 5231 | |
| 5232 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5233 | if { (eval echo configure:5234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5234 | then |
| 5235 | echo "$ac_t""good" 1>&6 |
| 5236 | buggygetaddrinfo=no |
| 5237 | else |
| 5238 | echo "configure: failed program was:" >&5 |
| 5239 | cat conftest.$ac_ext >&5 |
| 5240 | rm -fr conftest* |
| 5241 | echo "$ac_t""buggy" 1>&6 |
| 5242 | buggygetaddrinfo=yes |
| 5243 | fi |
| 5244 | rm -fr conftest* |
| 5245 | fi |
| 5246 | |
| 5247 | else |
| 5248 | echo "$ac_t""no" 1>&6 |
| 5249 | buggygetaddrinfo=yes |
| 5250 | fi |
| 5251 | done |
| 5252 | |
| 5253 | |
| 5254 | if test "$buggygetaddrinfo" = "yes"; then |
| 5255 | if test "$ipv6" = "yes"; then |
| 5256 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 5257 | echo ' or you can specify "--disable-ipv6"'. |
| 5258 | exit 1 |
| 5259 | fi |
| 5260 | fi |
| 5261 | for ac_func in getaddrinfo getnameinfo |
| 5262 | do |
| 5263 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5264 | echo "configure:5265: checking for $ac_func" >&5 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5265 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 5266 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5267 | else |
| 5268 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5269 | #line 5270 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5270 | #include "confdefs.h" |
| 5271 | /* System header to define __stub macros and hopefully few prototypes, |
| 5272 | which can conflict with char $ac_func(); below. */ |
| 5273 | #include <assert.h> |
| 5274 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5275 | /* We use char because int might match the return type of a gcc2 |
| 5276 | builtin and then its argument prototype would still apply. */ |
| 5277 | char $ac_func(); |
| 5278 | |
| 5279 | int main() { |
| 5280 | |
| 5281 | /* The GNU C library defines this for functions which it implements |
| 5282 | to always fail with ENOSYS. Some functions are actually named |
| 5283 | something starting with __ and the normal name is an alias. */ |
| 5284 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5285 | choke me |
| 5286 | #else |
| 5287 | $ac_func(); |
| 5288 | #endif |
| 5289 | |
| 5290 | ; return 0; } |
| 5291 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5292 | if { (eval echo configure:5293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5293 | rm -rf conftest* |
| 5294 | eval "ac_cv_func_$ac_func=yes" |
| 5295 | else |
| 5296 | echo "configure: failed program was:" >&5 |
| 5297 | cat conftest.$ac_ext >&5 |
| 5298 | rm -rf conftest* |
| 5299 | eval "ac_cv_func_$ac_func=no" |
| 5300 | fi |
| 5301 | rm -f conftest* |
| 5302 | fi |
| 5303 | |
| 5304 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5305 | echo "$ac_t""yes" 1>&6 |
| 5306 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5307 | cat >> confdefs.h <<EOF |
| 5308 | #define $ac_tr_func 1 |
| 5309 | EOF |
| 5310 | |
| 5311 | else |
| 5312 | echo "$ac_t""no" 1>&6 |
| 5313 | fi |
| 5314 | done |
| 5315 | |
| 5316 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5317 | # checks for structures |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5318 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5319 | echo "configure:5320: checking whether time.h and sys/time.h may both be included" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5320 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5321 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5322 | else |
| 5323 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5324 | #line 5325 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5325 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5326 | #include <sys/types.h> |
| 5327 | #include <sys/time.h> |
| 5328 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5329 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5330 | struct tm *tp; |
| 5331 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5332 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5333 | if { (eval echo configure:5334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5334 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5335 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5336 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5337 | echo "configure: failed program was:" >&5 |
| 5338 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5339 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5340 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5341 | fi |
| 5342 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5343 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5344 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5345 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5346 | if test $ac_cv_header_time = yes; then |
| 5347 | cat >> confdefs.h <<\EOF |
| 5348 | #define TIME_WITH_SYS_TIME 1 |
| 5349 | EOF |
| 5350 | |
| 5351 | fi |
| 5352 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5353 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5354 | echo "configure:5355: checking whether struct tm is in sys/time.h or time.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5355 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5356 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5357 | else |
| 5358 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5359 | #line 5360 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5360 | #include "confdefs.h" |
| 5361 | #include <sys/types.h> |
| 5362 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5363 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5364 | struct tm *tp; tp->tm_sec; |
| 5365 | ; return 0; } |
| 5366 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5367 | if { (eval echo configure:5368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5368 | rm -rf conftest* |
| 5369 | ac_cv_struct_tm=time.h |
| 5370 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5371 | echo "configure: failed program was:" >&5 |
| 5372 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5373 | rm -rf conftest* |
| 5374 | ac_cv_struct_tm=sys/time.h |
| 5375 | fi |
| 5376 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5377 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5378 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5379 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5380 | if test $ac_cv_struct_tm = sys/time.h; then |
| 5381 | cat >> confdefs.h <<\EOF |
| 5382 | #define TM_IN_SYS_TIME 1 |
| 5383 | EOF |
| 5384 | |
| 5385 | fi |
| 5386 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5387 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5388 | echo "configure:5389: checking for tm_zone in struct tm" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5389 | 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] | 5390 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5391 | else |
| 5392 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5393 | #line 5394 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5394 | #include "confdefs.h" |
| 5395 | #include <sys/types.h> |
| 5396 | #include <$ac_cv_struct_tm> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5397 | int main() { |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5398 | struct tm tm; tm.tm_zone; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5399 | ; return 0; } |
| 5400 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5401 | if { (eval echo configure:5402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5402 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5403 | ac_cv_struct_tm_zone=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5404 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5405 | echo "configure: failed program was:" >&5 |
| 5406 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5407 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5408 | ac_cv_struct_tm_zone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5409 | fi |
| 5410 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5411 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5412 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5413 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 |
| 5414 | if test "$ac_cv_struct_tm_zone" = yes; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5415 | cat >> confdefs.h <<\EOF |
| 5416 | #define HAVE_TM_ZONE 1 |
| 5417 | EOF |
| 5418 | |
| 5419 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5420 | echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5421 | echo "configure:5422: checking for tzname" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5422 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5423 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5424 | else |
| 5425 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5426 | #line 5427 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5427 | #include "confdefs.h" |
| 5428 | #include <time.h> |
| 5429 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5430 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5431 | #endif |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5432 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5433 | atoi(*tzname); |
| 5434 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5435 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5436 | if { (eval echo configure:5437: \"$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] | 5437 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5438 | ac_cv_var_tzname=yes |
| 5439 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5440 | echo "configure: failed program was:" >&5 |
| 5441 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5442 | rm -rf conftest* |
| 5443 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5444 | fi |
| 5445 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5446 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5447 | |
| 5448 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5449 | if test $ac_cv_var_tzname = yes; then |
| 5450 | cat >> confdefs.h <<\EOF |
| 5451 | #define HAVE_TZNAME 1 |
| 5452 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5453 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5454 | fi |
| 5455 | fi |
| 5456 | |
| 5457 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5458 | echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5459 | echo "configure:5460: checking for time.h that defines altzone" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5460 | 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] | 5461 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5462 | else |
| 5463 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5464 | #line 5465 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5465 | #include "confdefs.h" |
| 5466 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5467 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5468 | return altzone; |
| 5469 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5470 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5471 | if { (eval echo configure:5472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5472 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5473 | ac_cv_header_time_altzone=yes |
| 5474 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5475 | echo "configure: failed program was:" >&5 |
| 5476 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5477 | rm -rf conftest* |
| 5478 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5479 | fi |
| 5480 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5481 | fi |
| 5482 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5483 | echo "$ac_t""$ac_cv_header_time_altzone" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5484 | if test $ac_cv_header_time_altzone = yes; then |
| 5485 | cat >> confdefs.h <<\EOF |
| 5486 | #define HAVE_ALTZONE 1 |
| 5487 | EOF |
| 5488 | |
| 5489 | fi |
| 5490 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5491 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5492 | echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5493 | echo "configure:5494: 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] | 5494 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5495 | #line 5496 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5496 | #include "confdefs.h" |
| 5497 | |
| 5498 | #include <sys/types.h> |
| 5499 | #include <sys/select.h> |
| 5500 | #include <sys/time.h> |
| 5501 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5502 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5503 | ; |
| 5504 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5505 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5506 | if { (eval echo configure:5507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5507 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5508 | cat >> confdefs.h <<\EOF |
| 5509 | #define SYS_SELECT_WITH_SYS_TIME 1 |
| 5510 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5511 | was_it_defined=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5512 | else |
| 5513 | echo "configure: failed program was:" >&5 |
| 5514 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5515 | fi |
| 5516 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5517 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5518 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5519 | echo $ac_n "checking for addrinfo""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5520 | echo "configure:5521: checking for addrinfo" >&5 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5521 | if eval "test \"`echo '$''{'ac_cv_struct_addrinfo'+set}'`\" = set"; then |
| 5522 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5523 | else |
| 5524 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5525 | #line 5526 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5526 | #include "confdefs.h" |
| 5527 | |
| 5528 | # include <netdb.h> |
| 5529 | int main() { |
| 5530 | struct addrinfo a |
| 5531 | ; return 0; } |
| 5532 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5533 | if { (eval echo configure:5534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5534 | rm -rf conftest* |
| 5535 | ac_cv_struct_addrinfo=yes |
| 5536 | else |
| 5537 | echo "configure: failed program was:" >&5 |
| 5538 | cat conftest.$ac_ext >&5 |
| 5539 | rm -rf conftest* |
| 5540 | ac_cv_struct_addrinfo=no |
| 5541 | fi |
| 5542 | rm -f conftest* |
| 5543 | fi |
| 5544 | |
| 5545 | echo "$ac_t""$ac_cv_struct_addrinfo" 1>&6 |
| 5546 | if test $ac_cv_struct_addrinfo = yes; then |
| 5547 | cat >> confdefs.h <<\EOF |
| 5548 | #define HAVE_ADDRINFO 1 |
| 5549 | EOF |
| 5550 | |
| 5551 | fi |
| 5552 | |
| 5553 | echo $ac_n "checking for sockaddr_storage""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5554 | echo "configure:5555: checking for sockaddr_storage" >&5 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5555 | if eval "test \"`echo '$''{'ac_cv_struct_sockaddr_storage'+set}'`\" = set"; then |
| 5556 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5557 | else |
| 5558 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5559 | #line 5560 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5560 | #include "confdefs.h" |
| 5561 | |
| 5562 | # include <sys/types.h> |
| 5563 | # include <sys/socket.h> |
| 5564 | int main() { |
| 5565 | struct sockaddr_storage s |
| 5566 | ; return 0; } |
| 5567 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5568 | if { (eval echo configure:5569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5569 | rm -rf conftest* |
| 5570 | ac_cv_struct_sockaddr_storage=yes |
| 5571 | else |
| 5572 | echo "configure: failed program was:" >&5 |
| 5573 | cat conftest.$ac_ext >&5 |
| 5574 | rm -rf conftest* |
| 5575 | ac_cv_struct_sockaddr_storage=no |
| 5576 | fi |
| 5577 | rm -f conftest* |
| 5578 | fi |
| 5579 | |
| 5580 | echo "$ac_t""$ac_cv_struct_sockaddr_storage" 1>&6 |
| 5581 | if test $ac_cv_struct_sockaddr_storage = yes; then |
| 5582 | cat >> confdefs.h <<\EOF |
| 5583 | #define HAVE_SOCKADDR_STORAGE 1 |
| 5584 | EOF |
| 5585 | |
| 5586 | fi |
| 5587 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5588 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5589 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5590 | echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5591 | echo "configure:5592: checking whether char is unsigned" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5592 | 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] | 5593 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5594 | else |
| 5595 | if test "$GCC" = yes; then |
| 5596 | # GCC predefines this symbol on systems where it applies. |
| 5597 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5598 | #line 5599 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5599 | #include "confdefs.h" |
| 5600 | #ifdef __CHAR_UNSIGNED__ |
| 5601 | yes |
| 5602 | #endif |
| 5603 | |
| 5604 | EOF |
| 5605 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5606 | egrep "yes" >/dev/null 2>&1; then |
| 5607 | rm -rf conftest* |
| 5608 | ac_cv_c_char_unsigned=yes |
| 5609 | else |
| 5610 | rm -rf conftest* |
| 5611 | ac_cv_c_char_unsigned=no |
| 5612 | fi |
| 5613 | rm -f conftest* |
| 5614 | |
| 5615 | else |
| 5616 | if test "$cross_compiling" = yes; then |
| 5617 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5618 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5619 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5620 | #line 5621 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5621 | #include "confdefs.h" |
| 5622 | /* volatile prevents gcc2 from optimizing the test away on sparcs. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5623 | #if !defined(__STDC__) || __STDC__ != 1 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5624 | #define volatile |
| 5625 | #endif |
| 5626 | main() { |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5627 | volatile char c = 255; exit(c < 0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5628 | } |
| 5629 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5630 | if { (eval echo configure:5631: \"$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] | 5631 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5632 | ac_cv_c_char_unsigned=yes |
| 5633 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5634 | echo "configure: failed program was:" >&5 |
| 5635 | cat conftest.$ac_ext >&5 |
| 5636 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5637 | ac_cv_c_char_unsigned=no |
| 5638 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5639 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5640 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5641 | |
| 5642 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5643 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5644 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5645 | echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5646 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
| 5647 | cat >> confdefs.h <<\EOF |
| 5648 | #define __CHAR_UNSIGNED__ 1 |
| 5649 | EOF |
| 5650 | |
| 5651 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5652 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5653 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5654 | echo "configure:5655: checking for working const" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5655 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5656 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5657 | else |
| 5658 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5659 | #line 5660 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5660 | #include "confdefs.h" |
| 5661 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5662 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5663 | |
| 5664 | /* Ultrix mips cc rejects this. */ |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5665 | typedef int charset[2]; const charset x = {0,0}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5666 | /* SunOS 4.1.1 cc rejects this. */ |
| 5667 | char const *const *ccp; |
| 5668 | char **p; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5669 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 5670 | struct point {int x, y;}; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5671 | static struct point const zero = {0,0}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5672 | /* AIX XL C 1.02.0.0 rejects this. |
| 5673 | It does not let you subtract one const X* pointer from another in an arm |
| 5674 | of an if-expression whose if-part is not a constant expression */ |
| 5675 | const char *g = "string"; |
| 5676 | ccp = &g + (g ? g-g : 0); |
| 5677 | /* HPUX 7.0 cc rejects these. */ |
| 5678 | ++ccp; |
| 5679 | p = (char**) ccp; |
| 5680 | ccp = (char const *const *) p; |
| 5681 | { /* SCO 3.2v4 cc rejects this. */ |
| 5682 | char *t; |
| 5683 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 5684 | |
| 5685 | *t++ = 0; |
| 5686 | } |
| 5687 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5688 | int x[] = {25, 17}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5689 | const int *foo = &x[0]; |
| 5690 | ++foo; |
| 5691 | } |
| 5692 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 5693 | typedef const int *iptr; |
| 5694 | iptr p = 0; |
| 5695 | ++p; |
| 5696 | } |
| 5697 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 5698 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 5699 | struct s { int j; const int *ap[3]; }; |
| 5700 | struct s *b; b->j = 5; |
| 5701 | } |
| 5702 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 5703 | const int foo = 10; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5704 | } |
| 5705 | |
| 5706 | ; return 0; } |
| 5707 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5708 | if { (eval echo configure:5709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5709 | rm -rf conftest* |
| 5710 | ac_cv_c_const=yes |
| 5711 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5712 | echo "configure: failed program was:" >&5 |
| 5713 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5714 | rm -rf conftest* |
| 5715 | ac_cv_c_const=no |
| 5716 | fi |
| 5717 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5718 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5719 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5720 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5721 | if test $ac_cv_c_const = no; then |
| 5722 | cat >> confdefs.h <<\EOF |
| 5723 | #define const |
| 5724 | EOF |
| 5725 | |
| 5726 | fi |
| 5727 | |
| 5728 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5729 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5730 | echo $ac_n "checking for working volatile""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5731 | echo "configure:5732: checking for working volatile" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5732 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5733 | #line 5734 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5734 | #include "confdefs.h" |
| 5735 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5736 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5737 | volatile int x; x = 0; |
| 5738 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5739 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5740 | if { (eval echo configure:5741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5741 | rm -rf conftest* |
| 5742 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5743 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5744 | echo "configure: failed program was:" >&5 |
| 5745 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5746 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5747 | cat >> confdefs.h <<\EOF |
| 5748 | #define volatile |
| 5749 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5750 | |
| 5751 | fi |
| 5752 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5753 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5754 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5755 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5756 | echo $ac_n "checking for working signed char""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5757 | echo "configure:5758: checking for working signed char" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5758 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5759 | #line 5760 "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5760 | #include "confdefs.h" |
| 5761 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5762 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5763 | signed char c; |
| 5764 | ; return 0; } |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5765 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5766 | if { (eval echo configure:5767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5767 | rm -rf conftest* |
| 5768 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5769 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5770 | echo "configure: failed program was:" >&5 |
| 5771 | cat conftest.$ac_ext >&5 |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5772 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5773 | cat >> confdefs.h <<\EOF |
| 5774 | #define signed |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5775 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5776 | |
| 5777 | fi |
| 5778 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5779 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5780 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5781 | have_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5782 | echo $ac_n "checking for prototypes""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5783 | echo "configure:5784: checking for prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5784 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5785 | #line 5786 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5786 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5787 | int foo(int x) { return 0; } |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5788 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5789 | return foo(10); |
| 5790 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5791 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5792 | if { (eval echo configure:5793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5793 | rm -rf conftest* |
| 5794 | cat >> confdefs.h <<\EOF |
| 5795 | #define HAVE_PROTOTYPES 1 |
| 5796 | EOF |
| 5797 | have_prototypes=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5798 | else |
| 5799 | echo "configure: failed program was:" >&5 |
| 5800 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5801 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5802 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5803 | echo "$ac_t""$have_prototypes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5804 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5805 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5806 | echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5807 | echo "configure:5808: checking for variable length prototypes and stdarg.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5808 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5809 | #line 5810 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5810 | #include "confdefs.h" |
| 5811 | |
| 5812 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 5813 | int foo(int x, ...) { |
| 5814 | va_list va; |
| 5815 | va_start(va, x); |
| 5816 | va_arg(va, int); |
| 5817 | va_arg(va, char *); |
| 5818 | va_arg(va, double); |
| 5819 | return 0; |
| 5820 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5821 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5822 | int main() { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 5823 | return foo(10, "", 3.14); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5824 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5825 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5826 | if { (eval echo configure:5827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5827 | rm -rf conftest* |
| 5828 | cat >> confdefs.h <<\EOF |
| 5829 | #define HAVE_STDARG_PROTOTYPES 1 |
| 5830 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5831 | works=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5832 | else |
| 5833 | echo "configure: failed program was:" >&5 |
| 5834 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5835 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5836 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5837 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5838 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5839 | if test "$have_prototypes" = yes; then |
| 5840 | bad_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5841 | echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5842 | echo "configure:5843: checking for bad exec* prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5843 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5844 | #line 5845 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5845 | #include "confdefs.h" |
| 5846 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5847 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5848 | char **t;execve("@",t,t); |
| 5849 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5850 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5851 | if { (eval echo configure:5852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5852 | : |
| 5853 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5854 | echo "configure: failed program was:" >&5 |
| 5855 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5856 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5857 | cat >> confdefs.h <<\EOF |
| 5858 | #define BAD_EXEC_PROTOTYPES 1 |
| 5859 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5860 | bad_prototypes=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5861 | fi |
| 5862 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5863 | echo "$ac_t""$bad_prototypes" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5864 | fi |
| 5865 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5866 | # check if sockaddr has sa_len member |
| 5867 | echo $ac_n "checking if sockaddr has sa_len member""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5868 | echo "configure:5869: checking if sockaddr has sa_len member" >&5 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5869 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5870 | #line 5871 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5871 | #include "confdefs.h" |
| 5872 | #include <sys/types.h> |
| 5873 | #include <sys/socket.h> |
| 5874 | int main() { |
| 5875 | struct sockaddr x; |
| 5876 | x.sa_len = 0; |
| 5877 | ; return 0; } |
| 5878 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5879 | if { (eval echo configure:5880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5880 | rm -rf conftest* |
| 5881 | echo "$ac_t""yes" 1>&6 |
| 5882 | cat >> confdefs.h <<\EOF |
| 5883 | #define HAVE_SOCKADDR_SA_LEN 1 |
| 5884 | EOF |
| 5885 | |
| 5886 | else |
| 5887 | echo "configure: failed program was:" >&5 |
| 5888 | cat conftest.$ac_ext >&5 |
| 5889 | rm -rf conftest* |
| 5890 | echo "$ac_t""no" 1>&6 |
| 5891 | fi |
| 5892 | rm -f conftest* |
| 5893 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5894 | bad_forward=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5895 | echo $ac_n "checking for bad static forward""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5896 | echo "configure:5897: checking for bad static forward" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5897 | if test "$cross_compiling" = yes; then |
| 5898 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5899 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5900 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5901 | #line 5902 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5902 | #include "confdefs.h" |
| 5903 | |
| 5904 | struct s { int a; int b; }; |
| 5905 | static struct s foo; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5906 | int foobar() { |
| 5907 | static int random; |
| 5908 | random = (int) &foo; |
| 5909 | return random; |
| 5910 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5911 | static struct s foo = { 1, 2 }; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5912 | main() { |
| 5913 | exit(!((int)&foo == foobar())); |
| 5914 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5915 | |
| 5916 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5917 | if { (eval echo configure:5918: \"$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] | 5918 | then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5919 | : |
| 5920 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5921 | echo "configure: failed program was:" >&5 |
| 5922 | cat conftest.$ac_ext >&5 |
| 5923 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5924 | cat >> confdefs.h <<\EOF |
| 5925 | #define BAD_STATIC_FORWARD 1 |
| 5926 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5927 | bad_forward=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5928 | fi |
| 5929 | rm -fr conftest* |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5930 | fi |
| 5931 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5932 | echo "$ac_t""$bad_forward" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5933 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5934 | va_list_is_array=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5935 | echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5936 | echo "configure:5937: checking whether va_list is an array" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5937 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5938 | #line 5939 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5939 | #include "confdefs.h" |
| 5940 | |
| 5941 | #ifdef HAVE_STDARG_PROTOTYPES |
| 5942 | #include <stdarg.h> |
| 5943 | #else |
| 5944 | #include <varargs.h> |
| 5945 | #endif |
| 5946 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5947 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5948 | va_list list1, list2; list1 = list2; |
| 5949 | ; return 0; } |
| 5950 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5951 | if { (eval echo configure:5952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5952 | : |
| 5953 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5954 | echo "configure: failed program was:" >&5 |
| 5955 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5956 | rm -rf conftest* |
| 5957 | cat >> confdefs.h <<\EOF |
| 5958 | #define VA_LIST_IS_ARRAY 1 |
| 5959 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5960 | va_list_is_array=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5961 | fi |
| 5962 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5963 | echo "$ac_t""$va_list_is_array" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5964 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5965 | # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( |
| 5966 | echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5967 | echo "configure:5968: checking for gethostbyname_r" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5968 | 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] | 5969 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5970 | else |
| 5971 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5972 | #line 5973 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5973 | #include "confdefs.h" |
| 5974 | /* System header to define __stub macros and hopefully few prototypes, |
| 5975 | which can conflict with char gethostbyname_r(); below. */ |
| 5976 | #include <assert.h> |
| 5977 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5978 | /* We use char because int might match the return type of a gcc2 |
| 5979 | builtin and then its argument prototype would still apply. */ |
| 5980 | char gethostbyname_r(); |
| 5981 | |
| 5982 | int main() { |
| 5983 | |
| 5984 | /* The GNU C library defines this for functions which it implements |
| 5985 | to always fail with ENOSYS. Some functions are actually named |
| 5986 | something starting with __ and the normal name is an alias. */ |
| 5987 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 5988 | choke me |
| 5989 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5990 | gethostbyname_r(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5991 | #endif |
| 5992 | |
| 5993 | ; return 0; } |
| 5994 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 5995 | if { (eval echo configure:5996: \"$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] | 5996 | rm -rf conftest* |
| 5997 | eval "ac_cv_func_gethostbyname_r=yes" |
| 5998 | else |
| 5999 | echo "configure: failed program was:" >&5 |
| 6000 | cat conftest.$ac_ext >&5 |
| 6001 | rm -rf conftest* |
| 6002 | eval "ac_cv_func_gethostbyname_r=no" |
| 6003 | fi |
| 6004 | rm -f conftest* |
| 6005 | fi |
| 6006 | |
| 6007 | if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then |
| 6008 | echo "$ac_t""yes" 1>&6 |
| 6009 | |
| 6010 | cat >> confdefs.h <<\EOF |
| 6011 | #define HAVE_GETHOSTBYNAME_R 1 |
| 6012 | EOF |
| 6013 | |
| 6014 | echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6015 | echo "configure:6016: checking gethostbyname_r with 6 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6016 | OLD_CFLAGS=$CFLAGS |
| 6017 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
| 6018 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6019 | #line 6020 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6020 | #include "confdefs.h" |
| 6021 | |
| 6022 | # include <netdb.h> |
| 6023 | |
| 6024 | int main() { |
| 6025 | |
| 6026 | char *name; |
| 6027 | struct hostent *he, *res; |
| 6028 | char buffer[2048]; |
| 6029 | int buflen = 2048; |
| 6030 | int h_errnop; |
| 6031 | |
| 6032 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
| 6033 | |
| 6034 | ; return 0; } |
| 6035 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6036 | if { (eval echo configure:6037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6037 | rm -rf conftest* |
| 6038 | |
| 6039 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 6040 | #define HAVE_GETHOSTBYNAME_R 1 |
| 6041 | EOF |
| 6042 | |
| 6043 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6044 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
| 6045 | EOF |
| 6046 | |
| 6047 | echo "$ac_t""yes" 1>&6 |
| 6048 | |
| 6049 | else |
| 6050 | echo "configure: failed program was:" >&5 |
| 6051 | cat conftest.$ac_ext >&5 |
| 6052 | rm -rf conftest* |
| 6053 | |
| 6054 | echo "$ac_t""no" 1>&6 |
| 6055 | echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6056 | echo "configure:6057: checking gethostbyname_r with 5 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6057 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6058 | #line 6059 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6059 | #include "confdefs.h" |
| 6060 | |
| 6061 | # include <netdb.h> |
| 6062 | |
| 6063 | int main() { |
| 6064 | |
| 6065 | char *name; |
| 6066 | struct hostent *he; |
| 6067 | char buffer[2048]; |
| 6068 | int buflen = 2048; |
| 6069 | int h_errnop; |
| 6070 | |
| 6071 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
| 6072 | |
| 6073 | ; return 0; } |
| 6074 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6075 | if { (eval echo configure:6076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6076 | rm -rf conftest* |
| 6077 | |
| 6078 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 6079 | #define HAVE_GETHOSTBYNAME_R 1 |
| 6080 | EOF |
| 6081 | |
| 6082 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6083 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
| 6084 | EOF |
| 6085 | |
| 6086 | echo "$ac_t""yes" 1>&6 |
| 6087 | |
| 6088 | else |
| 6089 | echo "configure: failed program was:" >&5 |
| 6090 | cat conftest.$ac_ext >&5 |
| 6091 | rm -rf conftest* |
| 6092 | |
| 6093 | echo "$ac_t""no" 1>&6 |
| 6094 | echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6095 | echo "configure:6096: checking gethostbyname_r with 3 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6096 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6097 | #line 6098 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6098 | #include "confdefs.h" |
| 6099 | |
| 6100 | # include <netdb.h> |
| 6101 | |
| 6102 | int main() { |
| 6103 | |
| 6104 | char *name; |
| 6105 | struct hostent *he; |
| 6106 | struct hostent_data data; |
| 6107 | |
| 6108 | (void) gethostbyname_r(name, he, &data); |
| 6109 | |
| 6110 | ; return 0; } |
| 6111 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6112 | if { (eval echo configure:6113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6113 | rm -rf conftest* |
| 6114 | |
| 6115 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 6116 | #define HAVE_GETHOSTBYNAME_R 1 |
| 6117 | EOF |
| 6118 | |
| 6119 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6120 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
| 6121 | EOF |
| 6122 | |
| 6123 | echo "$ac_t""yes" 1>&6 |
| 6124 | |
| 6125 | else |
| 6126 | echo "configure: failed program was:" >&5 |
| 6127 | cat conftest.$ac_ext >&5 |
| 6128 | rm -rf conftest* |
| 6129 | |
| 6130 | echo "$ac_t""no" 1>&6 |
| 6131 | |
| 6132 | fi |
| 6133 | rm -f conftest* |
| 6134 | |
| 6135 | fi |
| 6136 | rm -f conftest* |
| 6137 | |
| 6138 | fi |
| 6139 | rm -f conftest* |
| 6140 | CFLAGS=$OLD_CFLAGS |
| 6141 | |
| 6142 | else |
| 6143 | echo "$ac_t""no" 1>&6 |
| 6144 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6145 | for ac_func in gethostbyname |
| 6146 | do |
| 6147 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6148 | echo "configure:6149: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6149 | 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] | 6150 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6151 | else |
| 6152 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6153 | #line 6154 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6154 | #include "confdefs.h" |
| 6155 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6156 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6157 | #include <assert.h> |
| 6158 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6159 | /* We use char because int might match the return type of a gcc2 |
| 6160 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6161 | char $ac_func(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6162 | |
| 6163 | int main() { |
| 6164 | |
| 6165 | /* The GNU C library defines this for functions which it implements |
| 6166 | to always fail with ENOSYS. Some functions are actually named |
| 6167 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6168 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6169 | choke me |
| 6170 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6171 | $ac_func(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6172 | #endif |
| 6173 | |
| 6174 | ; return 0; } |
| 6175 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6176 | if { (eval echo configure:6177: \"$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] | 6177 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6178 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6179 | else |
| 6180 | echo "configure: failed program was:" >&5 |
| 6181 | cat conftest.$ac_ext >&5 |
| 6182 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6183 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6184 | fi |
| 6185 | rm -f conftest* |
| 6186 | fi |
| 6187 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6188 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6189 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6190 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 6191 | cat >> confdefs.h <<EOF |
| 6192 | #define $ac_tr_func 1 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6193 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6194 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6195 | else |
| 6196 | echo "$ac_t""no" 1>&6 |
| 6197 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6198 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6199 | |
| 6200 | |
| 6201 | fi |
| 6202 | |
| 6203 | |
| 6204 | |
| 6205 | |
| 6206 | |
| 6207 | |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 6208 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6209 | # checks for system services |
| 6210 | # (none yet) |
| 6211 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6212 | # Linux requires this for correct f.p. operations |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6213 | echo $ac_n "checking for __fpu_control""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6214 | echo "configure:6215: checking for __fpu_control" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6215 | if eval "test \"`echo '$''{'ac_cv_func___fpu_control'+set}'`\" = set"; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6216 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6217 | else |
| 6218 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6219 | #line 6220 "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6220 | #include "confdefs.h" |
| 6221 | /* System header to define __stub macros and hopefully few prototypes, |
| 6222 | which can conflict with char __fpu_control(); below. */ |
| 6223 | #include <assert.h> |
| 6224 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6225 | /* We use char because int might match the return type of a gcc2 |
| 6226 | builtin and then its argument prototype would still apply. */ |
| 6227 | char __fpu_control(); |
| 6228 | |
| 6229 | int main() { |
| 6230 | |
| 6231 | /* The GNU C library defines this for functions which it implements |
| 6232 | to always fail with ENOSYS. Some functions are actually named |
| 6233 | something starting with __ and the normal name is an alias. */ |
| 6234 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 6235 | choke me |
| 6236 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6237 | __fpu_control(); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6238 | #endif |
| 6239 | |
| 6240 | ; return 0; } |
| 6241 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6242 | if { (eval echo configure:6243: \"$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] | 6243 | rm -rf conftest* |
| 6244 | eval "ac_cv_func___fpu_control=yes" |
| 6245 | else |
| 6246 | echo "configure: failed program was:" >&5 |
| 6247 | cat conftest.$ac_ext >&5 |
| 6248 | rm -rf conftest* |
| 6249 | eval "ac_cv_func___fpu_control=no" |
| 6250 | fi |
| 6251 | rm -f conftest* |
| 6252 | fi |
| 6253 | |
| 6254 | if eval "test \"`echo '$ac_cv_func_'__fpu_control`\" = yes"; then |
| 6255 | echo "$ac_t""yes" 1>&6 |
| 6256 | : |
| 6257 | else |
| 6258 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6259 | echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6260 | echo "configure:6261: checking for __fpu_control in -lieee" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6261 | ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6262 | 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] | 6263 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6264 | else |
| 6265 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6266 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6267 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6268 | #line 6269 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6269 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6270 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6271 | /* We use char because int might match the return type of a gcc2 |
| 6272 | builtin and then its argument prototype would still apply. */ |
| 6273 | char __fpu_control(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6274 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6275 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6276 | __fpu_control() |
| 6277 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6278 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6279 | if { (eval echo configure:6280: \"$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] | 6280 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6281 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6282 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6283 | echo "configure: failed program was:" >&5 |
| 6284 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6285 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6286 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6287 | fi |
| 6288 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6289 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6290 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6291 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6292 | 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] | 6293 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6294 | ac_tr_lib=HAVE_LIB`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 6295 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6296 | cat >> confdefs.h <<EOF |
| 6297 | #define $ac_tr_lib 1 |
| 6298 | EOF |
| 6299 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6300 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6301 | |
| 6302 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6303 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6304 | fi |
| 6305 | |
| 6306 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6307 | fi |
| 6308 | |
| 6309 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6310 | # Check for --with-fpectl |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6311 | echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6312 | echo "configure:6313: checking for --with-fpectl" >&5 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6313 | # Check whether --with-fpectl or --without-fpectl was given. |
| 6314 | if test "${with_fpectl+set}" = set; then |
| 6315 | withval="$with_fpectl" |
| 6316 | |
| 6317 | if test "$withval" != no |
| 6318 | then cat >> confdefs.h <<\EOF |
| 6319 | #define WANT_SIGFPE_HANDLER 1 |
| 6320 | EOF |
| 6321 | echo "$ac_t""yes" 1>&6 |
| 6322 | else echo "$ac_t""no" 1>&6 |
| 6323 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6324 | else |
| 6325 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6326 | fi |
| 6327 | |
| 6328 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6329 | # check for --with-libm=... |
| 6330 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 6331 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 6332 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 6333 | next) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6334 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 6335 | *) LIBM=-lm |
| 6336 | esac |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6337 | echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6338 | echo "configure:6339: checking for --with-libm=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6339 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6340 | if test "${with_libm+set}" = set; then |
| 6341 | withval="$with_libm" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6342 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6343 | if test "$withval" = no |
| 6344 | then LIBM= |
| 6345 | echo "$ac_t""force LIBM empty" 1>&6 |
| 6346 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6347 | then LIBM=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6348 | echo "$ac_t""set LIBM=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6349 | 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] | 6350 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6351 | else |
| 6352 | echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6353 | fi |
| 6354 | |
| 6355 | |
| 6356 | # check for --with-libc=... |
| 6357 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6358 | echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6359 | echo "configure:6360: checking for --with-libc=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6360 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6361 | if test "${with_libc+set}" = set; then |
| 6362 | withval="$with_libc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6363 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6364 | if test "$withval" = no |
| 6365 | then LIBC= |
| 6366 | echo "$ac_t""force LIBC empty" 1>&6 |
| 6367 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6368 | then LIBC=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6369 | echo "$ac_t""set LIBC=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6370 | 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] | 6371 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6372 | else |
| 6373 | echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6374 | fi |
| 6375 | |
| 6376 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6377 | # check for hypot() in math library |
| 6378 | LIBS_SAVE=$LIBS |
| 6379 | LIBS="$LIBS $LIBM" |
| 6380 | for ac_func in hypot |
| 6381 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6382 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6383 | echo "configure:6384: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6384 | 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] | 6385 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6386 | else |
| 6387 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6388 | #line 6389 "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6389 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6390 | /* System header to define __stub macros and hopefully few prototypes, |
| 6391 | which can conflict with char $ac_func(); below. */ |
| 6392 | #include <assert.h> |
| 6393 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6394 | /* We use char because int might match the return type of a gcc2 |
| 6395 | builtin and then its argument prototype would still apply. */ |
| 6396 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6397 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6398 | int main() { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6399 | |
| 6400 | /* The GNU C library defines this for functions which it implements |
| 6401 | to always fail with ENOSYS. Some functions are actually named |
| 6402 | something starting with __ and the normal name is an alias. */ |
| 6403 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6404 | choke me |
| 6405 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6406 | $ac_func(); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6407 | #endif |
| 6408 | |
| 6409 | ; return 0; } |
| 6410 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6411 | if { (eval echo configure:6412: \"$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] | 6412 | rm -rf conftest* |
| 6413 | eval "ac_cv_func_$ac_func=yes" |
| 6414 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6415 | echo "configure: failed program was:" >&5 |
| 6416 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6417 | rm -rf conftest* |
| 6418 | eval "ac_cv_func_$ac_func=no" |
| 6419 | fi |
| 6420 | rm -f conftest* |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6421 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6422 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6423 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 6424 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6425 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 6426 | cat >> confdefs.h <<EOF |
| 6427 | #define $ac_tr_func 1 |
| 6428 | EOF |
| 6429 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6430 | else |
| 6431 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 6432 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6433 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6434 | done |
| 6435 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6436 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6437 | LIBS=$LIBS_SAVE |
| 6438 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6439 | # check whether malloc(0) returns NULL or not |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6440 | echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6441 | echo "configure:6442: checking what malloc(0) returns" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6442 | if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6443 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6444 | else |
| 6445 | if test "$cross_compiling" = yes; then |
| 6446 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 6447 | else |
| 6448 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6449 | #line 6450 "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6450 | #include "confdefs.h" |
| 6451 | #include <stdio.h> |
| 6452 | #ifdef HAVE_STDLIB |
| 6453 | #include <stdlib.h> |
| 6454 | #else |
| 6455 | char *malloc(), *realloc(); |
| 6456 | int *free(); |
| 6457 | #endif |
| 6458 | main() { |
| 6459 | char *p; |
| 6460 | p = malloc(0); |
| 6461 | if (p == NULL) exit(1); |
| 6462 | p = realloc(p, 0); |
| 6463 | if (p == NULL) exit(1); |
| 6464 | free(p); |
| 6465 | exit(0); |
| 6466 | } |
| 6467 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6468 | if { (eval echo configure:6469: \"$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] | 6469 | then |
| 6470 | ac_cv_malloc_zero=nonnull |
| 6471 | else |
| 6472 | echo "configure: failed program was:" >&5 |
| 6473 | cat conftest.$ac_ext >&5 |
| 6474 | rm -fr conftest* |
| 6475 | ac_cv_malloc_zero=null |
| 6476 | fi |
| 6477 | rm -fr conftest* |
| 6478 | fi |
| 6479 | |
| 6480 | fi |
| 6481 | |
| 6482 | echo "$ac_t""$ac_cv_malloc_zero" 1>&6 |
| 6483 | if test "$ac_cv_malloc_zero" = null |
| 6484 | then |
| 6485 | cat >> confdefs.h <<\EOF |
| 6486 | #define MALLOC_ZERO_RETURNS_NULL 1 |
| 6487 | EOF |
| 6488 | |
| 6489 | fi |
| 6490 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6491 | # check for wchar.h |
| 6492 | ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'` |
| 6493 | echo $ac_n "checking for wchar.h""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6494 | echo "configure:6495: checking for wchar.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6495 | 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] | 6496 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6497 | else |
| 6498 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6499 | #line 6500 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6500 | #include "confdefs.h" |
| 6501 | #include <wchar.h> |
| 6502 | EOF |
| 6503 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6504 | { (eval echo configure:6505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6505 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 6506 | if test -z "$ac_err"; then |
| 6507 | rm -rf conftest* |
| 6508 | eval "ac_cv_header_$ac_safe=yes" |
| 6509 | else |
| 6510 | echo "$ac_err" >&5 |
| 6511 | echo "configure: failed program was:" >&5 |
| 6512 | cat conftest.$ac_ext >&5 |
| 6513 | rm -rf conftest* |
| 6514 | eval "ac_cv_header_$ac_safe=no" |
| 6515 | fi |
| 6516 | rm -f conftest* |
| 6517 | fi |
| 6518 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 6519 | echo "$ac_t""yes" 1>&6 |
| 6520 | cat >> confdefs.h <<\EOF |
| 6521 | #define HAVE_WCHAR_H 1 |
| 6522 | EOF |
| 6523 | wchar_h="yes" |
| 6524 | else |
| 6525 | echo "$ac_t""no" 1>&6 |
| 6526 | wchar_h="no" |
| 6527 | |
| 6528 | fi |
| 6529 | |
| 6530 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6531 | # determine wchar_t size |
| 6532 | if test "$wchar_h" = yes |
| 6533 | then |
| 6534 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6535 | echo "configure:6536: checking size of wchar_t" >&5 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6536 | if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then |
| 6537 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6538 | else |
| 6539 | if test "$cross_compiling" = yes; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6540 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 6541 | else |
| 6542 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6543 | #line 6544 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6544 | #include "confdefs.h" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6545 | #include <stdio.h> |
| 6546 | main() |
| 6547 | { |
| 6548 | FILE *f=fopen("conftestval", "w"); |
| 6549 | if (!f) exit(1); |
| 6550 | fprintf(f, "%d\n", sizeof(wchar_t)); |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6551 | exit(0); |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6552 | } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6553 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6554 | if { (eval echo configure:6555: \"$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] | 6555 | then |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6556 | ac_cv_sizeof_wchar_t=`cat conftestval` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6557 | else |
| 6558 | echo "configure: failed program was:" >&5 |
| 6559 | cat conftest.$ac_ext >&5 |
| 6560 | rm -fr conftest* |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6561 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6562 | fi |
| 6563 | rm -fr conftest* |
| 6564 | fi |
| 6565 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6566 | fi |
| 6567 | echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6 |
| 6568 | cat >> confdefs.h <<EOF |
| 6569 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
| 6570 | EOF |
| 6571 | |
| 6572 | |
| 6573 | fi |
| 6574 | |
| 6575 | echo $ac_n "checking what type to use for unicode""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6576 | echo "configure:6577: checking what type to use for unicode" >&5 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6577 | # Check whether --enable-unicode or --disable-unicode was given. |
| 6578 | if test "${enable_unicode+set}" = set; then |
| 6579 | enableval="$enable_unicode" |
| 6580 | : |
| 6581 | else |
| 6582 | enable_unicode=yes |
| 6583 | fi |
| 6584 | |
| 6585 | |
| 6586 | if test $enable_unicode = yes |
| 6587 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 6588 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
| 6589 | enable_unicode="ucs2" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6590 | fi |
| 6591 | |
| 6592 | case "$enable_unicode" in |
| 6593 | ucs2) unicode_size="2" |
| 6594 | cat >> confdefs.h <<\EOF |
| 6595 | #define Py_UNICODE_SIZE 2 |
| 6596 | EOF |
| 6597 | |
| 6598 | ;; |
| 6599 | ucs4) unicode_size="4" |
| 6600 | cat >> confdefs.h <<\EOF |
| 6601 | #define Py_UNICODE_SIZE 4 |
| 6602 | EOF |
| 6603 | |
| 6604 | ;; |
| 6605 | esac |
| 6606 | |
| 6607 | if test "$enable_unicode" = "no" |
| 6608 | then |
| 6609 | echo "$ac_t""not used" 1>&6 |
| 6610 | else |
| 6611 | cat >> confdefs.h <<\EOF |
| 6612 | #define Py_USING_UNICODE 1 |
| 6613 | EOF |
| 6614 | |
| 6615 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" |
| 6616 | then |
| 6617 | PY_UNICODE_TYPE="wchar_t" |
| 6618 | cat >> confdefs.h <<\EOF |
| 6619 | #define HAVE_USABLE_WCHAR_T 1 |
| 6620 | EOF |
| 6621 | |
| 6622 | cat >> confdefs.h <<\EOF |
| 6623 | #define PY_UNICODE_TYPE wchar_t |
| 6624 | EOF |
| 6625 | |
| 6626 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 6627 | then |
| 6628 | PY_UNICODE_TYPE="unsigned short" |
| 6629 | cat >> confdefs.h <<\EOF |
| 6630 | #define PY_UNICODE_TYPE unsigned short |
| 6631 | EOF |
| 6632 | |
| 6633 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 6634 | then |
| 6635 | PY_UNICODE_TYPE="unsigned long" |
| 6636 | cat >> confdefs.h <<\EOF |
| 6637 | #define PY_UNICODE_TYPE unsigned long |
| 6638 | EOF |
| 6639 | |
| 6640 | else |
| 6641 | PY_UNICODE_TYPE="no type found" |
| 6642 | fi |
| 6643 | echo "$ac_t""$PY_UNICODE_TYPE" 1>&6 |
| 6644 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6645 | |
| 6646 | # check for endianness |
| 6647 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6648 | echo "configure:6649: checking whether byte ordering is bigendian" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6649 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6650 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6651 | else |
| 6652 | ac_cv_c_bigendian=unknown |
| 6653 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 6654 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6655 | #line 6656 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6656 | #include "confdefs.h" |
| 6657 | #include <sys/types.h> |
| 6658 | #include <sys/param.h> |
| 6659 | int main() { |
| 6660 | |
| 6661 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 6662 | bogus endian macros |
| 6663 | #endif |
| 6664 | ; return 0; } |
| 6665 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6666 | if { (eval echo configure:6667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6667 | rm -rf conftest* |
| 6668 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 6669 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6670 | #line 6671 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6671 | #include "confdefs.h" |
| 6672 | #include <sys/types.h> |
| 6673 | #include <sys/param.h> |
| 6674 | int main() { |
| 6675 | |
| 6676 | #if BYTE_ORDER != BIG_ENDIAN |
| 6677 | not big endian |
| 6678 | #endif |
| 6679 | ; return 0; } |
| 6680 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6681 | if { (eval echo configure:6682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6682 | rm -rf conftest* |
| 6683 | ac_cv_c_bigendian=yes |
| 6684 | else |
| 6685 | echo "configure: failed program was:" >&5 |
| 6686 | cat conftest.$ac_ext >&5 |
| 6687 | rm -rf conftest* |
| 6688 | ac_cv_c_bigendian=no |
| 6689 | fi |
| 6690 | rm -f conftest* |
| 6691 | else |
| 6692 | echo "configure: failed program was:" >&5 |
| 6693 | cat conftest.$ac_ext >&5 |
| 6694 | fi |
| 6695 | rm -f conftest* |
| 6696 | if test $ac_cv_c_bigendian = unknown; then |
| 6697 | if test "$cross_compiling" = yes; then |
| 6698 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 6699 | else |
| 6700 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6701 | #line 6702 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6702 | #include "confdefs.h" |
| 6703 | main () { |
| 6704 | /* Are we little or big endian? From Harbison&Steele. */ |
| 6705 | union |
| 6706 | { |
| 6707 | long l; |
| 6708 | char c[sizeof (long)]; |
| 6709 | } u; |
| 6710 | u.l = 1; |
| 6711 | exit (u.c[sizeof (long) - 1] == 1); |
| 6712 | } |
| 6713 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6714 | if { (eval echo configure:6715: \"$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] | 6715 | then |
| 6716 | ac_cv_c_bigendian=no |
| 6717 | else |
| 6718 | echo "configure: failed program was:" >&5 |
| 6719 | cat conftest.$ac_ext >&5 |
| 6720 | rm -fr conftest* |
| 6721 | ac_cv_c_bigendian=yes |
| 6722 | fi |
| 6723 | rm -fr conftest* |
| 6724 | fi |
| 6725 | |
| 6726 | fi |
| 6727 | fi |
| 6728 | |
| 6729 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
| 6730 | if test $ac_cv_c_bigendian = yes; then |
| 6731 | cat >> confdefs.h <<\EOF |
| 6732 | #define WORDS_BIGENDIAN 1 |
| 6733 | EOF |
| 6734 | |
| 6735 | fi |
| 6736 | |
| 6737 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6738 | # Check whether right shifting a negative integer extends the sign bit |
| 6739 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
| 6740 | echo $ac_n "checking whether right shift extends the sign bit""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6741 | echo "configure:6742: checking whether right shift extends the sign bit" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6742 | if eval "test \"`echo '$''{'ac_cv_rshift_extends_sign'+set}'`\" = set"; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 6743 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6744 | else |
| 6745 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6746 | if test "$cross_compiling" = yes; then |
| 6747 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 6748 | else |
| 6749 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6750 | #line 6751 "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6751 | #include "confdefs.h" |
| 6752 | |
| 6753 | int main() |
| 6754 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 6755 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6756 | } |
| 6757 | |
| 6758 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6759 | if { (eval echo configure:6760: \"$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] | 6760 | then |
| 6761 | ac_cv_rshift_extends_sign=yes |
| 6762 | else |
| 6763 | echo "configure: failed program was:" >&5 |
| 6764 | cat conftest.$ac_ext >&5 |
| 6765 | rm -fr conftest* |
| 6766 | ac_cv_rshift_extends_sign=no |
| 6767 | fi |
| 6768 | rm -fr conftest* |
| 6769 | fi |
| 6770 | |
| 6771 | fi |
| 6772 | |
| 6773 | echo "$ac_t""$ac_cv_rshift_extends_sign" 1>&6 |
| 6774 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6775 | then |
| 6776 | cat >> confdefs.h <<\EOF |
| 6777 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
| 6778 | EOF |
| 6779 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6780 | fi |
| 6781 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 6782 | # check for getc_unlocked and related locking functions |
| 6783 | echo $ac_n "checking for getc_unlocked() and friends""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6784 | echo "configure:6785: checking for getc_unlocked() and friends" >&5 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 6785 | if eval "test \"`echo '$''{'ac_cv_have_getc_unlocked'+set}'`\" = set"; then |
| 6786 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6787 | else |
| 6788 | |
| 6789 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6790 | #line 6791 "configure" |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 6791 | #include "confdefs.h" |
| 6792 | #include <stdio.h> |
| 6793 | int main() { |
| 6794 | |
| 6795 | FILE *f = fopen("/dev/null", "r"); |
| 6796 | flockfile(f); |
| 6797 | getc_unlocked(f); |
| 6798 | funlockfile(f); |
| 6799 | |
| 6800 | ; return 0; } |
| 6801 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6802 | if { (eval echo configure:6803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 6803 | rm -rf conftest* |
| 6804 | ac_cv_have_getc_unlocked=yes |
| 6805 | else |
| 6806 | echo "configure: failed program was:" >&5 |
| 6807 | cat conftest.$ac_ext >&5 |
| 6808 | rm -rf conftest* |
| 6809 | ac_cv_have_getc_unlocked=no |
| 6810 | fi |
| 6811 | rm -f conftest* |
| 6812 | fi |
| 6813 | |
| 6814 | echo "$ac_t""$ac_cv_have_getc_unlocked" 1>&6 |
| 6815 | if test "$ac_cv_have_getc_unlocked" = yes |
| 6816 | then |
| 6817 | cat >> confdefs.h <<\EOF |
| 6818 | #define HAVE_GETC_UNLOCKED 1 |
| 6819 | EOF |
| 6820 | |
| 6821 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6822 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 6823 | # check for readline 4.2 |
| 6824 | echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6825 | echo "configure:6826: checking for rl_completion_matches in -lreadline" >&5 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 6826 | ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'` |
| 6827 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 6828 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6829 | else |
| 6830 | ac_save_LIBS="$LIBS" |
| 6831 | LIBS="-lreadline -ltermcap $LIBS" |
| 6832 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6833 | #line 6834 "configure" |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 6834 | #include "confdefs.h" |
| 6835 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6836 | /* We use char because int might match the return type of a gcc2 |
| 6837 | builtin and then its argument prototype would still apply. */ |
| 6838 | char rl_completion_matches(); |
| 6839 | |
| 6840 | int main() { |
| 6841 | rl_completion_matches() |
| 6842 | ; return 0; } |
| 6843 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6844 | if { (eval echo configure:6845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 6845 | rm -rf conftest* |
| 6846 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 6847 | else |
| 6848 | echo "configure: failed program was:" >&5 |
| 6849 | cat conftest.$ac_ext >&5 |
| 6850 | rm -rf conftest* |
| 6851 | eval "ac_cv_lib_$ac_lib_var=no" |
| 6852 | fi |
| 6853 | rm -f conftest* |
| 6854 | LIBS="$ac_save_LIBS" |
| 6855 | |
| 6856 | fi |
| 6857 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 6858 | echo "$ac_t""yes" 1>&6 |
| 6859 | cat >> confdefs.h <<\EOF |
| 6860 | #define HAVE_RL_COMPLETION_MATCHES 1 |
| 6861 | EOF |
| 6862 | |
| 6863 | else |
| 6864 | echo "$ac_t""no" 1>&6 |
| 6865 | fi |
| 6866 | |
| 6867 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 6868 | echo $ac_n "checking for broken nice()""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6869 | echo "configure:6870: checking for broken nice()" >&5 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 6870 | if eval "test \"`echo '$''{'ac_cv_broken_nice'+set}'`\" = set"; then |
| 6871 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6872 | else |
| 6873 | |
| 6874 | if test "$cross_compiling" = yes; then |
| 6875 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 6876 | else |
| 6877 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6878 | #line 6879 "configure" |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 6879 | #include "confdefs.h" |
| 6880 | |
| 6881 | int main() |
| 6882 | { |
| 6883 | int val1 = nice(1); |
| 6884 | if (val1 != -1 && val1 == nice(2)) |
| 6885 | exit(0); |
| 6886 | exit(1); |
| 6887 | } |
| 6888 | |
| 6889 | EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6890 | if { (eval echo configure:6891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 6891 | then |
| 6892 | ac_cv_broken_nice=yes |
| 6893 | else |
| 6894 | echo "configure: failed program was:" >&5 |
| 6895 | cat conftest.$ac_ext >&5 |
| 6896 | rm -fr conftest* |
| 6897 | ac_cv_broken_nice=no |
| 6898 | fi |
| 6899 | rm -fr conftest* |
| 6900 | fi |
| 6901 | |
| 6902 | fi |
| 6903 | |
| 6904 | echo "$ac_t""$ac_cv_broken_nice" 1>&6 |
| 6905 | if test "$ac_cv_broken_nice" = yes |
| 6906 | then |
| 6907 | cat >> confdefs.h <<\EOF |
| 6908 | #define HAVE_BROKEN_NICE 1 |
| 6909 | EOF |
| 6910 | |
| 6911 | fi |
| 6912 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6913 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! |
| 6914 | # Add sys/socket.h to confdefs.h |
| 6915 | cat >> confdefs.h <<\EOF |
| 6916 | #ifdef HAVE_SYS_SOCKET_H |
| 6917 | #include <sys/socket.h> |
| 6918 | #endif |
| 6919 | EOF |
| 6920 | echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6921 | echo "configure:6922: checking for socklen_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6922 | 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] | 6923 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6924 | else |
| 6925 | cat > conftest.$ac_ext <<EOF |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6926 | #line 6927 "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6927 | #include "confdefs.h" |
| 6928 | #include <sys/types.h> |
| 6929 | #if STDC_HEADERS |
| 6930 | #include <stdlib.h> |
| 6931 | #include <stddef.h> |
| 6932 | #endif |
| 6933 | EOF |
| 6934 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6935 | egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 6936 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6937 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6938 | else |
| 6939 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6940 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6941 | fi |
| 6942 | rm -f conftest* |
| 6943 | |
| 6944 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6945 | echo "$ac_t""$ac_cv_type_socklen_t" 1>&6 |
| 6946 | if test $ac_cv_type_socklen_t = no; then |
| 6947 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6948 | #define socklen_t int |
| 6949 | EOF |
| 6950 | |
| 6951 | fi |
| 6952 | |
| 6953 | |
Neil Schemenauer | f25cf6c | 2001-03-04 06:39:33 +0000 | [diff] [blame] | 6954 | # Add Python/ prefix to LIBOBJS |
| 6955 | libobjs=$LIBOBJS |
| 6956 | LIBOBJS= |
| 6957 | for obj in $libobjs; do |
| 6958 | LIBOBJS="$LIBOBJS Python/$obj" |
| 6959 | done |
| 6960 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6961 | #AC_MSG_CHECKING(for Modules/Setup) |
| 6962 | #if test ! -f Modules/Setup ; then |
| 6963 | # if test ! -d Modules ; then |
| 6964 | # mkdir Modules |
| 6965 | # fi |
| 6966 | # cp "$srcdir/Modules/Setup.dist" Modules/Setup |
| 6967 | # AC_MSG_RESULT(creating) |
| 6968 | #else |
| 6969 | # AC_MSG_RESULT(already exists) |
| 6970 | #fi |
| 6971 | |
| 6972 | |
Neil Schemenauer | acbf9ef | 2001-02-27 02:15:14 +0000 | [diff] [blame] | 6973 | SRCDIRS="Parser Grammar Objects Python Modules" |
Andrew M. Kuchling | 8abedde | 2001-01-26 22:55:24 +0000 | [diff] [blame] | 6974 | echo $ac_n "checking for build directories""... $ac_c" 1>&6 |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 6975 | echo "configure:6976: checking for build directories" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6976 | for dir in $SRCDIRS; do |
| 6977 | if test ! -d $dir; then |
| 6978 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 6979 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 6980 | done |
| 6981 | echo "$ac_t""done" 1>&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 6982 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6983 | # generate output files |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6984 | trap '' 1 2 15 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6985 | cat > confcache <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6986 | # This file is a shell script that caches the results of configure |
| 6987 | # tests run on this system so they can be shared between configure |
| 6988 | # scripts and configure runs. It is not useful on other systems. |
| 6989 | # If it contains results you don't want to keep, you may remove or edit it. |
| 6990 | # |
| 6991 | # By default, configure uses ./config.cache as the cache file, |
| 6992 | # creating it if it does not exist already. You can give configure |
| 6993 | # the --cache-file=FILE option to use a different cache file; that is |
| 6994 | # what configure does when it calls configure scripts in |
| 6995 | # subdirectories, so they share the cache. |
| 6996 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 6997 | # config.status only pays attention to the cache file if you give it the |
| 6998 | # --recheck option to rerun configure. |
| 6999 | # |
| 7000 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7001 | # The following way of writing the cache mishandles newlines in values, |
| 7002 | # but we know of no workaround that is simple, portable, and efficient. |
| 7003 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7004 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 7005 | # 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] | 7006 | (set) 2>&1 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 7007 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7008 | *ac_space=\ *) |
| 7009 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 7010 | # turns \\\\ into \\, and sed turns \\ into \). |
| 7011 | sed -n \ |
| 7012 | -e "s/'/'\\\\''/g" \ |
| 7013 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 7014 | ;; |
| 7015 | *) |
| 7016 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 7017 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 7018 | ;; |
| 7019 | esac >> confcache |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7020 | if cmp -s $cache_file confcache; then |
| 7021 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7022 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7023 | if test -w $cache_file; then |
| 7024 | echo "updating cache $cache_file" |
| 7025 | cat confcache > $cache_file |
| 7026 | else |
| 7027 | echo "not updating unwritable cache $cache_file" |
| 7028 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7029 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7030 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7031 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7032 | 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] | 7033 | |
| 7034 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 7035 | # Let make expand exec_prefix. |
| 7036 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7037 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7038 | # Any assignment to VPATH causes Sun make to only execute |
| 7039 | # the first set of double-colon rules, so remove it if not needed. |
| 7040 | # If there is a colon in the path, we need to keep it. |
| 7041 | if test "x$srcdir" = x.; then |
| 7042 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 7043 | fi |
| 7044 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7045 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7046 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7047 | DEFS=-DHAVE_CONFIG_H |
| 7048 | |
| 7049 | # Without the "./", some shells look in PATH for config.status. |
| 7050 | : ${CONFIG_STATUS=./config.status} |
| 7051 | |
| 7052 | echo creating $CONFIG_STATUS |
| 7053 | rm -f $CONFIG_STATUS |
| 7054 | cat > $CONFIG_STATUS <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7055 | #! /bin/sh |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7056 | # Generated automatically by configure. |
| 7057 | # Run this file to recreate the current configuration. |
| 7058 | # This directory was configured as follows, |
| 7059 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 7060 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7061 | # $0 $ac_configure_args |
| 7062 | # |
| 7063 | # Compiler output produced by configure, useful for debugging |
| 7064 | # configure, is in ./config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7065 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7066 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7067 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7068 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7069 | case "\$ac_option" in |
| 7070 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7071 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 7072 | 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] | 7073 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 7074 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7075 | exit 0 ;; |
| 7076 | -help | --help | --hel | --he | --h) |
| 7077 | echo "\$ac_cs_usage"; exit 0 ;; |
| 7078 | *) echo "\$ac_cs_usage"; exit 1 ;; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7079 | esac |
| 7080 | done |
| 7081 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7082 | ac_given_srcdir=$srcdir |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7083 | ac_given_INSTALL="$INSTALL" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7084 | |
Andrew M. Kuchling | 8abedde | 2001-01-26 22:55:24 +0000 | [diff] [blame] | 7085 | trap 'rm -fr `echo "Makefile.pre Modules/Setup.config config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7086 | EOF |
| 7087 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7088 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7089 | # Protect against being on the right side of a sed subst in config.status. |
| 7090 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 7091 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7092 | $ac_vpsub |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7093 | $extrasub |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 7094 | s%@SHELL@%$SHELL%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7095 | s%@CFLAGS@%$CFLAGS%g |
| 7096 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 7097 | s%@CXXFLAGS@%$CXXFLAGS%g |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 7098 | s%@FFLAGS@%$FFLAGS%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7099 | s%@DEFS@%$DEFS%g |
| 7100 | s%@LDFLAGS@%$LDFLAGS%g |
| 7101 | s%@LIBS@%$LIBS%g |
| 7102 | s%@exec_prefix@%$exec_prefix%g |
| 7103 | s%@prefix@%$prefix%g |
| 7104 | s%@program_transform_name@%$program_transform_name%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7105 | s%@bindir@%$bindir%g |
| 7106 | s%@sbindir@%$sbindir%g |
| 7107 | s%@libexecdir@%$libexecdir%g |
| 7108 | s%@datadir@%$datadir%g |
| 7109 | s%@sysconfdir@%$sysconfdir%g |
| 7110 | s%@sharedstatedir@%$sharedstatedir%g |
| 7111 | s%@localstatedir@%$localstatedir%g |
| 7112 | s%@libdir@%$libdir%g |
| 7113 | s%@includedir@%$includedir%g |
| 7114 | s%@oldincludedir@%$oldincludedir%g |
| 7115 | s%@infodir@%$infodir%g |
| 7116 | s%@mandir@%$mandir%g |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 7117 | s%@VERSION@%$VERSION%g |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 7118 | s%@CONFIG_ARGS@%$CONFIG_ARGS%g |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 7119 | s%@MACHDEP@%$MACHDEP%g |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 7120 | s%@SGI_ABI@%$SGI_ABI%g |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 7121 | s%@CXX@%$CXX%g |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 7122 | s%@MAINOBJ@%$MAINOBJ%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7123 | s%@CC@%$CC%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7124 | s%@EXEEXT@%$EXEEXT%g |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7125 | s%@LIBRARY@%$LIBRARY%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7126 | s%@LDLIBRARY@%$LDLIBRARY%g |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 7127 | s%@DLLLIBRARY@%$DLLLIBRARY%g |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 7128 | s%@LINKCC@%$LINKCC%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7129 | s%@RANLIB@%$RANLIB%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7130 | s%@AR@%$AR%g |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7131 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7132 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7133 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7134 | s%@LN@%$LN%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 7135 | s%@OPT@%$OPT%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7136 | s%@CPP@%$CPP%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7137 | s%@LIBTOOL_CRUFT@%$LIBTOOL_CRUFT%g |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7138 | s%@SO@%$SO%g |
| 7139 | s%@LDSHARED@%$LDSHARED%g |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7140 | s%@BLDSHARED@%$BLDSHARED%g |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7141 | s%@CCSHARED@%$CCSHARED%g |
| 7142 | s%@LINKFORSHARED@%$LINKFORSHARED%g |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7143 | s%@CFLAGSFORSHARED@%$CFLAGSFORSHARED%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7144 | s%@USE_SIGNAL_MODULE@%$USE_SIGNAL_MODULE%g |
| 7145 | s%@SIGNAL_OBJS@%$SIGNAL_OBJS%g |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 7146 | s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 7147 | s%@LDLAST@%$LDLAST%g |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 7148 | s%@USE_GC_MODULE@%$USE_GC_MODULE%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7149 | s%@DLINCLDIR@%$DLINCLDIR%g |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 7150 | s%@DYNLOADFILE@%$DYNLOADFILE%g |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 7151 | s%@MACHDEP_OBJS@%$MACHDEP_OBJS%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7152 | s%@LIBOBJS@%$LIBOBJS%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 7153 | s%@HAVE_GETHOSTBYNAME_R_6_ARG@%$HAVE_GETHOSTBYNAME_R_6_ARG%g |
| 7154 | s%@HAVE_GETHOSTBYNAME_R_5_ARG@%$HAVE_GETHOSTBYNAME_R_5_ARG%g |
| 7155 | 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] | 7156 | s%@HAVE_GETHOSTBYNAME_R@%$HAVE_GETHOSTBYNAME_R%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 7157 | s%@HAVE_GETHOSTBYNAME@%$HAVE_GETHOSTBYNAME%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7158 | s%@LIBM@%$LIBM%g |
| 7159 | s%@LIBC@%$LIBC%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7160 | s%@SRCDIRS@%$SRCDIRS%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7161 | |
| 7162 | CEOF |
| 7163 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7164 | |
| 7165 | cat >> $CONFIG_STATUS <<\EOF |
| 7166 | |
| 7167 | # Split the substitutions into bite-sized pieces for seds with |
| 7168 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 7169 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 7170 | ac_file=1 # Number of current file. |
| 7171 | ac_beg=1 # First line for current file. |
| 7172 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 7173 | ac_more_lines=: |
| 7174 | ac_sed_cmds="" |
| 7175 | while $ac_more_lines; do |
| 7176 | if test $ac_beg -gt 1; then |
| 7177 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 7178 | else |
| 7179 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 7180 | fi |
| 7181 | if test ! -s conftest.s$ac_file; then |
| 7182 | ac_more_lines=false |
| 7183 | rm -f conftest.s$ac_file |
| 7184 | else |
| 7185 | if test -z "$ac_sed_cmds"; then |
| 7186 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 7187 | else |
| 7188 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 7189 | fi |
| 7190 | ac_file=`expr $ac_file + 1` |
| 7191 | ac_beg=$ac_end |
| 7192 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 7193 | fi |
| 7194 | done |
| 7195 | if test -z "$ac_sed_cmds"; then |
| 7196 | ac_sed_cmds=cat |
| 7197 | fi |
| 7198 | EOF |
| 7199 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7200 | cat >> $CONFIG_STATUS <<EOF |
| 7201 | |
Andrew M. Kuchling | 8abedde | 2001-01-26 22:55:24 +0000 | [diff] [blame] | 7202 | CONFIG_FILES=\${CONFIG_FILES-"Makefile.pre Modules/Setup.config"} |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7203 | EOF |
| 7204 | cat >> $CONFIG_STATUS <<\EOF |
| 7205 | 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] | 7206 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7207 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7208 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7209 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 7210 | *) ac_file_in="${ac_file}.in" ;; |
| 7211 | esac |
| 7212 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7213 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7214 | |
| 7215 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 7216 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 7217 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 7218 | # The file is in a subdirectory. |
| 7219 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7220 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7221 | # A "../" for each directory in $ac_dir_suffix. |
| 7222 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 7223 | else |
| 7224 | ac_dir_suffix= ac_dots= |
| 7225 | fi |
| 7226 | |
| 7227 | case "$ac_given_srcdir" in |
| 7228 | .) srcdir=. |
| 7229 | if test -z "$ac_dots"; then top_srcdir=. |
| 7230 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 7231 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 7232 | *) # Relative path. |
| 7233 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 7234 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 7235 | esac |
| 7236 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7237 | case "$ac_given_INSTALL" in |
| 7238 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
| 7239 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
| 7240 | esac |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7241 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7242 | echo creating "$ac_file" |
| 7243 | rm -f "$ac_file" |
| 7244 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 7245 | case "$ac_file" in |
| 7246 | *Makefile*) ac_comsub="1i\\ |
| 7247 | # $configure_input" ;; |
| 7248 | *) ac_comsub= ;; |
| 7249 | esac |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7250 | |
| 7251 | 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] | 7252 | sed -e "$ac_comsub |
| 7253 | s%@configure_input@%$configure_input%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7254 | s%@srcdir@%$srcdir%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7255 | s%@top_srcdir@%$top_srcdir%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7256 | s%@INSTALL@%$INSTALL%g |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7257 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7258 | fi; done |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7259 | rm -f conftest.s* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7260 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7261 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 7262 | # 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] | 7263 | # |
| 7264 | # ac_d sets the value in "#define NAME VALUE" lines. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7265 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 7266 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7267 | ac_dC='\3' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7268 | ac_dD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7269 | # 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] | 7270 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 7271 | ac_uB='\([ ]\)%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7272 | ac_uC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7273 | ac_uD='\4%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7274 | # 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] | 7275 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 7276 | ac_eB='$%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7277 | ac_eC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7278 | ac_eD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7279 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7280 | if test "${CONFIG_HEADERS+set}" != set; then |
| 7281 | EOF |
| 7282 | cat >> $CONFIG_STATUS <<EOF |
| 7283 | CONFIG_HEADERS="config.h" |
| 7284 | EOF |
| 7285 | cat >> $CONFIG_STATUS <<\EOF |
| 7286 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7287 | 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] | 7288 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7289 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7290 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7291 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 7292 | *) ac_file_in="${ac_file}.in" ;; |
| 7293 | esac |
| 7294 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7295 | echo creating $ac_file |
| 7296 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7297 | rm -f conftest.frag conftest.in conftest.out |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7298 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 7299 | cat $ac_file_inputs > conftest.in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7300 | |
| 7301 | EOF |
| 7302 | |
| 7303 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 7304 | # 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] | 7305 | # 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] | 7306 | # Protect against being in an unquoted here document in config.status. |
| 7307 | rm -f conftest.vals |
| 7308 | cat > conftest.hdr <<\EOF |
| 7309 | s/[\\&%]/\\&/g |
| 7310 | s%[\\$`]%\\&%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7311 | 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] | 7312 | s%ac_d%ac_u%gp |
| 7313 | s%ac_u%ac_e%gp |
| 7314 | EOF |
| 7315 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 7316 | rm -f conftest.hdr |
| 7317 | |
| 7318 | # This sed command replaces #undef with comments. This is necessary, for |
| 7319 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 7320 | # on some systems where configure will not decide to define it. |
| 7321 | cat >> conftest.vals <<\EOF |
| 7322 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 7323 | EOF |
| 7324 | |
| 7325 | # Break up conftest.vals because some shells have a limit on |
| 7326 | # 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] | 7327 | |
| 7328 | rm -f conftest.tail |
| 7329 | while : |
| 7330 | do |
| 7331 | ac_lines=`grep -c . conftest.vals` |
| 7332 | # grep -c gives empty output for an empty file on some AIX systems. |
| 7333 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 7334 | # Write a limited-size here document to conftest.frag. |
| 7335 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 7336 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 7337 | echo 'CEOF |
| 7338 | sed -f conftest.frag conftest.in > conftest.out |
| 7339 | rm -f conftest.in |
| 7340 | mv conftest.out conftest.in |
| 7341 | ' >> $CONFIG_STATUS |
| 7342 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 7343 | rm -f conftest.vals |
| 7344 | mv conftest.tail conftest.vals |
| 7345 | done |
| 7346 | rm -f conftest.vals |
| 7347 | |
| 7348 | cat >> $CONFIG_STATUS <<\EOF |
| 7349 | rm -f conftest.frag conftest.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7350 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7351 | cat conftest.in >> conftest.h |
| 7352 | rm -f conftest.in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7353 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7354 | echo "$ac_file is unchanged" |
| 7355 | rm -f conftest.h |
| 7356 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7357 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 7358 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 7359 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 7360 | # The file is in a subdirectory. |
| 7361 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 7362 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7363 | rm -f $ac_file |
| 7364 | mv conftest.h $ac_file |
| 7365 | fi |
| 7366 | fi; done |
| 7367 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7368 | EOF |
| 7369 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7370 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7371 | EOF |
| 7372 | cat >> $CONFIG_STATUS <<\EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7373 | |
| 7374 | exit 0 |
| 7375 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7376 | chmod +x $CONFIG_STATUS |
| 7377 | rm -fr confdefs* $ac_clean_files |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 7378 | 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] | 7379 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7380 | |
| 7381 | echo "creating Setup" |
| 7382 | if test ! -f Modules/Setup |
| 7383 | then |
| 7384 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 7385 | fi |
| 7386 | |
| 7387 | echo "creating Setup.local" |
| 7388 | if test ! -f Modules/Setup.local |
| 7389 | then |
| 7390 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 7391 | fi |
| 7392 | |
| 7393 | echo "creating Makefile" |
| 7394 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 7395 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 7396 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 7397 | mv config.c Modules |