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 | |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3 | # From configure.in Revision: 1.131 |
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. |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 6 | # Generated automatically using autoconf version 2.13 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8 | # |
| 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12 | # Defaults: |
| 13 | ac_help= |
| 14 | ac_default_prefix=/usr/local |
| 15 | # Any additions from configure.in: |
| 16 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 17 | --with-next-archs='arch1 arch2 ..' build MAB binary" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 18 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 19 | --with-next-framework Build (OpenStep|Rhapsody|MacOSX) framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 20 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 21 | --with-dyld Use (OpenStep|Rhapsody|MacOSX) dynamic linker" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 22 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 23 | --without-gcc never use gcc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 25 | --with-cxx=<compiler> enable C++ support" |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 26 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 27 | --with-libs='lib1 ...' link against additional libs" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 28 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 29 | --with(out)-readline obsolete, edit Modules/Setup instead" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 30 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 31 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 32 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 33 | --with(out)-threads[=DIRECTORY] disable/enable thread support" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 34 | ac_help="$ac_help |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 35 | --with(out)-thread[=DIRECTORY] deprecated; use --with(out)-threads" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 36 | ac_help="$ac_help |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 37 | --with(out)-cycle-gc disable/enable garbage collection" |
| 38 | ac_help="$ac_help |
| 39 | --with-wctype-functions use wctype.h functions" |
| 40 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 41 | --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 42 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 43 | --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 44 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 45 | --with-fpectl enable SIGFPE catching" |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 46 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 47 | --with-libm=STRING math library" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 48 | ac_help="$ac_help |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 49 | --with-libc=STRING C library" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 50 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 51 | # Initialize some variables set by options. |
| 52 | # The variables have the same names as the options, with |
| 53 | # dashes changed to underlines. |
| 54 | build=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 55 | cache_file=./config.cache |
| 56 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 57 | host=NONE |
| 58 | no_create= |
| 59 | nonopt=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 60 | no_recursion= |
| 61 | prefix=NONE |
| 62 | program_prefix=NONE |
| 63 | program_suffix=NONE |
| 64 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 65 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 66 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 67 | srcdir= |
| 68 | target=NONE |
| 69 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 70 | x_includes=NONE |
| 71 | x_libraries=NONE |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 72 | bindir='${exec_prefix}/bin' |
| 73 | sbindir='${exec_prefix}/sbin' |
| 74 | libexecdir='${exec_prefix}/libexec' |
| 75 | datadir='${prefix}/share' |
| 76 | sysconfdir='${prefix}/etc' |
| 77 | sharedstatedir='${prefix}/com' |
| 78 | localstatedir='${prefix}/var' |
| 79 | libdir='${exec_prefix}/lib' |
| 80 | includedir='${prefix}/include' |
| 81 | oldincludedir='/usr/include' |
| 82 | infodir='${prefix}/info' |
| 83 | mandir='${prefix}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 84 | |
| 85 | # Initialize some other variables. |
| 86 | subdirs= |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 87 | MFLAGS= MAKEFLAGS= |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 88 | SHELL=${CONFIG_SHELL-/bin/sh} |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 89 | # Maximum number of lines to put in a shell here document. |
| 90 | ac_max_here_lines=12 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 91 | |
| 92 | ac_prev= |
| 93 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 94 | do |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 95 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 96 | # If the previous option needs an argument, assign it. |
| 97 | if test -n "$ac_prev"; then |
| 98 | eval "$ac_prev=\$ac_option" |
| 99 | ac_prev= |
| 100 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 101 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 102 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 103 | case "$ac_option" in |
| 104 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 105 | *) ac_optarg= ;; |
| 106 | esac |
| 107 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 108 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 109 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 110 | case "$ac_option" in |
| 111 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 112 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 113 | ac_prev=bindir ;; |
| 114 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 115 | bindir="$ac_optarg" ;; |
| 116 | |
| 117 | -build | --build | --buil | --bui | --bu) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 118 | ac_prev=build ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 119 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 120 | build="$ac_optarg" ;; |
| 121 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 122 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 123 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 124 | ac_prev=cache_file ;; |
| 125 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 126 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 127 | cache_file="$ac_optarg" ;; |
| 128 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 129 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 130 | ac_prev=datadir ;; |
| 131 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 132 | | --da=*) |
| 133 | datadir="$ac_optarg" ;; |
| 134 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 135 | -disable-* | --disable-*) |
| 136 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 137 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 138 | 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] | 139 | { 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] | 140 | fi |
| 141 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 142 | eval "enable_${ac_feature}=no" ;; |
| 143 | |
| 144 | -enable-* | --enable-*) |
| 145 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 146 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 147 | 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] | 148 | { 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] | 149 | fi |
| 150 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 151 | case "$ac_option" in |
| 152 | *=*) ;; |
| 153 | *) ac_optarg=yes ;; |
| 154 | esac |
| 155 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 156 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 157 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 158 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 159 | | --exec | --exe | --ex) |
| 160 | ac_prev=exec_prefix ;; |
| 161 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 162 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 163 | | --exec=* | --exe=* | --ex=*) |
| 164 | exec_prefix="$ac_optarg" ;; |
| 165 | |
| 166 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 167 | # Obsolete; use --with-gas. |
| 168 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 169 | |
| 170 | -help | --help | --hel | --he) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 171 | # Omit some internal or obsolete options to make the list less imposing. |
| 172 | # 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] | 173 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 174 | Usage: configure [options] [host] |
| 175 | Options: [defaults in brackets after descriptions] |
| 176 | Configuration: |
| 177 | --cache-file=FILE cache test results in FILE |
| 178 | --help print this message |
| 179 | --no-create do not create output files |
| 180 | --quiet, --silent do not print \`checking...' messages |
| 181 | --version print the version of autoconf that created configure |
| 182 | Directory and file names: |
| 183 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 184 | [$ac_default_prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 185 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 186 | [same as prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 187 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 188 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 189 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 190 | --datadir=DIR read-only architecture-independent data in DIR |
| 191 | [PREFIX/share] |
| 192 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 193 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 194 | [PREFIX/com] |
| 195 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 196 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 197 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 198 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 199 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 200 | --mandir=DIR man documentation in DIR [PREFIX/man] |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 201 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 202 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 203 | --program-suffix=SUFFIX append SUFFIX to installed program names |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 204 | --program-transform-name=PROGRAM |
| 205 | run sed PROGRAM on installed program names |
| 206 | EOF |
| 207 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 208 | Host type: |
| 209 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 210 | --host=HOST configure for HOST [guessed] |
| 211 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 212 | Features and packages: |
| 213 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 214 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 215 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 216 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 217 | --x-includes=DIR X include files are in DIR |
| 218 | --x-libraries=DIR X library files are in DIR |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 219 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 220 | if test -n "$ac_help"; then |
| 221 | echo "--enable and --with options recognized:$ac_help" |
| 222 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 223 | exit 0 ;; |
| 224 | |
| 225 | -host | --host | --hos | --ho) |
| 226 | ac_prev=host ;; |
| 227 | -host=* | --host=* | --hos=* | --ho=*) |
| 228 | host="$ac_optarg" ;; |
| 229 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 230 | -includedir | --includedir | --includedi | --included | --include \ |
| 231 | | --includ | --inclu | --incl | --inc) |
| 232 | ac_prev=includedir ;; |
| 233 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 234 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 235 | includedir="$ac_optarg" ;; |
| 236 | |
| 237 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 238 | ac_prev=infodir ;; |
| 239 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 240 | infodir="$ac_optarg" ;; |
| 241 | |
| 242 | -libdir | --libdir | --libdi | --libd) |
| 243 | ac_prev=libdir ;; |
| 244 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 245 | libdir="$ac_optarg" ;; |
| 246 | |
| 247 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 248 | | --libexe | --libex | --libe) |
| 249 | ac_prev=libexecdir ;; |
| 250 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 251 | | --libexe=* | --libex=* | --libe=*) |
| 252 | libexecdir="$ac_optarg" ;; |
| 253 | |
| 254 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 255 | | --localstate | --localstat | --localsta | --localst \ |
| 256 | | --locals | --local | --loca | --loc | --lo) |
| 257 | ac_prev=localstatedir ;; |
| 258 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 259 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 260 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 261 | localstatedir="$ac_optarg" ;; |
| 262 | |
| 263 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 264 | ac_prev=mandir ;; |
| 265 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 266 | mandir="$ac_optarg" ;; |
| 267 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 268 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 269 | # Obsolete; use --without-fp. |
| 270 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 271 | |
| 272 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 273 | | --no-cr | --no-c) |
| 274 | no_create=yes ;; |
| 275 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 276 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 277 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 278 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 279 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 280 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 281 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 282 | | --oldin | --oldi | --old | --ol | --o) |
| 283 | ac_prev=oldincludedir ;; |
| 284 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 285 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 286 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 287 | oldincludedir="$ac_optarg" ;; |
| 288 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 289 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 290 | ac_prev=prefix ;; |
| 291 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 292 | prefix="$ac_optarg" ;; |
| 293 | |
| 294 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 295 | | --program-pre | --program-pr | --program-p) |
| 296 | ac_prev=program_prefix ;; |
| 297 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 298 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 299 | program_prefix="$ac_optarg" ;; |
| 300 | |
| 301 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 302 | | --program-suf | --program-su | --program-s) |
| 303 | ac_prev=program_suffix ;; |
| 304 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 305 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 306 | program_suffix="$ac_optarg" ;; |
| 307 | |
| 308 | -program-transform-name | --program-transform-name \ |
| 309 | | --program-transform-nam | --program-transform-na \ |
| 310 | | --program-transform-n | --program-transform- \ |
| 311 | | --program-transform | --program-transfor \ |
| 312 | | --program-transfo | --program-transf \ |
| 313 | | --program-trans | --program-tran \ |
| 314 | | --progr-tra | --program-tr | --program-t) |
| 315 | ac_prev=program_transform_name ;; |
| 316 | -program-transform-name=* | --program-transform-name=* \ |
| 317 | | --program-transform-nam=* | --program-transform-na=* \ |
| 318 | | --program-transform-n=* | --program-transform-=* \ |
| 319 | | --program-transform=* | --program-transfor=* \ |
| 320 | | --program-transfo=* | --program-transf=* \ |
| 321 | | --program-trans=* | --program-tran=* \ |
| 322 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 323 | program_transform_name="$ac_optarg" ;; |
| 324 | |
| 325 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 326 | | -silent | --silent | --silen | --sile | --sil) |
| 327 | silent=yes ;; |
| 328 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 329 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 330 | ac_prev=sbindir ;; |
| 331 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 332 | | --sbi=* | --sb=*) |
| 333 | sbindir="$ac_optarg" ;; |
| 334 | |
| 335 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 336 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 337 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 338 | | --sha | --sh) |
| 339 | ac_prev=sharedstatedir ;; |
| 340 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 341 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 342 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 343 | | --sha=* | --sh=*) |
| 344 | sharedstatedir="$ac_optarg" ;; |
| 345 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 346 | -site | --site | --sit) |
| 347 | ac_prev=site ;; |
| 348 | -site=* | --site=* | --sit=*) |
| 349 | site="$ac_optarg" ;; |
| 350 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 351 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 352 | ac_prev=srcdir ;; |
| 353 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 354 | srcdir="$ac_optarg" ;; |
| 355 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 356 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 357 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 358 | ac_prev=sysconfdir ;; |
| 359 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 360 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 361 | sysconfdir="$ac_optarg" ;; |
| 362 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 363 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 364 | ac_prev=target ;; |
| 365 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 366 | target="$ac_optarg" ;; |
| 367 | |
| 368 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 369 | verbose=yes ;; |
| 370 | |
| 371 | -version | --version | --versio | --versi | --vers) |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 372 | echo "configure generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 373 | exit 0 ;; |
| 374 | |
| 375 | -with-* | --with-*) |
| 376 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 377 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 378 | 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] | 379 | { 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] | 380 | fi |
| 381 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 382 | case "$ac_option" in |
| 383 | *=*) ;; |
| 384 | *) ac_optarg=yes ;; |
| 385 | esac |
| 386 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 387 | |
| 388 | -without-* | --without-*) |
| 389 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 390 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 391 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 392 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 393 | fi |
| 394 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 395 | eval "with_${ac_package}=no" ;; |
| 396 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 397 | --x) |
| 398 | # Obsolete; use --with-x. |
| 399 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 400 | |
| 401 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 402 | | --x-incl | --x-inc | --x-in | --x-i) |
| 403 | ac_prev=x_includes ;; |
| 404 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 405 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 406 | x_includes="$ac_optarg" ;; |
| 407 | |
| 408 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 409 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 410 | ac_prev=x_libraries ;; |
| 411 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 412 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 413 | x_libraries="$ac_optarg" ;; |
| 414 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 415 | -*) { 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] | 416 | ;; |
| 417 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 418 | *) |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 419 | 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] | 420 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 421 | fi |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 422 | if test "x$nonopt" != xNONE; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 423 | { 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] | 424 | fi |
| 425 | nonopt="$ac_option" |
| 426 | ;; |
| 427 | |
| 428 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 429 | done |
| 430 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 431 | if test -n "$ac_prev"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 432 | { 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] | 433 | fi |
| 434 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 435 | 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] | 436 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 437 | # File descriptor usage: |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 438 | # 0 standard input |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 439 | # 1 file creation |
| 440 | # 2 errors and warnings |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 441 | # 3 some systems may open it to /dev/tty |
| 442 | # 4 used on the Kubota Titan |
| 443 | # 6 checking for... messages and results |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 444 | # 5 compiler messages saved in config.log |
| 445 | if test "$silent" = yes; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 446 | exec 6>/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 447 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 448 | exec 6>&1 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 449 | fi |
| 450 | exec 5>./config.log |
| 451 | |
| 452 | echo "\ |
| 453 | This file contains any messages produced by compilers while |
| 454 | running configure, to aid debugging if configure makes a mistake. |
| 455 | " 1>&5 |
| 456 | |
| 457 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 458 | # Also quote any args containing shell metacharacters. |
| 459 | ac_configure_args= |
| 460 | for ac_arg |
| 461 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 462 | case "$ac_arg" in |
| 463 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 464 | | --no-cr | --no-c) ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 465 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 466 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 467 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 468 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 469 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 470 | esac |
| 471 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 472 | |
| 473 | # NLS nuisances. |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 474 | # Only set these to C if already set. These must not be set unconditionally |
| 475 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 476 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 477 | # Non-C LC_CTYPE values break the ctype check. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 478 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 479 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 480 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 481 | 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] | 482 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 483 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 484 | rm -rf conftest* confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 485 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 486 | echo > confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 487 | |
| 488 | # A filename unique to this package, relative to the directory that |
| 489 | # 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] | 490 | ac_unique_file=Include/object.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 491 | |
| 492 | # Find the source files, if location was not specified. |
| 493 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 494 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 495 | # Try the directory containing this script, then its parent. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 496 | ac_prog=$0 |
| 497 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 498 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 499 | srcdir=$ac_confdir |
| 500 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 501 | srcdir=.. |
| 502 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 503 | else |
| 504 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 505 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 506 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 507 | if test "$ac_srcdir_defaulted" = yes; then |
| 508 | { 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] | 509 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 510 | { 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] | 511 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 512 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 513 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 514 | |
| 515 | # Prefer explicitly selected file to automatically selected ones. |
| 516 | if test -z "$CONFIG_SITE"; then |
| 517 | if test "x$prefix" != xNONE; then |
| 518 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 519 | else |
| 520 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 521 | fi |
| 522 | fi |
| 523 | for ac_site_file in $CONFIG_SITE; do |
| 524 | if test -r "$ac_site_file"; then |
| 525 | echo "loading site script $ac_site_file" |
| 526 | . "$ac_site_file" |
| 527 | fi |
| 528 | done |
| 529 | |
| 530 | if test -r "$cache_file"; then |
| 531 | echo "loading cache $cache_file" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 532 | . $cache_file |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 533 | else |
| 534 | echo "creating cache $cache_file" |
| 535 | > $cache_file |
| 536 | fi |
| 537 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 538 | ac_ext=c |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 539 | # 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] | 540 | ac_cpp='$CPP $CPPFLAGS' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 541 | 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] | 542 | 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] | 543 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 544 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 545 | ac_exeext= |
| 546 | ac_objext=o |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 547 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 548 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 549 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 550 | ac_n= ac_c=' |
| 551 | ' ac_t=' ' |
| 552 | else |
| 553 | ac_n=-n ac_c= ac_t= |
| 554 | fi |
| 555 | else |
| 556 | ac_n= ac_c='\c' ac_t= |
| 557 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 558 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 559 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 560 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 561 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 562 | # Set VERSION so we only need to edit in one place (i.e., here) |
| 563 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 564 | VERSION=2.0 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 565 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 566 | # NEXTSTEP stuff |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 567 | if test -f /usr/lib/NextStep/software_version -o -f /System/Library/CoreServices/software_version ; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 568 | |
| 569 | echo $ac_n "checking for --with-next-archs""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 570 | echo "configure:571: checking for --with-next-archs" >&5 |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 571 | # Check whether --with-next-archs or --without-next-archs was given. |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 572 | if test "${with_next_archs+set}" = set; then |
| 573 | withval="$with_next_archs" |
| 574 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 575 | if test -n "$withval"; then |
| 576 | ac_arch_flags=`/usr/lib/arch_tool -archify_list $withval` |
| 577 | # GCC does not currently support multi archs on the NeXT |
| 578 | with_gcc=no |
| 579 | fi |
| 580 | echo "$ac_t""$with_next_archs" 1>&6 |
| 581 | |
| 582 | else |
| 583 | echo "$ac_t""none: using `arch`" 1>&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 584 | fi |
| 585 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 586 | |
| 587 | if test -z "$MACHDEP" |
| 588 | then |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 589 | set X `hostinfo | egrep '(NeXT Mach|Kernel Release).*:' | \ |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 590 | sed -e 's/://' -e 's/\./_/'` && \ |
| 591 | ac_sys_system=next && ac_sys_release=$4 |
| 592 | |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 593 | MACHDEP="$ac_sys_system$ac_sys_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 594 | fi |
| 595 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 596 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 597 | # Check whether --with-next-framework or --without-next-framework was given. |
| 598 | if test "${with_next_framework+set}" = set; then |
| 599 | withval="$with_next_framework" |
| 600 | : |
| 601 | fi |
| 602 | |
| 603 | # Check whether --with-dyld or --without-dyld was given. |
| 604 | if test "${with_dyld+set}" = set; then |
| 605 | withval="$with_dyld" |
| 606 | : |
| 607 | fi |
| 608 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 609 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 610 | # Set name for machine-dependent library files |
| 611 | |
| 612 | echo $ac_n "checking MACHDEP""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 613 | echo "configure:614: checking MACHDEP" >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 614 | if test -z "$MACHDEP" |
| 615 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 616 | ac_sys_system=`uname -s` |
| 617 | if test "$ac_sys_system" = "AIX" ; then |
| 618 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 619 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 620 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 621 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 622 | ac_md_system=`echo $ac_sys_system | |
| 623 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 624 | ac_md_release=`echo $ac_sys_release | |
| 625 | tr -d '/ ' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 626 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 627 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 628 | case $MACHDEP in |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 629 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 630 | esac |
| 631 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 632 | |
| 633 | # |
| 634 | # SGI compilers allow the specification of the both the ABI and the |
| 635 | # ISA on the command line. Depending on the values of these switches, |
| 636 | # different and often incompatable code will be generated. |
| 637 | # |
| 638 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 639 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 640 | # variable is also adjusted. |
| 641 | # |
| 642 | |
| 643 | if test ! -z "$SGI_ABI" |
| 644 | then |
| 645 | CC="cc $SGI_ABI" |
| 646 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 647 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 648 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 649 | echo "$ac_t""$MACHDEP" 1>&6 |
| 650 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 651 | # |
| 652 | # CCC is the command that compiles C++ programs |
| 653 | # |
| 654 | # Not all make programs have this predefined. |
| 655 | # |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 656 | #AC_SUBST(SET_CCC) |
| 657 | #AC_MSG_CHECKING(CCC) |
| 658 | #if test -z "$CCC" |
| 659 | #then |
| 660 | # case $ac_sys_system in |
| 661 | # IRIX*) SET_CCC="CCC= CC ${SGI_ABI}";; |
| 662 | # Linux*) SET_CCC="CCC= g++";; |
| 663 | # *) SET_CCC="" |
| 664 | # esac |
| 665 | #else |
| 666 | # SET_CCC="CCC= ${CCC}" |
| 667 | #fi |
| 668 | #AC_MSG_RESULT($SET_CCC) |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 669 | |
| 670 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 671 | # checks for alternative programs |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 672 | echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 673 | echo "configure:674: checking for --without-gcc" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 674 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 675 | if test "${with_gcc+set}" = set; then |
| 676 | withval="$with_gcc" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 677 | |
| 678 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 679 | no) CC=cc |
| 680 | without_gcc=yes;; |
| 681 | yes) CC=gcc |
| 682 | without_gcc=no;; |
| 683 | *) CC=$withval |
| 684 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 685 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 686 | else |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 687 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 688 | case $ac_sys_system in |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 689 | OSF1) CC=cc |
| 690 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 691 | BeOS*) |
| 692 | # Dunno if it's a good idea to get this over with all at once, or |
| 693 | # to handle it in with the other goodies. |
| 694 | MACHDEP=beos |
| 695 | |
| 696 | case $BE_HOST_CPU in |
| 697 | ppc) |
Guido van Rossum | 8137680 | 1999-04-06 15:50:51 +0000 | [diff] [blame] | 698 | CC="mwcc -I$PWD/BeOS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 699 | without_gcc=yes |
Guido van Rossum | 6b9da45 | 1999-03-24 17:48:12 +0000 | [diff] [blame] | 700 | case `uname -r` in |
| 701 | 4.0*) OPT="-DUSE_DL_EXPORT -O7 -opt schedule604 -export pragma" ;; |
| 702 | *) OPT="-DUSE_DL_EXPORT -O2 -proc 604e -export pragma" ;; |
| 703 | esac |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 704 | CCSHARED=-UUSE_DL_EXPORT |
| 705 | LDFLAGS="$LDFLAGS -nodup" |
| 706 | |
| 707 | AR="$PWD/BeOS/ar-fake" |
| 708 | RANLIB=: |
| 709 | |
| 710 | cat >> confdefs.h <<\EOF |
| 711 | #define DL_EXPORT_HEADER "dl_export.h" |
| 712 | EOF |
| 713 | |
| 714 | ;; |
| 715 | x86) |
| 716 | CC="gcc -I$PWD/BeOS" |
| 717 | without_gcc=no |
Guido van Rossum | 32000e8 | 2000-05-22 21:31:50 +0000 | [diff] [blame] | 718 | OPT="-DUSE_DL_EXPORT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 719 | CCSHARED=-UUSE_DL_EXPORT |
| 720 | |
| 721 | AR="$PWD/BeOS/ar-fake" |
| 722 | RANLIB=: |
| 723 | |
| 724 | cat >> confdefs.h <<\EOF |
| 725 | #define DL_EXPORT_HEADER "dl_export.h" |
| 726 | EOF |
| 727 | |
| 728 | ;; |
| 729 | *) |
| 730 | { echo "configure: error: Your BeOS system isn't PowerPC or x86... neat" 1>&2; exit 1; } |
| 731 | ;; |
| 732 | esac |
| 733 | ;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 734 | *) without_gcc=no;; |
| 735 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 736 | fi |
| 737 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 738 | echo "$ac_t""$without_gcc" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 739 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 740 | |
| 741 | |
| 742 | MAINOBJ=python.o |
| 743 | echo $ac_n "checking for --with-cxx=<compiler>""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 744 | echo "configure:745: checking for --with-cxx=<compiler>" >&5 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 745 | # Check whether --with-cxx or --without-cxx was given. |
| 746 | if test "${with_cxx+set}" = set; then |
| 747 | withval="$with_cxx" |
| 748 | |
| 749 | case $withval in |
| 750 | no) CXX= |
| 751 | with_cxx=no;; |
| 752 | *) CXX=$withval |
| 753 | MAINOBJ=ccpython.o |
| 754 | with_cxx=$withval;; |
| 755 | esac |
| 756 | else |
| 757 | |
| 758 | with_cxx=no |
| 759 | |
| 760 | fi |
| 761 | |
| 762 | echo "$ac_t""$with_cxx" 1>&6 |
| 763 | SET_CXX="CXX = $CXX" |
| 764 | |
| 765 | #AC_MSG_CHECKING(CCC) |
| 766 | #if test -z "$CCC" |
| 767 | #then |
| 768 | # case $ac_sys_system in |
| 769 | # IRIX*) SET_CCC="CCC= CC ${SGI_ABI}";; |
| 770 | # Linux*) SET_CCC="CCC= g++";; |
| 771 | # *) SET_CCC="" |
| 772 | # esac |
| 773 | #else |
| 774 | # SET_CCC="CCC= ${CCC}" |
| 775 | #fi |
| 776 | #AC_MSG_RESULT($SET_CCC) |
| 777 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 778 | # If the user switches compilers, we can't believe the cache |
| 779 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 780 | then |
| 781 | { echo "configure: error: cached CC is different -- throw away $cache_file |
| 782 | (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; } |
| 783 | fi |
| 784 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 785 | # Extract the first word of "gcc", so it can be a program name with args. |
| 786 | set dummy gcc; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 787 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 788 | echo "configure:789: checking for $ac_word" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 789 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 790 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 791 | else |
| 792 | if test -n "$CC"; then |
| 793 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 794 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 795 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 796 | ac_dummy="$PATH" |
| 797 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 798 | test -z "$ac_dir" && ac_dir=. |
| 799 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 800 | ac_cv_prog_CC="gcc" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 801 | break |
| 802 | fi |
| 803 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 804 | IFS="$ac_save_ifs" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 805 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 806 | fi |
| 807 | CC="$ac_cv_prog_CC" |
| 808 | if test -n "$CC"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 809 | echo "$ac_t""$CC" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 810 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 811 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 812 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 813 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 814 | if test -z "$CC"; then |
| 815 | # Extract the first word of "cc", so it can be a program name with args. |
| 816 | set dummy cc; ac_word=$2 |
| 817 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 818 | echo "configure:819: checking for $ac_word" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 819 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 820 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 821 | else |
| 822 | if test -n "$CC"; then |
| 823 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 824 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 825 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 826 | ac_prog_rejected=no |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 827 | ac_dummy="$PATH" |
| 828 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 829 | test -z "$ac_dir" && ac_dir=. |
| 830 | if test -f $ac_dir/$ac_word; then |
| 831 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 832 | ac_prog_rejected=yes |
| 833 | continue |
| 834 | fi |
| 835 | ac_cv_prog_CC="cc" |
| 836 | break |
| 837 | fi |
| 838 | done |
| 839 | IFS="$ac_save_ifs" |
| 840 | if test $ac_prog_rejected = yes; then |
| 841 | # We found a bogon in the path, so make sure we never use it. |
| 842 | set dummy $ac_cv_prog_CC |
| 843 | shift |
| 844 | if test $# -gt 0; then |
| 845 | # We chose a different compiler from the bogus one. |
| 846 | # However, it has the same basename, so the bogon will be chosen |
| 847 | # first if we set CC to just the basename; use the full file name. |
| 848 | shift |
| 849 | set dummy "$ac_dir/$ac_word" "$@" |
| 850 | shift |
| 851 | ac_cv_prog_CC="$@" |
| 852 | fi |
| 853 | fi |
| 854 | fi |
| 855 | fi |
| 856 | CC="$ac_cv_prog_CC" |
| 857 | if test -n "$CC"; then |
| 858 | echo "$ac_t""$CC" 1>&6 |
| 859 | else |
| 860 | echo "$ac_t""no" 1>&6 |
| 861 | fi |
| 862 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 863 | if test -z "$CC"; then |
| 864 | case "`uname -s`" in |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 865 | *win32* | *WIN32*) |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 866 | # Extract the first word of "cl", so it can be a program name with args. |
| 867 | set dummy cl; ac_word=$2 |
| 868 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 869 | echo "configure:870: checking for $ac_word" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 870 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 871 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 872 | else |
| 873 | if test -n "$CC"; then |
| 874 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 875 | else |
| 876 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 877 | ac_dummy="$PATH" |
| 878 | for ac_dir in $ac_dummy; do |
| 879 | test -z "$ac_dir" && ac_dir=. |
| 880 | if test -f $ac_dir/$ac_word; then |
| 881 | ac_cv_prog_CC="cl" |
| 882 | break |
| 883 | fi |
| 884 | done |
| 885 | IFS="$ac_save_ifs" |
| 886 | fi |
| 887 | fi |
| 888 | CC="$ac_cv_prog_CC" |
| 889 | if test -n "$CC"; then |
| 890 | echo "$ac_t""$CC" 1>&6 |
| 891 | else |
| 892 | echo "$ac_t""no" 1>&6 |
| 893 | fi |
| 894 | ;; |
| 895 | esac |
| 896 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 897 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 898 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 899 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 900 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 901 | echo "configure:902: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 902 | |
| 903 | ac_ext=c |
| 904 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 905 | ac_cpp='$CPP $CPPFLAGS' |
| 906 | 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] | 907 | 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] | 908 | cross_compiling=$ac_cv_prog_cc_cross |
| 909 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 910 | cat > conftest.$ac_ext << EOF |
| 911 | |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 912 | #line 913 "configure" |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 913 | #include "confdefs.h" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 914 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 915 | main(){return(0);} |
| 916 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 917 | if { (eval echo configure:918: \"$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] | 918 | ac_cv_prog_cc_works=yes |
| 919 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 920 | if (./conftest; exit) 2>/dev/null; then |
| 921 | ac_cv_prog_cc_cross=no |
| 922 | else |
| 923 | ac_cv_prog_cc_cross=yes |
| 924 | fi |
| 925 | else |
| 926 | echo "configure: failed program was:" >&5 |
| 927 | cat conftest.$ac_ext >&5 |
| 928 | ac_cv_prog_cc_works=no |
| 929 | fi |
| 930 | rm -fr conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 931 | ac_ext=c |
| 932 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 933 | ac_cpp='$CPP $CPPFLAGS' |
| 934 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 935 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 936 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 937 | |
| 938 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 939 | if test $ac_cv_prog_cc_works = no; then |
| 940 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 941 | fi |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 942 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 943 | echo "configure:944: 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] | 944 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 945 | cross_compiling=$ac_cv_prog_cc_cross |
| 946 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 947 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 948 | echo "configure:949: checking whether we are using GNU C" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 949 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 950 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 951 | else |
| 952 | cat > conftest.c <<EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 953 | #ifdef __GNUC__ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 954 | yes; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 955 | #endif |
| 956 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 957 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:958: \"$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] | 958 | ac_cv_prog_gcc=yes |
| 959 | else |
| 960 | ac_cv_prog_gcc=no |
| 961 | fi |
| 962 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 963 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 964 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 965 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 966 | if test $ac_cv_prog_gcc = yes; then |
| 967 | GCC=yes |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 968 | else |
| 969 | GCC= |
| 970 | fi |
| 971 | |
| 972 | ac_test_CFLAGS="${CFLAGS+set}" |
| 973 | ac_save_CFLAGS="$CFLAGS" |
| 974 | CFLAGS= |
| 975 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 976 | echo "configure:977: checking whether ${CC-cc} accepts -g" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 977 | 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] | 978 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 979 | else |
| 980 | echo 'void f(){}' > conftest.c |
| 981 | 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] | 982 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 983 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 984 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 985 | fi |
| 986 | rm -f conftest* |
| 987 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 988 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 989 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 990 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 991 | if test "$ac_test_CFLAGS" = set; then |
| 992 | CFLAGS="$ac_save_CFLAGS" |
| 993 | elif test $ac_cv_prog_cc_g = yes; then |
| 994 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 995 | CFLAGS="-g -O2" |
| 996 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 997 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 998 | fi |
| 999 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1000 | if test "$GCC" = yes; then |
| 1001 | CFLAGS="-O2" |
| 1002 | else |
| 1003 | CFLAGS= |
| 1004 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1005 | fi |
| 1006 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1007 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 1008 | case $MACHDEP in |
| 1009 | bsdos*) |
| 1010 | case $CC in |
| 1011 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 1012 | esac;; |
| 1013 | esac |
| 1014 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1015 | case $ac_sys_system in |
| 1016 | hp*|HP*) |
| 1017 | case $CC in |
| 1018 | cc|*/cc) CC="$CC -Aa -D_HPUX_SOURCE";; |
| 1019 | esac;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1020 | BeOS*) |
| 1021 | case $CC in |
| 1022 | cc) CC=cc;; |
| 1023 | esac;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1024 | esac |
| 1025 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1026 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 1027 | # name of the library into which to insert object files). On systems |
| 1028 | # without shared libraries, LDLIBRARY is the same as LIBRARY (defined in |
| 1029 | # the Makefiles). |
| 1030 | |
| 1031 | |
| 1032 | LDLIBRARY='' |
| 1033 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1034 | # LINKCC is the command that links the python executable -- default is $(CC). |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1035 | # This is altered for AIX and BeOS in order to build the export list before |
| 1036 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1037 | |
| 1038 | echo $ac_n "checking LINKCC""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1039 | echo "configure:1040: checking LINKCC" >&5 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1040 | if test -z "$LINKCC" -a ! -z "$CXX" |
| 1041 | then |
| 1042 | LINKCC="$CXX" |
| 1043 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1044 | if test -z "$LINKCC" |
| 1045 | then |
| 1046 | case $ac_sys_system in |
| 1047 | AIX*) |
Guido van Rossum | 45140f9 | 1997-08-29 18:44:06 +0000 | [diff] [blame] | 1048 | LINKCC="\$(srcdir)/makexp_aix python.exp \"\" \$(LIBRARY); \$(PURIFY) \$(CC)";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1049 | BeOS*) |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 1050 | LINKCC="\$(srcdir)/../BeOS/linkcc \$(LIBRARY) \$(PURIFY) \$(CC) \$(OPT)" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1051 | LDLIBRARY='libpython$(VERSION).so';; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 1052 | dgux*) |
| 1053 | LINKCC="LD_RUN_PATH=$libdir \$(PURIFY) \$(CC)";; |
Guido van Rossum | 25f9303 | 1997-08-18 16:00:04 +0000 | [diff] [blame] | 1054 | *) LINKCC="\$(PURIFY) \$(CC)";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1055 | esac |
| 1056 | fi |
| 1057 | echo "$ac_t""$LINKCC" 1>&6 |
| 1058 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1059 | echo $ac_n "checking LDLIBRARY""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1060 | echo "configure:1061: checking LDLIBRARY" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1061 | |
| 1062 | # NeXT framework builds require that the 'ar' library be converted into |
| 1063 | # a bundle using libtool. |
| 1064 | if test "$with_next_framework" |
| 1065 | then |
| 1066 | LDLIBRARY='libpython$(VERSION).dylib' |
| 1067 | fi |
| 1068 | |
| 1069 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 1070 | if test "$MACHDEP" = "dguxR4" |
| 1071 | then |
| 1072 | LDLIBRARY='libpython$(VERSION).so' |
| 1073 | OPT="$OPT -pic" |
| 1074 | fi |
| 1075 | echo "$ac_t""$LDLIBRARY" 1>&6 |
| 1076 | |
| 1077 | # If LDLIBRARY is different from LIBRARY, emit a rule to build it. |
| 1078 | if test -z "$LDLIBRARY" |
| 1079 | then |
| 1080 | LDLIBRARY='libpython$(VERSION).a' |
| 1081 | MAKE_LDLIBRARY="true" |
| 1082 | else |
| 1083 | MAKE_LDLIBRARY='$(MAKE) $(LDLIBRARY)' |
| 1084 | fi |
| 1085 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1086 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1087 | set dummy ranlib; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1088 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1089 | echo "configure:1090: checking for $ac_word" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 1090 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1091 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1092 | else |
| 1093 | if test -n "$RANLIB"; then |
| 1094 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1095 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1096 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1097 | ac_dummy="$PATH" |
| 1098 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1099 | test -z "$ac_dir" && ac_dir=. |
| 1100 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1101 | ac_cv_prog_RANLIB="ranlib" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1102 | break |
| 1103 | fi |
| 1104 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1105 | IFS="$ac_save_ifs" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1106 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1107 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1108 | fi |
| 1109 | RANLIB="$ac_cv_prog_RANLIB" |
| 1110 | if test -n "$RANLIB"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1111 | echo "$ac_t""$RANLIB" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1112 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1113 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1114 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1115 | |
| 1116 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1117 | for ac_prog in ar aal |
| 1118 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1119 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1120 | set dummy $ac_prog; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1121 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1122 | echo "configure:1123: checking for $ac_word" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 1123 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1124 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1125 | else |
| 1126 | if test -n "$AR"; then |
| 1127 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 1128 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1129 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1130 | ac_dummy="$PATH" |
| 1131 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1132 | test -z "$ac_dir" && ac_dir=. |
| 1133 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1134 | ac_cv_prog_AR="$ac_prog" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1135 | break |
| 1136 | fi |
| 1137 | done |
| 1138 | IFS="$ac_save_ifs" |
| 1139 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1140 | fi |
| 1141 | AR="$ac_cv_prog_AR" |
| 1142 | if test -n "$AR"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1143 | echo "$ac_t""$AR" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1144 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1145 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1146 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1147 | |
| 1148 | test -n "$AR" && break |
| 1149 | done |
| 1150 | test -n "$AR" || AR="ar" |
| 1151 | |
| 1152 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1153 | |
| 1154 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1155 | # Install just never works :-( |
| 1156 | if test -z "$INSTALL" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1157 | then |
| 1158 | INSTALL=cp |
| 1159 | INSTALL_PROGRAM=cp |
| 1160 | INSTALL_DATA=cp |
| 1161 | else |
| 1162 | INSTALL_PROGRAM="$INSTALL" |
| 1163 | INSTALL_DATA="$INSTALL -m 644" |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1164 | fi |
| 1165 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1166 | # Not every filesystem supports hard links |
| 1167 | |
| 1168 | if test -z "$LN" ; then |
| 1169 | case $ac_sys_system in |
| 1170 | BeOS*) LN="ln -s";; |
| 1171 | *) LN=ln;; |
| 1172 | esac |
| 1173 | fi |
| 1174 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1175 | # Optimizer/debugger flags passed between Makefiles |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1176 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1177 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1178 | then |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 1179 | case $GCC in |
| 1180 | yes) |
| 1181 | case $ac_cv_prog_cc_g in |
| 1182 | yes) OPT="-g -O2";; |
| 1183 | *) OPT="-O2";; |
| 1184 | esac |
| 1185 | ;; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1186 | *) OPT="-O";; |
| 1187 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1188 | fi |
| 1189 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1190 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 1191 | then |
| 1192 | OPT="$OPT $ac_arch_flags" |
| 1193 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1194 | # checks for UNIX variants that set C preprocessor variables |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1195 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1196 | echo "configure:1197: checking how to run the C preprocessor" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1197 | # On Suns, sometimes $CPP names a directory. |
| 1198 | if test -n "$CPP" && test -d "$CPP"; then |
| 1199 | CPP= |
| 1200 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1201 | if test -z "$CPP"; then |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 1202 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1203 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1204 | else |
| 1205 | # This must be in double quotes, not single quotes, because CPP may get |
| 1206 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1207 | CPP="${CC-cc} -E" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1208 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 1209 | # not just through cpp. |
| 1210 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1211 | #line 1212 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1212 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1213 | #include <assert.h> |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1214 | Syntax Error |
| 1215 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1216 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1217 | { (eval echo configure:1218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1218 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1219 | if test -z "$ac_err"; then |
| 1220 | : |
| 1221 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1222 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1223 | echo "configure: failed program was:" >&5 |
| 1224 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1225 | rm -rf conftest* |
| 1226 | CPP="${CC-cc} -E -traditional-cpp" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1227 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1228 | #line 1229 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1229 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1230 | #include <assert.h> |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1231 | Syntax Error |
| 1232 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1233 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1234 | { (eval echo configure:1235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1235 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1236 | if test -z "$ac_err"; then |
| 1237 | : |
| 1238 | else |
| 1239 | echo "$ac_err" >&5 |
| 1240 | echo "configure: failed program was:" >&5 |
| 1241 | cat conftest.$ac_ext >&5 |
| 1242 | rm -rf conftest* |
| 1243 | CPP="${CC-cc} -nologo -E" |
| 1244 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1245 | #line 1246 "configure" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1246 | #include "confdefs.h" |
| 1247 | #include <assert.h> |
| 1248 | Syntax Error |
| 1249 | EOF |
| 1250 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1251 | { (eval echo configure:1252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1252 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1253 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1254 | : |
| 1255 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1256 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1257 | echo "configure: failed program was:" >&5 |
| 1258 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1259 | rm -rf conftest* |
| 1260 | CPP=/lib/cpp |
| 1261 | fi |
| 1262 | rm -f conftest* |
| 1263 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1264 | rm -f conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1265 | fi |
| 1266 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1267 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1268 | fi |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1269 | CPP="$ac_cv_prog_CPP" |
| 1270 | else |
| 1271 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1272 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1273 | echo "$ac_t""$CPP" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1274 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1275 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1276 | echo "configure:1277: checking for AIX" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1277 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1278 | #line 1279 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1279 | #include "confdefs.h" |
| 1280 | #ifdef _AIX |
| 1281 | yes |
| 1282 | #endif |
| 1283 | |
| 1284 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1285 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1286 | egrep "yes" >/dev/null 2>&1; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1287 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1288 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1289 | #define _ALL_SOURCE 1 |
| 1290 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1291 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1292 | else |
| 1293 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1294 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1295 | fi |
| 1296 | rm -f conftest* |
| 1297 | |
| 1298 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1299 | ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1300 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1301 | echo "configure:1302: checking for minix/config.h" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 1302 | 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] | 1303 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1304 | else |
| 1305 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1306 | #line 1307 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1307 | #include "confdefs.h" |
| 1308 | #include <minix/config.h> |
| 1309 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1310 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1311 | { (eval echo configure:1312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1312 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1313 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1314 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1315 | eval "ac_cv_header_$ac_safe=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1316 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1317 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1318 | echo "configure: failed program was:" >&5 |
| 1319 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1320 | rm -rf conftest* |
| 1321 | eval "ac_cv_header_$ac_safe=no" |
| 1322 | fi |
| 1323 | rm -f conftest* |
| 1324 | fi |
| 1325 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1326 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1327 | MINIX=yes |
| 1328 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1329 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1330 | MINIX= |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1331 | fi |
| 1332 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1333 | if test "$MINIX" = yes; then |
| 1334 | cat >> confdefs.h <<\EOF |
| 1335 | #define _POSIX_SOURCE 1 |
| 1336 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1337 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1338 | cat >> confdefs.h <<\EOF |
| 1339 | #define _POSIX_1_SOURCE 2 |
| 1340 | EOF |
| 1341 | |
| 1342 | cat >> confdefs.h <<\EOF |
| 1343 | #define _MINIX 1 |
| 1344 | EOF |
| 1345 | |
| 1346 | fi |
| 1347 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1348 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1349 | echo $ac_n "checking whether $CC accepts -OPT:Olimit=0""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1350 | echo "configure:1351: checking whether $CC accepts -OPT:Olimit=0" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 1351 | 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] | 1352 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1353 | else |
| 1354 | ac_save_cc="$CC" |
| 1355 | CC="$CC -OPT:Olimit=0" |
| 1356 | if test "$cross_compiling" = yes; then |
| 1357 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1358 | else |
| 1359 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1360 | #line 1361 "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1361 | #include "confdefs.h" |
| 1362 | int main() { return 0; } |
| 1363 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1364 | if { (eval echo configure:1365: \"$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] | 1365 | then |
| 1366 | ac_cv_opt_olimit_ok=yes |
| 1367 | else |
| 1368 | echo "configure: failed program was:" >&5 |
| 1369 | cat conftest.$ac_ext >&5 |
| 1370 | rm -fr conftest* |
| 1371 | ac_cv_opt_olimit_ok=no |
| 1372 | fi |
| 1373 | rm -fr conftest* |
| 1374 | fi |
| 1375 | |
| 1376 | CC="$ac_save_cc" |
| 1377 | fi |
| 1378 | |
| 1379 | echo "$ac_t""$ac_cv_opt_olimit_ok" 1>&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 1380 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 304dd2d | 1997-10-20 23:10:56 +0000 | [diff] [blame] | 1381 | OPT="$OPT -OPT:Olimit=0" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1382 | else |
| 1383 | echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1384 | echo "configure:1385: checking whether $CC accepts -Olimit 1500" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 1385 | if eval "test \"`echo '$''{'ac_cv_olimit_ok'+set}'`\" = set"; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1386 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1387 | else |
| 1388 | ac_save_cc="$CC" |
| 1389 | CC="$CC -Olimit 1500" |
| 1390 | if test "$cross_compiling" = yes; then |
| 1391 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1392 | else |
| 1393 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1394 | #line 1395 "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1395 | #include "confdefs.h" |
| 1396 | int main() { return 0; } |
| 1397 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1398 | if { (eval echo configure:1399: \"$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] | 1399 | then |
| 1400 | ac_cv_olimit_ok=yes |
| 1401 | else |
| 1402 | echo "configure: failed program was:" >&5 |
| 1403 | cat conftest.$ac_ext >&5 |
| 1404 | rm -fr conftest* |
| 1405 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 1406 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1407 | rm -fr conftest* |
| 1408 | fi |
| 1409 | |
| 1410 | CC="$ac_save_cc" |
| 1411 | fi |
| 1412 | |
| 1413 | echo "$ac_t""$ac_cv_olimit_ok" 1>&6 |
| 1414 | if test $ac_cv_olimit_ok = yes; then |
| 1415 | OPT="$OPT -Olimit 1500" |
| 1416 | fi |
| 1417 | fi |
| 1418 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1419 | # check for ANSI or K&R ("traditional") preprocessor |
| 1420 | echo $ac_n "checking for C preprocessor type""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1421 | echo "configure:1422: checking for C preprocessor type" >&5 |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1422 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1423 | #line 1424 "configure" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1424 | #include "confdefs.h" |
| 1425 | |
| 1426 | #define spam(name, doc) {#name, &name, #name "() -- " doc} |
| 1427 | int foo; |
| 1428 | struct {char *name; int *addr; char *doc;} desc = spam(foo, "something"); |
| 1429 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1430 | int main() { |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1431 | ; |
| 1432 | ; return 0; } |
| 1433 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1434 | if { (eval echo configure:1435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1435 | rm -rf conftest* |
| 1436 | cpp_type=ansi |
| 1437 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1438 | echo "configure: failed program was:" >&5 |
| 1439 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1440 | rm -rf conftest* |
| 1441 | cat >> confdefs.h <<\EOF |
| 1442 | #define HAVE_OLD_CPP 1 |
| 1443 | EOF |
| 1444 | cpp_type=traditional |
| 1445 | fi |
| 1446 | rm -f conftest* |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1447 | echo "$ac_t""$cpp_type" 1>&6 |
| 1448 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1449 | # checks for header files |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1450 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1451 | echo "configure:1452: checking for ANSI C header files" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 1452 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1453 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1454 | else |
| 1455 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1456 | #line 1457 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1457 | #include "confdefs.h" |
| 1458 | #include <stdlib.h> |
| 1459 | #include <stdarg.h> |
| 1460 | #include <string.h> |
| 1461 | #include <float.h> |
| 1462 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1463 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1464 | { (eval echo configure:1465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1465 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1466 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1467 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1468 | ac_cv_header_stdc=yes |
| 1469 | else |
| 1470 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1471 | echo "configure: failed program was:" >&5 |
| 1472 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1473 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1474 | ac_cv_header_stdc=no |
| 1475 | fi |
| 1476 | rm -f conftest* |
| 1477 | |
| 1478 | if test $ac_cv_header_stdc = yes; then |
| 1479 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 1480 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1481 | #line 1482 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1482 | #include "confdefs.h" |
| 1483 | #include <string.h> |
| 1484 | EOF |
| 1485 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1486 | egrep "memchr" >/dev/null 2>&1; then |
| 1487 | : |
| 1488 | else |
| 1489 | rm -rf conftest* |
| 1490 | ac_cv_header_stdc=no |
| 1491 | fi |
| 1492 | rm -f conftest* |
| 1493 | |
| 1494 | fi |
| 1495 | |
| 1496 | if test $ac_cv_header_stdc = yes; then |
| 1497 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 1498 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1499 | #line 1500 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1500 | #include "confdefs.h" |
| 1501 | #include <stdlib.h> |
| 1502 | EOF |
| 1503 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1504 | egrep "free" >/dev/null 2>&1; then |
| 1505 | : |
| 1506 | else |
| 1507 | rm -rf conftest* |
| 1508 | ac_cv_header_stdc=no |
| 1509 | fi |
| 1510 | rm -f conftest* |
| 1511 | |
| 1512 | fi |
| 1513 | |
| 1514 | if test $ac_cv_header_stdc = yes; then |
| 1515 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 1516 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1517 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1518 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1519 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1520 | #line 1521 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1521 | #include "confdefs.h" |
| 1522 | #include <ctype.h> |
| 1523 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 1524 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1525 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1526 | int main () { int i; for (i = 0; i < 256; i++) |
| 1527 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 1528 | exit (0); } |
| 1529 | |
| 1530 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1531 | if { (eval echo configure:1532: \"$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] | 1532 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1533 | : |
| 1534 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1535 | echo "configure: failed program was:" >&5 |
| 1536 | cat conftest.$ac_ext >&5 |
| 1537 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1538 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1539 | fi |
| 1540 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1541 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1542 | |
| 1543 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1544 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1545 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1546 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1547 | if test $ac_cv_header_stdc = yes; then |
| 1548 | cat >> confdefs.h <<\EOF |
| 1549 | #define STDC_HEADERS 1 |
| 1550 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1551 | |
| 1552 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1553 | |
Guido van Rossum | 9601315 | 1997-10-08 22:47:52 +0000 | [diff] [blame] | 1554 | for ac_hdr in dlfcn.h fcntl.h limits.h locale.h ncurses.h pthread.h \ |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 1555 | signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h \ |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1556 | sys/audioio.h sys/file.h sys/lock.h \ |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 1557 | sys/param.h sys/select.h sys/socket.h sys/time.h sys/times.h \ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 1558 | sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1559 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1560 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1561 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1562 | echo "configure:1563: checking for $ac_hdr" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 1563 | 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] | 1564 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1565 | else |
| 1566 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1567 | #line 1568 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1568 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1569 | #include <$ac_hdr> |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1570 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1571 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1572 | { (eval echo configure:1573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1573 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1574 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1575 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1576 | eval "ac_cv_header_$ac_safe=yes" |
| 1577 | else |
| 1578 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1579 | echo "configure: failed program was:" >&5 |
| 1580 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1581 | rm -rf conftest* |
| 1582 | eval "ac_cv_header_$ac_safe=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1583 | fi |
| 1584 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1585 | fi |
| 1586 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1587 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1588 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1589 | cat >> confdefs.h <<EOF |
| 1590 | #define $ac_tr_hdr 1 |
| 1591 | EOF |
| 1592 | |
| 1593 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1594 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1595 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1596 | done |
| 1597 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1598 | ac_header_dirent=no |
| 1599 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
| 1600 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1601 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1602 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1603 | echo "configure:1604: checking for $ac_hdr that defines DIR" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 1604 | 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] | 1605 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1606 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1607 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1608 | #line 1609 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1609 | #include "confdefs.h" |
| 1610 | #include <sys/types.h> |
| 1611 | #include <$ac_hdr> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1612 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1613 | DIR *dirp = 0; |
| 1614 | ; return 0; } |
| 1615 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1616 | if { (eval echo configure:1617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1617 | rm -rf conftest* |
| 1618 | eval "ac_cv_header_dirent_$ac_safe=yes" |
| 1619 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1620 | echo "configure: failed program was:" >&5 |
| 1621 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1622 | rm -rf conftest* |
| 1623 | eval "ac_cv_header_dirent_$ac_safe=no" |
| 1624 | fi |
| 1625 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1626 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1627 | 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] | 1628 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1629 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1630 | cat >> confdefs.h <<EOF |
| 1631 | #define $ac_tr_hdr 1 |
| 1632 | EOF |
| 1633 | ac_header_dirent=$ac_hdr; break |
| 1634 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1635 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1636 | fi |
| 1637 | done |
| 1638 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 1639 | if test $ac_header_dirent = dirent.h; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1640 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1641 | echo "configure:1642: checking for opendir in -ldir" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1642 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 1643 | 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] | 1644 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1645 | else |
| 1646 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1647 | LIBS="-ldir $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1648 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1649 | #line 1650 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1650 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1651 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1652 | /* We use char because int might match the return type of a gcc2 |
| 1653 | builtin and then its argument prototype would still apply. */ |
| 1654 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1655 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1656 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1657 | opendir() |
| 1658 | ; return 0; } |
| 1659 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1660 | if { (eval echo configure:1661: \"$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] | 1661 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1662 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1663 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1664 | echo "configure: failed program was:" >&5 |
| 1665 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1666 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1667 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1668 | fi |
| 1669 | rm -f conftest* |
| 1670 | LIBS="$ac_save_LIBS" |
| 1671 | |
| 1672 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1673 | 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] | 1674 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1675 | LIBS="$LIBS -ldir" |
| 1676 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1677 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1678 | fi |
| 1679 | |
| 1680 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1681 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1682 | echo "configure:1683: checking for opendir in -lx" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1683 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 1684 | 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] | 1685 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1686 | else |
| 1687 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1688 | LIBS="-lx $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1689 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1690 | #line 1691 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1691 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1692 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1693 | /* We use char because int might match the return type of a gcc2 |
| 1694 | builtin and then its argument prototype would still apply. */ |
| 1695 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1696 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1697 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1698 | opendir() |
| 1699 | ; return 0; } |
| 1700 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1701 | if { (eval echo configure:1702: \"$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] | 1702 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1703 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1704 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1705 | echo "configure: failed program was:" >&5 |
| 1706 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1707 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1708 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1709 | fi |
| 1710 | rm -f conftest* |
| 1711 | LIBS="$ac_save_LIBS" |
| 1712 | |
| 1713 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1714 | 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] | 1715 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1716 | LIBS="$LIBS -lx" |
| 1717 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1718 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1719 | fi |
| 1720 | |
| 1721 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1722 | |
| 1723 | |
| 1724 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1725 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1726 | echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1727 | echo "configure:1728: checking for clock_t in time.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1728 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1729 | #line 1730 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1730 | #include "confdefs.h" |
| 1731 | #include <time.h> |
| 1732 | EOF |
| 1733 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1734 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1735 | rm -rf conftest* |
| 1736 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1737 | else |
| 1738 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1739 | cat >> confdefs.h <<\EOF |
| 1740 | #define clock_t long |
| 1741 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1742 | |
| 1743 | fi |
| 1744 | rm -f conftest* |
| 1745 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1746 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1747 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1748 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 1749 | cat >> confdefs.h <<\EOF |
| 1750 | #if defined(SCO_DS) |
| 1751 | #undef _OFF_T |
| 1752 | #endif |
| 1753 | EOF |
| 1754 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 1755 | # Type availability checks |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1756 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1757 | echo "configure:1758: checking for mode_t" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 1758 | 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] | 1759 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1760 | else |
| 1761 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1762 | #line 1763 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1763 | #include "confdefs.h" |
| 1764 | #include <sys/types.h> |
| 1765 | #if STDC_HEADERS |
| 1766 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1767 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1768 | #endif |
| 1769 | EOF |
| 1770 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1771 | 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] | 1772 | rm -rf conftest* |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 1773 | ac_cv_type_mode_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1774 | else |
| 1775 | rm -rf conftest* |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 1776 | ac_cv_type_mode_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1777 | fi |
| 1778 | rm -f conftest* |
| 1779 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1780 | fi |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 1781 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
| 1782 | if test $ac_cv_type_mode_t = no; then |
| 1783 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1784 | #define mode_t int |
| 1785 | EOF |
| 1786 | |
| 1787 | fi |
| 1788 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1789 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1790 | echo "configure:1791: checking for off_t" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 1791 | 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] | 1792 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1793 | else |
| 1794 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1795 | #line 1796 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1796 | #include "confdefs.h" |
| 1797 | #include <sys/types.h> |
| 1798 | #if STDC_HEADERS |
| 1799 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1800 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1801 | #endif |
| 1802 | EOF |
| 1803 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1804 | 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] | 1805 | rm -rf conftest* |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 1806 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1807 | else |
| 1808 | rm -rf conftest* |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 1809 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1810 | fi |
| 1811 | rm -f conftest* |
| 1812 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1813 | fi |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 1814 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
| 1815 | if test $ac_cv_type_off_t = no; then |
| 1816 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1817 | #define off_t long |
| 1818 | EOF |
| 1819 | |
| 1820 | fi |
| 1821 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1822 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1823 | echo "configure:1824: checking for pid_t" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 1824 | 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] | 1825 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1826 | else |
| 1827 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1828 | #line 1829 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1829 | #include "confdefs.h" |
| 1830 | #include <sys/types.h> |
| 1831 | #if STDC_HEADERS |
| 1832 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1833 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1834 | #endif |
| 1835 | EOF |
| 1836 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1837 | 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] | 1838 | rm -rf conftest* |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 1839 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1840 | else |
| 1841 | rm -rf conftest* |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 1842 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1843 | fi |
| 1844 | rm -f conftest* |
| 1845 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1846 | fi |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 1847 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
| 1848 | if test $ac_cv_type_pid_t = no; then |
| 1849 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1850 | #define pid_t int |
| 1851 | EOF |
| 1852 | |
| 1853 | fi |
| 1854 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1855 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1856 | echo "configure:1857: checking return type of signal handlers" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 1857 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1858 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1859 | else |
| 1860 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1861 | #line 1862 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1862 | #include "confdefs.h" |
| 1863 | #include <sys/types.h> |
| 1864 | #include <signal.h> |
| 1865 | #ifdef signal |
| 1866 | #undef signal |
| 1867 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1868 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1869 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 1870 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1871 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1872 | #endif |
| 1873 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1874 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1875 | int i; |
| 1876 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1877 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1878 | if { (eval echo configure:1879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1879 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1880 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1881 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1882 | echo "configure: failed program was:" >&5 |
| 1883 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1884 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1885 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1886 | fi |
| 1887 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1888 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1889 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1890 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1891 | cat >> confdefs.h <<EOF |
| 1892 | #define RETSIGTYPE $ac_cv_type_signal |
| 1893 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1894 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1895 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1896 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1897 | echo "configure:1898: checking for size_t" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 1898 | 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] | 1899 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1900 | else |
| 1901 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1902 | #line 1903 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1903 | #include "confdefs.h" |
| 1904 | #include <sys/types.h> |
| 1905 | #if STDC_HEADERS |
| 1906 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1907 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1908 | #endif |
| 1909 | EOF |
| 1910 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1911 | 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] | 1912 | rm -rf conftest* |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 1913 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1914 | else |
| 1915 | rm -rf conftest* |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 1916 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1917 | fi |
| 1918 | rm -f conftest* |
| 1919 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1920 | fi |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 1921 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
| 1922 | if test $ac_cv_type_size_t = no; then |
| 1923 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1924 | #define size_t unsigned |
| 1925 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1926 | |
| 1927 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1928 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1929 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1930 | echo "configure:1931: checking for uid_t in sys/types.h" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 1931 | 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] | 1932 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1933 | else |
| 1934 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1935 | #line 1936 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1936 | #include "confdefs.h" |
| 1937 | #include <sys/types.h> |
| 1938 | EOF |
| 1939 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1940 | egrep "uid_t" >/dev/null 2>&1; then |
| 1941 | rm -rf conftest* |
| 1942 | ac_cv_type_uid_t=yes |
| 1943 | else |
| 1944 | rm -rf conftest* |
| 1945 | ac_cv_type_uid_t=no |
| 1946 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1947 | rm -f conftest* |
| 1948 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1949 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1950 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1951 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1952 | if test $ac_cv_type_uid_t = no; then |
| 1953 | cat >> confdefs.h <<\EOF |
| 1954 | #define uid_t int |
| 1955 | EOF |
| 1956 | |
| 1957 | cat >> confdefs.h <<\EOF |
| 1958 | #define gid_t int |
| 1959 | EOF |
| 1960 | |
| 1961 | fi |
| 1962 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1963 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 1964 | # Sizes of various common basic types |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1965 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1966 | echo "configure:1967: checking size of int" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 1967 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1968 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1969 | else |
| 1970 | if test "$cross_compiling" = yes; then |
| 1971 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1972 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1973 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1974 | #line 1975 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1975 | #include "confdefs.h" |
| 1976 | #include <stdio.h> |
| 1977 | main() |
| 1978 | { |
| 1979 | FILE *f=fopen("conftestval", "w"); |
| 1980 | if (!f) exit(1); |
| 1981 | fprintf(f, "%d\n", sizeof(int)); |
| 1982 | exit(0); |
| 1983 | } |
| 1984 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 1985 | if { (eval echo configure:1986: \"$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] | 1986 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1987 | ac_cv_sizeof_int=`cat conftestval` |
| 1988 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1989 | echo "configure: failed program was:" >&5 |
| 1990 | cat conftest.$ac_ext >&5 |
| 1991 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1992 | ac_cv_sizeof_int=0 |
| 1993 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1994 | rm -fr conftest* |
| 1995 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1996 | |
| 1997 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1998 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 1999 | cat >> confdefs.h <<EOF |
| 2000 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 2001 | EOF |
| 2002 | |
| 2003 | |
| 2004 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2005 | echo "configure:2006: checking size of long" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2006 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2007 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2008 | else |
| 2009 | if test "$cross_compiling" = yes; then |
| 2010 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2011 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2012 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2013 | #line 2014 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2014 | #include "confdefs.h" |
| 2015 | #include <stdio.h> |
| 2016 | main() |
| 2017 | { |
| 2018 | FILE *f=fopen("conftestval", "w"); |
| 2019 | if (!f) exit(1); |
| 2020 | fprintf(f, "%d\n", sizeof(long)); |
| 2021 | exit(0); |
| 2022 | } |
| 2023 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2024 | if { (eval echo configure:2025: \"$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] | 2025 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2026 | ac_cv_sizeof_long=`cat conftestval` |
| 2027 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2028 | echo "configure: failed program was:" >&5 |
| 2029 | cat conftest.$ac_ext >&5 |
| 2030 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2031 | ac_cv_sizeof_long=0 |
| 2032 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2033 | rm -fr conftest* |
| 2034 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2035 | |
| 2036 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2037 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
| 2038 | cat >> confdefs.h <<EOF |
| 2039 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 2040 | EOF |
| 2041 | |
| 2042 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2043 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2044 | echo "configure:2045: checking size of void *" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2045 | 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] | 2046 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2047 | else |
| 2048 | if test "$cross_compiling" = yes; then |
| 2049 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2050 | else |
| 2051 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2052 | #line 2053 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2053 | #include "confdefs.h" |
| 2054 | #include <stdio.h> |
| 2055 | main() |
| 2056 | { |
| 2057 | FILE *f=fopen("conftestval", "w"); |
| 2058 | if (!f) exit(1); |
| 2059 | fprintf(f, "%d\n", sizeof(void *)); |
| 2060 | exit(0); |
| 2061 | } |
| 2062 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2063 | if { (eval echo configure:2064: \"$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] | 2064 | then |
| 2065 | ac_cv_sizeof_void_p=`cat conftestval` |
| 2066 | else |
| 2067 | echo "configure: failed program was:" >&5 |
| 2068 | cat conftest.$ac_ext >&5 |
| 2069 | rm -fr conftest* |
| 2070 | ac_cv_sizeof_void_p=0 |
| 2071 | fi |
| 2072 | rm -fr conftest* |
| 2073 | fi |
| 2074 | |
| 2075 | fi |
| 2076 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
| 2077 | cat >> confdefs.h <<EOF |
| 2078 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
| 2079 | EOF |
| 2080 | |
| 2081 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2082 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2083 | echo "configure:2084: checking size of char" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2084 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2085 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2086 | else |
| 2087 | if test "$cross_compiling" = yes; then |
| 2088 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2089 | else |
| 2090 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2091 | #line 2092 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2092 | #include "confdefs.h" |
| 2093 | #include <stdio.h> |
| 2094 | main() |
| 2095 | { |
| 2096 | FILE *f=fopen("conftestval", "w"); |
| 2097 | if (!f) exit(1); |
| 2098 | fprintf(f, "%d\n", sizeof(char)); |
| 2099 | exit(0); |
| 2100 | } |
| 2101 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2102 | if { (eval echo configure:2103: \"$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] | 2103 | then |
| 2104 | ac_cv_sizeof_char=`cat conftestval` |
| 2105 | else |
| 2106 | echo "configure: failed program was:" >&5 |
| 2107 | cat conftest.$ac_ext >&5 |
| 2108 | rm -fr conftest* |
| 2109 | ac_cv_sizeof_char=0 |
| 2110 | fi |
| 2111 | rm -fr conftest* |
| 2112 | fi |
| 2113 | |
| 2114 | fi |
| 2115 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
| 2116 | cat >> confdefs.h <<EOF |
| 2117 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
| 2118 | EOF |
| 2119 | |
| 2120 | |
| 2121 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2122 | echo "configure:2123: checking size of short" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2123 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2124 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2125 | else |
| 2126 | if test "$cross_compiling" = yes; then |
| 2127 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2128 | else |
| 2129 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2130 | #line 2131 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2131 | #include "confdefs.h" |
| 2132 | #include <stdio.h> |
| 2133 | main() |
| 2134 | { |
| 2135 | FILE *f=fopen("conftestval", "w"); |
| 2136 | if (!f) exit(1); |
| 2137 | fprintf(f, "%d\n", sizeof(short)); |
| 2138 | exit(0); |
| 2139 | } |
| 2140 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2141 | if { (eval echo configure:2142: \"$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] | 2142 | then |
| 2143 | ac_cv_sizeof_short=`cat conftestval` |
| 2144 | else |
| 2145 | echo "configure: failed program was:" >&5 |
| 2146 | cat conftest.$ac_ext >&5 |
| 2147 | rm -fr conftest* |
| 2148 | ac_cv_sizeof_short=0 |
| 2149 | fi |
| 2150 | rm -fr conftest* |
| 2151 | fi |
| 2152 | |
| 2153 | fi |
| 2154 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
| 2155 | cat >> confdefs.h <<EOF |
| 2156 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 2157 | EOF |
| 2158 | |
| 2159 | |
| 2160 | echo $ac_n "checking size of float""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2161 | echo "configure:2162: checking size of float" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2162 | if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2163 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2164 | else |
| 2165 | if test "$cross_compiling" = yes; then |
| 2166 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2167 | else |
| 2168 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2169 | #line 2170 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2170 | #include "confdefs.h" |
| 2171 | #include <stdio.h> |
| 2172 | main() |
| 2173 | { |
| 2174 | FILE *f=fopen("conftestval", "w"); |
| 2175 | if (!f) exit(1); |
| 2176 | fprintf(f, "%d\n", sizeof(float)); |
| 2177 | exit(0); |
| 2178 | } |
| 2179 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2180 | if { (eval echo configure:2181: \"$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] | 2181 | then |
| 2182 | ac_cv_sizeof_float=`cat conftestval` |
| 2183 | else |
| 2184 | echo "configure: failed program was:" >&5 |
| 2185 | cat conftest.$ac_ext >&5 |
| 2186 | rm -fr conftest* |
| 2187 | ac_cv_sizeof_float=0 |
| 2188 | fi |
| 2189 | rm -fr conftest* |
| 2190 | fi |
| 2191 | |
| 2192 | fi |
| 2193 | echo "$ac_t""$ac_cv_sizeof_float" 1>&6 |
| 2194 | cat >> confdefs.h <<EOF |
| 2195 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
| 2196 | EOF |
| 2197 | |
| 2198 | |
| 2199 | echo $ac_n "checking size of double""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2200 | echo "configure:2201: checking size of double" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2201 | if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2202 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2203 | else |
| 2204 | if test "$cross_compiling" = yes; then |
| 2205 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2206 | else |
| 2207 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2208 | #line 2209 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2209 | #include "confdefs.h" |
| 2210 | #include <stdio.h> |
| 2211 | main() |
| 2212 | { |
| 2213 | FILE *f=fopen("conftestval", "w"); |
| 2214 | if (!f) exit(1); |
| 2215 | fprintf(f, "%d\n", sizeof(double)); |
| 2216 | exit(0); |
| 2217 | } |
| 2218 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2219 | if { (eval echo configure:2220: \"$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] | 2220 | then |
| 2221 | ac_cv_sizeof_double=`cat conftestval` |
| 2222 | else |
| 2223 | echo "configure: failed program was:" >&5 |
| 2224 | cat conftest.$ac_ext >&5 |
| 2225 | rm -fr conftest* |
| 2226 | ac_cv_sizeof_double=0 |
| 2227 | fi |
| 2228 | rm -fr conftest* |
| 2229 | fi |
| 2230 | |
| 2231 | fi |
| 2232 | echo "$ac_t""$ac_cv_sizeof_double" 1>&6 |
| 2233 | cat >> confdefs.h <<EOF |
| 2234 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
| 2235 | EOF |
| 2236 | |
| 2237 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2238 | echo $ac_n "checking size of fpos_t""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2239 | echo "configure:2240: checking size of fpos_t" >&5 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2240 | if eval "test \"`echo '$''{'ac_cv_sizeof_fpos_t'+set}'`\" = set"; then |
| 2241 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2242 | else |
| 2243 | if test "$cross_compiling" = yes; then |
| 2244 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2245 | else |
| 2246 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2247 | #line 2248 "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2248 | #include "confdefs.h" |
| 2249 | #include <stdio.h> |
| 2250 | main() |
| 2251 | { |
| 2252 | FILE *f=fopen("conftestval", "w"); |
| 2253 | if (!f) exit(1); |
| 2254 | fprintf(f, "%d\n", sizeof(fpos_t)); |
| 2255 | exit(0); |
| 2256 | } |
| 2257 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2258 | if { (eval echo configure:2259: \"$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] | 2259 | then |
| 2260 | ac_cv_sizeof_fpos_t=`cat conftestval` |
| 2261 | else |
| 2262 | echo "configure: failed program was:" >&5 |
| 2263 | cat conftest.$ac_ext >&5 |
| 2264 | rm -fr conftest* |
| 2265 | ac_cv_sizeof_fpos_t=0 |
| 2266 | fi |
| 2267 | rm -fr conftest* |
| 2268 | fi |
| 2269 | |
| 2270 | fi |
| 2271 | echo "$ac_t""$ac_cv_sizeof_fpos_t" 1>&6 |
| 2272 | cat >> confdefs.h <<EOF |
| 2273 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
| 2274 | EOF |
| 2275 | |
| 2276 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2277 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2278 | echo $ac_n "checking for long long support""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2279 | echo "configure:2280: checking for long long support" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2280 | have_long_long=no |
| 2281 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2282 | #line 2283 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2283 | #include "confdefs.h" |
| 2284 | |
| 2285 | int main() { |
| 2286 | long long x; x = (long long)0; |
| 2287 | ; return 0; } |
| 2288 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2289 | if { (eval echo configure:2290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2290 | rm -rf conftest* |
| 2291 | cat >> confdefs.h <<\EOF |
| 2292 | #define HAVE_LONG_LONG 1 |
| 2293 | EOF |
| 2294 | have_long_long=yes |
| 2295 | else |
| 2296 | echo "configure: failed program was:" >&5 |
| 2297 | cat conftest.$ac_ext >&5 |
| 2298 | fi |
| 2299 | rm -f conftest* |
| 2300 | echo "$ac_t""$have_long_long" 1>&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2301 | if test "$have_long_long" = yes ; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2302 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2303 | echo "configure:2304: checking size of long long" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2304 | 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] | 2305 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2306 | else |
| 2307 | if test "$cross_compiling" = yes; then |
| 2308 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2309 | else |
| 2310 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2311 | #line 2312 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2312 | #include "confdefs.h" |
| 2313 | #include <stdio.h> |
| 2314 | main() |
| 2315 | { |
| 2316 | FILE *f=fopen("conftestval", "w"); |
| 2317 | if (!f) exit(1); |
| 2318 | fprintf(f, "%d\n", sizeof(long long)); |
| 2319 | exit(0); |
| 2320 | } |
| 2321 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2322 | if { (eval echo configure:2323: \"$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] | 2323 | then |
| 2324 | ac_cv_sizeof_long_long=`cat conftestval` |
| 2325 | else |
| 2326 | echo "configure: failed program was:" >&5 |
| 2327 | cat conftest.$ac_ext >&5 |
| 2328 | rm -fr conftest* |
| 2329 | ac_cv_sizeof_long_long=0 |
| 2330 | fi |
| 2331 | rm -fr conftest* |
| 2332 | fi |
| 2333 | |
| 2334 | fi |
| 2335 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
| 2336 | cat >> confdefs.h <<EOF |
| 2337 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 2338 | EOF |
| 2339 | |
| 2340 | |
| 2341 | fi |
| 2342 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2343 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
| 2344 | echo $ac_n "checking size of off_t""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2345 | echo "configure:2346: checking size of off_t" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2346 | 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] | 2347 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2348 | else |
| 2349 | if test "$cross_compiling" = yes; then |
| 2350 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2351 | else |
| 2352 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2353 | #line 2354 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2354 | #include "confdefs.h" |
| 2355 | #include <stdio.h> |
| 2356 | #include <sys/types.h> |
| 2357 | main() |
| 2358 | { |
| 2359 | FILE *f=fopen("conftestval", "w"); |
| 2360 | if (!f) exit(1); |
| 2361 | fprintf(f, "%d\n", sizeof(off_t)); |
| 2362 | exit(0); |
| 2363 | } |
| 2364 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2365 | if { (eval echo configure:2366: \"$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] | 2366 | then |
| 2367 | ac_cv_sizeof_off_t=`cat conftestval` |
| 2368 | else |
| 2369 | echo "configure: failed program was:" >&5 |
| 2370 | cat conftest.$ac_ext >&5 |
| 2371 | rm -fr conftest* |
| 2372 | ac_cv_sizeof_off_t=0 |
| 2373 | fi |
| 2374 | rm -fr conftest* |
| 2375 | fi |
| 2376 | |
| 2377 | |
| 2378 | fi |
| 2379 | |
| 2380 | echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6 |
| 2381 | cat >> confdefs.h <<EOF |
| 2382 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 2383 | EOF |
| 2384 | |
| 2385 | |
| 2386 | echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2387 | echo "configure:2388: checking whether to enable large file support" >&5 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2388 | if test "$have_long_long" = yes -a \ |
| 2389 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 2390 | "$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] | 2391 | cat >> confdefs.h <<\EOF |
| 2392 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 2393 | EOF |
| 2394 | |
| 2395 | echo "$ac_t""yes" 1>&6 |
| 2396 | else |
| 2397 | echo "$ac_t""no" 1>&6 |
| 2398 | fi |
| 2399 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2400 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
| 2401 | echo $ac_n "checking size of time_t""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2402 | echo "configure:2403: checking size of time_t" >&5 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2403 | if eval "test \"`echo '$''{'ac_cv_sizeof_time_t'+set}'`\" = set"; then |
| 2404 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2405 | else |
| 2406 | if test "$cross_compiling" = yes; then |
| 2407 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2408 | else |
| 2409 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2410 | #line 2411 "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2411 | #include "confdefs.h" |
| 2412 | #include <stdio.h> |
| 2413 | #include <time.h> |
| 2414 | main() |
| 2415 | { |
| 2416 | FILE *f=fopen("conftestval", "w"); |
| 2417 | if (!f) exit(1); |
| 2418 | fprintf(f, "%d\n", sizeof(time_t)); |
| 2419 | exit(0); |
| 2420 | } |
| 2421 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +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 | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2423 | then |
| 2424 | ac_cv_sizeof_time_t=`cat conftestval` |
| 2425 | else |
| 2426 | echo "configure: failed program was:" >&5 |
| 2427 | cat conftest.$ac_ext >&5 |
| 2428 | rm -fr conftest* |
| 2429 | ac_cv_sizeof_time_t=0 |
| 2430 | fi |
| 2431 | rm -fr conftest* |
| 2432 | fi |
| 2433 | |
| 2434 | |
| 2435 | fi |
| 2436 | |
| 2437 | echo "$ac_t""$ac_cv_sizeof_time_t" 1>&6 |
| 2438 | cat >> confdefs.h <<EOF |
| 2439 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
| 2440 | EOF |
| 2441 | |
| 2442 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2443 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2444 | # Minor variations in building a framework between NextStep versions 4 and 5 |
| 2445 | |
| 2446 | case $ac_sys_system/$ac_sys_release in |
| 2447 | next/4*) |
| 2448 | ns_undef_sym='__environ' |
| 2449 | LIBTOOL_CRUFT="-U $ns_undef_sym" ;; |
| 2450 | next/5*) |
| 2451 | ns_undef_sym='_environ' |
| 2452 | LIBTOOL_CRUFT="-lcc_dynamic -U $ns_undef_sym" ;; |
| 2453 | esac |
| 2454 | |
| 2455 | echo $ac_n "checking for --with-next-framework""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2456 | echo "configure:2457: checking for --with-next-framework" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2457 | if test "$with_next_framework" |
| 2458 | then |
| 2459 | OPT="$OPT -fno-common" |
| 2460 | # -U __environ is needed since bundles don't have access |
| 2461 | # to crt0 when built but will always be linked against it |
| 2462 | LDFLAGS="$LDFLAGS -Wl,-U,$ns_undef_sym" |
| 2463 | cat >> confdefs.h <<\EOF |
| 2464 | #define WITH_NEXT_FRAMEWORK 1 |
| 2465 | EOF |
| 2466 | |
| 2467 | echo "$ac_t""yes" 1>&6 |
| 2468 | else |
| 2469 | echo "$ac_t""no" 1>&6 |
| 2470 | fi |
| 2471 | |
| 2472 | echo $ac_n "checking for --with-dyld""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2473 | echo "configure:2474: checking for --with-dyld" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2474 | if test "$with_next_framework" -o "$with_dyld" |
| 2475 | then |
| 2476 | if test "$with_dyld" |
| 2477 | then |
| 2478 | echo "$ac_t""yes" 1>&6 |
| 2479 | else |
| 2480 | echo "$ac_t""required for framework build" 1>&6 |
| 2481 | fi |
| 2482 | cat >> confdefs.h <<\EOF |
| 2483 | #define WITH_DYLD 1 |
| 2484 | EOF |
| 2485 | |
| 2486 | ns_dyld='set' |
| 2487 | else |
| 2488 | echo "$ac_t""no" 1>&6 |
| 2489 | fi |
| 2490 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2491 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2492 | |
| 2493 | |
| 2494 | |
| 2495 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2496 | # SO is the extension of shared libraries `(including the dot!) |
| 2497 | # -- usually .so, .sl on HP-UX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2498 | echo $ac_n "checking SO""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2499 | echo "configure:2500: checking SO" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2500 | if test -z "$SO" |
| 2501 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2502 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2503 | hp*|HP*) SO=.sl;; |
| 2504 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2505 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2506 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2507 | echo "$ac_t""$SO" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2508 | # LDSHARED is the ld *command* used to create shared library |
| 2509 | # -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2510 | # (Shared libraries in this instance are shared modules to be loaded into |
| 2511 | # Python, as opposed to building Python itself as a shared library.) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2512 | echo $ac_n "checking LDSHARED""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2513 | echo "configure:2514: checking LDSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2514 | if test -z "$LDSHARED" |
| 2515 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2516 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 45140f9 | 1997-08-29 18:44:06 +0000 | [diff] [blame] | 2517 | AIX*) LDSHARED="\$(srcdir)/ld_so_aix \$(CC)";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2518 | BeOS*) LDSHARED="\$(srcdir)/../BeOS/linkmodule -L.. -lpython\$(VERSION)";; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2519 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2520 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2521 | SunOS/4*) LDSHARED="ld";; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 2522 | SunOS/5*) |
| 2523 | if test "$GCC" = "yes" |
| 2524 | then LDSHARED='$(CC) -G' |
| 2525 | else LDSHARED="ld -G"; |
| 2526 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2527 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2528 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 2529 | DYNIX/ptx*) LDSHARED="ld -G";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2530 | next/*) |
| 2531 | if test "$ns_dyld" |
| 2532 | then LDSHARED='$(CC) $(LDFLAGS) -bundle -prebind' |
| 2533 | else LDSHARED='$(CC) $(CFLAGS) -nostdlib -r'; |
| 2534 | fi |
| 2535 | if test "$with_next_framework" ; then |
| 2536 | LDSHARED="$LDSHARED \$(LDLIBRARY)" |
| 2537 | fi ;; |
Guido van Rossum | 81652ab | 1996-07-21 02:53:27 +0000 | [diff] [blame] | 2538 | Linux*) LDSHARED="gcc -shared";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 2539 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 2540 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Guido van Rossum | a8acf72 | 1999-04-27 22:06:08 +0000 | [diff] [blame] | 2541 | FreeBSD*/[34]*) LDSHARED="gcc -shared";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2542 | FreeBSD*|OpenBSD*) LDSHARED="ld -Bshareable";; |
| 2543 | NetBSD*) |
| 2544 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 2545 | then |
| 2546 | LDSHARED="cc -shared" |
| 2547 | else |
| 2548 | LDSHARED="ld -Bshareable" |
| 2549 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2550 | SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2551 | *) LDSHARED="ld";; |
| 2552 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2553 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2554 | echo "$ac_t""$LDSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2555 | # 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] | 2556 | # library (module) -- this is only needed for a few systems |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2557 | echo $ac_n "checking CCSHARED""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2558 | echo "configure:2559: checking CCSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2559 | if test -z "$CCSHARED" |
| 2560 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2561 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 2562 | hp*|HP*) if test "$GCC" = yes; |
| 2563 | then CCSHARED="-fpic"; |
| 2564 | else CCSHARED="+z"; |
| 2565 | fi;; |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2566 | Linux*) CCSHARED="-fpic";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 2567 | BSD/OS*/4*) CCSHARED="-fpic";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2568 | FreeBSD*|OpenBSD*) CCSHARED="-fpic";; |
| 2569 | NetBSD*) CCSHARED="-fPIC";; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2570 | SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2571 | IRIX*/6*) case $CC in |
| 2572 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 2573 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2574 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2575 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2576 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2577 | echo "$ac_t""$CCSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2578 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2579 | # the python executable -- this is only needed for a few systems |
| 2580 | echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2581 | echo "configure:2582: checking LINKFORSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2582 | if test -z "$LINKFORSHARED" |
| 2583 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2584 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 69f6580 | 1998-03-03 21:47:00 +0000 | [diff] [blame] | 2585 | AIX*) LINKFORSHARED='-Wl,-bE:python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2586 | hp*|HP*) |
Guido van Rossum | 304dd2d | 1997-10-20 23:10:56 +0000 | [diff] [blame] | 2587 | LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 2588 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | a8acf72 | 1999-04-27 22:06:08 +0000 | [diff] [blame] | 2589 | FreeBSD/[34]*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 2d9feed | 1997-11-24 17:36:21 +0000 | [diff] [blame] | 2590 | Linux*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2591 | # -u libsys_s pulls in all symbols in libsys |
| 2592 | next/2*|next/3*) LINKFORSHARED="-u libsys_s";; |
| 2593 | # -u __dummy makes the linker aware of the objc runtime |
| 2594 | # in System.framework; otherwise, __objcInit (referenced in |
| 2595 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 2596 | # loading of any modules which reference it in System.framework |
| 2597 | next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2598 | SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2599 | NetBSD*) |
| 2600 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 2601 | then |
| 2602 | LINKFORSHARED="-Wl,--export-dynamic" |
| 2603 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2604 | SunOS/5*) case $CC in |
| 2605 | *gcc*) |
Guido van Rossum | ff48418 | 2000-02-03 13:50:24 +0000 | [diff] [blame] | 2606 | if $CC -Xlinker -V 2>&1 | grep BFD >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 2607 | then |
| 2608 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2609 | fi;; |
| 2610 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2611 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2612 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2613 | echo "$ac_t""$LINKFORSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2614 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2615 | # checks for libraries |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2616 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2617 | echo "configure:2618: checking for dlopen in -ldl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2618 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2619 | 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] | 2620 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2621 | else |
| 2622 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2623 | LIBS="-ldl $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2624 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2625 | #line 2626 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2626 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2627 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2628 | /* We use char because int might match the return type of a gcc2 |
| 2629 | builtin and then its argument prototype would still apply. */ |
| 2630 | char dlopen(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2631 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2632 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2633 | dlopen() |
| 2634 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2635 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2636 | if { (eval echo configure:2637: \"$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] | 2637 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2638 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2639 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2640 | echo "configure: failed program was:" >&5 |
| 2641 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2642 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2643 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2644 | fi |
| 2645 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2646 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2647 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2648 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2649 | 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] | 2650 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2651 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2652 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2653 | cat >> confdefs.h <<EOF |
| 2654 | #define $ac_tr_lib 1 |
| 2655 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2656 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2657 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2658 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2659 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2660 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2661 | fi |
| 2662 | # Dynamic linking for SunOS/Solaris and SYSV |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2663 | echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2664 | echo "configure:2665: checking for shl_load in -ldld" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2665 | ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2666 | 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] | 2667 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2668 | else |
| 2669 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2670 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2671 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2672 | #line 2673 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2673 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2674 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2675 | /* We use char because int might match the return type of a gcc2 |
| 2676 | builtin and then its argument prototype would still apply. */ |
| 2677 | char shl_load(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2678 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2679 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2680 | shl_load() |
| 2681 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2682 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2683 | if { (eval echo configure:2684: \"$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] | 2684 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2685 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2686 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2687 | echo "configure: failed program was:" >&5 |
| 2688 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2689 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2690 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2691 | fi |
| 2692 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2693 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2694 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2695 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2696 | 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] | 2697 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2698 | ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2699 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2700 | cat >> confdefs.h <<EOF |
| 2701 | #define $ac_tr_lib 1 |
| 2702 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2703 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2704 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2705 | |
| 2706 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2707 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2708 | fi |
| 2709 | # Dynamic linking for HP-UX |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2710 | |
| 2711 | # checks for system dependent C++ extensions support |
| 2712 | case "$ac_sys_system" in |
| 2713 | AIX*) echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2714 | echo "configure:2715: checking for genuine AIX C++ extensions support" >&5 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2715 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2716 | #line 2717 "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2717 | #include "confdefs.h" |
| 2718 | #include "/usr/lpp/xlC/include/load.h" |
| 2719 | int main() { |
| 2720 | loadAndInit("", 0, "") |
| 2721 | ; return 0; } |
| 2722 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2723 | if { (eval echo configure:2724: \"$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] | 2724 | rm -rf conftest* |
| 2725 | cat >> confdefs.h <<\EOF |
| 2726 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 2727 | EOF |
| 2728 | |
| 2729 | echo "$ac_t""yes" 1>&6 |
| 2730 | else |
| 2731 | echo "configure: failed program was:" >&5 |
| 2732 | cat conftest.$ac_ext >&5 |
| 2733 | rm -rf conftest* |
| 2734 | echo "$ac_t""no" 1>&6 |
| 2735 | fi |
| 2736 | rm -f conftest*;; |
| 2737 | *) ;; |
| 2738 | esac |
| 2739 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 2740 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| 2741 | # However on SGI IRIX, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2742 | # BeOS' sockets are stashed in libnet. |
| 2743 | case "$ac_sys_system" in |
| 2744 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 2745 | *) |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2746 | echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2747 | echo "configure:2748: checking for t_open in -lnsl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2748 | ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'` |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2749 | 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] | 2750 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2751 | else |
| 2752 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2753 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2754 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2755 | #line 2756 "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2756 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2757 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2758 | /* We use char because int might match the return type of a gcc2 |
| 2759 | builtin and then its argument prototype would still apply. */ |
| 2760 | char t_open(); |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2761 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2762 | int main() { |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 2763 | t_open() |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2764 | ; return 0; } |
| 2765 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2766 | if { (eval echo configure:2767: \"$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] | 2767 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2768 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2769 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2770 | echo "configure: failed program was:" >&5 |
| 2771 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2772 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2773 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2774 | fi |
| 2775 | rm -f conftest* |
| 2776 | LIBS="$ac_save_LIBS" |
| 2777 | |
| 2778 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2779 | 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] | 2780 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2781 | LIBS="-lnsl $LIBS" |
| 2782 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2783 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2784 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 2785 | # SVR4 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2786 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2787 | echo "configure:2788: checking for socket in -lsocket" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2788 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2789 | 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] | 2790 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2791 | else |
| 2792 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2793 | LIBS="-lsocket $LIBS $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2794 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2795 | #line 2796 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2796 | #include "confdefs.h" |
| 2797 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2798 | /* We use char because int might match the return type of a gcc2 |
| 2799 | builtin and then its argument prototype would still apply. */ |
| 2800 | char socket(); |
| 2801 | |
| 2802 | int main() { |
| 2803 | socket() |
| 2804 | ; return 0; } |
| 2805 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2806 | if { (eval echo configure:2807: \"$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] | 2807 | rm -rf conftest* |
| 2808 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2809 | else |
| 2810 | echo "configure: failed program was:" >&5 |
| 2811 | cat conftest.$ac_ext >&5 |
| 2812 | rm -rf conftest* |
| 2813 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2814 | fi |
| 2815 | rm -f conftest* |
| 2816 | LIBS="$ac_save_LIBS" |
| 2817 | |
| 2818 | fi |
| 2819 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2820 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2821 | LIBS="-lsocket $LIBS" |
| 2822 | else |
| 2823 | echo "$ac_t""no" 1>&6 |
| 2824 | fi |
| 2825 | # SVR4 sockets |
| 2826 | echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2827 | echo "configure:2828: checking for socket in -lnet" >&5 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2828 | ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'` |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2829 | 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] | 2830 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2831 | else |
| 2832 | ac_save_LIBS="$LIBS" |
| 2833 | LIBS="-lnet $LIBS $LIBS" |
| 2834 | cat > conftest.$ac_ext <<EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2835 | #line 2836 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2836 | #include "confdefs.h" |
| 2837 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2838 | /* We use char because int might match the return type of a gcc2 |
| 2839 | builtin and then its argument prototype would still apply. */ |
| 2840 | char socket(); |
| 2841 | |
| 2842 | int main() { |
| 2843 | socket() |
| 2844 | ; return 0; } |
| 2845 | EOF |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2846 | if { (eval echo configure:2847: \"$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] | 2847 | rm -rf conftest* |
| 2848 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2849 | else |
| 2850 | echo "configure: failed program was:" >&5 |
| 2851 | cat conftest.$ac_ext >&5 |
| 2852 | rm -rf conftest* |
| 2853 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2854 | fi |
| 2855 | rm -f conftest* |
| 2856 | LIBS="$ac_save_LIBS" |
| 2857 | |
| 2858 | fi |
| 2859 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2860 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2861 | LIBS="-lnet $LIBS" |
| 2862 | else |
| 2863 | echo "$ac_t""no" 1>&6 |
| 2864 | fi |
| 2865 | # BeOS |
| 2866 | ;; |
| 2867 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 2868 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 2869 | echo $ac_n "checking for --with-libs""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2870 | echo "configure:2871: checking for --with-libs" >&5 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 2871 | # Check whether --with-libs or --without-libs was given. |
| 2872 | if test "${with_libs+set}" = set; then |
| 2873 | withval="$with_libs" |
| 2874 | |
| 2875 | echo "$ac_t""$withval" 1>&6 |
| 2876 | LIBS="$withval $LIBS" |
| 2877 | |
| 2878 | else |
| 2879 | echo "$ac_t""no" 1>&6 |
| 2880 | fi |
| 2881 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2882 | |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame] | 2883 | echo $ac_n "checking for --with(out)-readline""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2884 | echo "configure:2885: checking for --with(out)-readline" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2885 | # Check whether --with-readline or --without-readline was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2886 | if test "${with_readline+set}" = set; then |
| 2887 | withval="$with_readline" |
Guido van Rossum | b06df27 | 1997-08-05 21:50:20 +0000 | [diff] [blame] | 2888 | echo "$ac_t""$withval" 1>&6 |
| 2889 | { echo "configure: error: --with(out)-readline is obsolete" 1>&2; exit 1; } |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame] | 2890 | else |
Guido van Rossum | b06df27 | 1997-08-05 21:50:20 +0000 | [diff] [blame] | 2891 | echo "$ac_t""not specified." 1>&6 |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame] | 2892 | fi |
| 2893 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2894 | |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 2895 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2896 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 2897 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2898 | echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2899 | echo "configure:2900: checking for --with-dec-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2900 | |
| 2901 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 2902 | if test "${with_dec_threads+set}" = set; then |
| 2903 | withval="$with_dec_threads" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2904 | |
| 2905 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2906 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2907 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2908 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2909 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2910 | else |
| 2911 | echo "$ac_t""no" 1>&6 |
| 2912 | fi |
| 2913 | |
| 2914 | |
| 2915 | echo $ac_n "checking for --with-threads""... $ac_c" 1>&6 |
Jeremy Hylton | 2a2c218 | 2000-06-30 04:57:55 +0000 | [diff] [blame] | 2916 | echo "configure:2917: checking for --with-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2917 | # Check whether --with-threads or --without-threads was given. |
| 2918 | if test "${with_threads+set}" = set; then |
| 2919 | withval="$with_threads" |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2920 | : |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2921 | fi |
| 2922 | |
| 2923 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2924 | # --with-thread is deprecated, but check for it anyway |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2925 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2926 | if test "${with_thread+set}" = set; then |
| 2927 | withval="$with_thread" |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 2928 | |
| 2929 | with_threads=$with_thread |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2930 | fi |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2931 | |
| 2932 | |
| 2933 | if test -z "$with_threads" |
| 2934 | then with_threads="yes" |
| 2935 | fi |
| 2936 | echo "$ac_t""$with_threads" 1>&6 |
| 2937 | |
| 2938 | if test "$with_threads" = "no" |
| 2939 | then |
| 2940 | USE_THREAD_MODULE="#" |
| 2941 | else |
| 2942 | if test -d "$with_threads" |
| 2943 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 2944 | fi |
| 2945 | if test -d "$withval" |
| 2946 | then LDFLAGS="$LDFLAGS -L$withval" |
| 2947 | fi |
| 2948 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 2949 | #define _REENTRANT 1 |
| 2950 | EOF |
| 2951 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2952 | ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2953 | echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 2954 | echo "configure:2955: checking for mach/cthreads.h" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2955 | 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] | 2956 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2957 | else |
| 2958 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 2959 | #line 2960 "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2960 | #include "confdefs.h" |
| 2961 | #include <mach/cthreads.h> |
| 2962 | EOF |
| 2963 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 2964 | { (eval echo configure:2965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2965 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2966 | if test -z "$ac_err"; then |
| 2967 | rm -rf conftest* |
| 2968 | eval "ac_cv_header_$ac_safe=yes" |
| 2969 | else |
| 2970 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2971 | echo "configure: failed program was:" >&5 |
| 2972 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2973 | rm -rf conftest* |
| 2974 | eval "ac_cv_header_$ac_safe=no" |
| 2975 | fi |
| 2976 | rm -f conftest* |
| 2977 | fi |
| 2978 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2979 | echo "$ac_t""yes" 1>&6 |
| 2980 | cat >> confdefs.h <<\EOF |
| 2981 | #define WITH_THREAD 1 |
| 2982 | EOF |
| 2983 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2984 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2985 | #define C_THREADS 1 |
| 2986 | EOF |
| 2987 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2988 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2989 | else |
| 2990 | echo "$ac_t""no" 1>&6 |
| 2991 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2992 | echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 2993 | echo "configure:2994: checking for pth_init in -lpth" >&5 |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 2994 | ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'` |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2995 | 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] | 2996 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2997 | else |
| 2998 | ac_save_LIBS="$LIBS" |
| 2999 | LIBS="-lpth $LIBS" |
| 3000 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3001 | #line 3002 "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3002 | #include "confdefs.h" |
| 3003 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3004 | /* We use char because int might match the return type of a gcc2 |
| 3005 | builtin and then its argument prototype would still apply. */ |
| 3006 | char pth_init(); |
| 3007 | |
| 3008 | int main() { |
| 3009 | pth_init() |
| 3010 | ; return 0; } |
| 3011 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3012 | if { (eval echo configure:3013: \"$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] | 3013 | rm -rf conftest* |
| 3014 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3015 | else |
| 3016 | echo "configure: failed program was:" >&5 |
| 3017 | cat conftest.$ac_ext >&5 |
| 3018 | rm -rf conftest* |
| 3019 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3020 | fi |
| 3021 | rm -f conftest* |
| 3022 | LIBS="$ac_save_LIBS" |
| 3023 | |
| 3024 | fi |
| 3025 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3026 | echo "$ac_t""yes" 1>&6 |
| 3027 | cat >> confdefs.h <<\EOF |
| 3028 | #define WITH_THREAD 1 |
| 3029 | EOF |
| 3030 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3031 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3032 | #define _GNU_PTH 1 |
| 3033 | EOF |
| 3034 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3035 | LIBS="-lpth $LIBS" |
| 3036 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3037 | else |
| 3038 | echo "$ac_t""no" 1>&6 |
| 3039 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3040 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3041 | echo "configure:3042: checking for pthread_create in -lpthread" >&5 |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3042 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3043 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3044 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3045 | else |
| 3046 | ac_save_LIBS="$LIBS" |
| 3047 | LIBS="-lpthread $LIBS" |
| 3048 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3049 | #line 3050 "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3050 | #include "confdefs.h" |
| 3051 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3052 | /* We use char because int might match the return type of a gcc2 |
| 3053 | builtin and then its argument prototype would still apply. */ |
| 3054 | char pthread_create(); |
| 3055 | |
| 3056 | int main() { |
| 3057 | pthread_create() |
| 3058 | ; return 0; } |
| 3059 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3060 | if { (eval echo configure:3061: \"$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] | 3061 | rm -rf conftest* |
| 3062 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3063 | else |
| 3064 | echo "configure: failed program was:" >&5 |
| 3065 | cat conftest.$ac_ext >&5 |
| 3066 | rm -rf conftest* |
| 3067 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3068 | fi |
| 3069 | rm -f conftest* |
| 3070 | LIBS="$ac_save_LIBS" |
| 3071 | |
| 3072 | fi |
| 3073 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3074 | echo "$ac_t""yes" 1>&6 |
| 3075 | cat >> confdefs.h <<\EOF |
| 3076 | #define WITH_THREAD 1 |
| 3077 | EOF |
| 3078 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3079 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3080 | #define _POSIX_THREADS 1 |
| 3081 | EOF |
| 3082 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3083 | LIBS="-lpthread $LIBS" |
| 3084 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3085 | else |
| 3086 | echo "$ac_t""no" 1>&6 |
| 3087 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3088 | echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3089 | echo "configure:3090: checking for pthread_detach" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3090 | 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] | 3091 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3092 | else |
| 3093 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3094 | #line 3095 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3095 | #include "confdefs.h" |
| 3096 | /* System header to define __stub macros and hopefully few prototypes, |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3097 | which can conflict with char pthread_detach(); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3098 | #include <assert.h> |
| 3099 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3100 | /* We use char because int might match the return type of a gcc2 |
| 3101 | builtin and then its argument prototype would still apply. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3102 | char pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3103 | |
| 3104 | int main() { |
| 3105 | |
| 3106 | /* The GNU C library defines this for functions which it implements |
| 3107 | to always fail with ENOSYS. Some functions are actually named |
| 3108 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3109 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3110 | choke me |
| 3111 | #else |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3112 | pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3113 | #endif |
| 3114 | |
| 3115 | ; return 0; } |
| 3116 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3117 | if { (eval echo configure:3118: \"$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] | 3118 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3119 | eval "ac_cv_func_pthread_detach=yes" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3120 | else |
| 3121 | echo "configure: failed program was:" >&5 |
| 3122 | cat conftest.$ac_ext >&5 |
| 3123 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3124 | eval "ac_cv_func_pthread_detach=no" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3125 | fi |
| 3126 | rm -f conftest* |
| 3127 | fi |
| 3128 | |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3129 | if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3130 | echo "$ac_t""yes" 1>&6 |
| 3131 | cat >> confdefs.h <<\EOF |
| 3132 | #define WITH_THREAD 1 |
| 3133 | EOF |
| 3134 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3135 | cat >> confdefs.h <<\EOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3136 | #define _POSIX_THREADS 1 |
| 3137 | EOF |
| 3138 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3139 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3140 | else |
| 3141 | echo "$ac_t""no" 1>&6 |
| 3142 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3143 | ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3144 | echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3145 | echo "configure:3146: checking for kernel/OS.h" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3146 | 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] | 3147 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3148 | else |
| 3149 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3150 | #line 3151 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3151 | #include "confdefs.h" |
| 3152 | #include <kernel/OS.h> |
| 3153 | EOF |
| 3154 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3155 | { (eval echo configure:3156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3156 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3157 | if test -z "$ac_err"; then |
| 3158 | rm -rf conftest* |
| 3159 | eval "ac_cv_header_$ac_safe=yes" |
| 3160 | else |
| 3161 | echo "$ac_err" >&5 |
| 3162 | echo "configure: failed program was:" >&5 |
| 3163 | cat conftest.$ac_ext >&5 |
| 3164 | rm -rf conftest* |
| 3165 | eval "ac_cv_header_$ac_safe=no" |
| 3166 | fi |
| 3167 | rm -f conftest* |
| 3168 | fi |
| 3169 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3170 | echo "$ac_t""yes" 1>&6 |
| 3171 | cat >> confdefs.h <<\EOF |
| 3172 | #define WITH_THREAD 1 |
| 3173 | EOF |
| 3174 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3175 | cat >> confdefs.h <<\EOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3176 | #define BEOS_THREADS 1 |
| 3177 | EOF |
| 3178 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3179 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3180 | else |
| 3181 | echo "$ac_t""no" 1>&6 |
| 3182 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3183 | echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3184 | echo "configure:3185: checking for pthread_create in -lpthreads" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3185 | ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3186 | 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] | 3187 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3188 | else |
| 3189 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3190 | LIBS="-lpthreads $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3191 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3192 | #line 3193 "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3193 | #include "confdefs.h" |
| 3194 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3195 | /* We use char because int might match the return type of a gcc2 |
| 3196 | builtin and then its argument prototype would still apply. */ |
| 3197 | char pthread_create(); |
| 3198 | |
| 3199 | int main() { |
| 3200 | pthread_create() |
| 3201 | ; return 0; } |
| 3202 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3203 | if { (eval echo configure:3204: \"$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] | 3204 | rm -rf conftest* |
| 3205 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3206 | else |
| 3207 | echo "configure: failed program was:" >&5 |
| 3208 | cat conftest.$ac_ext >&5 |
| 3209 | rm -rf conftest* |
| 3210 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3211 | fi |
| 3212 | rm -f conftest* |
| 3213 | LIBS="$ac_save_LIBS" |
| 3214 | |
| 3215 | fi |
| 3216 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3217 | echo "$ac_t""yes" 1>&6 |
| 3218 | cat >> confdefs.h <<\EOF |
| 3219 | #define WITH_THREAD 1 |
| 3220 | EOF |
| 3221 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3222 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3223 | #define _POSIX_THREADS 1 |
| 3224 | EOF |
| 3225 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3226 | LIBS="$LIBS -lpthreads" |
| 3227 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3228 | else |
| 3229 | echo "$ac_t""no" 1>&6 |
| 3230 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3231 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3232 | echo "configure:3233: checking for pthread_create in -lc_r" >&5 |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3233 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3234 | 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] | 3235 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3236 | else |
| 3237 | ac_save_LIBS="$LIBS" |
| 3238 | LIBS="-lc_r $LIBS" |
| 3239 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3240 | #line 3241 "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3241 | #include "confdefs.h" |
| 3242 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3243 | /* We use char because int might match the return type of a gcc2 |
| 3244 | builtin and then its argument prototype would still apply. */ |
| 3245 | char pthread_create(); |
| 3246 | |
| 3247 | int main() { |
| 3248 | pthread_create() |
| 3249 | ; return 0; } |
| 3250 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3251 | if { (eval echo configure:3252: \"$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] | 3252 | rm -rf conftest* |
| 3253 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3254 | else |
| 3255 | echo "configure: failed program was:" >&5 |
| 3256 | cat conftest.$ac_ext >&5 |
| 3257 | rm -rf conftest* |
| 3258 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3259 | fi |
| 3260 | rm -f conftest* |
| 3261 | LIBS="$ac_save_LIBS" |
| 3262 | |
| 3263 | fi |
| 3264 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3265 | echo "$ac_t""yes" 1>&6 |
| 3266 | cat >> confdefs.h <<\EOF |
| 3267 | #define WITH_THREAD 1 |
| 3268 | EOF |
| 3269 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3270 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3271 | #define _POSIX_THREADS 1 |
| 3272 | EOF |
| 3273 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3274 | LIBS="$LIBS -lc_r" |
| 3275 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3276 | else |
| 3277 | echo "$ac_t""no" 1>&6 |
| 3278 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3279 | echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3280 | echo "configure:3281: checking for __d6_pthread_create in -lthread" >&5 |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3281 | ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'` |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3282 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3283 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3284 | else |
| 3285 | ac_save_LIBS="$LIBS" |
| 3286 | LIBS="-lthread $LIBS" |
| 3287 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3288 | #line 3289 "configure" |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3289 | #include "confdefs.h" |
| 3290 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3291 | /* We use char because int might match the return type of a gcc2 |
| 3292 | builtin and then its argument prototype would still apply. */ |
| 3293 | char __d6_pthread_create(); |
| 3294 | |
| 3295 | int main() { |
| 3296 | __d6_pthread_create() |
| 3297 | ; return 0; } |
| 3298 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3299 | if { (eval echo configure:3300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3300 | rm -rf conftest* |
| 3301 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3302 | else |
| 3303 | echo "configure: failed program was:" >&5 |
| 3304 | cat conftest.$ac_ext >&5 |
| 3305 | rm -rf conftest* |
| 3306 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3307 | fi |
| 3308 | rm -f conftest* |
| 3309 | LIBS="$ac_save_LIBS" |
| 3310 | |
| 3311 | fi |
| 3312 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3313 | echo "$ac_t""yes" 1>&6 |
| 3314 | cat >> confdefs.h <<\EOF |
| 3315 | #define WITH_THREAD 1 |
| 3316 | EOF |
| 3317 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3318 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3319 | #define _POSIX_THREADS 1 |
| 3320 | EOF |
| 3321 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3322 | LIBS="$LIBS -lthread" |
| 3323 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3324 | else |
| 3325 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3326 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3327 | echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3328 | echo "configure:3329: checking for pthread_create in -lcma" >&5 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3329 | ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'` |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3330 | 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] | 3331 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3332 | else |
| 3333 | ac_save_LIBS="$LIBS" |
| 3334 | LIBS="-lcma $LIBS" |
| 3335 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3336 | #line 3337 "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3337 | #include "confdefs.h" |
| 3338 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3339 | /* We use char because int might match the return type of a gcc2 |
| 3340 | builtin and then its argument prototype would still apply. */ |
| 3341 | char pthread_create(); |
| 3342 | |
| 3343 | int main() { |
| 3344 | pthread_create() |
| 3345 | ; return 0; } |
| 3346 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3347 | if { (eval echo configure:3348: \"$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] | 3348 | rm -rf conftest* |
| 3349 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3350 | else |
| 3351 | echo "configure: failed program was:" >&5 |
| 3352 | cat conftest.$ac_ext >&5 |
| 3353 | rm -rf conftest* |
| 3354 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3355 | fi |
| 3356 | rm -f conftest* |
| 3357 | LIBS="$ac_save_LIBS" |
| 3358 | |
| 3359 | fi |
| 3360 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3361 | echo "$ac_t""yes" 1>&6 |
| 3362 | cat >> confdefs.h <<\EOF |
| 3363 | #define WITH_THREAD 1 |
| 3364 | EOF |
| 3365 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3366 | cat >> confdefs.h <<\EOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3367 | #define _POSIX_THREADS 1 |
| 3368 | EOF |
| 3369 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3370 | LIBS="$LIBS -lcma" |
| 3371 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3372 | else |
| 3373 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 3374 | fi |
| 3375 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3376 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3377 | fi |
| 3378 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3379 | fi |
| 3380 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3381 | fi |
| 3382 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3383 | fi |
| 3384 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3385 | fi |
| 3386 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3387 | fi |
| 3388 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3389 | fi |
| 3390 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3391 | fi |
| 3392 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3393 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3394 | echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3395 | echo "configure:3396: checking for usconfig in -lmpc" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3396 | ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'` |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3397 | 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] | 3398 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3399 | else |
| 3400 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3401 | LIBS="-lmpc $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3402 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3403 | #line 3404 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3404 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3405 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3406 | /* We use char because int might match the return type of a gcc2 |
| 3407 | builtin and then its argument prototype would still apply. */ |
| 3408 | char usconfig(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3409 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3410 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3411 | usconfig() |
| 3412 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3413 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3414 | if { (eval echo configure:3415: \"$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] | 3415 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3416 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3417 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3418 | echo "configure: failed program was:" >&5 |
| 3419 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3420 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3421 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3422 | fi |
| 3423 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3424 | LIBS="$ac_save_LIBS" |
| 3425 | |
| 3426 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3427 | 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] | 3428 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3429 | cat >> confdefs.h <<\EOF |
| 3430 | #define WITH_THREAD 1 |
| 3431 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3432 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3433 | LIBS="$LIBS -lmpc" |
| 3434 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3435 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3436 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3437 | fi |
| 3438 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3439 | echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3440 | echo "configure:3441: checking for thr_create in -lthread" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3441 | ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'` |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3442 | 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] | 3443 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3444 | else |
| 3445 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3446 | LIBS="-lthread $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3447 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3448 | #line 3449 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3449 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3450 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3451 | /* We use char because int might match the return type of a gcc2 |
| 3452 | builtin and then its argument prototype would still apply. */ |
| 3453 | char thr_create(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3454 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3455 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3456 | thr_create() |
| 3457 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3458 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3459 | if { (eval echo configure:3460: \"$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] | 3460 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3461 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3462 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3463 | echo "configure: failed program was:" >&5 |
| 3464 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3465 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3466 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3467 | fi |
| 3468 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3469 | LIBS="$ac_save_LIBS" |
| 3470 | |
| 3471 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3472 | 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] | 3473 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3474 | cat >> confdefs.h <<\EOF |
| 3475 | #define WITH_THREAD 1 |
| 3476 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3477 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3478 | LIBS="$LIBS -lthread" |
| 3479 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3480 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3481 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3482 | fi |
| 3483 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3484 | fi |
| 3485 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3486 | # Check for GC support |
| 3487 | |
| 3488 | USE_GC_MODULE="" |
| 3489 | echo $ac_n "checking for --with-cycle-gc""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3490 | echo "configure:3491: checking for --with-cycle-gc" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3491 | # Check whether --with-cycle-gc or --without-cycle-gc was given. |
| 3492 | if test "${with_cycle_gc+set}" = set; then |
| 3493 | withval="$with_cycle_gc" |
| 3494 | : |
| 3495 | fi |
| 3496 | |
| 3497 | |
| 3498 | if test -z "$with_cycle_gc" |
| 3499 | then with_cycle_gc="yes" |
| 3500 | fi |
| 3501 | if test "$with_cycle_gc" = "no" |
| 3502 | then |
| 3503 | USE_GC_MODULE="#" |
| 3504 | else |
| 3505 | cat >> confdefs.h <<\EOF |
| 3506 | #define WITH_CYCLE_GC 1 |
| 3507 | EOF |
| 3508 | |
| 3509 | fi |
| 3510 | echo "$ac_t""$with_cycle_gc" 1>&6 |
| 3511 | |
| 3512 | # Check for --with-wctype-functions |
| 3513 | echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3514 | echo "configure:3515: checking for --with-wctype-functions" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3515 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 3516 | if test "${with_wctype_functions+set}" = set; then |
| 3517 | withval="$with_wctype_functions" |
| 3518 | |
| 3519 | if test "$withval" != no |
| 3520 | then cat >> confdefs.h <<\EOF |
| 3521 | #define WANT_WCTYPE_FUNCTIONS 1 |
| 3522 | EOF |
| 3523 | echo "$ac_t""yes" 1>&6 |
| 3524 | else echo "$ac_t""no" 1>&6 |
| 3525 | fi |
| 3526 | else |
| 3527 | echo "$ac_t""no" 1>&6 |
| 3528 | fi |
| 3529 | |
| 3530 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3531 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3532 | |
| 3533 | DLINCLDIR=/ |
| 3534 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3535 | echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3536 | echo "configure:3537: checking for --with-sgi-dl" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3537 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3538 | if test "${with_sgi_dl+set}" = set; then |
| 3539 | withval="$with_sgi_dl" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3540 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3541 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3542 | cat >> confdefs.h <<\EOF |
| 3543 | #define WITH_SGI_DL 1 |
| 3544 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3545 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3546 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3547 | dldir=$withval |
| 3548 | if test -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3549 | then LDFLAGS="$LDFLAGS -L$dldir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3550 | 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] | 3551 | fi |
| 3552 | DLINCLDIR=${dldir} |
| 3553 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3554 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3555 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3556 | fi |
| 3557 | |
| 3558 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3559 | echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3560 | echo "configure:3561: checking for --with-dl-dld" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3561 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3562 | if test "${with_dl_dld+set}" = set; then |
| 3563 | withval="$with_dl_dld" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3564 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3565 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3566 | cat >> confdefs.h <<\EOF |
| 3567 | #define WITH_DL_DLD 1 |
| 3568 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3569 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3570 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3571 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 3572 | dlddir=`echo "$withval" | sed 's/.*,//'` |
| 3573 | if test -d "$dldir" -a -d "$dlddir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3574 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3575 | 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] | 3576 | fi |
| 3577 | DLINCLDIR=${dldir} |
| 3578 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3579 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3580 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3581 | fi |
| 3582 | |
| 3583 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3584 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 3585 | # platforms, such as AIX, have dlopen(), but don't want to use it. |
| 3586 | echo $ac_n "checking for dlopen""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3587 | echo "configure:3588: checking for dlopen" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3588 | if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3589 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3590 | else |
| 3591 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3592 | #line 3593 "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3593 | #include "confdefs.h" |
| 3594 | /* System header to define __stub macros and hopefully few prototypes, |
| 3595 | which can conflict with char dlopen(); below. */ |
| 3596 | #include <assert.h> |
| 3597 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3598 | /* We use char because int might match the return type of a gcc2 |
| 3599 | builtin and then its argument prototype would still apply. */ |
| 3600 | char dlopen(); |
| 3601 | |
| 3602 | int main() { |
| 3603 | |
| 3604 | /* The GNU C library defines this for functions which it implements |
| 3605 | to always fail with ENOSYS. Some functions are actually named |
| 3606 | something starting with __ and the normal name is an alias. */ |
| 3607 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 3608 | choke me |
| 3609 | #else |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3610 | dlopen(); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3611 | #endif |
| 3612 | |
| 3613 | ; return 0; } |
| 3614 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3615 | if { (eval echo configure:3616: \"$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] | 3616 | rm -rf conftest* |
| 3617 | eval "ac_cv_func_dlopen=yes" |
| 3618 | else |
| 3619 | echo "configure: failed program was:" >&5 |
| 3620 | cat conftest.$ac_ext >&5 |
| 3621 | rm -rf conftest* |
| 3622 | eval "ac_cv_func_dlopen=no" |
| 3623 | fi |
| 3624 | rm -f conftest* |
| 3625 | fi |
| 3626 | |
| 3627 | if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then |
| 3628 | echo "$ac_t""yes" 1>&6 |
| 3629 | : |
| 3630 | else |
| 3631 | echo "$ac_t""no" 1>&6 |
| 3632 | fi |
| 3633 | |
| 3634 | |
| 3635 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 3636 | # loading of modules. |
| 3637 | |
| 3638 | echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3639 | echo "configure:3640: checking DYNLOADFILE" >&5 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3640 | if test -z "$DYNLOADFILE" |
| 3641 | then |
| 3642 | case $ac_sys_system/$ac_sys_release in |
| 3643 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 3644 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 3645 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
| 3646 | next/*) DYNLOADFILE="dynload_next.o";; |
| 3647 | *) |
| 3648 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 3649 | # out any dynamic loading |
| 3650 | if test "$ac_cv_func_dlopen" = yes |
| 3651 | then DYNLOADFILE="dynload_shlib.o" |
| 3652 | else DYNLOADFILE="dynload_stub.o" |
| 3653 | fi |
| 3654 | ;; |
| 3655 | esac |
| 3656 | fi |
| 3657 | echo "$ac_t""$DYNLOADFILE" 1>&6 |
| 3658 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 3659 | then |
| 3660 | cat >> confdefs.h <<\EOF |
| 3661 | #define HAVE_DYNAMIC_LOADING 1 |
| 3662 | EOF |
| 3663 | |
| 3664 | fi |
| 3665 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3666 | # checks for library functions |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 3667 | for ac_func in alarm chown clock confstr ctermid ctermid_r dlopen execv \ |
| 3668 | flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Fred Drake | f581db1 | 1999-12-14 21:11:47 +0000 | [diff] [blame] | 3669 | getgroups getlogin getpeername getpgrp getpid getpwent gettimeofday getwd \ |
Andrew M. Kuchling | 22c6934 | 2000-06-18 15:07:40 +0000 | [diff] [blame] | 3670 | kill link lstat mkfifo mktime mremap \ |
| 3671 | nice pathconf pause plock pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 3672 | putenv readlink \ |
Guido van Rossum | 9601315 | 1997-10-08 22:47:52 +0000 | [diff] [blame] | 3673 | select setgid setlocale setuid setsid setpgid setpgrp setvbuf \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 3674 | sigaction siginterrupt sigrelse strftime strptime symlink sysconf \ |
Fred Drake | 89143df | 1999-12-09 22:03:25 +0000 | [diff] [blame] | 3675 | tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
| 3676 | truncate uname waitpid |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3677 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3678 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3679 | echo "configure:3680: checking for $ac_func" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3680 | 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] | 3681 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3682 | else |
| 3683 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3684 | #line 3685 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3685 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3686 | /* System header to define __stub macros and hopefully few prototypes, |
| 3687 | which can conflict with char $ac_func(); below. */ |
| 3688 | #include <assert.h> |
| 3689 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3690 | /* We use char because int might match the return type of a gcc2 |
| 3691 | builtin and then its argument prototype would still apply. */ |
| 3692 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3693 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3694 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3695 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3696 | /* The GNU C library defines this for functions which it implements |
| 3697 | to always fail with ENOSYS. Some functions are actually named |
| 3698 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3699 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3700 | choke me |
| 3701 | #else |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3702 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3703 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3704 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3705 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3706 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3707 | if { (eval echo configure:3708: \"$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] | 3708 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3709 | eval "ac_cv_func_$ac_func=yes" |
| 3710 | else |
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 | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3713 | rm -rf conftest* |
| 3714 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3715 | fi |
| 3716 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3717 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3718 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3719 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3720 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3721 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3722 | cat >> confdefs.h <<EOF |
| 3723 | #define $ac_tr_func 1 |
| 3724 | EOF |
| 3725 | |
| 3726 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3727 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3728 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3729 | done |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3730 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 3731 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3732 | # check for openpty and forkpty |
| 3733 | |
| 3734 | for ac_func in openpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3735 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3736 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3737 | echo "configure:3738: checking for $ac_func" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3738 | 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] | 3739 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3740 | else |
| 3741 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3742 | #line 3743 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3743 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3744 | /* System header to define __stub macros and hopefully few prototypes, |
| 3745 | which can conflict with char $ac_func(); below. */ |
| 3746 | #include <assert.h> |
| 3747 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3748 | /* We use char because int might match the return type of a gcc2 |
| 3749 | builtin and then its argument prototype would still apply. */ |
| 3750 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3751 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3752 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3753 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3754 | /* The GNU C library defines this for functions which it implements |
| 3755 | to always fail with ENOSYS. Some functions are actually named |
| 3756 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3757 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3758 | choke me |
| 3759 | #else |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3760 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3761 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3762 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3763 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3764 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3765 | if { (eval echo configure:3766: \"$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] | 3766 | rm -rf conftest* |
| 3767 | eval "ac_cv_func_$ac_func=yes" |
| 3768 | else |
| 3769 | echo "configure: failed program was:" >&5 |
| 3770 | cat conftest.$ac_ext >&5 |
| 3771 | rm -rf conftest* |
| 3772 | eval "ac_cv_func_$ac_func=no" |
| 3773 | fi |
| 3774 | rm -f conftest* |
| 3775 | fi |
| 3776 | |
| 3777 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3778 | echo "$ac_t""yes" 1>&6 |
| 3779 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3780 | cat >> confdefs.h <<EOF |
| 3781 | #define $ac_tr_func 1 |
| 3782 | EOF |
| 3783 | |
| 3784 | else |
| 3785 | echo "$ac_t""no" 1>&6 |
| 3786 | echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3787 | echo "configure:3788: checking for openpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3788 | ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3789 | 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] | 3790 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3791 | else |
| 3792 | ac_save_LIBS="$LIBS" |
| 3793 | LIBS="-lutil $LIBS" |
| 3794 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3795 | #line 3796 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3796 | #include "confdefs.h" |
| 3797 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3798 | /* We use char because int might match the return type of a gcc2 |
| 3799 | builtin and then its argument prototype would still apply. */ |
| 3800 | char openpty(); |
| 3801 | |
| 3802 | int main() { |
| 3803 | openpty() |
| 3804 | ; return 0; } |
| 3805 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3806 | if { (eval echo configure:3807: \"$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] | 3807 | rm -rf conftest* |
| 3808 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3809 | else |
| 3810 | echo "configure: failed program was:" >&5 |
| 3811 | cat conftest.$ac_ext >&5 |
| 3812 | rm -rf conftest* |
| 3813 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3814 | fi |
| 3815 | rm -f conftest* |
| 3816 | LIBS="$ac_save_LIBS" |
| 3817 | |
| 3818 | fi |
| 3819 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3820 | echo "$ac_t""yes" 1>&6 |
| 3821 | cat >> confdefs.h <<\EOF |
| 3822 | #define HAVE_OPENPTY 1 |
| 3823 | EOF |
| 3824 | LIBS="$LIBS -lutil" |
| 3825 | else |
| 3826 | echo "$ac_t""no" 1>&6 |
| 3827 | fi |
| 3828 | |
| 3829 | fi |
| 3830 | done |
| 3831 | |
| 3832 | for ac_func in forkpty |
| 3833 | do |
| 3834 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3835 | echo "configure:3836: checking for $ac_func" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3836 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3837 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3838 | else |
| 3839 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3840 | #line 3841 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3841 | #include "confdefs.h" |
| 3842 | /* System header to define __stub macros and hopefully few prototypes, |
| 3843 | which can conflict with char $ac_func(); below. */ |
| 3844 | #include <assert.h> |
| 3845 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3846 | /* We use char because int might match the return type of a gcc2 |
| 3847 | builtin and then its argument prototype would still apply. */ |
| 3848 | char $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3849 | |
| 3850 | int main() { |
| 3851 | |
| 3852 | /* The GNU C library defines this for functions which it implements |
| 3853 | to always fail with ENOSYS. Some functions are actually named |
| 3854 | something starting with __ and the normal name is an alias. */ |
| 3855 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3856 | choke me |
| 3857 | #else |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3858 | $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3859 | #endif |
| 3860 | |
| 3861 | ; return 0; } |
| 3862 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3863 | if { (eval echo configure:3864: \"$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] | 3864 | rm -rf conftest* |
| 3865 | eval "ac_cv_func_$ac_func=yes" |
| 3866 | else |
| 3867 | echo "configure: failed program was:" >&5 |
| 3868 | cat conftest.$ac_ext >&5 |
| 3869 | rm -rf conftest* |
| 3870 | eval "ac_cv_func_$ac_func=no" |
| 3871 | fi |
| 3872 | rm -f conftest* |
| 3873 | fi |
| 3874 | |
| 3875 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3876 | echo "$ac_t""yes" 1>&6 |
| 3877 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3878 | cat >> confdefs.h <<EOF |
| 3879 | #define $ac_tr_func 1 |
| 3880 | EOF |
| 3881 | |
| 3882 | else |
| 3883 | echo "$ac_t""no" 1>&6 |
| 3884 | echo $ac_n "checking for forkpty in -lutil""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3885 | echo "configure:3886: checking for forkpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3886 | ac_lib_var=`echo util'_'forkpty | sed 'y%./+-%__p_%'` |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3887 | 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] | 3888 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3889 | else |
| 3890 | ac_save_LIBS="$LIBS" |
| 3891 | LIBS="-lutil $LIBS" |
| 3892 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3893 | #line 3894 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3894 | #include "confdefs.h" |
| 3895 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3896 | /* We use char because int might match the return type of a gcc2 |
| 3897 | builtin and then its argument prototype would still apply. */ |
| 3898 | char forkpty(); |
| 3899 | |
| 3900 | int main() { |
| 3901 | forkpty() |
| 3902 | ; return 0; } |
| 3903 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3904 | if { (eval echo configure:3905: \"$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] | 3905 | rm -rf conftest* |
| 3906 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3907 | else |
| 3908 | echo "configure: failed program was:" >&5 |
| 3909 | cat conftest.$ac_ext >&5 |
| 3910 | rm -rf conftest* |
| 3911 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3912 | fi |
| 3913 | rm -f conftest* |
| 3914 | LIBS="$ac_save_LIBS" |
| 3915 | |
| 3916 | fi |
| 3917 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3918 | echo "$ac_t""yes" 1>&6 |
| 3919 | cat >> confdefs.h <<\EOF |
| 3920 | #define HAVE_FORKPTY 1 |
| 3921 | EOF |
| 3922 | LIBS="$LIBS -lutil" |
| 3923 | else |
| 3924 | echo "$ac_t""no" 1>&6 |
| 3925 | fi |
| 3926 | |
| 3927 | fi |
| 3928 | done |
| 3929 | |
| 3930 | |
| 3931 | # check for long file support functions |
| 3932 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 3933 | do |
| 3934 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3935 | echo "configure:3936: checking for $ac_func" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3936 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3937 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3938 | else |
| 3939 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3940 | #line 3941 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3941 | #include "confdefs.h" |
| 3942 | /* System header to define __stub macros and hopefully few prototypes, |
| 3943 | which can conflict with char $ac_func(); below. */ |
| 3944 | #include <assert.h> |
| 3945 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3946 | /* We use char because int might match the return type of a gcc2 |
| 3947 | builtin and then its argument prototype would still apply. */ |
| 3948 | char $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3949 | |
| 3950 | int main() { |
| 3951 | |
| 3952 | /* The GNU C library defines this for functions which it implements |
| 3953 | to always fail with ENOSYS. Some functions are actually named |
| 3954 | something starting with __ and the normal name is an alias. */ |
| 3955 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3956 | choke me |
| 3957 | #else |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3958 | $ac_func(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3959 | #endif |
| 3960 | |
| 3961 | ; return 0; } |
| 3962 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3963 | if { (eval echo configure:3964: \"$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] | 3964 | rm -rf conftest* |
| 3965 | eval "ac_cv_func_$ac_func=yes" |
| 3966 | else |
| 3967 | echo "configure: failed program was:" >&5 |
| 3968 | cat conftest.$ac_ext >&5 |
| 3969 | rm -rf conftest* |
| 3970 | eval "ac_cv_func_$ac_func=no" |
| 3971 | fi |
| 3972 | rm -f conftest* |
| 3973 | fi |
| 3974 | |
| 3975 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3976 | echo "$ac_t""yes" 1>&6 |
| 3977 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3978 | cat >> confdefs.h <<EOF |
| 3979 | #define $ac_tr_func 1 |
| 3980 | EOF |
| 3981 | |
| 3982 | else |
| 3983 | echo "$ac_t""no" 1>&6 |
| 3984 | fi |
| 3985 | done |
| 3986 | |
| 3987 | |
| 3988 | for ac_func in dup2 getcwd strdup strerror memmove |
| 3989 | do |
| 3990 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3991 | echo "configure:3992: checking for $ac_func" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3992 | 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] | 3993 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3994 | else |
| 3995 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3996 | #line 3997 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 3997 | #include "confdefs.h" |
| 3998 | /* System header to define __stub macros and hopefully few prototypes, |
| 3999 | which can conflict with char $ac_func(); below. */ |
| 4000 | #include <assert.h> |
| 4001 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4002 | /* We use char because int might match the return type of a gcc2 |
| 4003 | builtin and then its argument prototype would still apply. */ |
| 4004 | char $ac_func(); |
| 4005 | |
| 4006 | int main() { |
| 4007 | |
| 4008 | /* The GNU C library defines this for functions which it implements |
| 4009 | to always fail with ENOSYS. Some functions are actually named |
| 4010 | something starting with __ and the normal name is an alias. */ |
| 4011 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4012 | choke me |
| 4013 | #else |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 4014 | $ac_func(); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4015 | #endif |
| 4016 | |
| 4017 | ; return 0; } |
| 4018 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4019 | if { (eval echo configure:4020: \"$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] | 4020 | rm -rf conftest* |
| 4021 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4022 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4023 | echo "configure: failed program was:" >&5 |
| 4024 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4025 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4026 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4027 | fi |
| 4028 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4029 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4030 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4031 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4032 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4033 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4034 | cat >> confdefs.h <<EOF |
| 4035 | #define $ac_tr_func 1 |
| 4036 | EOF |
| 4037 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4038 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4039 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4040 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4041 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4042 | done |
| 4043 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4044 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4045 | echo $ac_n "checking for getpgrp""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4046 | echo "configure:4047: checking for getpgrp" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 4047 | if eval "test \"`echo '$''{'ac_cv_func_getpgrp'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4048 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4049 | else |
| 4050 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4051 | #line 4052 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4052 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4053 | /* System header to define __stub macros and hopefully few prototypes, |
| 4054 | which can conflict with char getpgrp(); below. */ |
| 4055 | #include <assert.h> |
| 4056 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4057 | /* We use char because int might match the return type of a gcc2 |
| 4058 | builtin and then its argument prototype would still apply. */ |
| 4059 | char getpgrp(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4060 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4061 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4062 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4063 | /* The GNU C library defines this for functions which it implements |
| 4064 | to always fail with ENOSYS. Some functions are actually named |
| 4065 | something starting with __ and the normal name is an alias. */ |
| 4066 | #if defined (__stub_getpgrp) || defined (__stub___getpgrp) |
| 4067 | choke me |
| 4068 | #else |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 4069 | getpgrp(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4070 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4071 | |
| 4072 | ; return 0; } |
| 4073 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4074 | if { (eval echo configure:4075: \"$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] | 4075 | rm -rf conftest* |
| 4076 | eval "ac_cv_func_getpgrp=yes" |
| 4077 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4078 | echo "configure: failed program was:" >&5 |
| 4079 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4080 | rm -rf conftest* |
| 4081 | eval "ac_cv_func_getpgrp=no" |
| 4082 | fi |
| 4083 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4084 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4085 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4086 | if eval "test \"`echo '$ac_cv_func_'getpgrp`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4087 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4088 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4089 | #line 4090 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4090 | #include "confdefs.h" |
| 4091 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4092 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4093 | getpgrp(0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4094 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4095 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4096 | if { (eval echo configure:4097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4097 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4098 | cat >> confdefs.h <<\EOF |
| 4099 | #define GETPGRP_HAVE_ARG 1 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4100 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4101 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4102 | else |
| 4103 | echo "configure: failed program was:" >&5 |
| 4104 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4105 | fi |
| 4106 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4107 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4108 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4109 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4110 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4111 | echo $ac_n "checking for setpgrp""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4112 | echo "configure:4113: checking for setpgrp" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 4113 | if eval "test \"`echo '$''{'ac_cv_func_setpgrp'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4114 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4115 | else |
| 4116 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4117 | #line 4118 "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4118 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4119 | /* System header to define __stub macros and hopefully few prototypes, |
| 4120 | which can conflict with char setpgrp(); below. */ |
| 4121 | #include <assert.h> |
| 4122 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4123 | /* We use char because int might match the return type of a gcc2 |
| 4124 | builtin and then its argument prototype would still apply. */ |
| 4125 | char setpgrp(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4126 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4127 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4128 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4129 | /* The GNU C library defines this for functions which it implements |
| 4130 | to always fail with ENOSYS. Some functions are actually named |
| 4131 | something starting with __ and the normal name is an alias. */ |
| 4132 | #if defined (__stub_setpgrp) || defined (__stub___setpgrp) |
| 4133 | choke me |
| 4134 | #else |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 4135 | setpgrp(); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4136 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4137 | |
| 4138 | ; return 0; } |
| 4139 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4140 | if { (eval echo configure:4141: \"$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] | 4141 | rm -rf conftest* |
| 4142 | eval "ac_cv_func_setpgrp=yes" |
| 4143 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4144 | echo "configure: failed program was:" >&5 |
| 4145 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4146 | rm -rf conftest* |
| 4147 | eval "ac_cv_func_setpgrp=no" |
| 4148 | fi |
| 4149 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4150 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4151 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4152 | if eval "test \"`echo '$ac_cv_func_'setpgrp`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4153 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4154 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4155 | #line 4156 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4156 | #include "confdefs.h" |
| 4157 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4158 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4159 | setpgrp(0,0); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4160 | ; return 0; } |
| 4161 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4162 | if { (eval echo configure:4163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4163 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4164 | cat >> confdefs.h <<\EOF |
| 4165 | #define SETPGRP_HAVE_ARG 1 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4166 | EOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4167 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4168 | else |
| 4169 | echo "configure: failed program was:" >&5 |
| 4170 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4171 | fi |
| 4172 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4173 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4174 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4175 | fi |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4176 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4177 | echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4178 | echo "configure:4179: checking for gettimeofday" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 4179 | if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4180 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4181 | else |
| 4182 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4183 | #line 4184 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4184 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4185 | /* System header to define __stub macros and hopefully few prototypes, |
| 4186 | which can conflict with char gettimeofday(); below. */ |
| 4187 | #include <assert.h> |
| 4188 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4189 | /* We use char because int might match the return type of a gcc2 |
| 4190 | builtin and then its argument prototype would still apply. */ |
| 4191 | char gettimeofday(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4192 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4193 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4194 | |
| 4195 | /* The GNU C library defines this for functions which it implements |
| 4196 | to always fail with ENOSYS. Some functions are actually named |
| 4197 | something starting with __ and the normal name is an alias. */ |
| 4198 | #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) |
| 4199 | choke me |
| 4200 | #else |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 4201 | gettimeofday(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4202 | #endif |
| 4203 | |
| 4204 | ; return 0; } |
| 4205 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4206 | if { (eval echo configure:4207: \"$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] | 4207 | rm -rf conftest* |
| 4208 | eval "ac_cv_func_gettimeofday=yes" |
| 4209 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4210 | echo "configure: failed program was:" >&5 |
| 4211 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4212 | rm -rf conftest* |
| 4213 | eval "ac_cv_func_gettimeofday=no" |
| 4214 | fi |
| 4215 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4216 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4217 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4218 | if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4219 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4220 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4221 | #line 4222 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4222 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4223 | #include <sys/time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4224 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4225 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
| 4226 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4227 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4228 | if { (eval echo configure:4229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4229 | : |
| 4230 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4231 | echo "configure: failed program was:" >&5 |
| 4232 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4233 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4234 | cat >> confdefs.h <<\EOF |
| 4235 | #define GETTIMEOFDAY_NO_TZ 1 |
| 4236 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4237 | |
| 4238 | fi |
| 4239 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4240 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4241 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4242 | fi |
| 4243 | |
| 4244 | |
| 4245 | # checks for structures |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4246 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4247 | echo "configure:4248: checking whether time.h and sys/time.h may both be included" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 4248 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4249 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4250 | else |
| 4251 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4252 | #line 4253 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4253 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4254 | #include <sys/types.h> |
| 4255 | #include <sys/time.h> |
| 4256 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4257 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4258 | struct tm *tp; |
| 4259 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4260 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4261 | if { (eval echo configure:4262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4262 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4263 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4264 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4265 | echo "configure: failed program was:" >&5 |
| 4266 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4267 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4268 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4269 | fi |
| 4270 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4271 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4272 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4273 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4274 | if test $ac_cv_header_time = yes; then |
| 4275 | cat >> confdefs.h <<\EOF |
| 4276 | #define TIME_WITH_SYS_TIME 1 |
| 4277 | EOF |
| 4278 | |
| 4279 | fi |
| 4280 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4281 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4282 | echo "configure:4283: checking whether struct tm is in sys/time.h or time.h" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 4283 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4284 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4285 | else |
| 4286 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4287 | #line 4288 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4288 | #include "confdefs.h" |
| 4289 | #include <sys/types.h> |
| 4290 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4291 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4292 | struct tm *tp; tp->tm_sec; |
| 4293 | ; return 0; } |
| 4294 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4295 | if { (eval echo configure:4296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4296 | rm -rf conftest* |
| 4297 | ac_cv_struct_tm=time.h |
| 4298 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4299 | echo "configure: failed program was:" >&5 |
| 4300 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4301 | rm -rf conftest* |
| 4302 | ac_cv_struct_tm=sys/time.h |
| 4303 | fi |
| 4304 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4305 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4306 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4307 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4308 | if test $ac_cv_struct_tm = sys/time.h; then |
| 4309 | cat >> confdefs.h <<\EOF |
| 4310 | #define TM_IN_SYS_TIME 1 |
| 4311 | EOF |
| 4312 | |
| 4313 | fi |
| 4314 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 4315 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4316 | echo "configure:4317: checking for tm_zone in struct tm" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 4317 | 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] | 4318 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4319 | else |
| 4320 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4321 | #line 4322 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4322 | #include "confdefs.h" |
| 4323 | #include <sys/types.h> |
| 4324 | #include <$ac_cv_struct_tm> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4325 | int main() { |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 4326 | struct tm tm; tm.tm_zone; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4327 | ; return 0; } |
| 4328 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4329 | if { (eval echo configure:4330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4330 | rm -rf conftest* |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 4331 | ac_cv_struct_tm_zone=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4332 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4333 | echo "configure: failed program was:" >&5 |
| 4334 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4335 | rm -rf conftest* |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 4336 | ac_cv_struct_tm_zone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4337 | fi |
| 4338 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4339 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4340 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 4341 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 |
| 4342 | if test "$ac_cv_struct_tm_zone" = yes; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4343 | cat >> confdefs.h <<\EOF |
| 4344 | #define HAVE_TM_ZONE 1 |
| 4345 | EOF |
| 4346 | |
| 4347 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4348 | echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4349 | echo "configure:4350: checking for tzname" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 4350 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4351 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4352 | else |
| 4353 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4354 | #line 4355 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4355 | #include "confdefs.h" |
| 4356 | #include <time.h> |
| 4357 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4358 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4359 | #endif |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4360 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4361 | atoi(*tzname); |
| 4362 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4363 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4364 | if { (eval echo configure:4365: \"$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] | 4365 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4366 | ac_cv_var_tzname=yes |
| 4367 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4368 | echo "configure: failed program was:" >&5 |
| 4369 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4370 | rm -rf conftest* |
| 4371 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4372 | fi |
| 4373 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4374 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4375 | |
| 4376 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4377 | if test $ac_cv_var_tzname = yes; then |
| 4378 | cat >> confdefs.h <<\EOF |
| 4379 | #define HAVE_TZNAME 1 |
| 4380 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4381 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4382 | fi |
| 4383 | fi |
| 4384 | |
| 4385 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4386 | echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4387 | echo "configure:4388: checking for time.h that defines altzone" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 4388 | 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] | 4389 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4390 | else |
| 4391 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4392 | #line 4393 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4393 | #include "confdefs.h" |
| 4394 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4395 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4396 | return altzone; |
| 4397 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4398 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4399 | if { (eval echo configure:4400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4400 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4401 | ac_cv_header_time_altzone=yes |
| 4402 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4403 | echo "configure: failed program was:" >&5 |
| 4404 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4405 | rm -rf conftest* |
| 4406 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4407 | fi |
| 4408 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4409 | fi |
| 4410 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4411 | echo "$ac_t""$ac_cv_header_time_altzone" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4412 | if test $ac_cv_header_time_altzone = yes; then |
| 4413 | cat >> confdefs.h <<\EOF |
| 4414 | #define HAVE_ALTZONE 1 |
| 4415 | EOF |
| 4416 | |
| 4417 | fi |
| 4418 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4419 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4420 | echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4421 | echo "configure:4422: 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] | 4422 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4423 | #line 4424 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4424 | #include "confdefs.h" |
| 4425 | |
| 4426 | #include <sys/types.h> |
| 4427 | #include <sys/select.h> |
| 4428 | #include <sys/time.h> |
| 4429 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4430 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4431 | ; |
| 4432 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4433 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4434 | if { (eval echo configure:4435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4435 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4436 | cat >> confdefs.h <<\EOF |
| 4437 | #define SYS_SELECT_WITH_SYS_TIME 1 |
| 4438 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4439 | was_it_defined=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4440 | else |
| 4441 | echo "configure: failed program was:" >&5 |
| 4442 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4443 | fi |
| 4444 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4445 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4446 | |
| 4447 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4448 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4449 | echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4450 | echo "configure:4451: checking whether char is unsigned" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 4451 | 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] | 4452 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4453 | else |
| 4454 | if test "$GCC" = yes; then |
| 4455 | # GCC predefines this symbol on systems where it applies. |
| 4456 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4457 | #line 4458 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4458 | #include "confdefs.h" |
| 4459 | #ifdef __CHAR_UNSIGNED__ |
| 4460 | yes |
| 4461 | #endif |
| 4462 | |
| 4463 | EOF |
| 4464 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4465 | egrep "yes" >/dev/null 2>&1; then |
| 4466 | rm -rf conftest* |
| 4467 | ac_cv_c_char_unsigned=yes |
| 4468 | else |
| 4469 | rm -rf conftest* |
| 4470 | ac_cv_c_char_unsigned=no |
| 4471 | fi |
| 4472 | rm -f conftest* |
| 4473 | |
| 4474 | else |
| 4475 | if test "$cross_compiling" = yes; then |
| 4476 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 4477 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4478 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4479 | #line 4480 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4480 | #include "confdefs.h" |
| 4481 | /* volatile prevents gcc2 from optimizing the test away on sparcs. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4482 | #if !defined(__STDC__) || __STDC__ != 1 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4483 | #define volatile |
| 4484 | #endif |
| 4485 | main() { |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4486 | volatile char c = 255; exit(c < 0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4487 | } |
| 4488 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4489 | if { (eval echo configure:4490: \"$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] | 4490 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4491 | ac_cv_c_char_unsigned=yes |
| 4492 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4493 | echo "configure: failed program was:" >&5 |
| 4494 | cat conftest.$ac_ext >&5 |
| 4495 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4496 | ac_cv_c_char_unsigned=no |
| 4497 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4498 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4499 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4500 | |
| 4501 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4502 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4503 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4504 | echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4505 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
| 4506 | cat >> confdefs.h <<\EOF |
| 4507 | #define __CHAR_UNSIGNED__ 1 |
| 4508 | EOF |
| 4509 | |
| 4510 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4511 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4512 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4513 | echo "configure:4514: checking for working const" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 4514 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4515 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4516 | else |
| 4517 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4518 | #line 4519 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4519 | #include "confdefs.h" |
| 4520 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4521 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4522 | |
| 4523 | /* Ultrix mips cc rejects this. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4524 | typedef int charset[2]; const charset x; |
| 4525 | /* SunOS 4.1.1 cc rejects this. */ |
| 4526 | char const *const *ccp; |
| 4527 | char **p; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4528 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 4529 | struct point {int x, y;}; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4530 | static struct point const zero = {0,0}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4531 | /* AIX XL C 1.02.0.0 rejects this. |
| 4532 | It does not let you subtract one const X* pointer from another in an arm |
| 4533 | of an if-expression whose if-part is not a constant expression */ |
| 4534 | const char *g = "string"; |
| 4535 | ccp = &g + (g ? g-g : 0); |
| 4536 | /* HPUX 7.0 cc rejects these. */ |
| 4537 | ++ccp; |
| 4538 | p = (char**) ccp; |
| 4539 | ccp = (char const *const *) p; |
| 4540 | { /* SCO 3.2v4 cc rejects this. */ |
| 4541 | char *t; |
| 4542 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 4543 | |
| 4544 | *t++ = 0; |
| 4545 | } |
| 4546 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4547 | int x[] = {25, 17}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4548 | const int *foo = &x[0]; |
| 4549 | ++foo; |
| 4550 | } |
| 4551 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 4552 | typedef const int *iptr; |
| 4553 | iptr p = 0; |
| 4554 | ++p; |
| 4555 | } |
| 4556 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 4557 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 4558 | struct s { int j; const int *ap[3]; }; |
| 4559 | struct s *b; b->j = 5; |
| 4560 | } |
| 4561 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 4562 | const int foo = 10; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4563 | } |
| 4564 | |
| 4565 | ; return 0; } |
| 4566 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4567 | if { (eval echo configure:4568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4568 | rm -rf conftest* |
| 4569 | ac_cv_c_const=yes |
| 4570 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4571 | echo "configure: failed program was:" >&5 |
| 4572 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4573 | rm -rf conftest* |
| 4574 | ac_cv_c_const=no |
| 4575 | fi |
| 4576 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4577 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4578 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4579 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4580 | if test $ac_cv_c_const = no; then |
| 4581 | cat >> confdefs.h <<\EOF |
| 4582 | #define const |
| 4583 | EOF |
| 4584 | |
| 4585 | fi |
| 4586 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4587 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4588 | echo "configure:4589: checking for inline" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 4589 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4590 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4591 | else |
| 4592 | ac_cv_c_inline=no |
| 4593 | for ac_kw in inline __inline__ __inline; do |
| 4594 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4595 | #line 4596 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4596 | #include "confdefs.h" |
| 4597 | |
| 4598 | int main() { |
| 4599 | } $ac_kw foo() { |
| 4600 | ; return 0; } |
| 4601 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4602 | if { (eval echo configure:4603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4603 | rm -rf conftest* |
| 4604 | ac_cv_c_inline=$ac_kw; break |
| 4605 | else |
| 4606 | echo "configure: failed program was:" >&5 |
| 4607 | cat conftest.$ac_ext >&5 |
| 4608 | fi |
| 4609 | rm -f conftest* |
| 4610 | done |
| 4611 | |
| 4612 | fi |
| 4613 | |
| 4614 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
| 4615 | case "$ac_cv_c_inline" in |
| 4616 | inline | yes) ;; |
| 4617 | no) cat >> confdefs.h <<\EOF |
| 4618 | #define inline |
| 4619 | EOF |
| 4620 | ;; |
| 4621 | *) cat >> confdefs.h <<EOF |
| 4622 | #define inline $ac_cv_c_inline |
| 4623 | EOF |
| 4624 | ;; |
| 4625 | esac |
| 4626 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4627 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4628 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4629 | echo $ac_n "checking for working volatile""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4630 | echo "configure:4631: checking for working volatile" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4631 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4632 | #line 4633 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4633 | #include "confdefs.h" |
| 4634 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4635 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4636 | volatile int x; x = 0; |
| 4637 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4638 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4639 | if { (eval echo configure:4640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4640 | rm -rf conftest* |
| 4641 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4642 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4643 | echo "configure: failed program was:" >&5 |
| 4644 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4645 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4646 | cat >> confdefs.h <<\EOF |
| 4647 | #define volatile |
| 4648 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4649 | |
| 4650 | fi |
| 4651 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4652 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4653 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4654 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4655 | echo $ac_n "checking for working signed char""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4656 | echo "configure:4657: checking for working signed char" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4657 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4658 | #line 4659 "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4659 | #include "confdefs.h" |
| 4660 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4661 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4662 | signed char c; |
| 4663 | ; return 0; } |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4664 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4665 | if { (eval echo configure:4666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4666 | rm -rf conftest* |
| 4667 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4668 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4669 | echo "configure: failed program was:" >&5 |
| 4670 | cat conftest.$ac_ext >&5 |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4671 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4672 | cat >> confdefs.h <<\EOF |
| 4673 | #define signed |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4674 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4675 | |
| 4676 | fi |
| 4677 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4678 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4679 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4680 | have_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4681 | echo $ac_n "checking for prototypes""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4682 | echo "configure:4683: checking for prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4683 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4684 | #line 4685 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4685 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4686 | int foo(int x) { return 0; } |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4687 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4688 | return foo(10); |
| 4689 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4690 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4691 | if { (eval echo configure:4692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4692 | rm -rf conftest* |
| 4693 | cat >> confdefs.h <<\EOF |
| 4694 | #define HAVE_PROTOTYPES 1 |
| 4695 | EOF |
| 4696 | have_prototypes=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4697 | else |
| 4698 | echo "configure: failed program was:" >&5 |
| 4699 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4700 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4701 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4702 | echo "$ac_t""$have_prototypes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4703 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4704 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4705 | echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4706 | echo "configure:4707: checking for variable length prototypes and stdarg.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4707 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4708 | #line 4709 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4709 | #include "confdefs.h" |
| 4710 | |
| 4711 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 4712 | int foo(int x, ...) { |
| 4713 | va_list va; |
| 4714 | va_start(va, x); |
| 4715 | va_arg(va, int); |
| 4716 | va_arg(va, char *); |
| 4717 | va_arg(va, double); |
| 4718 | return 0; |
| 4719 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4720 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4721 | int main() { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 4722 | return foo(10, "", 3.14); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4723 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4724 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4725 | if { (eval echo configure:4726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4726 | rm -rf conftest* |
| 4727 | cat >> confdefs.h <<\EOF |
| 4728 | #define HAVE_STDARG_PROTOTYPES 1 |
| 4729 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4730 | works=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4731 | else |
| 4732 | echo "configure: failed program was:" >&5 |
| 4733 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4734 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4735 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4736 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4737 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4738 | if test "$have_prototypes" = yes; then |
| 4739 | bad_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4740 | echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4741 | echo "configure:4742: checking for bad exec* prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4742 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4743 | #line 4744 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4744 | #include "confdefs.h" |
| 4745 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4746 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4747 | char **t;execve("@",t,t); |
| 4748 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4749 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4750 | if { (eval echo configure:4751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4751 | : |
| 4752 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4753 | echo "configure: failed program was:" >&5 |
| 4754 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4755 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4756 | cat >> confdefs.h <<\EOF |
| 4757 | #define BAD_EXEC_PROTOTYPES 1 |
| 4758 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4759 | bad_prototypes=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4760 | fi |
| 4761 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4762 | echo "$ac_t""$bad_prototypes" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4763 | fi |
| 4764 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4765 | bad_forward=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4766 | echo $ac_n "checking for bad static forward""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4767 | echo "configure:4768: checking for bad static forward" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4768 | if test "$cross_compiling" = yes; then |
| 4769 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 4770 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4771 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4772 | #line 4773 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4773 | #include "confdefs.h" |
| 4774 | |
| 4775 | struct s { int a; int b; }; |
| 4776 | static struct s foo; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4777 | int foobar() { |
| 4778 | static int random; |
| 4779 | random = (int) &foo; |
| 4780 | return random; |
| 4781 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4782 | static struct s foo = { 1, 2 }; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4783 | main() { |
| 4784 | exit(!((int)&foo == foobar())); |
| 4785 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4786 | |
| 4787 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4788 | if { (eval echo configure:4789: \"$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] | 4789 | then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4790 | : |
| 4791 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4792 | echo "configure: failed program was:" >&5 |
| 4793 | cat conftest.$ac_ext >&5 |
| 4794 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4795 | cat >> confdefs.h <<\EOF |
| 4796 | #define BAD_STATIC_FORWARD 1 |
| 4797 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4798 | bad_forward=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4799 | fi |
| 4800 | rm -fr conftest* |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4801 | fi |
| 4802 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4803 | echo "$ac_t""$bad_forward" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4804 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4805 | va_list_is_array=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4806 | echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4807 | echo "configure:4808: checking whether va_list is an array" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4808 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4809 | #line 4810 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4810 | #include "confdefs.h" |
| 4811 | |
| 4812 | #ifdef HAVE_STDARG_PROTOTYPES |
| 4813 | #include <stdarg.h> |
| 4814 | #else |
| 4815 | #include <varargs.h> |
| 4816 | #endif |
| 4817 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4818 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4819 | va_list list1, list2; list1 = list2; |
| 4820 | ; return 0; } |
| 4821 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4822 | if { (eval echo configure:4823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4823 | : |
| 4824 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4825 | echo "configure: failed program was:" >&5 |
| 4826 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4827 | rm -rf conftest* |
| 4828 | cat >> confdefs.h <<\EOF |
| 4829 | #define VA_LIST_IS_ARRAY 1 |
| 4830 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4831 | va_list_is_array=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4832 | fi |
| 4833 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4834 | echo "$ac_t""$va_list_is_array" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4835 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4836 | # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( |
| 4837 | echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4838 | echo "configure:4839: checking for gethostbyname_r" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 4839 | 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] | 4840 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4841 | else |
| 4842 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4843 | #line 4844 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4844 | #include "confdefs.h" |
| 4845 | /* System header to define __stub macros and hopefully few prototypes, |
| 4846 | which can conflict with char gethostbyname_r(); below. */ |
| 4847 | #include <assert.h> |
| 4848 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4849 | /* We use char because int might match the return type of a gcc2 |
| 4850 | builtin and then its argument prototype would still apply. */ |
| 4851 | char gethostbyname_r(); |
| 4852 | |
| 4853 | int main() { |
| 4854 | |
| 4855 | /* The GNU C library defines this for functions which it implements |
| 4856 | to always fail with ENOSYS. Some functions are actually named |
| 4857 | something starting with __ and the normal name is an alias. */ |
| 4858 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 4859 | choke me |
| 4860 | #else |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 4861 | gethostbyname_r(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4862 | #endif |
| 4863 | |
| 4864 | ; return 0; } |
| 4865 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4866 | if { (eval echo configure:4867: \"$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] | 4867 | rm -rf conftest* |
| 4868 | eval "ac_cv_func_gethostbyname_r=yes" |
| 4869 | else |
| 4870 | echo "configure: failed program was:" >&5 |
| 4871 | cat conftest.$ac_ext >&5 |
| 4872 | rm -rf conftest* |
| 4873 | eval "ac_cv_func_gethostbyname_r=no" |
| 4874 | fi |
| 4875 | rm -f conftest* |
| 4876 | fi |
| 4877 | |
| 4878 | if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then |
| 4879 | echo "$ac_t""yes" 1>&6 |
| 4880 | |
| 4881 | cat >> confdefs.h <<\EOF |
| 4882 | #define HAVE_GETHOSTBYNAME_R 1 |
| 4883 | EOF |
| 4884 | |
| 4885 | echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4886 | echo "configure:4887: checking gethostbyname_r with 6 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4887 | OLD_CFLAGS=$CFLAGS |
| 4888 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
| 4889 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4890 | #line 4891 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4891 | #include "confdefs.h" |
| 4892 | |
| 4893 | # include <netdb.h> |
| 4894 | |
| 4895 | int main() { |
| 4896 | |
| 4897 | char *name; |
| 4898 | struct hostent *he, *res; |
| 4899 | char buffer[2048]; |
| 4900 | int buflen = 2048; |
| 4901 | int h_errnop; |
| 4902 | |
| 4903 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
| 4904 | |
| 4905 | ; return 0; } |
| 4906 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4907 | if { (eval echo configure:4908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4908 | rm -rf conftest* |
| 4909 | |
| 4910 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 4911 | #define HAVE_GETHOSTBYNAME_R 1 |
| 4912 | EOF |
| 4913 | |
| 4914 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4915 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
| 4916 | EOF |
| 4917 | |
| 4918 | echo "$ac_t""yes" 1>&6 |
| 4919 | |
| 4920 | else |
| 4921 | echo "configure: failed program was:" >&5 |
| 4922 | cat conftest.$ac_ext >&5 |
| 4923 | rm -rf conftest* |
| 4924 | |
| 4925 | echo "$ac_t""no" 1>&6 |
| 4926 | echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4927 | echo "configure:4928: checking gethostbyname_r with 5 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4928 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4929 | #line 4930 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4930 | #include "confdefs.h" |
| 4931 | |
| 4932 | # include <netdb.h> |
| 4933 | |
| 4934 | int main() { |
| 4935 | |
| 4936 | char *name; |
| 4937 | struct hostent *he; |
| 4938 | char buffer[2048]; |
| 4939 | int buflen = 2048; |
| 4940 | int h_errnop; |
| 4941 | |
| 4942 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
| 4943 | |
| 4944 | ; return 0; } |
| 4945 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4946 | if { (eval echo configure:4947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4947 | rm -rf conftest* |
| 4948 | |
| 4949 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 4950 | #define HAVE_GETHOSTBYNAME_R 1 |
| 4951 | EOF |
| 4952 | |
| 4953 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4954 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
| 4955 | EOF |
| 4956 | |
| 4957 | echo "$ac_t""yes" 1>&6 |
| 4958 | |
| 4959 | else |
| 4960 | echo "configure: failed program was:" >&5 |
| 4961 | cat conftest.$ac_ext >&5 |
| 4962 | rm -rf conftest* |
| 4963 | |
| 4964 | echo "$ac_t""no" 1>&6 |
| 4965 | echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4966 | echo "configure:4967: checking gethostbyname_r with 3 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4967 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4968 | #line 4969 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4969 | #include "confdefs.h" |
| 4970 | |
| 4971 | # include <netdb.h> |
| 4972 | |
| 4973 | int main() { |
| 4974 | |
| 4975 | char *name; |
| 4976 | struct hostent *he; |
| 4977 | struct hostent_data data; |
| 4978 | |
| 4979 | (void) gethostbyname_r(name, he, &data); |
| 4980 | |
| 4981 | ; return 0; } |
| 4982 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 4983 | if { (eval echo configure:4984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4984 | rm -rf conftest* |
| 4985 | |
| 4986 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 4987 | #define HAVE_GETHOSTBYNAME_R 1 |
| 4988 | EOF |
| 4989 | |
| 4990 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4991 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
| 4992 | EOF |
| 4993 | |
| 4994 | echo "$ac_t""yes" 1>&6 |
| 4995 | |
| 4996 | else |
| 4997 | echo "configure: failed program was:" >&5 |
| 4998 | cat conftest.$ac_ext >&5 |
| 4999 | rm -rf conftest* |
| 5000 | |
| 5001 | echo "$ac_t""no" 1>&6 |
| 5002 | |
| 5003 | fi |
| 5004 | rm -f conftest* |
| 5005 | |
| 5006 | fi |
| 5007 | rm -f conftest* |
| 5008 | |
| 5009 | fi |
| 5010 | rm -f conftest* |
| 5011 | CFLAGS=$OLD_CFLAGS |
| 5012 | |
| 5013 | else |
| 5014 | echo "$ac_t""no" 1>&6 |
| 5015 | |
| 5016 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5017 | echo "configure:5018: checking for gethostbyname" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 5018 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5019 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5020 | else |
| 5021 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5022 | #line 5023 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5023 | #include "confdefs.h" |
| 5024 | /* System header to define __stub macros and hopefully few prototypes, |
| 5025 | which can conflict with char gethostbyname(); below. */ |
| 5026 | #include <assert.h> |
| 5027 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5028 | /* We use char because int might match the return type of a gcc2 |
| 5029 | builtin and then its argument prototype would still apply. */ |
| 5030 | char gethostbyname(); |
| 5031 | |
| 5032 | int main() { |
| 5033 | |
| 5034 | /* The GNU C library defines this for functions which it implements |
| 5035 | to always fail with ENOSYS. Some functions are actually named |
| 5036 | something starting with __ and the normal name is an alias. */ |
| 5037 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 5038 | choke me |
| 5039 | #else |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 5040 | gethostbyname(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5041 | #endif |
| 5042 | |
| 5043 | ; return 0; } |
| 5044 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5045 | if { (eval echo configure:5046: \"$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] | 5046 | rm -rf conftest* |
| 5047 | eval "ac_cv_func_gethostbyname=yes" |
| 5048 | else |
| 5049 | echo "configure: failed program was:" >&5 |
| 5050 | cat conftest.$ac_ext >&5 |
| 5051 | rm -rf conftest* |
| 5052 | eval "ac_cv_func_gethostbyname=no" |
| 5053 | fi |
| 5054 | rm -f conftest* |
| 5055 | fi |
| 5056 | |
| 5057 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
| 5058 | echo "$ac_t""yes" 1>&6 |
| 5059 | cat >> confdefs.h <<\EOF |
| 5060 | #define HAVE_GETHOSTBYNAME 1 |
| 5061 | EOF |
| 5062 | |
| 5063 | else |
| 5064 | echo "$ac_t""no" 1>&6 |
| 5065 | fi |
| 5066 | |
| 5067 | |
| 5068 | fi |
| 5069 | |
| 5070 | |
| 5071 | |
| 5072 | |
| 5073 | |
| 5074 | |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5075 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5076 | # checks for system services |
| 5077 | # (none yet) |
| 5078 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5079 | # Linux requires this for correct f.p. operations |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5080 | echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5081 | echo "configure:5082: checking for __fpu_control in -lieee" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5082 | ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'` |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 5083 | 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] | 5084 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5085 | else |
| 5086 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5087 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5088 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5089 | #line 5090 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5090 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5091 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5092 | /* We use char because int might match the return type of a gcc2 |
| 5093 | builtin and then its argument prototype would still apply. */ |
| 5094 | char __fpu_control(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5095 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5096 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5097 | __fpu_control() |
| 5098 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5099 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5100 | if { (eval echo configure:5101: \"$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] | 5101 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5102 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5103 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5104 | echo "configure: failed program was:" >&5 |
| 5105 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5106 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5107 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5108 | fi |
| 5109 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5110 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5111 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5112 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5113 | 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] | 5114 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5115 | ac_tr_lib=HAVE_LIB`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 5116 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5117 | cat >> confdefs.h <<EOF |
| 5118 | #define $ac_tr_lib 1 |
| 5119 | EOF |
| 5120 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5121 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5122 | |
| 5123 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5124 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5125 | fi |
| 5126 | |
| 5127 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5128 | # Check for --with-fpectl |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5129 | echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5130 | echo "configure:5131: checking for --with-fpectl" >&5 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5131 | # Check whether --with-fpectl or --without-fpectl was given. |
| 5132 | if test "${with_fpectl+set}" = set; then |
| 5133 | withval="$with_fpectl" |
| 5134 | |
| 5135 | if test "$withval" != no |
| 5136 | then cat >> confdefs.h <<\EOF |
| 5137 | #define WANT_SIGFPE_HANDLER 1 |
| 5138 | EOF |
| 5139 | echo "$ac_t""yes" 1>&6 |
| 5140 | else echo "$ac_t""no" 1>&6 |
| 5141 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5142 | else |
| 5143 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5144 | fi |
| 5145 | |
| 5146 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5147 | # check for --with-libm=... |
| 5148 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 5149 | case $ac_sys_system in |
| 5150 | next) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 5151 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 5152 | *) LIBM=-lm |
| 5153 | esac |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5154 | echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5155 | echo "configure:5156: checking for --with-libm=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5156 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5157 | if test "${with_libm+set}" = set; then |
| 5158 | withval="$with_libm" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5159 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5160 | if test "$withval" = no |
| 5161 | then LIBM= |
| 5162 | echo "$ac_t""force LIBM empty" 1>&6 |
| 5163 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5164 | then LIBM=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5165 | echo "$ac_t""set LIBM=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5166 | 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] | 5167 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5168 | else |
| 5169 | echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5170 | fi |
| 5171 | |
| 5172 | |
| 5173 | # check for --with-libc=... |
| 5174 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5175 | echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5176 | echo "configure:5177: checking for --with-libc=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5177 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5178 | if test "${with_libc+set}" = set; then |
| 5179 | withval="$with_libc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5180 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5181 | if test "$withval" = no |
| 5182 | then LIBC= |
| 5183 | echo "$ac_t""force LIBC empty" 1>&6 |
| 5184 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5185 | then LIBC=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5186 | echo "$ac_t""set LIBC=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5187 | 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] | 5188 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5189 | else |
| 5190 | echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5191 | fi |
| 5192 | |
| 5193 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5194 | # check for hypot() in math library |
| 5195 | LIBS_SAVE=$LIBS |
| 5196 | LIBS="$LIBS $LIBM" |
| 5197 | for ac_func in hypot |
| 5198 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5199 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5200 | echo "configure:5201: checking for $ac_func" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +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 | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5203 | else |
| 5204 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5205 | #line 5206 "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +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, |
| 5208 | which can conflict with char $ac_func(); below. */ |
| 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. */ |
| 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 | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5216 | |
| 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. */ |
| 5220 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5221 | choke me |
| 5222 | #else |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 5223 | $ac_func(); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5224 | #endif |
| 5225 | |
| 5226 | ; return 0; } |
| 5227 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +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 | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5229 | rm -rf conftest* |
| 5230 | eval "ac_cv_func_$ac_func=yes" |
| 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 | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5234 | rm -rf conftest* |
| 5235 | eval "ac_cv_func_$ac_func=no" |
| 5236 | fi |
| 5237 | rm -f conftest* |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5238 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5239 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +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 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5242 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5243 | cat >> confdefs.h <<EOF |
| 5244 | #define $ac_tr_func 1 |
| 5245 | EOF |
| 5246 | |
| 5247 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5248 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5249 | fi |
| 5250 | done |
| 5251 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5252 | for ac_func in hypot |
| 5253 | do |
| 5254 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5255 | echo "configure:5256: checking for $ac_func" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 5256 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5257 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5258 | else |
| 5259 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5260 | #line 5261 "configure" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5261 | #include "confdefs.h" |
| 5262 | /* System header to define __stub macros and hopefully few prototypes, |
| 5263 | which can conflict with char $ac_func(); below. */ |
| 5264 | #include <assert.h> |
| 5265 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5266 | /* We use char because int might match the return type of a gcc2 |
| 5267 | builtin and then its argument prototype would still apply. */ |
| 5268 | char $ac_func(); |
| 5269 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5270 | int main() { |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5271 | |
| 5272 | /* The GNU C library defines this for functions which it implements |
| 5273 | to always fail with ENOSYS. Some functions are actually named |
| 5274 | something starting with __ and the normal name is an alias. */ |
| 5275 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5276 | choke me |
| 5277 | #else |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 5278 | $ac_func(); |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5279 | #endif |
| 5280 | |
| 5281 | ; return 0; } |
| 5282 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5283 | if { (eval echo configure:5284: \"$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] | 5284 | rm -rf conftest* |
| 5285 | eval "ac_cv_func_$ac_func=yes" |
| 5286 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5287 | echo "configure: failed program was:" >&5 |
| 5288 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5289 | rm -rf conftest* |
| 5290 | eval "ac_cv_func_$ac_func=no" |
| 5291 | fi |
| 5292 | rm -f conftest* |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5293 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5294 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5295 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5296 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5297 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5298 | cat >> confdefs.h <<EOF |
| 5299 | #define $ac_tr_func 1 |
| 5300 | EOF |
| 5301 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5302 | else |
| 5303 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5304 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5305 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5306 | done |
| 5307 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5308 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5309 | LIBS=$LIBS_SAVE |
| 5310 | |
Guido van Rossum | a28518a | 2000-05-11 18:41:32 +0000 | [diff] [blame] | 5311 | # check for rint() in math library |
| 5312 | LIBS_SAVE=$LIBS |
| 5313 | LIBS="$LIBS $LIBM" |
| 5314 | for ac_func in rint |
| 5315 | do |
| 5316 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5317 | echo "configure:5318: checking for $ac_func" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 5318 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
Guido van Rossum | a28518a | 2000-05-11 18:41:32 +0000 | [diff] [blame] | 5319 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5320 | else |
| 5321 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5322 | #line 5323 "configure" |
Guido van Rossum | a28518a | 2000-05-11 18:41:32 +0000 | [diff] [blame] | 5323 | #include "confdefs.h" |
| 5324 | /* System header to define __stub macros and hopefully few prototypes, |
| 5325 | which can conflict with char $ac_func(); below. */ |
| 5326 | #include <assert.h> |
| 5327 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5328 | /* We use char because int might match the return type of a gcc2 |
| 5329 | builtin and then its argument prototype would still apply. */ |
| 5330 | char $ac_func(); |
| 5331 | |
| 5332 | int main() { |
| 5333 | |
| 5334 | /* The GNU C library defines this for functions which it implements |
| 5335 | to always fail with ENOSYS. Some functions are actually named |
| 5336 | something starting with __ and the normal name is an alias. */ |
| 5337 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5338 | choke me |
| 5339 | #else |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 5340 | $ac_func(); |
Guido van Rossum | a28518a | 2000-05-11 18:41:32 +0000 | [diff] [blame] | 5341 | #endif |
| 5342 | |
| 5343 | ; return 0; } |
| 5344 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5345 | if { (eval echo configure:5346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | a28518a | 2000-05-11 18:41:32 +0000 | [diff] [blame] | 5346 | rm -rf conftest* |
| 5347 | eval "ac_cv_func_$ac_func=yes" |
| 5348 | else |
| 5349 | echo "configure: failed program was:" >&5 |
| 5350 | cat conftest.$ac_ext >&5 |
| 5351 | rm -rf conftest* |
| 5352 | eval "ac_cv_func_$ac_func=no" |
| 5353 | fi |
| 5354 | rm -f conftest* |
| 5355 | fi |
| 5356 | |
| 5357 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5358 | echo "$ac_t""yes" 1>&6 |
| 5359 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5360 | cat >> confdefs.h <<EOF |
| 5361 | #define $ac_tr_func 1 |
| 5362 | EOF |
| 5363 | |
| 5364 | else |
| 5365 | echo "$ac_t""no" 1>&6 |
| 5366 | fi |
| 5367 | done |
| 5368 | |
| 5369 | LIBS=$LIBS_SAVE |
| 5370 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5371 | # check for getopt |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5372 | echo $ac_n "checking for genuine getopt""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5373 | echo "configure:5374: checking for genuine getopt" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 5374 | if eval "test \"`echo '$''{'ac_cv_func_getopt'+set}'`\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5375 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5376 | else |
| 5377 | if test "$cross_compiling" = yes; then |
| 5378 | ac_cv_func_getopt=no |
| 5379 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5380 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5381 | #line 5382 "configure" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5382 | #include "confdefs.h" |
| 5383 | #include <stdio.h> |
| 5384 | extern int optind, opterr, getopt(); |
| 5385 | extern char* optarg; |
| 5386 | int main() { |
| 5387 | char* av[] = { "testprog", "parameter", "-fFlag", NULL }; |
| 5388 | opterr = 0; |
| 5389 | if (getopt(3, av, "f:") == 'f') { exit(1); } |
| 5390 | exit(0); |
| 5391 | } |
| 5392 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5393 | if { (eval echo configure:5394: \"$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] | 5394 | then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5395 | ac_cv_func_getopt=yes |
| 5396 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5397 | echo "configure: failed program was:" >&5 |
| 5398 | cat conftest.$ac_ext >&5 |
| 5399 | rm -fr conftest* |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5400 | ac_cv_func_getopt=no |
| 5401 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5402 | rm -fr conftest* |
| 5403 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5404 | |
| 5405 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5406 | echo "$ac_t""$ac_cv_func_getopt" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5407 | test $ac_cv_func_getopt = no && LIBOBJS="$LIBOBJS getopt.o" |
| 5408 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5409 | # check whether malloc(0) returns NULL or not |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5410 | echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5411 | echo "configure:5412: checking what malloc(0) returns" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 5412 | if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5413 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5414 | else |
| 5415 | if test "$cross_compiling" = yes; then |
| 5416 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5417 | else |
| 5418 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5419 | #line 5420 "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5420 | #include "confdefs.h" |
| 5421 | #include <stdio.h> |
| 5422 | #ifdef HAVE_STDLIB |
| 5423 | #include <stdlib.h> |
| 5424 | #else |
| 5425 | char *malloc(), *realloc(); |
| 5426 | int *free(); |
| 5427 | #endif |
| 5428 | main() { |
| 5429 | char *p; |
| 5430 | p = malloc(0); |
| 5431 | if (p == NULL) exit(1); |
| 5432 | p = realloc(p, 0); |
| 5433 | if (p == NULL) exit(1); |
| 5434 | free(p); |
| 5435 | exit(0); |
| 5436 | } |
| 5437 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5438 | if { (eval echo configure:5439: \"$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] | 5439 | then |
| 5440 | ac_cv_malloc_zero=nonnull |
| 5441 | else |
| 5442 | echo "configure: failed program was:" >&5 |
| 5443 | cat conftest.$ac_ext >&5 |
| 5444 | rm -fr conftest* |
| 5445 | ac_cv_malloc_zero=null |
| 5446 | fi |
| 5447 | rm -fr conftest* |
| 5448 | fi |
| 5449 | |
| 5450 | fi |
| 5451 | |
| 5452 | echo "$ac_t""$ac_cv_malloc_zero" 1>&6 |
| 5453 | if test "$ac_cv_malloc_zero" = null |
| 5454 | then |
| 5455 | cat >> confdefs.h <<\EOF |
| 5456 | #define MALLOC_ZERO_RETURNS_NULL 1 |
| 5457 | EOF |
| 5458 | |
| 5459 | fi |
| 5460 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5461 | # check for wchar.h |
| 5462 | ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'` |
| 5463 | echo $ac_n "checking for wchar.h""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5464 | echo "configure:5465: checking for wchar.h" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 5465 | 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] | 5466 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5467 | else |
| 5468 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5469 | #line 5470 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5470 | #include "confdefs.h" |
| 5471 | #include <wchar.h> |
| 5472 | EOF |
| 5473 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5474 | { (eval echo configure:5475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5475 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5476 | if test -z "$ac_err"; then |
| 5477 | rm -rf conftest* |
| 5478 | eval "ac_cv_header_$ac_safe=yes" |
| 5479 | else |
| 5480 | echo "$ac_err" >&5 |
| 5481 | echo "configure: failed program was:" >&5 |
| 5482 | cat conftest.$ac_ext >&5 |
| 5483 | rm -rf conftest* |
| 5484 | eval "ac_cv_header_$ac_safe=no" |
| 5485 | fi |
| 5486 | rm -f conftest* |
| 5487 | fi |
| 5488 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5489 | echo "$ac_t""yes" 1>&6 |
| 5490 | cat >> confdefs.h <<\EOF |
| 5491 | #define HAVE_WCHAR_H 1 |
| 5492 | EOF |
| 5493 | wchar_h="yes" |
| 5494 | else |
| 5495 | echo "$ac_t""no" 1>&6 |
| 5496 | wchar_h="no" |
| 5497 | |
| 5498 | fi |
| 5499 | |
| 5500 | |
| 5501 | # check for usable wchar_t |
| 5502 | usable_wchar_t="unkown" |
| 5503 | echo $ac_n "checking for usable wchar_t""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5504 | echo "configure:5505: checking for usable wchar_t" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5505 | if test "$cross_compiling" = yes; then |
| 5506 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5507 | else |
| 5508 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5509 | #line 5510 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5510 | #include "confdefs.h" |
| 5511 | |
| 5512 | #include "wchar.h" |
| 5513 | #include "wctype.h" |
| 5514 | main() { |
| 5515 | wchar_t s; |
| 5516 | if (sizeof(s) == 2) |
| 5517 | exit(0); |
| 5518 | else |
| 5519 | exit(1); |
| 5520 | } |
| 5521 | |
| 5522 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5523 | if { (eval echo configure:5524: \"$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] | 5524 | then |
| 5525 | cat >> confdefs.h <<\EOF |
| 5526 | #define HAVE_USABLE_WCHAR_T 1 |
| 5527 | EOF |
| 5528 | usable_wchar_t="yes" |
| 5529 | else |
| 5530 | echo "configure: failed program was:" >&5 |
| 5531 | cat conftest.$ac_ext >&5 |
| 5532 | rm -fr conftest* |
| 5533 | usable_wchar_t="no" |
| 5534 | fi |
| 5535 | rm -fr conftest* |
| 5536 | fi |
| 5537 | |
| 5538 | echo "$ac_t""$usable_wchar_t" 1>&6 |
| 5539 | |
| 5540 | # check for endianness |
| 5541 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5542 | echo "configure:5543: checking whether byte ordering is bigendian" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 5543 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5544 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5545 | else |
| 5546 | ac_cv_c_bigendian=unknown |
| 5547 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 5548 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5549 | #line 5550 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5550 | #include "confdefs.h" |
| 5551 | #include <sys/types.h> |
| 5552 | #include <sys/param.h> |
| 5553 | int main() { |
| 5554 | |
| 5555 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 5556 | bogus endian macros |
| 5557 | #endif |
| 5558 | ; return 0; } |
| 5559 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5560 | if { (eval echo configure:5561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5561 | rm -rf conftest* |
| 5562 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 5563 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5564 | #line 5565 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5565 | #include "confdefs.h" |
| 5566 | #include <sys/types.h> |
| 5567 | #include <sys/param.h> |
| 5568 | int main() { |
| 5569 | |
| 5570 | #if BYTE_ORDER != BIG_ENDIAN |
| 5571 | not big endian |
| 5572 | #endif |
| 5573 | ; return 0; } |
| 5574 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5575 | if { (eval echo configure:5576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5576 | rm -rf conftest* |
| 5577 | ac_cv_c_bigendian=yes |
| 5578 | else |
| 5579 | echo "configure: failed program was:" >&5 |
| 5580 | cat conftest.$ac_ext >&5 |
| 5581 | rm -rf conftest* |
| 5582 | ac_cv_c_bigendian=no |
| 5583 | fi |
| 5584 | rm -f conftest* |
| 5585 | else |
| 5586 | echo "configure: failed program was:" >&5 |
| 5587 | cat conftest.$ac_ext >&5 |
| 5588 | fi |
| 5589 | rm -f conftest* |
| 5590 | if test $ac_cv_c_bigendian = unknown; then |
| 5591 | if test "$cross_compiling" = yes; then |
| 5592 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5593 | else |
| 5594 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5595 | #line 5596 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5596 | #include "confdefs.h" |
| 5597 | main () { |
| 5598 | /* Are we little or big endian? From Harbison&Steele. */ |
| 5599 | union |
| 5600 | { |
| 5601 | long l; |
| 5602 | char c[sizeof (long)]; |
| 5603 | } u; |
| 5604 | u.l = 1; |
| 5605 | exit (u.c[sizeof (long) - 1] == 1); |
| 5606 | } |
| 5607 | EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5608 | if { (eval echo configure:5609: \"$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] | 5609 | then |
| 5610 | ac_cv_c_bigendian=no |
| 5611 | else |
| 5612 | echo "configure: failed program was:" >&5 |
| 5613 | cat conftest.$ac_ext >&5 |
| 5614 | rm -fr conftest* |
| 5615 | ac_cv_c_bigendian=yes |
| 5616 | fi |
| 5617 | rm -fr conftest* |
| 5618 | fi |
| 5619 | |
| 5620 | fi |
| 5621 | fi |
| 5622 | |
| 5623 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
| 5624 | if test $ac_cv_c_bigendian = yes; then |
| 5625 | cat >> confdefs.h <<\EOF |
| 5626 | #define WORDS_BIGENDIAN 1 |
| 5627 | EOF |
| 5628 | |
| 5629 | fi |
| 5630 | |
| 5631 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5632 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! |
| 5633 | # Add sys/socket.h to confdefs.h |
| 5634 | cat >> confdefs.h <<\EOF |
| 5635 | #ifdef HAVE_SYS_SOCKET_H |
| 5636 | #include <sys/socket.h> |
| 5637 | #endif |
| 5638 | EOF |
| 5639 | echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5640 | echo "configure:5641: checking for socklen_t" >&5 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 5641 | 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] | 5642 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5643 | else |
| 5644 | cat > conftest.$ac_ext <<EOF |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 5645 | #line 5646 "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5646 | #include "confdefs.h" |
| 5647 | #include <sys/types.h> |
| 5648 | #if STDC_HEADERS |
| 5649 | #include <stdlib.h> |
| 5650 | #include <stddef.h> |
| 5651 | #endif |
| 5652 | EOF |
| 5653 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5654 | egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 5655 | rm -rf conftest* |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 5656 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5657 | else |
| 5658 | rm -rf conftest* |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 5659 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5660 | fi |
| 5661 | rm -f conftest* |
| 5662 | |
| 5663 | fi |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 5664 | echo "$ac_t""$ac_cv_type_socklen_t" 1>&6 |
| 5665 | if test $ac_cv_type_socklen_t = no; then |
| 5666 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5667 | #define socklen_t int |
| 5668 | EOF |
| 5669 | |
| 5670 | fi |
| 5671 | |
| 5672 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5673 | # generate output files |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5674 | trap '' 1 2 15 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5675 | cat > confcache <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5676 | # This file is a shell script that caches the results of configure |
| 5677 | # tests run on this system so they can be shared between configure |
| 5678 | # scripts and configure runs. It is not useful on other systems. |
| 5679 | # If it contains results you don't want to keep, you may remove or edit it. |
| 5680 | # |
| 5681 | # By default, configure uses ./config.cache as the cache file, |
| 5682 | # creating it if it does not exist already. You can give configure |
| 5683 | # the --cache-file=FILE option to use a different cache file; that is |
| 5684 | # what configure does when it calls configure scripts in |
| 5685 | # subdirectories, so they share the cache. |
| 5686 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 5687 | # config.status only pays attention to the cache file if you give it the |
| 5688 | # --recheck option to rerun configure. |
| 5689 | # |
| 5690 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5691 | # The following way of writing the cache mishandles newlines in values, |
| 5692 | # but we know of no workaround that is simple, portable, and efficient. |
| 5693 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5694 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 5695 | # 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] | 5696 | (set) 2>&1 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5697 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5698 | *ac_space=\ *) |
| 5699 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 5700 | # turns \\\\ into \\, and sed turns \\ into \). |
| 5701 | sed -n \ |
| 5702 | -e "s/'/'\\\\''/g" \ |
| 5703 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 5704 | ;; |
| 5705 | *) |
| 5706 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 5707 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 5708 | ;; |
| 5709 | esac >> confcache |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5710 | if cmp -s $cache_file confcache; then |
| 5711 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5712 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5713 | if test -w $cache_file; then |
| 5714 | echo "updating cache $cache_file" |
| 5715 | cat confcache > $cache_file |
| 5716 | else |
| 5717 | echo "not updating unwritable cache $cache_file" |
| 5718 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5719 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5720 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 5721 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5722 | 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] | 5723 | |
| 5724 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 5725 | # Let make expand exec_prefix. |
| 5726 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 5727 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5728 | # Any assignment to VPATH causes Sun make to only execute |
| 5729 | # the first set of double-colon rules, so remove it if not needed. |
| 5730 | # If there is a colon in the path, we need to keep it. |
| 5731 | if test "x$srcdir" = x.; then |
| 5732 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 5733 | fi |
| 5734 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5735 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5736 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5737 | DEFS=-DHAVE_CONFIG_H |
| 5738 | |
| 5739 | # Without the "./", some shells look in PATH for config.status. |
| 5740 | : ${CONFIG_STATUS=./config.status} |
| 5741 | |
| 5742 | echo creating $CONFIG_STATUS |
| 5743 | rm -f $CONFIG_STATUS |
| 5744 | cat > $CONFIG_STATUS <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5745 | #! /bin/sh |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5746 | # Generated automatically by configure. |
| 5747 | # Run this file to recreate the current configuration. |
| 5748 | # This directory was configured as follows, |
| 5749 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 5750 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5751 | # $0 $ac_configure_args |
| 5752 | # |
| 5753 | # Compiler output produced by configure, useful for debugging |
| 5754 | # configure, is in ./config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5755 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5756 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5757 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5758 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5759 | case "\$ac_option" in |
| 5760 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5761 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 5762 | 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] | 5763 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 5764 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5765 | exit 0 ;; |
| 5766 | -help | --help | --hel | --he | --h) |
| 5767 | echo "\$ac_cs_usage"; exit 0 ;; |
| 5768 | *) echo "\$ac_cs_usage"; exit 1 ;; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5769 | esac |
| 5770 | done |
| 5771 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5772 | ac_given_srcdir=$srcdir |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5773 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 5774 | trap 'rm -fr `echo "Makefile \ |
| 5775 | Objects/Makefile \ |
| 5776 | Parser/Makefile \ |
| 5777 | Python/Makefile \ |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 5778 | Modules/Makefile.pre \ |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 5779 | Modules/Setup.config config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5780 | EOF |
| 5781 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5782 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5783 | # Protect against being on the right side of a sed subst in config.status. |
| 5784 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 5785 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5786 | $ac_vpsub |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5787 | $extrasub |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5788 | s%@SHELL@%$SHELL%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5789 | s%@CFLAGS@%$CFLAGS%g |
| 5790 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 5791 | s%@CXXFLAGS@%$CXXFLAGS%g |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5792 | s%@FFLAGS@%$FFLAGS%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5793 | s%@DEFS@%$DEFS%g |
| 5794 | s%@LDFLAGS@%$LDFLAGS%g |
| 5795 | s%@LIBS@%$LIBS%g |
| 5796 | s%@exec_prefix@%$exec_prefix%g |
| 5797 | s%@prefix@%$prefix%g |
| 5798 | s%@program_transform_name@%$program_transform_name%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5799 | s%@bindir@%$bindir%g |
| 5800 | s%@sbindir@%$sbindir%g |
| 5801 | s%@libexecdir@%$libexecdir%g |
| 5802 | s%@datadir@%$datadir%g |
| 5803 | s%@sysconfdir@%$sysconfdir%g |
| 5804 | s%@sharedstatedir@%$sharedstatedir%g |
| 5805 | s%@localstatedir@%$localstatedir%g |
| 5806 | s%@libdir@%$libdir%g |
| 5807 | s%@includedir@%$includedir%g |
| 5808 | s%@oldincludedir@%$oldincludedir%g |
| 5809 | s%@infodir@%$infodir%g |
| 5810 | s%@mandir@%$mandir%g |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 5811 | s%@VERSION@%$VERSION%g |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 5812 | s%@MACHDEP@%$MACHDEP%g |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 5813 | s%@SGI_ABI@%$SGI_ABI%g |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 5814 | s%@SET_CXX@%$SET_CXX%g |
| 5815 | s%@MAINOBJ@%$MAINOBJ%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5816 | s%@CC@%$CC%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 5817 | s%@MAKE_LDLIBRARY@%$MAKE_LDLIBRARY%g |
| 5818 | s%@LDLIBRARY@%$LDLIBRARY%g |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 5819 | s%@LINKCC@%$LINKCC%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5820 | s%@RANLIB@%$RANLIB%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5821 | s%@AR@%$AR%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 5822 | s%@INSTALL@%$INSTALL%g |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5823 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 5824 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 5825 | s%@LN@%$LN%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 5826 | s%@OPT@%$OPT%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5827 | s%@CPP@%$CPP%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 5828 | s%@LIBTOOL_CRUFT@%$LIBTOOL_CRUFT%g |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 5829 | s%@SO@%$SO%g |
| 5830 | s%@LDSHARED@%$LDSHARED%g |
| 5831 | s%@CCSHARED@%$CCSHARED%g |
| 5832 | s%@LINKFORSHARED@%$LINKFORSHARED%g |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 5833 | s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 5834 | s%@LDLAST@%$LDLAST%g |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 5835 | s%@USE_GC_MODULE@%$USE_GC_MODULE%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5836 | s%@DLINCLDIR@%$DLINCLDIR%g |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 5837 | s%@DYNLOADFILE@%$DYNLOADFILE%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5838 | s%@LIBOBJS@%$LIBOBJS%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5839 | s%@HAVE_GETHOSTBYNAME_R_6_ARG@%$HAVE_GETHOSTBYNAME_R_6_ARG%g |
| 5840 | s%@HAVE_GETHOSTBYNAME_R_5_ARG@%$HAVE_GETHOSTBYNAME_R_5_ARG%g |
| 5841 | 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] | 5842 | s%@HAVE_GETHOSTBYNAME_R@%$HAVE_GETHOSTBYNAME_R%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5843 | s%@HAVE_GETHOSTBYNAME@%$HAVE_GETHOSTBYNAME%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5844 | s%@LIBM@%$LIBM%g |
| 5845 | s%@LIBC@%$LIBC%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5846 | |
| 5847 | CEOF |
| 5848 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5849 | |
| 5850 | cat >> $CONFIG_STATUS <<\EOF |
| 5851 | |
| 5852 | # Split the substitutions into bite-sized pieces for seds with |
| 5853 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 5854 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 5855 | ac_file=1 # Number of current file. |
| 5856 | ac_beg=1 # First line for current file. |
| 5857 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 5858 | ac_more_lines=: |
| 5859 | ac_sed_cmds="" |
| 5860 | while $ac_more_lines; do |
| 5861 | if test $ac_beg -gt 1; then |
| 5862 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 5863 | else |
| 5864 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 5865 | fi |
| 5866 | if test ! -s conftest.s$ac_file; then |
| 5867 | ac_more_lines=false |
| 5868 | rm -f conftest.s$ac_file |
| 5869 | else |
| 5870 | if test -z "$ac_sed_cmds"; then |
| 5871 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 5872 | else |
| 5873 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 5874 | fi |
| 5875 | ac_file=`expr $ac_file + 1` |
| 5876 | ac_beg=$ac_end |
| 5877 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 5878 | fi |
| 5879 | done |
| 5880 | if test -z "$ac_sed_cmds"; then |
| 5881 | ac_sed_cmds=cat |
| 5882 | fi |
| 5883 | EOF |
| 5884 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5885 | cat >> $CONFIG_STATUS <<EOF |
| 5886 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 5887 | CONFIG_FILES=\${CONFIG_FILES-"Makefile \ |
| 5888 | Objects/Makefile \ |
| 5889 | Parser/Makefile \ |
| 5890 | Python/Makefile \ |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 5891 | Modules/Makefile.pre \ |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 5892 | Modules/Setup.config"} |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5893 | EOF |
| 5894 | cat >> $CONFIG_STATUS <<\EOF |
| 5895 | 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] | 5896 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5897 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5898 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5899 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 5900 | *) ac_file_in="${ac_file}.in" ;; |
| 5901 | esac |
| 5902 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5903 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5904 | |
| 5905 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 5906 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 5907 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 5908 | # The file is in a subdirectory. |
| 5909 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5910 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5911 | # A "../" for each directory in $ac_dir_suffix. |
| 5912 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 5913 | else |
| 5914 | ac_dir_suffix= ac_dots= |
| 5915 | fi |
| 5916 | |
| 5917 | case "$ac_given_srcdir" in |
| 5918 | .) srcdir=. |
| 5919 | if test -z "$ac_dots"; then top_srcdir=. |
| 5920 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 5921 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 5922 | *) # Relative path. |
| 5923 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 5924 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 5925 | esac |
| 5926 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5927 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5928 | echo creating "$ac_file" |
| 5929 | rm -f "$ac_file" |
| 5930 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 5931 | case "$ac_file" in |
| 5932 | *Makefile*) ac_comsub="1i\\ |
| 5933 | # $configure_input" ;; |
| 5934 | *) ac_comsub= ;; |
| 5935 | esac |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5936 | |
| 5937 | 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] | 5938 | sed -e "$ac_comsub |
| 5939 | s%@configure_input@%$configure_input%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5940 | s%@srcdir@%$srcdir%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5941 | s%@top_srcdir@%$top_srcdir%g |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5942 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5943 | fi; done |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5944 | rm -f conftest.s* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5945 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5946 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 5947 | # 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] | 5948 | # |
| 5949 | # ac_d sets the value in "#define NAME VALUE" lines. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5950 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 5951 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5952 | ac_dC='\3' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5953 | ac_dD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5954 | # 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] | 5955 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 5956 | ac_uB='\([ ]\)%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5957 | ac_uC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5958 | ac_uD='\4%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5959 | # 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] | 5960 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 5961 | ac_eB='$%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5962 | ac_eC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5963 | ac_eD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5964 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5965 | if test "${CONFIG_HEADERS+set}" != set; then |
| 5966 | EOF |
| 5967 | cat >> $CONFIG_STATUS <<EOF |
| 5968 | CONFIG_HEADERS="config.h" |
| 5969 | EOF |
| 5970 | cat >> $CONFIG_STATUS <<\EOF |
| 5971 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5972 | 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] | 5973 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5974 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5975 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5976 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 5977 | *) ac_file_in="${ac_file}.in" ;; |
| 5978 | esac |
| 5979 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5980 | echo creating $ac_file |
| 5981 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5982 | rm -f conftest.frag conftest.in conftest.out |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5983 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 5984 | cat $ac_file_inputs > conftest.in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5985 | |
| 5986 | EOF |
| 5987 | |
| 5988 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 5989 | # 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] | 5990 | # 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] | 5991 | # Protect against being in an unquoted here document in config.status. |
| 5992 | rm -f conftest.vals |
| 5993 | cat > conftest.hdr <<\EOF |
| 5994 | s/[\\&%]/\\&/g |
| 5995 | s%[\\$`]%\\&%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5996 | 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] | 5997 | s%ac_d%ac_u%gp |
| 5998 | s%ac_u%ac_e%gp |
| 5999 | EOF |
| 6000 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 6001 | rm -f conftest.hdr |
| 6002 | |
| 6003 | # This sed command replaces #undef with comments. This is necessary, for |
| 6004 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 6005 | # on some systems where configure will not decide to define it. |
| 6006 | cat >> conftest.vals <<\EOF |
| 6007 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 6008 | EOF |
| 6009 | |
| 6010 | # Break up conftest.vals because some shells have a limit on |
| 6011 | # 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] | 6012 | |
| 6013 | rm -f conftest.tail |
| 6014 | while : |
| 6015 | do |
| 6016 | ac_lines=`grep -c . conftest.vals` |
| 6017 | # grep -c gives empty output for an empty file on some AIX systems. |
| 6018 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 6019 | # Write a limited-size here document to conftest.frag. |
| 6020 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 6021 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 6022 | echo 'CEOF |
| 6023 | sed -f conftest.frag conftest.in > conftest.out |
| 6024 | rm -f conftest.in |
| 6025 | mv conftest.out conftest.in |
| 6026 | ' >> $CONFIG_STATUS |
| 6027 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 6028 | rm -f conftest.vals |
| 6029 | mv conftest.tail conftest.vals |
| 6030 | done |
| 6031 | rm -f conftest.vals |
| 6032 | |
| 6033 | cat >> $CONFIG_STATUS <<\EOF |
| 6034 | rm -f conftest.frag conftest.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6035 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6036 | cat conftest.in >> conftest.h |
| 6037 | rm -f conftest.in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6038 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6039 | echo "$ac_file is unchanged" |
| 6040 | rm -f conftest.h |
| 6041 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6042 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 6043 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 6044 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 6045 | # The file is in a subdirectory. |
| 6046 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 6047 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6048 | rm -f $ac_file |
| 6049 | mv conftest.h $ac_file |
| 6050 | fi |
| 6051 | fi; done |
| 6052 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6053 | EOF |
| 6054 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6055 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6056 | EOF |
| 6057 | cat >> $CONFIG_STATUS <<\EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6058 | |
| 6059 | exit 0 |
| 6060 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6061 | chmod +x $CONFIG_STATUS |
| 6062 | rm -fr confdefs* $ac_clean_files |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 6063 | 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] | 6064 | |