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 | |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3 | # From configure.in Revision: 1.242 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5 | # Guess values for system-dependent variables and create Makefiles. |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6 | # Generated automatically using autoconf version 2.13 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8 | # |
| 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12 | # Defaults: |
| 13 | ac_help= |
| 14 | ac_default_prefix=/usr/local |
| 15 | # Any additions from configure.in: |
| 16 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 17 | --with-next-archs='arch1 arch2 ..' build MAB binary" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 18 | ac_help="$ac_help |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 19 | --with-next-framework Build (OpenStep|Rhapsody|MacOSX|Darwin) framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 20 | ac_help="$ac_help |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 21 | --with-dyld Use (OpenStep|Rhapsody) dynamic linker" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 22 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 23 | --without-gcc never use gcc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 25 | --with-cxx=<compiler> enable C++ support" |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 26 | ac_help="$ac_help |
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 |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 31 | --with-libs='lib1 ...' link against additional libs" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 32 | ac_help="$ac_help |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 33 | --with-signal-module disable/enable signal module" |
| 34 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 35 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 36 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 37 | --with(out)-threads[=DIRECTORY] disable/enable thread support" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 38 | ac_help="$ac_help |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 39 | --with(out)-thread[=DIRECTORY] deprecated; use --with(out)-threads" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 40 | ac_help="$ac_help |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 41 | --with-pth use GNU pth threading libraries" |
| 42 | ac_help="$ac_help |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 43 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 44 | --disable-ipv6 Disable ipv6 support" |
| 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 | c0d24d8b | 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 | c0d24d8b | 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 | c0d24d8b | 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 | c0d24d8b | 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 | c0d24d8b | 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` |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 639 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 640 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 641 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 642 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 643 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 644 | ac_md_system=`echo $ac_sys_system | |
| 645 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 646 | ac_md_release=`echo $ac_sys_release | |
| 647 | tr -d '/ ' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 648 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 649 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 650 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 651 | cygwin*) MACHDEP="cygwin";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 652 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 653 | esac |
| 654 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 655 | |
| 656 | # |
| 657 | # SGI compilers allow the specification of the both the ABI and the |
| 658 | # ISA on the command line. Depending on the values of these switches, |
| 659 | # different and often incompatable code will be generated. |
| 660 | # |
| 661 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 662 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 663 | # variable is also adjusted. |
| 664 | # |
| 665 | |
| 666 | if test ! -z "$SGI_ABI" |
| 667 | then |
| 668 | CC="cc $SGI_ABI" |
| 669 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 670 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 671 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 672 | echo "$ac_t""$MACHDEP" 1>&6 |
| 673 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 674 | # checks for alternative programs |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 675 | echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6 |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 676 | echo "configure:677: checking for --without-gcc" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 677 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 678 | if test "${with_gcc+set}" = set; then |
| 679 | withval="$with_gcc" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 680 | |
| 681 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 682 | no) CC=cc |
| 683 | without_gcc=yes;; |
| 684 | yes) CC=gcc |
| 685 | without_gcc=no;; |
| 686 | *) CC=$withval |
| 687 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 688 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 689 | else |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 690 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 691 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 692 | AIX*) CC=cc_r |
| 693 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 694 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 695 | case $BE_HOST_CPU in |
| 696 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 697 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 698 | without_gcc=yes |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 699 | 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] | 700 | CCSHARED="-UDL_IMPORT -D'DL_IMPORT(RTYPE)=__declspec(dllimport) RTYPE'" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 701 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 702 | ;; |
| 703 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 704 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 705 | without_gcc=no |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 706 | OPT=-O |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 707 | ;; |
| 708 | *) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 709 | { 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] | 710 | ;; |
| 711 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 712 | AR="\$(srcdir)/Modules/ar_beos" |
| 713 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 714 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 715 | Monterey*) |
| 716 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 717 | without_gcc=;; |
| 718 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 719 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 720 | fi |
| 721 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 722 | echo "$ac_t""$without_gcc" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 723 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 724 | |
| 725 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 726 | MAINOBJ=python.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 727 | echo $ac_n "checking for --with-cxx=<compiler>""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 728 | echo "configure:729: checking for --with-cxx=<compiler>" >&5 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 729 | # Check whether --with-cxx or --without-cxx was given. |
| 730 | if test "${with_cxx+set}" = set; then |
| 731 | withval="$with_cxx" |
| 732 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 733 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 734 | case $withval in |
| 735 | no) CXX= |
| 736 | with_cxx=no;; |
| 737 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 738 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 739 | with_cxx=$withval;; |
| 740 | esac |
| 741 | else |
| 742 | |
| 743 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 744 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 745 | |
| 746 | fi |
| 747 | |
| 748 | echo "$ac_t""$with_cxx" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 749 | |
| 750 | |
| 751 | if test "$check_cxx" = "yes" |
| 752 | then |
| 753 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 754 | do |
| 755 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 756 | set dummy $ac_prog; ac_word=$2 |
| 757 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 758 | echo "configure:759: checking for $ac_word" >&5 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 759 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
| 760 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 761 | else |
| 762 | if test -n "$CXX"; then |
| 763 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 764 | else |
| 765 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 766 | ac_dummy="$PATH" |
| 767 | for ac_dir in $ac_dummy; do |
| 768 | test -z "$ac_dir" && ac_dir=. |
| 769 | if test -f $ac_dir/$ac_word; then |
| 770 | ac_cv_prog_CXX="$ac_prog" |
| 771 | break |
| 772 | fi |
| 773 | done |
| 774 | IFS="$ac_save_ifs" |
| 775 | fi |
| 776 | fi |
| 777 | CXX="$ac_cv_prog_CXX" |
| 778 | if test -n "$CXX"; then |
| 779 | echo "$ac_t""$CXX" 1>&6 |
| 780 | else |
| 781 | echo "$ac_t""no" 1>&6 |
| 782 | fi |
| 783 | |
| 784 | test -n "$CXX" && break |
| 785 | done |
| 786 | test -n "$CXX" || CXX="notfound" |
| 787 | |
| 788 | if test "$CXX" = "notfound" |
| 789 | then |
| 790 | CXX= |
| 791 | else |
| 792 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 793 | echo "configure:794: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 794 | |
| 795 | ac_ext=C |
| 796 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 797 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 798 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 799 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 800 | cross_compiling=$ac_cv_prog_cxx_cross |
| 801 | |
| 802 | cat > conftest.$ac_ext << EOF |
| 803 | |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 804 | #line 805 "configure" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 805 | #include "confdefs.h" |
| 806 | |
| 807 | int main(){return(0);} |
| 808 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 809 | if { (eval echo configure:810: \"$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] | 810 | ac_cv_prog_cxx_works=yes |
| 811 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 812 | if (./conftest; exit) 2>/dev/null; then |
| 813 | ac_cv_prog_cxx_cross=no |
| 814 | else |
| 815 | ac_cv_prog_cxx_cross=yes |
| 816 | fi |
| 817 | else |
| 818 | echo "configure: failed program was:" >&5 |
| 819 | cat conftest.$ac_ext >&5 |
| 820 | ac_cv_prog_cxx_works=no |
| 821 | fi |
| 822 | rm -fr conftest* |
| 823 | ac_ext=c |
| 824 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 825 | ac_cpp='$CPP $CPPFLAGS' |
| 826 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 827 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 828 | cross_compiling=$ac_cv_prog_cc_cross |
| 829 | |
| 830 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
| 831 | if test $ac_cv_prog_cxx_works = no; then |
| 832 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } |
| 833 | fi |
| 834 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 835 | echo "configure:836: 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] | 836 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
| 837 | cross_compiling=$ac_cv_prog_cxx_cross |
| 838 | |
| 839 | fi |
| 840 | fi |
| 841 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 842 | # If the user switches compilers, we can't believe the cache |
| 843 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 844 | then |
| 845 | { echo "configure: error: cached CC is different -- throw away $cache_file |
| 846 | (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; } |
| 847 | fi |
| 848 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 849 | # Extract the first word of "gcc", so it can be a program name with args. |
| 850 | set dummy gcc; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 851 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 852 | echo "configure:853: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 853 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 854 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 855 | else |
| 856 | if test -n "$CC"; then |
| 857 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 858 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 859 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 860 | ac_dummy="$PATH" |
| 861 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 862 | test -z "$ac_dir" && ac_dir=. |
| 863 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 864 | ac_cv_prog_CC="gcc" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 865 | break |
| 866 | fi |
| 867 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 868 | IFS="$ac_save_ifs" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 869 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 870 | fi |
| 871 | CC="$ac_cv_prog_CC" |
| 872 | if test -n "$CC"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 873 | echo "$ac_t""$CC" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 874 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 875 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 876 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 877 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 878 | if test -z "$CC"; then |
| 879 | # Extract the first word of "cc", so it can be a program name with args. |
| 880 | set dummy cc; ac_word=$2 |
| 881 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 882 | echo "configure:883: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 883 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 884 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 885 | else |
| 886 | if test -n "$CC"; then |
| 887 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 888 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 889 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 890 | ac_prog_rejected=no |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 891 | ac_dummy="$PATH" |
| 892 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 893 | test -z "$ac_dir" && ac_dir=. |
| 894 | if test -f $ac_dir/$ac_word; then |
| 895 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 896 | ac_prog_rejected=yes |
| 897 | continue |
| 898 | fi |
| 899 | ac_cv_prog_CC="cc" |
| 900 | break |
| 901 | fi |
| 902 | done |
| 903 | IFS="$ac_save_ifs" |
| 904 | if test $ac_prog_rejected = yes; then |
| 905 | # We found a bogon in the path, so make sure we never use it. |
| 906 | set dummy $ac_cv_prog_CC |
| 907 | shift |
| 908 | if test $# -gt 0; then |
| 909 | # We chose a different compiler from the bogus one. |
| 910 | # However, it has the same basename, so the bogon will be chosen |
| 911 | # first if we set CC to just the basename; use the full file name. |
| 912 | shift |
| 913 | set dummy "$ac_dir/$ac_word" "$@" |
| 914 | shift |
| 915 | ac_cv_prog_CC="$@" |
| 916 | fi |
| 917 | fi |
| 918 | fi |
| 919 | fi |
| 920 | CC="$ac_cv_prog_CC" |
| 921 | if test -n "$CC"; then |
| 922 | echo "$ac_t""$CC" 1>&6 |
| 923 | else |
| 924 | echo "$ac_t""no" 1>&6 |
| 925 | fi |
| 926 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 927 | if test -z "$CC"; then |
| 928 | case "`uname -s`" in |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 929 | *win32* | *WIN32*) |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 930 | # Extract the first word of "cl", so it can be a program name with args. |
| 931 | set dummy cl; ac_word=$2 |
| 932 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 933 | echo "configure:934: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 934 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 935 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 936 | else |
| 937 | if test -n "$CC"; then |
| 938 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 939 | else |
| 940 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 941 | ac_dummy="$PATH" |
| 942 | for ac_dir in $ac_dummy; do |
| 943 | test -z "$ac_dir" && ac_dir=. |
| 944 | if test -f $ac_dir/$ac_word; then |
| 945 | ac_cv_prog_CC="cl" |
| 946 | break |
| 947 | fi |
| 948 | done |
| 949 | IFS="$ac_save_ifs" |
| 950 | fi |
| 951 | fi |
| 952 | CC="$ac_cv_prog_CC" |
| 953 | if test -n "$CC"; then |
| 954 | echo "$ac_t""$CC" 1>&6 |
| 955 | else |
| 956 | echo "$ac_t""no" 1>&6 |
| 957 | fi |
| 958 | ;; |
| 959 | esac |
| 960 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 961 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 962 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 963 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 964 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 965 | echo "configure:966: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 966 | |
| 967 | ac_ext=c |
| 968 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 969 | ac_cpp='$CPP $CPPFLAGS' |
| 970 | 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] | 971 | 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] | 972 | cross_compiling=$ac_cv_prog_cc_cross |
| 973 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 974 | cat > conftest.$ac_ext << EOF |
| 975 | |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 976 | #line 977 "configure" |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 977 | #include "confdefs.h" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 978 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 979 | main(){return(0);} |
| 980 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 981 | if { (eval echo configure:982: \"$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] | 982 | ac_cv_prog_cc_works=yes |
| 983 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 984 | if (./conftest; exit) 2>/dev/null; then |
| 985 | ac_cv_prog_cc_cross=no |
| 986 | else |
| 987 | ac_cv_prog_cc_cross=yes |
| 988 | fi |
| 989 | else |
| 990 | echo "configure: failed program was:" >&5 |
| 991 | cat conftest.$ac_ext >&5 |
| 992 | ac_cv_prog_cc_works=no |
| 993 | fi |
| 994 | rm -fr conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 995 | ac_ext=c |
| 996 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 997 | ac_cpp='$CPP $CPPFLAGS' |
| 998 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 999 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 1000 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1001 | |
| 1002 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 1003 | if test $ac_cv_prog_cc_works = no; then |
| 1004 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 1005 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1006 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1007 | echo "configure:1008: 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] | 1008 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 1009 | cross_compiling=$ac_cv_prog_cc_cross |
| 1010 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1011 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1012 | echo "configure:1013: checking whether we are using GNU C" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1013 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1014 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1015 | else |
| 1016 | cat > conftest.c <<EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1017 | #ifdef __GNUC__ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1018 | yes; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1019 | #endif |
| 1020 | EOF |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1021 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1022: \"$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] | 1022 | ac_cv_prog_gcc=yes |
| 1023 | else |
| 1024 | ac_cv_prog_gcc=no |
| 1025 | fi |
| 1026 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1027 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1028 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1029 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1030 | if test $ac_cv_prog_gcc = yes; then |
| 1031 | GCC=yes |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1032 | else |
| 1033 | GCC= |
| 1034 | fi |
| 1035 | |
| 1036 | ac_test_CFLAGS="${CFLAGS+set}" |
| 1037 | ac_save_CFLAGS="$CFLAGS" |
| 1038 | CFLAGS= |
| 1039 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
Martin v. Löwis | 784d3df | 2001-07-25 07:30:35 +0000 | [diff] [blame] | 1040 | echo "configure:1041: checking whether ${CC-cc} accepts -g" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1041 | 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] | 1042 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1043 | else |
| 1044 | echo 'void f(){}' > conftest.c |
| 1045 | 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] | 1046 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1047 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1048 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1049 | fi |
| 1050 | rm -f conftest* |
| 1051 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1052 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1053 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1054 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1055 | if test "$ac_test_CFLAGS" = set; then |
| 1056 | CFLAGS="$ac_save_CFLAGS" |
| 1057 | elif test $ac_cv_prog_cc_g = yes; then |
| 1058 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1059 | CFLAGS="-g -O2" |
| 1060 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1061 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1062 | fi |
| 1063 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1064 | if test "$GCC" = yes; then |
| 1065 | CFLAGS="-O2" |
| 1066 | else |
| 1067 | CFLAGS= |
| 1068 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1069 | fi |
| 1070 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1071 | |
| 1072 | # checks for UNIX variants that set C preprocessor variables |
| 1073 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
| 1074 | echo "configure:1075: checking how to run the C preprocessor" >&5 |
| 1075 | # On Suns, sometimes $CPP names a directory. |
| 1076 | if test -n "$CPP" && test -d "$CPP"; then |
| 1077 | CPP= |
| 1078 | fi |
| 1079 | if test -z "$CPP"; then |
| 1080 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 1081 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1082 | else |
| 1083 | # This must be in double quotes, not single quotes, because CPP may get |
| 1084 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
| 1085 | CPP="${CC-cc} -E" |
| 1086 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 1087 | # not just through cpp. |
| 1088 | cat > conftest.$ac_ext <<EOF |
| 1089 | #line 1090 "configure" |
| 1090 | #include "confdefs.h" |
| 1091 | #include <assert.h> |
| 1092 | Syntax Error |
| 1093 | EOF |
| 1094 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1095 | { (eval echo configure:1096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1096 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1097 | if test -z "$ac_err"; then |
| 1098 | : |
| 1099 | else |
| 1100 | echo "$ac_err" >&5 |
| 1101 | echo "configure: failed program was:" >&5 |
| 1102 | cat conftest.$ac_ext >&5 |
| 1103 | rm -rf conftest* |
| 1104 | CPP="${CC-cc} -E -traditional-cpp" |
| 1105 | cat > conftest.$ac_ext <<EOF |
| 1106 | #line 1107 "configure" |
| 1107 | #include "confdefs.h" |
| 1108 | #include <assert.h> |
| 1109 | Syntax Error |
| 1110 | EOF |
| 1111 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1112 | { (eval echo configure:1113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1113 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1114 | if test -z "$ac_err"; then |
| 1115 | : |
| 1116 | else |
| 1117 | echo "$ac_err" >&5 |
| 1118 | echo "configure: failed program was:" >&5 |
| 1119 | cat conftest.$ac_ext >&5 |
| 1120 | rm -rf conftest* |
| 1121 | CPP="${CC-cc} -nologo -E" |
| 1122 | cat > conftest.$ac_ext <<EOF |
| 1123 | #line 1124 "configure" |
| 1124 | #include "confdefs.h" |
| 1125 | #include <assert.h> |
| 1126 | Syntax Error |
| 1127 | EOF |
| 1128 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1129 | { (eval echo configure:1130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1130 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1131 | if test -z "$ac_err"; then |
| 1132 | : |
| 1133 | else |
| 1134 | echo "$ac_err" >&5 |
| 1135 | echo "configure: failed program was:" >&5 |
| 1136 | cat conftest.$ac_ext >&5 |
| 1137 | rm -rf conftest* |
| 1138 | CPP=/lib/cpp |
| 1139 | fi |
| 1140 | rm -f conftest* |
| 1141 | fi |
| 1142 | rm -f conftest* |
| 1143 | fi |
| 1144 | rm -f conftest* |
| 1145 | ac_cv_prog_CPP="$CPP" |
| 1146 | fi |
| 1147 | CPP="$ac_cv_prog_CPP" |
| 1148 | else |
| 1149 | ac_cv_prog_CPP="$CPP" |
| 1150 | fi |
| 1151 | echo "$ac_t""$CPP" 1>&6 |
| 1152 | |
| 1153 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
| 1154 | echo "configure:1155: checking for AIX" >&5 |
| 1155 | cat > conftest.$ac_ext <<EOF |
| 1156 | #line 1157 "configure" |
| 1157 | #include "confdefs.h" |
| 1158 | #ifdef _AIX |
| 1159 | yes |
| 1160 | #endif |
| 1161 | |
| 1162 | EOF |
| 1163 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1164 | egrep "yes" >/dev/null 2>&1; then |
| 1165 | rm -rf conftest* |
| 1166 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 1167 | #define _ALL_SOURCE 1 |
| 1168 | EOF |
| 1169 | |
| 1170 | else |
| 1171 | rm -rf conftest* |
| 1172 | echo "$ac_t""no" 1>&6 |
| 1173 | fi |
| 1174 | rm -f conftest* |
| 1175 | |
| 1176 | |
| 1177 | ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` |
| 1178 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 |
| 1179 | echo "configure:1180: checking for minix/config.h" >&5 |
| 1180 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1181 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1182 | else |
| 1183 | cat > conftest.$ac_ext <<EOF |
| 1184 | #line 1185 "configure" |
| 1185 | #include "confdefs.h" |
| 1186 | #include <minix/config.h> |
| 1187 | EOF |
| 1188 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1189 | { (eval echo configure:1190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1190 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1191 | if test -z "$ac_err"; then |
| 1192 | rm -rf conftest* |
| 1193 | eval "ac_cv_header_$ac_safe=yes" |
| 1194 | else |
| 1195 | echo "$ac_err" >&5 |
| 1196 | echo "configure: failed program was:" >&5 |
| 1197 | cat conftest.$ac_ext >&5 |
| 1198 | rm -rf conftest* |
| 1199 | eval "ac_cv_header_$ac_safe=no" |
| 1200 | fi |
| 1201 | rm -f conftest* |
| 1202 | fi |
| 1203 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1204 | echo "$ac_t""yes" 1>&6 |
| 1205 | MINIX=yes |
| 1206 | else |
| 1207 | echo "$ac_t""no" 1>&6 |
| 1208 | MINIX= |
| 1209 | fi |
| 1210 | |
| 1211 | if test "$MINIX" = yes; then |
| 1212 | cat >> confdefs.h <<\EOF |
| 1213 | #define _POSIX_SOURCE 1 |
| 1214 | EOF |
| 1215 | |
| 1216 | cat >> confdefs.h <<\EOF |
| 1217 | #define _POSIX_1_SOURCE 2 |
| 1218 | EOF |
| 1219 | |
| 1220 | cat >> confdefs.h <<\EOF |
| 1221 | #define _MINIX 1 |
| 1222 | EOF |
| 1223 | |
| 1224 | fi |
| 1225 | |
| 1226 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1227 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1228 | echo "configure:1229: checking for Cygwin environment" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1229 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
| 1230 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1231 | else |
| 1232 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1233 | #line 1234 "configure" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1234 | #include "confdefs.h" |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1235 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1236 | int main() { |
| 1237 | |
| 1238 | #ifndef __CYGWIN__ |
| 1239 | #define __CYGWIN__ __CYGWIN32__ |
| 1240 | #endif |
| 1241 | return __CYGWIN__; |
| 1242 | ; return 0; } |
| 1243 | EOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1244 | if { (eval echo configure:1245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1245 | rm -rf conftest* |
| 1246 | ac_cv_cygwin=yes |
| 1247 | else |
| 1248 | echo "configure: failed program was:" >&5 |
| 1249 | cat conftest.$ac_ext >&5 |
| 1250 | rm -rf conftest* |
| 1251 | ac_cv_cygwin=no |
| 1252 | fi |
| 1253 | rm -f conftest* |
| 1254 | rm -f conftest* |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1255 | fi |
| 1256 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1257 | echo "$ac_t""$ac_cv_cygwin" 1>&6 |
| 1258 | CYGWIN= |
| 1259 | test "$ac_cv_cygwin" = yes && CYGWIN=yes |
| 1260 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1261 | echo "configure:1262: checking for mingw32 environment" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1262 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
| 1263 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1264 | else |
| 1265 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1266 | #line 1267 "configure" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1267 | #include "confdefs.h" |
| 1268 | |
| 1269 | int main() { |
| 1270 | return __MINGW32__; |
| 1271 | ; return 0; } |
| 1272 | EOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1273 | if { (eval echo configure:1274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1274 | rm -rf conftest* |
| 1275 | ac_cv_mingw32=yes |
| 1276 | else |
| 1277 | echo "configure: failed program was:" >&5 |
| 1278 | cat conftest.$ac_ext >&5 |
| 1279 | rm -rf conftest* |
| 1280 | ac_cv_mingw32=no |
| 1281 | fi |
| 1282 | rm -f conftest* |
| 1283 | rm -f conftest* |
| 1284 | fi |
| 1285 | |
| 1286 | echo "$ac_t""$ac_cv_mingw32" 1>&6 |
| 1287 | MINGW32= |
| 1288 | test "$ac_cv_mingw32" = yes && MINGW32=yes |
| 1289 | |
| 1290 | |
| 1291 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1292 | echo "configure:1293: checking for executable suffix" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1293 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
| 1294 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1295 | else |
| 1296 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 1297 | ac_cv_exeext=.exe |
| 1298 | else |
| 1299 | rm -f conftest* |
| 1300 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 1301 | ac_cv_exeext= |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1302 | if { (eval echo configure:1303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1303 | for file in conftest.*; do |
| 1304 | case $file in |
| 1305 | *.c | *.o | *.obj) ;; |
| 1306 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
| 1307 | esac |
| 1308 | done |
| 1309 | else |
| 1310 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } |
| 1311 | fi |
| 1312 | rm -f conftest* |
| 1313 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no |
| 1314 | fi |
| 1315 | fi |
| 1316 | |
| 1317 | EXEEXT="" |
| 1318 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} |
| 1319 | echo "$ac_t""${ac_cv_exeext}" 1>&6 |
| 1320 | ac_exeext=$EXEEXT |
| 1321 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 1322 | echo $ac_n "checking for --with-suffix""... $ac_c" 1>&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1323 | echo "configure:1324: checking for --with-suffix" >&5 |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 1324 | # Check whether --with-suffix or --without-suffix was given. |
| 1325 | if test "${with_suffix+set}" = set; then |
| 1326 | withval="$with_suffix" |
| 1327 | |
| 1328 | case $withval in |
| 1329 | no) EXEEXT=;; |
| 1330 | yes) EXEEXT=.exe;; |
| 1331 | *) EXEEXT=$withval;; |
| 1332 | esac |
| 1333 | fi |
| 1334 | |
| 1335 | echo "$ac_t""$EXEEXT" 1>&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 1336 | # Test whether we're running on a non-case-sensitive system, in which |
| 1337 | # case we give a warning if no ext is given |
| 1338 | if test -d "python" -a -z "$EXEEXT" |
| 1339 | then |
| 1340 | echo "configure: warning: This filesystem is not case-sensitive so you should probably use --with-suffix" 1>&2 |
| 1341 | fi |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1342 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 1343 | case $MACHDEP in |
| 1344 | bsdos*) |
| 1345 | case $CC in |
| 1346 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 1347 | esac;; |
| 1348 | esac |
| 1349 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1350 | case $ac_sys_system in |
| 1351 | hp*|HP*) |
| 1352 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 1353 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1354 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1355 | Monterey*) |
| 1356 | case $CC in |
| 1357 | cc) CC="$CC -Wl,-Bexport";; |
| 1358 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 1359 | SunOS*) |
| 1360 | # Some functions have a prototype only with that define, e.g. confstr |
| 1361 | cat >> confdefs.h <<\EOF |
| 1362 | #define __EXTENSIONS__ 1 |
| 1363 | EOF |
| 1364 | |
| 1365 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1366 | esac |
| 1367 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1368 | |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 1369 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1370 | echo $ac_n "checking LIBRARY""... $ac_c" 1>&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1371 | echo "configure:1372: checking LIBRARY" >&5 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1372 | if test -z "$LIBRARY" |
| 1373 | then |
| 1374 | LIBRARY='libpython$(VERSION).a' |
| 1375 | fi |
| 1376 | echo "$ac_t""$LIBRARY" 1>&6 |
| 1377 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1378 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 1379 | # name of the library into which to insert object files). On systems |
| 1380 | # without shared libraries, LDLIBRARY is the same as LIBRARY (defined in |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1381 | # the Makefiles). On Cygwin LDLIBRARY is the import library, DLLLIBRARY is the |
| 1382 | # shared (i.e., DLL) library. |
| 1383 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1384 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1385 | LDLIBRARY="$LIBRARY" |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 1386 | DLLLIBRARY='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1387 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1388 | # LINKCC is the command that links the python executable -- default is $(CC). |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1389 | # 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] | 1390 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1391 | |
| 1392 | echo $ac_n "checking LINKCC""... $ac_c" 1>&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1393 | echo "configure:1394: checking LINKCC" >&5 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1394 | if test -z "$LINKCC" |
| 1395 | then |
| 1396 | case $ac_sys_system in |
| 1397 | AIX*) |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1398 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); \$(PURIFY) \$(CC)";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 1399 | dgux*) |
| 1400 | LINKCC="LD_RUN_PATH=$libdir \$(PURIFY) \$(CC)";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1401 | Monterey64*) |
| 1402 | LINKCC="\$(PURIFY) \$(CC) -L/usr/lib/ia64l64";; |
Guido van Rossum | 25f9303 | 1997-08-18 16:00:04 +0000 | [diff] [blame] | 1403 | *) LINKCC="\$(PURIFY) \$(CC)";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1404 | esac |
| 1405 | fi |
| 1406 | echo "$ac_t""$LINKCC" 1>&6 |
| 1407 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1408 | echo $ac_n "checking LDLIBRARY""... $ac_c" 1>&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1409 | echo "configure:1410: checking LDLIBRARY" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1410 | |
| 1411 | # NeXT framework builds require that the 'ar' library be converted into |
| 1412 | # a bundle using libtool. |
| 1413 | if test "$with_next_framework" |
| 1414 | then |
| 1415 | LDLIBRARY='libpython$(VERSION).dylib' |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 1416 | DLLLIBRARY=$LDLIBRARY |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1417 | fi |
| 1418 | |
| 1419 | # 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] | 1420 | case $MACHDEP in |
| 1421 | dguxR4) |
| 1422 | LDLIBRARY='libpython$(VERSION).so' |
| 1423 | OPT="$OPT -pic" |
| 1424 | ;; |
| 1425 | beos*) |
| 1426 | LDLIBRARY='libpython$(VERSION).so' |
| 1427 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1428 | cygwin*) |
| 1429 | LDLIBRARY='libpython$(VERSION).dll.a' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1430 | DLLLIBRARY='libpython$(VERSION).dll' |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1431 | ;; |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1432 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1433 | echo "$ac_t""$LDLIBRARY" 1>&6 |
| 1434 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1435 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1436 | set dummy ranlib; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1437 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1438 | echo "configure:1439: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1439 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1440 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1441 | else |
| 1442 | if test -n "$RANLIB"; then |
| 1443 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1444 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1445 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1446 | ac_dummy="$PATH" |
| 1447 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1448 | test -z "$ac_dir" && ac_dir=. |
| 1449 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1450 | ac_cv_prog_RANLIB="ranlib" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1451 | break |
| 1452 | fi |
| 1453 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1454 | IFS="$ac_save_ifs" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1455 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1456 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1457 | fi |
| 1458 | RANLIB="$ac_cv_prog_RANLIB" |
| 1459 | if test -n "$RANLIB"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1460 | echo "$ac_t""$RANLIB" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1461 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1462 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1463 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1464 | |
| 1465 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1466 | for ac_prog in ar aal |
| 1467 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1468 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1469 | set dummy $ac_prog; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1470 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1471 | echo "configure:1472: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1472 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1473 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1474 | else |
| 1475 | if test -n "$AR"; then |
| 1476 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 1477 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1478 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1479 | ac_dummy="$PATH" |
| 1480 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1481 | test -z "$ac_dir" && ac_dir=. |
| 1482 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1483 | ac_cv_prog_AR="$ac_prog" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1484 | break |
| 1485 | fi |
| 1486 | done |
| 1487 | IFS="$ac_save_ifs" |
| 1488 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1489 | fi |
| 1490 | AR="$ac_cv_prog_AR" |
| 1491 | if test -n "$AR"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1492 | echo "$ac_t""$AR" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1493 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1494 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1495 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1496 | |
| 1497 | test -n "$AR" && break |
| 1498 | done |
| 1499 | test -n "$AR" || AR="ar" |
| 1500 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 1501 | |
| 1502 | case $MACHDEP in |
| 1503 | bsdos*) |
| 1504 | # install -d does not work on BSDI |
| 1505 | if test -z "$INSTALL" |
| 1506 | then |
| 1507 | INSTALL="${srcdir}/install-sh -c" |
| 1508 | fi |
| 1509 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1510 | ac_aux_dir= |
| 1511 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1512 | if test -f $ac_dir/install-sh; then |
| 1513 | ac_aux_dir=$ac_dir |
| 1514 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1515 | break |
| 1516 | elif test -f $ac_dir/install.sh; then |
| 1517 | ac_aux_dir=$ac_dir |
| 1518 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1519 | break |
| 1520 | fi |
| 1521 | done |
| 1522 | if test -z "$ac_aux_dir"; then |
| 1523 | { 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] | 1524 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1525 | ac_config_guess=$ac_aux_dir/config.guess |
| 1526 | ac_config_sub=$ac_aux_dir/config.sub |
| 1527 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
| 1528 | |
| 1529 | # Find a good install program. We prefer a C program (faster), |
| 1530 | # so one script is as good as another. But avoid the broken or |
| 1531 | # incompatible versions: |
| 1532 | # SysV /etc/install, /usr/sbin/install |
| 1533 | # SunOS /usr/etc/install |
| 1534 | # IRIX /sbin/install |
| 1535 | # AIX /bin/install |
| 1536 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1537 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1538 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1539 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1540 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1541 | echo "configure:1542: checking for a BSD compatible install" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1542 | if test -z "$INSTALL"; then |
| 1543 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 1544 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1545 | else |
| 1546 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
| 1547 | for ac_dir in $PATH; do |
| 1548 | # Account for people who put trailing slashes in PATH elements. |
| 1549 | case "$ac_dir/" in |
| 1550 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
| 1551 | *) |
| 1552 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1553 | # Don't use installbsd from OSF since it installs stuff as root |
| 1554 | # by default. |
| 1555 | for ac_prog in ginstall scoinst install; do |
| 1556 | if test -f $ac_dir/$ac_prog; then |
| 1557 | if test $ac_prog = install && |
| 1558 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
| 1559 | # AIX install. It has an incompatible calling convention. |
| 1560 | : |
| 1561 | else |
| 1562 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 1563 | break 2 |
| 1564 | fi |
| 1565 | fi |
| 1566 | done |
| 1567 | ;; |
| 1568 | esac |
| 1569 | done |
| 1570 | IFS="$ac_save_IFS" |
| 1571 | |
| 1572 | fi |
| 1573 | if test "${ac_cv_path_install+set}" = set; then |
| 1574 | INSTALL="$ac_cv_path_install" |
| 1575 | else |
| 1576 | # As a last resort, use the slow shell script. We don't cache a |
| 1577 | # path for INSTALL within a source directory, because that will |
| 1578 | # break other packages using the cache if that directory is |
| 1579 | # removed, or if the path is relative. |
| 1580 | INSTALL="$ac_install_sh" |
| 1581 | fi |
| 1582 | fi |
| 1583 | echo "$ac_t""$INSTALL" 1>&6 |
| 1584 | |
| 1585 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1586 | # It thinks the first close brace ends the variable substitution. |
| 1587 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1588 | |
| 1589 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
| 1590 | |
| 1591 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1592 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1593 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1594 | # Not every filesystem supports hard links |
| 1595 | |
| 1596 | if test -z "$LN" ; then |
| 1597 | case $ac_sys_system in |
| 1598 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1599 | CYGWIN*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1600 | *) LN=ln;; |
| 1601 | esac |
| 1602 | fi |
| 1603 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1604 | # Check for --with-pydebug |
| 1605 | echo $ac_n "checking for --with-pydebug""... $ac_c" 1>&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1606 | echo "configure:1607: checking for --with-pydebug" >&5 |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1607 | # Check whether --with-pydebug or --without-pydebug was given. |
| 1608 | if test "${with_pydebug+set}" = set; then |
| 1609 | withval="$with_pydebug" |
| 1610 | |
| 1611 | if test "$withval" != no |
| 1612 | then cat >> confdefs.h <<\EOF |
| 1613 | #define Py_DEBUG 1 |
| 1614 | EOF |
| 1615 | echo "$ac_t""yes" 1>&6; Py_DEBUG='true' |
| 1616 | else echo "$ac_t""no" 1>&6; Py_DEBUG='false' |
| 1617 | fi |
| 1618 | else |
| 1619 | echo "$ac_t""no" 1>&6 |
| 1620 | fi |
| 1621 | |
| 1622 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1623 | # Optimizer/debugger flags |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1624 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1625 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1626 | then |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 1627 | case $GCC in |
| 1628 | yes) |
| 1629 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1630 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1631 | if test "$Py_DEBUG" = 'true' ; then |
| 1632 | # Optimization messes up debuggers, so turn it off for |
| 1633 | # debug builds. |
| 1634 | OPT="-g -Wall -Wstrict-prototypes" |
| 1635 | else |
| 1636 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
| 1637 | fi;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1638 | *) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1639 | OPT="-O3 -Wall -Wstrict-prototypes";; |
| 1640 | esac |
| 1641 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1642 | *) |
| 1643 | case $ac_sys_system in |
| 1644 | UnixWare*) |
| 1645 | OPT="-O -K pentium,host,inline,loop_unroll,alloca ";; |
| 1646 | *) |
| 1647 | OPT="-O";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1648 | esac |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1649 | esac |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 1650 | case $ac_sys_system in |
| 1651 | Darwin*) |
| 1652 | OPT="$OPT -no-cpp-precomp";; |
| 1653 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1654 | fi |
| 1655 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1656 | # The current (beta) Monterey compiler dies with optimizations |
| 1657 | case $ac_sys_system in |
| 1658 | Monterey*) OPT="";; |
| 1659 | esac |
| 1660 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1661 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 1662 | then |
| 1663 | OPT="$OPT $ac_arch_flags" |
| 1664 | fi |
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 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +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 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +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 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +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 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +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 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +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 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +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 | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1739 | # -Kpthread, if available, provides the right #defines |
| 1740 | # and linker options to make pthread_create available |
| 1741 | echo $ac_n "checking whether $CC accepts -Kpthread""... $ac_c" 1>&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 1742 | echo "configure:1743: checking whether $CC accepts -Kpthread" >&5 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1743 | if eval "test \"`echo '$''{'ac_cv_kpthread'+set}'`\" = set"; then |
| 1744 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1745 | else |
| 1746 | ac_save_cc="$CC" |
| 1747 | CC="$CC -Kpthread" |
| 1748 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 1749 | #line 1750 "configure" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1750 | #include "confdefs.h" |
| 1751 | #include <pthread.h> |
| 1752 | int main() { |
| 1753 | pthread_create(0,0,0,0) |
| 1754 | ; return 0; } |
| 1755 | EOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 1756 | if { (eval echo configure:1757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1757 | rm -rf conftest* |
| 1758 | ac_cv_kpthread=yes |
| 1759 | else |
| 1760 | echo "configure: failed program was:" >&5 |
| 1761 | cat conftest.$ac_ext >&5 |
| 1762 | rm -rf conftest* |
| 1763 | ac_cv_kpthread=no |
| 1764 | fi |
| 1765 | rm -f conftest* |
| 1766 | CC="$ac_save_cc" |
| 1767 | fi |
| 1768 | |
| 1769 | |
| 1770 | # GCC does not reject -Kpthread as an illegal option, it merely complains that |
| 1771 | # it is unrecognized |
| 1772 | if test "$GCC" = "yes" |
| 1773 | then ac_cv_kpthread="no, we have gcc" |
| 1774 | fi |
| 1775 | echo "$ac_t""$ac_cv_kpthread" 1>&6 |
| 1776 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1777 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1778 | # checks for header files |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1779 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 1780 | echo "configure:1781: checking for ANSI C header files" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1781 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1782 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1783 | else |
| 1784 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 1785 | #line 1786 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1786 | #include "confdefs.h" |
| 1787 | #include <stdlib.h> |
| 1788 | #include <stdarg.h> |
| 1789 | #include <string.h> |
| 1790 | #include <float.h> |
| 1791 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1792 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 1793 | { (eval echo configure:1794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1794 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1795 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1796 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1797 | ac_cv_header_stdc=yes |
| 1798 | else |
| 1799 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1800 | echo "configure: failed program was:" >&5 |
| 1801 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1802 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1803 | ac_cv_header_stdc=no |
| 1804 | fi |
| 1805 | rm -f conftest* |
| 1806 | |
| 1807 | if test $ac_cv_header_stdc = yes; then |
| 1808 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 1809 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 1810 | #line 1811 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1811 | #include "confdefs.h" |
| 1812 | #include <string.h> |
| 1813 | EOF |
| 1814 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1815 | egrep "memchr" >/dev/null 2>&1; then |
| 1816 | : |
| 1817 | else |
| 1818 | rm -rf conftest* |
| 1819 | ac_cv_header_stdc=no |
| 1820 | fi |
| 1821 | rm -f conftest* |
| 1822 | |
| 1823 | fi |
| 1824 | |
| 1825 | if test $ac_cv_header_stdc = yes; then |
| 1826 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 1827 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 1828 | #line 1829 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1829 | #include "confdefs.h" |
| 1830 | #include <stdlib.h> |
| 1831 | EOF |
| 1832 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1833 | egrep "free" >/dev/null 2>&1; then |
| 1834 | : |
| 1835 | else |
| 1836 | rm -rf conftest* |
| 1837 | ac_cv_header_stdc=no |
| 1838 | fi |
| 1839 | rm -f conftest* |
| 1840 | |
| 1841 | fi |
| 1842 | |
| 1843 | if test $ac_cv_header_stdc = yes; then |
| 1844 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 1845 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1846 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1847 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1848 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 1849 | #line 1850 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1850 | #include "confdefs.h" |
| 1851 | #include <ctype.h> |
| 1852 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 1853 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1854 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1855 | int main () { int i; for (i = 0; i < 256; i++) |
| 1856 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 1857 | exit (0); } |
| 1858 | |
| 1859 | EOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 1860 | if { (eval echo configure:1861: \"$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] | 1861 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1862 | : |
| 1863 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1864 | echo "configure: failed program was:" >&5 |
| 1865 | cat conftest.$ac_ext >&5 |
| 1866 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1867 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1868 | fi |
| 1869 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1870 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1871 | |
| 1872 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1873 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1874 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1875 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1876 | if test $ac_cv_header_stdc = yes; then |
| 1877 | cat >> confdefs.h <<\EOF |
| 1878 | #define STDC_HEADERS 1 |
| 1879 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1880 | |
| 1881 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1882 | |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 1883 | for ac_hdr in dlfcn.h fcntl.h limits.h langinfo.h locale.h \ |
| 1884 | ncurses.h poll.h pthread.h \ |
Eric S. Raymond | d2d75d3 | 2001-01-16 15:26:34 +0000 | [diff] [blame] | 1885 | 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] | 1886 | 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] | 1887 | 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] | 1888 | 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] | 1889 | ndbm.h db1/ndbm.h gdbm/ndbm.h sys/resource.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1890 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1891 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1892 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 1893 | echo "configure:1894: checking for $ac_hdr" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1894 | 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] | 1895 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1896 | else |
| 1897 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 1898 | #line 1899 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1899 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1900 | #include <$ac_hdr> |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1901 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1902 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 1903 | { (eval echo configure:1904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1904 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1905 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1906 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1907 | eval "ac_cv_header_$ac_safe=yes" |
| 1908 | else |
| 1909 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1910 | echo "configure: failed program was:" >&5 |
| 1911 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1912 | rm -rf conftest* |
| 1913 | eval "ac_cv_header_$ac_safe=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1914 | fi |
| 1915 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1916 | fi |
| 1917 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1918 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1919 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1920 | cat >> confdefs.h <<EOF |
| 1921 | #define $ac_tr_hdr 1 |
| 1922 | EOF |
| 1923 | |
| 1924 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1925 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1926 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1927 | done |
| 1928 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1929 | ac_header_dirent=no |
| 1930 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
| 1931 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1932 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1933 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 1934 | echo "configure:1935: checking for $ac_hdr that defines DIR" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1935 | 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] | 1936 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1937 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1938 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 1939 | #line 1940 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1940 | #include "confdefs.h" |
| 1941 | #include <sys/types.h> |
| 1942 | #include <$ac_hdr> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1943 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1944 | DIR *dirp = 0; |
| 1945 | ; return 0; } |
| 1946 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 1947 | if { (eval echo configure:1948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1948 | rm -rf conftest* |
| 1949 | eval "ac_cv_header_dirent_$ac_safe=yes" |
| 1950 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1951 | echo "configure: failed program was:" >&5 |
| 1952 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1953 | rm -rf conftest* |
| 1954 | eval "ac_cv_header_dirent_$ac_safe=no" |
| 1955 | fi |
| 1956 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1957 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1958 | 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] | 1959 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1960 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1961 | cat >> confdefs.h <<EOF |
| 1962 | #define $ac_tr_hdr 1 |
| 1963 | EOF |
| 1964 | ac_header_dirent=$ac_hdr; break |
| 1965 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1966 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1967 | fi |
| 1968 | done |
| 1969 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 1970 | if test $ac_header_dirent = dirent.h; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1971 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 1972 | echo "configure:1973: checking for opendir in -ldir" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1973 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1974 | 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] | 1975 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1976 | else |
| 1977 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1978 | LIBS="-ldir $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1979 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 1980 | #line 1981 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1981 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1982 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1983 | /* We use char because int might match the return type of a gcc2 |
| 1984 | builtin and then its argument prototype would still apply. */ |
| 1985 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1986 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1987 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1988 | opendir() |
| 1989 | ; return 0; } |
| 1990 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 1991 | if { (eval echo configure:1992: \"$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] | 1992 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1993 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1994 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1995 | echo "configure: failed program was:" >&5 |
| 1996 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1997 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1998 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1999 | fi |
| 2000 | rm -f conftest* |
| 2001 | LIBS="$ac_save_LIBS" |
| 2002 | |
| 2003 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2004 | 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] | 2005 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2006 | LIBS="$LIBS -ldir" |
| 2007 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2008 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2009 | fi |
| 2010 | |
| 2011 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2012 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2013 | echo "configure:2014: checking for opendir in -lx" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2014 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2015 | 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] | 2016 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2017 | else |
| 2018 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2019 | LIBS="-lx $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2020 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2021 | #line 2022 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2022 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2023 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2024 | /* We use char because int might match the return type of a gcc2 |
| 2025 | builtin and then its argument prototype would still apply. */ |
| 2026 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2027 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2028 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2029 | opendir() |
| 2030 | ; return 0; } |
| 2031 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2032 | if { (eval echo configure:2033: \"$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] | 2033 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2034 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2035 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2036 | echo "configure: failed program was:" >&5 |
| 2037 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2038 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2039 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2040 | fi |
| 2041 | rm -f conftest* |
| 2042 | LIBS="$ac_save_LIBS" |
| 2043 | |
| 2044 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2045 | 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] | 2046 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2047 | LIBS="$LIBS -lx" |
| 2048 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2049 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2050 | fi |
| 2051 | |
| 2052 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2053 | |
| 2054 | |
| 2055 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2056 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2057 | echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2058 | echo "configure:2059: checking for clock_t in time.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2059 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2060 | #line 2061 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2061 | #include "confdefs.h" |
| 2062 | #include <time.h> |
| 2063 | EOF |
| 2064 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2065 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2066 | rm -rf conftest* |
| 2067 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2068 | else |
| 2069 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2070 | cat >> confdefs.h <<\EOF |
| 2071 | #define clock_t long |
| 2072 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2073 | |
| 2074 | fi |
| 2075 | rm -f conftest* |
| 2076 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2077 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2078 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2079 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 2080 | cat >> confdefs.h <<\EOF |
| 2081 | #if defined(SCO_DS) |
| 2082 | #undef _OFF_T |
| 2083 | #endif |
| 2084 | EOF |
| 2085 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2086 | # Type availability checks |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2087 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2088 | echo "configure:2089: checking for mode_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2089 | 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] | 2090 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2091 | else |
| 2092 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2093 | #line 2094 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2094 | #include "confdefs.h" |
| 2095 | #include <sys/types.h> |
| 2096 | #if STDC_HEADERS |
| 2097 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2098 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2099 | #endif |
| 2100 | EOF |
| 2101 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2102 | 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] | 2103 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2104 | ac_cv_type_mode_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2105 | else |
| 2106 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2107 | ac_cv_type_mode_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2108 | fi |
| 2109 | rm -f conftest* |
| 2110 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2111 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2112 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
| 2113 | if test $ac_cv_type_mode_t = no; then |
| 2114 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2115 | #define mode_t int |
| 2116 | EOF |
| 2117 | |
| 2118 | fi |
| 2119 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2120 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2121 | echo "configure:2122: checking for off_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2122 | 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] | 2123 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2124 | else |
| 2125 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2126 | #line 2127 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2127 | #include "confdefs.h" |
| 2128 | #include <sys/types.h> |
| 2129 | #if STDC_HEADERS |
| 2130 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2131 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2132 | #endif |
| 2133 | EOF |
| 2134 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2135 | 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] | 2136 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2137 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2138 | else |
| 2139 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2140 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2141 | fi |
| 2142 | rm -f conftest* |
| 2143 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2144 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2145 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
| 2146 | if test $ac_cv_type_off_t = no; then |
| 2147 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2148 | #define off_t long |
| 2149 | EOF |
| 2150 | |
| 2151 | fi |
| 2152 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2153 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2154 | echo "configure:2155: checking for pid_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2155 | 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] | 2156 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2157 | else |
| 2158 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2159 | #line 2160 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2160 | #include "confdefs.h" |
| 2161 | #include <sys/types.h> |
| 2162 | #if STDC_HEADERS |
| 2163 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2164 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2165 | #endif |
| 2166 | EOF |
| 2167 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2168 | 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] | 2169 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2170 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2171 | else |
| 2172 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2173 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2174 | fi |
| 2175 | rm -f conftest* |
| 2176 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2177 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2178 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
| 2179 | if test $ac_cv_type_pid_t = no; then |
| 2180 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2181 | #define pid_t int |
| 2182 | EOF |
| 2183 | |
| 2184 | fi |
| 2185 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2186 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2187 | echo "configure:2188: checking return type of signal handlers" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2188 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2189 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2190 | else |
| 2191 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2192 | #line 2193 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2193 | #include "confdefs.h" |
| 2194 | #include <sys/types.h> |
| 2195 | #include <signal.h> |
| 2196 | #ifdef signal |
| 2197 | #undef signal |
| 2198 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2199 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2200 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 2201 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2202 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2203 | #endif |
| 2204 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2205 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2206 | int i; |
| 2207 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2208 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2209 | if { (eval echo configure:2210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2210 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2211 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2212 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2213 | echo "configure: failed program was:" >&5 |
| 2214 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2215 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2216 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2217 | fi |
| 2218 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2219 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2220 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2221 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2222 | cat >> confdefs.h <<EOF |
| 2223 | #define RETSIGTYPE $ac_cv_type_signal |
| 2224 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2225 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2226 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2227 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2228 | echo "configure:2229: checking for size_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2229 | 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] | 2230 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2231 | else |
| 2232 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2233 | #line 2234 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2234 | #include "confdefs.h" |
| 2235 | #include <sys/types.h> |
| 2236 | #if STDC_HEADERS |
| 2237 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2238 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2239 | #endif |
| 2240 | EOF |
| 2241 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2242 | 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] | 2243 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2244 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2245 | else |
| 2246 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2247 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2248 | fi |
| 2249 | rm -f conftest* |
| 2250 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2251 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2252 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
| 2253 | if test $ac_cv_type_size_t = no; then |
| 2254 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2255 | #define size_t unsigned |
| 2256 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2257 | |
| 2258 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2259 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2260 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2261 | echo "configure:2262: checking for uid_t in sys/types.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2262 | 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] | 2263 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2264 | else |
| 2265 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2266 | #line 2267 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2267 | #include "confdefs.h" |
| 2268 | #include <sys/types.h> |
| 2269 | EOF |
| 2270 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2271 | egrep "uid_t" >/dev/null 2>&1; then |
| 2272 | rm -rf conftest* |
| 2273 | ac_cv_type_uid_t=yes |
| 2274 | else |
| 2275 | rm -rf conftest* |
| 2276 | ac_cv_type_uid_t=no |
| 2277 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2278 | rm -f conftest* |
| 2279 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2280 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2281 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2282 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2283 | if test $ac_cv_type_uid_t = no; then |
| 2284 | cat >> confdefs.h <<\EOF |
| 2285 | #define uid_t int |
| 2286 | EOF |
| 2287 | |
| 2288 | cat >> confdefs.h <<\EOF |
| 2289 | #define gid_t int |
| 2290 | EOF |
| 2291 | |
| 2292 | fi |
| 2293 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2294 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2295 | # Sizes of various common basic types |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2296 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2297 | echo "configure:2298: checking size of int" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2298 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2299 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2300 | else |
| 2301 | if test "$cross_compiling" = yes; then |
| 2302 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2303 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2304 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2305 | #line 2306 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2306 | #include "confdefs.h" |
| 2307 | #include <stdio.h> |
| 2308 | main() |
| 2309 | { |
| 2310 | FILE *f=fopen("conftestval", "w"); |
| 2311 | if (!f) exit(1); |
| 2312 | fprintf(f, "%d\n", sizeof(int)); |
| 2313 | exit(0); |
| 2314 | } |
| 2315 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2316 | if { (eval echo configure:2317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2317 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2318 | ac_cv_sizeof_int=`cat conftestval` |
| 2319 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2320 | echo "configure: failed program was:" >&5 |
| 2321 | cat conftest.$ac_ext >&5 |
| 2322 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2323 | ac_cv_sizeof_int=0 |
| 2324 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2325 | rm -fr conftest* |
| 2326 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2327 | |
| 2328 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2329 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 2330 | cat >> confdefs.h <<EOF |
| 2331 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 2332 | EOF |
| 2333 | |
| 2334 | |
| 2335 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2336 | echo "configure:2337: checking size of long" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2337 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2338 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2339 | else |
| 2340 | if test "$cross_compiling" = yes; then |
| 2341 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2342 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2343 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2344 | #line 2345 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2345 | #include "confdefs.h" |
| 2346 | #include <stdio.h> |
| 2347 | main() |
| 2348 | { |
| 2349 | FILE *f=fopen("conftestval", "w"); |
| 2350 | if (!f) exit(1); |
| 2351 | fprintf(f, "%d\n", sizeof(long)); |
| 2352 | exit(0); |
| 2353 | } |
| 2354 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2355 | if { (eval echo configure:2356: \"$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] | 2356 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2357 | ac_cv_sizeof_long=`cat conftestval` |
| 2358 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2359 | echo "configure: failed program was:" >&5 |
| 2360 | cat conftest.$ac_ext >&5 |
| 2361 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2362 | ac_cv_sizeof_long=0 |
| 2363 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2364 | rm -fr conftest* |
| 2365 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2366 | |
| 2367 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2368 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
| 2369 | cat >> confdefs.h <<EOF |
| 2370 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 2371 | EOF |
| 2372 | |
| 2373 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2374 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2375 | echo "configure:2376: checking size of void *" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2376 | 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] | 2377 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2378 | else |
| 2379 | if test "$cross_compiling" = yes; then |
| 2380 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2381 | else |
| 2382 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2383 | #line 2384 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2384 | #include "confdefs.h" |
| 2385 | #include <stdio.h> |
| 2386 | main() |
| 2387 | { |
| 2388 | FILE *f=fopen("conftestval", "w"); |
| 2389 | if (!f) exit(1); |
| 2390 | fprintf(f, "%d\n", sizeof(void *)); |
| 2391 | exit(0); |
| 2392 | } |
| 2393 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2394 | if { (eval echo configure:2395: \"$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] | 2395 | then |
| 2396 | ac_cv_sizeof_void_p=`cat conftestval` |
| 2397 | else |
| 2398 | echo "configure: failed program was:" >&5 |
| 2399 | cat conftest.$ac_ext >&5 |
| 2400 | rm -fr conftest* |
| 2401 | ac_cv_sizeof_void_p=0 |
| 2402 | fi |
| 2403 | rm -fr conftest* |
| 2404 | fi |
| 2405 | |
| 2406 | fi |
| 2407 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
| 2408 | cat >> confdefs.h <<EOF |
| 2409 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
| 2410 | EOF |
| 2411 | |
| 2412 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2413 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2414 | echo "configure:2415: checking size of char" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2415 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2416 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2417 | else |
| 2418 | if test "$cross_compiling" = yes; then |
| 2419 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2420 | else |
| 2421 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2422 | #line 2423 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2423 | #include "confdefs.h" |
| 2424 | #include <stdio.h> |
| 2425 | main() |
| 2426 | { |
| 2427 | FILE *f=fopen("conftestval", "w"); |
| 2428 | if (!f) exit(1); |
| 2429 | fprintf(f, "%d\n", sizeof(char)); |
| 2430 | exit(0); |
| 2431 | } |
| 2432 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2433 | if { (eval echo configure:2434: \"$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] | 2434 | then |
| 2435 | ac_cv_sizeof_char=`cat conftestval` |
| 2436 | else |
| 2437 | echo "configure: failed program was:" >&5 |
| 2438 | cat conftest.$ac_ext >&5 |
| 2439 | rm -fr conftest* |
| 2440 | ac_cv_sizeof_char=0 |
| 2441 | fi |
| 2442 | rm -fr conftest* |
| 2443 | fi |
| 2444 | |
| 2445 | fi |
| 2446 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
| 2447 | cat >> confdefs.h <<EOF |
| 2448 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
| 2449 | EOF |
| 2450 | |
| 2451 | |
| 2452 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2453 | echo "configure:2454: checking size of short" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2454 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2455 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2456 | else |
| 2457 | if test "$cross_compiling" = yes; then |
| 2458 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2459 | else |
| 2460 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2461 | #line 2462 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2462 | #include "confdefs.h" |
| 2463 | #include <stdio.h> |
| 2464 | main() |
| 2465 | { |
| 2466 | FILE *f=fopen("conftestval", "w"); |
| 2467 | if (!f) exit(1); |
| 2468 | fprintf(f, "%d\n", sizeof(short)); |
| 2469 | exit(0); |
| 2470 | } |
| 2471 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2472 | if { (eval echo configure:2473: \"$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] | 2473 | then |
| 2474 | ac_cv_sizeof_short=`cat conftestval` |
| 2475 | else |
| 2476 | echo "configure: failed program was:" >&5 |
| 2477 | cat conftest.$ac_ext >&5 |
| 2478 | rm -fr conftest* |
| 2479 | ac_cv_sizeof_short=0 |
| 2480 | fi |
| 2481 | rm -fr conftest* |
| 2482 | fi |
| 2483 | |
| 2484 | fi |
| 2485 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
| 2486 | cat >> confdefs.h <<EOF |
| 2487 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 2488 | EOF |
| 2489 | |
| 2490 | |
| 2491 | echo $ac_n "checking size of float""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2492 | echo "configure:2493: checking size of float" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2493 | if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2494 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2495 | else |
| 2496 | if test "$cross_compiling" = yes; then |
| 2497 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2498 | else |
| 2499 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2500 | #line 2501 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2501 | #include "confdefs.h" |
| 2502 | #include <stdio.h> |
| 2503 | main() |
| 2504 | { |
| 2505 | FILE *f=fopen("conftestval", "w"); |
| 2506 | if (!f) exit(1); |
| 2507 | fprintf(f, "%d\n", sizeof(float)); |
| 2508 | exit(0); |
| 2509 | } |
| 2510 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2511 | if { (eval echo configure:2512: \"$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] | 2512 | then |
| 2513 | ac_cv_sizeof_float=`cat conftestval` |
| 2514 | else |
| 2515 | echo "configure: failed program was:" >&5 |
| 2516 | cat conftest.$ac_ext >&5 |
| 2517 | rm -fr conftest* |
| 2518 | ac_cv_sizeof_float=0 |
| 2519 | fi |
| 2520 | rm -fr conftest* |
| 2521 | fi |
| 2522 | |
| 2523 | fi |
| 2524 | echo "$ac_t""$ac_cv_sizeof_float" 1>&6 |
| 2525 | cat >> confdefs.h <<EOF |
| 2526 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
| 2527 | EOF |
| 2528 | |
| 2529 | |
| 2530 | echo $ac_n "checking size of double""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2531 | echo "configure:2532: checking size of double" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2532 | if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2533 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2534 | else |
| 2535 | if test "$cross_compiling" = yes; then |
| 2536 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2537 | else |
| 2538 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2539 | #line 2540 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2540 | #include "confdefs.h" |
| 2541 | #include <stdio.h> |
| 2542 | main() |
| 2543 | { |
| 2544 | FILE *f=fopen("conftestval", "w"); |
| 2545 | if (!f) exit(1); |
| 2546 | fprintf(f, "%d\n", sizeof(double)); |
| 2547 | exit(0); |
| 2548 | } |
| 2549 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2550 | if { (eval echo configure:2551: \"$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] | 2551 | then |
| 2552 | ac_cv_sizeof_double=`cat conftestval` |
| 2553 | else |
| 2554 | echo "configure: failed program was:" >&5 |
| 2555 | cat conftest.$ac_ext >&5 |
| 2556 | rm -fr conftest* |
| 2557 | ac_cv_sizeof_double=0 |
| 2558 | fi |
| 2559 | rm -fr conftest* |
| 2560 | fi |
| 2561 | |
| 2562 | fi |
| 2563 | echo "$ac_t""$ac_cv_sizeof_double" 1>&6 |
| 2564 | cat >> confdefs.h <<EOF |
| 2565 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
| 2566 | EOF |
| 2567 | |
| 2568 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2569 | echo $ac_n "checking size of fpos_t""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2570 | echo "configure:2571: checking size of fpos_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2571 | 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] | 2572 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2573 | else |
| 2574 | if test "$cross_compiling" = yes; then |
| 2575 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2576 | else |
| 2577 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2578 | #line 2579 "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2579 | #include "confdefs.h" |
| 2580 | #include <stdio.h> |
| 2581 | main() |
| 2582 | { |
| 2583 | FILE *f=fopen("conftestval", "w"); |
| 2584 | if (!f) exit(1); |
| 2585 | fprintf(f, "%d\n", sizeof(fpos_t)); |
| 2586 | exit(0); |
| 2587 | } |
| 2588 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2589 | if { (eval echo configure:2590: \"$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] | 2590 | then |
| 2591 | ac_cv_sizeof_fpos_t=`cat conftestval` |
| 2592 | else |
| 2593 | echo "configure: failed program was:" >&5 |
| 2594 | cat conftest.$ac_ext >&5 |
| 2595 | rm -fr conftest* |
| 2596 | ac_cv_sizeof_fpos_t=0 |
| 2597 | fi |
| 2598 | rm -fr conftest* |
| 2599 | fi |
| 2600 | |
| 2601 | fi |
| 2602 | echo "$ac_t""$ac_cv_sizeof_fpos_t" 1>&6 |
| 2603 | cat >> confdefs.h <<EOF |
| 2604 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
| 2605 | EOF |
| 2606 | |
| 2607 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2608 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2609 | echo $ac_n "checking for long long support""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2610 | echo "configure:2611: checking for long long support" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2611 | have_long_long=no |
| 2612 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2613 | #line 2614 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2614 | #include "confdefs.h" |
| 2615 | |
| 2616 | int main() { |
| 2617 | long long x; x = (long long)0; |
| 2618 | ; return 0; } |
| 2619 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2620 | if { (eval echo configure:2621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2621 | rm -rf conftest* |
| 2622 | cat >> confdefs.h <<\EOF |
| 2623 | #define HAVE_LONG_LONG 1 |
| 2624 | EOF |
| 2625 | have_long_long=yes |
| 2626 | else |
| 2627 | echo "configure: failed program was:" >&5 |
| 2628 | cat conftest.$ac_ext >&5 |
| 2629 | fi |
| 2630 | rm -f conftest* |
| 2631 | echo "$ac_t""$have_long_long" 1>&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2632 | if test "$have_long_long" = yes ; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2633 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2634 | echo "configure:2635: checking size of long long" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2635 | 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] | 2636 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2637 | else |
| 2638 | if test "$cross_compiling" = yes; then |
| 2639 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2640 | else |
| 2641 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2642 | #line 2643 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2643 | #include "confdefs.h" |
| 2644 | #include <stdio.h> |
| 2645 | main() |
| 2646 | { |
| 2647 | FILE *f=fopen("conftestval", "w"); |
| 2648 | if (!f) exit(1); |
| 2649 | fprintf(f, "%d\n", sizeof(long long)); |
| 2650 | exit(0); |
| 2651 | } |
| 2652 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2653 | if { (eval echo configure:2654: \"$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] | 2654 | then |
| 2655 | ac_cv_sizeof_long_long=`cat conftestval` |
| 2656 | else |
| 2657 | echo "configure: failed program was:" >&5 |
| 2658 | cat conftest.$ac_ext >&5 |
| 2659 | rm -fr conftest* |
| 2660 | ac_cv_sizeof_long_long=0 |
| 2661 | fi |
| 2662 | rm -fr conftest* |
| 2663 | fi |
| 2664 | |
| 2665 | fi |
| 2666 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
| 2667 | cat >> confdefs.h <<EOF |
| 2668 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 2669 | EOF |
| 2670 | |
| 2671 | |
| 2672 | fi |
| 2673 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2674 | echo $ac_n "checking for uintptr_t support""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2675 | echo "configure:2676: checking for uintptr_t support" >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2676 | have_uintptr_t=no |
| 2677 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2678 | #line 2679 "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2679 | #include "confdefs.h" |
| 2680 | |
| 2681 | int main() { |
| 2682 | uintptr_t x; x = (uintptr_t)0; |
| 2683 | ; return 0; } |
| 2684 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2685 | if { (eval echo configure:2686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2686 | rm -rf conftest* |
| 2687 | cat >> confdefs.h <<\EOF |
| 2688 | #define HAVE_UINTPTR_T 1 |
| 2689 | EOF |
| 2690 | have_uintptr_t=yes |
| 2691 | else |
| 2692 | echo "configure: failed program was:" >&5 |
| 2693 | cat conftest.$ac_ext >&5 |
| 2694 | fi |
| 2695 | rm -f conftest* |
| 2696 | echo "$ac_t""$have_uintptr_t" 1>&6 |
| 2697 | if test "$have_uintptr_t" = yes ; then |
| 2698 | echo $ac_n "checking size of uintptr_t""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2699 | echo "configure:2700: checking size of uintptr_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2700 | if eval "test \"`echo '$''{'ac_cv_sizeof_uintptr_t'+set}'`\" = set"; then |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2701 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2702 | else |
| 2703 | if test "$cross_compiling" = yes; then |
| 2704 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2705 | else |
| 2706 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2707 | #line 2708 "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2708 | #include "confdefs.h" |
| 2709 | #include <stdio.h> |
| 2710 | main() |
| 2711 | { |
| 2712 | FILE *f=fopen("conftestval", "w"); |
| 2713 | if (!f) exit(1); |
| 2714 | fprintf(f, "%d\n", sizeof(uintptr_t)); |
| 2715 | exit(0); |
| 2716 | } |
| 2717 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2718 | if { (eval echo configure:2719: \"$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] | 2719 | then |
| 2720 | ac_cv_sizeof_uintptr_t=`cat conftestval` |
| 2721 | else |
| 2722 | echo "configure: failed program was:" >&5 |
| 2723 | cat conftest.$ac_ext >&5 |
| 2724 | rm -fr conftest* |
| 2725 | ac_cv_sizeof_uintptr_t=0 |
| 2726 | fi |
| 2727 | rm -fr conftest* |
| 2728 | fi |
| 2729 | |
| 2730 | fi |
| 2731 | echo "$ac_t""$ac_cv_sizeof_uintptr_t" 1>&6 |
| 2732 | cat >> confdefs.h <<EOF |
| 2733 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
| 2734 | EOF |
| 2735 | |
| 2736 | |
| 2737 | fi |
| 2738 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2739 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
| 2740 | echo $ac_n "checking size of off_t""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2741 | echo "configure:2742: checking size of off_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2742 | 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] | 2743 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2744 | else |
| 2745 | if test "$cross_compiling" = yes; then |
| 2746 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2747 | else |
| 2748 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2749 | #line 2750 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2750 | #include "confdefs.h" |
| 2751 | #include <stdio.h> |
| 2752 | #include <sys/types.h> |
| 2753 | main() |
| 2754 | { |
| 2755 | FILE *f=fopen("conftestval", "w"); |
| 2756 | if (!f) exit(1); |
| 2757 | fprintf(f, "%d\n", sizeof(off_t)); |
| 2758 | exit(0); |
| 2759 | } |
| 2760 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2761 | if { (eval echo configure:2762: \"$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] | 2762 | then |
| 2763 | ac_cv_sizeof_off_t=`cat conftestval` |
| 2764 | else |
| 2765 | echo "configure: failed program was:" >&5 |
| 2766 | cat conftest.$ac_ext >&5 |
| 2767 | rm -fr conftest* |
| 2768 | ac_cv_sizeof_off_t=0 |
| 2769 | fi |
| 2770 | rm -fr conftest* |
| 2771 | fi |
| 2772 | |
| 2773 | |
| 2774 | fi |
| 2775 | |
| 2776 | echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6 |
| 2777 | cat >> confdefs.h <<EOF |
| 2778 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 2779 | EOF |
| 2780 | |
| 2781 | |
| 2782 | echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2783 | echo "configure:2784: checking whether to enable large file support" >&5 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2784 | if test "$have_long_long" = yes -a \ |
| 2785 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 2786 | "$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] | 2787 | cat >> confdefs.h <<\EOF |
| 2788 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 2789 | EOF |
| 2790 | |
| 2791 | echo "$ac_t""yes" 1>&6 |
| 2792 | else |
| 2793 | echo "$ac_t""no" 1>&6 |
| 2794 | fi |
| 2795 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2796 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
| 2797 | echo $ac_n "checking size of time_t""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2798 | echo "configure:2799: checking size of time_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2799 | 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] | 2800 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2801 | else |
| 2802 | if test "$cross_compiling" = yes; then |
| 2803 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2804 | else |
| 2805 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2806 | #line 2807 "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2807 | #include "confdefs.h" |
| 2808 | #include <stdio.h> |
| 2809 | #include <time.h> |
| 2810 | main() |
| 2811 | { |
| 2812 | FILE *f=fopen("conftestval", "w"); |
| 2813 | if (!f) exit(1); |
| 2814 | fprintf(f, "%d\n", sizeof(time_t)); |
| 2815 | exit(0); |
| 2816 | } |
| 2817 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2818 | if { (eval echo configure:2819: \"$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] | 2819 | then |
| 2820 | ac_cv_sizeof_time_t=`cat conftestval` |
| 2821 | else |
| 2822 | echo "configure: failed program was:" >&5 |
| 2823 | cat conftest.$ac_ext >&5 |
| 2824 | rm -fr conftest* |
| 2825 | ac_cv_sizeof_time_t=0 |
| 2826 | fi |
| 2827 | rm -fr conftest* |
| 2828 | fi |
| 2829 | |
| 2830 | |
| 2831 | fi |
| 2832 | |
| 2833 | echo "$ac_t""$ac_cv_sizeof_time_t" 1>&6 |
| 2834 | cat >> confdefs.h <<EOF |
| 2835 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
| 2836 | EOF |
| 2837 | |
| 2838 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2839 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2840 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 2841 | ac_save_cc="$CC" |
| 2842 | if test "$ac_cv_kpthread" = "yes" |
| 2843 | then CC="$CC -Kpthread" |
| 2844 | fi |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2845 | echo $ac_n "checking for pthread_t""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2846 | echo "configure:2847: checking for pthread_t" >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2847 | have_pthread_t=no |
| 2848 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2849 | #line 2850 "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2850 | #include "confdefs.h" |
| 2851 | #include <pthread.h> |
| 2852 | int main() { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 2853 | pthread_t x; x = *(pthread_t*)0; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2854 | ; return 0; } |
| 2855 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2856 | if { (eval echo configure:2857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2857 | rm -rf conftest* |
| 2858 | have_pthread_t=yes |
| 2859 | else |
| 2860 | echo "configure: failed program was:" >&5 |
| 2861 | cat conftest.$ac_ext >&5 |
| 2862 | fi |
| 2863 | rm -f conftest* |
| 2864 | echo "$ac_t""$have_pthread_t" 1>&6 |
| 2865 | if test "$have_pthread_t" = yes ; then |
| 2866 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
| 2867 | echo $ac_n "checking size of pthread_t""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2868 | echo "configure:2869: checking size of pthread_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2869 | if eval "test \"`echo '$''{'ac_cv_sizeof_pthread_t'+set}'`\" = set"; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2870 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2871 | else |
| 2872 | if test "$cross_compiling" = yes; then |
| 2873 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2874 | else |
| 2875 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2876 | #line 2877 "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2877 | #include "confdefs.h" |
| 2878 | #include <stdio.h> |
| 2879 | #include <pthread.h> |
| 2880 | main() |
| 2881 | { |
| 2882 | FILE *f=fopen("conftestval", "w"); |
| 2883 | if (!f) exit(1); |
| 2884 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 2885 | exit(0); |
| 2886 | } |
| 2887 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2888 | if { (eval echo configure:2889: \"$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] | 2889 | then |
| 2890 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 2891 | else |
| 2892 | echo "configure: failed program was:" >&5 |
| 2893 | cat conftest.$ac_ext >&5 |
| 2894 | rm -fr conftest* |
| 2895 | ac_cv_sizeof_pthread_t=0 |
| 2896 | fi |
| 2897 | rm -fr conftest* |
| 2898 | fi |
| 2899 | |
| 2900 | |
| 2901 | fi |
| 2902 | |
| 2903 | echo "$ac_t""$ac_cv_sizeof_pthread_t" 1>&6 |
| 2904 | cat >> confdefs.h <<EOF |
| 2905 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
| 2906 | EOF |
| 2907 | |
| 2908 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 2909 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2910 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2911 | # Minor variations in building a framework between NextStep versions 4 and 5 |
| 2912 | |
| 2913 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 2914 | Darwin/*) |
| 2915 | ns_undef_sym='_environ' |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 2916 | LIBTOOL_CRUFT="-framework Foundation -framework Carbon -lcc_dynamic -arch_only ppc -U $ns_undef_sym" ;; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2917 | next/4*) |
| 2918 | ns_undef_sym='__environ' |
| 2919 | LIBTOOL_CRUFT="-U $ns_undef_sym" ;; |
| 2920 | next/5*) |
| 2921 | ns_undef_sym='_environ' |
| 2922 | LIBTOOL_CRUFT="-lcc_dynamic -U $ns_undef_sym" ;; |
| 2923 | esac |
| 2924 | |
| 2925 | echo $ac_n "checking for --with-next-framework""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2926 | echo "configure:2927: checking for --with-next-framework" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2927 | if test "$with_next_framework" |
| 2928 | then |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 2929 | OPT="$OPT -fno-common -dynamic" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2930 | # -U __environ is needed since bundles don't have access |
| 2931 | # to crt0 when built but will always be linked against it |
| 2932 | LDFLAGS="$LDFLAGS -Wl,-U,$ns_undef_sym" |
| 2933 | cat >> confdefs.h <<\EOF |
| 2934 | #define WITH_NEXT_FRAMEWORK 1 |
| 2935 | EOF |
| 2936 | |
| 2937 | echo "$ac_t""yes" 1>&6 |
| 2938 | else |
| 2939 | echo "$ac_t""no" 1>&6 |
| 2940 | fi |
| 2941 | |
| 2942 | echo $ac_n "checking for --with-dyld""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2943 | echo "configure:2944: checking for --with-dyld" >&5 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 2944 | case $ac_sys_system/$ac_sys_release in |
| 2945 | Darwin/*) |
| 2946 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2947 | #define WITH_DYLD 1 |
| 2948 | EOF |
| 2949 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 2950 | echo "$ac_t""always on for Darwin" 1>&6 |
| 2951 | ;; |
| 2952 | *) |
| 2953 | if test "$with_next_framework" -o "$with_dyld" |
| 2954 | then |
| 2955 | if test "$with_dyld" |
| 2956 | then |
| 2957 | echo "$ac_t""yes" 1>&6 |
| 2958 | else |
| 2959 | echo "$ac_t""required for framework build" 1>&6 |
| 2960 | fi |
| 2961 | cat >> confdefs.h <<\EOF |
| 2962 | #define WITH_DYLD 1 |
| 2963 | EOF |
| 2964 | |
| 2965 | ns_dyld='set' |
| 2966 | else |
| 2967 | echo "$ac_t""no" 1>&6 |
| 2968 | fi ;; |
| 2969 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2970 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2971 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2972 | |
| 2973 | |
| 2974 | |
| 2975 | |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2976 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2977 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 2978 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2979 | echo $ac_n "checking SO""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2980 | echo "configure:2981: checking SO" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2981 | if test -z "$SO" |
| 2982 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2983 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2984 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 2985 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2986 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2987 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2988 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2989 | echo "$ac_t""$SO" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2990 | # LDSHARED is the ld *command* used to create shared library |
| 2991 | # -- "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] | 2992 | # (Shared libraries in this instance are shared modules to be loaded into |
| 2993 | # Python, as opposed to building Python itself as a shared library.) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2994 | echo $ac_n "checking LDSHARED""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 2995 | echo "configure:2996: checking LDSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2996 | if test -z "$LDSHARED" |
| 2997 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2998 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 2999 | AIX*) |
| 3000 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
| 3001 | LDSHARED="\$(BINLIBDEST)/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/python.exp" |
| 3002 | ;; |
| 3003 | BeOS*) |
| 3004 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
| 3005 | LDSHARED="\$(BINLIBDEST)/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
| 3006 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 3007 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3008 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3009 | SunOS/4*) LDSHARED="ld";; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 3010 | SunOS/5*) |
| 3011 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 3012 | then LDSHARED='$(CC) -shared' |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 3013 | else LDSHARED="ld -G"; |
| 3014 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3015 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3016 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 3017 | DYNIX/ptx*) LDSHARED="ld -G";; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3018 | Darwin/*) |
| 3019 | LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined suppress' |
| 3020 | if test "$with_next_framework" ; then |
| 3021 | LDSHARED="$LDSHARED \$(LDLIBRARY)" |
| 3022 | fi ;; |
| 3023 | next/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3024 | if test "$ns_dyld" |
Guido van Rossum | acb14c7 | 2001-01-10 21:41:16 +0000 | [diff] [blame] | 3025 | then LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined suppress' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3026 | else LDSHARED='$(CC) $(CFLAGS) -nostdlib -r'; |
| 3027 | fi |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 3028 | if test "$with_next_framework" ; then |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3029 | LDSHARED="$LDSHARED \$(LDLIBRARY)" |
| 3030 | fi ;; |
Guido van Rossum | 81652ab | 1996-07-21 02:53:27 +0000 | [diff] [blame] | 3031 | Linux*) LDSHARED="gcc -shared";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 3032 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 3033 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 3034 | OpenBSD*) LDSHARED="ld -Bshareable";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 3035 | NetBSD*) |
| 3036 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 3037 | then |
| 3038 | LDSHARED="cc -shared" |
| 3039 | else |
| 3040 | LDSHARED="ld -Bshareable" |
| 3041 | fi;; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 3042 | FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 3043 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 3044 | then |
| 3045 | LDSHARED="cc -shared ${LDFLAGS}" |
| 3046 | else |
| 3047 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 3048 | fi;; |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 3049 | UnixWare*) |
| 3050 | if test "$GCC" = "yes" |
| 3051 | then LDSHARED="$(CC) -shared" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3052 | else LDSHARED="$(CC) -G" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 3053 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3054 | SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3055 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3056 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3057 | *) LDSHARED="ld";; |
| 3058 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3059 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3060 | echo "$ac_t""$LDSHARED" 1>&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3061 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3062 | # 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] | 3063 | # library (module) -- this is only needed for a few systems |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3064 | echo $ac_n "checking CCSHARED""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3065 | echo "configure:3066: checking CCSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3066 | if test -z "$CCSHARED" |
| 3067 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 3068 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 3069 | SunOS*) if test "$GCC" = yes; |
| 3070 | then CCSHARED="-fPIC"; |
| 3071 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 3072 | hp*|HP*) if test "$GCC" = yes; |
| 3073 | then CCSHARED="-fpic"; |
| 3074 | else CCSHARED="+z"; |
| 3075 | fi;; |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3076 | Linux*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 3077 | BSD/OS*/4*) CCSHARED="-fpic";; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 3078 | OpenBSD*) CCSHARED="-fpic";; |
| 3079 | FreeBSD*|NetBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 3080 | UnixWare*) |
| 3081 | if test "$GCC" = "yes" |
| 3082 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3083 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 3084 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3085 | SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3086 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3087 | IRIX*/6*) case $CC in |
| 3088 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 3089 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3090 | esac;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3091 | CYGWIN*) CCSHARED="-DUSE_DL_IMPORT";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3092 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3093 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3094 | echo "$ac_t""$CCSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3095 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3096 | # the python executable -- this is only needed for a few systems |
| 3097 | echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3098 | echo "configure:3099: checking LINKFORSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3099 | if test -z "$LINKFORSHARED" |
| 3100 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 3101 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3102 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 3103 | hp*|HP*) |
Guido van Rossum | 304dd2d | 1997-10-20 23:10:56 +0000 | [diff] [blame] | 3104 | LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 3105 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 2d9feed | 1997-11-24 17:36:21 +0000 | [diff] [blame] | 3106 | Linux*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3107 | # -u libsys_s pulls in all symbols in libsys |
| 3108 | next/2*|next/3*) LINKFORSHARED="-u libsys_s";; |
| 3109 | # -u __dummy makes the linker aware of the objc runtime |
| 3110 | # in System.framework; otherwise, __objcInit (referenced in |
| 3111 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 3112 | # loading of any modules which reference it in System.framework |
| 3113 | next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;; |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 3114 | Darwin/*) LINKFORSHARED="-u __dummy -u _PyMac_Error -framework System -framework Foundation -framework Carbon" ;; |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3115 | UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3116 | SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 3117 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 3118 | FreeBSD*|NetBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 3119 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 3120 | then |
| 3121 | LINKFORSHARED="-Wl,--export-dynamic" |
| 3122 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3123 | SunOS/5*) case $CC in |
| 3124 | *gcc*) |
Guido van Rossum | ff48418 | 2000-02-03 13:50:24 +0000 | [diff] [blame] | 3125 | if $CC -Xlinker -V 2>&1 | grep BFD >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 3126 | then |
| 3127 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3128 | fi;; |
| 3129 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3130 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3131 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3132 | echo "$ac_t""$LINKFORSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3133 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3134 | |
| 3135 | echo $ac_n "checking CFLAGSFORSHARED""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3136 | echo "configure:3137: checking CFLAGSFORSHARED" >&5 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3137 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 3138 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 3139 | case $ac_sys_system in |
| 3140 | CYGWIN*) |
| 3141 | # Cygwin needs CCSHARED when building extension DLLs |
| 3142 | # but not when building the interpreter DLL. |
| 3143 | CFLAGSFORSHARED='';; |
| 3144 | *) |
| 3145 | CFLAGSFORSHARED='$(CCSHARED)' |
| 3146 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3147 | fi |
| 3148 | echo "$ac_t""$CFLAGSFORSHARED" 1>&6 |
| 3149 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3150 | # checks for libraries |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3151 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3152 | echo "configure:3153: checking for dlopen in -ldl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3153 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3154 | 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] | 3155 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3156 | else |
| 3157 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3158 | LIBS="-ldl $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3159 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3160 | #line 3161 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3161 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3162 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3163 | /* We use char because int might match the return type of a gcc2 |
| 3164 | builtin and then its argument prototype would still apply. */ |
| 3165 | char dlopen(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3166 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3167 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3168 | dlopen() |
| 3169 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3170 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3171 | if { (eval echo configure:3172: \"$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] | 3172 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3173 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3174 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3175 | echo "configure: failed program was:" >&5 |
| 3176 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3177 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3178 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3179 | fi |
| 3180 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3181 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3182 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3183 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3184 | 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] | 3185 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3186 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 3187 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3188 | cat >> confdefs.h <<EOF |
| 3189 | #define $ac_tr_lib 1 |
| 3190 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3191 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3192 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3193 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3194 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3195 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3196 | fi |
| 3197 | # Dynamic linking for SunOS/Solaris and SYSV |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3198 | echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3199 | echo "configure:3200: checking for shl_load in -ldld" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3200 | ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3201 | 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] | 3202 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3203 | else |
| 3204 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3205 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3206 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3207 | #line 3208 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3208 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3209 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3210 | /* We use char because int might match the return type of a gcc2 |
| 3211 | builtin and then its argument prototype would still apply. */ |
| 3212 | char shl_load(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3213 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3214 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3215 | shl_load() |
| 3216 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3217 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3218 | if { (eval echo configure:3219: \"$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] | 3219 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3220 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3221 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3222 | echo "configure: failed program was:" >&5 |
| 3223 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3224 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3225 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3226 | fi |
| 3227 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3228 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3229 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3230 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3231 | 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] | 3232 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3233 | ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 3234 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3235 | cat >> confdefs.h <<EOF |
| 3236 | #define $ac_tr_lib 1 |
| 3237 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3238 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3239 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3240 | |
| 3241 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3242 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3243 | fi |
| 3244 | # Dynamic linking for HP-UX |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3245 | |
| 3246 | # checks for system dependent C++ extensions support |
| 3247 | case "$ac_sys_system" in |
| 3248 | AIX*) echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3249 | echo "configure:3250: checking for genuine AIX C++ extensions support" >&5 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3250 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3251 | #line 3252 "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3252 | #include "confdefs.h" |
| 3253 | #include "/usr/lpp/xlC/include/load.h" |
| 3254 | int main() { |
| 3255 | loadAndInit("", 0, "") |
| 3256 | ; return 0; } |
| 3257 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3258 | if { (eval echo configure:3259: \"$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] | 3259 | rm -rf conftest* |
| 3260 | cat >> confdefs.h <<\EOF |
| 3261 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 3262 | EOF |
| 3263 | |
| 3264 | echo "$ac_t""yes" 1>&6 |
| 3265 | else |
| 3266 | echo "configure: failed program was:" >&5 |
| 3267 | cat conftest.$ac_ext >&5 |
| 3268 | rm -rf conftest* |
| 3269 | echo "$ac_t""no" 1>&6 |
| 3270 | fi |
| 3271 | rm -f conftest*;; |
| 3272 | *) ;; |
| 3273 | esac |
| 3274 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 3275 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| 3276 | # However on SGI IRIX, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3277 | # BeOS' sockets are stashed in libnet. |
| 3278 | case "$ac_sys_system" in |
| 3279 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3280 | *) |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3281 | echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3282 | echo "configure:3283: checking for t_open in -lnsl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3283 | ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3284 | 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] | 3285 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3286 | else |
| 3287 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3288 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3289 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3290 | #line 3291 "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3291 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3292 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3293 | /* We use char because int might match the return type of a gcc2 |
| 3294 | builtin and then its argument prototype would still apply. */ |
| 3295 | char t_open(); |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3296 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3297 | int main() { |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 3298 | t_open() |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3299 | ; return 0; } |
| 3300 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3301 | if { (eval echo configure:3302: \"$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] | 3302 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3303 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3304 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3305 | echo "configure: failed program was:" >&5 |
| 3306 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3307 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3308 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3309 | fi |
| 3310 | rm -f conftest* |
| 3311 | LIBS="$ac_save_LIBS" |
| 3312 | |
| 3313 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3314 | 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] | 3315 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3316 | LIBS="-lnsl $LIBS" |
| 3317 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3318 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3319 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 3320 | # SVR4 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3321 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3322 | echo "configure:3323: checking for socket in -lsocket" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3323 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3324 | 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] | 3325 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3326 | else |
| 3327 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3328 | LIBS="-lsocket $LIBS $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3329 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3330 | #line 3331 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3331 | #include "confdefs.h" |
| 3332 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3333 | /* We use char because int might match the return type of a gcc2 |
| 3334 | builtin and then its argument prototype would still apply. */ |
| 3335 | char socket(); |
| 3336 | |
| 3337 | int main() { |
| 3338 | socket() |
| 3339 | ; return 0; } |
| 3340 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3341 | if { (eval echo configure:3342: \"$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] | 3342 | rm -rf conftest* |
| 3343 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3344 | else |
| 3345 | echo "configure: failed program was:" >&5 |
| 3346 | cat conftest.$ac_ext >&5 |
| 3347 | rm -rf conftest* |
| 3348 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3349 | fi |
| 3350 | rm -f conftest* |
| 3351 | LIBS="$ac_save_LIBS" |
| 3352 | |
| 3353 | fi |
| 3354 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3355 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3356 | LIBS="-lsocket $LIBS" |
| 3357 | else |
| 3358 | echo "$ac_t""no" 1>&6 |
| 3359 | fi |
| 3360 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3361 | ;; |
| 3362 | esac |
| 3363 | case "$ac_sys_system" in |
| 3364 | BeOS*) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3365 | echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3366 | echo "configure:3367: checking for socket in -lnet" >&5 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3367 | ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3368 | 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] | 3369 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3370 | else |
| 3371 | ac_save_LIBS="$LIBS" |
| 3372 | LIBS="-lnet $LIBS $LIBS" |
| 3373 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3374 | #line 3375 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3375 | #include "confdefs.h" |
| 3376 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3377 | /* We use char because int might match the return type of a gcc2 |
| 3378 | builtin and then its argument prototype would still apply. */ |
| 3379 | char socket(); |
| 3380 | |
| 3381 | int main() { |
| 3382 | socket() |
| 3383 | ; return 0; } |
| 3384 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3385 | if { (eval echo configure:3386: \"$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] | 3386 | rm -rf conftest* |
| 3387 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3388 | else |
| 3389 | echo "configure: failed program was:" >&5 |
| 3390 | cat conftest.$ac_ext >&5 |
| 3391 | rm -rf conftest* |
| 3392 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3393 | fi |
| 3394 | rm -f conftest* |
| 3395 | LIBS="$ac_save_LIBS" |
| 3396 | |
| 3397 | fi |
| 3398 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3399 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3400 | LIBS="-lnet $LIBS" |
| 3401 | else |
| 3402 | echo "$ac_t""no" 1>&6 |
| 3403 | fi |
| 3404 | # BeOS |
| 3405 | ;; |
| 3406 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 3407 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3408 | echo $ac_n "checking for --with-libs""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3409 | echo "configure:3410: checking for --with-libs" >&5 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3410 | # Check whether --with-libs or --without-libs was given. |
| 3411 | if test "${with_libs+set}" = set; then |
| 3412 | withval="$with_libs" |
| 3413 | |
| 3414 | echo "$ac_t""$withval" 1>&6 |
| 3415 | LIBS="$withval $LIBS" |
| 3416 | |
| 3417 | else |
| 3418 | echo "$ac_t""no" 1>&6 |
| 3419 | fi |
| 3420 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3421 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3422 | # Determine if signalmodule should be used. |
| 3423 | |
| 3424 | |
| 3425 | echo $ac_n "checking for --with-signal-module""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3426 | echo "configure:3427: checking for --with-signal-module" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3427 | # Check whether --with-signal-module or --without-signal-module was given. |
| 3428 | if test "${with_signal_module+set}" = set; then |
| 3429 | withval="$with_signal_module" |
| 3430 | : |
| 3431 | fi |
| 3432 | |
| 3433 | |
| 3434 | if test -z "$with_signal_module" |
| 3435 | then with_signal_module="yes" |
| 3436 | fi |
| 3437 | echo "$ac_t""$with_signal_module" 1>&6 |
| 3438 | |
| 3439 | if test "${with_signal_module}" = "yes"; then |
| 3440 | USE_SIGNAL_MODULE="" |
| 3441 | SIGNAL_OBJS="" |
| 3442 | else |
| 3443 | USE_SIGNAL_MODULE="#" |
| 3444 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 3445 | fi |
| 3446 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 3447 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 3448 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3449 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 3450 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3451 | echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3452 | echo "configure:3453: checking for --with-dec-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3453 | |
| 3454 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 3455 | if test "${with_dec_threads+set}" = set; then |
| 3456 | withval="$with_dec_threads" |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3457 | |
| 3458 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3459 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3460 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3461 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3462 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3463 | else |
| 3464 | echo "$ac_t""no" 1>&6 |
| 3465 | fi |
| 3466 | |
| 3467 | |
| 3468 | echo $ac_n "checking for --with-threads""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3469 | echo "configure:3470: checking for --with-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3470 | # Check whether --with-threads or --without-threads was given. |
| 3471 | if test "${with_threads+set}" = set; then |
| 3472 | withval="$with_threads" |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3473 | : |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3474 | fi |
| 3475 | |
| 3476 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3477 | # --with-thread is deprecated, but check for it anyway |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3478 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3479 | if test "${with_thread+set}" = set; then |
| 3480 | withval="$with_thread" |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3481 | |
| 3482 | with_threads=$with_thread |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3483 | fi |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3484 | |
| 3485 | |
| 3486 | if test -z "$with_threads" |
| 3487 | then with_threads="yes" |
| 3488 | fi |
| 3489 | echo "$ac_t""$with_threads" 1>&6 |
| 3490 | |
| 3491 | if test "$with_threads" = "no" |
| 3492 | then |
| 3493 | USE_THREAD_MODULE="#" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3494 | elif test "$ac_cv_kpthread" = "yes" |
| 3495 | then |
| 3496 | CC="$CC -Kpthread" |
| 3497 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3498 | #define WITH_THREAD 1 |
| 3499 | EOF |
| 3500 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3501 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3502 | #define _POSIX_THREADS 1 |
| 3503 | EOF |
| 3504 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3505 | LIBOBJS="$LIBOBJS thread.o" |
| 3506 | else |
| 3507 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 3508 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 3509 | fi |
| 3510 | if test ! -z "$withval" -a -d "$withval" |
| 3511 | then LDFLAGS="$LDFLAGS -L$withval" |
| 3512 | fi |
| 3513 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 3514 | #define _REENTRANT 1 |
| 3515 | EOF |
| 3516 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3517 | ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3518 | echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3519 | echo "configure:3520: checking for mach/cthreads.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3520 | 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] | 3521 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3522 | else |
| 3523 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3524 | #line 3525 "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3525 | #include "confdefs.h" |
| 3526 | #include <mach/cthreads.h> |
| 3527 | EOF |
| 3528 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3529 | { (eval echo configure:3530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3530 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3531 | if test -z "$ac_err"; then |
| 3532 | rm -rf conftest* |
| 3533 | eval "ac_cv_header_$ac_safe=yes" |
| 3534 | else |
| 3535 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3536 | echo "configure: failed program was:" >&5 |
| 3537 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3538 | rm -rf conftest* |
| 3539 | eval "ac_cv_header_$ac_safe=no" |
| 3540 | fi |
| 3541 | rm -f conftest* |
| 3542 | fi |
| 3543 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3544 | echo "$ac_t""yes" 1>&6 |
| 3545 | cat >> confdefs.h <<\EOF |
| 3546 | #define WITH_THREAD 1 |
| 3547 | EOF |
| 3548 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3549 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3550 | #define C_THREADS 1 |
| 3551 | EOF |
| 3552 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3553 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3554 | else |
| 3555 | echo "$ac_t""no" 1>&6 |
| 3556 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3557 | echo $ac_n "checking for --with-pth""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3558 | echo "configure:3559: checking for --with-pth" >&5 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3559 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3560 | if test "${with_pth+set}" = set; then |
| 3561 | withval="$with_pth" |
| 3562 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3563 | echo "$ac_t""$withval" 1>&6 |
| 3564 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3565 | #define WITH_THREAD 1 |
| 3566 | EOF |
| 3567 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3568 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3569 | #define HAVE_PTH 1 |
| 3570 | EOF |
| 3571 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3572 | LIBS="-lpth $LIBS" |
| 3573 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3574 | else |
| 3575 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3576 | echo "$ac_t""no" 1>&6 |
| 3577 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3578 | echo "configure:3579: checking for pthread_create in -lpthread" >&5 |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3579 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3580 | 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] | 3581 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3582 | else |
| 3583 | ac_save_LIBS="$LIBS" |
| 3584 | LIBS="-lpthread $LIBS" |
| 3585 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3586 | #line 3587 "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3587 | #include "confdefs.h" |
| 3588 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3589 | /* We use char because int might match the return type of a gcc2 |
| 3590 | builtin and then its argument prototype would still apply. */ |
| 3591 | char pthread_create(); |
| 3592 | |
| 3593 | int main() { |
| 3594 | pthread_create() |
| 3595 | ; return 0; } |
| 3596 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3597 | if { (eval echo configure:3598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3598 | rm -rf conftest* |
| 3599 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3600 | else |
| 3601 | echo "configure: failed program was:" >&5 |
| 3602 | cat conftest.$ac_ext >&5 |
| 3603 | rm -rf conftest* |
| 3604 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3605 | fi |
| 3606 | rm -f conftest* |
| 3607 | LIBS="$ac_save_LIBS" |
| 3608 | |
| 3609 | fi |
| 3610 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3611 | echo "$ac_t""yes" 1>&6 |
| 3612 | cat >> confdefs.h <<\EOF |
| 3613 | #define WITH_THREAD 1 |
| 3614 | EOF |
| 3615 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3616 | case $ac_sys_system in |
| 3617 | Darwin*) ;; |
| 3618 | *) cat >> confdefs.h <<\EOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3619 | #define _POSIX_THREADS 1 |
| 3620 | EOF |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3621 | ;; |
| 3622 | esac |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3623 | LIBS="-lpthread $LIBS" |
| 3624 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3625 | else |
| 3626 | echo "$ac_t""no" 1>&6 |
| 3627 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3628 | echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3629 | echo "configure:3630: checking for pthread_detach" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3630 | 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] | 3631 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3632 | else |
| 3633 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3634 | #line 3635 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3635 | #include "confdefs.h" |
| 3636 | /* System header to define __stub macros and hopefully few prototypes, |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3637 | which can conflict with char pthread_detach(); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3638 | #include <assert.h> |
| 3639 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3640 | /* We use char because int might match the return type of a gcc2 |
| 3641 | builtin and then its argument prototype would still apply. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3642 | char pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3643 | |
| 3644 | int main() { |
| 3645 | |
| 3646 | /* The GNU C library defines this for functions which it implements |
| 3647 | to always fail with ENOSYS. Some functions are actually named |
| 3648 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3649 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3650 | choke me |
| 3651 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3652 | pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3653 | #endif |
| 3654 | |
| 3655 | ; return 0; } |
| 3656 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3657 | if { (eval echo configure:3658: \"$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] | 3658 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3659 | eval "ac_cv_func_pthread_detach=yes" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3660 | else |
| 3661 | echo "configure: failed program was:" >&5 |
| 3662 | cat conftest.$ac_ext >&5 |
| 3663 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3664 | eval "ac_cv_func_pthread_detach=no" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3665 | fi |
| 3666 | rm -f conftest* |
| 3667 | fi |
| 3668 | |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3669 | if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3670 | echo "$ac_t""yes" 1>&6 |
| 3671 | cat >> confdefs.h <<\EOF |
| 3672 | #define WITH_THREAD 1 |
| 3673 | EOF |
| 3674 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3675 | case $ac_sys_system in |
| 3676 | Darwin*) ;; |
| 3677 | *) cat >> confdefs.h <<\EOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3678 | #define _POSIX_THREADS 1 |
| 3679 | EOF |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3680 | ;; |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3681 | esac |
| 3682 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3683 | else |
| 3684 | echo "$ac_t""no" 1>&6 |
| 3685 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3686 | ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3687 | echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3688 | echo "configure:3689: checking for kernel/OS.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3689 | 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] | 3690 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3691 | else |
| 3692 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3693 | #line 3694 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3694 | #include "confdefs.h" |
| 3695 | #include <kernel/OS.h> |
| 3696 | EOF |
| 3697 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3698 | { (eval echo configure:3699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3699 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3700 | if test -z "$ac_err"; then |
| 3701 | rm -rf conftest* |
| 3702 | eval "ac_cv_header_$ac_safe=yes" |
| 3703 | else |
| 3704 | echo "$ac_err" >&5 |
| 3705 | echo "configure: failed program was:" >&5 |
| 3706 | cat conftest.$ac_ext >&5 |
| 3707 | rm -rf conftest* |
| 3708 | eval "ac_cv_header_$ac_safe=no" |
| 3709 | fi |
| 3710 | rm -f conftest* |
| 3711 | fi |
| 3712 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3713 | echo "$ac_t""yes" 1>&6 |
| 3714 | cat >> confdefs.h <<\EOF |
| 3715 | #define WITH_THREAD 1 |
| 3716 | EOF |
| 3717 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3718 | cat >> confdefs.h <<\EOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3719 | #define BEOS_THREADS 1 |
| 3720 | EOF |
| 3721 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3722 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3723 | else |
| 3724 | echo "$ac_t""no" 1>&6 |
| 3725 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3726 | echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3727 | echo "configure:3728: checking for pthread_create in -lpthreads" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3728 | ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3729 | 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] | 3730 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3731 | else |
| 3732 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3733 | LIBS="-lpthreads $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3734 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3735 | #line 3736 "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3736 | #include "confdefs.h" |
| 3737 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3738 | /* We use char because int might match the return type of a gcc2 |
| 3739 | builtin and then its argument prototype would still apply. */ |
| 3740 | char pthread_create(); |
| 3741 | |
| 3742 | int main() { |
| 3743 | pthread_create() |
| 3744 | ; return 0; } |
| 3745 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3746 | if { (eval echo configure:3747: \"$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] | 3747 | rm -rf conftest* |
| 3748 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3749 | else |
| 3750 | echo "configure: failed program was:" >&5 |
| 3751 | cat conftest.$ac_ext >&5 |
| 3752 | rm -rf conftest* |
| 3753 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3754 | fi |
| 3755 | rm -f conftest* |
| 3756 | LIBS="$ac_save_LIBS" |
| 3757 | |
| 3758 | fi |
| 3759 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3760 | echo "$ac_t""yes" 1>&6 |
| 3761 | cat >> confdefs.h <<\EOF |
| 3762 | #define WITH_THREAD 1 |
| 3763 | EOF |
| 3764 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3765 | cat >> confdefs.h <<\EOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3766 | #define _POSIX_THREADS 1 |
| 3767 | EOF |
| 3768 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3769 | LIBS="$LIBS -lpthreads" |
| 3770 | LIBOBJS="$LIBOBJS thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3771 | else |
| 3772 | echo "$ac_t""no" 1>&6 |
| 3773 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3774 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3775 | echo "configure:3776: checking for pthread_create in -lc_r" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3776 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3777 | 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] | 3778 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3779 | else |
| 3780 | ac_save_LIBS="$LIBS" |
| 3781 | LIBS="-lc_r $LIBS" |
| 3782 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3783 | #line 3784 "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3784 | #include "confdefs.h" |
| 3785 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3786 | /* We use char because int might match the return type of a gcc2 |
| 3787 | builtin and then its argument prototype would still apply. */ |
| 3788 | char pthread_create(); |
| 3789 | |
| 3790 | int main() { |
| 3791 | pthread_create() |
| 3792 | ; return 0; } |
| 3793 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3794 | if { (eval echo configure:3795: \"$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] | 3795 | rm -rf conftest* |
| 3796 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3797 | else |
| 3798 | echo "configure: failed program was:" >&5 |
| 3799 | cat conftest.$ac_ext >&5 |
| 3800 | rm -rf conftest* |
| 3801 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3802 | fi |
| 3803 | rm -f conftest* |
| 3804 | LIBS="$ac_save_LIBS" |
| 3805 | |
| 3806 | fi |
| 3807 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3808 | echo "$ac_t""yes" 1>&6 |
| 3809 | cat >> confdefs.h <<\EOF |
| 3810 | #define WITH_THREAD 1 |
| 3811 | EOF |
| 3812 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3813 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3814 | #define _POSIX_THREADS 1 |
| 3815 | EOF |
| 3816 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3817 | LIBS="$LIBS -lc_r" |
| 3818 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3819 | else |
| 3820 | echo "$ac_t""no" 1>&6 |
| 3821 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3822 | echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3823 | echo "configure:3824: checking for __d6_pthread_create in -lthread" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3824 | ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3825 | 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] | 3826 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3827 | else |
| 3828 | ac_save_LIBS="$LIBS" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3829 | LIBS="-lthread $LIBS" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3830 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3831 | #line 3832 "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3832 | #include "confdefs.h" |
| 3833 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3834 | /* We use char because int might match the return type of a gcc2 |
| 3835 | builtin and then its argument prototype would still apply. */ |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3836 | char __d6_pthread_create(); |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3837 | |
| 3838 | int main() { |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3839 | __d6_pthread_create() |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3840 | ; return 0; } |
| 3841 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3842 | if { (eval echo configure:3843: \"$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] | 3843 | rm -rf conftest* |
| 3844 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3845 | else |
| 3846 | echo "configure: failed program was:" >&5 |
| 3847 | cat conftest.$ac_ext >&5 |
| 3848 | rm -rf conftest* |
| 3849 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3850 | fi |
| 3851 | rm -f conftest* |
| 3852 | LIBS="$ac_save_LIBS" |
| 3853 | |
| 3854 | fi |
| 3855 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3856 | echo "$ac_t""yes" 1>&6 |
| 3857 | cat >> confdefs.h <<\EOF |
| 3858 | #define WITH_THREAD 1 |
| 3859 | EOF |
| 3860 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3861 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3862 | #define _POSIX_THREADS 1 |
| 3863 | EOF |
| 3864 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3865 | LIBS="$LIBS -lthread" |
| 3866 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3867 | else |
| 3868 | echo "$ac_t""no" 1>&6 |
| 3869 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3870 | echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3871 | echo "configure:3872: checking for __pthread_create_system in -lpthread" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3872 | ac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'` |
| 3873 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3874 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3875 | else |
| 3876 | ac_save_LIBS="$LIBS" |
| 3877 | LIBS="-lpthread $LIBS" |
| 3878 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3879 | #line 3880 "configure" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3880 | #include "confdefs.h" |
| 3881 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3882 | /* We use char because int might match the return type of a gcc2 |
| 3883 | builtin and then its argument prototype would still apply. */ |
| 3884 | char __pthread_create_system(); |
| 3885 | |
| 3886 | int main() { |
| 3887 | __pthread_create_system() |
| 3888 | ; return 0; } |
| 3889 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3890 | if { (eval echo configure:3891: \"$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] | 3891 | rm -rf conftest* |
| 3892 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3893 | else |
| 3894 | echo "configure: failed program was:" >&5 |
| 3895 | cat conftest.$ac_ext >&5 |
| 3896 | rm -rf conftest* |
| 3897 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3898 | fi |
| 3899 | rm -f conftest* |
| 3900 | LIBS="$ac_save_LIBS" |
| 3901 | |
| 3902 | fi |
| 3903 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3904 | echo "$ac_t""yes" 1>&6 |
| 3905 | cat >> confdefs.h <<\EOF |
| 3906 | #define WITH_THREAD 1 |
| 3907 | EOF |
| 3908 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3909 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3910 | #define _POSIX_THREADS 1 |
| 3911 | EOF |
| 3912 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3913 | LIBS="$LIBS -lpthread" |
| 3914 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3915 | else |
| 3916 | echo "$ac_t""no" 1>&6 |
| 3917 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3918 | echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3919 | echo "configure:3920: checking for pthread_create in -lcma" >&5 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3920 | ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3921 | 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] | 3922 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3923 | else |
| 3924 | ac_save_LIBS="$LIBS" |
| 3925 | LIBS="-lcma $LIBS" |
| 3926 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3927 | #line 3928 "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3928 | #include "confdefs.h" |
| 3929 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3930 | /* We use char because int might match the return type of a gcc2 |
| 3931 | builtin and then its argument prototype would still apply. */ |
| 3932 | char pthread_create(); |
| 3933 | |
| 3934 | int main() { |
| 3935 | pthread_create() |
| 3936 | ; return 0; } |
| 3937 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3938 | if { (eval echo configure:3939: \"$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] | 3939 | rm -rf conftest* |
| 3940 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3941 | else |
| 3942 | echo "configure: failed program was:" >&5 |
| 3943 | cat conftest.$ac_ext >&5 |
| 3944 | rm -rf conftest* |
| 3945 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3946 | fi |
| 3947 | rm -f conftest* |
| 3948 | LIBS="$ac_save_LIBS" |
| 3949 | |
| 3950 | fi |
| 3951 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3952 | echo "$ac_t""yes" 1>&6 |
| 3953 | cat >> confdefs.h <<\EOF |
| 3954 | #define WITH_THREAD 1 |
| 3955 | EOF |
| 3956 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3957 | cat >> confdefs.h <<\EOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3958 | #define _POSIX_THREADS 1 |
| 3959 | EOF |
| 3960 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3961 | LIBS="$LIBS -lcma" |
| 3962 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3963 | else |
| 3964 | echo "$ac_t""no" 1>&6 |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 3965 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3966 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 3967 | fi |
| 3968 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3969 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3970 | fi |
| 3971 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3972 | fi |
| 3973 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3974 | fi |
| 3975 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3976 | fi |
| 3977 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3978 | fi |
| 3979 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3980 | fi |
| 3981 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3982 | fi |
| 3983 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3984 | fi |
| 3985 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3986 | fi |
| 3987 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3988 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3989 | echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3990 | echo "configure:3991: checking for usconfig in -lmpc" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3991 | ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3992 | 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] | 3993 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3994 | else |
| 3995 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3996 | LIBS="-lmpc $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3997 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 3998 | #line 3999 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3999 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4000 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4001 | /* We use char because int might match the return type of a gcc2 |
| 4002 | builtin and then its argument prototype would still apply. */ |
| 4003 | char usconfig(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4004 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4005 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4006 | usconfig() |
| 4007 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4008 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4009 | if { (eval echo configure:4010: \"$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] | 4010 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4011 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4012 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4013 | echo "configure: failed program was:" >&5 |
| 4014 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4015 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4016 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4017 | fi |
| 4018 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4019 | LIBS="$ac_save_LIBS" |
| 4020 | |
| 4021 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4022 | 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] | 4023 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4024 | cat >> confdefs.h <<\EOF |
| 4025 | #define WITH_THREAD 1 |
| 4026 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4027 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4028 | LIBS="$LIBS -lmpc" |
| 4029 | LIBOBJS="$LIBOBJS thread.o" |
| 4030 | USE_THREAD_MODULE="" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4031 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4032 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4033 | fi |
| 4034 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4035 | echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4036 | echo "configure:4037: checking for thr_create in -lthread" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4037 | ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4038 | 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] | 4039 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4040 | else |
| 4041 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4042 | LIBS="-lthread $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4043 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4044 | #line 4045 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4045 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4046 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4047 | /* We use char because int might match the return type of a gcc2 |
| 4048 | builtin and then its argument prototype would still apply. */ |
| 4049 | char thr_create(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4050 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4051 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4052 | thr_create() |
| 4053 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4054 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4055 | if { (eval echo configure:4056: \"$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] | 4056 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4057 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4058 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4059 | echo "configure: failed program was:" >&5 |
| 4060 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4061 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4062 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4063 | fi |
| 4064 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4065 | LIBS="$ac_save_LIBS" |
| 4066 | |
| 4067 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4068 | 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] | 4069 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4070 | cat >> confdefs.h <<\EOF |
| 4071 | #define WITH_THREAD 1 |
| 4072 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4073 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4074 | LIBS="$LIBS -lthread" |
| 4075 | LIBOBJS="$LIBOBJS thread.o" |
| 4076 | USE_THREAD_MODULE="" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4077 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4078 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4079 | fi |
| 4080 | |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 4081 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4082 | if test "$USE_THREAD_MODULE" != "#" |
| 4083 | then |
| 4084 | # If the above checks didn't disable threads, (at least) OSF1 |
| 4085 | # needs this '-threads' argument during linking. |
| 4086 | case $ac_sys_system in |
| 4087 | OSF1) LDLAST=-threads;; |
| 4088 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 4089 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4090 | fi |
| 4091 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4092 | # Check for enable-ipv6 |
| 4093 | echo $ac_n "checking whether to enable ipv6""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4094 | echo "configure:4095: checking whether to enable ipv6" >&5 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4095 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 4096 | if test "${enable_ipv6+set}" = set; then |
| 4097 | enableval="$enable_ipv6" |
| 4098 | case "$enableval" in |
| 4099 | no) |
| 4100 | echo "$ac_t""no" 1>&6 |
| 4101 | ipv6=no |
| 4102 | ;; |
| 4103 | *) echo "$ac_t""yes" 1>&6 |
| 4104 | cat >> confdefs.h <<\EOF |
| 4105 | #define ENABLE_IPV6 1 |
| 4106 | EOF |
| 4107 | |
| 4108 | ipv6=yes |
| 4109 | ;; |
| 4110 | esac |
| 4111 | else |
| 4112 | if test "$cross_compiling" = yes; then |
| 4113 | echo "$ac_t""no" 1>&6 |
| 4114 | ipv6=no |
| 4115 | |
| 4116 | else |
| 4117 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4118 | #line 4119 "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4119 | #include "confdefs.h" |
| 4120 | /* AF_INET6 available check */ |
| 4121 | #include <sys/types.h> |
| 4122 | #include <sys/socket.h> |
| 4123 | main() |
| 4124 | { |
| 4125 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 4126 | exit(1); |
| 4127 | else |
| 4128 | exit(0); |
| 4129 | } |
| 4130 | |
| 4131 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4132 | if { (eval echo configure:4133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4133 | then |
| 4134 | echo "$ac_t""yes" 1>&6 |
| 4135 | cat >> confdefs.h <<\EOF |
| 4136 | #define ENABLE_IPV6 1 |
| 4137 | EOF |
| 4138 | |
| 4139 | ipv6=yes |
| 4140 | else |
| 4141 | echo "configure: failed program was:" >&5 |
| 4142 | cat conftest.$ac_ext >&5 |
| 4143 | rm -fr conftest* |
| 4144 | echo "$ac_t""no" 1>&6 |
| 4145 | ipv6=no |
| 4146 | fi |
| 4147 | rm -fr conftest* |
| 4148 | fi |
| 4149 | |
| 4150 | fi |
| 4151 | |
| 4152 | |
| 4153 | ipv6type=unknown |
| 4154 | ipv6lib=none |
| 4155 | ipv6trylibc=no |
| 4156 | |
| 4157 | if test "$ipv6" = "yes"; then |
| 4158 | echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4159 | echo "configure:4160: checking ipv6 stack type" >&5 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4160 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; do |
| 4161 | case $i in |
| 4162 | inria) |
| 4163 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4164 | #line 4165 "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4165 | #include "confdefs.h" |
| 4166 | dnl |
| 4167 | #include <netinet/in.h> |
| 4168 | #ifdef IPV6_INRIA_VERSION |
| 4169 | yes |
| 4170 | #endif |
| 4171 | EOF |
| 4172 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4173 | egrep "yes" >/dev/null 2>&1; then |
| 4174 | rm -rf conftest* |
| 4175 | ipv6type=$i; |
| 4176 | OPT="-DINET6 $OPT" |
| 4177 | fi |
| 4178 | rm -f conftest* |
| 4179 | |
| 4180 | ;; |
| 4181 | kame) |
| 4182 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4183 | #line 4184 "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4184 | #include "confdefs.h" |
| 4185 | dnl |
| 4186 | #include <netinet/in.h> |
| 4187 | #ifdef __KAME__ |
| 4188 | yes |
| 4189 | #endif |
| 4190 | EOF |
| 4191 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4192 | egrep "yes" >/dev/null 2>&1; then |
| 4193 | rm -rf conftest* |
| 4194 | ipv6type=$i; |
| 4195 | ipv6lib=inet6 |
| 4196 | ipv6libdir=/usr/local/v6/lib |
| 4197 | ipv6trylibc=yes |
| 4198 | OPT="-DINET6 $OPT" |
| 4199 | fi |
| 4200 | rm -f conftest* |
| 4201 | |
| 4202 | ;; |
| 4203 | linux-glibc) |
| 4204 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4205 | #line 4206 "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4206 | #include "confdefs.h" |
| 4207 | dnl |
| 4208 | #include <features.h> |
| 4209 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 4210 | yes |
| 4211 | #endif |
| 4212 | EOF |
| 4213 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4214 | egrep "yes" >/dev/null 2>&1; then |
| 4215 | rm -rf conftest* |
| 4216 | ipv6type=$i; |
| 4217 | ipv6trylibc=yes |
| 4218 | OPT="-DINET6 $OPT" |
| 4219 | fi |
| 4220 | rm -f conftest* |
| 4221 | |
| 4222 | ;; |
| 4223 | linux-inet6) |
| 4224 | if test -d /usr/inet6; then |
| 4225 | ipv6type=$i |
| 4226 | ipv6lib=inet6 |
| 4227 | ipv6libdir=/usr/inet6/lib |
| 4228 | OPT="-DINET6 -I/usr/inet6/include $OPT" |
| 4229 | fi |
| 4230 | ;; |
| 4231 | solaris) |
| 4232 | if test -f /etc/netconfig; then |
| 4233 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 4234 | ipv6type=$i |
| 4235 | ipv6trylibc=yes |
| 4236 | OPT="-DINET6 $OPT" |
| 4237 | fi |
| 4238 | fi |
| 4239 | ;; |
| 4240 | toshiba) |
| 4241 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4242 | #line 4243 "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4243 | #include "confdefs.h" |
| 4244 | dnl |
| 4245 | #include <sys/param.h> |
| 4246 | #ifdef _TOSHIBA_INET6 |
| 4247 | yes |
| 4248 | #endif |
| 4249 | EOF |
| 4250 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4251 | egrep "yes" >/dev/null 2>&1; then |
| 4252 | rm -rf conftest* |
| 4253 | ipv6type=$i; |
| 4254 | ipv6lib=inet6; |
| 4255 | ipv6libdir=/usr/local/v6/lib; |
| 4256 | OPT="-DINET6 $OPT" |
| 4257 | fi |
| 4258 | rm -f conftest* |
| 4259 | |
| 4260 | ;; |
| 4261 | v6d) |
| 4262 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4263 | #line 4264 "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4264 | #include "confdefs.h" |
| 4265 | dnl |
| 4266 | #include </usr/local/v6/include/sys/v6config.h> |
| 4267 | #ifdef __V6D__ |
| 4268 | yes |
| 4269 | #endif |
| 4270 | EOF |
| 4271 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4272 | egrep "yes" >/dev/null 2>&1; then |
| 4273 | rm -rf conftest* |
| 4274 | ipv6type=$i; |
| 4275 | ipv6lib=v6; |
| 4276 | ipv6libdir=/usr/local/v6/lib; |
| 4277 | OPT="-I/usr/local/v6/include $OPT" |
| 4278 | fi |
| 4279 | rm -f conftest* |
| 4280 | |
| 4281 | ;; |
| 4282 | zeta) |
| 4283 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4284 | #line 4285 "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4285 | #include "confdefs.h" |
| 4286 | dnl |
| 4287 | #include <sys/param.h> |
| 4288 | #ifdef _ZETA_MINAMI_INET6 |
| 4289 | yes |
| 4290 | #endif |
| 4291 | EOF |
| 4292 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4293 | egrep "yes" >/dev/null 2>&1; then |
| 4294 | rm -rf conftest* |
| 4295 | ipv6type=$i; |
| 4296 | ipv6lib=inet6; |
| 4297 | ipv6libdir=/usr/local/v6/lib; |
| 4298 | OPT="-DINET6 $OPT" |
| 4299 | fi |
| 4300 | rm -f conftest* |
| 4301 | |
| 4302 | ;; |
| 4303 | esac |
| 4304 | if test "$ipv6type" != "unknown"; then |
| 4305 | break |
| 4306 | fi |
| 4307 | done |
| 4308 | echo "$ac_t""$ipv6type" 1>&6 |
| 4309 | fi |
| 4310 | |
| 4311 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 4312 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 4313 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 4314 | echo "using lib$ipv6lib" |
| 4315 | else |
| 4316 | if test $ipv6trylibc = "yes"; then |
| 4317 | echo "using libc" |
| 4318 | else |
| 4319 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 4320 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 4321 | echo 'ipv6 kit and compile beforehand.' |
| 4322 | exit 1 |
| 4323 | fi |
| 4324 | fi |
| 4325 | fi |
| 4326 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4327 | # Check for GC support |
| 4328 | |
| 4329 | USE_GC_MODULE="" |
| 4330 | echo $ac_n "checking for --with-cycle-gc""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4331 | echo "configure:4332: checking for --with-cycle-gc" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4332 | # Check whether --with-cycle-gc or --without-cycle-gc was given. |
| 4333 | if test "${with_cycle_gc+set}" = set; then |
| 4334 | withval="$with_cycle_gc" |
| 4335 | : |
| 4336 | fi |
| 4337 | |
| 4338 | |
| 4339 | if test -z "$with_cycle_gc" |
| 4340 | then with_cycle_gc="yes" |
| 4341 | fi |
| 4342 | if test "$with_cycle_gc" = "no" |
| 4343 | then |
| 4344 | USE_GC_MODULE="#" |
| 4345 | else |
| 4346 | cat >> confdefs.h <<\EOF |
| 4347 | #define WITH_CYCLE_GC 1 |
| 4348 | EOF |
| 4349 | |
| 4350 | fi |
| 4351 | echo "$ac_t""$with_cycle_gc" 1>&6 |
| 4352 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4353 | # Check for Python-specific malloc support |
| 4354 | echo $ac_n "checking for --with-pymalloc""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4355 | echo "configure:4356: checking for --with-pymalloc" >&5 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4356 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 4357 | if test "${with_pymalloc+set}" = set; then |
| 4358 | withval="$with_pymalloc" |
| 4359 | |
| 4360 | if test "$withval" != no |
| 4361 | then cat >> confdefs.h <<\EOF |
| 4362 | #define WITH_PYMALLOC 1 |
| 4363 | EOF |
| 4364 | echo "$ac_t""yes" 1>&6 |
| 4365 | else echo "$ac_t""no" 1>&6 |
| 4366 | fi |
| 4367 | else |
| 4368 | echo "$ac_t""no" 1>&6 |
| 4369 | fi |
| 4370 | |
| 4371 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4372 | # Check for --with-wctype-functions |
| 4373 | echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4374 | echo "configure:4375: checking for --with-wctype-functions" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4375 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 4376 | if test "${with_wctype_functions+set}" = set; then |
| 4377 | withval="$with_wctype_functions" |
| 4378 | |
| 4379 | if test "$withval" != no |
| 4380 | then cat >> confdefs.h <<\EOF |
| 4381 | #define WANT_WCTYPE_FUNCTIONS 1 |
| 4382 | EOF |
| 4383 | echo "$ac_t""yes" 1>&6 |
| 4384 | else echo "$ac_t""no" 1>&6 |
| 4385 | fi |
| 4386 | else |
| 4387 | echo "$ac_t""no" 1>&6 |
| 4388 | fi |
| 4389 | |
| 4390 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4391 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4392 | |
| 4393 | DLINCLDIR=/ |
| 4394 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4395 | echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4396 | echo "configure:4397: checking for --with-sgi-dl" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4397 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4398 | if test "${with_sgi_dl+set}" = set; then |
| 4399 | withval="$with_sgi_dl" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4400 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4401 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4402 | cat >> confdefs.h <<\EOF |
| 4403 | #define WITH_SGI_DL 1 |
| 4404 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4405 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4406 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4407 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 4408 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4409 | then LDFLAGS="$LDFLAGS -L$dldir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4410 | 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] | 4411 | fi |
| 4412 | DLINCLDIR=${dldir} |
| 4413 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4414 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4415 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4416 | fi |
| 4417 | |
| 4418 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4419 | echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4420 | echo "configure:4421: checking for --with-dl-dld" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4421 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4422 | if test "${with_dl_dld+set}" = set; then |
| 4423 | withval="$with_dl_dld" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4424 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4425 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4426 | cat >> confdefs.h <<\EOF |
| 4427 | #define WITH_DL_DLD 1 |
| 4428 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4429 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4430 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4431 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 4432 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 4433 | 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] | 4434 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4435 | 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] | 4436 | fi |
| 4437 | DLINCLDIR=${dldir} |
| 4438 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4439 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4440 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4441 | fi |
| 4442 | |
| 4443 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4444 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 4445 | # 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] | 4446 | for ac_func in dlopen |
| 4447 | do |
| 4448 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4449 | echo "configure:4450: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4450 | 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] | 4451 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4452 | else |
| 4453 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4454 | #line 4455 "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4455 | #include "confdefs.h" |
| 4456 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4457 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4458 | #include <assert.h> |
| 4459 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4460 | /* We use char because int might match the return type of a gcc2 |
| 4461 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4462 | char $ac_func(); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4463 | |
| 4464 | int main() { |
| 4465 | |
| 4466 | /* The GNU C library defines this for functions which it implements |
| 4467 | to always fail with ENOSYS. Some functions are actually named |
| 4468 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4469 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4470 | choke me |
| 4471 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4472 | $ac_func(); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4473 | #endif |
| 4474 | |
| 4475 | ; return 0; } |
| 4476 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4477 | if { (eval echo configure:4478: \"$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] | 4478 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4479 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4480 | else |
| 4481 | echo "configure: failed program was:" >&5 |
| 4482 | cat conftest.$ac_ext >&5 |
| 4483 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4484 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4485 | fi |
| 4486 | rm -f conftest* |
| 4487 | fi |
| 4488 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4489 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4490 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4491 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4492 | cat >> confdefs.h <<EOF |
| 4493 | #define $ac_tr_func 1 |
| 4494 | EOF |
| 4495 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4496 | else |
| 4497 | echo "$ac_t""no" 1>&6 |
| 4498 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4499 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4500 | |
| 4501 | |
| 4502 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 4503 | # loading of modules. |
| 4504 | |
| 4505 | echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4506 | echo "configure:4507: checking DYNLOADFILE" >&5 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4507 | if test -z "$DYNLOADFILE" |
| 4508 | then |
| 4509 | case $ac_sys_system/$ac_sys_release in |
| 4510 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 4511 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 4512 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 4513 | Darwin/*|next/*) DYNLOADFILE="dynload_next.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4514 | *) |
| 4515 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 4516 | # out any dynamic loading |
| 4517 | if test "$ac_cv_func_dlopen" = yes |
| 4518 | then DYNLOADFILE="dynload_shlib.o" |
| 4519 | else DYNLOADFILE="dynload_stub.o" |
| 4520 | fi |
| 4521 | ;; |
| 4522 | esac |
| 4523 | fi |
| 4524 | echo "$ac_t""$DYNLOADFILE" 1>&6 |
| 4525 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 4526 | then |
| 4527 | cat >> confdefs.h <<\EOF |
| 4528 | #define HAVE_DYNAMIC_LOADING 1 |
| 4529 | EOF |
| 4530 | |
| 4531 | fi |
| 4532 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 4533 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 4534 | |
| 4535 | |
| 4536 | echo $ac_n "checking MACHDEP_OBJS""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4537 | echo "configure:4538: checking MACHDEP_OBJS" >&5 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 4538 | if test -z "$MACHDEP_OBJS" |
| 4539 | then |
| 4540 | case $ac_sys_system/$ac_sys_release in |
| 4541 | Darwin/*) |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 4542 | MACHDEP_OBJS="Python/mactoolboxglue.o" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 4543 | cat >> confdefs.h <<\EOF |
| 4544 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
| 4545 | EOF |
| 4546 | |
| 4547 | ;; |
| 4548 | *) MACHDEP_OBJS="";; |
| 4549 | esac |
| 4550 | fi |
| 4551 | echo "$ac_t""$DYNLOADFILE" 1>&6 |
| 4552 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4553 | # checks for library functions |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4554 | for ac_func in alarm chown clock confstr ctermid ctermid_r execv \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4555 | flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Andrew M. Kuchling | a9586c7 | 2001-01-08 17:58:56 +0000 | [diff] [blame] | 4556 | getgroups getlogin getpeername getpid getpwent getwd \ |
Martin v. Löwis | 864e9ff | 2001-08-04 22:32:03 +0000 | [diff] [blame] | 4557 | hstrerror inet_pton kill link lstat mkfifo mktime mremap \ |
Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame] | 4558 | nice pathconf pause plock poll pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4559 | putenv readlink \ |
Andrew M. Kuchling | 8d2f2b2 | 2000-07-13 01:26:58 +0000 | [diff] [blame] | 4560 | select setegid seteuid setgid \ |
Martin v. Löwis | 791bfda | 2001-07-24 06:33:08 +0000 | [diff] [blame] | 4561 | setlocale setregid setreuid setsid setpgid setuid setvbuf snprintf \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4562 | sigaction siginterrupt sigrelse strftime strptime symlink sysconf \ |
Fred Drake | 89143df | 1999-12-09 22:03:25 +0000 | [diff] [blame] | 4563 | tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Thomas Wouters | c2c12dc | 2001-07-11 14:45:34 +0000 | [diff] [blame] | 4564 | truncate uname waitpid _getpty getpriority |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4565 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4566 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4567 | echo "configure:4568: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4568 | 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] | 4569 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4570 | else |
| 4571 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4572 | #line 4573 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4573 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4574 | /* System header to define __stub macros and hopefully few prototypes, |
| 4575 | which can conflict with char $ac_func(); below. */ |
| 4576 | #include <assert.h> |
| 4577 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4578 | /* We use char because int might match the return type of a gcc2 |
| 4579 | builtin and then its argument prototype would still apply. */ |
| 4580 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4581 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4582 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4583 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4584 | /* The GNU C library defines this for functions which it implements |
| 4585 | to always fail with ENOSYS. Some functions are actually named |
| 4586 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4587 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4588 | choke me |
| 4589 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4590 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4591 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4592 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4593 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4594 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4595 | if { (eval echo configure:4596: \"$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] | 4596 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4597 | eval "ac_cv_func_$ac_func=yes" |
| 4598 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4599 | echo "configure: failed program was:" >&5 |
| 4600 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4601 | rm -rf conftest* |
| 4602 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4603 | fi |
| 4604 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4605 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4606 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4607 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4608 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4609 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4610 | cat >> confdefs.h <<EOF |
| 4611 | #define $ac_tr_func 1 |
| 4612 | EOF |
| 4613 | |
| 4614 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4615 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4616 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4617 | done |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4618 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4619 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4620 | # check for openpty and forkpty |
| 4621 | |
| 4622 | for ac_func in openpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4623 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4624 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4625 | echo "configure:4626: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4626 | 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] | 4627 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4628 | else |
| 4629 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4630 | #line 4631 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4631 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4632 | /* System header to define __stub macros and hopefully few prototypes, |
| 4633 | which can conflict with char $ac_func(); below. */ |
| 4634 | #include <assert.h> |
| 4635 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4636 | /* We use char because int might match the return type of a gcc2 |
| 4637 | builtin and then its argument prototype would still apply. */ |
| 4638 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4639 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4640 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4641 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4642 | /* The GNU C library defines this for functions which it implements |
| 4643 | to always fail with ENOSYS. Some functions are actually named |
| 4644 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4645 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4646 | choke me |
| 4647 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4648 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4649 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4650 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4651 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4652 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4653 | if { (eval echo configure:4654: \"$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] | 4654 | rm -rf conftest* |
| 4655 | eval "ac_cv_func_$ac_func=yes" |
| 4656 | else |
| 4657 | echo "configure: failed program was:" >&5 |
| 4658 | cat conftest.$ac_ext >&5 |
| 4659 | rm -rf conftest* |
| 4660 | eval "ac_cv_func_$ac_func=no" |
| 4661 | fi |
| 4662 | rm -f conftest* |
| 4663 | fi |
| 4664 | |
| 4665 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4666 | echo "$ac_t""yes" 1>&6 |
| 4667 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4668 | cat >> confdefs.h <<EOF |
| 4669 | #define $ac_tr_func 1 |
| 4670 | EOF |
| 4671 | |
| 4672 | else |
| 4673 | echo "$ac_t""no" 1>&6 |
| 4674 | echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4675 | echo "configure:4676: checking for openpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4676 | ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4677 | 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] | 4678 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4679 | else |
| 4680 | ac_save_LIBS="$LIBS" |
| 4681 | LIBS="-lutil $LIBS" |
| 4682 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4683 | #line 4684 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4684 | #include "confdefs.h" |
| 4685 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4686 | /* We use char because int might match the return type of a gcc2 |
| 4687 | builtin and then its argument prototype would still apply. */ |
| 4688 | char openpty(); |
| 4689 | |
| 4690 | int main() { |
| 4691 | openpty() |
| 4692 | ; return 0; } |
| 4693 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4694 | if { (eval echo configure:4695: \"$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] | 4695 | rm -rf conftest* |
| 4696 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4697 | else |
| 4698 | echo "configure: failed program was:" >&5 |
| 4699 | cat conftest.$ac_ext >&5 |
| 4700 | rm -rf conftest* |
| 4701 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4702 | fi |
| 4703 | rm -f conftest* |
| 4704 | LIBS="$ac_save_LIBS" |
| 4705 | |
| 4706 | fi |
| 4707 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4708 | echo "$ac_t""yes" 1>&6 |
| 4709 | cat >> confdefs.h <<\EOF |
| 4710 | #define HAVE_OPENPTY 1 |
| 4711 | EOF |
| 4712 | LIBS="$LIBS -lutil" |
| 4713 | else |
| 4714 | echo "$ac_t""no" 1>&6 |
| 4715 | fi |
| 4716 | |
| 4717 | fi |
| 4718 | done |
| 4719 | |
| 4720 | for ac_func in forkpty |
| 4721 | do |
| 4722 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4723 | echo "configure:4724: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4724 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4725 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4726 | else |
| 4727 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4728 | #line 4729 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4729 | #include "confdefs.h" |
| 4730 | /* System header to define __stub macros and hopefully few prototypes, |
| 4731 | which can conflict with char $ac_func(); below. */ |
| 4732 | #include <assert.h> |
| 4733 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4734 | /* We use char because int might match the return type of a gcc2 |
| 4735 | builtin and then its argument prototype would still apply. */ |
| 4736 | char $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4737 | |
| 4738 | int main() { |
| 4739 | |
| 4740 | /* The GNU C library defines this for functions which it implements |
| 4741 | to always fail with ENOSYS. Some functions are actually named |
| 4742 | something starting with __ and the normal name is an alias. */ |
| 4743 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4744 | choke me |
| 4745 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4746 | $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4747 | #endif |
| 4748 | |
| 4749 | ; return 0; } |
| 4750 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4751 | if { (eval echo configure:4752: \"$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] | 4752 | rm -rf conftest* |
| 4753 | eval "ac_cv_func_$ac_func=yes" |
| 4754 | else |
| 4755 | echo "configure: failed program was:" >&5 |
| 4756 | cat conftest.$ac_ext >&5 |
| 4757 | rm -rf conftest* |
| 4758 | eval "ac_cv_func_$ac_func=no" |
| 4759 | fi |
| 4760 | rm -f conftest* |
| 4761 | fi |
| 4762 | |
| 4763 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4764 | echo "$ac_t""yes" 1>&6 |
| 4765 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4766 | cat >> confdefs.h <<EOF |
| 4767 | #define $ac_tr_func 1 |
| 4768 | EOF |
| 4769 | |
| 4770 | else |
| 4771 | echo "$ac_t""no" 1>&6 |
| 4772 | echo $ac_n "checking for forkpty in -lutil""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4773 | echo "configure:4774: checking for forkpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4774 | ac_lib_var=`echo util'_'forkpty | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4775 | 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] | 4776 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4777 | else |
| 4778 | ac_save_LIBS="$LIBS" |
| 4779 | LIBS="-lutil $LIBS" |
| 4780 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4781 | #line 4782 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4782 | #include "confdefs.h" |
| 4783 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4784 | /* We use char because int might match the return type of a gcc2 |
| 4785 | builtin and then its argument prototype would still apply. */ |
| 4786 | char forkpty(); |
| 4787 | |
| 4788 | int main() { |
| 4789 | forkpty() |
| 4790 | ; return 0; } |
| 4791 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4792 | if { (eval echo configure:4793: \"$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] | 4793 | rm -rf conftest* |
| 4794 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4795 | else |
| 4796 | echo "configure: failed program was:" >&5 |
| 4797 | cat conftest.$ac_ext >&5 |
| 4798 | rm -rf conftest* |
| 4799 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4800 | fi |
| 4801 | rm -f conftest* |
| 4802 | LIBS="$ac_save_LIBS" |
| 4803 | |
| 4804 | fi |
| 4805 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4806 | echo "$ac_t""yes" 1>&6 |
| 4807 | cat >> confdefs.h <<\EOF |
| 4808 | #define HAVE_FORKPTY 1 |
| 4809 | EOF |
| 4810 | LIBS="$LIBS -lutil" |
| 4811 | else |
| 4812 | echo "$ac_t""no" 1>&6 |
| 4813 | fi |
| 4814 | |
| 4815 | fi |
| 4816 | done |
| 4817 | |
| 4818 | |
| 4819 | # check for long file support functions |
| 4820 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 4821 | do |
| 4822 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4823 | echo "configure:4824: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4824 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4825 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4826 | else |
| 4827 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4828 | #line 4829 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4829 | #include "confdefs.h" |
| 4830 | /* System header to define __stub macros and hopefully few prototypes, |
| 4831 | which can conflict with char $ac_func(); below. */ |
| 4832 | #include <assert.h> |
| 4833 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4834 | /* We use char because int might match the return type of a gcc2 |
| 4835 | builtin and then its argument prototype would still apply. */ |
| 4836 | char $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4837 | |
| 4838 | int main() { |
| 4839 | |
| 4840 | /* The GNU C library defines this for functions which it implements |
| 4841 | to always fail with ENOSYS. Some functions are actually named |
| 4842 | something starting with __ and the normal name is an alias. */ |
| 4843 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4844 | choke me |
| 4845 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4846 | $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4847 | #endif |
| 4848 | |
| 4849 | ; return 0; } |
| 4850 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4851 | if { (eval echo configure:4852: \"$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] | 4852 | rm -rf conftest* |
| 4853 | eval "ac_cv_func_$ac_func=yes" |
| 4854 | else |
| 4855 | echo "configure: failed program was:" >&5 |
| 4856 | cat conftest.$ac_ext >&5 |
| 4857 | rm -rf conftest* |
| 4858 | eval "ac_cv_func_$ac_func=no" |
| 4859 | fi |
| 4860 | rm -f conftest* |
| 4861 | fi |
| 4862 | |
| 4863 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4864 | echo "$ac_t""yes" 1>&6 |
| 4865 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4866 | cat >> confdefs.h <<EOF |
| 4867 | #define $ac_tr_func 1 |
| 4868 | EOF |
| 4869 | |
| 4870 | else |
| 4871 | echo "$ac_t""no" 1>&6 |
| 4872 | fi |
| 4873 | done |
| 4874 | |
| 4875 | |
| 4876 | for ac_func in dup2 getcwd strdup strerror memmove |
| 4877 | do |
| 4878 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4879 | echo "configure:4880: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4880 | 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] | 4881 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4882 | else |
| 4883 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4884 | #line 4885 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4885 | #include "confdefs.h" |
| 4886 | /* System header to define __stub macros and hopefully few prototypes, |
| 4887 | which can conflict with char $ac_func(); below. */ |
| 4888 | #include <assert.h> |
| 4889 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4890 | /* We use char because int might match the return type of a gcc2 |
| 4891 | builtin and then its argument prototype would still apply. */ |
| 4892 | char $ac_func(); |
| 4893 | |
| 4894 | int main() { |
| 4895 | |
| 4896 | /* The GNU C library defines this for functions which it implements |
| 4897 | to always fail with ENOSYS. Some functions are actually named |
| 4898 | something starting with __ and the normal name is an alias. */ |
| 4899 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4900 | choke me |
| 4901 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4902 | $ac_func(); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4903 | #endif |
| 4904 | |
| 4905 | ; return 0; } |
| 4906 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4907 | if { (eval echo configure:4908: \"$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] | 4908 | rm -rf conftest* |
| 4909 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4910 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4911 | echo "configure: failed program was:" >&5 |
| 4912 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4913 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4914 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4915 | fi |
| 4916 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4917 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4918 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4919 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4920 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4921 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4922 | cat >> confdefs.h <<EOF |
| 4923 | #define $ac_tr_func 1 |
| 4924 | EOF |
| 4925 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4926 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4927 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4928 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4929 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4930 | done |
| 4931 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4932 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4933 | for ac_func in getpgrp |
| 4934 | do |
| 4935 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4936 | echo "configure:4937: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4937 | 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] | 4938 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4939 | else |
| 4940 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4941 | #line 4942 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4942 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4943 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4944 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4945 | #include <assert.h> |
| 4946 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4947 | /* We use char because int might match the return type of a gcc2 |
| 4948 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4949 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4950 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4951 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4952 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4953 | /* The GNU C library defines this for functions which it implements |
| 4954 | to always fail with ENOSYS. Some functions are actually named |
| 4955 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4956 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4957 | choke me |
| 4958 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4959 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4960 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4961 | |
| 4962 | ; return 0; } |
| 4963 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4964 | if { (eval echo configure:4965: \"$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] | 4965 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4966 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4967 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4968 | echo "configure: failed program was:" >&5 |
| 4969 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4970 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4971 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4972 | fi |
| 4973 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4974 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4975 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4976 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4977 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4978 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4979 | cat >> confdefs.h <<EOF |
| 4980 | #define $ac_tr_func 1 |
| 4981 | EOF |
| 4982 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4983 | #line 4984 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4984 | #include "confdefs.h" |
| 4985 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4986 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4987 | getpgrp(0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4988 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4989 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 4990 | if { (eval echo configure:4991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4991 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4992 | cat >> confdefs.h <<\EOF |
| 4993 | #define GETPGRP_HAVE_ARG 1 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4994 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4995 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4996 | else |
| 4997 | echo "configure: failed program was:" >&5 |
| 4998 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4999 | fi |
| 5000 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5001 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5002 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5003 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5004 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5005 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5006 | for ac_func in setpgrp |
| 5007 | do |
| 5008 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5009 | echo "configure:5010: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5010 | 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] | 5011 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5012 | else |
| 5013 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5014 | #line 5015 "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5015 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5016 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5017 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5018 | #include <assert.h> |
| 5019 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5020 | /* We use char because int might match the return type of a gcc2 |
| 5021 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5022 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5023 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5024 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5025 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5026 | /* The GNU C library defines this for functions which it implements |
| 5027 | to always fail with ENOSYS. Some functions are actually named |
| 5028 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5029 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5030 | choke me |
| 5031 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5032 | $ac_func(); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5033 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5034 | |
| 5035 | ; return 0; } |
| 5036 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5037 | if { (eval echo configure:5038: \"$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] | 5038 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5039 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5040 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5041 | echo "configure: failed program was:" >&5 |
| 5042 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5043 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5044 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5045 | fi |
| 5046 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5047 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5048 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5049 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5050 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5051 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5052 | cat >> confdefs.h <<EOF |
| 5053 | #define $ac_tr_func 1 |
| 5054 | EOF |
| 5055 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5056 | #line 5057 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5057 | #include "confdefs.h" |
| 5058 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5059 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5060 | setpgrp(0,0); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5061 | ; return 0; } |
| 5062 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5063 | if { (eval echo configure:5064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5064 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5065 | cat >> confdefs.h <<\EOF |
| 5066 | #define SETPGRP_HAVE_ARG 1 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5067 | EOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5068 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5069 | else |
| 5070 | echo "configure: failed program was:" >&5 |
| 5071 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5072 | fi |
| 5073 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5074 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5075 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5076 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5077 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5078 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5079 | for ac_func in gettimeofday |
| 5080 | do |
| 5081 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5082 | echo "configure:5083: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5083 | 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] | 5084 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5085 | else |
| 5086 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5087 | #line 5088 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5088 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5089 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5090 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5091 | #include <assert.h> |
| 5092 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5093 | /* We use char because int might match the return type of a gcc2 |
| 5094 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5095 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5096 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5097 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5098 | |
| 5099 | /* The GNU C library defines this for functions which it implements |
| 5100 | to always fail with ENOSYS. Some functions are actually named |
| 5101 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5102 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5103 | choke me |
| 5104 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5105 | $ac_func(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5106 | #endif |
| 5107 | |
| 5108 | ; return 0; } |
| 5109 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5110 | if { (eval echo configure:5111: \"$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] | 5111 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5112 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5113 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5114 | echo "configure: failed program was:" >&5 |
| 5115 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5116 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5117 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5118 | fi |
| 5119 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5120 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5121 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5122 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5123 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5124 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5125 | cat >> confdefs.h <<EOF |
| 5126 | #define $ac_tr_func 1 |
| 5127 | EOF |
| 5128 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5129 | #line 5130 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5130 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5131 | #include <sys/time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5132 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5133 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
| 5134 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5135 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5136 | if { (eval echo configure:5137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5137 | : |
| 5138 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5139 | echo "configure: failed program was:" >&5 |
| 5140 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5141 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5142 | cat >> confdefs.h <<\EOF |
| 5143 | #define GETTIMEOFDAY_NO_TZ 1 |
| 5144 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5145 | |
| 5146 | fi |
| 5147 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5148 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5149 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5150 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5151 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5152 | |
| 5153 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5154 | for ac_func in getaddrinfo |
| 5155 | do |
| 5156 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5157 | echo "configure:5158: checking for $ac_func" >&5 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5158 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 5159 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5160 | else |
| 5161 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5162 | #line 5163 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5163 | #include "confdefs.h" |
| 5164 | /* System header to define __stub macros and hopefully few prototypes, |
| 5165 | which can conflict with char $ac_func(); below. */ |
| 5166 | #include <assert.h> |
| 5167 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5168 | /* We use char because int might match the return type of a gcc2 |
| 5169 | builtin and then its argument prototype would still apply. */ |
| 5170 | char $ac_func(); |
| 5171 | |
| 5172 | int main() { |
| 5173 | |
| 5174 | /* The GNU C library defines this for functions which it implements |
| 5175 | to always fail with ENOSYS. Some functions are actually named |
| 5176 | something starting with __ and the normal name is an alias. */ |
| 5177 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5178 | choke me |
| 5179 | #else |
| 5180 | $ac_func(); |
| 5181 | #endif |
| 5182 | |
| 5183 | ; return 0; } |
| 5184 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5185 | if { (eval echo configure:5186: \"$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] | 5186 | rm -rf conftest* |
| 5187 | eval "ac_cv_func_$ac_func=yes" |
| 5188 | else |
| 5189 | echo "configure: failed program was:" >&5 |
| 5190 | cat conftest.$ac_ext >&5 |
| 5191 | rm -rf conftest* |
| 5192 | eval "ac_cv_func_$ac_func=no" |
| 5193 | fi |
| 5194 | rm -f conftest* |
| 5195 | fi |
| 5196 | |
| 5197 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5198 | echo "$ac_t""yes" 1>&6 |
| 5199 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5200 | cat >> confdefs.h <<EOF |
| 5201 | #define $ac_tr_func 1 |
| 5202 | EOF |
| 5203 | echo $ac_n "checking getaddrinfo bug""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5204 | echo "configure:5205: checking getaddrinfo bug" >&5 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5205 | if test "$cross_compiling" = yes; then |
| 5206 | echo "$ac_t""buggy" 1>&6 |
| 5207 | buggygetaddrinfo=yes |
| 5208 | else |
| 5209 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5210 | #line 5211 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5211 | #include "confdefs.h" |
| 5212 | |
| 5213 | #include <sys/types.h> |
| 5214 | #include <netdb.h> |
| 5215 | #include <string.h> |
| 5216 | #include <sys/socket.h> |
| 5217 | #include <netinet/in.h> |
| 5218 | |
| 5219 | main() |
| 5220 | { |
| 5221 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 5222 | struct addrinfo hints, *ai, *aitop; |
| 5223 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 5224 | |
| 5225 | for (passive = 0; passive <= 1; passive++) { |
| 5226 | memset(&hints, 0, sizeof(hints)); |
| 5227 | hints.ai_family = AF_UNSPEC; |
| 5228 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 5229 | hints.ai_socktype = SOCK_STREAM; |
| 5230 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 5231 | (void)gai_strerror(gaierr); |
| 5232 | goto bad; |
| 5233 | } |
| 5234 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 5235 | if (ai->ai_addr == NULL || |
| 5236 | ai->ai_addrlen == 0 || |
| 5237 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 5238 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 5239 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 5240 | goto bad; |
| 5241 | } |
| 5242 | switch (ai->ai_family) { |
| 5243 | case AF_INET: |
| 5244 | if (strcmp(strport, "54321") != 0) { |
| 5245 | goto bad; |
| 5246 | } |
| 5247 | if (passive) { |
| 5248 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 5249 | goto bad; |
| 5250 | } |
| 5251 | } else { |
| 5252 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 5253 | goto bad; |
| 5254 | } |
| 5255 | } |
| 5256 | inet4++; |
| 5257 | break; |
| 5258 | case AF_INET6: |
| 5259 | if (strcmp(strport, "54321") != 0) { |
| 5260 | goto bad; |
| 5261 | } |
| 5262 | if (passive) { |
| 5263 | if (strcmp(straddr, "::") != 0) { |
| 5264 | goto bad; |
| 5265 | } |
| 5266 | } else { |
| 5267 | if (strcmp(straddr, "::1") != 0) { |
| 5268 | goto bad; |
| 5269 | } |
| 5270 | } |
| 5271 | inet6++; |
| 5272 | break; |
| 5273 | case AF_UNSPEC: |
| 5274 | goto bad; |
| 5275 | break; |
| 5276 | default: |
| 5277 | /* another family support? */ |
| 5278 | break; |
| 5279 | } |
| 5280 | } |
| 5281 | } |
| 5282 | |
| 5283 | if (!(inet4 == 0 || inet4 == 2)) |
| 5284 | goto bad; |
| 5285 | if (!(inet6 == 0 || inet6 == 2)) |
| 5286 | goto bad; |
| 5287 | |
| 5288 | if (aitop) |
| 5289 | freeaddrinfo(aitop); |
| 5290 | exit(0); |
| 5291 | |
| 5292 | bad: |
| 5293 | if (aitop) |
| 5294 | freeaddrinfo(aitop); |
| 5295 | exit(1); |
| 5296 | } |
| 5297 | |
| 5298 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5299 | if { (eval echo configure:5300: \"$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] | 5300 | then |
| 5301 | echo "$ac_t""good" 1>&6 |
| 5302 | buggygetaddrinfo=no |
| 5303 | else |
| 5304 | echo "configure: failed program was:" >&5 |
| 5305 | cat conftest.$ac_ext >&5 |
| 5306 | rm -fr conftest* |
| 5307 | echo "$ac_t""buggy" 1>&6 |
| 5308 | buggygetaddrinfo=yes |
| 5309 | fi |
| 5310 | rm -fr conftest* |
| 5311 | fi |
| 5312 | |
| 5313 | else |
| 5314 | echo "$ac_t""no" 1>&6 |
| 5315 | buggygetaddrinfo=yes |
| 5316 | fi |
| 5317 | done |
| 5318 | |
| 5319 | |
| 5320 | if test "$buggygetaddrinfo" = "yes"; then |
| 5321 | if test "$ipv6" = "yes"; then |
| 5322 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 5323 | echo ' or you can specify "--disable-ipv6"'. |
| 5324 | exit 1 |
| 5325 | fi |
| 5326 | fi |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 5327 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5328 | do |
| 5329 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5330 | echo "configure:5331: checking for $ac_func" >&5 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5331 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 5332 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5333 | else |
| 5334 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5335 | #line 5336 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5336 | #include "confdefs.h" |
| 5337 | /* System header to define __stub macros and hopefully few prototypes, |
| 5338 | which can conflict with char $ac_func(); below. */ |
| 5339 | #include <assert.h> |
| 5340 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5341 | /* We use char because int might match the return type of a gcc2 |
| 5342 | builtin and then its argument prototype would still apply. */ |
| 5343 | char $ac_func(); |
| 5344 | |
| 5345 | int main() { |
| 5346 | |
| 5347 | /* The GNU C library defines this for functions which it implements |
| 5348 | to always fail with ENOSYS. Some functions are actually named |
| 5349 | something starting with __ and the normal name is an alias. */ |
| 5350 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5351 | choke me |
| 5352 | #else |
| 5353 | $ac_func(); |
| 5354 | #endif |
| 5355 | |
| 5356 | ; return 0; } |
| 5357 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5358 | if { (eval echo configure:5359: \"$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] | 5359 | rm -rf conftest* |
| 5360 | eval "ac_cv_func_$ac_func=yes" |
| 5361 | else |
| 5362 | echo "configure: failed program was:" >&5 |
| 5363 | cat conftest.$ac_ext >&5 |
| 5364 | rm -rf conftest* |
| 5365 | eval "ac_cv_func_$ac_func=no" |
| 5366 | fi |
| 5367 | rm -f conftest* |
| 5368 | fi |
| 5369 | |
| 5370 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5371 | echo "$ac_t""yes" 1>&6 |
| 5372 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5373 | cat >> confdefs.h <<EOF |
| 5374 | #define $ac_tr_func 1 |
| 5375 | EOF |
| 5376 | |
| 5377 | else |
| 5378 | echo "$ac_t""no" 1>&6 |
| 5379 | fi |
| 5380 | done |
| 5381 | |
| 5382 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5383 | # checks for structures |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5384 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5385 | echo "configure:5386: 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] | 5386 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5387 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5388 | else |
| 5389 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5390 | #line 5391 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5391 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5392 | #include <sys/types.h> |
| 5393 | #include <sys/time.h> |
| 5394 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5395 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5396 | struct tm *tp; |
| 5397 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5398 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5399 | if { (eval echo configure:5400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5400 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5401 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5402 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5403 | echo "configure: failed program was:" >&5 |
| 5404 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5405 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5406 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5407 | fi |
| 5408 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5409 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5410 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5411 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5412 | if test $ac_cv_header_time = yes; then |
| 5413 | cat >> confdefs.h <<\EOF |
| 5414 | #define TIME_WITH_SYS_TIME 1 |
| 5415 | EOF |
| 5416 | |
| 5417 | fi |
| 5418 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5419 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5420 | echo "configure:5421: 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] | 5421 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5422 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5423 | else |
| 5424 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5425 | #line 5426 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5426 | #include "confdefs.h" |
| 5427 | #include <sys/types.h> |
| 5428 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5429 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5430 | struct tm *tp; tp->tm_sec; |
| 5431 | ; return 0; } |
| 5432 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5433 | if { (eval echo configure:5434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5434 | rm -rf conftest* |
| 5435 | ac_cv_struct_tm=time.h |
| 5436 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5437 | echo "configure: failed program was:" >&5 |
| 5438 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5439 | rm -rf conftest* |
| 5440 | ac_cv_struct_tm=sys/time.h |
| 5441 | fi |
| 5442 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5443 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5444 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5445 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5446 | if test $ac_cv_struct_tm = sys/time.h; then |
| 5447 | cat >> confdefs.h <<\EOF |
| 5448 | #define TM_IN_SYS_TIME 1 |
| 5449 | EOF |
| 5450 | |
| 5451 | fi |
| 5452 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5453 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5454 | echo "configure:5455: checking for tm_zone in struct tm" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5455 | 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] | 5456 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5457 | else |
| 5458 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5459 | #line 5460 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5460 | #include "confdefs.h" |
| 5461 | #include <sys/types.h> |
| 5462 | #include <$ac_cv_struct_tm> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5463 | int main() { |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5464 | struct tm tm; tm.tm_zone; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5465 | ; return 0; } |
| 5466 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5467 | if { (eval echo configure:5468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5468 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5469 | ac_cv_struct_tm_zone=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5470 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5471 | echo "configure: failed program was:" >&5 |
| 5472 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5473 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5474 | ac_cv_struct_tm_zone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5475 | fi |
| 5476 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5477 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5478 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5479 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 |
| 5480 | if test "$ac_cv_struct_tm_zone" = yes; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5481 | cat >> confdefs.h <<\EOF |
| 5482 | #define HAVE_TM_ZONE 1 |
| 5483 | EOF |
| 5484 | |
| 5485 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5486 | echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5487 | echo "configure:5488: checking for tzname" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5488 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5489 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5490 | else |
| 5491 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5492 | #line 5493 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5493 | #include "confdefs.h" |
| 5494 | #include <time.h> |
| 5495 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5496 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5497 | #endif |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5498 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5499 | atoi(*tzname); |
| 5500 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5501 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5502 | if { (eval echo configure:5503: \"$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] | 5503 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5504 | ac_cv_var_tzname=yes |
| 5505 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5506 | echo "configure: failed program was:" >&5 |
| 5507 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5508 | rm -rf conftest* |
| 5509 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5510 | fi |
| 5511 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5512 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5513 | |
| 5514 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5515 | if test $ac_cv_var_tzname = yes; then |
| 5516 | cat >> confdefs.h <<\EOF |
| 5517 | #define HAVE_TZNAME 1 |
| 5518 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5519 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5520 | fi |
| 5521 | fi |
| 5522 | |
| 5523 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5524 | echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5525 | echo "configure:5526: checking for time.h that defines altzone" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5526 | 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] | 5527 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5528 | else |
| 5529 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5530 | #line 5531 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5531 | #include "confdefs.h" |
| 5532 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5533 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5534 | return altzone; |
| 5535 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5536 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5537 | if { (eval echo configure:5538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5538 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5539 | ac_cv_header_time_altzone=yes |
| 5540 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5541 | echo "configure: failed program was:" >&5 |
| 5542 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5543 | rm -rf conftest* |
| 5544 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5545 | fi |
| 5546 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5547 | fi |
| 5548 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5549 | echo "$ac_t""$ac_cv_header_time_altzone" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5550 | if test $ac_cv_header_time_altzone = yes; then |
| 5551 | cat >> confdefs.h <<\EOF |
| 5552 | #define HAVE_ALTZONE 1 |
| 5553 | EOF |
| 5554 | |
| 5555 | fi |
| 5556 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5557 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5558 | echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5559 | echo "configure:5560: 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] | 5560 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5561 | #line 5562 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5562 | #include "confdefs.h" |
| 5563 | |
| 5564 | #include <sys/types.h> |
| 5565 | #include <sys/select.h> |
| 5566 | #include <sys/time.h> |
| 5567 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5568 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5569 | ; |
| 5570 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5571 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5572 | if { (eval echo configure:5573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5573 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5574 | cat >> confdefs.h <<\EOF |
| 5575 | #define SYS_SELECT_WITH_SYS_TIME 1 |
| 5576 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5577 | was_it_defined=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5578 | else |
| 5579 | echo "configure: failed program was:" >&5 |
| 5580 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5581 | fi |
| 5582 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5583 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5584 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5585 | echo $ac_n "checking for addrinfo""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5586 | echo "configure:5587: checking for addrinfo" >&5 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5587 | if eval "test \"`echo '$''{'ac_cv_struct_addrinfo'+set}'`\" = set"; then |
| 5588 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5589 | else |
| 5590 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5591 | #line 5592 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5592 | #include "confdefs.h" |
| 5593 | |
| 5594 | # include <netdb.h> |
| 5595 | int main() { |
| 5596 | struct addrinfo a |
| 5597 | ; return 0; } |
| 5598 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5599 | if { (eval echo configure:5600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5600 | rm -rf conftest* |
| 5601 | ac_cv_struct_addrinfo=yes |
| 5602 | else |
| 5603 | echo "configure: failed program was:" >&5 |
| 5604 | cat conftest.$ac_ext >&5 |
| 5605 | rm -rf conftest* |
| 5606 | ac_cv_struct_addrinfo=no |
| 5607 | fi |
| 5608 | rm -f conftest* |
| 5609 | fi |
| 5610 | |
| 5611 | echo "$ac_t""$ac_cv_struct_addrinfo" 1>&6 |
| 5612 | if test $ac_cv_struct_addrinfo = yes; then |
| 5613 | cat >> confdefs.h <<\EOF |
| 5614 | #define HAVE_ADDRINFO 1 |
| 5615 | EOF |
| 5616 | |
| 5617 | fi |
| 5618 | |
| 5619 | echo $ac_n "checking for sockaddr_storage""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5620 | echo "configure:5621: checking for sockaddr_storage" >&5 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5621 | if eval "test \"`echo '$''{'ac_cv_struct_sockaddr_storage'+set}'`\" = set"; then |
| 5622 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5623 | else |
| 5624 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5625 | #line 5626 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5626 | #include "confdefs.h" |
| 5627 | |
| 5628 | # include <sys/types.h> |
| 5629 | # include <sys/socket.h> |
| 5630 | int main() { |
| 5631 | struct sockaddr_storage s |
| 5632 | ; return 0; } |
| 5633 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5634 | if { (eval echo configure:5635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5635 | rm -rf conftest* |
| 5636 | ac_cv_struct_sockaddr_storage=yes |
| 5637 | else |
| 5638 | echo "configure: failed program was:" >&5 |
| 5639 | cat conftest.$ac_ext >&5 |
| 5640 | rm -rf conftest* |
| 5641 | ac_cv_struct_sockaddr_storage=no |
| 5642 | fi |
| 5643 | rm -f conftest* |
| 5644 | fi |
| 5645 | |
| 5646 | echo "$ac_t""$ac_cv_struct_sockaddr_storage" 1>&6 |
| 5647 | if test $ac_cv_struct_sockaddr_storage = yes; then |
| 5648 | cat >> confdefs.h <<\EOF |
| 5649 | #define HAVE_SOCKADDR_STORAGE 1 |
| 5650 | EOF |
| 5651 | |
| 5652 | fi |
| 5653 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5654 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5655 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5656 | echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5657 | echo "configure:5658: checking whether char is unsigned" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5658 | 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] | 5659 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5660 | else |
| 5661 | if test "$GCC" = yes; then |
| 5662 | # GCC predefines this symbol on systems where it applies. |
| 5663 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5664 | #line 5665 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5665 | #include "confdefs.h" |
| 5666 | #ifdef __CHAR_UNSIGNED__ |
| 5667 | yes |
| 5668 | #endif |
| 5669 | |
| 5670 | EOF |
| 5671 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5672 | egrep "yes" >/dev/null 2>&1; then |
| 5673 | rm -rf conftest* |
| 5674 | ac_cv_c_char_unsigned=yes |
| 5675 | else |
| 5676 | rm -rf conftest* |
| 5677 | ac_cv_c_char_unsigned=no |
| 5678 | fi |
| 5679 | rm -f conftest* |
| 5680 | |
| 5681 | else |
| 5682 | if test "$cross_compiling" = yes; then |
| 5683 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5684 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5685 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5686 | #line 5687 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5687 | #include "confdefs.h" |
| 5688 | /* volatile prevents gcc2 from optimizing the test away on sparcs. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5689 | #if !defined(__STDC__) || __STDC__ != 1 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5690 | #define volatile |
| 5691 | #endif |
| 5692 | main() { |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5693 | volatile char c = 255; exit(c < 0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5694 | } |
| 5695 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5696 | if { (eval echo configure:5697: \"$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] | 5697 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5698 | ac_cv_c_char_unsigned=yes |
| 5699 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5700 | echo "configure: failed program was:" >&5 |
| 5701 | cat conftest.$ac_ext >&5 |
| 5702 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5703 | ac_cv_c_char_unsigned=no |
| 5704 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5705 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5706 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5707 | |
| 5708 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5709 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5710 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5711 | echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5712 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
| 5713 | cat >> confdefs.h <<\EOF |
| 5714 | #define __CHAR_UNSIGNED__ 1 |
| 5715 | EOF |
| 5716 | |
| 5717 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5718 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5719 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5720 | echo "configure:5721: checking for working const" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5721 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5722 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5723 | else |
| 5724 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5725 | #line 5726 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5726 | #include "confdefs.h" |
| 5727 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5728 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5729 | |
| 5730 | /* Ultrix mips cc rejects this. */ |
Martin v. Löwis | 9db2f57 | 2001-07-23 01:30:10 +0000 | [diff] [blame] | 5731 | typedef int charset[2]; const charset x; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5732 | /* SunOS 4.1.1 cc rejects this. */ |
| 5733 | char const *const *ccp; |
| 5734 | char **p; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5735 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 5736 | struct point {int x, y;}; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5737 | static struct point const zero = {0,0}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5738 | /* AIX XL C 1.02.0.0 rejects this. |
| 5739 | It does not let you subtract one const X* pointer from another in an arm |
| 5740 | of an if-expression whose if-part is not a constant expression */ |
| 5741 | const char *g = "string"; |
| 5742 | ccp = &g + (g ? g-g : 0); |
| 5743 | /* HPUX 7.0 cc rejects these. */ |
| 5744 | ++ccp; |
| 5745 | p = (char**) ccp; |
| 5746 | ccp = (char const *const *) p; |
| 5747 | { /* SCO 3.2v4 cc rejects this. */ |
| 5748 | char *t; |
| 5749 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 5750 | |
| 5751 | *t++ = 0; |
| 5752 | } |
| 5753 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5754 | int x[] = {25, 17}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5755 | const int *foo = &x[0]; |
| 5756 | ++foo; |
| 5757 | } |
| 5758 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 5759 | typedef const int *iptr; |
| 5760 | iptr p = 0; |
| 5761 | ++p; |
| 5762 | } |
| 5763 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 5764 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 5765 | struct s { int j; const int *ap[3]; }; |
| 5766 | struct s *b; b->j = 5; |
| 5767 | } |
| 5768 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 5769 | const int foo = 10; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5770 | } |
| 5771 | |
| 5772 | ; return 0; } |
| 5773 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5774 | if { (eval echo configure:5775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5775 | rm -rf conftest* |
| 5776 | ac_cv_c_const=yes |
| 5777 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5778 | echo "configure: failed program was:" >&5 |
| 5779 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5780 | rm -rf conftest* |
| 5781 | ac_cv_c_const=no |
| 5782 | fi |
| 5783 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5784 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5785 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5786 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5787 | if test $ac_cv_c_const = no; then |
| 5788 | cat >> confdefs.h <<\EOF |
| 5789 | #define const |
| 5790 | EOF |
| 5791 | |
| 5792 | fi |
| 5793 | |
| 5794 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5795 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5796 | echo $ac_n "checking for working volatile""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5797 | echo "configure:5798: checking for working volatile" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5798 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5799 | #line 5800 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5800 | #include "confdefs.h" |
| 5801 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5802 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5803 | volatile int x; x = 0; |
| 5804 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5805 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5806 | if { (eval echo configure:5807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5807 | rm -rf conftest* |
| 5808 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5809 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5810 | echo "configure: failed program was:" >&5 |
| 5811 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5812 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5813 | cat >> confdefs.h <<\EOF |
| 5814 | #define volatile |
| 5815 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5816 | |
| 5817 | fi |
| 5818 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5819 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5820 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5821 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5822 | echo $ac_n "checking for working signed char""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5823 | echo "configure:5824: checking for working signed char" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5824 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5825 | #line 5826 "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5826 | #include "confdefs.h" |
| 5827 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5828 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5829 | signed char c; |
| 5830 | ; return 0; } |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5831 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5832 | if { (eval echo configure:5833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5833 | rm -rf conftest* |
| 5834 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5835 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5836 | echo "configure: failed program was:" >&5 |
| 5837 | cat conftest.$ac_ext >&5 |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 5838 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5839 | cat >> confdefs.h <<\EOF |
| 5840 | #define signed |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5841 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5842 | |
| 5843 | fi |
| 5844 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5845 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5846 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5847 | have_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5848 | echo $ac_n "checking for prototypes""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5849 | echo "configure:5850: checking for prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5850 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5851 | #line 5852 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5852 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5853 | int foo(int x) { return 0; } |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5854 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5855 | return foo(10); |
| 5856 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5857 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5858 | if { (eval echo configure:5859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5859 | rm -rf conftest* |
| 5860 | cat >> confdefs.h <<\EOF |
| 5861 | #define HAVE_PROTOTYPES 1 |
| 5862 | EOF |
| 5863 | have_prototypes=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5864 | else |
| 5865 | echo "configure: failed program was:" >&5 |
| 5866 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5867 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5868 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5869 | echo "$ac_t""$have_prototypes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5870 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5871 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5872 | echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5873 | echo "configure:5874: checking for variable length prototypes and stdarg.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5874 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5875 | #line 5876 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5876 | #include "confdefs.h" |
| 5877 | |
| 5878 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 5879 | int foo(int x, ...) { |
| 5880 | va_list va; |
| 5881 | va_start(va, x); |
| 5882 | va_arg(va, int); |
| 5883 | va_arg(va, char *); |
| 5884 | va_arg(va, double); |
| 5885 | return 0; |
| 5886 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5887 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5888 | int main() { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 5889 | return foo(10, "", 3.14); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5890 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5891 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5892 | if { (eval echo configure:5893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5893 | rm -rf conftest* |
| 5894 | cat >> confdefs.h <<\EOF |
| 5895 | #define HAVE_STDARG_PROTOTYPES 1 |
| 5896 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5897 | works=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5898 | else |
| 5899 | echo "configure: failed program was:" >&5 |
| 5900 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5901 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5902 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5903 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5904 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5905 | if test "$have_prototypes" = yes; then |
| 5906 | bad_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5907 | echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5908 | echo "configure:5909: checking for bad exec* prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5909 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5910 | #line 5911 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5911 | #include "confdefs.h" |
| 5912 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5913 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5914 | char **t;execve("@",t,t); |
| 5915 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5916 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5917 | if { (eval echo configure:5918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5918 | : |
| 5919 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5920 | echo "configure: failed program was:" >&5 |
| 5921 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5922 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5923 | cat >> confdefs.h <<\EOF |
| 5924 | #define BAD_EXEC_PROTOTYPES 1 |
| 5925 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5926 | bad_prototypes=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5927 | fi |
| 5928 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5929 | echo "$ac_t""$bad_prototypes" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5930 | fi |
| 5931 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5932 | # check if sockaddr has sa_len member |
| 5933 | echo $ac_n "checking if sockaddr has sa_len member""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5934 | echo "configure:5935: checking if sockaddr has sa_len member" >&5 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5935 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5936 | #line 5937 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5937 | #include "confdefs.h" |
| 5938 | #include <sys/types.h> |
| 5939 | #include <sys/socket.h> |
| 5940 | int main() { |
| 5941 | struct sockaddr x; |
| 5942 | x.sa_len = 0; |
| 5943 | ; return 0; } |
| 5944 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5945 | if { (eval echo configure:5946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5946 | rm -rf conftest* |
| 5947 | echo "$ac_t""yes" 1>&6 |
| 5948 | cat >> confdefs.h <<\EOF |
| 5949 | #define HAVE_SOCKADDR_SA_LEN 1 |
| 5950 | EOF |
| 5951 | |
| 5952 | else |
| 5953 | echo "configure: failed program was:" >&5 |
| 5954 | cat conftest.$ac_ext >&5 |
| 5955 | rm -rf conftest* |
| 5956 | echo "$ac_t""no" 1>&6 |
| 5957 | fi |
| 5958 | rm -f conftest* |
| 5959 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5960 | echo $ac_n "checking for bad static forward""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5961 | echo "configure:5962: checking for bad static forward" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 5962 | if eval "test \"`echo '$''{'ac_cv_bad_static_forward'+set}'`\" = set"; then |
| 5963 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5964 | else |
| 5965 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5966 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5967 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5968 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5969 | #line 5970 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5970 | #include "confdefs.h" |
| 5971 | |
| 5972 | struct s { int a; int b; }; |
| 5973 | static struct s foo; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5974 | int foobar() { |
| 5975 | static int random; |
| 5976 | random = (int) &foo; |
| 5977 | return random; |
| 5978 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5979 | static struct s foo = { 1, 2 }; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5980 | main() { |
| 5981 | exit(!((int)&foo == foobar())); |
| 5982 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5983 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 5984 | if { (eval echo configure:5985: \"$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] | 5985 | then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 5986 | ac_cv_bad_static_forward=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5987 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5988 | echo "configure: failed program was:" >&5 |
| 5989 | cat conftest.$ac_ext >&5 |
| 5990 | rm -fr conftest* |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 5991 | ac_cv_bad_static_forward=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5992 | fi |
| 5993 | rm -fr conftest* |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5994 | fi |
| 5995 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 5996 | fi |
| 5997 | |
| 5998 | echo "$ac_t""$ac_cv_bad_static_forward" 1>&6 |
| 5999 | if test "$ac_cv_bad_static_forward" = yes |
| 6000 | then |
| 6001 | cat >> confdefs.h <<\EOF |
| 6002 | #define BAD_STATIC_FORWARD 1 |
| 6003 | EOF |
| 6004 | |
| 6005 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6006 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6007 | va_list_is_array=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6008 | echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6009 | echo "configure:6010: checking whether va_list is an array" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6010 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6011 | #line 6012 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6012 | #include "confdefs.h" |
| 6013 | |
| 6014 | #ifdef HAVE_STDARG_PROTOTYPES |
| 6015 | #include <stdarg.h> |
| 6016 | #else |
| 6017 | #include <varargs.h> |
| 6018 | #endif |
| 6019 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6020 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6021 | va_list list1, list2; list1 = list2; |
| 6022 | ; return 0; } |
| 6023 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6024 | if { (eval echo configure:6025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6025 | : |
| 6026 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6027 | echo "configure: failed program was:" >&5 |
| 6028 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6029 | rm -rf conftest* |
| 6030 | cat >> confdefs.h <<\EOF |
| 6031 | #define VA_LIST_IS_ARRAY 1 |
| 6032 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6033 | va_list_is_array=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6034 | fi |
| 6035 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6036 | echo "$ac_t""$va_list_is_array" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6037 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6038 | # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( |
| 6039 | echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6040 | echo "configure:6041: checking for gethostbyname_r" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6041 | 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] | 6042 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6043 | else |
| 6044 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6045 | #line 6046 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6046 | #include "confdefs.h" |
| 6047 | /* System header to define __stub macros and hopefully few prototypes, |
| 6048 | which can conflict with char gethostbyname_r(); below. */ |
| 6049 | #include <assert.h> |
| 6050 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6051 | /* We use char because int might match the return type of a gcc2 |
| 6052 | builtin and then its argument prototype would still apply. */ |
| 6053 | char gethostbyname_r(); |
| 6054 | |
| 6055 | int main() { |
| 6056 | |
| 6057 | /* The GNU C library defines this for functions which it implements |
| 6058 | to always fail with ENOSYS. Some functions are actually named |
| 6059 | something starting with __ and the normal name is an alias. */ |
| 6060 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 6061 | choke me |
| 6062 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6063 | gethostbyname_r(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6064 | #endif |
| 6065 | |
| 6066 | ; return 0; } |
| 6067 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6068 | if { (eval echo configure:6069: \"$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] | 6069 | rm -rf conftest* |
| 6070 | eval "ac_cv_func_gethostbyname_r=yes" |
| 6071 | else |
| 6072 | echo "configure: failed program was:" >&5 |
| 6073 | cat conftest.$ac_ext >&5 |
| 6074 | rm -rf conftest* |
| 6075 | eval "ac_cv_func_gethostbyname_r=no" |
| 6076 | fi |
| 6077 | rm -f conftest* |
| 6078 | fi |
| 6079 | |
| 6080 | if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then |
| 6081 | echo "$ac_t""yes" 1>&6 |
| 6082 | |
| 6083 | cat >> confdefs.h <<\EOF |
| 6084 | #define HAVE_GETHOSTBYNAME_R 1 |
| 6085 | EOF |
| 6086 | |
| 6087 | echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6088 | echo "configure:6089: checking gethostbyname_r with 6 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6089 | OLD_CFLAGS=$CFLAGS |
| 6090 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
| 6091 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6092 | #line 6093 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6093 | #include "confdefs.h" |
| 6094 | |
| 6095 | # include <netdb.h> |
| 6096 | |
| 6097 | int main() { |
| 6098 | |
| 6099 | char *name; |
| 6100 | struct hostent *he, *res; |
| 6101 | char buffer[2048]; |
| 6102 | int buflen = 2048; |
| 6103 | int h_errnop; |
| 6104 | |
| 6105 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
| 6106 | |
| 6107 | ; return 0; } |
| 6108 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6109 | if { (eval echo configure:6110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6110 | rm -rf conftest* |
| 6111 | |
| 6112 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 6113 | #define HAVE_GETHOSTBYNAME_R 1 |
| 6114 | EOF |
| 6115 | |
| 6116 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6117 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
| 6118 | EOF |
| 6119 | |
| 6120 | echo "$ac_t""yes" 1>&6 |
| 6121 | |
| 6122 | else |
| 6123 | echo "configure: failed program was:" >&5 |
| 6124 | cat conftest.$ac_ext >&5 |
| 6125 | rm -rf conftest* |
| 6126 | |
| 6127 | echo "$ac_t""no" 1>&6 |
| 6128 | echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6129 | echo "configure:6130: checking gethostbyname_r with 5 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6130 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6131 | #line 6132 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6132 | #include "confdefs.h" |
| 6133 | |
| 6134 | # include <netdb.h> |
| 6135 | |
| 6136 | int main() { |
| 6137 | |
| 6138 | char *name; |
| 6139 | struct hostent *he; |
| 6140 | char buffer[2048]; |
| 6141 | int buflen = 2048; |
| 6142 | int h_errnop; |
| 6143 | |
| 6144 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
| 6145 | |
| 6146 | ; return 0; } |
| 6147 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6148 | if { (eval echo configure:6149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6149 | rm -rf conftest* |
| 6150 | |
| 6151 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 6152 | #define HAVE_GETHOSTBYNAME_R 1 |
| 6153 | EOF |
| 6154 | |
| 6155 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6156 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
| 6157 | EOF |
| 6158 | |
| 6159 | echo "$ac_t""yes" 1>&6 |
| 6160 | |
| 6161 | else |
| 6162 | echo "configure: failed program was:" >&5 |
| 6163 | cat conftest.$ac_ext >&5 |
| 6164 | rm -rf conftest* |
| 6165 | |
| 6166 | echo "$ac_t""no" 1>&6 |
| 6167 | echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6168 | echo "configure:6169: checking gethostbyname_r with 3 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6169 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6170 | #line 6171 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6171 | #include "confdefs.h" |
| 6172 | |
| 6173 | # include <netdb.h> |
| 6174 | |
| 6175 | int main() { |
| 6176 | |
| 6177 | char *name; |
| 6178 | struct hostent *he; |
| 6179 | struct hostent_data data; |
| 6180 | |
| 6181 | (void) gethostbyname_r(name, he, &data); |
| 6182 | |
| 6183 | ; return 0; } |
| 6184 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6185 | if { (eval echo configure:6186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6186 | rm -rf conftest* |
| 6187 | |
| 6188 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 6189 | #define HAVE_GETHOSTBYNAME_R 1 |
| 6190 | EOF |
| 6191 | |
| 6192 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6193 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
| 6194 | EOF |
| 6195 | |
| 6196 | echo "$ac_t""yes" 1>&6 |
| 6197 | |
| 6198 | else |
| 6199 | echo "configure: failed program was:" >&5 |
| 6200 | cat conftest.$ac_ext >&5 |
| 6201 | rm -rf conftest* |
| 6202 | |
| 6203 | echo "$ac_t""no" 1>&6 |
| 6204 | |
| 6205 | fi |
| 6206 | rm -f conftest* |
| 6207 | |
| 6208 | fi |
| 6209 | rm -f conftest* |
| 6210 | |
| 6211 | fi |
| 6212 | rm -f conftest* |
| 6213 | CFLAGS=$OLD_CFLAGS |
| 6214 | |
| 6215 | else |
| 6216 | echo "$ac_t""no" 1>&6 |
| 6217 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6218 | for ac_func in gethostbyname |
| 6219 | do |
| 6220 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6221 | echo "configure:6222: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6222 | 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] | 6223 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6224 | else |
| 6225 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6226 | #line 6227 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6227 | #include "confdefs.h" |
| 6228 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6229 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6230 | #include <assert.h> |
| 6231 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6232 | /* We use char because int might match the return type of a gcc2 |
| 6233 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6234 | char $ac_func(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6235 | |
| 6236 | int main() { |
| 6237 | |
| 6238 | /* The GNU C library defines this for functions which it implements |
| 6239 | to always fail with ENOSYS. Some functions are actually named |
| 6240 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6241 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6242 | choke me |
| 6243 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6244 | $ac_func(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6245 | #endif |
| 6246 | |
| 6247 | ; return 0; } |
| 6248 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6249 | if { (eval echo configure:6250: \"$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] | 6250 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6251 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6252 | else |
| 6253 | echo "configure: failed program was:" >&5 |
| 6254 | cat conftest.$ac_ext >&5 |
| 6255 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6256 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6257 | fi |
| 6258 | rm -f conftest* |
| 6259 | fi |
| 6260 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6261 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6262 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6263 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 6264 | cat >> confdefs.h <<EOF |
| 6265 | #define $ac_tr_func 1 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6266 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6267 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6268 | else |
| 6269 | echo "$ac_t""no" 1>&6 |
| 6270 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6271 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6272 | |
| 6273 | |
| 6274 | fi |
| 6275 | |
| 6276 | |
| 6277 | |
| 6278 | |
| 6279 | |
| 6280 | |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 6281 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6282 | # checks for system services |
| 6283 | # (none yet) |
| 6284 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6285 | # Linux requires this for correct f.p. operations |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6286 | echo $ac_n "checking for __fpu_control""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6287 | echo "configure:6288: checking for __fpu_control" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6288 | if eval "test \"`echo '$''{'ac_cv_func___fpu_control'+set}'`\" = set"; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6289 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6290 | else |
| 6291 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6292 | #line 6293 "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6293 | #include "confdefs.h" |
| 6294 | /* System header to define __stub macros and hopefully few prototypes, |
| 6295 | which can conflict with char __fpu_control(); below. */ |
| 6296 | #include <assert.h> |
| 6297 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6298 | /* We use char because int might match the return type of a gcc2 |
| 6299 | builtin and then its argument prototype would still apply. */ |
| 6300 | char __fpu_control(); |
| 6301 | |
| 6302 | int main() { |
| 6303 | |
| 6304 | /* The GNU C library defines this for functions which it implements |
| 6305 | to always fail with ENOSYS. Some functions are actually named |
| 6306 | something starting with __ and the normal name is an alias. */ |
| 6307 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 6308 | choke me |
| 6309 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6310 | __fpu_control(); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6311 | #endif |
| 6312 | |
| 6313 | ; return 0; } |
| 6314 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6315 | if { (eval echo configure:6316: \"$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] | 6316 | rm -rf conftest* |
| 6317 | eval "ac_cv_func___fpu_control=yes" |
| 6318 | else |
| 6319 | echo "configure: failed program was:" >&5 |
| 6320 | cat conftest.$ac_ext >&5 |
| 6321 | rm -rf conftest* |
| 6322 | eval "ac_cv_func___fpu_control=no" |
| 6323 | fi |
| 6324 | rm -f conftest* |
| 6325 | fi |
| 6326 | |
| 6327 | if eval "test \"`echo '$ac_cv_func_'__fpu_control`\" = yes"; then |
| 6328 | echo "$ac_t""yes" 1>&6 |
| 6329 | : |
| 6330 | else |
| 6331 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6332 | echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6333 | echo "configure:6334: checking for __fpu_control in -lieee" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6334 | ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6335 | 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] | 6336 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6337 | else |
| 6338 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6339 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6340 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6341 | #line 6342 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6342 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6343 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6344 | /* We use char because int might match the return type of a gcc2 |
| 6345 | builtin and then its argument prototype would still apply. */ |
| 6346 | char __fpu_control(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6347 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6348 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6349 | __fpu_control() |
| 6350 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6351 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6352 | if { (eval echo configure:6353: \"$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] | 6353 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6354 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6355 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6356 | echo "configure: failed program was:" >&5 |
| 6357 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6358 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6359 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6360 | fi |
| 6361 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6362 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6363 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6364 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6365 | 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] | 6366 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6367 | ac_tr_lib=HAVE_LIB`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 6368 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6369 | cat >> confdefs.h <<EOF |
| 6370 | #define $ac_tr_lib 1 |
| 6371 | EOF |
| 6372 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6373 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6374 | |
| 6375 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6376 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6377 | fi |
| 6378 | |
| 6379 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6380 | fi |
| 6381 | |
| 6382 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6383 | # Check for --with-fpectl |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6384 | echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6385 | echo "configure:6386: checking for --with-fpectl" >&5 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6386 | # Check whether --with-fpectl or --without-fpectl was given. |
| 6387 | if test "${with_fpectl+set}" = set; then |
| 6388 | withval="$with_fpectl" |
| 6389 | |
| 6390 | if test "$withval" != no |
| 6391 | then cat >> confdefs.h <<\EOF |
| 6392 | #define WANT_SIGFPE_HANDLER 1 |
| 6393 | EOF |
| 6394 | echo "$ac_t""yes" 1>&6 |
| 6395 | else echo "$ac_t""no" 1>&6 |
| 6396 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6397 | else |
| 6398 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6399 | fi |
| 6400 | |
| 6401 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6402 | # check for --with-libm=... |
| 6403 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 6404 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 6405 | Darwin) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 6406 | next) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6407 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 6408 | *) LIBM=-lm |
| 6409 | esac |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6410 | echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6411 | echo "configure:6412: checking for --with-libm=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6412 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6413 | if test "${with_libm+set}" = set; then |
| 6414 | withval="$with_libm" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6415 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6416 | if test "$withval" = no |
| 6417 | then LIBM= |
| 6418 | echo "$ac_t""force LIBM empty" 1>&6 |
| 6419 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6420 | then LIBM=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6421 | echo "$ac_t""set LIBM=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6422 | 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] | 6423 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6424 | else |
| 6425 | echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6426 | fi |
| 6427 | |
| 6428 | |
| 6429 | # check for --with-libc=... |
| 6430 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6431 | echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6432 | echo "configure:6433: checking for --with-libc=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6433 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6434 | if test "${with_libc+set}" = set; then |
| 6435 | withval="$with_libc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6436 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6437 | if test "$withval" = no |
| 6438 | then LIBC= |
| 6439 | echo "$ac_t""force LIBC empty" 1>&6 |
| 6440 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6441 | then LIBC=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6442 | echo "$ac_t""set LIBC=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6443 | 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] | 6444 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6445 | else |
| 6446 | echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6447 | fi |
| 6448 | |
| 6449 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6450 | # check for hypot() in math library |
| 6451 | LIBS_SAVE=$LIBS |
| 6452 | LIBS="$LIBS $LIBM" |
| 6453 | for ac_func in hypot |
| 6454 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6455 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6456 | echo "configure:6457: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6457 | 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] | 6458 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6459 | else |
| 6460 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6461 | #line 6462 "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6462 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6463 | /* System header to define __stub macros and hopefully few prototypes, |
| 6464 | which can conflict with char $ac_func(); below. */ |
| 6465 | #include <assert.h> |
| 6466 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6467 | /* We use char because int might match the return type of a gcc2 |
| 6468 | builtin and then its argument prototype would still apply. */ |
| 6469 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6470 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6471 | int main() { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6472 | |
| 6473 | /* The GNU C library defines this for functions which it implements |
| 6474 | to always fail with ENOSYS. Some functions are actually named |
| 6475 | something starting with __ and the normal name is an alias. */ |
| 6476 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6477 | choke me |
| 6478 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6479 | $ac_func(); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6480 | #endif |
| 6481 | |
| 6482 | ; return 0; } |
| 6483 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6484 | if { (eval echo configure:6485: \"$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] | 6485 | rm -rf conftest* |
| 6486 | eval "ac_cv_func_$ac_func=yes" |
| 6487 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6488 | echo "configure: failed program was:" >&5 |
| 6489 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6490 | rm -rf conftest* |
| 6491 | eval "ac_cv_func_$ac_func=no" |
| 6492 | fi |
| 6493 | rm -f conftest* |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6494 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6495 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6496 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 6497 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6498 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 6499 | cat >> confdefs.h <<EOF |
| 6500 | #define $ac_tr_func 1 |
| 6501 | EOF |
| 6502 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6503 | else |
| 6504 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 6505 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6506 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6507 | done |
| 6508 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6509 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6510 | LIBS=$LIBS_SAVE |
| 6511 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6512 | # check whether malloc(0) returns NULL or not |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6513 | echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6514 | echo "configure:6515: checking what malloc(0) returns" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6515 | if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6516 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6517 | else |
| 6518 | if test "$cross_compiling" = yes; then |
| 6519 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 6520 | else |
| 6521 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6522 | #line 6523 "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6523 | #include "confdefs.h" |
| 6524 | #include <stdio.h> |
| 6525 | #ifdef HAVE_STDLIB |
| 6526 | #include <stdlib.h> |
| 6527 | #else |
| 6528 | char *malloc(), *realloc(); |
| 6529 | int *free(); |
| 6530 | #endif |
| 6531 | main() { |
| 6532 | char *p; |
| 6533 | p = malloc(0); |
| 6534 | if (p == NULL) exit(1); |
| 6535 | p = realloc(p, 0); |
| 6536 | if (p == NULL) exit(1); |
| 6537 | free(p); |
| 6538 | exit(0); |
| 6539 | } |
| 6540 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6541 | if { (eval echo configure:6542: \"$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] | 6542 | then |
| 6543 | ac_cv_malloc_zero=nonnull |
| 6544 | else |
| 6545 | echo "configure: failed program was:" >&5 |
| 6546 | cat conftest.$ac_ext >&5 |
| 6547 | rm -fr conftest* |
| 6548 | ac_cv_malloc_zero=null |
| 6549 | fi |
| 6550 | rm -fr conftest* |
| 6551 | fi |
| 6552 | |
| 6553 | fi |
| 6554 | |
| 6555 | echo "$ac_t""$ac_cv_malloc_zero" 1>&6 |
| 6556 | if test "$ac_cv_malloc_zero" = null |
| 6557 | then |
| 6558 | cat >> confdefs.h <<\EOF |
| 6559 | #define MALLOC_ZERO_RETURNS_NULL 1 |
| 6560 | EOF |
| 6561 | |
| 6562 | fi |
| 6563 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6564 | # check for wchar.h |
| 6565 | ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'` |
| 6566 | echo $ac_n "checking for wchar.h""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6567 | echo "configure:6568: checking for wchar.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6568 | 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] | 6569 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6570 | else |
| 6571 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6572 | #line 6573 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6573 | #include "confdefs.h" |
| 6574 | #include <wchar.h> |
| 6575 | EOF |
| 6576 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6577 | { (eval echo configure:6578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6578 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 6579 | if test -z "$ac_err"; then |
| 6580 | rm -rf conftest* |
| 6581 | eval "ac_cv_header_$ac_safe=yes" |
| 6582 | else |
| 6583 | echo "$ac_err" >&5 |
| 6584 | echo "configure: failed program was:" >&5 |
| 6585 | cat conftest.$ac_ext >&5 |
| 6586 | rm -rf conftest* |
| 6587 | eval "ac_cv_header_$ac_safe=no" |
| 6588 | fi |
| 6589 | rm -f conftest* |
| 6590 | fi |
| 6591 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 6592 | echo "$ac_t""yes" 1>&6 |
| 6593 | cat >> confdefs.h <<\EOF |
| 6594 | #define HAVE_WCHAR_H 1 |
| 6595 | EOF |
| 6596 | wchar_h="yes" |
| 6597 | else |
| 6598 | echo "$ac_t""no" 1>&6 |
| 6599 | wchar_h="no" |
| 6600 | |
| 6601 | fi |
| 6602 | |
| 6603 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6604 | # determine wchar_t size |
| 6605 | if test "$wchar_h" = yes |
| 6606 | then |
| 6607 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6608 | echo "configure:6609: checking size of wchar_t" >&5 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6609 | if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then |
| 6610 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6611 | else |
| 6612 | if test "$cross_compiling" = yes; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6613 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 6614 | else |
| 6615 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6616 | #line 6617 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6617 | #include "confdefs.h" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6618 | #include <stdio.h> |
| 6619 | main() |
| 6620 | { |
| 6621 | FILE *f=fopen("conftestval", "w"); |
| 6622 | if (!f) exit(1); |
| 6623 | fprintf(f, "%d\n", sizeof(wchar_t)); |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6624 | exit(0); |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6625 | } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6626 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6627 | if { (eval echo configure:6628: \"$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] | 6628 | then |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6629 | ac_cv_sizeof_wchar_t=`cat conftestval` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6630 | else |
| 6631 | echo "configure: failed program was:" >&5 |
| 6632 | cat conftest.$ac_ext >&5 |
| 6633 | rm -fr conftest* |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6634 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6635 | fi |
| 6636 | rm -fr conftest* |
| 6637 | fi |
| 6638 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6639 | fi |
| 6640 | echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6 |
| 6641 | cat >> confdefs.h <<EOF |
| 6642 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
| 6643 | EOF |
| 6644 | |
| 6645 | |
| 6646 | fi |
| 6647 | |
| 6648 | echo $ac_n "checking what type to use for unicode""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6649 | echo "configure:6650: checking what type to use for unicode" >&5 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6650 | # Check whether --enable-unicode or --disable-unicode was given. |
| 6651 | if test "${enable_unicode+set}" = set; then |
| 6652 | enableval="$enable_unicode" |
| 6653 | : |
| 6654 | else |
| 6655 | enable_unicode=yes |
| 6656 | fi |
| 6657 | |
| 6658 | |
| 6659 | if test $enable_unicode = yes |
| 6660 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 6661 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
| 6662 | enable_unicode="ucs2" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6663 | fi |
| 6664 | |
| 6665 | case "$enable_unicode" in |
| 6666 | ucs2) unicode_size="2" |
| 6667 | cat >> confdefs.h <<\EOF |
| 6668 | #define Py_UNICODE_SIZE 2 |
| 6669 | EOF |
| 6670 | |
| 6671 | ;; |
| 6672 | ucs4) unicode_size="4" |
| 6673 | cat >> confdefs.h <<\EOF |
| 6674 | #define Py_UNICODE_SIZE 4 |
| 6675 | EOF |
| 6676 | |
| 6677 | ;; |
| 6678 | esac |
| 6679 | |
| 6680 | if test "$enable_unicode" = "no" |
| 6681 | then |
| 6682 | echo "$ac_t""not used" 1>&6 |
| 6683 | else |
| 6684 | cat >> confdefs.h <<\EOF |
| 6685 | #define Py_USING_UNICODE 1 |
| 6686 | EOF |
| 6687 | |
| 6688 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" |
| 6689 | then |
| 6690 | PY_UNICODE_TYPE="wchar_t" |
| 6691 | cat >> confdefs.h <<\EOF |
| 6692 | #define HAVE_USABLE_WCHAR_T 1 |
| 6693 | EOF |
| 6694 | |
| 6695 | cat >> confdefs.h <<\EOF |
| 6696 | #define PY_UNICODE_TYPE wchar_t |
| 6697 | EOF |
| 6698 | |
| 6699 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 6700 | then |
| 6701 | PY_UNICODE_TYPE="unsigned short" |
| 6702 | cat >> confdefs.h <<\EOF |
| 6703 | #define PY_UNICODE_TYPE unsigned short |
| 6704 | EOF |
| 6705 | |
| 6706 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 6707 | then |
| 6708 | PY_UNICODE_TYPE="unsigned long" |
| 6709 | cat >> confdefs.h <<\EOF |
| 6710 | #define PY_UNICODE_TYPE unsigned long |
| 6711 | EOF |
| 6712 | |
| 6713 | else |
| 6714 | PY_UNICODE_TYPE="no type found" |
| 6715 | fi |
| 6716 | echo "$ac_t""$PY_UNICODE_TYPE" 1>&6 |
| 6717 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6718 | |
| 6719 | # check for endianness |
| 6720 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6721 | echo "configure:6722: checking whether byte ordering is bigendian" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6722 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6723 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6724 | else |
| 6725 | ac_cv_c_bigendian=unknown |
| 6726 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 6727 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6728 | #line 6729 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6729 | #include "confdefs.h" |
| 6730 | #include <sys/types.h> |
| 6731 | #include <sys/param.h> |
| 6732 | int main() { |
| 6733 | |
| 6734 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 6735 | bogus endian macros |
| 6736 | #endif |
| 6737 | ; return 0; } |
| 6738 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6739 | if { (eval echo configure:6740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6740 | rm -rf conftest* |
| 6741 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 6742 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6743 | #line 6744 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6744 | #include "confdefs.h" |
| 6745 | #include <sys/types.h> |
| 6746 | #include <sys/param.h> |
| 6747 | int main() { |
| 6748 | |
| 6749 | #if BYTE_ORDER != BIG_ENDIAN |
| 6750 | not big endian |
| 6751 | #endif |
| 6752 | ; return 0; } |
| 6753 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6754 | if { (eval echo configure:6755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6755 | rm -rf conftest* |
| 6756 | ac_cv_c_bigendian=yes |
| 6757 | else |
| 6758 | echo "configure: failed program was:" >&5 |
| 6759 | cat conftest.$ac_ext >&5 |
| 6760 | rm -rf conftest* |
| 6761 | ac_cv_c_bigendian=no |
| 6762 | fi |
| 6763 | rm -f conftest* |
| 6764 | else |
| 6765 | echo "configure: failed program was:" >&5 |
| 6766 | cat conftest.$ac_ext >&5 |
| 6767 | fi |
| 6768 | rm -f conftest* |
| 6769 | if test $ac_cv_c_bigendian = unknown; then |
| 6770 | if test "$cross_compiling" = yes; then |
| 6771 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 6772 | else |
| 6773 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6774 | #line 6775 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6775 | #include "confdefs.h" |
| 6776 | main () { |
| 6777 | /* Are we little or big endian? From Harbison&Steele. */ |
| 6778 | union |
| 6779 | { |
| 6780 | long l; |
| 6781 | char c[sizeof (long)]; |
| 6782 | } u; |
| 6783 | u.l = 1; |
| 6784 | exit (u.c[sizeof (long) - 1] == 1); |
| 6785 | } |
| 6786 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6787 | if { (eval echo configure:6788: \"$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] | 6788 | then |
| 6789 | ac_cv_c_bigendian=no |
| 6790 | else |
| 6791 | echo "configure: failed program was:" >&5 |
| 6792 | cat conftest.$ac_ext >&5 |
| 6793 | rm -fr conftest* |
| 6794 | ac_cv_c_bigendian=yes |
| 6795 | fi |
| 6796 | rm -fr conftest* |
| 6797 | fi |
| 6798 | |
| 6799 | fi |
| 6800 | fi |
| 6801 | |
| 6802 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
| 6803 | if test $ac_cv_c_bigendian = yes; then |
| 6804 | cat >> confdefs.h <<\EOF |
| 6805 | #define WORDS_BIGENDIAN 1 |
| 6806 | EOF |
| 6807 | |
| 6808 | fi |
| 6809 | |
| 6810 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6811 | # Check whether right shifting a negative integer extends the sign bit |
| 6812 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
| 6813 | echo $ac_n "checking whether right shift extends the sign bit""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6814 | echo "configure:6815: checking whether right shift extends the sign bit" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6815 | if eval "test \"`echo '$''{'ac_cv_rshift_extends_sign'+set}'`\" = set"; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 6816 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6817 | else |
| 6818 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6819 | if test "$cross_compiling" = yes; then |
| 6820 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 6821 | else |
| 6822 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6823 | #line 6824 "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6824 | #include "confdefs.h" |
| 6825 | |
| 6826 | int main() |
| 6827 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 6828 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6829 | } |
| 6830 | |
| 6831 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6832 | if { (eval echo configure:6833: \"$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] | 6833 | then |
| 6834 | ac_cv_rshift_extends_sign=yes |
| 6835 | else |
| 6836 | echo "configure: failed program was:" >&5 |
| 6837 | cat conftest.$ac_ext >&5 |
| 6838 | rm -fr conftest* |
| 6839 | ac_cv_rshift_extends_sign=no |
| 6840 | fi |
| 6841 | rm -fr conftest* |
| 6842 | fi |
| 6843 | |
| 6844 | fi |
| 6845 | |
| 6846 | echo "$ac_t""$ac_cv_rshift_extends_sign" 1>&6 |
| 6847 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6848 | then |
| 6849 | cat >> confdefs.h <<\EOF |
| 6850 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
| 6851 | EOF |
| 6852 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6853 | fi |
| 6854 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 6855 | # check for getc_unlocked and related locking functions |
| 6856 | echo $ac_n "checking for getc_unlocked() and friends""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6857 | echo "configure:6858: checking for getc_unlocked() and friends" >&5 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 6858 | if eval "test \"`echo '$''{'ac_cv_have_getc_unlocked'+set}'`\" = set"; then |
| 6859 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6860 | else |
| 6861 | |
| 6862 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6863 | #line 6864 "configure" |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 6864 | #include "confdefs.h" |
| 6865 | #include <stdio.h> |
| 6866 | int main() { |
| 6867 | |
| 6868 | FILE *f = fopen("/dev/null", "r"); |
| 6869 | flockfile(f); |
| 6870 | getc_unlocked(f); |
| 6871 | funlockfile(f); |
| 6872 | |
| 6873 | ; return 0; } |
| 6874 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6875 | if { (eval echo configure:6876: \"$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] | 6876 | rm -rf conftest* |
| 6877 | ac_cv_have_getc_unlocked=yes |
| 6878 | else |
| 6879 | echo "configure: failed program was:" >&5 |
| 6880 | cat conftest.$ac_ext >&5 |
| 6881 | rm -rf conftest* |
| 6882 | ac_cv_have_getc_unlocked=no |
| 6883 | fi |
| 6884 | rm -f conftest* |
| 6885 | fi |
| 6886 | |
| 6887 | echo "$ac_t""$ac_cv_have_getc_unlocked" 1>&6 |
| 6888 | if test "$ac_cv_have_getc_unlocked" = yes |
| 6889 | then |
| 6890 | cat >> confdefs.h <<\EOF |
| 6891 | #define HAVE_GETC_UNLOCKED 1 |
| 6892 | EOF |
| 6893 | |
| 6894 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 6895 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 6896 | # check for readline 4.2 |
| 6897 | echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6898 | echo "configure:6899: checking for rl_completion_matches in -lreadline" >&5 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 6899 | ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'` |
| 6900 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 6901 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6902 | else |
| 6903 | ac_save_LIBS="$LIBS" |
| 6904 | LIBS="-lreadline -ltermcap $LIBS" |
| 6905 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6906 | #line 6907 "configure" |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 6907 | #include "confdefs.h" |
| 6908 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6909 | /* We use char because int might match the return type of a gcc2 |
| 6910 | builtin and then its argument prototype would still apply. */ |
| 6911 | char rl_completion_matches(); |
| 6912 | |
| 6913 | int main() { |
| 6914 | rl_completion_matches() |
| 6915 | ; return 0; } |
| 6916 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6917 | if { (eval echo configure:6918: \"$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] | 6918 | rm -rf conftest* |
| 6919 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 6920 | else |
| 6921 | echo "configure: failed program was:" >&5 |
| 6922 | cat conftest.$ac_ext >&5 |
| 6923 | rm -rf conftest* |
| 6924 | eval "ac_cv_lib_$ac_lib_var=no" |
| 6925 | fi |
| 6926 | rm -f conftest* |
| 6927 | LIBS="$ac_save_LIBS" |
| 6928 | |
| 6929 | fi |
| 6930 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 6931 | echo "$ac_t""yes" 1>&6 |
| 6932 | cat >> confdefs.h <<\EOF |
| 6933 | #define HAVE_RL_COMPLETION_MATCHES 1 |
| 6934 | EOF |
| 6935 | |
| 6936 | else |
| 6937 | echo "$ac_t""no" 1>&6 |
| 6938 | fi |
| 6939 | |
| 6940 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 6941 | echo $ac_n "checking for broken nice()""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6942 | echo "configure:6943: checking for broken nice()" >&5 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 6943 | if eval "test \"`echo '$''{'ac_cv_broken_nice'+set}'`\" = set"; then |
| 6944 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6945 | else |
| 6946 | |
| 6947 | if test "$cross_compiling" = yes; then |
| 6948 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 6949 | else |
| 6950 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6951 | #line 6952 "configure" |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 6952 | #include "confdefs.h" |
| 6953 | |
| 6954 | int main() |
| 6955 | { |
| 6956 | int val1 = nice(1); |
| 6957 | if (val1 != -1 && val1 == nice(2)) |
| 6958 | exit(0); |
| 6959 | exit(1); |
| 6960 | } |
| 6961 | |
| 6962 | EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6963 | if { (eval echo configure:6964: \"$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] | 6964 | then |
| 6965 | ac_cv_broken_nice=yes |
| 6966 | else |
| 6967 | echo "configure: failed program was:" >&5 |
| 6968 | cat conftest.$ac_ext >&5 |
| 6969 | rm -fr conftest* |
| 6970 | ac_cv_broken_nice=no |
| 6971 | fi |
| 6972 | rm -fr conftest* |
| 6973 | fi |
| 6974 | |
| 6975 | fi |
| 6976 | |
| 6977 | echo "$ac_t""$ac_cv_broken_nice" 1>&6 |
| 6978 | if test "$ac_cv_broken_nice" = yes |
| 6979 | then |
| 6980 | cat >> confdefs.h <<\EOF |
| 6981 | #define HAVE_BROKEN_NICE 1 |
| 6982 | EOF |
| 6983 | |
| 6984 | fi |
| 6985 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 6986 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! |
| 6987 | # Add sys/socket.h to confdefs.h |
| 6988 | cat >> confdefs.h <<\EOF |
| 6989 | #ifdef HAVE_SYS_SOCKET_H |
| 6990 | #include <sys/socket.h> |
| 6991 | #endif |
| 6992 | EOF |
| 6993 | echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6994 | echo "configure:6995: checking for socklen_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6995 | 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] | 6996 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6997 | else |
| 6998 | cat > conftest.$ac_ext <<EOF |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 6999 | #line 7000 "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 7000 | #include "confdefs.h" |
| 7001 | #include <sys/types.h> |
| 7002 | #if STDC_HEADERS |
| 7003 | #include <stdlib.h> |
| 7004 | #include <stddef.h> |
| 7005 | #endif |
| 7006 | EOF |
| 7007 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7008 | egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 7009 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 7010 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 7011 | else |
| 7012 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 7013 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 7014 | fi |
| 7015 | rm -f conftest* |
| 7016 | |
| 7017 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 7018 | echo "$ac_t""$ac_cv_type_socklen_t" 1>&6 |
| 7019 | if test $ac_cv_type_socklen_t = no; then |
| 7020 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 7021 | #define socklen_t int |
| 7022 | EOF |
| 7023 | |
| 7024 | fi |
| 7025 | |
| 7026 | |
Neil Schemenauer | f25cf6c | 2001-03-04 06:39:33 +0000 | [diff] [blame] | 7027 | # Add Python/ prefix to LIBOBJS |
| 7028 | libobjs=$LIBOBJS |
| 7029 | LIBOBJS= |
| 7030 | for obj in $libobjs; do |
| 7031 | LIBOBJS="$LIBOBJS Python/$obj" |
| 7032 | done |
| 7033 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7034 | #AC_MSG_CHECKING(for Modules/Setup) |
| 7035 | #if test ! -f Modules/Setup ; then |
| 7036 | # if test ! -d Modules ; then |
| 7037 | # mkdir Modules |
| 7038 | # fi |
| 7039 | # cp "$srcdir/Modules/Setup.dist" Modules/Setup |
| 7040 | # AC_MSG_RESULT(creating) |
| 7041 | #else |
| 7042 | # AC_MSG_RESULT(already exists) |
| 7043 | #fi |
| 7044 | |
| 7045 | |
Neil Schemenauer | acbf9ef | 2001-02-27 02:15:14 +0000 | [diff] [blame] | 7046 | SRCDIRS="Parser Grammar Objects Python Modules" |
Andrew M. Kuchling | 8abedde | 2001-01-26 22:55:24 +0000 | [diff] [blame] | 7047 | echo $ac_n "checking for build directories""... $ac_c" 1>&6 |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame^] | 7048 | echo "configure:7049: checking for build directories" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7049 | for dir in $SRCDIRS; do |
| 7050 | if test ! -d $dir; then |
| 7051 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 7052 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7053 | done |
| 7054 | echo "$ac_t""done" 1>&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 7055 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7056 | # generate output files |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7057 | trap '' 1 2 15 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7058 | cat > confcache <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7059 | # This file is a shell script that caches the results of configure |
| 7060 | # tests run on this system so they can be shared between configure |
| 7061 | # scripts and configure runs. It is not useful on other systems. |
| 7062 | # If it contains results you don't want to keep, you may remove or edit it. |
| 7063 | # |
| 7064 | # By default, configure uses ./config.cache as the cache file, |
| 7065 | # creating it if it does not exist already. You can give configure |
| 7066 | # the --cache-file=FILE option to use a different cache file; that is |
| 7067 | # what configure does when it calls configure scripts in |
| 7068 | # subdirectories, so they share the cache. |
| 7069 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 7070 | # config.status only pays attention to the cache file if you give it the |
| 7071 | # --recheck option to rerun configure. |
| 7072 | # |
| 7073 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7074 | # The following way of writing the cache mishandles newlines in values, |
| 7075 | # but we know of no workaround that is simple, portable, and efficient. |
| 7076 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7077 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 7078 | # 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] | 7079 | (set) 2>&1 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 7080 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7081 | *ac_space=\ *) |
| 7082 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 7083 | # turns \\\\ into \\, and sed turns \\ into \). |
| 7084 | sed -n \ |
| 7085 | -e "s/'/'\\\\''/g" \ |
| 7086 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 7087 | ;; |
| 7088 | *) |
| 7089 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 7090 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 7091 | ;; |
| 7092 | esac >> confcache |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7093 | if cmp -s $cache_file confcache; then |
| 7094 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7095 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7096 | if test -w $cache_file; then |
| 7097 | echo "updating cache $cache_file" |
| 7098 | cat confcache > $cache_file |
| 7099 | else |
| 7100 | echo "not updating unwritable cache $cache_file" |
| 7101 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7102 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7103 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7104 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7105 | 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] | 7106 | |
| 7107 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 7108 | # Let make expand exec_prefix. |
| 7109 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7110 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7111 | # Any assignment to VPATH causes Sun make to only execute |
| 7112 | # the first set of double-colon rules, so remove it if not needed. |
| 7113 | # If there is a colon in the path, we need to keep it. |
| 7114 | if test "x$srcdir" = x.; then |
| 7115 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 7116 | fi |
| 7117 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7118 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7119 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7120 | DEFS=-DHAVE_CONFIG_H |
| 7121 | |
| 7122 | # Without the "./", some shells look in PATH for config.status. |
| 7123 | : ${CONFIG_STATUS=./config.status} |
| 7124 | |
| 7125 | echo creating $CONFIG_STATUS |
| 7126 | rm -f $CONFIG_STATUS |
| 7127 | cat > $CONFIG_STATUS <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7128 | #! /bin/sh |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7129 | # Generated automatically by configure. |
| 7130 | # Run this file to recreate the current configuration. |
| 7131 | # This directory was configured as follows, |
| 7132 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 7133 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7134 | # $0 $ac_configure_args |
| 7135 | # |
| 7136 | # Compiler output produced by configure, useful for debugging |
| 7137 | # configure, is in ./config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7138 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7139 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7140 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7141 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7142 | case "\$ac_option" in |
| 7143 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7144 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 7145 | 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] | 7146 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 7147 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7148 | exit 0 ;; |
| 7149 | -help | --help | --hel | --he | --h) |
| 7150 | echo "\$ac_cs_usage"; exit 0 ;; |
| 7151 | *) echo "\$ac_cs_usage"; exit 1 ;; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7152 | esac |
| 7153 | done |
| 7154 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7155 | ac_given_srcdir=$srcdir |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7156 | ac_given_INSTALL="$INSTALL" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7157 | |
Martin v. Löwis | 4f1cd8b | 2001-07-26 13:41:06 +0000 | [diff] [blame] | 7158 | trap 'rm -fr `echo "Makefile.pre Modules/Setup.config pyconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7159 | EOF |
| 7160 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7161 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7162 | # Protect against being on the right side of a sed subst in config.status. |
| 7163 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 7164 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7165 | $ac_vpsub |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7166 | $extrasub |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 7167 | s%@SHELL@%$SHELL%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7168 | s%@CFLAGS@%$CFLAGS%g |
| 7169 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 7170 | s%@CXXFLAGS@%$CXXFLAGS%g |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 7171 | s%@FFLAGS@%$FFLAGS%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7172 | s%@DEFS@%$DEFS%g |
| 7173 | s%@LDFLAGS@%$LDFLAGS%g |
| 7174 | s%@LIBS@%$LIBS%g |
| 7175 | s%@exec_prefix@%$exec_prefix%g |
| 7176 | s%@prefix@%$prefix%g |
| 7177 | s%@program_transform_name@%$program_transform_name%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7178 | s%@bindir@%$bindir%g |
| 7179 | s%@sbindir@%$sbindir%g |
| 7180 | s%@libexecdir@%$libexecdir%g |
| 7181 | s%@datadir@%$datadir%g |
| 7182 | s%@sysconfdir@%$sysconfdir%g |
| 7183 | s%@sharedstatedir@%$sharedstatedir%g |
| 7184 | s%@localstatedir@%$localstatedir%g |
| 7185 | s%@libdir@%$libdir%g |
| 7186 | s%@includedir@%$includedir%g |
| 7187 | s%@oldincludedir@%$oldincludedir%g |
| 7188 | s%@infodir@%$infodir%g |
| 7189 | s%@mandir@%$mandir%g |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 7190 | s%@VERSION@%$VERSION%g |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 7191 | s%@CONFIG_ARGS@%$CONFIG_ARGS%g |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 7192 | s%@MACHDEP@%$MACHDEP%g |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 7193 | s%@SGI_ABI@%$SGI_ABI%g |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 7194 | s%@CXX@%$CXX%g |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 7195 | s%@MAINOBJ@%$MAINOBJ%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7196 | s%@CC@%$CC%g |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 7197 | s%@CPP@%$CPP%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7198 | s%@EXEEXT@%$EXEEXT%g |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7199 | s%@LIBRARY@%$LIBRARY%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7200 | s%@LDLIBRARY@%$LDLIBRARY%g |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 7201 | s%@DLLLIBRARY@%$DLLLIBRARY%g |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 7202 | s%@LINKCC@%$LINKCC%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7203 | s%@RANLIB@%$RANLIB%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7204 | s%@AR@%$AR%g |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7205 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7206 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7207 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7208 | s%@LN@%$LN%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 7209 | s%@OPT@%$OPT%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7210 | s%@LIBTOOL_CRUFT@%$LIBTOOL_CRUFT%g |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7211 | s%@SO@%$SO%g |
| 7212 | s%@LDSHARED@%$LDSHARED%g |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7213 | s%@BLDSHARED@%$BLDSHARED%g |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7214 | s%@CCSHARED@%$CCSHARED%g |
| 7215 | s%@LINKFORSHARED@%$LINKFORSHARED%g |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7216 | s%@CFLAGSFORSHARED@%$CFLAGSFORSHARED%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7217 | s%@USE_SIGNAL_MODULE@%$USE_SIGNAL_MODULE%g |
| 7218 | s%@SIGNAL_OBJS@%$SIGNAL_OBJS%g |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 7219 | s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 7220 | s%@LDLAST@%$LDLAST%g |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 7221 | s%@USE_GC_MODULE@%$USE_GC_MODULE%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7222 | s%@DLINCLDIR@%$DLINCLDIR%g |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 7223 | s%@DYNLOADFILE@%$DYNLOADFILE%g |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 7224 | s%@MACHDEP_OBJS@%$MACHDEP_OBJS%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7225 | s%@LIBOBJS@%$LIBOBJS%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 7226 | s%@HAVE_GETHOSTBYNAME_R_6_ARG@%$HAVE_GETHOSTBYNAME_R_6_ARG%g |
| 7227 | s%@HAVE_GETHOSTBYNAME_R_5_ARG@%$HAVE_GETHOSTBYNAME_R_5_ARG%g |
| 7228 | 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] | 7229 | s%@HAVE_GETHOSTBYNAME_R@%$HAVE_GETHOSTBYNAME_R%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 7230 | s%@HAVE_GETHOSTBYNAME@%$HAVE_GETHOSTBYNAME%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7231 | s%@LIBM@%$LIBM%g |
| 7232 | s%@LIBC@%$LIBC%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7233 | s%@SRCDIRS@%$SRCDIRS%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7234 | |
| 7235 | CEOF |
| 7236 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7237 | |
| 7238 | cat >> $CONFIG_STATUS <<\EOF |
| 7239 | |
| 7240 | # Split the substitutions into bite-sized pieces for seds with |
| 7241 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 7242 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 7243 | ac_file=1 # Number of current file. |
| 7244 | ac_beg=1 # First line for current file. |
| 7245 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 7246 | ac_more_lines=: |
| 7247 | ac_sed_cmds="" |
| 7248 | while $ac_more_lines; do |
| 7249 | if test $ac_beg -gt 1; then |
| 7250 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 7251 | else |
| 7252 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 7253 | fi |
| 7254 | if test ! -s conftest.s$ac_file; then |
| 7255 | ac_more_lines=false |
| 7256 | rm -f conftest.s$ac_file |
| 7257 | else |
| 7258 | if test -z "$ac_sed_cmds"; then |
| 7259 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 7260 | else |
| 7261 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 7262 | fi |
| 7263 | ac_file=`expr $ac_file + 1` |
| 7264 | ac_beg=$ac_end |
| 7265 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 7266 | fi |
| 7267 | done |
| 7268 | if test -z "$ac_sed_cmds"; then |
| 7269 | ac_sed_cmds=cat |
| 7270 | fi |
| 7271 | EOF |
| 7272 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7273 | cat >> $CONFIG_STATUS <<EOF |
| 7274 | |
Andrew M. Kuchling | 8abedde | 2001-01-26 22:55:24 +0000 | [diff] [blame] | 7275 | CONFIG_FILES=\${CONFIG_FILES-"Makefile.pre Modules/Setup.config"} |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7276 | EOF |
| 7277 | cat >> $CONFIG_STATUS <<\EOF |
| 7278 | 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] | 7279 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7280 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7281 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7282 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 7283 | *) ac_file_in="${ac_file}.in" ;; |
| 7284 | esac |
| 7285 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7286 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7287 | |
| 7288 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 7289 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 7290 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 7291 | # The file is in a subdirectory. |
| 7292 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7293 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7294 | # A "../" for each directory in $ac_dir_suffix. |
| 7295 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 7296 | else |
| 7297 | ac_dir_suffix= ac_dots= |
| 7298 | fi |
| 7299 | |
| 7300 | case "$ac_given_srcdir" in |
| 7301 | .) srcdir=. |
| 7302 | if test -z "$ac_dots"; then top_srcdir=. |
| 7303 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 7304 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 7305 | *) # Relative path. |
| 7306 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 7307 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 7308 | esac |
| 7309 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7310 | case "$ac_given_INSTALL" in |
| 7311 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
| 7312 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
| 7313 | esac |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7314 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7315 | echo creating "$ac_file" |
| 7316 | rm -f "$ac_file" |
| 7317 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 7318 | case "$ac_file" in |
| 7319 | *Makefile*) ac_comsub="1i\\ |
| 7320 | # $configure_input" ;; |
| 7321 | *) ac_comsub= ;; |
| 7322 | esac |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7323 | |
| 7324 | 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] | 7325 | sed -e "$ac_comsub |
| 7326 | s%@configure_input@%$configure_input%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7327 | s%@srcdir@%$srcdir%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7328 | s%@top_srcdir@%$top_srcdir%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7329 | s%@INSTALL@%$INSTALL%g |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7330 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7331 | fi; done |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7332 | rm -f conftest.s* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7333 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7334 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 7335 | # 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] | 7336 | # |
| 7337 | # ac_d sets the value in "#define NAME VALUE" lines. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7338 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 7339 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7340 | ac_dC='\3' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7341 | ac_dD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7342 | # 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] | 7343 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 7344 | ac_uB='\([ ]\)%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7345 | ac_uC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7346 | ac_uD='\4%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7347 | # 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] | 7348 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 7349 | ac_eB='$%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7350 | ac_eC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7351 | ac_eD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7352 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7353 | if test "${CONFIG_HEADERS+set}" != set; then |
| 7354 | EOF |
| 7355 | cat >> $CONFIG_STATUS <<EOF |
Martin v. Löwis | 4f1cd8b | 2001-07-26 13:41:06 +0000 | [diff] [blame] | 7356 | CONFIG_HEADERS="pyconfig.h" |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7357 | EOF |
| 7358 | cat >> $CONFIG_STATUS <<\EOF |
| 7359 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7360 | 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] | 7361 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7362 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7363 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7364 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 7365 | *) ac_file_in="${ac_file}.in" ;; |
| 7366 | esac |
| 7367 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7368 | echo creating $ac_file |
| 7369 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7370 | rm -f conftest.frag conftest.in conftest.out |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7371 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 7372 | cat $ac_file_inputs > conftest.in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7373 | |
| 7374 | EOF |
| 7375 | |
| 7376 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 7377 | # 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] | 7378 | # 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] | 7379 | # Protect against being in an unquoted here document in config.status. |
| 7380 | rm -f conftest.vals |
| 7381 | cat > conftest.hdr <<\EOF |
| 7382 | s/[\\&%]/\\&/g |
| 7383 | s%[\\$`]%\\&%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7384 | 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] | 7385 | s%ac_d%ac_u%gp |
| 7386 | s%ac_u%ac_e%gp |
| 7387 | EOF |
| 7388 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 7389 | rm -f conftest.hdr |
| 7390 | |
| 7391 | # This sed command replaces #undef with comments. This is necessary, for |
| 7392 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 7393 | # on some systems where configure will not decide to define it. |
| 7394 | cat >> conftest.vals <<\EOF |
| 7395 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 7396 | EOF |
| 7397 | |
| 7398 | # Break up conftest.vals because some shells have a limit on |
| 7399 | # 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] | 7400 | |
| 7401 | rm -f conftest.tail |
| 7402 | while : |
| 7403 | do |
| 7404 | ac_lines=`grep -c . conftest.vals` |
| 7405 | # grep -c gives empty output for an empty file on some AIX systems. |
| 7406 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 7407 | # Write a limited-size here document to conftest.frag. |
| 7408 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 7409 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 7410 | echo 'CEOF |
| 7411 | sed -f conftest.frag conftest.in > conftest.out |
| 7412 | rm -f conftest.in |
| 7413 | mv conftest.out conftest.in |
| 7414 | ' >> $CONFIG_STATUS |
| 7415 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 7416 | rm -f conftest.vals |
| 7417 | mv conftest.tail conftest.vals |
| 7418 | done |
| 7419 | rm -f conftest.vals |
| 7420 | |
| 7421 | cat >> $CONFIG_STATUS <<\EOF |
| 7422 | rm -f conftest.frag conftest.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7423 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7424 | cat conftest.in >> conftest.h |
| 7425 | rm -f conftest.in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7426 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7427 | echo "$ac_file is unchanged" |
| 7428 | rm -f conftest.h |
| 7429 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7430 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 7431 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 7432 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 7433 | # The file is in a subdirectory. |
| 7434 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 7435 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7436 | rm -f $ac_file |
| 7437 | mv conftest.h $ac_file |
| 7438 | fi |
| 7439 | fi; done |
| 7440 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7441 | EOF |
| 7442 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7443 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7444 | EOF |
| 7445 | cat >> $CONFIG_STATUS <<\EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7446 | |
| 7447 | exit 0 |
| 7448 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7449 | chmod +x $CONFIG_STATUS |
| 7450 | rm -fr confdefs* $ac_clean_files |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 7451 | 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] | 7452 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7453 | |
| 7454 | echo "creating Setup" |
| 7455 | if test ! -f Modules/Setup |
| 7456 | then |
| 7457 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 7458 | fi |
| 7459 | |
| 7460 | echo "creating Setup.local" |
| 7461 | if test ! -f Modules/Setup.local |
| 7462 | then |
| 7463 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 7464 | fi |
| 7465 | |
| 7466 | echo "creating Makefile" |
| 7467 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 7468 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 7469 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 7470 | mv config.c Modules |