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 | |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3 | # From configure.in Revision: 1.284 |
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 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 17 | --enable-framework[=INSTALLDIR] Build (MacOSX|Darwin) framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 18 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 19 | --without-gcc never use gcc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 20 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 21 | --with-cxx=<compiler> enable C++ support" |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 22 | ac_help="$ac_help |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 23 | --with-suffix=.exe set executable suffix" |
| 24 | ac_help="$ac_help |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 25 | --with-pydebug build with Py_DEBUG defined" |
| 26 | ac_help="$ac_help |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 27 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions" |
| 28 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 29 | --with-libs='lib1 ...' link against additional libs" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 30 | ac_help="$ac_help |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 31 | --with-signal-module disable/enable signal module" |
| 32 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 33 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 34 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 35 | --with(out)-threads[=DIRECTORY] disable/enable thread support" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 36 | ac_help="$ac_help |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 37 | --with(out)-thread[=DIRECTORY] deprecated; use --with(out)-threads" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 38 | ac_help="$ac_help |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 39 | --with-pth use GNU pth threading libraries" |
| 40 | ac_help="$ac_help |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 41 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 42 | --disable-ipv6 Disable ipv6 support" |
| 43 | ac_help="$ac_help |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 44 | --with(out)-cycle-gc disable/enable garbage collection" |
| 45 | ac_help="$ac_help |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 46 | --with(out)-pymalloc disable/enable specialized mallocs" |
| 47 | ac_help="$ac_help |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 48 | --with-wctype-functions use wctype.h functions" |
| 49 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 50 | --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 51 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 52 | --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 53 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 54 | --with-fpectl enable SIGFPE catching" |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 55 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 56 | --with-libm=STRING math library" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 57 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 58 | --with-libc=STRING C library" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 59 | ac_help="$ac_help |
| 60 | --enable-unicode[=ucs2,ucs4] Enable Unicode strings (default is yes)" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 61 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 62 | # Initialize some variables set by options. |
| 63 | # The variables have the same names as the options, with |
| 64 | # dashes changed to underlines. |
| 65 | build=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 66 | cache_file=./config.cache |
| 67 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 68 | host=NONE |
| 69 | no_create= |
| 70 | nonopt=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 71 | no_recursion= |
| 72 | prefix=NONE |
| 73 | program_prefix=NONE |
| 74 | program_suffix=NONE |
| 75 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 76 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 77 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 78 | srcdir= |
| 79 | target=NONE |
| 80 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 81 | x_includes=NONE |
| 82 | x_libraries=NONE |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 83 | bindir='${exec_prefix}/bin' |
| 84 | sbindir='${exec_prefix}/sbin' |
| 85 | libexecdir='${exec_prefix}/libexec' |
| 86 | datadir='${prefix}/share' |
| 87 | sysconfdir='${prefix}/etc' |
| 88 | sharedstatedir='${prefix}/com' |
| 89 | localstatedir='${prefix}/var' |
| 90 | libdir='${exec_prefix}/lib' |
| 91 | includedir='${prefix}/include' |
| 92 | oldincludedir='/usr/include' |
| 93 | infodir='${prefix}/info' |
| 94 | mandir='${prefix}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 95 | |
| 96 | # Initialize some other variables. |
| 97 | subdirs= |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 98 | MFLAGS= MAKEFLAGS= |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 99 | SHELL=${CONFIG_SHELL-/bin/sh} |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 100 | # Maximum number of lines to put in a shell here document. |
| 101 | ac_max_here_lines=12 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 102 | |
| 103 | ac_prev= |
| 104 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 105 | do |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 106 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 107 | # If the previous option needs an argument, assign it. |
| 108 | if test -n "$ac_prev"; then |
| 109 | eval "$ac_prev=\$ac_option" |
| 110 | ac_prev= |
| 111 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 112 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 113 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 114 | case "$ac_option" in |
| 115 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 116 | *) ac_optarg= ;; |
| 117 | esac |
| 118 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 119 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 120 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 121 | case "$ac_option" in |
| 122 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 123 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 124 | ac_prev=bindir ;; |
| 125 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 126 | bindir="$ac_optarg" ;; |
| 127 | |
| 128 | -build | --build | --buil | --bui | --bu) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 129 | ac_prev=build ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 130 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 131 | build="$ac_optarg" ;; |
| 132 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 133 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 134 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 135 | ac_prev=cache_file ;; |
| 136 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 137 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 138 | cache_file="$ac_optarg" ;; |
| 139 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 140 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 141 | ac_prev=datadir ;; |
| 142 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 143 | | --da=*) |
| 144 | datadir="$ac_optarg" ;; |
| 145 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 146 | -disable-* | --disable-*) |
| 147 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 148 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 149 | 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] | 150 | { 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] | 151 | fi |
| 152 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 153 | eval "enable_${ac_feature}=no" ;; |
| 154 | |
| 155 | -enable-* | --enable-*) |
| 156 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 157 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 158 | 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] | 159 | { 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] | 160 | fi |
| 161 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 162 | case "$ac_option" in |
| 163 | *=*) ;; |
| 164 | *) ac_optarg=yes ;; |
| 165 | esac |
| 166 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 167 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 168 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 169 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 170 | | --exec | --exe | --ex) |
| 171 | ac_prev=exec_prefix ;; |
| 172 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 173 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 174 | | --exec=* | --exe=* | --ex=*) |
| 175 | exec_prefix="$ac_optarg" ;; |
| 176 | |
| 177 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 178 | # Obsolete; use --with-gas. |
| 179 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 180 | |
| 181 | -help | --help | --hel | --he) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 182 | # Omit some internal or obsolete options to make the list less imposing. |
| 183 | # 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] | 184 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 185 | Usage: configure [options] [host] |
| 186 | Options: [defaults in brackets after descriptions] |
| 187 | Configuration: |
| 188 | --cache-file=FILE cache test results in FILE |
| 189 | --help print this message |
| 190 | --no-create do not create output files |
| 191 | --quiet, --silent do not print \`checking...' messages |
| 192 | --version print the version of autoconf that created configure |
| 193 | Directory and file names: |
| 194 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 195 | [$ac_default_prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 196 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 197 | [same as prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 198 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 199 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 200 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 201 | --datadir=DIR read-only architecture-independent data in DIR |
| 202 | [PREFIX/share] |
| 203 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 204 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 205 | [PREFIX/com] |
| 206 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 207 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 208 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 209 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 210 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 211 | --mandir=DIR man documentation in DIR [PREFIX/man] |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 212 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 213 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 214 | --program-suffix=SUFFIX append SUFFIX to installed program names |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 215 | --program-transform-name=PROGRAM |
| 216 | run sed PROGRAM on installed program names |
| 217 | EOF |
| 218 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 219 | Host type: |
| 220 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 221 | --host=HOST configure for HOST [guessed] |
| 222 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 223 | Features and packages: |
| 224 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 225 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 226 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 227 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 228 | --x-includes=DIR X include files are in DIR |
| 229 | --x-libraries=DIR X library files are in DIR |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 230 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 231 | if test -n "$ac_help"; then |
| 232 | echo "--enable and --with options recognized:$ac_help" |
| 233 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 234 | exit 0 ;; |
| 235 | |
| 236 | -host | --host | --hos | --ho) |
| 237 | ac_prev=host ;; |
| 238 | -host=* | --host=* | --hos=* | --ho=*) |
| 239 | host="$ac_optarg" ;; |
| 240 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 241 | -includedir | --includedir | --includedi | --included | --include \ |
| 242 | | --includ | --inclu | --incl | --inc) |
| 243 | ac_prev=includedir ;; |
| 244 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 245 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 246 | includedir="$ac_optarg" ;; |
| 247 | |
| 248 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 249 | ac_prev=infodir ;; |
| 250 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 251 | infodir="$ac_optarg" ;; |
| 252 | |
| 253 | -libdir | --libdir | --libdi | --libd) |
| 254 | ac_prev=libdir ;; |
| 255 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 256 | libdir="$ac_optarg" ;; |
| 257 | |
| 258 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 259 | | --libexe | --libex | --libe) |
| 260 | ac_prev=libexecdir ;; |
| 261 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 262 | | --libexe=* | --libex=* | --libe=*) |
| 263 | libexecdir="$ac_optarg" ;; |
| 264 | |
| 265 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 266 | | --localstate | --localstat | --localsta | --localst \ |
| 267 | | --locals | --local | --loca | --loc | --lo) |
| 268 | ac_prev=localstatedir ;; |
| 269 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 270 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 271 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 272 | localstatedir="$ac_optarg" ;; |
| 273 | |
| 274 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 275 | ac_prev=mandir ;; |
| 276 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 277 | mandir="$ac_optarg" ;; |
| 278 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 279 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 280 | # Obsolete; use --without-fp. |
| 281 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 282 | |
| 283 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 284 | | --no-cr | --no-c) |
| 285 | no_create=yes ;; |
| 286 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 287 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 288 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 289 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 290 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 291 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 292 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 293 | | --oldin | --oldi | --old | --ol | --o) |
| 294 | ac_prev=oldincludedir ;; |
| 295 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 296 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 297 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 298 | oldincludedir="$ac_optarg" ;; |
| 299 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 300 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 301 | ac_prev=prefix ;; |
| 302 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 303 | prefix="$ac_optarg" ;; |
| 304 | |
| 305 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 306 | | --program-pre | --program-pr | --program-p) |
| 307 | ac_prev=program_prefix ;; |
| 308 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 309 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 310 | program_prefix="$ac_optarg" ;; |
| 311 | |
| 312 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 313 | | --program-suf | --program-su | --program-s) |
| 314 | ac_prev=program_suffix ;; |
| 315 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 316 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 317 | program_suffix="$ac_optarg" ;; |
| 318 | |
| 319 | -program-transform-name | --program-transform-name \ |
| 320 | | --program-transform-nam | --program-transform-na \ |
| 321 | | --program-transform-n | --program-transform- \ |
| 322 | | --program-transform | --program-transfor \ |
| 323 | | --program-transfo | --program-transf \ |
| 324 | | --program-trans | --program-tran \ |
| 325 | | --progr-tra | --program-tr | --program-t) |
| 326 | ac_prev=program_transform_name ;; |
| 327 | -program-transform-name=* | --program-transform-name=* \ |
| 328 | | --program-transform-nam=* | --program-transform-na=* \ |
| 329 | | --program-transform-n=* | --program-transform-=* \ |
| 330 | | --program-transform=* | --program-transfor=* \ |
| 331 | | --program-transfo=* | --program-transf=* \ |
| 332 | | --program-trans=* | --program-tran=* \ |
| 333 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 334 | program_transform_name="$ac_optarg" ;; |
| 335 | |
| 336 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 337 | | -silent | --silent | --silen | --sile | --sil) |
| 338 | silent=yes ;; |
| 339 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 340 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 341 | ac_prev=sbindir ;; |
| 342 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 343 | | --sbi=* | --sb=*) |
| 344 | sbindir="$ac_optarg" ;; |
| 345 | |
| 346 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 347 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 348 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 349 | | --sha | --sh) |
| 350 | ac_prev=sharedstatedir ;; |
| 351 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 352 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 353 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 354 | | --sha=* | --sh=*) |
| 355 | sharedstatedir="$ac_optarg" ;; |
| 356 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 357 | -site | --site | --sit) |
| 358 | ac_prev=site ;; |
| 359 | -site=* | --site=* | --sit=*) |
| 360 | site="$ac_optarg" ;; |
| 361 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 362 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 363 | ac_prev=srcdir ;; |
| 364 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 365 | srcdir="$ac_optarg" ;; |
| 366 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 367 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 368 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 369 | ac_prev=sysconfdir ;; |
| 370 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 371 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 372 | sysconfdir="$ac_optarg" ;; |
| 373 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 374 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 375 | ac_prev=target ;; |
| 376 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 377 | target="$ac_optarg" ;; |
| 378 | |
| 379 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 380 | verbose=yes ;; |
| 381 | |
| 382 | -version | --version | --versio | --versi | --vers) |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 383 | echo "configure generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 384 | exit 0 ;; |
| 385 | |
| 386 | -with-* | --with-*) |
| 387 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 388 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 389 | 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] | 390 | { 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] | 391 | fi |
| 392 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 393 | case "$ac_option" in |
| 394 | *=*) ;; |
| 395 | *) ac_optarg=yes ;; |
| 396 | esac |
| 397 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 398 | |
| 399 | -without-* | --without-*) |
| 400 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 401 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 402 | 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] | 403 | { 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] | 404 | fi |
| 405 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 406 | eval "with_${ac_package}=no" ;; |
| 407 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 408 | --x) |
| 409 | # Obsolete; use --with-x. |
| 410 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 411 | |
| 412 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 413 | | --x-incl | --x-inc | --x-in | --x-i) |
| 414 | ac_prev=x_includes ;; |
| 415 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 416 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 417 | x_includes="$ac_optarg" ;; |
| 418 | |
| 419 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 420 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 421 | ac_prev=x_libraries ;; |
| 422 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 423 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 424 | x_libraries="$ac_optarg" ;; |
| 425 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 426 | -*) { 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] | 427 | ;; |
| 428 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 429 | *) |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 430 | 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] | 431 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 432 | fi |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 433 | if test "x$nonopt" != xNONE; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 434 | { 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] | 435 | fi |
| 436 | nonopt="$ac_option" |
| 437 | ;; |
| 438 | |
| 439 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 440 | done |
| 441 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 442 | if test -n "$ac_prev"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 443 | { 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] | 444 | fi |
| 445 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 446 | 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] | 447 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 448 | # File descriptor usage: |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 449 | # 0 standard input |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 450 | # 1 file creation |
| 451 | # 2 errors and warnings |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 452 | # 3 some systems may open it to /dev/tty |
| 453 | # 4 used on the Kubota Titan |
| 454 | # 6 checking for... messages and results |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 455 | # 5 compiler messages saved in config.log |
| 456 | if test "$silent" = yes; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 457 | exec 6>/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 458 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 459 | exec 6>&1 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 460 | fi |
| 461 | exec 5>./config.log |
| 462 | |
| 463 | echo "\ |
| 464 | This file contains any messages produced by compilers while |
| 465 | running configure, to aid debugging if configure makes a mistake. |
| 466 | " 1>&5 |
| 467 | |
| 468 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 469 | # Also quote any args containing shell metacharacters. |
| 470 | ac_configure_args= |
| 471 | for ac_arg |
| 472 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 473 | case "$ac_arg" in |
| 474 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 475 | | --no-cr | --no-c) ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 476 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 477 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 478 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 479 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 480 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 481 | esac |
| 482 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 483 | |
| 484 | # NLS nuisances. |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 485 | # Only set these to C if already set. These must not be set unconditionally |
| 486 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 487 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 488 | # Non-C LC_CTYPE values break the ctype check. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 489 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 490 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 491 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 492 | 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] | 493 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 494 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 495 | rm -rf conftest* confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 496 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 497 | echo > confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 498 | |
| 499 | # A filename unique to this package, relative to the directory that |
| 500 | # 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] | 501 | ac_unique_file=Include/object.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 502 | |
| 503 | # Find the source files, if location was not specified. |
| 504 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 505 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 506 | # Try the directory containing this script, then its parent. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 507 | ac_prog=$0 |
| 508 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 509 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 510 | srcdir=$ac_confdir |
| 511 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 512 | srcdir=.. |
| 513 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 514 | else |
| 515 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 516 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 517 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 518 | if test "$ac_srcdir_defaulted" = yes; then |
| 519 | { 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] | 520 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 521 | { 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] | 522 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 523 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 524 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 525 | |
| 526 | # Prefer explicitly selected file to automatically selected ones. |
| 527 | if test -z "$CONFIG_SITE"; then |
| 528 | if test "x$prefix" != xNONE; then |
| 529 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 530 | else |
| 531 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 532 | fi |
| 533 | fi |
| 534 | for ac_site_file in $CONFIG_SITE; do |
| 535 | if test -r "$ac_site_file"; then |
| 536 | echo "loading site script $ac_site_file" |
| 537 | . "$ac_site_file" |
| 538 | fi |
| 539 | done |
| 540 | |
| 541 | if test -r "$cache_file"; then |
| 542 | echo "loading cache $cache_file" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 543 | . $cache_file |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 544 | else |
| 545 | echo "creating cache $cache_file" |
| 546 | > $cache_file |
| 547 | fi |
| 548 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 549 | ac_ext=c |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 550 | # 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] | 551 | ac_cpp='$CPP $CPPFLAGS' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 552 | 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] | 553 | 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] | 554 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 555 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 556 | ac_exeext= |
| 557 | ac_objext=o |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 558 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 559 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 560 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 561 | ac_n= ac_c=' |
| 562 | ' ac_t=' ' |
| 563 | else |
| 564 | ac_n=-n ac_c= ac_t= |
| 565 | fi |
| 566 | else |
| 567 | ac_n= ac_c='\c' ac_t= |
| 568 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 569 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 570 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 571 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 572 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 573 | # Set VERSION so we only need to edit in one place (i.e., here) |
| 574 | |
Guido van Rossum | 6db412b | 2001-04-18 04:37:57 +0000 | [diff] [blame] | 575 | VERSION=2.2 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 576 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 577 | # Arguments passed to configure. |
| 578 | |
| 579 | CONFIG_ARGS="$ac_configure_args" |
| 580 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 581 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 582 | # Check whether --enable-framework or --disable-framework was given. |
| 583 | if test "${enable_framework+set}" = set; then |
| 584 | enableval="$enable_framework" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 585 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 586 | case $enableval in |
| 587 | yes) |
| 588 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 589 | esac |
| 590 | case $enableval in |
| 591 | no) |
| 592 | PYTHONFRAMEWORK= |
| 593 | PYTHONFRAMEWORKDIR=no-framework |
| 594 | PYTHONFRAMEWORKPREFIX= |
| 595 | PYTHONFRAMEWORKINSTALLDIR= |
| 596 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 597 | ;; |
| 598 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 599 | PYTHONFRAMEWORK=Python |
| 600 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 601 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 602 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
| 603 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 604 | esac |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 605 | |
| 606 | else |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 607 | |
| 608 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 609 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 610 | PYTHONFRAMEWORKPREFIX= |
| 611 | PYTHONFRAMEWORKINSTALLDIR= |
| 612 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 613 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 614 | fi |
| 615 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 616 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 617 | |
| 618 | |
| 619 | |
| 620 | |
| 621 | ##AC_ARG_WITH(dyld, |
| 622 | ##[ --with-dyld Use (OpenStep|Rhapsody) dynamic linker],,) |
| 623 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 624 | # Set name for machine-dependent library files |
| 625 | |
| 626 | echo $ac_n "checking MACHDEP""... $ac_c" 1>&6 |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 627 | echo "configure:628: checking MACHDEP" >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 628 | if test -z "$MACHDEP" |
| 629 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 630 | ac_sys_system=`uname -s` |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 631 | 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] | 632 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 633 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 634 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 635 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 636 | ac_md_system=`echo $ac_sys_system | |
| 637 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 638 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 639 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 640 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 641 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 642 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 643 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 644 | darwin*) MACHDEP="darwin";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 645 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 646 | esac |
| 647 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 648 | |
| 649 | # |
| 650 | # SGI compilers allow the specification of the both the ABI and the |
| 651 | # ISA on the command line. Depending on the values of these switches, |
| 652 | # different and often incompatable code will be generated. |
| 653 | # |
| 654 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 655 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 656 | # variable is also adjusted. |
| 657 | # |
| 658 | |
| 659 | if test ! -z "$SGI_ABI" |
| 660 | then |
| 661 | CC="cc $SGI_ABI" |
| 662 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 663 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 664 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 665 | echo "$ac_t""$MACHDEP" 1>&6 |
| 666 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 667 | # checks for alternative programs |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 668 | echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 669 | echo "configure:670: checking for --without-gcc" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 670 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 671 | if test "${with_gcc+set}" = set; then |
| 672 | withval="$with_gcc" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 673 | |
| 674 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 675 | no) CC=cc |
| 676 | without_gcc=yes;; |
| 677 | yes) CC=gcc |
| 678 | without_gcc=no;; |
| 679 | *) CC=$withval |
| 680 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 681 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 682 | else |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 683 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 684 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 685 | AIX*) CC=cc_r |
| 686 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 687 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 688 | case $BE_HOST_CPU in |
| 689 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 690 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 691 | without_gcc=yes |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 692 | 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] | 693 | CCSHARED="-UDL_IMPORT -D'DL_IMPORT(RTYPE)=__declspec(dllimport) RTYPE'" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 694 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 695 | ;; |
| 696 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 697 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 698 | without_gcc=no |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 699 | OPT=-O |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 700 | ;; |
| 701 | *) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 702 | { 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] | 703 | ;; |
| 704 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 705 | AR="\$(srcdir)/Modules/ar_beos" |
| 706 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 707 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 708 | Monterey*) |
| 709 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 710 | without_gcc=;; |
| 711 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 712 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 713 | fi |
| 714 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 715 | echo "$ac_t""$without_gcc" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 716 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 717 | |
| 718 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 719 | MAINOBJ=python.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 720 | echo $ac_n "checking for --with-cxx=<compiler>""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 721 | echo "configure:722: checking for --with-cxx=<compiler>" >&5 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 722 | # Check whether --with-cxx or --without-cxx was given. |
| 723 | if test "${with_cxx+set}" = set; then |
| 724 | withval="$with_cxx" |
| 725 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 726 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 727 | case $withval in |
| 728 | no) CXX= |
| 729 | with_cxx=no;; |
| 730 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 731 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 732 | with_cxx=$withval;; |
| 733 | esac |
| 734 | else |
| 735 | |
| 736 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 737 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 738 | |
| 739 | fi |
| 740 | |
| 741 | echo "$ac_t""$with_cxx" 1>&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 742 | |
| 743 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 744 | |
| 745 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 746 | if test "$check_cxx" = "yes" |
| 747 | then |
| 748 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 749 | do |
| 750 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 751 | set dummy $ac_prog; ac_word=$2 |
| 752 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 753 | echo "configure:754: checking for $ac_word" >&5 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 754 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
| 755 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 756 | else |
| 757 | if test -n "$CXX"; then |
| 758 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 759 | else |
| 760 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 761 | ac_dummy="$PATH" |
| 762 | for ac_dir in $ac_dummy; do |
| 763 | test -z "$ac_dir" && ac_dir=. |
| 764 | if test -f $ac_dir/$ac_word; then |
| 765 | ac_cv_prog_CXX="$ac_prog" |
| 766 | break |
| 767 | fi |
| 768 | done |
| 769 | IFS="$ac_save_ifs" |
| 770 | fi |
| 771 | fi |
| 772 | CXX="$ac_cv_prog_CXX" |
| 773 | if test -n "$CXX"; then |
| 774 | echo "$ac_t""$CXX" 1>&6 |
| 775 | else |
| 776 | echo "$ac_t""no" 1>&6 |
| 777 | fi |
| 778 | |
| 779 | test -n "$CXX" && break |
| 780 | done |
| 781 | test -n "$CXX" || CXX="notfound" |
| 782 | |
| 783 | if test "$CXX" = "notfound" |
| 784 | then |
| 785 | CXX= |
| 786 | else |
| 787 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 788 | echo "configure:789: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 789 | |
| 790 | ac_ext=C |
| 791 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 792 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 793 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 794 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 795 | cross_compiling=$ac_cv_prog_cxx_cross |
| 796 | |
| 797 | cat > conftest.$ac_ext << EOF |
| 798 | |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 799 | #line 800 "configure" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 800 | #include "confdefs.h" |
| 801 | |
| 802 | int main(){return(0);} |
| 803 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 804 | if { (eval echo configure:805: \"$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] | 805 | ac_cv_prog_cxx_works=yes |
| 806 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 807 | if (./conftest; exit) 2>/dev/null; then |
| 808 | ac_cv_prog_cxx_cross=no |
| 809 | else |
| 810 | ac_cv_prog_cxx_cross=yes |
| 811 | fi |
| 812 | else |
| 813 | echo "configure: failed program was:" >&5 |
| 814 | cat conftest.$ac_ext >&5 |
| 815 | ac_cv_prog_cxx_works=no |
| 816 | fi |
| 817 | rm -fr conftest* |
| 818 | ac_ext=c |
| 819 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 820 | ac_cpp='$CPP $CPPFLAGS' |
| 821 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 822 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 823 | cross_compiling=$ac_cv_prog_cc_cross |
| 824 | |
| 825 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
| 826 | if test $ac_cv_prog_cxx_works = no; then |
| 827 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } |
| 828 | fi |
| 829 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 830 | echo "configure:831: 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] | 831 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
| 832 | cross_compiling=$ac_cv_prog_cxx_cross |
| 833 | |
| 834 | fi |
| 835 | fi |
| 836 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 837 | # If the user switches compilers, we can't believe the cache |
| 838 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 839 | then |
| 840 | { echo "configure: error: cached CC is different -- throw away $cache_file |
| 841 | (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; } |
| 842 | fi |
| 843 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 844 | # Extract the first word of "gcc", so it can be a program name with args. |
| 845 | set dummy gcc; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 846 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 847 | echo "configure:848: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 848 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 849 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 850 | else |
| 851 | if test -n "$CC"; then |
| 852 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 853 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 854 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 855 | ac_dummy="$PATH" |
| 856 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 857 | test -z "$ac_dir" && ac_dir=. |
| 858 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 859 | ac_cv_prog_CC="gcc" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 860 | break |
| 861 | fi |
| 862 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 863 | IFS="$ac_save_ifs" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 864 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 865 | fi |
| 866 | CC="$ac_cv_prog_CC" |
| 867 | if test -n "$CC"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 868 | echo "$ac_t""$CC" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 869 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 870 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 871 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 872 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 873 | if test -z "$CC"; then |
| 874 | # Extract the first word of "cc", so it can be a program name with args. |
| 875 | set dummy cc; ac_word=$2 |
| 876 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 877 | echo "configure:878: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 878 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 879 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 880 | else |
| 881 | if test -n "$CC"; then |
| 882 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 883 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 884 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 885 | ac_prog_rejected=no |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 886 | ac_dummy="$PATH" |
| 887 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 888 | test -z "$ac_dir" && ac_dir=. |
| 889 | if test -f $ac_dir/$ac_word; then |
| 890 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 891 | ac_prog_rejected=yes |
| 892 | continue |
| 893 | fi |
| 894 | ac_cv_prog_CC="cc" |
| 895 | break |
| 896 | fi |
| 897 | done |
| 898 | IFS="$ac_save_ifs" |
| 899 | if test $ac_prog_rejected = yes; then |
| 900 | # We found a bogon in the path, so make sure we never use it. |
| 901 | set dummy $ac_cv_prog_CC |
| 902 | shift |
| 903 | if test $# -gt 0; then |
| 904 | # We chose a different compiler from the bogus one. |
| 905 | # However, it has the same basename, so the bogon will be chosen |
| 906 | # first if we set CC to just the basename; use the full file name. |
| 907 | shift |
| 908 | set dummy "$ac_dir/$ac_word" "$@" |
| 909 | shift |
| 910 | ac_cv_prog_CC="$@" |
| 911 | fi |
| 912 | fi |
| 913 | fi |
| 914 | fi |
| 915 | CC="$ac_cv_prog_CC" |
| 916 | if test -n "$CC"; then |
| 917 | echo "$ac_t""$CC" 1>&6 |
| 918 | else |
| 919 | echo "$ac_t""no" 1>&6 |
| 920 | fi |
| 921 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 922 | if test -z "$CC"; then |
| 923 | case "`uname -s`" in |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 924 | *win32* | *WIN32*) |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 925 | # Extract the first word of "cl", so it can be a program name with args. |
| 926 | set dummy cl; ac_word=$2 |
| 927 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 928 | echo "configure:929: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 929 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 930 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 931 | else |
| 932 | if test -n "$CC"; then |
| 933 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 934 | else |
| 935 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 936 | ac_dummy="$PATH" |
| 937 | for ac_dir in $ac_dummy; do |
| 938 | test -z "$ac_dir" && ac_dir=. |
| 939 | if test -f $ac_dir/$ac_word; then |
| 940 | ac_cv_prog_CC="cl" |
| 941 | break |
| 942 | fi |
| 943 | done |
| 944 | IFS="$ac_save_ifs" |
| 945 | fi |
| 946 | fi |
| 947 | CC="$ac_cv_prog_CC" |
| 948 | if test -n "$CC"; then |
| 949 | echo "$ac_t""$CC" 1>&6 |
| 950 | else |
| 951 | echo "$ac_t""no" 1>&6 |
| 952 | fi |
| 953 | ;; |
| 954 | esac |
| 955 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 956 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 957 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 958 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 959 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 960 | echo "configure:961: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 961 | |
| 962 | ac_ext=c |
| 963 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 964 | ac_cpp='$CPP $CPPFLAGS' |
| 965 | 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] | 966 | 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] | 967 | cross_compiling=$ac_cv_prog_cc_cross |
| 968 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 969 | cat > conftest.$ac_ext << EOF |
| 970 | |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 971 | #line 972 "configure" |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 972 | #include "confdefs.h" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 973 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 974 | main(){return(0);} |
| 975 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 976 | if { (eval echo configure:977: \"$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] | 977 | ac_cv_prog_cc_works=yes |
| 978 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 979 | if (./conftest; exit) 2>/dev/null; then |
| 980 | ac_cv_prog_cc_cross=no |
| 981 | else |
| 982 | ac_cv_prog_cc_cross=yes |
| 983 | fi |
| 984 | else |
| 985 | echo "configure: failed program was:" >&5 |
| 986 | cat conftest.$ac_ext >&5 |
| 987 | ac_cv_prog_cc_works=no |
| 988 | fi |
| 989 | rm -fr conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 990 | ac_ext=c |
| 991 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 992 | ac_cpp='$CPP $CPPFLAGS' |
| 993 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 994 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 995 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 996 | |
| 997 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 998 | if test $ac_cv_prog_cc_works = no; then |
| 999 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 1000 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1001 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1002 | echo "configure:1003: 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] | 1003 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 1004 | cross_compiling=$ac_cv_prog_cc_cross |
| 1005 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1006 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1007 | echo "configure:1008: checking whether we are using GNU C" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1008 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1009 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1010 | else |
| 1011 | cat > conftest.c <<EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1012 | #ifdef __GNUC__ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1013 | yes; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1014 | #endif |
| 1015 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1016 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1017: \"$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] | 1017 | ac_cv_prog_gcc=yes |
| 1018 | else |
| 1019 | ac_cv_prog_gcc=no |
| 1020 | fi |
| 1021 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1022 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1023 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1024 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1025 | if test $ac_cv_prog_gcc = yes; then |
| 1026 | GCC=yes |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1027 | else |
| 1028 | GCC= |
| 1029 | fi |
| 1030 | |
| 1031 | ac_test_CFLAGS="${CFLAGS+set}" |
| 1032 | ac_save_CFLAGS="$CFLAGS" |
| 1033 | CFLAGS= |
| 1034 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1035 | echo "configure:1036: checking whether ${CC-cc} accepts -g" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1036 | 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] | 1037 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1038 | else |
| 1039 | echo 'void f(){}' > conftest.c |
| 1040 | 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] | 1041 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1042 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1043 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1044 | fi |
| 1045 | rm -f conftest* |
| 1046 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1047 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1048 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1049 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1050 | if test "$ac_test_CFLAGS" = set; then |
| 1051 | CFLAGS="$ac_save_CFLAGS" |
| 1052 | elif test $ac_cv_prog_cc_g = yes; then |
| 1053 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1054 | CFLAGS="-g -O2" |
| 1055 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1056 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1057 | fi |
| 1058 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1059 | if test "$GCC" = yes; then |
| 1060 | CFLAGS="-O2" |
| 1061 | else |
| 1062 | CFLAGS= |
| 1063 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1064 | fi |
| 1065 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1066 | |
| 1067 | # checks for UNIX variants that set C preprocessor variables |
| 1068 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1069 | echo "configure:1070: checking how to run the C preprocessor" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1070 | # On Suns, sometimes $CPP names a directory. |
| 1071 | if test -n "$CPP" && test -d "$CPP"; then |
| 1072 | CPP= |
| 1073 | fi |
| 1074 | if test -z "$CPP"; then |
| 1075 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 1076 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1077 | else |
| 1078 | # This must be in double quotes, not single quotes, because CPP may get |
| 1079 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
| 1080 | CPP="${CC-cc} -E" |
| 1081 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 1082 | # not just through cpp. |
| 1083 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1084 | #line 1085 "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1085 | #include "confdefs.h" |
| 1086 | #include <assert.h> |
| 1087 | Syntax Error |
| 1088 | EOF |
| 1089 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1090 | { (eval echo configure:1091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1091 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1092 | if test -z "$ac_err"; then |
| 1093 | : |
| 1094 | else |
| 1095 | echo "$ac_err" >&5 |
| 1096 | echo "configure: failed program was:" >&5 |
| 1097 | cat conftest.$ac_ext >&5 |
| 1098 | rm -rf conftest* |
| 1099 | CPP="${CC-cc} -E -traditional-cpp" |
| 1100 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1101 | #line 1102 "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1102 | #include "confdefs.h" |
| 1103 | #include <assert.h> |
| 1104 | Syntax Error |
| 1105 | EOF |
| 1106 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1107 | { (eval echo configure:1108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1108 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1109 | if test -z "$ac_err"; then |
| 1110 | : |
| 1111 | else |
| 1112 | echo "$ac_err" >&5 |
| 1113 | echo "configure: failed program was:" >&5 |
| 1114 | cat conftest.$ac_ext >&5 |
| 1115 | rm -rf conftest* |
| 1116 | CPP="${CC-cc} -nologo -E" |
| 1117 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1118 | #line 1119 "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1119 | #include "confdefs.h" |
| 1120 | #include <assert.h> |
| 1121 | Syntax Error |
| 1122 | EOF |
| 1123 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1124 | { (eval echo configure:1125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1125 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1126 | if test -z "$ac_err"; then |
| 1127 | : |
| 1128 | else |
| 1129 | echo "$ac_err" >&5 |
| 1130 | echo "configure: failed program was:" >&5 |
| 1131 | cat conftest.$ac_ext >&5 |
| 1132 | rm -rf conftest* |
| 1133 | CPP=/lib/cpp |
| 1134 | fi |
| 1135 | rm -f conftest* |
| 1136 | fi |
| 1137 | rm -f conftest* |
| 1138 | fi |
| 1139 | rm -f conftest* |
| 1140 | ac_cv_prog_CPP="$CPP" |
| 1141 | fi |
| 1142 | CPP="$ac_cv_prog_CPP" |
| 1143 | else |
| 1144 | ac_cv_prog_CPP="$CPP" |
| 1145 | fi |
| 1146 | echo "$ac_t""$CPP" 1>&6 |
| 1147 | |
| 1148 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1149 | echo "configure:1150: checking for AIX" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1150 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1151 | #line 1152 "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1152 | #include "confdefs.h" |
| 1153 | #ifdef _AIX |
| 1154 | yes |
| 1155 | #endif |
| 1156 | |
| 1157 | EOF |
| 1158 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1159 | egrep "yes" >/dev/null 2>&1; then |
| 1160 | rm -rf conftest* |
| 1161 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 1162 | #define _ALL_SOURCE 1 |
| 1163 | EOF |
| 1164 | |
| 1165 | else |
| 1166 | rm -rf conftest* |
| 1167 | echo "$ac_t""no" 1>&6 |
| 1168 | fi |
| 1169 | rm -f conftest* |
| 1170 | |
| 1171 | |
| 1172 | ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` |
| 1173 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1174 | echo "configure:1175: checking for minix/config.h" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1175 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1176 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1177 | else |
| 1178 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1179 | #line 1180 "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1180 | #include "confdefs.h" |
| 1181 | #include <minix/config.h> |
| 1182 | EOF |
| 1183 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1184 | { (eval echo configure:1185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1185 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1186 | if test -z "$ac_err"; then |
| 1187 | rm -rf conftest* |
| 1188 | eval "ac_cv_header_$ac_safe=yes" |
| 1189 | else |
| 1190 | echo "$ac_err" >&5 |
| 1191 | echo "configure: failed program was:" >&5 |
| 1192 | cat conftest.$ac_ext >&5 |
| 1193 | rm -rf conftest* |
| 1194 | eval "ac_cv_header_$ac_safe=no" |
| 1195 | fi |
| 1196 | rm -f conftest* |
| 1197 | fi |
| 1198 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1199 | echo "$ac_t""yes" 1>&6 |
| 1200 | MINIX=yes |
| 1201 | else |
| 1202 | echo "$ac_t""no" 1>&6 |
| 1203 | MINIX= |
| 1204 | fi |
| 1205 | |
| 1206 | if test "$MINIX" = yes; then |
| 1207 | cat >> confdefs.h <<\EOF |
| 1208 | #define _POSIX_SOURCE 1 |
| 1209 | EOF |
| 1210 | |
| 1211 | cat >> confdefs.h <<\EOF |
| 1212 | #define _POSIX_1_SOURCE 2 |
| 1213 | EOF |
| 1214 | |
| 1215 | cat >> confdefs.h <<\EOF |
| 1216 | #define _MINIX 1 |
| 1217 | EOF |
| 1218 | |
| 1219 | fi |
| 1220 | |
| 1221 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1222 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1223 | echo "configure:1224: checking for Cygwin environment" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1224 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
| 1225 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1226 | else |
| 1227 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1228 | #line 1229 "configure" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1229 | #include "confdefs.h" |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1230 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1231 | int main() { |
| 1232 | |
| 1233 | #ifndef __CYGWIN__ |
| 1234 | #define __CYGWIN__ __CYGWIN32__ |
| 1235 | #endif |
| 1236 | return __CYGWIN__; |
| 1237 | ; return 0; } |
| 1238 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1239 | if { (eval echo configure:1240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1240 | rm -rf conftest* |
| 1241 | ac_cv_cygwin=yes |
| 1242 | else |
| 1243 | echo "configure: failed program was:" >&5 |
| 1244 | cat conftest.$ac_ext >&5 |
| 1245 | rm -rf conftest* |
| 1246 | ac_cv_cygwin=no |
| 1247 | fi |
| 1248 | rm -f conftest* |
| 1249 | rm -f conftest* |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1250 | fi |
| 1251 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1252 | echo "$ac_t""$ac_cv_cygwin" 1>&6 |
| 1253 | CYGWIN= |
| 1254 | test "$ac_cv_cygwin" = yes && CYGWIN=yes |
| 1255 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1256 | echo "configure:1257: checking for mingw32 environment" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1257 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
| 1258 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1259 | else |
| 1260 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1261 | #line 1262 "configure" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1262 | #include "confdefs.h" |
| 1263 | |
| 1264 | int main() { |
| 1265 | return __MINGW32__; |
| 1266 | ; return 0; } |
| 1267 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1268 | if { (eval echo configure:1269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1269 | rm -rf conftest* |
| 1270 | ac_cv_mingw32=yes |
| 1271 | else |
| 1272 | echo "configure: failed program was:" >&5 |
| 1273 | cat conftest.$ac_ext >&5 |
| 1274 | rm -rf conftest* |
| 1275 | ac_cv_mingw32=no |
| 1276 | fi |
| 1277 | rm -f conftest* |
| 1278 | rm -f conftest* |
| 1279 | fi |
| 1280 | |
| 1281 | echo "$ac_t""$ac_cv_mingw32" 1>&6 |
| 1282 | MINGW32= |
| 1283 | test "$ac_cv_mingw32" = yes && MINGW32=yes |
| 1284 | |
| 1285 | |
| 1286 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1287 | echo "configure:1288: checking for executable suffix" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1288 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
| 1289 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1290 | else |
| 1291 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 1292 | ac_cv_exeext=.exe |
| 1293 | else |
| 1294 | rm -f conftest* |
| 1295 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 1296 | ac_cv_exeext= |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1297 | if { (eval echo configure:1298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1298 | for file in conftest.*; do |
| 1299 | case $file in |
| 1300 | *.c | *.o | *.obj) ;; |
| 1301 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
| 1302 | esac |
| 1303 | done |
| 1304 | else |
| 1305 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } |
| 1306 | fi |
| 1307 | rm -f conftest* |
| 1308 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no |
| 1309 | fi |
| 1310 | fi |
| 1311 | |
| 1312 | EXEEXT="" |
| 1313 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} |
| 1314 | echo "$ac_t""${ac_cv_exeext}" 1>&6 |
| 1315 | ac_exeext=$EXEEXT |
| 1316 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 1317 | echo $ac_n "checking for --with-suffix""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1318 | echo "configure:1319: checking for --with-suffix" >&5 |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 1319 | # Check whether --with-suffix or --without-suffix was given. |
| 1320 | if test "${with_suffix+set}" = set; then |
| 1321 | withval="$with_suffix" |
| 1322 | |
| 1323 | case $withval in |
| 1324 | no) EXEEXT=;; |
| 1325 | yes) EXEEXT=.exe;; |
| 1326 | *) EXEEXT=$withval;; |
| 1327 | esac |
| 1328 | fi |
| 1329 | |
| 1330 | echo "$ac_t""$EXEEXT" 1>&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 1331 | # Test whether we're running on a non-case-sensitive system, in which |
| 1332 | # case we give a warning if no ext is given |
| 1333 | if test -d "python" -a -z "$EXEEXT" |
| 1334 | then |
| 1335 | echo "configure: warning: This filesystem is not case-sensitive so you should probably use --with-suffix" 1>&2 |
| 1336 | fi |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1337 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 1338 | case $MACHDEP in |
| 1339 | bsdos*) |
| 1340 | case $CC in |
| 1341 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 1342 | esac;; |
| 1343 | esac |
| 1344 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1345 | case $ac_sys_system in |
| 1346 | hp*|HP*) |
| 1347 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 1348 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1349 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1350 | Monterey*) |
| 1351 | case $CC in |
| 1352 | cc) CC="$CC -Wl,-Bexport";; |
| 1353 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 1354 | SunOS*) |
| 1355 | # Some functions have a prototype only with that define, e.g. confstr |
| 1356 | cat >> confdefs.h <<\EOF |
| 1357 | #define __EXTENSIONS__ 1 |
| 1358 | EOF |
| 1359 | |
| 1360 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1361 | esac |
| 1362 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1363 | |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 1364 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1365 | echo $ac_n "checking LIBRARY""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1366 | echo "configure:1367: checking LIBRARY" >&5 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1367 | if test -z "$LIBRARY" |
| 1368 | then |
| 1369 | LIBRARY='libpython$(VERSION).a' |
| 1370 | fi |
| 1371 | echo "$ac_t""$LIBRARY" 1>&6 |
| 1372 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1373 | # LDLIBRARY is the name of the library to link against (as opposed to the |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1374 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 1375 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 1376 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 1377 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 1378 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 1379 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 1380 | # DLLLIBRARY is the shared (i.e., DLL) library. |
| 1381 | # |
| 1382 | |
| 1383 | |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1384 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1385 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1386 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1387 | BLDLIBRARY='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 1388 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1389 | LDLIBRARYDIR='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1390 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1391 | # LINKCC is the command that links the python executable -- default is $(CC). |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 1392 | # If CXX is set, and if it is needed to link a main function that was |
| 1393 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 1394 | # python might then depend on the C++ runtime |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1395 | # 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] | 1396 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1397 | |
| 1398 | echo $ac_n "checking LINKCC""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1399 | echo "configure:1400: checking LINKCC" >&5 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1400 | if test -z "$LINKCC" |
| 1401 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 1402 | if test -z "$CXX"; then |
| 1403 | LINKCC="\$(PURIFY) \$(CC)" |
| 1404 | else |
| 1405 | echo 'int main(){return 0;}' > conftest.$ac_ext |
| 1406 | $CXX -c conftest.$ac_ext 2>&5 |
| 1407 | if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 1408 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 1409 | then |
| 1410 | LINKCC="\$(PURIFY) \$(CC)" |
| 1411 | else |
| 1412 | LINKCC="\$(PURIFY) \$(CXX)" |
| 1413 | fi |
| 1414 | rm -fr conftest* |
| 1415 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1416 | case $ac_sys_system in |
| 1417 | AIX*) |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 1418 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); $(LINKCC)";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 1419 | dgux*) |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 1420 | LINKCC="LD_RUN_PATH=$libdir $(LINKCC)";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1421 | Monterey64*) |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 1422 | LINKCC="$(LINKCC) -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1423 | esac |
| 1424 | fi |
| 1425 | echo "$ac_t""$LINKCC" 1>&6 |
| 1426 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1427 | echo $ac_n "checking LDLIBRARY""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1428 | echo "configure:1429: checking LDLIBRARY" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1429 | |
| 1430 | # 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] | 1431 | case $MACHDEP in |
| 1432 | dguxR4) |
| 1433 | LDLIBRARY='libpython$(VERSION).so' |
| 1434 | OPT="$OPT -pic" |
| 1435 | ;; |
| 1436 | beos*) |
| 1437 | LDLIBRARY='libpython$(VERSION).so' |
| 1438 | ;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1439 | cygwin*) |
| 1440 | LDLIBRARY='libpython$(VERSION).dll.a' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1441 | DLLLIBRARY='libpython$(VERSION).dll' |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1442 | ;; |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1443 | esac |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1444 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 1445 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 1446 | # library that we build, but we do not want to link against it (we |
| 1447 | # will find it with a -framework option). For this reason there is an |
| 1448 | # extra variable BLDLIBRARY against which Python and the extension |
| 1449 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 1450 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1451 | if test "$enable_framework" |
| 1452 | then |
| 1453 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 1454 | LDLIBRARYDIR='$(PYTHONFRAMEWORKDIR)' |
| 1455 | BLDLIBRARY='' |
| 1456 | else |
| 1457 | BLDLIBRARY='$(LDLIBRARY)' |
| 1458 | fi |
| 1459 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1460 | echo "$ac_t""$LDLIBRARY" 1>&6 |
| 1461 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1462 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1463 | set dummy ranlib; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1464 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1465 | echo "configure:1466: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1466 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1467 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1468 | else |
| 1469 | if test -n "$RANLIB"; then |
| 1470 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1471 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1472 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1473 | ac_dummy="$PATH" |
| 1474 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1475 | test -z "$ac_dir" && ac_dir=. |
| 1476 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1477 | ac_cv_prog_RANLIB="ranlib" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1478 | break |
| 1479 | fi |
| 1480 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1481 | IFS="$ac_save_ifs" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1482 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1483 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1484 | fi |
| 1485 | RANLIB="$ac_cv_prog_RANLIB" |
| 1486 | if test -n "$RANLIB"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1487 | echo "$ac_t""$RANLIB" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1488 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1489 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1490 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1491 | |
| 1492 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1493 | for ac_prog in ar aal |
| 1494 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1495 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1496 | set dummy $ac_prog; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1497 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1498 | echo "configure:1499: checking for $ac_word" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1499 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1500 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1501 | else |
| 1502 | if test -n "$AR"; then |
| 1503 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 1504 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1505 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1506 | ac_dummy="$PATH" |
| 1507 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1508 | test -z "$ac_dir" && ac_dir=. |
| 1509 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1510 | ac_cv_prog_AR="$ac_prog" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1511 | break |
| 1512 | fi |
| 1513 | done |
| 1514 | IFS="$ac_save_ifs" |
| 1515 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1516 | fi |
| 1517 | AR="$ac_cv_prog_AR" |
| 1518 | if test -n "$AR"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1519 | echo "$ac_t""$AR" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1520 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1521 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1522 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1523 | |
| 1524 | test -n "$AR" && break |
| 1525 | done |
| 1526 | test -n "$AR" || AR="ar" |
| 1527 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 1528 | |
| 1529 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 1530 | bsdos*|hp*|HP*) |
| 1531 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 1532 | if test -z "$INSTALL" |
| 1533 | then |
| 1534 | INSTALL="${srcdir}/install-sh -c" |
| 1535 | fi |
| 1536 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1537 | ac_aux_dir= |
| 1538 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1539 | if test -f $ac_dir/install-sh; then |
| 1540 | ac_aux_dir=$ac_dir |
| 1541 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1542 | break |
| 1543 | elif test -f $ac_dir/install.sh; then |
| 1544 | ac_aux_dir=$ac_dir |
| 1545 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1546 | break |
| 1547 | fi |
| 1548 | done |
| 1549 | if test -z "$ac_aux_dir"; then |
| 1550 | { 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] | 1551 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1552 | ac_config_guess=$ac_aux_dir/config.guess |
| 1553 | ac_config_sub=$ac_aux_dir/config.sub |
| 1554 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
| 1555 | |
| 1556 | # Find a good install program. We prefer a C program (faster), |
| 1557 | # so one script is as good as another. But avoid the broken or |
| 1558 | # incompatible versions: |
| 1559 | # SysV /etc/install, /usr/sbin/install |
| 1560 | # SunOS /usr/etc/install |
| 1561 | # IRIX /sbin/install |
| 1562 | # AIX /bin/install |
| 1563 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1564 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1565 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1566 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1567 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1568 | echo "configure:1569: checking for a BSD compatible install" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1569 | if test -z "$INSTALL"; then |
| 1570 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 1571 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1572 | else |
| 1573 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
| 1574 | for ac_dir in $PATH; do |
| 1575 | # Account for people who put trailing slashes in PATH elements. |
| 1576 | case "$ac_dir/" in |
| 1577 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
| 1578 | *) |
| 1579 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1580 | # Don't use installbsd from OSF since it installs stuff as root |
| 1581 | # by default. |
| 1582 | for ac_prog in ginstall scoinst install; do |
| 1583 | if test -f $ac_dir/$ac_prog; then |
| 1584 | if test $ac_prog = install && |
| 1585 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
| 1586 | # AIX install. It has an incompatible calling convention. |
| 1587 | : |
| 1588 | else |
| 1589 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 1590 | break 2 |
| 1591 | fi |
| 1592 | fi |
| 1593 | done |
| 1594 | ;; |
| 1595 | esac |
| 1596 | done |
| 1597 | IFS="$ac_save_IFS" |
| 1598 | |
| 1599 | fi |
| 1600 | if test "${ac_cv_path_install+set}" = set; then |
| 1601 | INSTALL="$ac_cv_path_install" |
| 1602 | else |
| 1603 | # As a last resort, use the slow shell script. We don't cache a |
| 1604 | # path for INSTALL within a source directory, because that will |
| 1605 | # break other packages using the cache if that directory is |
| 1606 | # removed, or if the path is relative. |
| 1607 | INSTALL="$ac_install_sh" |
| 1608 | fi |
| 1609 | fi |
| 1610 | echo "$ac_t""$INSTALL" 1>&6 |
| 1611 | |
| 1612 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1613 | # It thinks the first close brace ends the variable substitution. |
| 1614 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1615 | |
| 1616 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
| 1617 | |
| 1618 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1619 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1620 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1621 | # Not every filesystem supports hard links |
| 1622 | |
| 1623 | if test -z "$LN" ; then |
| 1624 | case $ac_sys_system in |
| 1625 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1626 | CYGWIN*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1627 | *) LN=ln;; |
| 1628 | esac |
| 1629 | fi |
| 1630 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1631 | # Check for --with-pydebug |
| 1632 | echo $ac_n "checking for --with-pydebug""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1633 | echo "configure:1634: checking for --with-pydebug" >&5 |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1634 | # Check whether --with-pydebug or --without-pydebug was given. |
| 1635 | if test "${with_pydebug+set}" = set; then |
| 1636 | withval="$with_pydebug" |
| 1637 | |
| 1638 | if test "$withval" != no |
| 1639 | then cat >> confdefs.h <<\EOF |
| 1640 | #define Py_DEBUG 1 |
| 1641 | EOF |
| 1642 | echo "$ac_t""yes" 1>&6; Py_DEBUG='true' |
| 1643 | else echo "$ac_t""no" 1>&6; Py_DEBUG='false' |
| 1644 | fi |
| 1645 | else |
| 1646 | echo "$ac_t""no" 1>&6 |
| 1647 | fi |
| 1648 | |
| 1649 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1650 | # Optimizer/debugger flags |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1651 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1652 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1653 | then |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 1654 | case $GCC in |
| 1655 | yes) |
| 1656 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1657 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1658 | if test "$Py_DEBUG" = 'true' ; then |
| 1659 | # Optimization messes up debuggers, so turn it off for |
| 1660 | # debug builds. |
| 1661 | OPT="-g -Wall -Wstrict-prototypes" |
| 1662 | else |
| 1663 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
| 1664 | fi;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1665 | *) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1666 | OPT="-O3 -Wall -Wstrict-prototypes";; |
| 1667 | esac |
| 1668 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1669 | *) |
| 1670 | case $ac_sys_system in |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 1671 | OpenUNIX*|UnixWare*) |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1672 | OPT="-O -K pentium,host,inline,loop_unroll,alloca ";; |
| 1673 | *) |
| 1674 | OPT="-O";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1675 | esac |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1676 | esac |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 1677 | case $ac_sys_system in |
| 1678 | Darwin*) |
| 1679 | OPT="$OPT -no-cpp-precomp";; |
| 1680 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1681 | fi |
| 1682 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 1683 | if test "$Py_DEBUG" = 'true'; then |
| 1684 | : |
| 1685 | else |
| 1686 | OPT="-DNDEBUG $OPT" |
| 1687 | fi |
| 1688 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1689 | # The current (beta) Monterey compiler dies with optimizations |
| 1690 | case $ac_sys_system in |
| 1691 | Monterey*) OPT="";; |
| 1692 | esac |
| 1693 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1694 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 1695 | then |
| 1696 | OPT="$OPT $ac_arch_flags" |
| 1697 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1698 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1699 | echo $ac_n "checking whether $CC accepts -OPT:Olimit=0""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1700 | echo "configure:1701: checking whether $CC accepts -OPT:Olimit=0" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1701 | 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] | 1702 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1703 | else |
| 1704 | ac_save_cc="$CC" |
| 1705 | CC="$CC -OPT:Olimit=0" |
| 1706 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 1707 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1708 | else |
| 1709 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1710 | #line 1711 "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1711 | #include "confdefs.h" |
| 1712 | int main() { return 0; } |
| 1713 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1714 | if { (eval echo configure:1715: \"$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] | 1715 | then |
| 1716 | ac_cv_opt_olimit_ok=yes |
| 1717 | else |
| 1718 | echo "configure: failed program was:" >&5 |
| 1719 | cat conftest.$ac_ext >&5 |
| 1720 | rm -fr conftest* |
| 1721 | ac_cv_opt_olimit_ok=no |
| 1722 | fi |
| 1723 | rm -fr conftest* |
| 1724 | fi |
| 1725 | |
| 1726 | CC="$ac_save_cc" |
| 1727 | fi |
| 1728 | |
| 1729 | echo "$ac_t""$ac_cv_opt_olimit_ok" 1>&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 1730 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 1731 | case $ac_sys_system in |
| 1732 | Darwin*) OPT="$OPT" ;; |
| 1733 | *) OPT="$OPT -OPT:Olimit=0";; |
| 1734 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1735 | else |
| 1736 | echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1737 | echo "configure:1738: checking whether $CC accepts -Olimit 1500" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1738 | if eval "test \"`echo '$''{'ac_cv_olimit_ok'+set}'`\" = set"; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1739 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1740 | else |
| 1741 | ac_save_cc="$CC" |
| 1742 | CC="$CC -Olimit 1500" |
| 1743 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 1744 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1745 | else |
| 1746 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1747 | #line 1748 "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1748 | #include "confdefs.h" |
| 1749 | int main() { return 0; } |
| 1750 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1751 | if { (eval echo configure:1752: \"$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] | 1752 | then |
| 1753 | ac_cv_olimit_ok=yes |
| 1754 | else |
| 1755 | echo "configure: failed program was:" >&5 |
| 1756 | cat conftest.$ac_ext >&5 |
| 1757 | rm -fr conftest* |
| 1758 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 1759 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1760 | rm -fr conftest* |
| 1761 | fi |
| 1762 | |
| 1763 | CC="$ac_save_cc" |
| 1764 | fi |
| 1765 | |
| 1766 | echo "$ac_t""$ac_cv_olimit_ok" 1>&6 |
| 1767 | if test $ac_cv_olimit_ok = yes; then |
| 1768 | OPT="$OPT -Olimit 1500" |
| 1769 | fi |
| 1770 | fi |
| 1771 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1772 | # On some compilers, pthreads are available without further options |
| 1773 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 1774 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 1775 | # So we have to see first whether pthreads are available without |
| 1776 | # options before we can check whether -Kpthread improves anything. |
| 1777 | echo $ac_n "checking whether pthreads are available without options""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1778 | echo "configure:1779: checking whether pthreads are available without options" >&5 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1779 | if eval "test \"`echo '$''{'ac_cv_pthread_is_default'+set}'`\" = set"; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1780 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1781 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1782 | if test "$cross_compiling" = yes; then |
| 1783 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 1784 | else |
| 1785 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1786 | #line 1787 "configure" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1787 | #include "confdefs.h" |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 1788 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1789 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 1790 | |
| 1791 | void* routine(void* p){return NULL;} |
| 1792 | |
| 1793 | int main(){ |
| 1794 | pthread_t p; |
| 1795 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 1796 | return 1; |
| 1797 | return 0; |
| 1798 | } |
| 1799 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1800 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1801 | if { (eval echo configure:1802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 1802 | then |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1803 | ac_cv_pthread_is_default=yes |
| 1804 | else |
| 1805 | echo "configure: failed program was:" >&5 |
| 1806 | cat conftest.$ac_ext >&5 |
| 1807 | rm -fr conftest* |
| 1808 | ac_cv_pthread_is_default=no |
| 1809 | fi |
| 1810 | rm -fr conftest* |
| 1811 | fi |
| 1812 | |
| 1813 | |
| 1814 | fi |
| 1815 | |
| 1816 | echo "$ac_t""$ac_cv_pthread_is_default" 1>&6 |
| 1817 | |
| 1818 | |
| 1819 | if test $ac_cv_pthread_is_default = yes |
| 1820 | then |
| 1821 | ac_cv_kpthread=no |
| 1822 | else |
| 1823 | # -Kpthread, if available, provides the right #defines |
| 1824 | # and linker options to make pthread_create available |
| 1825 | # Some compilers won't report that they do not support -Kpthread, |
| 1826 | # so we need to run a program to see whether it really made the |
| 1827 | # function available. |
| 1828 | echo $ac_n "checking whether $CC accepts -Kpthread""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1829 | echo "configure:1830: checking whether $CC accepts -Kpthread" >&5 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1830 | if eval "test \"`echo '$''{'ac_cv_kpthread'+set}'`\" = set"; then |
| 1831 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1832 | else |
| 1833 | ac_save_cc="$CC" |
| 1834 | CC="$CC -Kpthread" |
| 1835 | if test "$cross_compiling" = yes; then |
| 1836 | ac_cv_kpthread=no |
| 1837 | else |
| 1838 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1839 | #line 1840 "configure" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1840 | #include "confdefs.h" |
| 1841 | |
| 1842 | #include <pthread.h> |
| 1843 | |
| 1844 | void* routine(void* p){return NULL;} |
| 1845 | |
| 1846 | int main(){ |
| 1847 | pthread_t p; |
| 1848 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 1849 | return 1; |
| 1850 | return 0; |
| 1851 | } |
| 1852 | |
| 1853 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1854 | if { (eval echo configure:1855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1855 | then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1856 | ac_cv_kpthread=yes |
| 1857 | else |
| 1858 | echo "configure: failed program was:" >&5 |
| 1859 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 1860 | rm -fr conftest* |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1861 | ac_cv_kpthread=no |
| 1862 | fi |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 1863 | rm -fr conftest* |
| 1864 | fi |
| 1865 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1866 | CC="$ac_save_cc" |
| 1867 | fi |
| 1868 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1869 | echo "$ac_t""$ac_cv_kpthread" 1>&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1870 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1871 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1872 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1873 | # checks for header files |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1874 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1875 | echo "configure:1876: checking for ANSI C header files" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1876 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1877 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1878 | else |
| 1879 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1880 | #line 1881 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1881 | #include "confdefs.h" |
| 1882 | #include <stdlib.h> |
| 1883 | #include <stdarg.h> |
| 1884 | #include <string.h> |
| 1885 | #include <float.h> |
| 1886 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1887 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1888 | { (eval echo configure:1889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1889 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1890 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1891 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1892 | ac_cv_header_stdc=yes |
| 1893 | else |
| 1894 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1895 | echo "configure: failed program was:" >&5 |
| 1896 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1897 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1898 | ac_cv_header_stdc=no |
| 1899 | fi |
| 1900 | rm -f conftest* |
| 1901 | |
| 1902 | if test $ac_cv_header_stdc = yes; then |
| 1903 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 1904 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1905 | #line 1906 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1906 | #include "confdefs.h" |
| 1907 | #include <string.h> |
| 1908 | EOF |
| 1909 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1910 | egrep "memchr" >/dev/null 2>&1; then |
| 1911 | : |
| 1912 | else |
| 1913 | rm -rf conftest* |
| 1914 | ac_cv_header_stdc=no |
| 1915 | fi |
| 1916 | rm -f conftest* |
| 1917 | |
| 1918 | fi |
| 1919 | |
| 1920 | if test $ac_cv_header_stdc = yes; then |
| 1921 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 1922 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1923 | #line 1924 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1924 | #include "confdefs.h" |
| 1925 | #include <stdlib.h> |
| 1926 | EOF |
| 1927 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1928 | egrep "free" >/dev/null 2>&1; then |
| 1929 | : |
| 1930 | else |
| 1931 | rm -rf conftest* |
| 1932 | ac_cv_header_stdc=no |
| 1933 | fi |
| 1934 | rm -f conftest* |
| 1935 | |
| 1936 | fi |
| 1937 | |
| 1938 | if test $ac_cv_header_stdc = yes; then |
| 1939 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 1940 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1941 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1942 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1943 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1944 | #line 1945 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1945 | #include "confdefs.h" |
| 1946 | #include <ctype.h> |
| 1947 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 1948 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1949 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1950 | int main () { int i; for (i = 0; i < 256; i++) |
| 1951 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 1952 | exit (0); } |
| 1953 | |
| 1954 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1955 | if { (eval echo configure:1956: \"$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] | 1956 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1957 | : |
| 1958 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1959 | echo "configure: failed program was:" >&5 |
| 1960 | cat conftest.$ac_ext >&5 |
| 1961 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1962 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1963 | fi |
| 1964 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1965 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1966 | |
| 1967 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1968 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1969 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1970 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1971 | if test $ac_cv_header_stdc = yes; then |
| 1972 | cat >> confdefs.h <<\EOF |
| 1973 | #define STDC_HEADERS 1 |
| 1974 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1975 | |
| 1976 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1977 | |
Guido van Rossum | a6535fd | 2001-10-18 19:44:10 +0000 | [diff] [blame] | 1978 | for ac_hdr in dlfcn.h fcntl.h grp.h limits.h langinfo.h locale.h \ |
Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame] | 1979 | ncurses.h poll.h pthread.h \ |
Eric S. Raymond | d2d75d3 | 2001-01-16 15:26:34 +0000 | [diff] [blame] | 1980 | 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] | 1981 | 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] | 1982 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \ |
Martin v. Löwis | 6953233 | 2001-10-13 09:12:41 +0000 | [diff] [blame] | 1983 | sys/un.h sys/utsname.h sys/wait.h pty.h term.h libutil.h \ |
Martin v. Löwis | f24b2f3 | 2001-08-10 20:29:40 +0000 | [diff] [blame] | 1984 | ndbm.h db1/ndbm.h gdbm/ndbm.h sys/resource.h netpacket/packet.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1985 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1986 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1987 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1988 | echo "configure:1989: checking for $ac_hdr" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 1989 | 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] | 1990 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1991 | else |
| 1992 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1993 | #line 1994 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1994 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1995 | #include <$ac_hdr> |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1996 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1997 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 1998 | { (eval echo configure:1999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1999 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2000 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2001 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2002 | eval "ac_cv_header_$ac_safe=yes" |
| 2003 | else |
| 2004 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2005 | echo "configure: failed program was:" >&5 |
| 2006 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2007 | rm -rf conftest* |
| 2008 | eval "ac_cv_header_$ac_safe=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2009 | fi |
| 2010 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2011 | fi |
| 2012 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2013 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2014 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2015 | cat >> confdefs.h <<EOF |
| 2016 | #define $ac_tr_hdr 1 |
| 2017 | EOF |
| 2018 | |
| 2019 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2020 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2021 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2022 | done |
| 2023 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2024 | ac_header_dirent=no |
| 2025 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
| 2026 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2027 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2028 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2029 | echo "configure:2030: checking for $ac_hdr that defines DIR" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2030 | 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] | 2031 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2032 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2033 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2034 | #line 2035 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2035 | #include "confdefs.h" |
| 2036 | #include <sys/types.h> |
| 2037 | #include <$ac_hdr> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2038 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2039 | DIR *dirp = 0; |
| 2040 | ; return 0; } |
| 2041 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2042 | if { (eval echo configure:2043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2043 | rm -rf conftest* |
| 2044 | eval "ac_cv_header_dirent_$ac_safe=yes" |
| 2045 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2046 | echo "configure: failed program was:" >&5 |
| 2047 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2048 | rm -rf conftest* |
| 2049 | eval "ac_cv_header_dirent_$ac_safe=no" |
| 2050 | fi |
| 2051 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2052 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2053 | 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] | 2054 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2055 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2056 | cat >> confdefs.h <<EOF |
| 2057 | #define $ac_tr_hdr 1 |
| 2058 | EOF |
| 2059 | ac_header_dirent=$ac_hdr; break |
| 2060 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2061 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2062 | fi |
| 2063 | done |
| 2064 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 2065 | if test $ac_header_dirent = dirent.h; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2066 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2067 | echo "configure:2068: checking for opendir in -ldir" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2068 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2069 | 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] | 2070 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2071 | else |
| 2072 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2073 | LIBS="-ldir $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2074 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2075 | #line 2076 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2076 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2077 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2078 | /* We use char because int might match the return type of a gcc2 |
| 2079 | builtin and then its argument prototype would still apply. */ |
| 2080 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2081 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2082 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2083 | opendir() |
| 2084 | ; return 0; } |
| 2085 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2086 | if { (eval echo configure:2087: \"$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] | 2087 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2088 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2089 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2090 | echo "configure: failed program was:" >&5 |
| 2091 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2092 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2093 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2094 | fi |
| 2095 | rm -f conftest* |
| 2096 | LIBS="$ac_save_LIBS" |
| 2097 | |
| 2098 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2099 | 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] | 2100 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2101 | LIBS="$LIBS -ldir" |
| 2102 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2103 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2104 | fi |
| 2105 | |
| 2106 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2107 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2108 | echo "configure:2109: checking for opendir in -lx" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2109 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2110 | 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] | 2111 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2112 | else |
| 2113 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2114 | LIBS="-lx $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2115 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2116 | #line 2117 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2117 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2118 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2119 | /* We use char because int might match the return type of a gcc2 |
| 2120 | builtin and then its argument prototype would still apply. */ |
| 2121 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2122 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2123 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2124 | opendir() |
| 2125 | ; return 0; } |
| 2126 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2127 | if { (eval echo configure:2128: \"$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] | 2128 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2129 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2130 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2131 | echo "configure: failed program was:" >&5 |
| 2132 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2133 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2134 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2135 | fi |
| 2136 | rm -f conftest* |
| 2137 | LIBS="$ac_save_LIBS" |
| 2138 | |
| 2139 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2140 | 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] | 2141 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2142 | LIBS="$LIBS -lx" |
| 2143 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2144 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2145 | fi |
| 2146 | |
| 2147 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2148 | |
| 2149 | |
| 2150 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2151 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2152 | echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2153 | echo "configure:2154: checking for clock_t in time.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2154 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2155 | #line 2156 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2156 | #include "confdefs.h" |
| 2157 | #include <time.h> |
| 2158 | EOF |
| 2159 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2160 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2161 | rm -rf conftest* |
| 2162 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2163 | else |
| 2164 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2165 | cat >> confdefs.h <<\EOF |
| 2166 | #define clock_t long |
| 2167 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2168 | |
| 2169 | fi |
| 2170 | rm -f conftest* |
| 2171 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2172 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2173 | |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 2174 | # Two defines needed to enable largefile support on various platforms |
| 2175 | # These may affect some typedefs |
| 2176 | cat >> confdefs.h <<\EOF |
| 2177 | #define _LARGEFILE_SOURCE 1 |
| 2178 | EOF |
| 2179 | |
| 2180 | cat >> confdefs.h <<\EOF |
| 2181 | #define _FILE_OFFSET_BITS 64 |
| 2182 | EOF |
| 2183 | |
| 2184 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2185 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 2186 | cat >> confdefs.h <<\EOF |
| 2187 | #if defined(SCO_DS) |
| 2188 | #undef _OFF_T |
| 2189 | #endif |
| 2190 | EOF |
| 2191 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2192 | # Type availability checks |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2193 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2194 | echo "configure:2195: checking for mode_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2195 | 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] | 2196 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2197 | else |
| 2198 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2199 | #line 2200 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2200 | #include "confdefs.h" |
| 2201 | #include <sys/types.h> |
| 2202 | #if STDC_HEADERS |
| 2203 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2204 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2205 | #endif |
| 2206 | EOF |
| 2207 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2208 | 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] | 2209 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2210 | ac_cv_type_mode_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2211 | else |
| 2212 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2213 | ac_cv_type_mode_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2214 | fi |
| 2215 | rm -f conftest* |
| 2216 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2217 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2218 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
| 2219 | if test $ac_cv_type_mode_t = no; then |
| 2220 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2221 | #define mode_t int |
| 2222 | EOF |
| 2223 | |
| 2224 | fi |
| 2225 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2226 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2227 | echo "configure:2228: checking for off_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2228 | 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] | 2229 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2230 | else |
| 2231 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2232 | #line 2233 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2233 | #include "confdefs.h" |
| 2234 | #include <sys/types.h> |
| 2235 | #if STDC_HEADERS |
| 2236 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2237 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2238 | #endif |
| 2239 | EOF |
| 2240 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2241 | 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] | 2242 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2243 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2244 | else |
| 2245 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2246 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2247 | fi |
| 2248 | rm -f conftest* |
| 2249 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2250 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2251 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
| 2252 | if test $ac_cv_type_off_t = no; then |
| 2253 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2254 | #define off_t long |
| 2255 | EOF |
| 2256 | |
| 2257 | fi |
| 2258 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2259 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2260 | echo "configure:2261: checking for pid_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2261 | 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] | 2262 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2263 | else |
| 2264 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2265 | #line 2266 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2266 | #include "confdefs.h" |
| 2267 | #include <sys/types.h> |
| 2268 | #if STDC_HEADERS |
| 2269 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2270 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2271 | #endif |
| 2272 | EOF |
| 2273 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2274 | 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] | 2275 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2276 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2277 | else |
| 2278 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2279 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2280 | fi |
| 2281 | rm -f conftest* |
| 2282 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2283 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2284 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
| 2285 | if test $ac_cv_type_pid_t = no; then |
| 2286 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2287 | #define pid_t int |
| 2288 | EOF |
| 2289 | |
| 2290 | fi |
| 2291 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2292 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2293 | echo "configure:2294: checking return type of signal handlers" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2294 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2295 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2296 | else |
| 2297 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2298 | #line 2299 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2299 | #include "confdefs.h" |
| 2300 | #include <sys/types.h> |
| 2301 | #include <signal.h> |
| 2302 | #ifdef signal |
| 2303 | #undef signal |
| 2304 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2305 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2306 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 2307 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2308 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2309 | #endif |
| 2310 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2311 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2312 | int i; |
| 2313 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2314 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2315 | if { (eval echo configure:2316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2316 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2317 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2318 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2319 | echo "configure: failed program was:" >&5 |
| 2320 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2321 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2322 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2323 | fi |
| 2324 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2325 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2326 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2327 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2328 | cat >> confdefs.h <<EOF |
| 2329 | #define RETSIGTYPE $ac_cv_type_signal |
| 2330 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2331 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2332 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2333 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2334 | echo "configure:2335: checking for size_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2335 | 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] | 2336 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2337 | else |
| 2338 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2339 | #line 2340 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2340 | #include "confdefs.h" |
| 2341 | #include <sys/types.h> |
| 2342 | #if STDC_HEADERS |
| 2343 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2344 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2345 | #endif |
| 2346 | EOF |
| 2347 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2348 | 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] | 2349 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2350 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2351 | else |
| 2352 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2353 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2354 | fi |
| 2355 | rm -f conftest* |
| 2356 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2357 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2358 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
| 2359 | if test $ac_cv_type_size_t = no; then |
| 2360 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2361 | #define size_t unsigned |
| 2362 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2363 | |
| 2364 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2365 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2366 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2367 | echo "configure:2368: checking for uid_t in sys/types.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2368 | 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] | 2369 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2370 | else |
| 2371 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2372 | #line 2373 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2373 | #include "confdefs.h" |
| 2374 | #include <sys/types.h> |
| 2375 | EOF |
| 2376 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2377 | egrep "uid_t" >/dev/null 2>&1; then |
| 2378 | rm -rf conftest* |
| 2379 | ac_cv_type_uid_t=yes |
| 2380 | else |
| 2381 | rm -rf conftest* |
| 2382 | ac_cv_type_uid_t=no |
| 2383 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2384 | rm -f conftest* |
| 2385 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2386 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2387 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2388 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2389 | if test $ac_cv_type_uid_t = no; then |
| 2390 | cat >> confdefs.h <<\EOF |
| 2391 | #define uid_t int |
| 2392 | EOF |
| 2393 | |
| 2394 | cat >> confdefs.h <<\EOF |
| 2395 | #define gid_t int |
| 2396 | EOF |
| 2397 | |
| 2398 | fi |
| 2399 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2400 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2401 | # Sizes of various common basic types |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2402 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2403 | echo "configure:2404: checking size of int" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2404 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2405 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2406 | else |
| 2407 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 2408 | ac_cv_sizeof_int=4 |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2409 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2410 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2411 | #line 2412 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2412 | #include "confdefs.h" |
| 2413 | #include <stdio.h> |
| 2414 | main() |
| 2415 | { |
| 2416 | FILE *f=fopen("conftestval", "w"); |
| 2417 | if (!f) exit(1); |
| 2418 | fprintf(f, "%d\n", sizeof(int)); |
| 2419 | exit(0); |
| 2420 | } |
| 2421 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2422 | if { (eval echo configure:2423: \"$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] | 2423 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2424 | ac_cv_sizeof_int=`cat conftestval` |
| 2425 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2426 | echo "configure: failed program was:" >&5 |
| 2427 | cat conftest.$ac_ext >&5 |
| 2428 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2429 | ac_cv_sizeof_int=0 |
| 2430 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2431 | rm -fr conftest* |
| 2432 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2433 | |
| 2434 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2435 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 2436 | cat >> confdefs.h <<EOF |
| 2437 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 2438 | EOF |
| 2439 | |
| 2440 | |
| 2441 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2442 | echo "configure:2443: checking size of long" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2443 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2444 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2445 | else |
| 2446 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 2447 | ac_cv_sizeof_long=4 |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2448 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2449 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2450 | #line 2451 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2451 | #include "confdefs.h" |
| 2452 | #include <stdio.h> |
| 2453 | main() |
| 2454 | { |
| 2455 | FILE *f=fopen("conftestval", "w"); |
| 2456 | if (!f) exit(1); |
| 2457 | fprintf(f, "%d\n", sizeof(long)); |
| 2458 | exit(0); |
| 2459 | } |
| 2460 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2461 | if { (eval echo configure:2462: \"$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] | 2462 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2463 | ac_cv_sizeof_long=`cat conftestval` |
| 2464 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2465 | echo "configure: failed program was:" >&5 |
| 2466 | cat conftest.$ac_ext >&5 |
| 2467 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2468 | ac_cv_sizeof_long=0 |
| 2469 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2470 | rm -fr conftest* |
| 2471 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2472 | |
| 2473 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2474 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
| 2475 | cat >> confdefs.h <<EOF |
| 2476 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 2477 | EOF |
| 2478 | |
| 2479 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2480 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2481 | echo "configure:2482: checking size of void *" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2482 | 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] | 2483 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2484 | else |
| 2485 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 2486 | ac_cv_sizeof_void_p=4 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2487 | else |
| 2488 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2489 | #line 2490 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2490 | #include "confdefs.h" |
| 2491 | #include <stdio.h> |
| 2492 | main() |
| 2493 | { |
| 2494 | FILE *f=fopen("conftestval", "w"); |
| 2495 | if (!f) exit(1); |
| 2496 | fprintf(f, "%d\n", sizeof(void *)); |
| 2497 | exit(0); |
| 2498 | } |
| 2499 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2500 | if { (eval echo configure:2501: \"$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] | 2501 | then |
| 2502 | ac_cv_sizeof_void_p=`cat conftestval` |
| 2503 | else |
| 2504 | echo "configure: failed program was:" >&5 |
| 2505 | cat conftest.$ac_ext >&5 |
| 2506 | rm -fr conftest* |
| 2507 | ac_cv_sizeof_void_p=0 |
| 2508 | fi |
| 2509 | rm -fr conftest* |
| 2510 | fi |
| 2511 | |
| 2512 | fi |
| 2513 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
| 2514 | cat >> confdefs.h <<EOF |
| 2515 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
| 2516 | EOF |
| 2517 | |
| 2518 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2519 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2520 | echo "configure:2521: checking size of char" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2521 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2522 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2523 | else |
| 2524 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 2525 | ac_cv_sizeof_char=1 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2526 | else |
| 2527 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2528 | #line 2529 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2529 | #include "confdefs.h" |
| 2530 | #include <stdio.h> |
| 2531 | main() |
| 2532 | { |
| 2533 | FILE *f=fopen("conftestval", "w"); |
| 2534 | if (!f) exit(1); |
| 2535 | fprintf(f, "%d\n", sizeof(char)); |
| 2536 | exit(0); |
| 2537 | } |
| 2538 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2539 | if { (eval echo configure:2540: \"$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] | 2540 | then |
| 2541 | ac_cv_sizeof_char=`cat conftestval` |
| 2542 | else |
| 2543 | echo "configure: failed program was:" >&5 |
| 2544 | cat conftest.$ac_ext >&5 |
| 2545 | rm -fr conftest* |
| 2546 | ac_cv_sizeof_char=0 |
| 2547 | fi |
| 2548 | rm -fr conftest* |
| 2549 | fi |
| 2550 | |
| 2551 | fi |
| 2552 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
| 2553 | cat >> confdefs.h <<EOF |
| 2554 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
| 2555 | EOF |
| 2556 | |
| 2557 | |
| 2558 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2559 | echo "configure:2560: checking size of short" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2560 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2561 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2562 | else |
| 2563 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 2564 | ac_cv_sizeof_short=2 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2565 | else |
| 2566 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2567 | #line 2568 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2568 | #include "confdefs.h" |
| 2569 | #include <stdio.h> |
| 2570 | main() |
| 2571 | { |
| 2572 | FILE *f=fopen("conftestval", "w"); |
| 2573 | if (!f) exit(1); |
| 2574 | fprintf(f, "%d\n", sizeof(short)); |
| 2575 | exit(0); |
| 2576 | } |
| 2577 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2578 | if { (eval echo configure:2579: \"$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] | 2579 | then |
| 2580 | ac_cv_sizeof_short=`cat conftestval` |
| 2581 | else |
| 2582 | echo "configure: failed program was:" >&5 |
| 2583 | cat conftest.$ac_ext >&5 |
| 2584 | rm -fr conftest* |
| 2585 | ac_cv_sizeof_short=0 |
| 2586 | fi |
| 2587 | rm -fr conftest* |
| 2588 | fi |
| 2589 | |
| 2590 | fi |
| 2591 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
| 2592 | cat >> confdefs.h <<EOF |
| 2593 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 2594 | EOF |
| 2595 | |
| 2596 | |
| 2597 | echo $ac_n "checking size of float""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2598 | echo "configure:2599: checking size of float" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2599 | if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2600 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2601 | else |
| 2602 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 2603 | ac_cv_sizeof_float=4 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2604 | else |
| 2605 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2606 | #line 2607 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2607 | #include "confdefs.h" |
| 2608 | #include <stdio.h> |
| 2609 | main() |
| 2610 | { |
| 2611 | FILE *f=fopen("conftestval", "w"); |
| 2612 | if (!f) exit(1); |
| 2613 | fprintf(f, "%d\n", sizeof(float)); |
| 2614 | exit(0); |
| 2615 | } |
| 2616 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2617 | if { (eval echo configure:2618: \"$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] | 2618 | then |
| 2619 | ac_cv_sizeof_float=`cat conftestval` |
| 2620 | else |
| 2621 | echo "configure: failed program was:" >&5 |
| 2622 | cat conftest.$ac_ext >&5 |
| 2623 | rm -fr conftest* |
| 2624 | ac_cv_sizeof_float=0 |
| 2625 | fi |
| 2626 | rm -fr conftest* |
| 2627 | fi |
| 2628 | |
| 2629 | fi |
| 2630 | echo "$ac_t""$ac_cv_sizeof_float" 1>&6 |
| 2631 | cat >> confdefs.h <<EOF |
| 2632 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
| 2633 | EOF |
| 2634 | |
| 2635 | |
| 2636 | echo $ac_n "checking size of double""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2637 | echo "configure:2638: checking size of double" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2638 | if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2639 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2640 | else |
| 2641 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 2642 | ac_cv_sizeof_double=8 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2643 | else |
| 2644 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2645 | #line 2646 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2646 | #include "confdefs.h" |
| 2647 | #include <stdio.h> |
| 2648 | main() |
| 2649 | { |
| 2650 | FILE *f=fopen("conftestval", "w"); |
| 2651 | if (!f) exit(1); |
| 2652 | fprintf(f, "%d\n", sizeof(double)); |
| 2653 | exit(0); |
| 2654 | } |
| 2655 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2656 | if { (eval echo configure:2657: \"$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] | 2657 | then |
| 2658 | ac_cv_sizeof_double=`cat conftestval` |
| 2659 | else |
| 2660 | echo "configure: failed program was:" >&5 |
| 2661 | cat conftest.$ac_ext >&5 |
| 2662 | rm -fr conftest* |
| 2663 | ac_cv_sizeof_double=0 |
| 2664 | fi |
| 2665 | rm -fr conftest* |
| 2666 | fi |
| 2667 | |
| 2668 | fi |
| 2669 | echo "$ac_t""$ac_cv_sizeof_double" 1>&6 |
| 2670 | cat >> confdefs.h <<EOF |
| 2671 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
| 2672 | EOF |
| 2673 | |
| 2674 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2675 | echo $ac_n "checking size of fpos_t""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2676 | echo "configure:2677: checking size of fpos_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2677 | 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] | 2678 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2679 | else |
| 2680 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 2681 | ac_cv_sizeof_fpos_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2682 | else |
| 2683 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2684 | #line 2685 "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2685 | #include "confdefs.h" |
| 2686 | #include <stdio.h> |
| 2687 | main() |
| 2688 | { |
| 2689 | FILE *f=fopen("conftestval", "w"); |
| 2690 | if (!f) exit(1); |
| 2691 | fprintf(f, "%d\n", sizeof(fpos_t)); |
| 2692 | exit(0); |
| 2693 | } |
| 2694 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2695 | if { (eval echo configure:2696: \"$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] | 2696 | then |
| 2697 | ac_cv_sizeof_fpos_t=`cat conftestval` |
| 2698 | else |
| 2699 | echo "configure: failed program was:" >&5 |
| 2700 | cat conftest.$ac_ext >&5 |
| 2701 | rm -fr conftest* |
| 2702 | ac_cv_sizeof_fpos_t=0 |
| 2703 | fi |
| 2704 | rm -fr conftest* |
| 2705 | fi |
| 2706 | |
| 2707 | fi |
| 2708 | echo "$ac_t""$ac_cv_sizeof_fpos_t" 1>&6 |
| 2709 | cat >> confdefs.h <<EOF |
| 2710 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
| 2711 | EOF |
| 2712 | |
| 2713 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2714 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2715 | echo $ac_n "checking for long long support""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2716 | echo "configure:2717: checking for long long support" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2717 | have_long_long=no |
| 2718 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2719 | #line 2720 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2720 | #include "confdefs.h" |
| 2721 | |
| 2722 | int main() { |
| 2723 | long long x; x = (long long)0; |
| 2724 | ; return 0; } |
| 2725 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2726 | if { (eval echo configure:2727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2727 | rm -rf conftest* |
| 2728 | cat >> confdefs.h <<\EOF |
| 2729 | #define HAVE_LONG_LONG 1 |
| 2730 | EOF |
| 2731 | have_long_long=yes |
| 2732 | else |
| 2733 | echo "configure: failed program was:" >&5 |
| 2734 | cat conftest.$ac_ext >&5 |
| 2735 | fi |
| 2736 | rm -f conftest* |
| 2737 | echo "$ac_t""$have_long_long" 1>&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2738 | if test "$have_long_long" = yes ; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2739 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2740 | echo "configure:2741: checking size of long long" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2741 | 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] | 2742 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2743 | else |
| 2744 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 2745 | ac_cv_sizeof_long_long=8 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2746 | else |
| 2747 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2748 | #line 2749 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2749 | #include "confdefs.h" |
| 2750 | #include <stdio.h> |
| 2751 | main() |
| 2752 | { |
| 2753 | FILE *f=fopen("conftestval", "w"); |
| 2754 | if (!f) exit(1); |
| 2755 | fprintf(f, "%d\n", sizeof(long long)); |
| 2756 | exit(0); |
| 2757 | } |
| 2758 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2759 | if { (eval echo configure:2760: \"$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] | 2760 | then |
| 2761 | ac_cv_sizeof_long_long=`cat conftestval` |
| 2762 | else |
| 2763 | echo "configure: failed program was:" >&5 |
| 2764 | cat conftest.$ac_ext >&5 |
| 2765 | rm -fr conftest* |
| 2766 | ac_cv_sizeof_long_long=0 |
| 2767 | fi |
| 2768 | rm -fr conftest* |
| 2769 | fi |
| 2770 | |
| 2771 | fi |
| 2772 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
| 2773 | cat >> confdefs.h <<EOF |
| 2774 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 2775 | EOF |
| 2776 | |
| 2777 | |
| 2778 | fi |
| 2779 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2780 | echo $ac_n "checking for uintptr_t support""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2781 | echo "configure:2782: checking for uintptr_t support" >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2782 | have_uintptr_t=no |
| 2783 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2784 | #line 2785 "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2785 | #include "confdefs.h" |
| 2786 | |
| 2787 | int main() { |
| 2788 | uintptr_t x; x = (uintptr_t)0; |
| 2789 | ; return 0; } |
| 2790 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2791 | if { (eval echo configure:2792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2792 | rm -rf conftest* |
| 2793 | cat >> confdefs.h <<\EOF |
| 2794 | #define HAVE_UINTPTR_T 1 |
| 2795 | EOF |
| 2796 | have_uintptr_t=yes |
| 2797 | else |
| 2798 | echo "configure: failed program was:" >&5 |
| 2799 | cat conftest.$ac_ext >&5 |
| 2800 | fi |
| 2801 | rm -f conftest* |
| 2802 | echo "$ac_t""$have_uintptr_t" 1>&6 |
| 2803 | if test "$have_uintptr_t" = yes ; then |
| 2804 | echo $ac_n "checking size of uintptr_t""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2805 | echo "configure:2806: checking size of uintptr_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2806 | if eval "test \"`echo '$''{'ac_cv_sizeof_uintptr_t'+set}'`\" = set"; then |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2807 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2808 | else |
| 2809 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 2810 | ac_cv_sizeof_uintptr_t=4 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2811 | else |
| 2812 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2813 | #line 2814 "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2814 | #include "confdefs.h" |
| 2815 | #include <stdio.h> |
| 2816 | main() |
| 2817 | { |
| 2818 | FILE *f=fopen("conftestval", "w"); |
| 2819 | if (!f) exit(1); |
| 2820 | fprintf(f, "%d\n", sizeof(uintptr_t)); |
| 2821 | exit(0); |
| 2822 | } |
| 2823 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2824 | if { (eval echo configure:2825: \"$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] | 2825 | then |
| 2826 | ac_cv_sizeof_uintptr_t=`cat conftestval` |
| 2827 | else |
| 2828 | echo "configure: failed program was:" >&5 |
| 2829 | cat conftest.$ac_ext >&5 |
| 2830 | rm -fr conftest* |
| 2831 | ac_cv_sizeof_uintptr_t=0 |
| 2832 | fi |
| 2833 | rm -fr conftest* |
| 2834 | fi |
| 2835 | |
| 2836 | fi |
| 2837 | echo "$ac_t""$ac_cv_sizeof_uintptr_t" 1>&6 |
| 2838 | cat >> confdefs.h <<EOF |
| 2839 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
| 2840 | EOF |
| 2841 | |
| 2842 | |
| 2843 | fi |
| 2844 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2845 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
| 2846 | echo $ac_n "checking size of off_t""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2847 | echo "configure:2848: checking size of off_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2848 | 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] | 2849 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2850 | else |
| 2851 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 2852 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2853 | else |
| 2854 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2855 | #line 2856 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2856 | #include "confdefs.h" |
| 2857 | #include <stdio.h> |
| 2858 | #include <sys/types.h> |
| 2859 | main() |
| 2860 | { |
| 2861 | FILE *f=fopen("conftestval", "w"); |
| 2862 | if (!f) exit(1); |
| 2863 | fprintf(f, "%d\n", sizeof(off_t)); |
| 2864 | exit(0); |
| 2865 | } |
| 2866 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2867 | if { (eval echo configure:2868: \"$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] | 2868 | then |
| 2869 | ac_cv_sizeof_off_t=`cat conftestval` |
| 2870 | else |
| 2871 | echo "configure: failed program was:" >&5 |
| 2872 | cat conftest.$ac_ext >&5 |
| 2873 | rm -fr conftest* |
| 2874 | ac_cv_sizeof_off_t=0 |
| 2875 | fi |
| 2876 | rm -fr conftest* |
| 2877 | fi |
| 2878 | |
| 2879 | |
| 2880 | fi |
| 2881 | |
| 2882 | echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6 |
| 2883 | cat >> confdefs.h <<EOF |
| 2884 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 2885 | EOF |
| 2886 | |
| 2887 | |
| 2888 | echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2889 | echo "configure:2890: checking whether to enable large file support" >&5 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2890 | if test "$have_long_long" = yes -a \ |
| 2891 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 2892 | "$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] | 2893 | cat >> confdefs.h <<\EOF |
| 2894 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 2895 | EOF |
| 2896 | |
| 2897 | echo "$ac_t""yes" 1>&6 |
| 2898 | else |
| 2899 | echo "$ac_t""no" 1>&6 |
| 2900 | fi |
| 2901 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2902 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
| 2903 | echo $ac_n "checking size of time_t""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2904 | echo "configure:2905: checking size of time_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2905 | 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] | 2906 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2907 | else |
| 2908 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 2909 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2910 | else |
| 2911 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2912 | #line 2913 "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2913 | #include "confdefs.h" |
| 2914 | #include <stdio.h> |
| 2915 | #include <time.h> |
| 2916 | main() |
| 2917 | { |
| 2918 | FILE *f=fopen("conftestval", "w"); |
| 2919 | if (!f) exit(1); |
| 2920 | fprintf(f, "%d\n", sizeof(time_t)); |
| 2921 | exit(0); |
| 2922 | } |
| 2923 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2924 | if { (eval echo configure:2925: \"$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] | 2925 | then |
| 2926 | ac_cv_sizeof_time_t=`cat conftestval` |
| 2927 | else |
| 2928 | echo "configure: failed program was:" >&5 |
| 2929 | cat conftest.$ac_ext >&5 |
| 2930 | rm -fr conftest* |
| 2931 | ac_cv_sizeof_time_t=0 |
| 2932 | fi |
| 2933 | rm -fr conftest* |
| 2934 | fi |
| 2935 | |
| 2936 | |
| 2937 | fi |
| 2938 | |
| 2939 | echo "$ac_t""$ac_cv_sizeof_time_t" 1>&6 |
| 2940 | cat >> confdefs.h <<EOF |
| 2941 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
| 2942 | EOF |
| 2943 | |
| 2944 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2945 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2946 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 2947 | ac_save_cc="$CC" |
| 2948 | if test "$ac_cv_kpthread" = "yes" |
| 2949 | then CC="$CC -Kpthread" |
| 2950 | fi |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2951 | echo $ac_n "checking for pthread_t""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2952 | echo "configure:2953: checking for pthread_t" >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2953 | have_pthread_t=no |
| 2954 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2955 | #line 2956 "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2956 | #include "confdefs.h" |
| 2957 | #include <pthread.h> |
| 2958 | int main() { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 2959 | pthread_t x; x = *(pthread_t*)0; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2960 | ; return 0; } |
| 2961 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2962 | if { (eval echo configure:2963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2963 | rm -rf conftest* |
| 2964 | have_pthread_t=yes |
| 2965 | else |
| 2966 | echo "configure: failed program was:" >&5 |
| 2967 | cat conftest.$ac_ext >&5 |
| 2968 | fi |
| 2969 | rm -f conftest* |
| 2970 | echo "$ac_t""$have_pthread_t" 1>&6 |
| 2971 | if test "$have_pthread_t" = yes ; then |
| 2972 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
| 2973 | echo $ac_n "checking size of pthread_t""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2974 | echo "configure:2975: checking size of pthread_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2975 | if eval "test \"`echo '$''{'ac_cv_sizeof_pthread_t'+set}'`\" = set"; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2976 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2977 | else |
| 2978 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 2979 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2980 | else |
| 2981 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2982 | #line 2983 "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2983 | #include "confdefs.h" |
| 2984 | #include <stdio.h> |
| 2985 | #include <pthread.h> |
| 2986 | main() |
| 2987 | { |
| 2988 | FILE *f=fopen("conftestval", "w"); |
| 2989 | if (!f) exit(1); |
| 2990 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 2991 | exit(0); |
| 2992 | } |
| 2993 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 2994 | if { (eval echo configure:2995: \"$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] | 2995 | then |
| 2996 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 2997 | else |
| 2998 | echo "configure: failed program was:" >&5 |
| 2999 | cat conftest.$ac_ext >&5 |
| 3000 | rm -fr conftest* |
| 3001 | ac_cv_sizeof_pthread_t=0 |
| 3002 | fi |
| 3003 | rm -fr conftest* |
| 3004 | fi |
| 3005 | |
| 3006 | |
| 3007 | fi |
| 3008 | |
| 3009 | echo "$ac_t""$ac_cv_sizeof_pthread_t" 1>&6 |
| 3010 | cat >> confdefs.h <<EOF |
| 3011 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
| 3012 | EOF |
| 3013 | |
| 3014 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 3015 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3016 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3017 | echo $ac_n "checking for --enable-toolbox-glue""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3018 | echo "configure:3019: checking for --enable-toolbox-glue" >&5 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3019 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 3020 | if test "${enable_toolbox_glue+set}" = set; then |
| 3021 | enableval="$enable_toolbox_glue" |
| 3022 | : |
| 3023 | fi |
| 3024 | |
| 3025 | |
| 3026 | if test -z "$enable_toolbox_glue" |
| 3027 | then |
| 3028 | case $ac_sys_system/$ac_sys_release in |
| 3029 | Darwin/*) |
| 3030 | enable_toolbox_glue="yes";; |
| 3031 | *) |
| 3032 | enable_toolbox_glue="no";; |
| 3033 | esac |
| 3034 | fi |
| 3035 | case "$enable_toolbox_glue" in |
| 3036 | yes) |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 3037 | extra_frameworks="-framework CoreServices -framework Foundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3038 | extra_machdep_objs="Python/mactoolboxglue.o" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 3039 | extra_undefs="-u __dummy -u _PyMac_Error" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3040 | cat >> confdefs.h <<\EOF |
| 3041 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
| 3042 | EOF |
| 3043 | |
| 3044 | ;; |
| 3045 | *) |
| 3046 | extra_frameworks="" |
| 3047 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 3048 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3049 | ;; |
| 3050 | esac |
| 3051 | echo "$ac_t""$enable_toolbox_glue" 1>&6 |
| 3052 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3053 | |
| 3054 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 3055 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 3056 | ns_undef_sym='_environ' |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 3057 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -U $ns_undef_sym" |
| 3058 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 3059 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 3060 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3061 | Darwin/*) |
| 3062 | ns_undef_sym='_environ' |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 3063 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -flat_namespace -U $ns_undef_sym" |
| 3064 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3065 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 3066 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3067 | esac |
| 3068 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3069 | echo $ac_n "checking for --enable-framework""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3070 | echo "configure:3071: checking for --enable-framework" >&5 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3071 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3072 | then |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3073 | OPT="$OPT -fno-common -dynamic" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3074 | # -U __environ is needed since bundles don't have access |
| 3075 | # to crt0 when built but will always be linked against it |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3076 | # -F. is needed to allow linking to the framework while |
| 3077 | # in the build location. |
| 3078 | |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 3079 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 3080 | Darwin/1.3*)LDFLAGS="$LDFLAGS -Wl,-F. -Wl,-U,$ns_undef_sym";; |
| 3081 | Darwin/*)LDFLAGS="$LDFLAGS -Wl,-F. -Wl,-flat_namespace,-U,$ns_undef_sym";; |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 3082 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3083 | cat >> confdefs.h <<\EOF |
| 3084 | #define WITH_NEXT_FRAMEWORK 1 |
| 3085 | EOF |
| 3086 | |
| 3087 | echo "$ac_t""yes" 1>&6 |
| 3088 | else |
| 3089 | echo "$ac_t""no" 1>&6 |
| 3090 | fi |
| 3091 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3092 | echo $ac_n "checking for dyld""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3093 | echo "configure:3094: checking for dyld" >&5 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3094 | case $ac_sys_system/$ac_sys_release in |
| 3095 | Darwin/*) |
| 3096 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3097 | #define WITH_DYLD 1 |
| 3098 | EOF |
| 3099 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3100 | echo "$ac_t""always on for Darwin" 1>&6 |
| 3101 | ;; |
| 3102 | *) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3103 | echo "$ac_t""no" 1>&6 |
| 3104 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3105 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3106 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3107 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3108 | |
| 3109 | |
| 3110 | |
| 3111 | |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3112 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3113 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3114 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3115 | echo $ac_n "checking SO""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3116 | echo "configure:3117: checking SO" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3117 | if test -z "$SO" |
| 3118 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3119 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3120 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3121 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3122 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3123 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3124 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3125 | echo "$ac_t""$SO" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3126 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 3127 | # -- "ld" on SunOS 4.x.x, "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3128 | # (Shared libraries in this instance are shared modules to be loaded into |
| 3129 | # Python, as opposed to building Python itself as a shared library.) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3130 | echo $ac_n "checking LDSHARED""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3131 | echo "configure:3132: checking LDSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3132 | if test -z "$LDSHARED" |
| 3133 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3134 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3135 | AIX*) |
| 3136 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 3137 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3138 | ;; |
| 3139 | BeOS*) |
| 3140 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 3141 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3142 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 3143 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3144 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3145 | SunOS/4*) LDSHARED="ld";; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 3146 | SunOS/5*) |
| 3147 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 3148 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 3149 | else LDSHARED="$(CC) -G"; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 3150 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3151 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3152 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 3153 | DYNIX/ptx*) LDSHARED="ld -G";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 3154 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 3155 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 3156 | if test "$enable_framework" ; then |
| 3157 | # Link against the framework. All externals should be defined. |
| 3158 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 3159 | else |
| 3160 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 3161 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 3162 | fi ;; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3163 | Darwin/*) |
| 3164 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 3165 | if test "$enable_framework" ; then |
| 3166 | # Link against the framework. All externals should be defined. |
| 3167 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 3168 | else |
| 3169 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 3170 | LDSHARED="$LDSHARED -flat_namespace -undefined suppress" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3171 | fi ;; |
Guido van Rossum | 81652ab | 1996-07-21 02:53:27 +0000 | [diff] [blame] | 3172 | Linux*) LDSHARED="gcc -shared";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 3173 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 3174 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 3175 | OpenBSD*|NetBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 3176 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 3177 | then |
| 3178 | LDSHARED="cc -shared ${LDFLAGS}" |
| 3179 | else |
| 3180 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 3181 | fi;; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 3182 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 3183 | if test "$GCC" = "yes" |
| 3184 | then LDSHARED="$(CC) -shared" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3185 | else LDSHARED="$(CC) -G" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 3186 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3187 | SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3188 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3189 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3190 | *) LDSHARED="ld";; |
| 3191 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3192 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3193 | echo "$ac_t""$LDSHARED" 1>&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3194 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3195 | # 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] | 3196 | # library (module) -- this is only needed for a few systems |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3197 | echo $ac_n "checking CCSHARED""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3198 | echo "configure:3199: checking CCSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3199 | if test -z "$CCSHARED" |
| 3200 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 3201 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 3202 | SunOS*) if test "$GCC" = yes; |
| 3203 | then CCSHARED="-fPIC"; |
| 3204 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 3205 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 3206 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 3207 | else CCSHARED="+z"; |
| 3208 | fi;; |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3209 | Linux*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 3210 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 3211 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 3212 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 3213 | if test "$GCC" = "yes" |
| 3214 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3215 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 3216 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3217 | SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3218 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3219 | IRIX*/6*) case $CC in |
| 3220 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 3221 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3222 | esac;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3223 | CYGWIN*) CCSHARED="-DUSE_DL_IMPORT";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3224 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3225 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3226 | echo "$ac_t""$CCSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3227 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3228 | # the python executable -- this is only needed for a few systems |
| 3229 | echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3230 | echo "configure:3231: checking LINKFORSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3231 | if test -z "$LINKFORSHARED" |
| 3232 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 3233 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3234 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 3235 | hp*|HP*) |
Guido van Rossum | 304dd2d | 1997-10-20 23:10:56 +0000 | [diff] [blame] | 3236 | LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 3237 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 2d9feed | 1997-11-24 17:36:21 +0000 | [diff] [blame] | 3238 | Linux*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3239 | # -u libsys_s pulls in all symbols in libsys |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3240 | Darwin/*) |
| 3241 | # -u __dummy makes the linker aware of the objc runtime |
| 3242 | # in System.framework; otherwise, __objcInit (referenced in |
| 3243 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 3244 | # loading of any modules which reference it in System.framework. |
| 3245 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is |
| 3246 | # not used by the core itself but which needs to be in the core so |
| 3247 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 3248 | LINKFORSHARED="$extra_undefs -framework System" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3249 | if test "$enable_framework" |
| 3250 | then |
| 3251 | LINKFORSHARED="$LINKFORSHARED -framework Python" |
| 3252 | fi |
| 3253 | LINKFORSHARED="$LINKFORSHARED $extra_frameworks";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 3254 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3255 | SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 3256 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 3257 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 3258 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 3259 | then |
| 3260 | LINKFORSHARED="-Wl,--export-dynamic" |
| 3261 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3262 | SunOS/5*) case $CC in |
| 3263 | *gcc*) |
Guido van Rossum | ff48418 | 2000-02-03 13:50:24 +0000 | [diff] [blame] | 3264 | if $CC -Xlinker -V 2>&1 | grep BFD >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 3265 | then |
| 3266 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3267 | fi;; |
| 3268 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3269 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3270 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3271 | echo "$ac_t""$LINKFORSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3272 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3273 | |
| 3274 | echo $ac_n "checking CFLAGSFORSHARED""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3275 | echo "configure:3276: checking CFLAGSFORSHARED" >&5 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3276 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 3277 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 3278 | case $ac_sys_system in |
| 3279 | CYGWIN*) |
| 3280 | # Cygwin needs CCSHARED when building extension DLLs |
| 3281 | # but not when building the interpreter DLL. |
| 3282 | CFLAGSFORSHARED='';; |
| 3283 | *) |
| 3284 | CFLAGSFORSHARED='$(CCSHARED)' |
| 3285 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3286 | fi |
| 3287 | echo "$ac_t""$CFLAGSFORSHARED" 1>&6 |
| 3288 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3289 | # checks for libraries |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3290 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3291 | echo "configure:3292: checking for dlopen in -ldl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3292 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3293 | 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] | 3294 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3295 | else |
| 3296 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3297 | LIBS="-ldl $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3298 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3299 | #line 3300 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3300 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3301 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3302 | /* We use char because int might match the return type of a gcc2 |
| 3303 | builtin and then its argument prototype would still apply. */ |
| 3304 | char dlopen(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3305 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3306 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3307 | dlopen() |
| 3308 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3309 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3310 | if { (eval echo configure:3311: \"$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] | 3311 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3312 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3313 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3314 | echo "configure: failed program was:" >&5 |
| 3315 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3316 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3317 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3318 | fi |
| 3319 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3320 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3321 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3322 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3323 | 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] | 3324 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3325 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 3326 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3327 | cat >> confdefs.h <<EOF |
| 3328 | #define $ac_tr_lib 1 |
| 3329 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3330 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3331 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3332 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3333 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3334 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3335 | fi |
| 3336 | # Dynamic linking for SunOS/Solaris and SYSV |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3337 | echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3338 | echo "configure:3339: checking for shl_load in -ldld" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3339 | ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3340 | 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] | 3341 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3342 | else |
| 3343 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3344 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3345 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3346 | #line 3347 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3347 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3348 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3349 | /* We use char because int might match the return type of a gcc2 |
| 3350 | builtin and then its argument prototype would still apply. */ |
| 3351 | char shl_load(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3352 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3353 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3354 | shl_load() |
| 3355 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3356 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3357 | if { (eval echo configure:3358: \"$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] | 3358 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3359 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3360 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3361 | echo "configure: failed program was:" >&5 |
| 3362 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3363 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3364 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3365 | fi |
| 3366 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3367 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3368 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3369 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3370 | 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] | 3371 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3372 | ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 3373 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3374 | cat >> confdefs.h <<EOF |
| 3375 | #define $ac_tr_lib 1 |
| 3376 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3377 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3378 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3379 | |
| 3380 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3381 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3382 | fi |
| 3383 | # Dynamic linking for HP-UX |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3384 | |
| 3385 | # checks for system dependent C++ extensions support |
| 3386 | case "$ac_sys_system" in |
| 3387 | AIX*) echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3388 | echo "configure:3389: checking for genuine AIX C++ extensions support" >&5 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3389 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3390 | #line 3391 "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3391 | #include "confdefs.h" |
| 3392 | #include "/usr/lpp/xlC/include/load.h" |
| 3393 | int main() { |
| 3394 | loadAndInit("", 0, "") |
| 3395 | ; return 0; } |
| 3396 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3397 | if { (eval echo configure:3398: \"$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] | 3398 | rm -rf conftest* |
| 3399 | cat >> confdefs.h <<\EOF |
| 3400 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 3401 | EOF |
| 3402 | |
| 3403 | echo "$ac_t""yes" 1>&6 |
| 3404 | else |
| 3405 | echo "configure: failed program was:" >&5 |
| 3406 | cat conftest.$ac_ext >&5 |
| 3407 | rm -rf conftest* |
| 3408 | echo "$ac_t""no" 1>&6 |
| 3409 | fi |
| 3410 | rm -f conftest*;; |
| 3411 | *) ;; |
| 3412 | esac |
| 3413 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 3414 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| 3415 | # However on SGI IRIX, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3416 | # BeOS' sockets are stashed in libnet. |
| 3417 | case "$ac_sys_system" in |
| 3418 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3419 | *) |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3420 | echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3421 | echo "configure:3422: checking for t_open in -lnsl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3422 | ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3423 | 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] | 3424 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3425 | else |
| 3426 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3427 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3428 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3429 | #line 3430 "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3430 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3431 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3432 | /* We use char because int might match the return type of a gcc2 |
| 3433 | builtin and then its argument prototype would still apply. */ |
| 3434 | char t_open(); |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3435 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3436 | int main() { |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 3437 | t_open() |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3438 | ; return 0; } |
| 3439 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3440 | if { (eval echo configure:3441: \"$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] | 3441 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3442 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3443 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3444 | echo "configure: failed program was:" >&5 |
| 3445 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3446 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3447 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3448 | fi |
| 3449 | rm -f conftest* |
| 3450 | LIBS="$ac_save_LIBS" |
| 3451 | |
| 3452 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3453 | 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] | 3454 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3455 | LIBS="-lnsl $LIBS" |
| 3456 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3457 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3458 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 3459 | # SVR4 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3460 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3461 | echo "configure:3462: checking for socket in -lsocket" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3462 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3463 | 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] | 3464 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3465 | else |
| 3466 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3467 | LIBS="-lsocket $LIBS $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3468 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3469 | #line 3470 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3470 | #include "confdefs.h" |
| 3471 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3472 | /* We use char because int might match the return type of a gcc2 |
| 3473 | builtin and then its argument prototype would still apply. */ |
| 3474 | char socket(); |
| 3475 | |
| 3476 | int main() { |
| 3477 | socket() |
| 3478 | ; return 0; } |
| 3479 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3480 | if { (eval echo configure:3481: \"$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] | 3481 | rm -rf conftest* |
| 3482 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3483 | else |
| 3484 | echo "configure: failed program was:" >&5 |
| 3485 | cat conftest.$ac_ext >&5 |
| 3486 | rm -rf conftest* |
| 3487 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3488 | fi |
| 3489 | rm -f conftest* |
| 3490 | LIBS="$ac_save_LIBS" |
| 3491 | |
| 3492 | fi |
| 3493 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3494 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3495 | LIBS="-lsocket $LIBS" |
| 3496 | else |
| 3497 | echo "$ac_t""no" 1>&6 |
| 3498 | fi |
| 3499 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3500 | ;; |
| 3501 | esac |
| 3502 | case "$ac_sys_system" in |
| 3503 | BeOS*) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3504 | echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3505 | echo "configure:3506: checking for socket in -lnet" >&5 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3506 | ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3507 | 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] | 3508 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3509 | else |
| 3510 | ac_save_LIBS="$LIBS" |
| 3511 | LIBS="-lnet $LIBS $LIBS" |
| 3512 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3513 | #line 3514 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3514 | #include "confdefs.h" |
| 3515 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3516 | /* We use char because int might match the return type of a gcc2 |
| 3517 | builtin and then its argument prototype would still apply. */ |
| 3518 | char socket(); |
| 3519 | |
| 3520 | int main() { |
| 3521 | socket() |
| 3522 | ; return 0; } |
| 3523 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3524 | if { (eval echo configure:3525: \"$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] | 3525 | rm -rf conftest* |
| 3526 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3527 | else |
| 3528 | echo "configure: failed program was:" >&5 |
| 3529 | cat conftest.$ac_ext >&5 |
| 3530 | rm -rf conftest* |
| 3531 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3532 | fi |
| 3533 | rm -f conftest* |
| 3534 | LIBS="$ac_save_LIBS" |
| 3535 | |
| 3536 | fi |
| 3537 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3538 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3539 | LIBS="-lnet $LIBS" |
| 3540 | else |
| 3541 | echo "$ac_t""no" 1>&6 |
| 3542 | fi |
| 3543 | # BeOS |
| 3544 | ;; |
| 3545 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 3546 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3547 | echo $ac_n "checking for --with-libs""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3548 | echo "configure:3549: checking for --with-libs" >&5 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3549 | # Check whether --with-libs or --without-libs was given. |
| 3550 | if test "${with_libs+set}" = set; then |
| 3551 | withval="$with_libs" |
| 3552 | |
| 3553 | echo "$ac_t""$withval" 1>&6 |
| 3554 | LIBS="$withval $LIBS" |
| 3555 | |
| 3556 | else |
| 3557 | echo "$ac_t""no" 1>&6 |
| 3558 | fi |
| 3559 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3560 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3561 | # Determine if signalmodule should be used. |
| 3562 | |
| 3563 | |
| 3564 | echo $ac_n "checking for --with-signal-module""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3565 | echo "configure:3566: checking for --with-signal-module" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3566 | # Check whether --with-signal-module or --without-signal-module was given. |
| 3567 | if test "${with_signal_module+set}" = set; then |
| 3568 | withval="$with_signal_module" |
| 3569 | : |
| 3570 | fi |
| 3571 | |
| 3572 | |
| 3573 | if test -z "$with_signal_module" |
| 3574 | then with_signal_module="yes" |
| 3575 | fi |
| 3576 | echo "$ac_t""$with_signal_module" 1>&6 |
| 3577 | |
| 3578 | if test "${with_signal_module}" = "yes"; then |
| 3579 | USE_SIGNAL_MODULE="" |
| 3580 | SIGNAL_OBJS="" |
| 3581 | else |
| 3582 | USE_SIGNAL_MODULE="#" |
| 3583 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 3584 | fi |
| 3585 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 3586 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 3587 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3588 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 3589 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3590 | echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3591 | echo "configure:3592: checking for --with-dec-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3592 | |
| 3593 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 3594 | if test "${with_dec_threads+set}" = set; then |
| 3595 | withval="$with_dec_threads" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3596 | |
| 3597 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3598 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3599 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3600 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3601 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3602 | else |
| 3603 | echo "$ac_t""no" 1>&6 |
| 3604 | fi |
| 3605 | |
| 3606 | |
| 3607 | echo $ac_n "checking for --with-threads""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3608 | echo "configure:3609: checking for --with-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3609 | # Check whether --with-threads or --without-threads was given. |
| 3610 | if test "${with_threads+set}" = set; then |
| 3611 | withval="$with_threads" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3612 | : |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3613 | fi |
| 3614 | |
| 3615 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3616 | # --with-thread is deprecated, but check for it anyway |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3617 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3618 | if test "${with_thread+set}" = set; then |
| 3619 | withval="$with_thread" |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3620 | |
| 3621 | with_threads=$with_thread |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3622 | fi |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3623 | |
| 3624 | |
| 3625 | if test -z "$with_threads" |
| 3626 | then with_threads="yes" |
| 3627 | fi |
| 3628 | echo "$ac_t""$with_threads" 1>&6 |
| 3629 | |
| 3630 | if test "$with_threads" = "no" |
| 3631 | then |
| 3632 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3633 | elif test "$ac_cv_pthread_is_default" = yes |
| 3634 | then |
| 3635 | cat >> confdefs.h <<\EOF |
| 3636 | #define WITH_THREAD 1 |
| 3637 | EOF |
| 3638 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3639 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
| 3640 | cat >> confdefs.h <<\EOF |
| 3641 | #define _REENTRANT 1 |
| 3642 | EOF |
| 3643 | |
| 3644 | posix_threads=yes |
| 3645 | LIBOBJS="$LIBOBJS thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3646 | elif test "$ac_cv_kpthread" = "yes" |
| 3647 | then |
| 3648 | CC="$CC -Kpthread" |
| 3649 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3650 | #define WITH_THREAD 1 |
| 3651 | EOF |
| 3652 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 3653 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3654 | LIBOBJS="$LIBOBJS thread.o" |
| 3655 | else |
| 3656 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 3657 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 3658 | fi |
| 3659 | if test ! -z "$withval" -a -d "$withval" |
| 3660 | then LDFLAGS="$LDFLAGS -L$withval" |
| 3661 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 3662 | |
| 3663 | # According to the POSIX spec, a pthreads implementation must |
| 3664 | # define _POSIX_THREADS in unistd.h. Some apparently don't (which ones?) |
| 3665 | echo $ac_n "checking for _POSIX_THREADS in unistd.h""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3666 | echo "configure:3667: checking for _POSIX_THREADS in unistd.h" >&5 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 3667 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3668 | #line 3669 "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 3669 | #include "confdefs.h" |
| 3670 | #include <unistd.h> |
| 3671 | #ifdef _POSIX_THREADS |
| 3672 | yes |
| 3673 | #endif |
| 3674 | |
| 3675 | EOF |
| 3676 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3677 | egrep "yes" >/dev/null 2>&1; then |
| 3678 | rm -rf conftest* |
| 3679 | unistd_defines_pthreads=yes |
| 3680 | else |
| 3681 | rm -rf conftest* |
| 3682 | unistd_defines_pthreads=no |
| 3683 | fi |
| 3684 | rm -f conftest* |
| 3685 | |
| 3686 | echo "$ac_t""$unistd_defines_pthreads" 1>&6 |
| 3687 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3688 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 3689 | #define _REENTRANT 1 |
| 3690 | EOF |
| 3691 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3692 | ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3693 | echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3694 | echo "configure:3695: checking for mach/cthreads.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3695 | 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] | 3696 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3697 | else |
| 3698 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3699 | #line 3700 "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3700 | #include "confdefs.h" |
| 3701 | #include <mach/cthreads.h> |
| 3702 | EOF |
| 3703 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3704 | { (eval echo configure:3705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3705 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3706 | if test -z "$ac_err"; then |
| 3707 | rm -rf conftest* |
| 3708 | eval "ac_cv_header_$ac_safe=yes" |
| 3709 | else |
| 3710 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3711 | echo "configure: failed program was:" >&5 |
| 3712 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3713 | rm -rf conftest* |
| 3714 | eval "ac_cv_header_$ac_safe=no" |
| 3715 | fi |
| 3716 | rm -f conftest* |
| 3717 | fi |
| 3718 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3719 | echo "$ac_t""yes" 1>&6 |
| 3720 | cat >> confdefs.h <<\EOF |
| 3721 | #define WITH_THREAD 1 |
| 3722 | EOF |
| 3723 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3724 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3725 | #define C_THREADS 1 |
| 3726 | EOF |
| 3727 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3728 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3729 | else |
| 3730 | echo "$ac_t""no" 1>&6 |
| 3731 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3732 | echo $ac_n "checking for --with-pth""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3733 | echo "configure:3734: checking for --with-pth" >&5 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3734 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3735 | if test "${with_pth+set}" = set; then |
| 3736 | withval="$with_pth" |
| 3737 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3738 | echo "$ac_t""$withval" 1>&6 |
| 3739 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3740 | #define WITH_THREAD 1 |
| 3741 | EOF |
| 3742 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3743 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3744 | #define HAVE_PTH 1 |
| 3745 | EOF |
| 3746 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3747 | LIBS="-lpth $LIBS" |
| 3748 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3749 | else |
| 3750 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3751 | echo "$ac_t""no" 1>&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 3752 | |
| 3753 | # Just looking for pthread_create in libpthread is not enough: |
| 3754 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 3755 | # So we really have to include pthread.h, and then link. |
| 3756 | _libs=$LIBS |
| 3757 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3758 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3759 | echo "configure:3760: checking for pthread_create in -lpthread" >&5 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 3760 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3761 | #line 3762 "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3762 | #include "confdefs.h" |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 3763 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3764 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 3765 | void * start_routine (void *arg) { exit (0); } |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3766 | int main() { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 3767 | |
| 3768 | pthread_create (NULL, NULL, start_routine, NULL) |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3769 | ; return 0; } |
| 3770 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3771 | if { (eval echo configure:3772: \"$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] | 3772 | rm -rf conftest* |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 3773 | |
| 3774 | echo "$ac_t""yes" 1>&6 |
| 3775 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3776 | #define WITH_THREAD 1 |
| 3777 | EOF |
| 3778 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 3779 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3780 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3781 | else |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 3782 | echo "configure: failed program was:" >&5 |
| 3783 | cat conftest.$ac_ext >&5 |
| 3784 | rm -rf conftest* |
| 3785 | |
| 3786 | LIBS=$_libs |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3787 | echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3788 | echo "configure:3789: checking for pthread_detach" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3789 | 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] | 3790 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3791 | else |
| 3792 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3793 | #line 3794 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3794 | #include "confdefs.h" |
| 3795 | /* System header to define __stub macros and hopefully few prototypes, |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3796 | which can conflict with char pthread_detach(); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3797 | #include <assert.h> |
| 3798 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3799 | /* We use char because int might match the return type of a gcc2 |
| 3800 | builtin and then its argument prototype would still apply. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3801 | char pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3802 | |
| 3803 | int main() { |
| 3804 | |
| 3805 | /* The GNU C library defines this for functions which it implements |
| 3806 | to always fail with ENOSYS. Some functions are actually named |
| 3807 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3808 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3809 | choke me |
| 3810 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3811 | pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3812 | #endif |
| 3813 | |
| 3814 | ; return 0; } |
| 3815 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3816 | if { (eval echo configure:3817: \"$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] | 3817 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3818 | eval "ac_cv_func_pthread_detach=yes" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3819 | else |
| 3820 | echo "configure: failed program was:" >&5 |
| 3821 | cat conftest.$ac_ext >&5 |
| 3822 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3823 | eval "ac_cv_func_pthread_detach=no" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3824 | fi |
| 3825 | rm -f conftest* |
| 3826 | fi |
| 3827 | |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3828 | if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3829 | echo "$ac_t""yes" 1>&6 |
| 3830 | cat >> confdefs.h <<\EOF |
| 3831 | #define WITH_THREAD 1 |
| 3832 | EOF |
| 3833 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 3834 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3835 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3836 | else |
| 3837 | echo "$ac_t""no" 1>&6 |
| 3838 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3839 | ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3840 | echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3841 | echo "configure:3842: checking for kernel/OS.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3842 | 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] | 3843 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3844 | else |
| 3845 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3846 | #line 3847 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3847 | #include "confdefs.h" |
| 3848 | #include <kernel/OS.h> |
| 3849 | EOF |
| 3850 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3851 | { (eval echo configure:3852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3852 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3853 | if test -z "$ac_err"; then |
| 3854 | rm -rf conftest* |
| 3855 | eval "ac_cv_header_$ac_safe=yes" |
| 3856 | else |
| 3857 | echo "$ac_err" >&5 |
| 3858 | echo "configure: failed program was:" >&5 |
| 3859 | cat conftest.$ac_ext >&5 |
| 3860 | rm -rf conftest* |
| 3861 | eval "ac_cv_header_$ac_safe=no" |
| 3862 | fi |
| 3863 | rm -f conftest* |
| 3864 | fi |
| 3865 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3866 | echo "$ac_t""yes" 1>&6 |
| 3867 | cat >> confdefs.h <<\EOF |
| 3868 | #define WITH_THREAD 1 |
| 3869 | EOF |
| 3870 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3871 | cat >> confdefs.h <<\EOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3872 | #define BEOS_THREADS 1 |
| 3873 | EOF |
| 3874 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3875 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3876 | else |
| 3877 | echo "$ac_t""no" 1>&6 |
| 3878 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3879 | echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3880 | echo "configure:3881: checking for pthread_create in -lpthreads" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3881 | ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3882 | 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] | 3883 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3884 | else |
| 3885 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3886 | LIBS="-lpthreads $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3887 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3888 | #line 3889 "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3889 | #include "confdefs.h" |
| 3890 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3891 | /* We use char because int might match the return type of a gcc2 |
| 3892 | builtin and then its argument prototype would still apply. */ |
| 3893 | char pthread_create(); |
| 3894 | |
| 3895 | int main() { |
| 3896 | pthread_create() |
| 3897 | ; return 0; } |
| 3898 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3899 | if { (eval echo configure:3900: \"$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] | 3900 | rm -rf conftest* |
| 3901 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3902 | else |
| 3903 | echo "configure: failed program was:" >&5 |
| 3904 | cat conftest.$ac_ext >&5 |
| 3905 | rm -rf conftest* |
| 3906 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3907 | fi |
| 3908 | rm -f conftest* |
| 3909 | LIBS="$ac_save_LIBS" |
| 3910 | |
| 3911 | fi |
| 3912 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3913 | echo "$ac_t""yes" 1>&6 |
| 3914 | cat >> confdefs.h <<\EOF |
| 3915 | #define WITH_THREAD 1 |
| 3916 | EOF |
| 3917 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 3918 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3919 | LIBS="$LIBS -lpthreads" |
| 3920 | LIBOBJS="$LIBOBJS thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3921 | else |
| 3922 | echo "$ac_t""no" 1>&6 |
| 3923 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3924 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3925 | echo "configure:3926: checking for pthread_create in -lc_r" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3926 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3927 | 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] | 3928 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3929 | else |
| 3930 | ac_save_LIBS="$LIBS" |
| 3931 | LIBS="-lc_r $LIBS" |
| 3932 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3933 | #line 3934 "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3934 | #include "confdefs.h" |
| 3935 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3936 | /* We use char because int might match the return type of a gcc2 |
| 3937 | builtin and then its argument prototype would still apply. */ |
| 3938 | char pthread_create(); |
| 3939 | |
| 3940 | int main() { |
| 3941 | pthread_create() |
| 3942 | ; return 0; } |
| 3943 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3944 | if { (eval echo configure:3945: \"$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] | 3945 | rm -rf conftest* |
| 3946 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3947 | else |
| 3948 | echo "configure: failed program was:" >&5 |
| 3949 | cat conftest.$ac_ext >&5 |
| 3950 | rm -rf conftest* |
| 3951 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3952 | fi |
| 3953 | rm -f conftest* |
| 3954 | LIBS="$ac_save_LIBS" |
| 3955 | |
| 3956 | fi |
| 3957 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3958 | echo "$ac_t""yes" 1>&6 |
| 3959 | cat >> confdefs.h <<\EOF |
| 3960 | #define WITH_THREAD 1 |
| 3961 | EOF |
| 3962 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 3963 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3964 | LIBS="$LIBS -lc_r" |
| 3965 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3966 | else |
| 3967 | echo "$ac_t""no" 1>&6 |
| 3968 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3969 | echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3970 | echo "configure:3971: checking for __d6_pthread_create in -lthread" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3971 | ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 3972 | 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] | 3973 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3974 | else |
| 3975 | ac_save_LIBS="$LIBS" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3976 | LIBS="-lthread $LIBS" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3977 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3978 | #line 3979 "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3979 | #include "confdefs.h" |
| 3980 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3981 | /* We use char because int might match the return type of a gcc2 |
| 3982 | builtin and then its argument prototype would still apply. */ |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3983 | char __d6_pthread_create(); |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3984 | |
| 3985 | int main() { |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3986 | __d6_pthread_create() |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3987 | ; return 0; } |
| 3988 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 3989 | if { (eval echo configure:3990: \"$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] | 3990 | rm -rf conftest* |
| 3991 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3992 | else |
| 3993 | echo "configure: failed program was:" >&5 |
| 3994 | cat conftest.$ac_ext >&5 |
| 3995 | rm -rf conftest* |
| 3996 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3997 | fi |
| 3998 | rm -f conftest* |
| 3999 | LIBS="$ac_save_LIBS" |
| 4000 | |
| 4001 | fi |
| 4002 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4003 | echo "$ac_t""yes" 1>&6 |
| 4004 | cat >> confdefs.h <<\EOF |
| 4005 | #define WITH_THREAD 1 |
| 4006 | EOF |
| 4007 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4008 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4009 | LIBS="$LIBS -lthread" |
| 4010 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 4011 | else |
| 4012 | echo "$ac_t""no" 1>&6 |
| 4013 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4014 | echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4015 | echo "configure:4016: checking for __pthread_create_system in -lpthread" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4016 | ac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'` |
| 4017 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4018 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4019 | else |
| 4020 | ac_save_LIBS="$LIBS" |
| 4021 | LIBS="-lpthread $LIBS" |
| 4022 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4023 | #line 4024 "configure" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4024 | #include "confdefs.h" |
| 4025 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4026 | /* We use char because int might match the return type of a gcc2 |
| 4027 | builtin and then its argument prototype would still apply. */ |
| 4028 | char __pthread_create_system(); |
| 4029 | |
| 4030 | int main() { |
| 4031 | __pthread_create_system() |
| 4032 | ; return 0; } |
| 4033 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4034 | if { (eval echo configure:4035: \"$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] | 4035 | rm -rf conftest* |
| 4036 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4037 | else |
| 4038 | echo "configure: failed program was:" >&5 |
| 4039 | cat conftest.$ac_ext >&5 |
| 4040 | rm -rf conftest* |
| 4041 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4042 | fi |
| 4043 | rm -f conftest* |
| 4044 | LIBS="$ac_save_LIBS" |
| 4045 | |
| 4046 | fi |
| 4047 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4048 | echo "$ac_t""yes" 1>&6 |
| 4049 | cat >> confdefs.h <<\EOF |
| 4050 | #define WITH_THREAD 1 |
| 4051 | EOF |
| 4052 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4053 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4054 | LIBS="$LIBS -lpthread" |
| 4055 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4056 | else |
| 4057 | echo "$ac_t""no" 1>&6 |
| 4058 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4059 | echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4060 | echo "configure:4061: checking for pthread_create in -lcma" >&5 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4061 | ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4062 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4063 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4064 | else |
| 4065 | ac_save_LIBS="$LIBS" |
| 4066 | LIBS="-lcma $LIBS" |
| 4067 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4068 | #line 4069 "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4069 | #include "confdefs.h" |
| 4070 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4071 | /* We use char because int might match the return type of a gcc2 |
| 4072 | builtin and then its argument prototype would still apply. */ |
| 4073 | char pthread_create(); |
| 4074 | |
| 4075 | int main() { |
| 4076 | pthread_create() |
| 4077 | ; return 0; } |
| 4078 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4079 | if { (eval echo configure:4080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4080 | rm -rf conftest* |
| 4081 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4082 | else |
| 4083 | echo "configure: failed program was:" >&5 |
| 4084 | cat conftest.$ac_ext >&5 |
| 4085 | rm -rf conftest* |
| 4086 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4087 | fi |
| 4088 | rm -f conftest* |
| 4089 | LIBS="$ac_save_LIBS" |
| 4090 | |
| 4091 | fi |
| 4092 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4093 | echo "$ac_t""yes" 1>&6 |
| 4094 | cat >> confdefs.h <<\EOF |
| 4095 | #define WITH_THREAD 1 |
| 4096 | EOF |
| 4097 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4098 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4099 | LIBS="$LIBS -lcma" |
| 4100 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4101 | else |
| 4102 | echo "$ac_t""no" 1>&6 |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 4103 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4104 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 4105 | fi |
| 4106 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4107 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4108 | fi |
| 4109 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4110 | fi |
| 4111 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 4112 | fi |
| 4113 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 4114 | fi |
| 4115 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4116 | fi |
| 4117 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 4118 | fi |
| 4119 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 4120 | fi |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 4121 | rm -f conftest* |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4122 | fi |
| 4123 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4124 | fi |
| 4125 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 4126 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4127 | if test "$posix_threads" = "yes"; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 4128 | if test "$unistd_defines_pthreads" = "no"; then |
| 4129 | cat >> confdefs.h <<\EOF |
| 4130 | #define _POSIX_THREADS 1 |
| 4131 | EOF |
| 4132 | |
| 4133 | fi |
| 4134 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4135 | echo $ac_n "checking if PTHREAD_SCOPE_SYSTEM is supported""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4136 | echo "configure:4137: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4137 | if eval "test \"`echo '$''{'ac_cv_pthread_system_supported'+set}'`\" = set"; then |
| 4138 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4139 | else |
| 4140 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 4141 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4142 | else |
| 4143 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4144 | #line 4145 "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4145 | #include "confdefs.h" |
| 4146 | #include <pthread.h> |
| 4147 | void *foo(void *parm) { |
| 4148 | return NULL; |
| 4149 | } |
| 4150 | main() { |
| 4151 | pthread_attr_t attr; |
| 4152 | if (pthread_attr_init(&attr)) exit(-1); |
| 4153 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 4154 | if (pthread_create(NULL, &attr, foo, NULL)) exit(-1); |
| 4155 | exit(0); |
| 4156 | } |
| 4157 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4158 | if { (eval echo configure:4159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4159 | then |
| 4160 | ac_cv_pthread_system_supported=yes |
| 4161 | else |
| 4162 | echo "configure: failed program was:" >&5 |
| 4163 | cat conftest.$ac_ext >&5 |
| 4164 | rm -fr conftest* |
| 4165 | ac_cv_pthread_system_supported=no |
| 4166 | fi |
| 4167 | rm -fr conftest* |
| 4168 | fi |
| 4169 | |
| 4170 | |
| 4171 | fi |
| 4172 | |
| 4173 | echo "$ac_t""$ac_cv_pthread_system_supported" 1>&6 |
| 4174 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 4175 | cat >> confdefs.h <<\EOF |
| 4176 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 4177 | EOF |
| 4178 | |
| 4179 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 4180 | for ac_func in pthread_sigmask |
| 4181 | do |
| 4182 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4183 | echo "configure:4184: checking for $ac_func" >&5 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 4184 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 4185 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4186 | else |
| 4187 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4188 | #line 4189 "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 4189 | #include "confdefs.h" |
| 4190 | /* System header to define __stub macros and hopefully few prototypes, |
| 4191 | which can conflict with char $ac_func(); below. */ |
| 4192 | #include <assert.h> |
| 4193 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4194 | /* We use char because int might match the return type of a gcc2 |
| 4195 | builtin and then its argument prototype would still apply. */ |
| 4196 | char $ac_func(); |
| 4197 | |
| 4198 | int main() { |
| 4199 | |
| 4200 | /* The GNU C library defines this for functions which it implements |
| 4201 | to always fail with ENOSYS. Some functions are actually named |
| 4202 | something starting with __ and the normal name is an alias. */ |
| 4203 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4204 | choke me |
| 4205 | #else |
| 4206 | $ac_func(); |
| 4207 | #endif |
| 4208 | |
| 4209 | ; return 0; } |
| 4210 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4211 | if { (eval echo configure:4212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 4212 | rm -rf conftest* |
| 4213 | eval "ac_cv_func_$ac_func=yes" |
| 4214 | else |
| 4215 | echo "configure: failed program was:" >&5 |
| 4216 | cat conftest.$ac_ext >&5 |
| 4217 | rm -rf conftest* |
| 4218 | eval "ac_cv_func_$ac_func=no" |
| 4219 | fi |
| 4220 | rm -f conftest* |
| 4221 | fi |
| 4222 | |
| 4223 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4224 | echo "$ac_t""yes" 1>&6 |
| 4225 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4226 | cat >> confdefs.h <<EOF |
| 4227 | #define $ac_tr_func 1 |
| 4228 | EOF |
| 4229 | |
| 4230 | else |
| 4231 | echo "$ac_t""no" 1>&6 |
| 4232 | fi |
| 4233 | done |
| 4234 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4235 | fi |
| 4236 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4237 | echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4238 | echo "configure:4239: checking for usconfig in -lmpc" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4239 | ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4240 | 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] | 4241 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4242 | else |
| 4243 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4244 | LIBS="-lmpc $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4245 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4246 | #line 4247 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4247 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4248 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4249 | /* We use char because int might match the return type of a gcc2 |
| 4250 | builtin and then its argument prototype would still apply. */ |
| 4251 | char usconfig(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4252 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4253 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4254 | usconfig() |
| 4255 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4256 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4257 | if { (eval echo configure:4258: \"$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] | 4258 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4259 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4260 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4261 | echo "configure: failed program was:" >&5 |
| 4262 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4263 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4264 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4265 | fi |
| 4266 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4267 | LIBS="$ac_save_LIBS" |
| 4268 | |
| 4269 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4270 | 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] | 4271 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4272 | cat >> confdefs.h <<\EOF |
| 4273 | #define WITH_THREAD 1 |
| 4274 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4275 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4276 | LIBS="$LIBS -lmpc" |
| 4277 | LIBOBJS="$LIBOBJS thread.o" |
| 4278 | USE_THREAD_MODULE="" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4279 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4280 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4281 | fi |
| 4282 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4283 | echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4284 | echo "configure:4285: checking for thr_create in -lthread" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4285 | ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4286 | 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] | 4287 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4288 | else |
| 4289 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4290 | LIBS="-lthread $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4291 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4292 | #line 4293 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4293 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4294 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4295 | /* We use char because int might match the return type of a gcc2 |
| 4296 | builtin and then its argument prototype would still apply. */ |
| 4297 | char thr_create(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4298 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4299 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4300 | thr_create() |
| 4301 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4302 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4303 | if { (eval echo configure:4304: \"$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] | 4304 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4305 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4306 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4307 | echo "configure: failed program was:" >&5 |
| 4308 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4309 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4310 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4311 | fi |
| 4312 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4313 | LIBS="$ac_save_LIBS" |
| 4314 | |
| 4315 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4316 | 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] | 4317 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4318 | cat >> confdefs.h <<\EOF |
| 4319 | #define WITH_THREAD 1 |
| 4320 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4321 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4322 | LIBS="$LIBS -lthread" |
| 4323 | LIBOBJS="$LIBOBJS thread.o" |
| 4324 | USE_THREAD_MODULE="" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4325 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4326 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4327 | fi |
| 4328 | |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 4329 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4330 | if test "$USE_THREAD_MODULE" != "#" |
| 4331 | then |
| 4332 | # If the above checks didn't disable threads, (at least) OSF1 |
| 4333 | # needs this '-threads' argument during linking. |
| 4334 | case $ac_sys_system in |
| 4335 | OSF1) LDLAST=-threads;; |
| 4336 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 4337 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4338 | fi |
| 4339 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4340 | # Check for enable-ipv6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 4341 | echo $ac_n "checking if --enable-ipv6 is specified""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4342 | echo "configure:4343: checking if --enable-ipv6 is specified" >&5 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4343 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 4344 | if test "${enable_ipv6+set}" = set; then |
| 4345 | enableval="$enable_ipv6" |
| 4346 | case "$enableval" in |
| 4347 | no) |
| 4348 | echo "$ac_t""no" 1>&6 |
| 4349 | ipv6=no |
| 4350 | ;; |
| 4351 | *) echo "$ac_t""yes" 1>&6 |
| 4352 | cat >> confdefs.h <<\EOF |
| 4353 | #define ENABLE_IPV6 1 |
| 4354 | EOF |
| 4355 | |
| 4356 | ipv6=yes |
| 4357 | ;; |
| 4358 | esac |
| 4359 | else |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 4360 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4361 | if test "$cross_compiling" = yes; then |
| 4362 | echo "$ac_t""no" 1>&6 |
| 4363 | ipv6=no |
| 4364 | |
| 4365 | else |
| 4366 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4367 | #line 4368 "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4368 | #include "confdefs.h" |
| 4369 | /* AF_INET6 available check */ |
| 4370 | #include <sys/types.h> |
| 4371 | #include <sys/socket.h> |
| 4372 | main() |
| 4373 | { |
| 4374 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 4375 | exit(1); |
| 4376 | else |
| 4377 | exit(0); |
| 4378 | } |
| 4379 | |
| 4380 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4381 | if { (eval echo configure:4382: \"$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] | 4382 | then |
| 4383 | echo "$ac_t""yes" 1>&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4384 | ipv6=yes |
| 4385 | else |
| 4386 | echo "configure: failed program was:" >&5 |
| 4387 | cat conftest.$ac_ext >&5 |
| 4388 | rm -fr conftest* |
| 4389 | echo "$ac_t""no" 1>&6 |
| 4390 | ipv6=no |
| 4391 | fi |
| 4392 | rm -fr conftest* |
| 4393 | fi |
| 4394 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 4395 | |
| 4396 | if test "$ipv6" = "yes"; then |
| 4397 | echo $ac_n "checking if RFC2553 API is available""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4398 | echo "configure:4399: checking if RFC2553 API is available" >&5 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 4399 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4400 | #line 4401 "configure" |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 4401 | #include "confdefs.h" |
| 4402 | #include <sys/types.h> |
| 4403 | #include <netinet/in.h> |
| 4404 | int main() { |
| 4405 | struct sockaddr_in6 x; |
| 4406 | x.sin6_scope_id; |
| 4407 | ; return 0; } |
| 4408 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4409 | if { (eval echo configure:4410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 4410 | rm -rf conftest* |
| 4411 | echo "$ac_t""yes" 1>&6 |
| 4412 | ipv6=yes |
| 4413 | else |
| 4414 | echo "configure: failed program was:" >&5 |
| 4415 | cat conftest.$ac_ext >&5 |
| 4416 | rm -rf conftest* |
| 4417 | echo "$ac_t""no" 1>&6 |
| 4418 | ipv6=no |
| 4419 | fi |
| 4420 | rm -f conftest* |
| 4421 | fi |
| 4422 | |
| 4423 | if test "$ipv6" = "yes"; then |
| 4424 | cat >> confdefs.h <<\EOF |
| 4425 | #define ENABLE_IPV6 1 |
| 4426 | EOF |
| 4427 | |
| 4428 | fi |
| 4429 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4430 | fi |
| 4431 | |
| 4432 | |
| 4433 | ipv6type=unknown |
| 4434 | ipv6lib=none |
| 4435 | ipv6trylibc=no |
| 4436 | |
| 4437 | if test "$ipv6" = "yes"; then |
| 4438 | echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4439 | echo "configure:4440: checking ipv6 stack type" >&5 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 4440 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 4441 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4442 | case $i in |
| 4443 | inria) |
| 4444 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4445 | #line 4446 "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4446 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4447 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4448 | #include <netinet/in.h> |
| 4449 | #ifdef IPV6_INRIA_VERSION |
| 4450 | yes |
| 4451 | #endif |
| 4452 | EOF |
| 4453 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4454 | egrep "yes" >/dev/null 2>&1; then |
| 4455 | rm -rf conftest* |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 4456 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4457 | fi |
| 4458 | rm -f conftest* |
| 4459 | |
| 4460 | ;; |
| 4461 | kame) |
| 4462 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4463 | #line 4464 "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4464 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4465 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4466 | #include <netinet/in.h> |
| 4467 | #ifdef __KAME__ |
| 4468 | yes |
| 4469 | #endif |
| 4470 | EOF |
| 4471 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4472 | egrep "yes" >/dev/null 2>&1; then |
| 4473 | rm -rf conftest* |
| 4474 | ipv6type=$i; |
| 4475 | ipv6lib=inet6 |
| 4476 | ipv6libdir=/usr/local/v6/lib |
| 4477 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4478 | fi |
| 4479 | rm -f conftest* |
| 4480 | |
| 4481 | ;; |
| 4482 | linux-glibc) |
| 4483 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4484 | #line 4485 "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4485 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4486 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4487 | #include <features.h> |
| 4488 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 4489 | yes |
| 4490 | #endif |
| 4491 | EOF |
| 4492 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4493 | egrep "yes" >/dev/null 2>&1; then |
| 4494 | rm -rf conftest* |
| 4495 | ipv6type=$i; |
| 4496 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4497 | fi |
| 4498 | rm -f conftest* |
| 4499 | |
| 4500 | ;; |
| 4501 | linux-inet6) |
| 4502 | if test -d /usr/inet6; then |
| 4503 | ipv6type=$i |
| 4504 | ipv6lib=inet6 |
| 4505 | ipv6libdir=/usr/inet6/lib |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 4506 | OPT="-I/usr/inet6/include $OPT" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4507 | fi |
| 4508 | ;; |
| 4509 | solaris) |
| 4510 | if test -f /etc/netconfig; then |
| 4511 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 4512 | ipv6type=$i |
| 4513 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4514 | fi |
| 4515 | fi |
| 4516 | ;; |
| 4517 | toshiba) |
| 4518 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4519 | #line 4520 "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4520 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4521 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4522 | #include <sys/param.h> |
| 4523 | #ifdef _TOSHIBA_INET6 |
| 4524 | yes |
| 4525 | #endif |
| 4526 | EOF |
| 4527 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4528 | egrep "yes" >/dev/null 2>&1; then |
| 4529 | rm -rf conftest* |
| 4530 | ipv6type=$i; |
| 4531 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 4532 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4533 | fi |
| 4534 | rm -f conftest* |
| 4535 | |
| 4536 | ;; |
| 4537 | v6d) |
| 4538 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4539 | #line 4540 "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4540 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4541 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4542 | #include </usr/local/v6/include/sys/v6config.h> |
| 4543 | #ifdef __V6D__ |
| 4544 | yes |
| 4545 | #endif |
| 4546 | EOF |
| 4547 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4548 | egrep "yes" >/dev/null 2>&1; then |
| 4549 | rm -rf conftest* |
| 4550 | ipv6type=$i; |
| 4551 | ipv6lib=v6; |
| 4552 | ipv6libdir=/usr/local/v6/lib; |
| 4553 | OPT="-I/usr/local/v6/include $OPT" |
| 4554 | fi |
| 4555 | rm -f conftest* |
| 4556 | |
| 4557 | ;; |
| 4558 | zeta) |
| 4559 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4560 | #line 4561 "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4561 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4562 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4563 | #include <sys/param.h> |
| 4564 | #ifdef _ZETA_MINAMI_INET6 |
| 4565 | yes |
| 4566 | #endif |
| 4567 | EOF |
| 4568 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4569 | egrep "yes" >/dev/null 2>&1; then |
| 4570 | rm -rf conftest* |
| 4571 | ipv6type=$i; |
| 4572 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 4573 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4574 | fi |
| 4575 | rm -f conftest* |
| 4576 | |
| 4577 | ;; |
| 4578 | esac |
| 4579 | if test "$ipv6type" != "unknown"; then |
| 4580 | break |
| 4581 | fi |
| 4582 | done |
| 4583 | echo "$ac_t""$ipv6type" 1>&6 |
| 4584 | fi |
| 4585 | |
| 4586 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 4587 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 4588 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 4589 | echo "using lib$ipv6lib" |
| 4590 | else |
| 4591 | if test $ipv6trylibc = "yes"; then |
| 4592 | echo "using libc" |
| 4593 | else |
| 4594 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 4595 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 4596 | echo 'ipv6 kit and compile beforehand.' |
| 4597 | exit 1 |
| 4598 | fi |
| 4599 | fi |
| 4600 | fi |
| 4601 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4602 | # Check for GC support |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4603 | echo $ac_n "checking for --with-cycle-gc""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4604 | echo "configure:4605: checking for --with-cycle-gc" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4605 | # Check whether --with-cycle-gc or --without-cycle-gc was given. |
| 4606 | if test "${with_cycle_gc+set}" = set; then |
| 4607 | withval="$with_cycle_gc" |
| 4608 | : |
| 4609 | fi |
| 4610 | |
| 4611 | |
| 4612 | if test -z "$with_cycle_gc" |
| 4613 | then with_cycle_gc="yes" |
| 4614 | fi |
Neil Schemenauer | cf22946 | 2001-08-29 23:58:47 +0000 | [diff] [blame] | 4615 | if test "$with_cycle_gc" != "no" |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4616 | then |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4617 | cat >> confdefs.h <<\EOF |
| 4618 | #define WITH_CYCLE_GC 1 |
| 4619 | EOF |
| 4620 | |
| 4621 | fi |
| 4622 | echo "$ac_t""$with_cycle_gc" 1>&6 |
| 4623 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4624 | # Check for Python-specific malloc support |
| 4625 | echo $ac_n "checking for --with-pymalloc""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4626 | echo "configure:4627: checking for --with-pymalloc" >&5 |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4627 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 4628 | if test "${with_pymalloc+set}" = set; then |
| 4629 | withval="$with_pymalloc" |
| 4630 | |
| 4631 | if test "$withval" != no |
| 4632 | then cat >> confdefs.h <<\EOF |
| 4633 | #define WITH_PYMALLOC 1 |
| 4634 | EOF |
| 4635 | echo "$ac_t""yes" 1>&6 |
| 4636 | else echo "$ac_t""no" 1>&6 |
| 4637 | fi |
| 4638 | else |
| 4639 | echo "$ac_t""no" 1>&6 |
| 4640 | fi |
| 4641 | |
| 4642 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4643 | # Check for --with-wctype-functions |
| 4644 | echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4645 | echo "configure:4646: checking for --with-wctype-functions" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4646 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 4647 | if test "${with_wctype_functions+set}" = set; then |
| 4648 | withval="$with_wctype_functions" |
| 4649 | |
| 4650 | if test "$withval" != no |
| 4651 | then cat >> confdefs.h <<\EOF |
| 4652 | #define WANT_WCTYPE_FUNCTIONS 1 |
| 4653 | EOF |
| 4654 | echo "$ac_t""yes" 1>&6 |
| 4655 | else echo "$ac_t""no" 1>&6 |
| 4656 | fi |
| 4657 | else |
| 4658 | echo "$ac_t""no" 1>&6 |
| 4659 | fi |
| 4660 | |
| 4661 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4662 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4663 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 4664 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4665 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4666 | echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4667 | echo "configure:4668: checking for --with-sgi-dl" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4668 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4669 | if test "${with_sgi_dl+set}" = set; then |
| 4670 | withval="$with_sgi_dl" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4671 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4672 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4673 | cat >> confdefs.h <<\EOF |
| 4674 | #define WITH_SGI_DL 1 |
| 4675 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4676 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4677 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4678 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 4679 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4680 | then LDFLAGS="$LDFLAGS -L$dldir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4681 | 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] | 4682 | fi |
| 4683 | DLINCLDIR=${dldir} |
| 4684 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4685 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4686 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4687 | fi |
| 4688 | |
| 4689 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4690 | echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4691 | echo "configure:4692: checking for --with-dl-dld" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4692 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4693 | if test "${with_dl_dld+set}" = set; then |
| 4694 | withval="$with_dl_dld" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4695 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4696 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4697 | cat >> confdefs.h <<\EOF |
| 4698 | #define WITH_DL_DLD 1 |
| 4699 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4700 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4701 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4702 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 4703 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 4704 | 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] | 4705 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4706 | 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] | 4707 | fi |
| 4708 | DLINCLDIR=${dldir} |
| 4709 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4710 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4711 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4712 | fi |
| 4713 | |
| 4714 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4715 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 4716 | # 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] | 4717 | for ac_func in dlopen |
| 4718 | do |
| 4719 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4720 | echo "configure:4721: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4721 | 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] | 4722 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4723 | else |
| 4724 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4725 | #line 4726 "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4726 | #include "confdefs.h" |
| 4727 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4728 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4729 | #include <assert.h> |
| 4730 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4731 | /* We use char because int might match the return type of a gcc2 |
| 4732 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4733 | char $ac_func(); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4734 | |
| 4735 | int main() { |
| 4736 | |
| 4737 | /* The GNU C library defines this for functions which it implements |
| 4738 | to always fail with ENOSYS. Some functions are actually named |
| 4739 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4740 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4741 | choke me |
| 4742 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4743 | $ac_func(); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4744 | #endif |
| 4745 | |
| 4746 | ; return 0; } |
| 4747 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4748 | if { (eval echo configure:4749: \"$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] | 4749 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4750 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4751 | else |
| 4752 | echo "configure: failed program was:" >&5 |
| 4753 | cat conftest.$ac_ext >&5 |
| 4754 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4755 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4756 | fi |
| 4757 | rm -f conftest* |
| 4758 | fi |
| 4759 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4760 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4761 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4762 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4763 | cat >> confdefs.h <<EOF |
| 4764 | #define $ac_tr_func 1 |
| 4765 | EOF |
| 4766 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4767 | else |
| 4768 | echo "$ac_t""no" 1>&6 |
| 4769 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4770 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4771 | |
| 4772 | |
| 4773 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 4774 | # loading of modules. |
| 4775 | |
| 4776 | echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4777 | echo "configure:4778: checking DYNLOADFILE" >&5 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4778 | if test -z "$DYNLOADFILE" |
| 4779 | then |
| 4780 | case $ac_sys_system/$ac_sys_release in |
| 4781 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 4782 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 4783 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 4784 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4785 | *) |
| 4786 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 4787 | # out any dynamic loading |
| 4788 | if test "$ac_cv_func_dlopen" = yes |
| 4789 | then DYNLOADFILE="dynload_shlib.o" |
| 4790 | else DYNLOADFILE="dynload_stub.o" |
| 4791 | fi |
| 4792 | ;; |
| 4793 | esac |
| 4794 | fi |
| 4795 | echo "$ac_t""$DYNLOADFILE" 1>&6 |
| 4796 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 4797 | then |
| 4798 | cat >> confdefs.h <<\EOF |
| 4799 | #define HAVE_DYNAMIC_LOADING 1 |
| 4800 | EOF |
| 4801 | |
| 4802 | fi |
| 4803 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 4804 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 4805 | |
| 4806 | |
| 4807 | echo $ac_n "checking MACHDEP_OBJS""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4808 | echo "configure:4809: checking MACHDEP_OBJS" >&5 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 4809 | if test -z "$MACHDEP_OBJS" |
| 4810 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 4811 | MACHDEP_OBJS=$extra_machdep_objs |
| 4812 | else |
| 4813 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 4814 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 4815 | echo "$ac_t""MACHDEP_OBJS" 1>&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 4816 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4817 | # checks for library functions |
Martin v. Löwis | 244edc8 | 2001-10-04 22:44:26 +0000 | [diff] [blame] | 4818 | for ac_func in alarm chown chroot clock confstr ctermid ctermid_r execv \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4819 | flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Martin v. Löwis | f95dd0a | 2001-08-15 17:14:33 +0000 | [diff] [blame] | 4820 | gai_strerror getgroups getlogin getpeername getpid getpwent getwd \ |
Martin v. Löwis | 864e9ff | 2001-08-04 22:32:03 +0000 | [diff] [blame] | 4821 | hstrerror inet_pton kill link lstat mkfifo mktime mremap \ |
Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame] | 4822 | nice pathconf pause plock poll pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4823 | putenv readlink \ |
Martin v. Löwis | 61c5edf | 2001-10-18 04:06:00 +0000 | [diff] [blame] | 4824 | select setegid seteuid setgid setgroups \ |
Martin v. Löwis | 791bfda | 2001-07-24 06:33:08 +0000 | [diff] [blame] | 4825 | setlocale setregid setreuid setsid setpgid setuid setvbuf snprintf \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4826 | sigaction siginterrupt sigrelse strftime strptime symlink sysconf \ |
Fred Drake | 89143df | 1999-12-09 22:03:25 +0000 | [diff] [blame] | 4827 | tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Guido van Rossum | c524d95 | 2001-10-19 01:31:59 +0000 | [diff] [blame] | 4828 | truncate uname unsetenv waitpid _getpty getpriority |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4829 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4830 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4831 | echo "configure:4832: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4832 | 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] | 4833 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4834 | else |
| 4835 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4836 | #line 4837 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4837 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4838 | /* System header to define __stub macros and hopefully few prototypes, |
| 4839 | which can conflict with char $ac_func(); below. */ |
| 4840 | #include <assert.h> |
| 4841 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4842 | /* We use char because int might match the return type of a gcc2 |
| 4843 | builtin and then its argument prototype would still apply. */ |
| 4844 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4845 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4846 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4847 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4848 | /* The GNU C library defines this for functions which it implements |
| 4849 | to always fail with ENOSYS. Some functions are actually named |
| 4850 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4851 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4852 | choke me |
| 4853 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4854 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4855 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4856 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4857 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4858 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4859 | if { (eval echo configure:4860: \"$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] | 4860 | rm -rf conftest* |
| 4861 | eval "ac_cv_func_$ac_func=yes" |
| 4862 | else |
| 4863 | echo "configure: failed program was:" >&5 |
| 4864 | cat conftest.$ac_ext >&5 |
| 4865 | rm -rf conftest* |
| 4866 | eval "ac_cv_func_$ac_func=no" |
| 4867 | fi |
| 4868 | rm -f conftest* |
| 4869 | fi |
| 4870 | |
| 4871 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4872 | echo "$ac_t""yes" 1>&6 |
| 4873 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4874 | cat >> confdefs.h <<EOF |
| 4875 | #define $ac_tr_func 1 |
| 4876 | EOF |
| 4877 | |
| 4878 | else |
| 4879 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4880 | fi |
| 4881 | done |
| 4882 | |
| 4883 | |
| 4884 | # check for openpty and forkpty |
| 4885 | |
| 4886 | for ac_func in openpty |
| 4887 | do |
| 4888 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4889 | echo "configure:4890: checking for $ac_func" >&5 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4890 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 4891 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4892 | else |
| 4893 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4894 | #line 4895 "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4895 | #include "confdefs.h" |
| 4896 | /* System header to define __stub macros and hopefully few prototypes, |
| 4897 | which can conflict with char $ac_func(); below. */ |
| 4898 | #include <assert.h> |
| 4899 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4900 | /* We use char because int might match the return type of a gcc2 |
| 4901 | builtin and then its argument prototype would still apply. */ |
| 4902 | char $ac_func(); |
| 4903 | |
| 4904 | int main() { |
| 4905 | |
| 4906 | /* The GNU C library defines this for functions which it implements |
| 4907 | to always fail with ENOSYS. Some functions are actually named |
| 4908 | something starting with __ and the normal name is an alias. */ |
| 4909 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4910 | choke me |
| 4911 | #else |
| 4912 | $ac_func(); |
| 4913 | #endif |
| 4914 | |
| 4915 | ; return 0; } |
| 4916 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4917 | if { (eval echo configure:4918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4918 | rm -rf conftest* |
| 4919 | eval "ac_cv_func_$ac_func=yes" |
| 4920 | else |
| 4921 | echo "configure: failed program was:" >&5 |
| 4922 | cat conftest.$ac_ext >&5 |
| 4923 | rm -rf conftest* |
| 4924 | eval "ac_cv_func_$ac_func=no" |
| 4925 | fi |
| 4926 | rm -f conftest* |
| 4927 | fi |
| 4928 | |
| 4929 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4930 | echo "$ac_t""yes" 1>&6 |
| 4931 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4932 | cat >> confdefs.h <<EOF |
| 4933 | #define $ac_tr_func 1 |
| 4934 | EOF |
| 4935 | |
| 4936 | else |
| 4937 | echo "$ac_t""no" 1>&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4938 | echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4939 | echo "configure:4940: checking for openpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4940 | ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4941 | 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] | 4942 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4943 | else |
| 4944 | ac_save_LIBS="$LIBS" |
| 4945 | LIBS="-lutil $LIBS" |
| 4946 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4947 | #line 4948 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4948 | #include "confdefs.h" |
| 4949 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4950 | /* We use char because int might match the return type of a gcc2 |
| 4951 | builtin and then its argument prototype would still apply. */ |
| 4952 | char openpty(); |
| 4953 | |
| 4954 | int main() { |
| 4955 | openpty() |
| 4956 | ; return 0; } |
| 4957 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4958 | if { (eval echo configure:4959: \"$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] | 4959 | rm -rf conftest* |
| 4960 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4961 | else |
| 4962 | echo "configure: failed program was:" >&5 |
| 4963 | cat conftest.$ac_ext >&5 |
| 4964 | rm -rf conftest* |
| 4965 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4966 | fi |
| 4967 | rm -f conftest* |
| 4968 | LIBS="$ac_save_LIBS" |
| 4969 | |
| 4970 | fi |
| 4971 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4972 | echo "$ac_t""yes" 1>&6 |
| 4973 | cat >> confdefs.h <<\EOF |
| 4974 | #define HAVE_OPENPTY 1 |
| 4975 | EOF |
| 4976 | LIBS="$LIBS -lutil" |
| 4977 | else |
| 4978 | echo "$ac_t""no" 1>&6 |
| 4979 | fi |
| 4980 | |
| 4981 | fi |
| 4982 | done |
| 4983 | |
| 4984 | for ac_func in forkpty |
| 4985 | do |
| 4986 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4987 | echo "configure:4988: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4988 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4989 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4990 | else |
| 4991 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 4992 | #line 4993 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4993 | #include "confdefs.h" |
| 4994 | /* System header to define __stub macros and hopefully few prototypes, |
| 4995 | which can conflict with char $ac_func(); below. */ |
| 4996 | #include <assert.h> |
| 4997 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4998 | /* We use char because int might match the return type of a gcc2 |
| 4999 | builtin and then its argument prototype would still apply. */ |
| 5000 | char $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5001 | |
| 5002 | int main() { |
| 5003 | |
| 5004 | /* The GNU C library defines this for functions which it implements |
| 5005 | to always fail with ENOSYS. Some functions are actually named |
| 5006 | something starting with __ and the normal name is an alias. */ |
| 5007 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5008 | choke me |
| 5009 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5010 | $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5011 | #endif |
| 5012 | |
| 5013 | ; return 0; } |
| 5014 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5015 | if { (eval echo configure:5016: \"$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] | 5016 | rm -rf conftest* |
| 5017 | eval "ac_cv_func_$ac_func=yes" |
| 5018 | else |
| 5019 | echo "configure: failed program was:" >&5 |
| 5020 | cat conftest.$ac_ext >&5 |
| 5021 | rm -rf conftest* |
| 5022 | eval "ac_cv_func_$ac_func=no" |
| 5023 | fi |
| 5024 | rm -f conftest* |
| 5025 | fi |
| 5026 | |
| 5027 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5028 | echo "$ac_t""yes" 1>&6 |
| 5029 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5030 | cat >> confdefs.h <<EOF |
| 5031 | #define $ac_tr_func 1 |
| 5032 | EOF |
| 5033 | |
| 5034 | else |
| 5035 | echo "$ac_t""no" 1>&6 |
| 5036 | echo $ac_n "checking for forkpty in -lutil""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5037 | echo "configure:5038: checking for forkpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5038 | ac_lib_var=`echo util'_'forkpty | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5039 | 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] | 5040 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5041 | else |
| 5042 | ac_save_LIBS="$LIBS" |
| 5043 | LIBS="-lutil $LIBS" |
| 5044 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5045 | #line 5046 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5046 | #include "confdefs.h" |
| 5047 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5048 | /* We use char because int might match the return type of a gcc2 |
| 5049 | builtin and then its argument prototype would still apply. */ |
| 5050 | char forkpty(); |
| 5051 | |
| 5052 | int main() { |
| 5053 | forkpty() |
| 5054 | ; return 0; } |
| 5055 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5056 | if { (eval echo configure:5057: \"$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] | 5057 | rm -rf conftest* |
| 5058 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 5059 | else |
| 5060 | echo "configure: failed program was:" >&5 |
| 5061 | cat conftest.$ac_ext >&5 |
| 5062 | rm -rf conftest* |
| 5063 | eval "ac_cv_lib_$ac_lib_var=no" |
| 5064 | fi |
| 5065 | rm -f conftest* |
| 5066 | LIBS="$ac_save_LIBS" |
| 5067 | |
| 5068 | fi |
| 5069 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 5070 | echo "$ac_t""yes" 1>&6 |
| 5071 | cat >> confdefs.h <<\EOF |
| 5072 | #define HAVE_FORKPTY 1 |
| 5073 | EOF |
| 5074 | LIBS="$LIBS -lutil" |
| 5075 | else |
| 5076 | echo "$ac_t""no" 1>&6 |
| 5077 | fi |
| 5078 | |
| 5079 | fi |
| 5080 | done |
| 5081 | |
| 5082 | |
| 5083 | # check for long file support functions |
| 5084 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 5085 | do |
| 5086 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5087 | echo "configure:5088: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5088 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5089 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5090 | else |
| 5091 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5092 | #line 5093 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5093 | #include "confdefs.h" |
| 5094 | /* System header to define __stub macros and hopefully few prototypes, |
| 5095 | which can conflict with char $ac_func(); below. */ |
| 5096 | #include <assert.h> |
| 5097 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5098 | /* We use char because int might match the return type of a gcc2 |
| 5099 | builtin and then its argument prototype would still apply. */ |
| 5100 | char $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5101 | |
| 5102 | int main() { |
| 5103 | |
| 5104 | /* The GNU C library defines this for functions which it implements |
| 5105 | to always fail with ENOSYS. Some functions are actually named |
| 5106 | something starting with __ and the normal name is an alias. */ |
| 5107 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5108 | choke me |
| 5109 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5110 | $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5111 | #endif |
| 5112 | |
| 5113 | ; return 0; } |
| 5114 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5115 | if { (eval echo configure:5116: \"$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] | 5116 | rm -rf conftest* |
| 5117 | eval "ac_cv_func_$ac_func=yes" |
| 5118 | else |
| 5119 | echo "configure: failed program was:" >&5 |
| 5120 | cat conftest.$ac_ext >&5 |
| 5121 | rm -rf conftest* |
| 5122 | eval "ac_cv_func_$ac_func=no" |
| 5123 | fi |
| 5124 | rm -f conftest* |
| 5125 | fi |
| 5126 | |
| 5127 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5128 | echo "$ac_t""yes" 1>&6 |
| 5129 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5130 | cat >> confdefs.h <<EOF |
| 5131 | #define $ac_tr_func 1 |
| 5132 | EOF |
| 5133 | |
| 5134 | else |
| 5135 | echo "$ac_t""no" 1>&6 |
| 5136 | fi |
| 5137 | done |
| 5138 | |
| 5139 | |
| 5140 | for ac_func in dup2 getcwd strdup strerror memmove |
| 5141 | do |
| 5142 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5143 | echo "configure:5144: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5144 | 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] | 5145 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5146 | else |
| 5147 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5148 | #line 5149 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 5149 | #include "confdefs.h" |
| 5150 | /* System header to define __stub macros and hopefully few prototypes, |
| 5151 | which can conflict with char $ac_func(); below. */ |
| 5152 | #include <assert.h> |
| 5153 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5154 | /* We use char because int might match the return type of a gcc2 |
| 5155 | builtin and then its argument prototype would still apply. */ |
| 5156 | char $ac_func(); |
| 5157 | |
| 5158 | int main() { |
| 5159 | |
| 5160 | /* The GNU C library defines this for functions which it implements |
| 5161 | to always fail with ENOSYS. Some functions are actually named |
| 5162 | something starting with __ and the normal name is an alias. */ |
| 5163 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5164 | choke me |
| 5165 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5166 | $ac_func(); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 5167 | #endif |
| 5168 | |
| 5169 | ; return 0; } |
| 5170 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5171 | if { (eval echo configure:5172: \"$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] | 5172 | rm -rf conftest* |
| 5173 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5174 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5175 | echo "configure: failed program was:" >&5 |
| 5176 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5177 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5178 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5179 | fi |
| 5180 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5181 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5182 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5183 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5184 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5185 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5186 | cat >> confdefs.h <<EOF |
| 5187 | #define $ac_tr_func 1 |
| 5188 | EOF |
| 5189 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5190 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5191 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5192 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5193 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5194 | done |
| 5195 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5196 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5197 | for ac_func in getpgrp |
| 5198 | do |
| 5199 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5200 | echo "configure:5201: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5201 | 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] | 5202 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5203 | else |
| 5204 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5205 | #line 5206 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5206 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5207 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5208 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5209 | #include <assert.h> |
| 5210 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5211 | /* We use char because int might match the return type of a gcc2 |
| 5212 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5213 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5214 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5215 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5216 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5217 | /* The GNU C library defines this for functions which it implements |
| 5218 | to always fail with ENOSYS. Some functions are actually named |
| 5219 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5220 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5221 | choke me |
| 5222 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5223 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5224 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5225 | |
| 5226 | ; return 0; } |
| 5227 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5228 | if { (eval echo configure:5229: \"$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] | 5229 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5230 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5231 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5232 | echo "configure: failed program was:" >&5 |
| 5233 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5234 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5235 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5236 | fi |
| 5237 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5238 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5239 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5240 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5241 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5242 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5243 | cat >> confdefs.h <<EOF |
| 5244 | #define $ac_tr_func 1 |
| 5245 | EOF |
| 5246 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5247 | #line 5248 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5248 | #include "confdefs.h" |
| 5249 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5250 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5251 | getpgrp(0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5252 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5253 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5254 | if { (eval echo configure:5255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5255 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5256 | cat >> confdefs.h <<\EOF |
| 5257 | #define GETPGRP_HAVE_ARG 1 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5258 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5259 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5260 | else |
| 5261 | echo "configure: failed program was:" >&5 |
| 5262 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5263 | fi |
| 5264 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5265 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5266 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5267 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5268 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5269 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5270 | for ac_func in setpgrp |
| 5271 | do |
| 5272 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5273 | echo "configure:5274: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5274 | 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] | 5275 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5276 | else |
| 5277 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5278 | #line 5279 "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5279 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5280 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5281 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5282 | #include <assert.h> |
| 5283 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5284 | /* We use char because int might match the return type of a gcc2 |
| 5285 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5286 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5287 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5288 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5289 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5290 | /* The GNU C library defines this for functions which it implements |
| 5291 | to always fail with ENOSYS. Some functions are actually named |
| 5292 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5293 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5294 | choke me |
| 5295 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5296 | $ac_func(); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5297 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5298 | |
| 5299 | ; return 0; } |
| 5300 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5301 | if { (eval echo configure:5302: \"$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] | 5302 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5303 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5304 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5305 | echo "configure: failed program was:" >&5 |
| 5306 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5307 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5308 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5309 | fi |
| 5310 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5311 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5312 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5313 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5314 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5315 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5316 | cat >> confdefs.h <<EOF |
| 5317 | #define $ac_tr_func 1 |
| 5318 | EOF |
| 5319 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5320 | #line 5321 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5321 | #include "confdefs.h" |
| 5322 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5323 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5324 | setpgrp(0,0); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5325 | ; return 0; } |
| 5326 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5327 | if { (eval echo configure:5328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5328 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5329 | cat >> confdefs.h <<\EOF |
| 5330 | #define SETPGRP_HAVE_ARG 1 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5331 | EOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5332 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5333 | else |
| 5334 | echo "configure: failed program was:" >&5 |
| 5335 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5336 | fi |
| 5337 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5338 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5339 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5340 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5341 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5342 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5343 | for ac_func in gettimeofday |
| 5344 | do |
| 5345 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5346 | echo "configure:5347: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5347 | 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] | 5348 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5349 | else |
| 5350 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5351 | #line 5352 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5352 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5353 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5354 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5355 | #include <assert.h> |
| 5356 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5357 | /* We use char because int might match the return type of a gcc2 |
| 5358 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5359 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5360 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5361 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5362 | |
| 5363 | /* The GNU C library defines this for functions which it implements |
| 5364 | to always fail with ENOSYS. Some functions are actually named |
| 5365 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5366 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5367 | choke me |
| 5368 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5369 | $ac_func(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5370 | #endif |
| 5371 | |
| 5372 | ; return 0; } |
| 5373 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5374 | if { (eval echo configure:5375: \"$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] | 5375 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5376 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5377 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5378 | echo "configure: failed program was:" >&5 |
| 5379 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5380 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5381 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5382 | fi |
| 5383 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5384 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5385 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5386 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5387 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5388 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5389 | cat >> confdefs.h <<EOF |
| 5390 | #define $ac_tr_func 1 |
| 5391 | EOF |
| 5392 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5393 | #line 5394 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5394 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5395 | #include <sys/time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5396 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5397 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
| 5398 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5399 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5400 | if { (eval echo configure:5401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5401 | : |
| 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 | cat >> confdefs.h <<\EOF |
| 5407 | #define GETTIMEOFDAY_NO_TZ 1 |
| 5408 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5409 | |
| 5410 | fi |
| 5411 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5412 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5413 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5414 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5415 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5416 | |
| 5417 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 5418 | |
| 5419 | # On OSF/1 V5.1, getaddrinfo is available, but a define |
| 5420 | # for [no]getaddrinfo in netdb.h. |
| 5421 | echo $ac_n "checking for getaddrinfo""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5422 | echo "configure:5423: checking for getaddrinfo" >&5 |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 5423 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5424 | #line 5425 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5425 | #include "confdefs.h" |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 5426 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 5427 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 5428 | #include <sys/socket.h> |
| 5429 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 5430 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5431 | |
| 5432 | int main() { |
| 5433 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 5434 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5435 | |
| 5436 | ; return 0; } |
| 5437 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5438 | if { (eval echo configure:5439: \"$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] | 5439 | rm -rf conftest* |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 5440 | |
| 5441 | echo "$ac_t""yes" 1>&6 |
| 5442 | echo $ac_n "checking getaddrinfo bug""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5443 | echo "configure:5444: checking getaddrinfo bug" >&5 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5444 | if test "$cross_compiling" = yes; then |
| 5445 | echo "$ac_t""buggy" 1>&6 |
| 5446 | buggygetaddrinfo=yes |
| 5447 | else |
| 5448 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5449 | #line 5450 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5450 | #include "confdefs.h" |
| 5451 | |
| 5452 | #include <sys/types.h> |
| 5453 | #include <netdb.h> |
| 5454 | #include <string.h> |
| 5455 | #include <sys/socket.h> |
| 5456 | #include <netinet/in.h> |
| 5457 | |
| 5458 | main() |
| 5459 | { |
| 5460 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 5461 | struct addrinfo hints, *ai, *aitop; |
| 5462 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 5463 | |
| 5464 | for (passive = 0; passive <= 1; passive++) { |
| 5465 | memset(&hints, 0, sizeof(hints)); |
| 5466 | hints.ai_family = AF_UNSPEC; |
| 5467 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 5468 | hints.ai_socktype = SOCK_STREAM; |
| 5469 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 5470 | (void)gai_strerror(gaierr); |
| 5471 | goto bad; |
| 5472 | } |
| 5473 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 5474 | if (ai->ai_addr == NULL || |
| 5475 | ai->ai_addrlen == 0 || |
| 5476 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 5477 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 5478 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 5479 | goto bad; |
| 5480 | } |
| 5481 | switch (ai->ai_family) { |
| 5482 | case AF_INET: |
| 5483 | if (strcmp(strport, "54321") != 0) { |
| 5484 | goto bad; |
| 5485 | } |
| 5486 | if (passive) { |
| 5487 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 5488 | goto bad; |
| 5489 | } |
| 5490 | } else { |
| 5491 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 5492 | goto bad; |
| 5493 | } |
| 5494 | } |
| 5495 | inet4++; |
| 5496 | break; |
| 5497 | case AF_INET6: |
| 5498 | if (strcmp(strport, "54321") != 0) { |
| 5499 | goto bad; |
| 5500 | } |
| 5501 | if (passive) { |
| 5502 | if (strcmp(straddr, "::") != 0) { |
| 5503 | goto bad; |
| 5504 | } |
| 5505 | } else { |
| 5506 | if (strcmp(straddr, "::1") != 0) { |
| 5507 | goto bad; |
| 5508 | } |
| 5509 | } |
| 5510 | inet6++; |
| 5511 | break; |
| 5512 | case AF_UNSPEC: |
| 5513 | goto bad; |
| 5514 | break; |
| 5515 | default: |
| 5516 | /* another family support? */ |
| 5517 | break; |
| 5518 | } |
| 5519 | } |
| 5520 | } |
| 5521 | |
| 5522 | if (!(inet4 == 0 || inet4 == 2)) |
| 5523 | goto bad; |
| 5524 | if (!(inet6 == 0 || inet6 == 2)) |
| 5525 | goto bad; |
| 5526 | |
| 5527 | if (aitop) |
| 5528 | freeaddrinfo(aitop); |
| 5529 | exit(0); |
| 5530 | |
| 5531 | bad: |
| 5532 | if (aitop) |
| 5533 | freeaddrinfo(aitop); |
| 5534 | exit(1); |
| 5535 | } |
| 5536 | |
| 5537 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5538 | if { (eval echo configure:5539: \"$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] | 5539 | then |
| 5540 | echo "$ac_t""good" 1>&6 |
| 5541 | buggygetaddrinfo=no |
| 5542 | else |
| 5543 | echo "configure: failed program was:" >&5 |
| 5544 | cat conftest.$ac_ext >&5 |
| 5545 | rm -fr conftest* |
| 5546 | echo "$ac_t""buggy" 1>&6 |
| 5547 | buggygetaddrinfo=yes |
| 5548 | fi |
| 5549 | rm -fr conftest* |
| 5550 | fi |
| 5551 | |
| 5552 | else |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 5553 | echo "configure: failed program was:" >&5 |
| 5554 | cat conftest.$ac_ext >&5 |
| 5555 | rm -rf conftest* |
| 5556 | |
| 5557 | echo "$ac_t""no" 1>&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5558 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5559 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 5560 | fi |
| 5561 | rm -f conftest* |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5562 | |
| 5563 | if test "$buggygetaddrinfo" = "yes"; then |
| 5564 | if test "$ipv6" = "yes"; then |
| 5565 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 5566 | echo ' or you can specify "--disable-ipv6"'. |
| 5567 | exit 1 |
| 5568 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 5569 | else |
| 5570 | cat >> confdefs.h <<\EOF |
| 5571 | #define HAVE_GETADDRINFO 1 |
| 5572 | EOF |
| 5573 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5574 | fi |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 5575 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5576 | do |
| 5577 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5578 | echo "configure:5579: checking for $ac_func" >&5 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5579 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 5580 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5581 | else |
| 5582 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5583 | #line 5584 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5584 | #include "confdefs.h" |
| 5585 | /* System header to define __stub macros and hopefully few prototypes, |
| 5586 | which can conflict with char $ac_func(); below. */ |
| 5587 | #include <assert.h> |
| 5588 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5589 | /* We use char because int might match the return type of a gcc2 |
| 5590 | builtin and then its argument prototype would still apply. */ |
| 5591 | char $ac_func(); |
| 5592 | |
| 5593 | int main() { |
| 5594 | |
| 5595 | /* The GNU C library defines this for functions which it implements |
| 5596 | to always fail with ENOSYS. Some functions are actually named |
| 5597 | something starting with __ and the normal name is an alias. */ |
| 5598 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5599 | choke me |
| 5600 | #else |
| 5601 | $ac_func(); |
| 5602 | #endif |
| 5603 | |
| 5604 | ; return 0; } |
| 5605 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5606 | if { (eval echo configure:5607: \"$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] | 5607 | rm -rf conftest* |
| 5608 | eval "ac_cv_func_$ac_func=yes" |
| 5609 | else |
| 5610 | echo "configure: failed program was:" >&5 |
| 5611 | cat conftest.$ac_ext >&5 |
| 5612 | rm -rf conftest* |
| 5613 | eval "ac_cv_func_$ac_func=no" |
| 5614 | fi |
| 5615 | rm -f conftest* |
| 5616 | fi |
| 5617 | |
| 5618 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5619 | echo "$ac_t""yes" 1>&6 |
| 5620 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5621 | cat >> confdefs.h <<EOF |
| 5622 | #define $ac_tr_func 1 |
| 5623 | EOF |
| 5624 | |
| 5625 | else |
| 5626 | echo "$ac_t""no" 1>&6 |
| 5627 | fi |
| 5628 | done |
| 5629 | |
| 5630 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5631 | # checks for structures |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5632 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5633 | echo "configure:5634: 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] | 5634 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5635 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5636 | else |
| 5637 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5638 | #line 5639 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5639 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5640 | #include <sys/types.h> |
| 5641 | #include <sys/time.h> |
| 5642 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5643 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5644 | struct tm *tp; |
| 5645 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5646 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5647 | if { (eval echo configure:5648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5648 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5649 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5650 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5651 | echo "configure: failed program was:" >&5 |
| 5652 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5653 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5654 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5655 | fi |
| 5656 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5657 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5658 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5659 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5660 | if test $ac_cv_header_time = yes; then |
| 5661 | cat >> confdefs.h <<\EOF |
| 5662 | #define TIME_WITH_SYS_TIME 1 |
| 5663 | EOF |
| 5664 | |
| 5665 | fi |
| 5666 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5667 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5668 | echo "configure:5669: 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] | 5669 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5670 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5671 | else |
| 5672 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5673 | #line 5674 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5674 | #include "confdefs.h" |
| 5675 | #include <sys/types.h> |
| 5676 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5677 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5678 | struct tm *tp; tp->tm_sec; |
| 5679 | ; return 0; } |
| 5680 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5681 | if { (eval echo configure:5682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5682 | rm -rf conftest* |
| 5683 | ac_cv_struct_tm=time.h |
| 5684 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5685 | echo "configure: failed program was:" >&5 |
| 5686 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5687 | rm -rf conftest* |
| 5688 | ac_cv_struct_tm=sys/time.h |
| 5689 | fi |
| 5690 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5691 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5692 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5693 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5694 | if test $ac_cv_struct_tm = sys/time.h; then |
| 5695 | cat >> confdefs.h <<\EOF |
| 5696 | #define TM_IN_SYS_TIME 1 |
| 5697 | EOF |
| 5698 | |
| 5699 | fi |
| 5700 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5701 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5702 | echo "configure:5703: checking for tm_zone in struct tm" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5703 | 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] | 5704 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5705 | else |
| 5706 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5707 | #line 5708 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5708 | #include "confdefs.h" |
| 5709 | #include <sys/types.h> |
| 5710 | #include <$ac_cv_struct_tm> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5711 | int main() { |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5712 | struct tm tm; tm.tm_zone; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5713 | ; return 0; } |
| 5714 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5715 | if { (eval echo configure:5716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5716 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5717 | ac_cv_struct_tm_zone=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5718 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5719 | echo "configure: failed program was:" >&5 |
| 5720 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5721 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5722 | ac_cv_struct_tm_zone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5723 | fi |
| 5724 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5725 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5726 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5727 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 |
| 5728 | if test "$ac_cv_struct_tm_zone" = yes; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5729 | cat >> confdefs.h <<\EOF |
| 5730 | #define HAVE_TM_ZONE 1 |
| 5731 | EOF |
| 5732 | |
| 5733 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5734 | echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5735 | echo "configure:5736: checking for tzname" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5736 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5737 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5738 | else |
| 5739 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5740 | #line 5741 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5741 | #include "confdefs.h" |
| 5742 | #include <time.h> |
| 5743 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5744 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5745 | #endif |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5746 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5747 | atoi(*tzname); |
| 5748 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5749 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5750 | if { (eval echo configure:5751: \"$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] | 5751 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5752 | ac_cv_var_tzname=yes |
| 5753 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5754 | echo "configure: failed program was:" >&5 |
| 5755 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5756 | rm -rf conftest* |
| 5757 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5758 | fi |
| 5759 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5760 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5761 | |
| 5762 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5763 | if test $ac_cv_var_tzname = yes; then |
| 5764 | cat >> confdefs.h <<\EOF |
| 5765 | #define HAVE_TZNAME 1 |
| 5766 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5767 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5768 | fi |
| 5769 | fi |
| 5770 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 5771 | echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5772 | echo "configure:5773: checking for st_rdev in struct stat" >&5 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 5773 | if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then |
| 5774 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5775 | else |
| 5776 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5777 | #line 5778 "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 5778 | #include "confdefs.h" |
| 5779 | #include <sys/types.h> |
| 5780 | #include <sys/stat.h> |
| 5781 | int main() { |
| 5782 | struct stat s; s.st_rdev; |
| 5783 | ; return 0; } |
| 5784 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5785 | if { (eval echo configure:5786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 5786 | rm -rf conftest* |
| 5787 | ac_cv_struct_st_rdev=yes |
| 5788 | else |
| 5789 | echo "configure: failed program was:" >&5 |
| 5790 | cat conftest.$ac_ext >&5 |
| 5791 | rm -rf conftest* |
| 5792 | ac_cv_struct_st_rdev=no |
| 5793 | fi |
| 5794 | rm -f conftest* |
| 5795 | fi |
| 5796 | |
| 5797 | echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6 |
| 5798 | if test $ac_cv_struct_st_rdev = yes; then |
| 5799 | cat >> confdefs.h <<\EOF |
| 5800 | #define HAVE_ST_RDEV 1 |
| 5801 | EOF |
| 5802 | |
| 5803 | fi |
| 5804 | |
| 5805 | echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5806 | echo "configure:5807: checking for st_blksize in struct stat" >&5 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 5807 | if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then |
| 5808 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5809 | else |
| 5810 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5811 | #line 5812 "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 5812 | #include "confdefs.h" |
| 5813 | #include <sys/types.h> |
| 5814 | #include <sys/stat.h> |
| 5815 | int main() { |
| 5816 | struct stat s; s.st_blksize; |
| 5817 | ; return 0; } |
| 5818 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5819 | if { (eval echo configure:5820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 5820 | rm -rf conftest* |
| 5821 | ac_cv_struct_st_blksize=yes |
| 5822 | else |
| 5823 | echo "configure: failed program was:" >&5 |
| 5824 | cat conftest.$ac_ext >&5 |
| 5825 | rm -rf conftest* |
| 5826 | ac_cv_struct_st_blksize=no |
| 5827 | fi |
| 5828 | rm -f conftest* |
| 5829 | fi |
| 5830 | |
| 5831 | echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6 |
| 5832 | if test $ac_cv_struct_st_blksize = yes; then |
| 5833 | cat >> confdefs.h <<\EOF |
| 5834 | #define HAVE_ST_BLKSIZE 1 |
| 5835 | EOF |
| 5836 | |
| 5837 | fi |
| 5838 | |
| 5839 | echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5840 | echo "configure:5841: checking for st_blocks in struct stat" >&5 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 5841 | if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then |
| 5842 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5843 | else |
| 5844 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5845 | #line 5846 "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 5846 | #include "confdefs.h" |
| 5847 | #include <sys/types.h> |
| 5848 | #include <sys/stat.h> |
| 5849 | int main() { |
| 5850 | struct stat s; s.st_blocks; |
| 5851 | ; return 0; } |
| 5852 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5853 | if { (eval echo configure:5854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 5854 | rm -rf conftest* |
| 5855 | ac_cv_struct_st_blocks=yes |
| 5856 | else |
| 5857 | echo "configure: failed program was:" >&5 |
| 5858 | cat conftest.$ac_ext >&5 |
| 5859 | rm -rf conftest* |
| 5860 | ac_cv_struct_st_blocks=no |
| 5861 | fi |
| 5862 | rm -f conftest* |
| 5863 | fi |
| 5864 | |
| 5865 | echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6 |
| 5866 | if test $ac_cv_struct_st_blocks = yes; then |
| 5867 | cat >> confdefs.h <<\EOF |
| 5868 | #define HAVE_ST_BLOCKS 1 |
| 5869 | EOF |
| 5870 | |
| 5871 | else |
| 5872 | LIBOBJS="$LIBOBJS fileblocks.${ac_objext}" |
| 5873 | fi |
| 5874 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5875 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5876 | echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5877 | echo "configure:5878: checking for time.h that defines altzone" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5878 | 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] | 5879 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5880 | else |
| 5881 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5882 | #line 5883 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5883 | #include "confdefs.h" |
| 5884 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5885 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5886 | return altzone; |
| 5887 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5888 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5889 | if { (eval echo configure:5890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5890 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5891 | ac_cv_header_time_altzone=yes |
| 5892 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5893 | echo "configure: failed program was:" >&5 |
| 5894 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5895 | rm -rf conftest* |
| 5896 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5897 | fi |
| 5898 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5899 | fi |
| 5900 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5901 | echo "$ac_t""$ac_cv_header_time_altzone" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5902 | if test $ac_cv_header_time_altzone = yes; then |
| 5903 | cat >> confdefs.h <<\EOF |
| 5904 | #define HAVE_ALTZONE 1 |
| 5905 | EOF |
| 5906 | |
| 5907 | fi |
| 5908 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5909 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5910 | echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5911 | echo "configure:5912: 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] | 5912 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5913 | #line 5914 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5914 | #include "confdefs.h" |
| 5915 | |
| 5916 | #include <sys/types.h> |
| 5917 | #include <sys/select.h> |
| 5918 | #include <sys/time.h> |
| 5919 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5920 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5921 | ; |
| 5922 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5923 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5924 | if { (eval echo configure:5925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5925 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5926 | cat >> confdefs.h <<\EOF |
| 5927 | #define SYS_SELECT_WITH_SYS_TIME 1 |
| 5928 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5929 | was_it_defined=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5930 | else |
| 5931 | echo "configure: failed program was:" >&5 |
| 5932 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5933 | fi |
| 5934 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5935 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5936 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5937 | echo $ac_n "checking for addrinfo""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5938 | echo "configure:5939: checking for addrinfo" >&5 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5939 | if eval "test \"`echo '$''{'ac_cv_struct_addrinfo'+set}'`\" = set"; then |
| 5940 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5941 | else |
| 5942 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5943 | #line 5944 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5944 | #include "confdefs.h" |
| 5945 | |
| 5946 | # include <netdb.h> |
| 5947 | int main() { |
| 5948 | struct addrinfo a |
| 5949 | ; return 0; } |
| 5950 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5951 | if { (eval echo configure:5952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5952 | rm -rf conftest* |
| 5953 | ac_cv_struct_addrinfo=yes |
| 5954 | else |
| 5955 | echo "configure: failed program was:" >&5 |
| 5956 | cat conftest.$ac_ext >&5 |
| 5957 | rm -rf conftest* |
| 5958 | ac_cv_struct_addrinfo=no |
| 5959 | fi |
| 5960 | rm -f conftest* |
| 5961 | fi |
| 5962 | |
| 5963 | echo "$ac_t""$ac_cv_struct_addrinfo" 1>&6 |
| 5964 | if test $ac_cv_struct_addrinfo = yes; then |
| 5965 | cat >> confdefs.h <<\EOF |
| 5966 | #define HAVE_ADDRINFO 1 |
| 5967 | EOF |
| 5968 | |
| 5969 | fi |
| 5970 | |
| 5971 | echo $ac_n "checking for sockaddr_storage""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5972 | echo "configure:5973: checking for sockaddr_storage" >&5 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5973 | if eval "test \"`echo '$''{'ac_cv_struct_sockaddr_storage'+set}'`\" = set"; then |
| 5974 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5975 | else |
| 5976 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5977 | #line 5978 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5978 | #include "confdefs.h" |
| 5979 | |
| 5980 | # include <sys/types.h> |
| 5981 | # include <sys/socket.h> |
| 5982 | int main() { |
| 5983 | struct sockaddr_storage s |
| 5984 | ; return 0; } |
| 5985 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 5986 | if { (eval echo configure:5987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5987 | rm -rf conftest* |
| 5988 | ac_cv_struct_sockaddr_storage=yes |
| 5989 | else |
| 5990 | echo "configure: failed program was:" >&5 |
| 5991 | cat conftest.$ac_ext >&5 |
| 5992 | rm -rf conftest* |
| 5993 | ac_cv_struct_sockaddr_storage=no |
| 5994 | fi |
| 5995 | rm -f conftest* |
| 5996 | fi |
| 5997 | |
| 5998 | echo "$ac_t""$ac_cv_struct_sockaddr_storage" 1>&6 |
| 5999 | if test $ac_cv_struct_sockaddr_storage = yes; then |
| 6000 | cat >> confdefs.h <<\EOF |
| 6001 | #define HAVE_SOCKADDR_STORAGE 1 |
| 6002 | EOF |
| 6003 | |
| 6004 | fi |
| 6005 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6006 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6007 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6008 | echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6009 | echo "configure:6010: checking whether char is unsigned" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6010 | 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] | 6011 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6012 | else |
| 6013 | if test "$GCC" = yes; then |
| 6014 | # GCC predefines this symbol on systems where it applies. |
| 6015 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6016 | #line 6017 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6017 | #include "confdefs.h" |
| 6018 | #ifdef __CHAR_UNSIGNED__ |
| 6019 | yes |
| 6020 | #endif |
| 6021 | |
| 6022 | EOF |
| 6023 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6024 | egrep "yes" >/dev/null 2>&1; then |
| 6025 | rm -rf conftest* |
| 6026 | ac_cv_c_char_unsigned=yes |
| 6027 | else |
| 6028 | rm -rf conftest* |
| 6029 | ac_cv_c_char_unsigned=no |
| 6030 | fi |
| 6031 | rm -f conftest* |
| 6032 | |
| 6033 | else |
| 6034 | if test "$cross_compiling" = yes; then |
| 6035 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 6036 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6037 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6038 | #line 6039 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6039 | #include "confdefs.h" |
| 6040 | /* volatile prevents gcc2 from optimizing the test away on sparcs. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6041 | #if !defined(__STDC__) || __STDC__ != 1 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6042 | #define volatile |
| 6043 | #endif |
| 6044 | main() { |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6045 | volatile char c = 255; exit(c < 0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6046 | } |
| 6047 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6048 | if { (eval echo configure:6049: \"$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] | 6049 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6050 | ac_cv_c_char_unsigned=yes |
| 6051 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6052 | echo "configure: failed program was:" >&5 |
| 6053 | cat conftest.$ac_ext >&5 |
| 6054 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6055 | ac_cv_c_char_unsigned=no |
| 6056 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6057 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6058 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6059 | |
| 6060 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6061 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6062 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6063 | echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6064 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
| 6065 | cat >> confdefs.h <<\EOF |
| 6066 | #define __CHAR_UNSIGNED__ 1 |
| 6067 | EOF |
| 6068 | |
| 6069 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6070 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6071 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6072 | echo "configure:6073: checking for working const" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6073 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6074 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6075 | else |
| 6076 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6077 | #line 6078 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6078 | #include "confdefs.h" |
| 6079 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6080 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6081 | |
| 6082 | /* Ultrix mips cc rejects this. */ |
Martin v. Löwis | 9db2f57 | 2001-07-23 01:30:10 +0000 | [diff] [blame] | 6083 | typedef int charset[2]; const charset x; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6084 | /* SunOS 4.1.1 cc rejects this. */ |
| 6085 | char const *const *ccp; |
| 6086 | char **p; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6087 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 6088 | struct point {int x, y;}; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6089 | static struct point const zero = {0,0}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6090 | /* AIX XL C 1.02.0.0 rejects this. |
| 6091 | It does not let you subtract one const X* pointer from another in an arm |
| 6092 | of an if-expression whose if-part is not a constant expression */ |
| 6093 | const char *g = "string"; |
| 6094 | ccp = &g + (g ? g-g : 0); |
| 6095 | /* HPUX 7.0 cc rejects these. */ |
| 6096 | ++ccp; |
| 6097 | p = (char**) ccp; |
| 6098 | ccp = (char const *const *) p; |
| 6099 | { /* SCO 3.2v4 cc rejects this. */ |
| 6100 | char *t; |
| 6101 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 6102 | |
| 6103 | *t++ = 0; |
| 6104 | } |
| 6105 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6106 | int x[] = {25, 17}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6107 | const int *foo = &x[0]; |
| 6108 | ++foo; |
| 6109 | } |
| 6110 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 6111 | typedef const int *iptr; |
| 6112 | iptr p = 0; |
| 6113 | ++p; |
| 6114 | } |
| 6115 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 6116 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 6117 | struct s { int j; const int *ap[3]; }; |
| 6118 | struct s *b; b->j = 5; |
| 6119 | } |
| 6120 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 6121 | const int foo = 10; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6122 | } |
| 6123 | |
| 6124 | ; return 0; } |
| 6125 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6126 | if { (eval echo configure:6127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6127 | rm -rf conftest* |
| 6128 | ac_cv_c_const=yes |
| 6129 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6130 | echo "configure: failed program was:" >&5 |
| 6131 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6132 | rm -rf conftest* |
| 6133 | ac_cv_c_const=no |
| 6134 | fi |
| 6135 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6136 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6137 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6138 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6139 | if test $ac_cv_c_const = no; then |
| 6140 | cat >> confdefs.h <<\EOF |
| 6141 | #define const |
| 6142 | EOF |
| 6143 | |
| 6144 | fi |
| 6145 | |
| 6146 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6147 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6148 | echo $ac_n "checking for working volatile""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6149 | echo "configure:6150: checking for working volatile" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6150 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6151 | #line 6152 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6152 | #include "confdefs.h" |
| 6153 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6154 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6155 | volatile int x; x = 0; |
| 6156 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6157 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6158 | if { (eval echo configure:6159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6159 | rm -rf conftest* |
| 6160 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6161 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6162 | echo "configure: failed program was:" >&5 |
| 6163 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6164 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6165 | cat >> confdefs.h <<\EOF |
| 6166 | #define volatile |
| 6167 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6168 | |
| 6169 | fi |
| 6170 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6171 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6172 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6173 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6174 | echo $ac_n "checking for working signed char""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6175 | echo "configure:6176: checking for working signed char" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6176 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6177 | #line 6178 "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 6178 | #include "confdefs.h" |
| 6179 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6180 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6181 | signed char c; |
| 6182 | ; return 0; } |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 6183 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6184 | if { (eval echo configure:6185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6185 | rm -rf conftest* |
| 6186 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 6187 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6188 | echo "configure: failed program was:" >&5 |
| 6189 | cat conftest.$ac_ext >&5 |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 6190 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6191 | cat >> confdefs.h <<\EOF |
| 6192 | #define signed |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6193 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6194 | |
| 6195 | fi |
| 6196 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6197 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6198 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6199 | have_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6200 | echo $ac_n "checking for prototypes""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6201 | echo "configure:6202: checking for prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6202 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6203 | #line 6204 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6204 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6205 | int foo(int x) { return 0; } |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6206 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6207 | return foo(10); |
| 6208 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6209 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6210 | if { (eval echo configure:6211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6211 | rm -rf conftest* |
| 6212 | cat >> confdefs.h <<\EOF |
| 6213 | #define HAVE_PROTOTYPES 1 |
| 6214 | EOF |
| 6215 | have_prototypes=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6216 | else |
| 6217 | echo "configure: failed program was:" >&5 |
| 6218 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6219 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6220 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6221 | echo "$ac_t""$have_prototypes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6222 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6223 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6224 | echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6225 | echo "configure:6226: checking for variable length prototypes and stdarg.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6226 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6227 | #line 6228 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6228 | #include "confdefs.h" |
| 6229 | |
| 6230 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 6231 | int foo(int x, ...) { |
| 6232 | va_list va; |
| 6233 | va_start(va, x); |
| 6234 | va_arg(va, int); |
| 6235 | va_arg(va, char *); |
| 6236 | va_arg(va, double); |
| 6237 | return 0; |
| 6238 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6239 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6240 | int main() { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 6241 | return foo(10, "", 3.14); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6242 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6243 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6244 | if { (eval echo configure:6245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6245 | rm -rf conftest* |
| 6246 | cat >> confdefs.h <<\EOF |
| 6247 | #define HAVE_STDARG_PROTOTYPES 1 |
| 6248 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6249 | works=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6250 | else |
| 6251 | echo "configure: failed program was:" >&5 |
| 6252 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6253 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6254 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6255 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6256 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6257 | if test "$have_prototypes" = yes; then |
| 6258 | bad_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6259 | echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6260 | echo "configure:6261: checking for bad exec* prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6261 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6262 | #line 6263 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6263 | #include "confdefs.h" |
| 6264 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6265 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6266 | char **t;execve("@",t,t); |
| 6267 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6268 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6269 | if { (eval echo configure:6270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6270 | : |
| 6271 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6272 | echo "configure: failed program was:" >&5 |
| 6273 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6274 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6275 | cat >> confdefs.h <<\EOF |
| 6276 | #define BAD_EXEC_PROTOTYPES 1 |
| 6277 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6278 | bad_prototypes=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6279 | fi |
| 6280 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6281 | echo "$ac_t""$bad_prototypes" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6282 | fi |
| 6283 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 6284 | # check if sockaddr has sa_len member |
| 6285 | echo $ac_n "checking if sockaddr has sa_len member""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6286 | echo "configure:6287: checking if sockaddr has sa_len member" >&5 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 6287 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6288 | #line 6289 "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 6289 | #include "confdefs.h" |
| 6290 | #include <sys/types.h> |
| 6291 | #include <sys/socket.h> |
| 6292 | int main() { |
| 6293 | struct sockaddr x; |
| 6294 | x.sa_len = 0; |
| 6295 | ; return 0; } |
| 6296 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6297 | if { (eval echo configure:6298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 6298 | rm -rf conftest* |
| 6299 | echo "$ac_t""yes" 1>&6 |
| 6300 | cat >> confdefs.h <<\EOF |
| 6301 | #define HAVE_SOCKADDR_SA_LEN 1 |
| 6302 | EOF |
| 6303 | |
| 6304 | else |
| 6305 | echo "configure: failed program was:" >&5 |
| 6306 | cat conftest.$ac_ext >&5 |
| 6307 | rm -rf conftest* |
| 6308 | echo "$ac_t""no" 1>&6 |
| 6309 | fi |
| 6310 | rm -f conftest* |
| 6311 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6312 | echo $ac_n "checking for bad static forward""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6313 | echo "configure:6314: checking for bad static forward" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 6314 | if eval "test \"`echo '$''{'ac_cv_bad_static_forward'+set}'`\" = set"; then |
| 6315 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6316 | else |
| 6317 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 6318 | ac_cv_bad_static_forward=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6319 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6320 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6321 | #line 6322 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6322 | #include "confdefs.h" |
| 6323 | |
| 6324 | struct s { int a; int b; }; |
| 6325 | static struct s foo; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6326 | int foobar() { |
| 6327 | static int random; |
| 6328 | random = (int) &foo; |
| 6329 | return random; |
| 6330 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6331 | static struct s foo = { 1, 2 }; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6332 | main() { |
| 6333 | exit(!((int)&foo == foobar())); |
| 6334 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6335 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6336 | if { (eval echo configure:6337: \"$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] | 6337 | then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 6338 | ac_cv_bad_static_forward=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6339 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6340 | echo "configure: failed program was:" >&5 |
| 6341 | cat conftest.$ac_ext >&5 |
| 6342 | rm -fr conftest* |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 6343 | ac_cv_bad_static_forward=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6344 | fi |
| 6345 | rm -fr conftest* |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6346 | fi |
| 6347 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 6348 | fi |
| 6349 | |
| 6350 | echo "$ac_t""$ac_cv_bad_static_forward" 1>&6 |
| 6351 | if test "$ac_cv_bad_static_forward" = yes |
| 6352 | then |
| 6353 | cat >> confdefs.h <<\EOF |
| 6354 | #define BAD_STATIC_FORWARD 1 |
| 6355 | EOF |
| 6356 | |
| 6357 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6358 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6359 | va_list_is_array=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6360 | echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6361 | echo "configure:6362: checking whether va_list is an array" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6362 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6363 | #line 6364 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6364 | #include "confdefs.h" |
| 6365 | |
| 6366 | #ifdef HAVE_STDARG_PROTOTYPES |
| 6367 | #include <stdarg.h> |
| 6368 | #else |
| 6369 | #include <varargs.h> |
| 6370 | #endif |
| 6371 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6372 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6373 | va_list list1, list2; list1 = list2; |
| 6374 | ; return 0; } |
| 6375 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6376 | if { (eval echo configure:6377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6377 | : |
| 6378 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6379 | echo "configure: failed program was:" >&5 |
| 6380 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6381 | rm -rf conftest* |
| 6382 | cat >> confdefs.h <<\EOF |
| 6383 | #define VA_LIST_IS_ARRAY 1 |
| 6384 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6385 | va_list_is_array=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6386 | fi |
| 6387 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6388 | echo "$ac_t""$va_list_is_array" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6389 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6390 | # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( |
| 6391 | echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6392 | echo "configure:6393: checking for gethostbyname_r" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6393 | 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] | 6394 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6395 | else |
| 6396 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6397 | #line 6398 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6398 | #include "confdefs.h" |
| 6399 | /* System header to define __stub macros and hopefully few prototypes, |
| 6400 | which can conflict with char gethostbyname_r(); below. */ |
| 6401 | #include <assert.h> |
| 6402 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6403 | /* We use char because int might match the return type of a gcc2 |
| 6404 | builtin and then its argument prototype would still apply. */ |
| 6405 | char gethostbyname_r(); |
| 6406 | |
| 6407 | int main() { |
| 6408 | |
| 6409 | /* The GNU C library defines this for functions which it implements |
| 6410 | to always fail with ENOSYS. Some functions are actually named |
| 6411 | something starting with __ and the normal name is an alias. */ |
| 6412 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 6413 | choke me |
| 6414 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6415 | gethostbyname_r(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6416 | #endif |
| 6417 | |
| 6418 | ; return 0; } |
| 6419 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6420 | if { (eval echo configure:6421: \"$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] | 6421 | rm -rf conftest* |
| 6422 | eval "ac_cv_func_gethostbyname_r=yes" |
| 6423 | else |
| 6424 | echo "configure: failed program was:" >&5 |
| 6425 | cat conftest.$ac_ext >&5 |
| 6426 | rm -rf conftest* |
| 6427 | eval "ac_cv_func_gethostbyname_r=no" |
| 6428 | fi |
| 6429 | rm -f conftest* |
| 6430 | fi |
| 6431 | |
| 6432 | if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then |
| 6433 | echo "$ac_t""yes" 1>&6 |
| 6434 | |
| 6435 | cat >> confdefs.h <<\EOF |
| 6436 | #define HAVE_GETHOSTBYNAME_R 1 |
| 6437 | EOF |
| 6438 | |
| 6439 | echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6440 | echo "configure:6441: checking gethostbyname_r with 6 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6441 | OLD_CFLAGS=$CFLAGS |
| 6442 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
| 6443 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6444 | #line 6445 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6445 | #include "confdefs.h" |
| 6446 | |
| 6447 | # include <netdb.h> |
| 6448 | |
| 6449 | int main() { |
| 6450 | |
| 6451 | char *name; |
| 6452 | struct hostent *he, *res; |
| 6453 | char buffer[2048]; |
| 6454 | int buflen = 2048; |
| 6455 | int h_errnop; |
| 6456 | |
| 6457 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
| 6458 | |
| 6459 | ; return 0; } |
| 6460 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6461 | if { (eval echo configure:6462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6462 | rm -rf conftest* |
| 6463 | |
| 6464 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 6465 | #define HAVE_GETHOSTBYNAME_R 1 |
| 6466 | EOF |
| 6467 | |
| 6468 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6469 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
| 6470 | EOF |
| 6471 | |
| 6472 | echo "$ac_t""yes" 1>&6 |
| 6473 | |
| 6474 | else |
| 6475 | echo "configure: failed program was:" >&5 |
| 6476 | cat conftest.$ac_ext >&5 |
| 6477 | rm -rf conftest* |
| 6478 | |
| 6479 | echo "$ac_t""no" 1>&6 |
| 6480 | echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6481 | echo "configure:6482: checking gethostbyname_r with 5 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6482 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6483 | #line 6484 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6484 | #include "confdefs.h" |
| 6485 | |
| 6486 | # include <netdb.h> |
| 6487 | |
| 6488 | int main() { |
| 6489 | |
| 6490 | char *name; |
| 6491 | struct hostent *he; |
| 6492 | char buffer[2048]; |
| 6493 | int buflen = 2048; |
| 6494 | int h_errnop; |
| 6495 | |
| 6496 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
| 6497 | |
| 6498 | ; return 0; } |
| 6499 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6500 | if { (eval echo configure:6501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6501 | rm -rf conftest* |
| 6502 | |
| 6503 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 6504 | #define HAVE_GETHOSTBYNAME_R 1 |
| 6505 | EOF |
| 6506 | |
| 6507 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6508 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
| 6509 | EOF |
| 6510 | |
| 6511 | echo "$ac_t""yes" 1>&6 |
| 6512 | |
| 6513 | else |
| 6514 | echo "configure: failed program was:" >&5 |
| 6515 | cat conftest.$ac_ext >&5 |
| 6516 | rm -rf conftest* |
| 6517 | |
| 6518 | echo "$ac_t""no" 1>&6 |
| 6519 | echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6520 | echo "configure:6521: checking gethostbyname_r with 3 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6521 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6522 | #line 6523 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6523 | #include "confdefs.h" |
| 6524 | |
| 6525 | # include <netdb.h> |
| 6526 | |
| 6527 | int main() { |
| 6528 | |
| 6529 | char *name; |
| 6530 | struct hostent *he; |
| 6531 | struct hostent_data data; |
| 6532 | |
| 6533 | (void) gethostbyname_r(name, he, &data); |
| 6534 | |
| 6535 | ; return 0; } |
| 6536 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6537 | if { (eval echo configure:6538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6538 | rm -rf conftest* |
| 6539 | |
| 6540 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 6541 | #define HAVE_GETHOSTBYNAME_R 1 |
| 6542 | EOF |
| 6543 | |
| 6544 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6545 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
| 6546 | EOF |
| 6547 | |
| 6548 | echo "$ac_t""yes" 1>&6 |
| 6549 | |
| 6550 | else |
| 6551 | echo "configure: failed program was:" >&5 |
| 6552 | cat conftest.$ac_ext >&5 |
| 6553 | rm -rf conftest* |
| 6554 | |
| 6555 | echo "$ac_t""no" 1>&6 |
| 6556 | |
| 6557 | fi |
| 6558 | rm -f conftest* |
| 6559 | |
| 6560 | fi |
| 6561 | rm -f conftest* |
| 6562 | |
| 6563 | fi |
| 6564 | rm -f conftest* |
| 6565 | CFLAGS=$OLD_CFLAGS |
| 6566 | |
| 6567 | else |
| 6568 | echo "$ac_t""no" 1>&6 |
| 6569 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6570 | for ac_func in gethostbyname |
| 6571 | do |
| 6572 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6573 | echo "configure:6574: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6574 | 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] | 6575 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6576 | else |
| 6577 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6578 | #line 6579 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6579 | #include "confdefs.h" |
| 6580 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6581 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6582 | #include <assert.h> |
| 6583 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6584 | /* We use char because int might match the return type of a gcc2 |
| 6585 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6586 | char $ac_func(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6587 | |
| 6588 | int main() { |
| 6589 | |
| 6590 | /* The GNU C library defines this for functions which it implements |
| 6591 | to always fail with ENOSYS. Some functions are actually named |
| 6592 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6593 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6594 | choke me |
| 6595 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6596 | $ac_func(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6597 | #endif |
| 6598 | |
| 6599 | ; return 0; } |
| 6600 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6601 | if { (eval echo configure:6602: \"$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] | 6602 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6603 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6604 | else |
| 6605 | echo "configure: failed program was:" >&5 |
| 6606 | cat conftest.$ac_ext >&5 |
| 6607 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6608 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6609 | fi |
| 6610 | rm -f conftest* |
| 6611 | fi |
| 6612 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6613 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6614 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6615 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 6616 | cat >> confdefs.h <<EOF |
| 6617 | #define $ac_tr_func 1 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6618 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6619 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6620 | else |
| 6621 | echo "$ac_t""no" 1>&6 |
| 6622 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6623 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6624 | |
| 6625 | |
| 6626 | fi |
| 6627 | |
| 6628 | |
| 6629 | |
| 6630 | |
| 6631 | |
| 6632 | |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 6633 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6634 | # checks for system services |
| 6635 | # (none yet) |
| 6636 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6637 | # Linux requires this for correct f.p. operations |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6638 | echo $ac_n "checking for __fpu_control""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6639 | echo "configure:6640: checking for __fpu_control" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6640 | if eval "test \"`echo '$''{'ac_cv_func___fpu_control'+set}'`\" = set"; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6641 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6642 | else |
| 6643 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6644 | #line 6645 "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6645 | #include "confdefs.h" |
| 6646 | /* System header to define __stub macros and hopefully few prototypes, |
| 6647 | which can conflict with char __fpu_control(); below. */ |
| 6648 | #include <assert.h> |
| 6649 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6650 | /* We use char because int might match the return type of a gcc2 |
| 6651 | builtin and then its argument prototype would still apply. */ |
| 6652 | char __fpu_control(); |
| 6653 | |
| 6654 | int main() { |
| 6655 | |
| 6656 | /* The GNU C library defines this for functions which it implements |
| 6657 | to always fail with ENOSYS. Some functions are actually named |
| 6658 | something starting with __ and the normal name is an alias. */ |
| 6659 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 6660 | choke me |
| 6661 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6662 | __fpu_control(); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6663 | #endif |
| 6664 | |
| 6665 | ; return 0; } |
| 6666 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6667 | if { (eval echo configure:6668: \"$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] | 6668 | rm -rf conftest* |
| 6669 | eval "ac_cv_func___fpu_control=yes" |
| 6670 | else |
| 6671 | echo "configure: failed program was:" >&5 |
| 6672 | cat conftest.$ac_ext >&5 |
| 6673 | rm -rf conftest* |
| 6674 | eval "ac_cv_func___fpu_control=no" |
| 6675 | fi |
| 6676 | rm -f conftest* |
| 6677 | fi |
| 6678 | |
| 6679 | if eval "test \"`echo '$ac_cv_func_'__fpu_control`\" = yes"; then |
| 6680 | echo "$ac_t""yes" 1>&6 |
| 6681 | : |
| 6682 | else |
| 6683 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6684 | echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6685 | echo "configure:6686: checking for __fpu_control in -lieee" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6686 | ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6687 | 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] | 6688 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6689 | else |
| 6690 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6691 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6692 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6693 | #line 6694 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6694 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6695 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6696 | /* We use char because int might match the return type of a gcc2 |
| 6697 | builtin and then its argument prototype would still apply. */ |
| 6698 | char __fpu_control(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6699 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6700 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6701 | __fpu_control() |
| 6702 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6703 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6704 | if { (eval echo configure:6705: \"$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] | 6705 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6706 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6707 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6708 | echo "configure: failed program was:" >&5 |
| 6709 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6710 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6711 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6712 | fi |
| 6713 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6714 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6715 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6716 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6717 | 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] | 6718 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6719 | ac_tr_lib=HAVE_LIB`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 6720 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6721 | cat >> confdefs.h <<EOF |
| 6722 | #define $ac_tr_lib 1 |
| 6723 | EOF |
| 6724 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6725 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6726 | |
| 6727 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6728 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6729 | fi |
| 6730 | |
| 6731 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6732 | fi |
| 6733 | |
| 6734 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6735 | # Check for --with-fpectl |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6736 | echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6737 | echo "configure:6738: checking for --with-fpectl" >&5 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6738 | # Check whether --with-fpectl or --without-fpectl was given. |
| 6739 | if test "${with_fpectl+set}" = set; then |
| 6740 | withval="$with_fpectl" |
| 6741 | |
| 6742 | if test "$withval" != no |
| 6743 | then cat >> confdefs.h <<\EOF |
| 6744 | #define WANT_SIGFPE_HANDLER 1 |
| 6745 | EOF |
| 6746 | echo "$ac_t""yes" 1>&6 |
| 6747 | else echo "$ac_t""no" 1>&6 |
| 6748 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6749 | else |
| 6750 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6751 | fi |
| 6752 | |
| 6753 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6754 | # check for --with-libm=... |
| 6755 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 6756 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 6757 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6758 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 6759 | *) LIBM=-lm |
| 6760 | esac |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6761 | echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6762 | echo "configure:6763: checking for --with-libm=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6763 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6764 | if test "${with_libm+set}" = set; then |
| 6765 | withval="$with_libm" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6766 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6767 | if test "$withval" = no |
| 6768 | then LIBM= |
| 6769 | echo "$ac_t""force LIBM empty" 1>&6 |
| 6770 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6771 | then LIBM=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6772 | echo "$ac_t""set LIBM=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6773 | 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] | 6774 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6775 | else |
| 6776 | echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6777 | fi |
| 6778 | |
| 6779 | |
| 6780 | # check for --with-libc=... |
| 6781 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6782 | echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6783 | echo "configure:6784: checking for --with-libc=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6784 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6785 | if test "${with_libc+set}" = set; then |
| 6786 | withval="$with_libc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6787 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6788 | if test "$withval" = no |
| 6789 | then LIBC= |
| 6790 | echo "$ac_t""force LIBC empty" 1>&6 |
| 6791 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6792 | then LIBC=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6793 | echo "$ac_t""set LIBC=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6794 | 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] | 6795 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6796 | else |
| 6797 | echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6798 | fi |
| 6799 | |
| 6800 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6801 | # check for hypot() in math library |
| 6802 | LIBS_SAVE=$LIBS |
| 6803 | LIBS="$LIBS $LIBM" |
| 6804 | for ac_func in hypot |
| 6805 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6806 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6807 | echo "configure:6808: checking for $ac_func" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6808 | 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] | 6809 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6810 | else |
| 6811 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6812 | #line 6813 "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6813 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6814 | /* System header to define __stub macros and hopefully few prototypes, |
| 6815 | which can conflict with char $ac_func(); below. */ |
| 6816 | #include <assert.h> |
| 6817 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6818 | /* We use char because int might match the return type of a gcc2 |
| 6819 | builtin and then its argument prototype would still apply. */ |
| 6820 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6821 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6822 | int main() { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6823 | |
| 6824 | /* The GNU C library defines this for functions which it implements |
| 6825 | to always fail with ENOSYS. Some functions are actually named |
| 6826 | something starting with __ and the normal name is an alias. */ |
| 6827 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6828 | choke me |
| 6829 | #else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6830 | $ac_func(); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6831 | #endif |
| 6832 | |
| 6833 | ; return 0; } |
| 6834 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6835 | if { (eval echo configure:6836: \"$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] | 6836 | rm -rf conftest* |
| 6837 | eval "ac_cv_func_$ac_func=yes" |
| 6838 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6839 | echo "configure: failed program was:" >&5 |
| 6840 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6841 | rm -rf conftest* |
| 6842 | eval "ac_cv_func_$ac_func=no" |
| 6843 | fi |
| 6844 | rm -f conftest* |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6845 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6846 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6847 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 6848 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6849 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 6850 | cat >> confdefs.h <<EOF |
| 6851 | #define $ac_tr_func 1 |
| 6852 | EOF |
| 6853 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6854 | else |
| 6855 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 6856 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6857 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6858 | done |
| 6859 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6860 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6861 | LIBS=$LIBS_SAVE |
| 6862 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6863 | # check whether malloc(0) returns NULL or not |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6864 | echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6865 | echo "configure:6866: checking what malloc(0) returns" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6866 | if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6867 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6868 | else |
| 6869 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 6870 | ac_cv_malloc_zero=nonnull |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6871 | else |
| 6872 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6873 | #line 6874 "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6874 | #include "confdefs.h" |
| 6875 | #include <stdio.h> |
| 6876 | #ifdef HAVE_STDLIB |
| 6877 | #include <stdlib.h> |
| 6878 | #else |
| 6879 | char *malloc(), *realloc(); |
| 6880 | int *free(); |
| 6881 | #endif |
| 6882 | main() { |
| 6883 | char *p; |
| 6884 | p = malloc(0); |
| 6885 | if (p == NULL) exit(1); |
| 6886 | p = realloc(p, 0); |
| 6887 | if (p == NULL) exit(1); |
| 6888 | free(p); |
| 6889 | exit(0); |
| 6890 | } |
| 6891 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6892 | if { (eval echo configure:6893: \"$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] | 6893 | then |
| 6894 | ac_cv_malloc_zero=nonnull |
| 6895 | else |
| 6896 | echo "configure: failed program was:" >&5 |
| 6897 | cat conftest.$ac_ext >&5 |
| 6898 | rm -fr conftest* |
| 6899 | ac_cv_malloc_zero=null |
| 6900 | fi |
| 6901 | rm -fr conftest* |
| 6902 | fi |
| 6903 | |
| 6904 | fi |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 6905 | # XXX arm cross-compile? |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6906 | echo "$ac_t""$ac_cv_malloc_zero" 1>&6 |
| 6907 | if test "$ac_cv_malloc_zero" = null |
| 6908 | then |
| 6909 | cat >> confdefs.h <<\EOF |
| 6910 | #define MALLOC_ZERO_RETURNS_NULL 1 |
| 6911 | EOF |
| 6912 | |
| 6913 | fi |
| 6914 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6915 | # check for wchar.h |
| 6916 | ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'` |
| 6917 | echo $ac_n "checking for wchar.h""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6918 | echo "configure:6919: checking for wchar.h" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 6919 | 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] | 6920 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6921 | else |
| 6922 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6923 | #line 6924 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6924 | #include "confdefs.h" |
| 6925 | #include <wchar.h> |
| 6926 | EOF |
| 6927 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6928 | { (eval echo configure:6929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6929 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 6930 | if test -z "$ac_err"; then |
| 6931 | rm -rf conftest* |
| 6932 | eval "ac_cv_header_$ac_safe=yes" |
| 6933 | else |
| 6934 | echo "$ac_err" >&5 |
| 6935 | echo "configure: failed program was:" >&5 |
| 6936 | cat conftest.$ac_ext >&5 |
| 6937 | rm -rf conftest* |
| 6938 | eval "ac_cv_header_$ac_safe=no" |
| 6939 | fi |
| 6940 | rm -f conftest* |
| 6941 | fi |
| 6942 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 6943 | echo "$ac_t""yes" 1>&6 |
| 6944 | cat >> confdefs.h <<\EOF |
| 6945 | #define HAVE_WCHAR_H 1 |
| 6946 | EOF |
| 6947 | wchar_h="yes" |
| 6948 | else |
| 6949 | echo "$ac_t""no" 1>&6 |
| 6950 | wchar_h="no" |
| 6951 | |
| 6952 | fi |
| 6953 | |
| 6954 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6955 | # determine wchar_t size |
| 6956 | if test "$wchar_h" = yes |
| 6957 | then |
| 6958 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6959 | echo "configure:6960: checking size of wchar_t" >&5 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6960 | if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then |
| 6961 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6962 | else |
| 6963 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 6964 | ac_cv_sizeof_wchar_t=4 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6965 | else |
| 6966 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6967 | #line 6968 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6968 | #include "confdefs.h" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6969 | #include <stdio.h> |
| 6970 | main() |
| 6971 | { |
| 6972 | FILE *f=fopen("conftestval", "w"); |
| 6973 | if (!f) exit(1); |
| 6974 | fprintf(f, "%d\n", sizeof(wchar_t)); |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6975 | exit(0); |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6976 | } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6977 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 6978 | if { (eval echo configure:6979: \"$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] | 6979 | then |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6980 | ac_cv_sizeof_wchar_t=`cat conftestval` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6981 | else |
| 6982 | echo "configure: failed program was:" >&5 |
| 6983 | cat conftest.$ac_ext >&5 |
| 6984 | rm -fr conftest* |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6985 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6986 | fi |
| 6987 | rm -fr conftest* |
| 6988 | fi |
| 6989 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 6990 | fi |
| 6991 | echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6 |
| 6992 | cat >> confdefs.h <<EOF |
| 6993 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
| 6994 | EOF |
| 6995 | |
| 6996 | |
| 6997 | fi |
| 6998 | |
| 6999 | echo $ac_n "checking what type to use for unicode""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7000 | echo "configure:7001: checking what type to use for unicode" >&5 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 7001 | # Check whether --enable-unicode or --disable-unicode was given. |
| 7002 | if test "${enable_unicode+set}" = set; then |
| 7003 | enableval="$enable_unicode" |
| 7004 | : |
| 7005 | else |
| 7006 | enable_unicode=yes |
| 7007 | fi |
| 7008 | |
| 7009 | |
| 7010 | if test $enable_unicode = yes |
| 7011 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 7012 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
| 7013 | enable_unicode="ucs2" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 7014 | fi |
| 7015 | |
| 7016 | case "$enable_unicode" in |
| 7017 | ucs2) unicode_size="2" |
| 7018 | cat >> confdefs.h <<\EOF |
| 7019 | #define Py_UNICODE_SIZE 2 |
| 7020 | EOF |
| 7021 | |
| 7022 | ;; |
| 7023 | ucs4) unicode_size="4" |
| 7024 | cat >> confdefs.h <<\EOF |
| 7025 | #define Py_UNICODE_SIZE 4 |
| 7026 | EOF |
| 7027 | |
| 7028 | ;; |
| 7029 | esac |
| 7030 | |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 7031 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 7032 | if test "$enable_unicode" = "no" |
| 7033 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 7034 | UNICODE_OBJS="" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 7035 | echo "$ac_t""not used" 1>&6 |
| 7036 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 7037 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 7038 | cat >> confdefs.h <<\EOF |
| 7039 | #define Py_USING_UNICODE 1 |
| 7040 | EOF |
| 7041 | |
| 7042 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" |
| 7043 | then |
| 7044 | PY_UNICODE_TYPE="wchar_t" |
| 7045 | cat >> confdefs.h <<\EOF |
| 7046 | #define HAVE_USABLE_WCHAR_T 1 |
| 7047 | EOF |
| 7048 | |
| 7049 | cat >> confdefs.h <<\EOF |
| 7050 | #define PY_UNICODE_TYPE wchar_t |
| 7051 | EOF |
| 7052 | |
| 7053 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 7054 | then |
| 7055 | PY_UNICODE_TYPE="unsigned short" |
| 7056 | cat >> confdefs.h <<\EOF |
| 7057 | #define PY_UNICODE_TYPE unsigned short |
| 7058 | EOF |
| 7059 | |
| 7060 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 7061 | then |
| 7062 | PY_UNICODE_TYPE="unsigned long" |
| 7063 | cat >> confdefs.h <<\EOF |
| 7064 | #define PY_UNICODE_TYPE unsigned long |
| 7065 | EOF |
| 7066 | |
| 7067 | else |
| 7068 | PY_UNICODE_TYPE="no type found" |
| 7069 | fi |
| 7070 | echo "$ac_t""$PY_UNICODE_TYPE" 1>&6 |
| 7071 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7072 | |
| 7073 | # check for endianness |
| 7074 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7075 | echo "configure:7076: checking whether byte ordering is bigendian" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 7076 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7077 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7078 | else |
| 7079 | ac_cv_c_bigendian=unknown |
| 7080 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 7081 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7082 | #line 7083 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7083 | #include "confdefs.h" |
| 7084 | #include <sys/types.h> |
| 7085 | #include <sys/param.h> |
| 7086 | int main() { |
| 7087 | |
| 7088 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 7089 | bogus endian macros |
| 7090 | #endif |
| 7091 | ; return 0; } |
| 7092 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7093 | if { (eval echo configure:7094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7094 | rm -rf conftest* |
| 7095 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 7096 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7097 | #line 7098 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7098 | #include "confdefs.h" |
| 7099 | #include <sys/types.h> |
| 7100 | #include <sys/param.h> |
| 7101 | int main() { |
| 7102 | |
| 7103 | #if BYTE_ORDER != BIG_ENDIAN |
| 7104 | not big endian |
| 7105 | #endif |
| 7106 | ; return 0; } |
| 7107 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7108 | if { (eval echo configure:7109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7109 | rm -rf conftest* |
| 7110 | ac_cv_c_bigendian=yes |
| 7111 | else |
| 7112 | echo "configure: failed program was:" >&5 |
| 7113 | cat conftest.$ac_ext >&5 |
| 7114 | rm -rf conftest* |
| 7115 | ac_cv_c_bigendian=no |
| 7116 | fi |
| 7117 | rm -f conftest* |
| 7118 | else |
| 7119 | echo "configure: failed program was:" >&5 |
| 7120 | cat conftest.$ac_ext >&5 |
| 7121 | fi |
| 7122 | rm -f conftest* |
| 7123 | if test $ac_cv_c_bigendian = unknown; then |
| 7124 | if test "$cross_compiling" = yes; then |
| 7125 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 7126 | else |
| 7127 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7128 | #line 7129 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7129 | #include "confdefs.h" |
| 7130 | main () { |
| 7131 | /* Are we little or big endian? From Harbison&Steele. */ |
| 7132 | union |
| 7133 | { |
| 7134 | long l; |
| 7135 | char c[sizeof (long)]; |
| 7136 | } u; |
| 7137 | u.l = 1; |
| 7138 | exit (u.c[sizeof (long) - 1] == 1); |
| 7139 | } |
| 7140 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7141 | if { (eval echo configure:7142: \"$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] | 7142 | then |
| 7143 | ac_cv_c_bigendian=no |
| 7144 | else |
| 7145 | echo "configure: failed program was:" >&5 |
| 7146 | cat conftest.$ac_ext >&5 |
| 7147 | rm -fr conftest* |
| 7148 | ac_cv_c_bigendian=yes |
| 7149 | fi |
| 7150 | rm -fr conftest* |
| 7151 | fi |
| 7152 | |
| 7153 | fi |
| 7154 | fi |
| 7155 | |
| 7156 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
| 7157 | if test $ac_cv_c_bigendian = yes; then |
| 7158 | cat >> confdefs.h <<\EOF |
| 7159 | #define WORDS_BIGENDIAN 1 |
| 7160 | EOF |
| 7161 | |
| 7162 | fi |
| 7163 | |
| 7164 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 7165 | # Check whether right shifting a negative integer extends the sign bit |
| 7166 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
| 7167 | echo $ac_n "checking whether right shift extends the sign bit""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7168 | echo "configure:7169: checking whether right shift extends the sign bit" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 7169 | if eval "test \"`echo '$''{'ac_cv_rshift_extends_sign'+set}'`\" = set"; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 7170 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7171 | else |
| 7172 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 7173 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 7174 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 7175 | else |
| 7176 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7177 | #line 7178 "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 7178 | #include "confdefs.h" |
| 7179 | |
| 7180 | int main() |
| 7181 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 7182 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 7183 | } |
| 7184 | |
| 7185 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7186 | if { (eval echo configure:7187: \"$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] | 7187 | then |
| 7188 | ac_cv_rshift_extends_sign=yes |
| 7189 | else |
| 7190 | echo "configure: failed program was:" >&5 |
| 7191 | cat conftest.$ac_ext >&5 |
| 7192 | rm -fr conftest* |
| 7193 | ac_cv_rshift_extends_sign=no |
| 7194 | fi |
| 7195 | rm -fr conftest* |
| 7196 | fi |
| 7197 | |
| 7198 | fi |
| 7199 | |
| 7200 | echo "$ac_t""$ac_cv_rshift_extends_sign" 1>&6 |
| 7201 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 7202 | then |
| 7203 | cat >> confdefs.h <<\EOF |
| 7204 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
| 7205 | EOF |
| 7206 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 7207 | fi |
| 7208 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 7209 | # check for getc_unlocked and related locking functions |
| 7210 | echo $ac_n "checking for getc_unlocked() and friends""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7211 | echo "configure:7212: checking for getc_unlocked() and friends" >&5 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 7212 | if eval "test \"`echo '$''{'ac_cv_have_getc_unlocked'+set}'`\" = set"; then |
| 7213 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7214 | else |
| 7215 | |
| 7216 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7217 | #line 7218 "configure" |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 7218 | #include "confdefs.h" |
| 7219 | #include <stdio.h> |
| 7220 | int main() { |
| 7221 | |
| 7222 | FILE *f = fopen("/dev/null", "r"); |
| 7223 | flockfile(f); |
| 7224 | getc_unlocked(f); |
| 7225 | funlockfile(f); |
| 7226 | |
| 7227 | ; return 0; } |
| 7228 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7229 | if { (eval echo configure:7230: \"$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] | 7230 | rm -rf conftest* |
| 7231 | ac_cv_have_getc_unlocked=yes |
| 7232 | else |
| 7233 | echo "configure: failed program was:" >&5 |
| 7234 | cat conftest.$ac_ext >&5 |
| 7235 | rm -rf conftest* |
| 7236 | ac_cv_have_getc_unlocked=no |
| 7237 | fi |
| 7238 | rm -f conftest* |
| 7239 | fi |
| 7240 | |
| 7241 | echo "$ac_t""$ac_cv_have_getc_unlocked" 1>&6 |
| 7242 | if test "$ac_cv_have_getc_unlocked" = yes |
| 7243 | then |
| 7244 | cat >> confdefs.h <<\EOF |
| 7245 | #define HAVE_GETC_UNLOCKED 1 |
| 7246 | EOF |
| 7247 | |
| 7248 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 7249 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 7250 | # check for readline 4.0 |
| 7251 | echo $ac_n "checking for rl_pre_input_hook in -lreadline""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7252 | echo "configure:7253: checking for rl_pre_input_hook in -lreadline" >&5 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 7253 | ac_lib_var=`echo readline'_'rl_pre_input_hook | sed 'y%./+-%__p_%'` |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 7254 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 7255 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7256 | else |
| 7257 | ac_save_LIBS="$LIBS" |
| 7258 | LIBS="-lreadline -ltermcap $LIBS" |
| 7259 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7260 | #line 7261 "configure" |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 7261 | #include "confdefs.h" |
| 7262 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7263 | /* We use char because int might match the return type of a gcc2 |
| 7264 | builtin and then its argument prototype would still apply. */ |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 7265 | char rl_pre_input_hook(); |
| 7266 | |
| 7267 | int main() { |
| 7268 | rl_pre_input_hook() |
| 7269 | ; return 0; } |
| 7270 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7271 | if { (eval echo configure:7272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 7272 | rm -rf conftest* |
| 7273 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 7274 | else |
| 7275 | echo "configure: failed program was:" >&5 |
| 7276 | cat conftest.$ac_ext >&5 |
| 7277 | rm -rf conftest* |
| 7278 | eval "ac_cv_lib_$ac_lib_var=no" |
| 7279 | fi |
| 7280 | rm -f conftest* |
| 7281 | LIBS="$ac_save_LIBS" |
| 7282 | |
| 7283 | fi |
| 7284 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 7285 | echo "$ac_t""yes" 1>&6 |
| 7286 | cat >> confdefs.h <<\EOF |
| 7287 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
| 7288 | EOF |
| 7289 | |
| 7290 | else |
| 7291 | echo "$ac_t""no" 1>&6 |
| 7292 | fi |
| 7293 | |
| 7294 | |
| 7295 | # check for readline 4.2 |
| 7296 | echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7297 | echo "configure:7298: checking for rl_completion_matches in -lreadline" >&5 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 7298 | ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'` |
| 7299 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 7300 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7301 | else |
| 7302 | ac_save_LIBS="$LIBS" |
| 7303 | LIBS="-lreadline -ltermcap $LIBS" |
| 7304 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7305 | #line 7306 "configure" |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 7306 | #include "confdefs.h" |
| 7307 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7308 | /* We use char because int might match the return type of a gcc2 |
| 7309 | builtin and then its argument prototype would still apply. */ |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 7310 | char rl_completion_matches(); |
| 7311 | |
| 7312 | int main() { |
| 7313 | rl_completion_matches() |
| 7314 | ; return 0; } |
| 7315 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7316 | if { (eval echo configure:7317: \"$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] | 7317 | rm -rf conftest* |
| 7318 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 7319 | else |
| 7320 | echo "configure: failed program was:" >&5 |
| 7321 | cat conftest.$ac_ext >&5 |
| 7322 | rm -rf conftest* |
| 7323 | eval "ac_cv_lib_$ac_lib_var=no" |
| 7324 | fi |
| 7325 | rm -f conftest* |
| 7326 | LIBS="$ac_save_LIBS" |
| 7327 | |
| 7328 | fi |
| 7329 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 7330 | echo "$ac_t""yes" 1>&6 |
| 7331 | cat >> confdefs.h <<\EOF |
| 7332 | #define HAVE_RL_COMPLETION_MATCHES 1 |
| 7333 | EOF |
| 7334 | |
| 7335 | else |
| 7336 | echo "$ac_t""no" 1>&6 |
| 7337 | fi |
| 7338 | |
| 7339 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 7340 | echo $ac_n "checking for broken nice()""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7341 | echo "configure:7342: checking for broken nice()" >&5 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 7342 | if eval "test \"`echo '$''{'ac_cv_broken_nice'+set}'`\" = set"; then |
| 7343 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7344 | else |
| 7345 | |
| 7346 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 7347 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 7348 | else |
| 7349 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7350 | #line 7351 "configure" |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 7351 | #include "confdefs.h" |
| 7352 | |
| 7353 | int main() |
| 7354 | { |
| 7355 | int val1 = nice(1); |
| 7356 | if (val1 != -1 && val1 == nice(2)) |
| 7357 | exit(0); |
| 7358 | exit(1); |
| 7359 | } |
| 7360 | |
| 7361 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7362 | if { (eval echo configure:7363: \"$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] | 7363 | then |
| 7364 | ac_cv_broken_nice=yes |
| 7365 | else |
| 7366 | echo "configure: failed program was:" >&5 |
| 7367 | cat conftest.$ac_ext >&5 |
| 7368 | rm -fr conftest* |
| 7369 | ac_cv_broken_nice=no |
| 7370 | fi |
| 7371 | rm -fr conftest* |
| 7372 | fi |
| 7373 | |
| 7374 | fi |
| 7375 | |
| 7376 | echo "$ac_t""$ac_cv_broken_nice" 1>&6 |
| 7377 | if test "$ac_cv_broken_nice" = yes |
| 7378 | then |
| 7379 | cat >> confdefs.h <<\EOF |
| 7380 | #define HAVE_BROKEN_NICE 1 |
| 7381 | EOF |
| 7382 | |
| 7383 | fi |
| 7384 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 7385 | # On HP/UX 11.0, mvwdelch is a block with a return statement |
| 7386 | echo $ac_n "checking whether mvwdelch is an expression""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7387 | echo "configure:7388: checking whether mvwdelch is an expression" >&5 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 7388 | if eval "test \"`echo '$''{'ac_cv_mvwdelch_is_expression'+set}'`\" = set"; then |
| 7389 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7390 | else |
| 7391 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7392 | #line 7393 "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 7393 | #include "confdefs.h" |
| 7394 | #include <curses.h> |
| 7395 | int main() { |
| 7396 | |
| 7397 | int rtn; |
| 7398 | rtn = mvwdelch(0,0,0); |
| 7399 | |
| 7400 | ; return 0; } |
| 7401 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7402 | if { (eval echo configure:7403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 7403 | rm -rf conftest* |
| 7404 | ac_cv_mvwdelch_is_expression=yes |
| 7405 | else |
| 7406 | echo "configure: failed program was:" >&5 |
| 7407 | cat conftest.$ac_ext >&5 |
| 7408 | rm -rf conftest* |
| 7409 | ac_cv_mvwdelch_is_expression=no |
| 7410 | fi |
| 7411 | rm -f conftest* |
| 7412 | fi |
| 7413 | |
| 7414 | echo "$ac_t""$ac_cv_mvwdelch_is_expression" 1>&6 |
| 7415 | |
| 7416 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 7417 | then |
| 7418 | cat >> confdefs.h <<\EOF |
| 7419 | #define MVWDELCH_IS_EXPRESSION 1 |
| 7420 | EOF |
| 7421 | |
| 7422 | fi |
| 7423 | |
| 7424 | echo $ac_n "checking whether WINDOW has _flags""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7425 | echo "configure:7426: checking whether WINDOW has _flags" >&5 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 7426 | if eval "test \"`echo '$''{'ac_cv_window_has_flags'+set}'`\" = set"; then |
| 7427 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7428 | else |
| 7429 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7430 | #line 7431 "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 7431 | #include "confdefs.h" |
| 7432 | #include <curses.h> |
| 7433 | int main() { |
| 7434 | |
| 7435 | WINDOW *w; |
| 7436 | w->_flags = 0; |
| 7437 | |
| 7438 | ; return 0; } |
| 7439 | EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7440 | if { (eval echo configure:7441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 7441 | rm -rf conftest* |
| 7442 | ac_cv_window_has_flags=yes |
| 7443 | else |
| 7444 | echo "configure: failed program was:" >&5 |
| 7445 | cat conftest.$ac_ext >&5 |
| 7446 | rm -rf conftest* |
| 7447 | ac_cv_window_has_flags=no |
| 7448 | fi |
| 7449 | rm -f conftest* |
| 7450 | fi |
| 7451 | |
| 7452 | echo "$ac_t""$ac_cv_window_has_flags" 1>&6 |
| 7453 | |
| 7454 | |
| 7455 | if test "$ac_cv_window_has_flags" = yes |
| 7456 | then |
| 7457 | cat >> confdefs.h <<\EOF |
| 7458 | #define WINDOW_HAS_FLAGS 1 |
| 7459 | EOF |
| 7460 | |
| 7461 | fi |
| 7462 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 7463 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! |
| 7464 | # Add sys/socket.h to confdefs.h |
| 7465 | cat >> confdefs.h <<\EOF |
| 7466 | #ifdef HAVE_SYS_SOCKET_H |
| 7467 | #include <sys/socket.h> |
| 7468 | #endif |
| 7469 | EOF |
| 7470 | echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7471 | echo "configure:7472: checking for socklen_t" >&5 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 7472 | 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] | 7473 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7474 | else |
| 7475 | cat > conftest.$ac_ext <<EOF |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7476 | #line 7477 "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 7477 | #include "confdefs.h" |
| 7478 | #include <sys/types.h> |
| 7479 | #if STDC_HEADERS |
| 7480 | #include <stdlib.h> |
| 7481 | #include <stddef.h> |
| 7482 | #endif |
| 7483 | EOF |
| 7484 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7485 | egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 7486 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 7487 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 7488 | else |
| 7489 | rm -rf conftest* |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 7490 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 7491 | fi |
| 7492 | rm -f conftest* |
| 7493 | |
| 7494 | fi |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 7495 | echo "$ac_t""$ac_cv_type_socklen_t" 1>&6 |
| 7496 | if test $ac_cv_type_socklen_t = no; then |
| 7497 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 7498 | #define socklen_t int |
| 7499 | EOF |
| 7500 | |
| 7501 | fi |
| 7502 | |
| 7503 | |
Neil Schemenauer | f25cf6c | 2001-03-04 06:39:33 +0000 | [diff] [blame] | 7504 | # Add Python/ prefix to LIBOBJS |
| 7505 | libobjs=$LIBOBJS |
| 7506 | LIBOBJS= |
| 7507 | for obj in $libobjs; do |
| 7508 | LIBOBJS="$LIBOBJS Python/$obj" |
| 7509 | done |
| 7510 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7511 | #AC_MSG_CHECKING(for Modules/Setup) |
| 7512 | #if test ! -f Modules/Setup ; then |
| 7513 | # if test ! -d Modules ; then |
| 7514 | # mkdir Modules |
| 7515 | # fi |
| 7516 | # cp "$srcdir/Modules/Setup.dist" Modules/Setup |
| 7517 | # AC_MSG_RESULT(creating) |
| 7518 | #else |
| 7519 | # AC_MSG_RESULT(already exists) |
| 7520 | #fi |
| 7521 | |
| 7522 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 7523 | |
| 7524 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 7525 | do |
| 7526 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 7527 | done |
| 7528 | |
| 7529 | |
Neil Schemenauer | acbf9ef | 2001-02-27 02:15:14 +0000 | [diff] [blame] | 7530 | SRCDIRS="Parser Grammar Objects Python Modules" |
Andrew M. Kuchling | 8abedde | 2001-01-26 22:55:24 +0000 | [diff] [blame] | 7531 | echo $ac_n "checking for build directories""... $ac_c" 1>&6 |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame^] | 7532 | echo "configure:7533: checking for build directories" >&5 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7533 | for dir in $SRCDIRS; do |
| 7534 | if test ! -d $dir; then |
| 7535 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 7536 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7537 | done |
| 7538 | echo "$ac_t""done" 1>&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 7539 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7540 | # generate output files |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7541 | trap '' 1 2 15 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7542 | cat > confcache <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7543 | # This file is a shell script that caches the results of configure |
| 7544 | # tests run on this system so they can be shared between configure |
| 7545 | # scripts and configure runs. It is not useful on other systems. |
| 7546 | # If it contains results you don't want to keep, you may remove or edit it. |
| 7547 | # |
| 7548 | # By default, configure uses ./config.cache as the cache file, |
| 7549 | # creating it if it does not exist already. You can give configure |
| 7550 | # the --cache-file=FILE option to use a different cache file; that is |
| 7551 | # what configure does when it calls configure scripts in |
| 7552 | # subdirectories, so they share the cache. |
| 7553 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 7554 | # config.status only pays attention to the cache file if you give it the |
| 7555 | # --recheck option to rerun configure. |
| 7556 | # |
| 7557 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7558 | # The following way of writing the cache mishandles newlines in values, |
| 7559 | # but we know of no workaround that is simple, portable, and efficient. |
| 7560 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7561 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 7562 | # 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] | 7563 | (set) 2>&1 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 7564 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7565 | *ac_space=\ *) |
| 7566 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 7567 | # turns \\\\ into \\, and sed turns \\ into \). |
| 7568 | sed -n \ |
| 7569 | -e "s/'/'\\\\''/g" \ |
| 7570 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 7571 | ;; |
| 7572 | *) |
| 7573 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 7574 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 7575 | ;; |
| 7576 | esac >> confcache |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7577 | if cmp -s $cache_file confcache; then |
| 7578 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7579 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7580 | if test -w $cache_file; then |
| 7581 | echo "updating cache $cache_file" |
| 7582 | cat confcache > $cache_file |
| 7583 | else |
| 7584 | echo "not updating unwritable cache $cache_file" |
| 7585 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7586 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7587 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7588 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7589 | 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] | 7590 | |
| 7591 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 7592 | # Let make expand exec_prefix. |
| 7593 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7594 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7595 | # Any assignment to VPATH causes Sun make to only execute |
| 7596 | # the first set of double-colon rules, so remove it if not needed. |
| 7597 | # If there is a colon in the path, we need to keep it. |
| 7598 | if test "x$srcdir" = x.; then |
| 7599 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 7600 | fi |
| 7601 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7602 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7603 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7604 | DEFS=-DHAVE_CONFIG_H |
| 7605 | |
| 7606 | # Without the "./", some shells look in PATH for config.status. |
| 7607 | : ${CONFIG_STATUS=./config.status} |
| 7608 | |
| 7609 | echo creating $CONFIG_STATUS |
| 7610 | rm -f $CONFIG_STATUS |
| 7611 | cat > $CONFIG_STATUS <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7612 | #! /bin/sh |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7613 | # Generated automatically by configure. |
| 7614 | # Run this file to recreate the current configuration. |
| 7615 | # This directory was configured as follows, |
| 7616 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 7617 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7618 | # $0 $ac_configure_args |
| 7619 | # |
| 7620 | # Compiler output produced by configure, useful for debugging |
| 7621 | # configure, is in ./config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7622 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7623 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7624 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7625 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7626 | case "\$ac_option" in |
| 7627 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7628 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 7629 | 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] | 7630 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 7631 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7632 | exit 0 ;; |
| 7633 | -help | --help | --hel | --he | --h) |
| 7634 | echo "\$ac_cs_usage"; exit 0 ;; |
| 7635 | *) echo "\$ac_cs_usage"; exit 1 ;; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7636 | esac |
| 7637 | done |
| 7638 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7639 | ac_given_srcdir=$srcdir |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7640 | ac_given_INSTALL="$INSTALL" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7641 | |
Martin v. Löwis | 4f1cd8b | 2001-07-26 13:41:06 +0000 | [diff] [blame] | 7642 | 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] | 7643 | EOF |
| 7644 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7645 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7646 | # Protect against being on the right side of a sed subst in config.status. |
| 7647 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 7648 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7649 | $ac_vpsub |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7650 | $extrasub |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 7651 | s%@SHELL@%$SHELL%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7652 | s%@CFLAGS@%$CFLAGS%g |
| 7653 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 7654 | s%@CXXFLAGS@%$CXXFLAGS%g |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 7655 | s%@FFLAGS@%$FFLAGS%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7656 | s%@DEFS@%$DEFS%g |
| 7657 | s%@LDFLAGS@%$LDFLAGS%g |
| 7658 | s%@LIBS@%$LIBS%g |
| 7659 | s%@exec_prefix@%$exec_prefix%g |
| 7660 | s%@prefix@%$prefix%g |
| 7661 | s%@program_transform_name@%$program_transform_name%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7662 | s%@bindir@%$bindir%g |
| 7663 | s%@sbindir@%$sbindir%g |
| 7664 | s%@libexecdir@%$libexecdir%g |
| 7665 | s%@datadir@%$datadir%g |
| 7666 | s%@sysconfdir@%$sysconfdir%g |
| 7667 | s%@sharedstatedir@%$sharedstatedir%g |
| 7668 | s%@localstatedir@%$localstatedir%g |
| 7669 | s%@libdir@%$libdir%g |
| 7670 | s%@includedir@%$includedir%g |
| 7671 | s%@oldincludedir@%$oldincludedir%g |
| 7672 | s%@infodir@%$infodir%g |
| 7673 | s%@mandir@%$mandir%g |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 7674 | s%@VERSION@%$VERSION%g |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 7675 | s%@CONFIG_ARGS@%$CONFIG_ARGS%g |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7676 | s%@PYTHONFRAMEWORK@%$PYTHONFRAMEWORK%g |
| 7677 | s%@PYTHONFRAMEWORKDIR@%$PYTHONFRAMEWORKDIR%g |
| 7678 | s%@PYTHONFRAMEWORKPREFIX@%$PYTHONFRAMEWORKPREFIX%g |
| 7679 | s%@PYTHONFRAMEWORKINSTALLDIR@%$PYTHONFRAMEWORKINSTALLDIR%g |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 7680 | s%@MACHDEP@%$MACHDEP%g |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 7681 | s%@SGI_ABI@%$SGI_ABI%g |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 7682 | s%@CXX@%$CXX%g |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 7683 | s%@MAINOBJ@%$MAINOBJ%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7684 | s%@CC@%$CC%g |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 7685 | s%@CPP@%$CPP%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7686 | s%@EXEEXT@%$EXEEXT%g |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7687 | s%@LIBRARY@%$LIBRARY%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7688 | s%@LDLIBRARY@%$LDLIBRARY%g |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 7689 | s%@DLLLIBRARY@%$DLLLIBRARY%g |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 7690 | s%@BLDLIBRARY@%$BLDLIBRARY%g |
| 7691 | s%@LDLIBRARYDIR@%$LDLIBRARYDIR%g |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 7692 | s%@LINKCC@%$LINKCC%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7693 | s%@RANLIB@%$RANLIB%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7694 | s%@AR@%$AR%g |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7695 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7696 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 7697 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7698 | s%@LN@%$LN%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 7699 | s%@OPT@%$OPT%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 7700 | s%@LIBTOOL_CRUFT@%$LIBTOOL_CRUFT%g |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7701 | s%@SO@%$SO%g |
| 7702 | s%@LDSHARED@%$LDSHARED%g |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 7703 | s%@BLDSHARED@%$BLDSHARED%g |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7704 | s%@CCSHARED@%$CCSHARED%g |
| 7705 | s%@LINKFORSHARED@%$LINKFORSHARED%g |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7706 | s%@CFLAGSFORSHARED@%$CFLAGSFORSHARED%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7707 | s%@USE_SIGNAL_MODULE@%$USE_SIGNAL_MODULE%g |
| 7708 | s%@SIGNAL_OBJS@%$SIGNAL_OBJS%g |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 7709 | s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 7710 | s%@LDLAST@%$LDLAST%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7711 | s%@DLINCLDIR@%$DLINCLDIR%g |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 7712 | s%@DYNLOADFILE@%$DYNLOADFILE%g |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 7713 | s%@MACHDEP_OBJS@%$MACHDEP_OBJS%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7714 | s%@LIBOBJS@%$LIBOBJS%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 7715 | s%@HAVE_GETHOSTBYNAME_R_6_ARG@%$HAVE_GETHOSTBYNAME_R_6_ARG%g |
| 7716 | s%@HAVE_GETHOSTBYNAME_R_5_ARG@%$HAVE_GETHOSTBYNAME_R_5_ARG%g |
| 7717 | 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] | 7718 | s%@HAVE_GETHOSTBYNAME_R@%$HAVE_GETHOSTBYNAME_R%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 7719 | s%@HAVE_GETHOSTBYNAME@%$HAVE_GETHOSTBYNAME%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7720 | s%@LIBM@%$LIBM%g |
| 7721 | s%@LIBC@%$LIBC%g |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 7722 | s%@UNICODE_OBJS@%$UNICODE_OBJS%g |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 7723 | s%@THREADHEADERS@%$THREADHEADERS%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7724 | s%@SRCDIRS@%$SRCDIRS%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7725 | |
| 7726 | CEOF |
| 7727 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7728 | |
| 7729 | cat >> $CONFIG_STATUS <<\EOF |
| 7730 | |
| 7731 | # Split the substitutions into bite-sized pieces for seds with |
| 7732 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 7733 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 7734 | ac_file=1 # Number of current file. |
| 7735 | ac_beg=1 # First line for current file. |
| 7736 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 7737 | ac_more_lines=: |
| 7738 | ac_sed_cmds="" |
| 7739 | while $ac_more_lines; do |
| 7740 | if test $ac_beg -gt 1; then |
| 7741 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 7742 | else |
| 7743 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 7744 | fi |
| 7745 | if test ! -s conftest.s$ac_file; then |
| 7746 | ac_more_lines=false |
| 7747 | rm -f conftest.s$ac_file |
| 7748 | else |
| 7749 | if test -z "$ac_sed_cmds"; then |
| 7750 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 7751 | else |
| 7752 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 7753 | fi |
| 7754 | ac_file=`expr $ac_file + 1` |
| 7755 | ac_beg=$ac_end |
| 7756 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 7757 | fi |
| 7758 | done |
| 7759 | if test -z "$ac_sed_cmds"; then |
| 7760 | ac_sed_cmds=cat |
| 7761 | fi |
| 7762 | EOF |
| 7763 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7764 | cat >> $CONFIG_STATUS <<EOF |
| 7765 | |
Andrew M. Kuchling | 8abedde | 2001-01-26 22:55:24 +0000 | [diff] [blame] | 7766 | CONFIG_FILES=\${CONFIG_FILES-"Makefile.pre Modules/Setup.config"} |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7767 | EOF |
| 7768 | cat >> $CONFIG_STATUS <<\EOF |
| 7769 | 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] | 7770 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7771 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7772 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7773 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 7774 | *) ac_file_in="${ac_file}.in" ;; |
| 7775 | esac |
| 7776 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7777 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7778 | |
| 7779 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 7780 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 7781 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 7782 | # The file is in a subdirectory. |
| 7783 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7784 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7785 | # A "../" for each directory in $ac_dir_suffix. |
| 7786 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 7787 | else |
| 7788 | ac_dir_suffix= ac_dots= |
| 7789 | fi |
| 7790 | |
| 7791 | case "$ac_given_srcdir" in |
| 7792 | .) srcdir=. |
| 7793 | if test -z "$ac_dots"; then top_srcdir=. |
| 7794 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 7795 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 7796 | *) # Relative path. |
| 7797 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 7798 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 7799 | esac |
| 7800 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7801 | case "$ac_given_INSTALL" in |
| 7802 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
| 7803 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
| 7804 | esac |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7805 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7806 | echo creating "$ac_file" |
| 7807 | rm -f "$ac_file" |
| 7808 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 7809 | case "$ac_file" in |
| 7810 | *Makefile*) ac_comsub="1i\\ |
| 7811 | # $configure_input" ;; |
| 7812 | *) ac_comsub= ;; |
| 7813 | esac |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7814 | |
| 7815 | 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] | 7816 | sed -e "$ac_comsub |
| 7817 | s%@configure_input@%$configure_input%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7818 | s%@srcdir@%$srcdir%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7819 | s%@top_srcdir@%$top_srcdir%g |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7820 | s%@INSTALL@%$INSTALL%g |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7821 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7822 | fi; done |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7823 | rm -f conftest.s* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7824 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7825 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 7826 | # 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] | 7827 | # |
| 7828 | # ac_d sets the value in "#define NAME VALUE" lines. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7829 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 7830 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7831 | ac_dC='\3' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7832 | ac_dD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7833 | # 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] | 7834 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 7835 | ac_uB='\([ ]\)%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7836 | ac_uC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7837 | ac_uD='\4%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7838 | # 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] | 7839 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 7840 | ac_eB='$%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7841 | ac_eC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7842 | ac_eD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7843 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7844 | if test "${CONFIG_HEADERS+set}" != set; then |
| 7845 | EOF |
| 7846 | cat >> $CONFIG_STATUS <<EOF |
Martin v. Löwis | 4f1cd8b | 2001-07-26 13:41:06 +0000 | [diff] [blame] | 7847 | CONFIG_HEADERS="pyconfig.h" |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7848 | EOF |
| 7849 | cat >> $CONFIG_STATUS <<\EOF |
| 7850 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7851 | 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] | 7852 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7853 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7854 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7855 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 7856 | *) ac_file_in="${ac_file}.in" ;; |
| 7857 | esac |
| 7858 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7859 | echo creating $ac_file |
| 7860 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7861 | rm -f conftest.frag conftest.in conftest.out |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7862 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 7863 | cat $ac_file_inputs > conftest.in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7864 | |
| 7865 | EOF |
| 7866 | |
| 7867 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 7868 | # 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] | 7869 | # 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] | 7870 | # Protect against being in an unquoted here document in config.status. |
| 7871 | rm -f conftest.vals |
| 7872 | cat > conftest.hdr <<\EOF |
| 7873 | s/[\\&%]/\\&/g |
| 7874 | s%[\\$`]%\\&%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7875 | 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] | 7876 | s%ac_d%ac_u%gp |
| 7877 | s%ac_u%ac_e%gp |
| 7878 | EOF |
| 7879 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 7880 | rm -f conftest.hdr |
| 7881 | |
| 7882 | # This sed command replaces #undef with comments. This is necessary, for |
| 7883 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 7884 | # on some systems where configure will not decide to define it. |
| 7885 | cat >> conftest.vals <<\EOF |
| 7886 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 7887 | EOF |
| 7888 | |
| 7889 | # Break up conftest.vals because some shells have a limit on |
| 7890 | # 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] | 7891 | |
| 7892 | rm -f conftest.tail |
| 7893 | while : |
| 7894 | do |
| 7895 | ac_lines=`grep -c . conftest.vals` |
| 7896 | # grep -c gives empty output for an empty file on some AIX systems. |
| 7897 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 7898 | # Write a limited-size here document to conftest.frag. |
| 7899 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 7900 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 7901 | echo 'CEOF |
| 7902 | sed -f conftest.frag conftest.in > conftest.out |
| 7903 | rm -f conftest.in |
| 7904 | mv conftest.out conftest.in |
| 7905 | ' >> $CONFIG_STATUS |
| 7906 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 7907 | rm -f conftest.vals |
| 7908 | mv conftest.tail conftest.vals |
| 7909 | done |
| 7910 | rm -f conftest.vals |
| 7911 | |
| 7912 | cat >> $CONFIG_STATUS <<\EOF |
| 7913 | rm -f conftest.frag conftest.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7914 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7915 | cat conftest.in >> conftest.h |
| 7916 | rm -f conftest.in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7917 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7918 | echo "$ac_file is unchanged" |
| 7919 | rm -f conftest.h |
| 7920 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7921 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 7922 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 7923 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 7924 | # The file is in a subdirectory. |
| 7925 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 7926 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7927 | rm -f $ac_file |
| 7928 | mv conftest.h $ac_file |
| 7929 | fi |
| 7930 | fi; done |
| 7931 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7932 | EOF |
| 7933 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7934 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7935 | EOF |
| 7936 | cat >> $CONFIG_STATUS <<\EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7937 | |
| 7938 | exit 0 |
| 7939 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7940 | chmod +x $CONFIG_STATUS |
| 7941 | rm -fr confdefs* $ac_clean_files |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 7942 | 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] | 7943 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 7944 | |
| 7945 | echo "creating Setup" |
| 7946 | if test ! -f Modules/Setup |
| 7947 | then |
| 7948 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 7949 | fi |
| 7950 | |
| 7951 | echo "creating Setup.local" |
| 7952 | if test ! -f Modules/Setup.local |
| 7953 | then |
| 7954 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 7955 | fi |
| 7956 | |
| 7957 | echo "creating Makefile" |
| 7958 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 7959 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 7960 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 7961 | mv config.c Modules |