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 | |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3 | # From configure.in Revision: 1.133 |
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. |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 6 | # Generated automatically using autoconf version 2.14.1 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 7 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8 | # |
| 9 | # This configure script is free software; the Free Software Foundation |
| 10 | # gives unlimited permission to copy, distribute and modify it. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12 | # Defaults: |
| 13 | ac_help= |
| 14 | ac_default_prefix=/usr/local |
| 15 | # Any additions from configure.in: |
| 16 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 17 | --with-next-archs='arch1 arch2 ..' build MAB binary" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 18 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 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 | c0d24d8b | 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 | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 23 | --without-gcc never use gcc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 24 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 25 | --with-cxx=<compiler> enable C++ support" |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 26 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 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 | c0d24d8b | 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 | c0d24d8b | 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 | c0d24d8b | 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 | c0d24d8b | 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 | c0d24d8b | 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 | c0d24d8b | 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 | c0d24d8b | 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 | c0d24d8b | 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) |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 372 | echo "configure generated by autoconf version 2.14.1" |
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" |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 532 | test -f "$cache_file" && . $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 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 789 | if eval "test \"\${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 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 819 | if eval "test \"\${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 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 865 | *win32* | *WIN32* | *CYGWIN*) |
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 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 870 | if eval "test \"\${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 | |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 900 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| 901 | echo "configure:902: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $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 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 942 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| 943 | echo "configure:944: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $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 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 949 | if eval "test \"\${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 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 977 | if eval "test \"\${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 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1090 | if eval "test \"\${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 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1123 | if eval "test \"\${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 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1202 | if eval "test \"\${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 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1302 | if eval "test \"\${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 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1351 | if eval "test \"\${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 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1385 | if eval "test \"\${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 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1420 | # checks for header files |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1421 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1422 | echo "configure:1423: checking for ANSI C header files" >&5 |
| 1423 | if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1424 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1425 | else |
| 1426 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1427 | #line 1428 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1428 | #include "confdefs.h" |
| 1429 | #include <stdlib.h> |
| 1430 | #include <stdarg.h> |
| 1431 | #include <string.h> |
| 1432 | #include <float.h> |
| 1433 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1434 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1435 | { (eval echo configure:1436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1436 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1437 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1438 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1439 | ac_cv_header_stdc=yes |
| 1440 | else |
| 1441 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1442 | echo "configure: failed program was:" >&5 |
| 1443 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1444 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1445 | ac_cv_header_stdc=no |
| 1446 | fi |
| 1447 | rm -f conftest* |
| 1448 | |
| 1449 | if test $ac_cv_header_stdc = yes; then |
| 1450 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 1451 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1452 | #line 1453 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1453 | #include "confdefs.h" |
| 1454 | #include <string.h> |
| 1455 | EOF |
| 1456 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1457 | egrep "memchr" >/dev/null 2>&1; then |
| 1458 | : |
| 1459 | else |
| 1460 | rm -rf conftest* |
| 1461 | ac_cv_header_stdc=no |
| 1462 | fi |
| 1463 | rm -f conftest* |
| 1464 | |
| 1465 | fi |
| 1466 | |
| 1467 | if test $ac_cv_header_stdc = yes; then |
| 1468 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 1469 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1470 | #line 1471 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1471 | #include "confdefs.h" |
| 1472 | #include <stdlib.h> |
| 1473 | EOF |
| 1474 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1475 | egrep "free" >/dev/null 2>&1; then |
| 1476 | : |
| 1477 | else |
| 1478 | rm -rf conftest* |
| 1479 | ac_cv_header_stdc=no |
| 1480 | fi |
| 1481 | rm -f conftest* |
| 1482 | |
| 1483 | fi |
| 1484 | |
| 1485 | if test $ac_cv_header_stdc = yes; then |
| 1486 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 1487 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1488 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1489 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1490 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1491 | #line 1492 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1492 | #include "confdefs.h" |
| 1493 | #include <ctype.h> |
| 1494 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 1495 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1496 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1497 | int main () { int i; for (i = 0; i < 256; i++) |
| 1498 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 1499 | exit (0); } |
| 1500 | |
| 1501 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1502 | if { (eval echo configure:1503: \"$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] | 1503 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1504 | : |
| 1505 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1506 | echo "configure: failed program was:" >&5 |
| 1507 | cat conftest.$ac_ext >&5 |
| 1508 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1509 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1510 | fi |
| 1511 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1512 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1513 | |
| 1514 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1515 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1516 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1517 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1518 | if test $ac_cv_header_stdc = yes; then |
| 1519 | cat >> confdefs.h <<\EOF |
| 1520 | #define STDC_HEADERS 1 |
| 1521 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1522 | |
| 1523 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1524 | |
Guido van Rossum | 9601315 | 1997-10-08 22:47:52 +0000 | [diff] [blame] | 1525 | 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] | 1526 | 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] | 1527 | sys/audioio.h sys/file.h sys/lock.h \ |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 1528 | 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] | 1529 | 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] | 1530 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1531 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1532 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1533 | echo "configure:1534: checking for $ac_hdr" >&5 |
| 1534 | if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1535 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1536 | else |
| 1537 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1538 | #line 1539 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1539 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1540 | #include <$ac_hdr> |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1541 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1542 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1543 | { (eval echo configure:1544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1544 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1545 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1546 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1547 | eval "ac_cv_header_$ac_safe=yes" |
| 1548 | else |
| 1549 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1550 | echo "configure: failed program was:" >&5 |
| 1551 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1552 | rm -rf conftest* |
| 1553 | eval "ac_cv_header_$ac_safe=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1554 | fi |
| 1555 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1556 | fi |
| 1557 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1558 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1559 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1560 | cat >> confdefs.h <<EOF |
| 1561 | #define $ac_tr_hdr 1 |
| 1562 | EOF |
| 1563 | |
| 1564 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1565 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1566 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1567 | done |
| 1568 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1569 | ac_header_dirent=no |
| 1570 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
| 1571 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1572 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1573 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1574 | echo "configure:1575: checking for $ac_hdr that defines DIR" >&5 |
| 1575 | if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1576 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1577 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1578 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1579 | #line 1580 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1580 | #include "confdefs.h" |
| 1581 | #include <sys/types.h> |
| 1582 | #include <$ac_hdr> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1583 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1584 | DIR *dirp = 0; |
| 1585 | ; return 0; } |
| 1586 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1587 | if { (eval echo configure:1588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1588 | rm -rf conftest* |
| 1589 | eval "ac_cv_header_dirent_$ac_safe=yes" |
| 1590 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1591 | echo "configure: failed program was:" >&5 |
| 1592 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1593 | rm -rf conftest* |
| 1594 | eval "ac_cv_header_dirent_$ac_safe=no" |
| 1595 | fi |
| 1596 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1597 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1598 | 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] | 1599 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1600 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1601 | cat >> confdefs.h <<EOF |
| 1602 | #define $ac_tr_hdr 1 |
| 1603 | EOF |
| 1604 | ac_header_dirent=$ac_hdr; break |
| 1605 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1606 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1607 | fi |
| 1608 | done |
| 1609 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 1610 | if test $ac_header_dirent = dirent.h; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1611 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1612 | echo "configure:1613: checking for opendir in -ldir" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1613 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1614 | if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1615 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1616 | else |
| 1617 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1618 | LIBS="-ldir $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1619 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1620 | #line 1621 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1621 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1622 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1623 | /* We use char because int might match the return type of a gcc2 |
| 1624 | builtin and then its argument prototype would still apply. */ |
| 1625 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1626 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1627 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1628 | opendir() |
| 1629 | ; return 0; } |
| 1630 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1631 | if { (eval echo configure:1632: \"$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] | 1632 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1633 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1634 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1635 | echo "configure: failed program was:" >&5 |
| 1636 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1637 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1638 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1639 | fi |
| 1640 | rm -f conftest* |
| 1641 | LIBS="$ac_save_LIBS" |
| 1642 | |
| 1643 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1644 | 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] | 1645 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1646 | LIBS="$LIBS -ldir" |
| 1647 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1648 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1649 | fi |
| 1650 | |
| 1651 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1652 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1653 | echo "configure:1654: checking for opendir in -lx" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1654 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1655 | if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1656 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1657 | else |
| 1658 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1659 | LIBS="-lx $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1660 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1661 | #line 1662 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1662 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1663 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1664 | /* We use char because int might match the return type of a gcc2 |
| 1665 | builtin and then its argument prototype would still apply. */ |
| 1666 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1667 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1668 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1669 | opendir() |
| 1670 | ; return 0; } |
| 1671 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1672 | if { (eval echo configure:1673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1673 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1674 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1675 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1676 | echo "configure: failed program was:" >&5 |
| 1677 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1678 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1679 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1680 | fi |
| 1681 | rm -f conftest* |
| 1682 | LIBS="$ac_save_LIBS" |
| 1683 | |
| 1684 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1685 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1686 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1687 | LIBS="$LIBS -lx" |
| 1688 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1689 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1690 | fi |
| 1691 | |
| 1692 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1693 | |
| 1694 | |
| 1695 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1696 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1697 | echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1698 | echo "configure:1699: checking for clock_t in time.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1699 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1700 | #line 1701 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1701 | #include "confdefs.h" |
| 1702 | #include <time.h> |
| 1703 | EOF |
| 1704 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1705 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1706 | rm -rf conftest* |
| 1707 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1708 | else |
| 1709 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1710 | cat >> confdefs.h <<\EOF |
| 1711 | #define clock_t long |
| 1712 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1713 | |
| 1714 | fi |
| 1715 | rm -f conftest* |
| 1716 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1717 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1718 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1719 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 1720 | cat >> confdefs.h <<\EOF |
| 1721 | #if defined(SCO_DS) |
| 1722 | #undef _OFF_T |
| 1723 | #endif |
| 1724 | EOF |
| 1725 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 1726 | # Type availability checks |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1727 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1728 | echo "configure:1729: checking for mode_t" >&5 |
| 1729 | if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1730 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1731 | else |
| 1732 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1733 | #line 1734 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1734 | #include "confdefs.h" |
| 1735 | #include <sys/types.h> |
| 1736 | #if STDC_HEADERS |
| 1737 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1738 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1739 | #endif |
| 1740 | EOF |
| 1741 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1742 | 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] | 1743 | rm -rf conftest* |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1744 | eval "ac_cv_type_mode_t=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1745 | else |
| 1746 | rm -rf conftest* |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1747 | eval "ac_cv_type_mode_t=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1748 | fi |
| 1749 | rm -f conftest* |
| 1750 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1751 | fi |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1752 | if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then |
| 1753 | echo "$ac_t""yes" 1>&6 |
| 1754 | else |
| 1755 | echo "$ac_t""no" 1>&6 |
| 1756 | cat >> confdefs.h <<EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1757 | #define mode_t int |
| 1758 | EOF |
| 1759 | |
| 1760 | fi |
| 1761 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1762 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1763 | echo "configure:1764: checking for off_t" >&5 |
| 1764 | if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1765 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1766 | else |
| 1767 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1768 | #line 1769 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1769 | #include "confdefs.h" |
| 1770 | #include <sys/types.h> |
| 1771 | #if STDC_HEADERS |
| 1772 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1773 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1774 | #endif |
| 1775 | EOF |
| 1776 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1777 | 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] | 1778 | rm -rf conftest* |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1779 | eval "ac_cv_type_off_t=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1780 | else |
| 1781 | rm -rf conftest* |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1782 | eval "ac_cv_type_off_t=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1783 | fi |
| 1784 | rm -f conftest* |
| 1785 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1786 | fi |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1787 | if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then |
| 1788 | echo "$ac_t""yes" 1>&6 |
| 1789 | else |
| 1790 | echo "$ac_t""no" 1>&6 |
| 1791 | cat >> confdefs.h <<EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1792 | #define off_t long |
| 1793 | EOF |
| 1794 | |
| 1795 | fi |
| 1796 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1797 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1798 | echo "configure:1799: checking for pid_t" >&5 |
| 1799 | if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1800 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1801 | else |
| 1802 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1803 | #line 1804 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1804 | #include "confdefs.h" |
| 1805 | #include <sys/types.h> |
| 1806 | #if STDC_HEADERS |
| 1807 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1808 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1809 | #endif |
| 1810 | EOF |
| 1811 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1812 | 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] | 1813 | rm -rf conftest* |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1814 | eval "ac_cv_type_pid_t=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1815 | else |
| 1816 | rm -rf conftest* |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1817 | eval "ac_cv_type_pid_t=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1818 | fi |
| 1819 | rm -f conftest* |
| 1820 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1821 | fi |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1822 | if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then |
| 1823 | echo "$ac_t""yes" 1>&6 |
| 1824 | else |
| 1825 | echo "$ac_t""no" 1>&6 |
| 1826 | cat >> confdefs.h <<EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1827 | #define pid_t int |
| 1828 | EOF |
| 1829 | |
| 1830 | fi |
| 1831 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1832 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1833 | echo "configure:1834: checking return type of signal handlers" >&5 |
| 1834 | if eval "test \"\${ac_cv_type_signal+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1835 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1836 | else |
| 1837 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1838 | #line 1839 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1839 | #include "confdefs.h" |
| 1840 | #include <sys/types.h> |
| 1841 | #include <signal.h> |
| 1842 | #ifdef signal |
| 1843 | #undef signal |
| 1844 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1845 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1846 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 1847 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1848 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1849 | #endif |
| 1850 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1851 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1852 | int i; |
| 1853 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1854 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1855 | if { (eval echo configure:1856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1856 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1857 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1858 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1859 | echo "configure: failed program was:" >&5 |
| 1860 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1861 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1862 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1863 | fi |
| 1864 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1865 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1866 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1867 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1868 | cat >> confdefs.h <<EOF |
| 1869 | #define RETSIGTYPE $ac_cv_type_signal |
| 1870 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1871 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1872 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1873 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1874 | echo "configure:1875: checking for size_t" >&5 |
| 1875 | if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1876 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1877 | else |
| 1878 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1879 | #line 1880 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1880 | #include "confdefs.h" |
| 1881 | #include <sys/types.h> |
| 1882 | #if STDC_HEADERS |
| 1883 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1884 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1885 | #endif |
| 1886 | EOF |
| 1887 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1888 | 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] | 1889 | rm -rf conftest* |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1890 | eval "ac_cv_type_size_t=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1891 | else |
| 1892 | rm -rf conftest* |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1893 | eval "ac_cv_type_size_t=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1894 | fi |
| 1895 | rm -f conftest* |
| 1896 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1897 | fi |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1898 | if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then |
| 1899 | echo "$ac_t""yes" 1>&6 |
| 1900 | else |
| 1901 | echo "$ac_t""no" 1>&6 |
| 1902 | cat >> confdefs.h <<EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1903 | #define size_t unsigned |
| 1904 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1905 | |
| 1906 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1907 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1908 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1909 | echo "configure:1910: checking for uid_t in sys/types.h" >&5 |
| 1910 | if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1911 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1912 | else |
| 1913 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1914 | #line 1915 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1915 | #include "confdefs.h" |
| 1916 | #include <sys/types.h> |
| 1917 | EOF |
| 1918 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1919 | egrep "uid_t" >/dev/null 2>&1; then |
| 1920 | rm -rf conftest* |
| 1921 | ac_cv_type_uid_t=yes |
| 1922 | else |
| 1923 | rm -rf conftest* |
| 1924 | ac_cv_type_uid_t=no |
| 1925 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1926 | rm -f conftest* |
| 1927 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1928 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1929 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1930 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1931 | if test $ac_cv_type_uid_t = no; then |
| 1932 | cat >> confdefs.h <<\EOF |
| 1933 | #define uid_t int |
| 1934 | EOF |
| 1935 | |
| 1936 | cat >> confdefs.h <<\EOF |
| 1937 | #define gid_t int |
| 1938 | EOF |
| 1939 | |
| 1940 | fi |
| 1941 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1942 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 1943 | # Sizes of various common basic types |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1944 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1945 | echo "configure:1946: checking size of int" >&5 |
| 1946 | if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1947 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1948 | else |
| 1949 | if test "$cross_compiling" = yes; then |
| 1950 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1951 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1952 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1953 | #line 1954 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1954 | #include "confdefs.h" |
| 1955 | #include <stdio.h> |
| 1956 | main() |
| 1957 | { |
| 1958 | FILE *f=fopen("conftestval", "w"); |
| 1959 | if (!f) exit(1); |
| 1960 | fprintf(f, "%d\n", sizeof(int)); |
| 1961 | exit(0); |
| 1962 | } |
| 1963 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1964 | if { (eval echo configure:1965: \"$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] | 1965 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1966 | ac_cv_sizeof_int=`cat conftestval` |
| 1967 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1968 | echo "configure: failed program was:" >&5 |
| 1969 | cat conftest.$ac_ext >&5 |
| 1970 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1971 | ac_cv_sizeof_int=0 |
| 1972 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1973 | rm -fr conftest* |
| 1974 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1975 | |
| 1976 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1977 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 1978 | cat >> confdefs.h <<EOF |
| 1979 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 1980 | EOF |
| 1981 | |
| 1982 | |
| 1983 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1984 | echo "configure:1985: checking size of long" >&5 |
| 1985 | if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1986 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1987 | else |
| 1988 | if test "$cross_compiling" = yes; then |
| 1989 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1990 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1991 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 1992 | #line 1993 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1993 | #include "confdefs.h" |
| 1994 | #include <stdio.h> |
| 1995 | main() |
| 1996 | { |
| 1997 | FILE *f=fopen("conftestval", "w"); |
| 1998 | if (!f) exit(1); |
| 1999 | fprintf(f, "%d\n", sizeof(long)); |
| 2000 | exit(0); |
| 2001 | } |
| 2002 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2003 | if { (eval echo configure:2004: \"$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] | 2004 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2005 | ac_cv_sizeof_long=`cat conftestval` |
| 2006 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2007 | echo "configure: failed program was:" >&5 |
| 2008 | cat conftest.$ac_ext >&5 |
| 2009 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2010 | ac_cv_sizeof_long=0 |
| 2011 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2012 | rm -fr conftest* |
| 2013 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2014 | |
| 2015 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2016 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
| 2017 | cat >> confdefs.h <<EOF |
| 2018 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 2019 | EOF |
| 2020 | |
| 2021 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2022 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2023 | echo "configure:2024: checking size of void *" >&5 |
| 2024 | if eval "test \"\${ac_cv_sizeof_void_p+set}\" = set"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2025 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2026 | else |
| 2027 | if test "$cross_compiling" = yes; then |
| 2028 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2029 | else |
| 2030 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2031 | #line 2032 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2032 | #include "confdefs.h" |
| 2033 | #include <stdio.h> |
| 2034 | main() |
| 2035 | { |
| 2036 | FILE *f=fopen("conftestval", "w"); |
| 2037 | if (!f) exit(1); |
| 2038 | fprintf(f, "%d\n", sizeof(void *)); |
| 2039 | exit(0); |
| 2040 | } |
| 2041 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2042 | if { (eval echo configure:2043: \"$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] | 2043 | then |
| 2044 | ac_cv_sizeof_void_p=`cat conftestval` |
| 2045 | else |
| 2046 | echo "configure: failed program was:" >&5 |
| 2047 | cat conftest.$ac_ext >&5 |
| 2048 | rm -fr conftest* |
| 2049 | ac_cv_sizeof_void_p=0 |
| 2050 | fi |
| 2051 | rm -fr conftest* |
| 2052 | fi |
| 2053 | |
| 2054 | fi |
| 2055 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
| 2056 | cat >> confdefs.h <<EOF |
| 2057 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
| 2058 | EOF |
| 2059 | |
| 2060 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2061 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2062 | echo "configure:2063: checking size of char" >&5 |
| 2063 | if eval "test \"\${ac_cv_sizeof_char+set}\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2064 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2065 | else |
| 2066 | if test "$cross_compiling" = yes; then |
| 2067 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2068 | else |
| 2069 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2070 | #line 2071 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2071 | #include "confdefs.h" |
| 2072 | #include <stdio.h> |
| 2073 | main() |
| 2074 | { |
| 2075 | FILE *f=fopen("conftestval", "w"); |
| 2076 | if (!f) exit(1); |
| 2077 | fprintf(f, "%d\n", sizeof(char)); |
| 2078 | exit(0); |
| 2079 | } |
| 2080 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2081 | if { (eval echo configure:2082: \"$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] | 2082 | then |
| 2083 | ac_cv_sizeof_char=`cat conftestval` |
| 2084 | else |
| 2085 | echo "configure: failed program was:" >&5 |
| 2086 | cat conftest.$ac_ext >&5 |
| 2087 | rm -fr conftest* |
| 2088 | ac_cv_sizeof_char=0 |
| 2089 | fi |
| 2090 | rm -fr conftest* |
| 2091 | fi |
| 2092 | |
| 2093 | fi |
| 2094 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
| 2095 | cat >> confdefs.h <<EOF |
| 2096 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
| 2097 | EOF |
| 2098 | |
| 2099 | |
| 2100 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2101 | echo "configure:2102: checking size of short" >&5 |
| 2102 | if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2103 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2104 | else |
| 2105 | if test "$cross_compiling" = yes; then |
| 2106 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2107 | else |
| 2108 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2109 | #line 2110 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2110 | #include "confdefs.h" |
| 2111 | #include <stdio.h> |
| 2112 | main() |
| 2113 | { |
| 2114 | FILE *f=fopen("conftestval", "w"); |
| 2115 | if (!f) exit(1); |
| 2116 | fprintf(f, "%d\n", sizeof(short)); |
| 2117 | exit(0); |
| 2118 | } |
| 2119 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2120 | if { (eval echo configure:2121: \"$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] | 2121 | then |
| 2122 | ac_cv_sizeof_short=`cat conftestval` |
| 2123 | else |
| 2124 | echo "configure: failed program was:" >&5 |
| 2125 | cat conftest.$ac_ext >&5 |
| 2126 | rm -fr conftest* |
| 2127 | ac_cv_sizeof_short=0 |
| 2128 | fi |
| 2129 | rm -fr conftest* |
| 2130 | fi |
| 2131 | |
| 2132 | fi |
| 2133 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
| 2134 | cat >> confdefs.h <<EOF |
| 2135 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 2136 | EOF |
| 2137 | |
| 2138 | |
| 2139 | echo $ac_n "checking size of float""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2140 | echo "configure:2141: checking size of float" >&5 |
| 2141 | if eval "test \"\${ac_cv_sizeof_float+set}\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2142 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2143 | else |
| 2144 | if test "$cross_compiling" = yes; then |
| 2145 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2146 | else |
| 2147 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2148 | #line 2149 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2149 | #include "confdefs.h" |
| 2150 | #include <stdio.h> |
| 2151 | main() |
| 2152 | { |
| 2153 | FILE *f=fopen("conftestval", "w"); |
| 2154 | if (!f) exit(1); |
| 2155 | fprintf(f, "%d\n", sizeof(float)); |
| 2156 | exit(0); |
| 2157 | } |
| 2158 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2159 | if { (eval echo configure:2160: \"$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] | 2160 | then |
| 2161 | ac_cv_sizeof_float=`cat conftestval` |
| 2162 | else |
| 2163 | echo "configure: failed program was:" >&5 |
| 2164 | cat conftest.$ac_ext >&5 |
| 2165 | rm -fr conftest* |
| 2166 | ac_cv_sizeof_float=0 |
| 2167 | fi |
| 2168 | rm -fr conftest* |
| 2169 | fi |
| 2170 | |
| 2171 | fi |
| 2172 | echo "$ac_t""$ac_cv_sizeof_float" 1>&6 |
| 2173 | cat >> confdefs.h <<EOF |
| 2174 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
| 2175 | EOF |
| 2176 | |
| 2177 | |
| 2178 | echo $ac_n "checking size of double""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2179 | echo "configure:2180: checking size of double" >&5 |
| 2180 | if eval "test \"\${ac_cv_sizeof_double+set}\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2181 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2182 | else |
| 2183 | if test "$cross_compiling" = yes; then |
| 2184 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2185 | else |
| 2186 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2187 | #line 2188 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2188 | #include "confdefs.h" |
| 2189 | #include <stdio.h> |
| 2190 | main() |
| 2191 | { |
| 2192 | FILE *f=fopen("conftestval", "w"); |
| 2193 | if (!f) exit(1); |
| 2194 | fprintf(f, "%d\n", sizeof(double)); |
| 2195 | exit(0); |
| 2196 | } |
| 2197 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2198 | if { (eval echo configure:2199: \"$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] | 2199 | then |
| 2200 | ac_cv_sizeof_double=`cat conftestval` |
| 2201 | else |
| 2202 | echo "configure: failed program was:" >&5 |
| 2203 | cat conftest.$ac_ext >&5 |
| 2204 | rm -fr conftest* |
| 2205 | ac_cv_sizeof_double=0 |
| 2206 | fi |
| 2207 | rm -fr conftest* |
| 2208 | fi |
| 2209 | |
| 2210 | fi |
| 2211 | echo "$ac_t""$ac_cv_sizeof_double" 1>&6 |
| 2212 | cat >> confdefs.h <<EOF |
| 2213 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
| 2214 | EOF |
| 2215 | |
| 2216 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2217 | echo $ac_n "checking size of fpos_t""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2218 | echo "configure:2219: checking size of fpos_t" >&5 |
| 2219 | if eval "test \"\${ac_cv_sizeof_fpos_t+set}\" = set"; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2220 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2221 | else |
| 2222 | if test "$cross_compiling" = yes; then |
| 2223 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2224 | else |
| 2225 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2226 | #line 2227 "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2227 | #include "confdefs.h" |
| 2228 | #include <stdio.h> |
| 2229 | main() |
| 2230 | { |
| 2231 | FILE *f=fopen("conftestval", "w"); |
| 2232 | if (!f) exit(1); |
| 2233 | fprintf(f, "%d\n", sizeof(fpos_t)); |
| 2234 | exit(0); |
| 2235 | } |
| 2236 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2237 | if { (eval echo configure:2238: \"$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] | 2238 | then |
| 2239 | ac_cv_sizeof_fpos_t=`cat conftestval` |
| 2240 | else |
| 2241 | echo "configure: failed program was:" >&5 |
| 2242 | cat conftest.$ac_ext >&5 |
| 2243 | rm -fr conftest* |
| 2244 | ac_cv_sizeof_fpos_t=0 |
| 2245 | fi |
| 2246 | rm -fr conftest* |
| 2247 | fi |
| 2248 | |
| 2249 | fi |
| 2250 | echo "$ac_t""$ac_cv_sizeof_fpos_t" 1>&6 |
| 2251 | cat >> confdefs.h <<EOF |
| 2252 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
| 2253 | EOF |
| 2254 | |
| 2255 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2256 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2257 | echo $ac_n "checking for long long support""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2258 | echo "configure:2259: checking for long long support" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2259 | have_long_long=no |
| 2260 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2261 | #line 2262 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2262 | #include "confdefs.h" |
| 2263 | |
| 2264 | int main() { |
| 2265 | long long x; x = (long long)0; |
| 2266 | ; return 0; } |
| 2267 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2268 | if { (eval echo configure:2269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2269 | rm -rf conftest* |
| 2270 | cat >> confdefs.h <<\EOF |
| 2271 | #define HAVE_LONG_LONG 1 |
| 2272 | EOF |
| 2273 | have_long_long=yes |
| 2274 | else |
| 2275 | echo "configure: failed program was:" >&5 |
| 2276 | cat conftest.$ac_ext >&5 |
| 2277 | fi |
| 2278 | rm -f conftest* |
| 2279 | echo "$ac_t""$have_long_long" 1>&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2280 | if test "$have_long_long" = yes ; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2281 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2282 | echo "configure:2283: checking size of long long" >&5 |
| 2283 | if eval "test \"\${ac_cv_sizeof_long_long+set}\" = set"; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2284 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2285 | else |
| 2286 | if test "$cross_compiling" = yes; then |
| 2287 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2288 | else |
| 2289 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2290 | #line 2291 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2291 | #include "confdefs.h" |
| 2292 | #include <stdio.h> |
| 2293 | main() |
| 2294 | { |
| 2295 | FILE *f=fopen("conftestval", "w"); |
| 2296 | if (!f) exit(1); |
| 2297 | fprintf(f, "%d\n", sizeof(long long)); |
| 2298 | exit(0); |
| 2299 | } |
| 2300 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2301 | if { (eval echo configure:2302: \"$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] | 2302 | then |
| 2303 | ac_cv_sizeof_long_long=`cat conftestval` |
| 2304 | else |
| 2305 | echo "configure: failed program was:" >&5 |
| 2306 | cat conftest.$ac_ext >&5 |
| 2307 | rm -fr conftest* |
| 2308 | ac_cv_sizeof_long_long=0 |
| 2309 | fi |
| 2310 | rm -fr conftest* |
| 2311 | fi |
| 2312 | |
| 2313 | fi |
| 2314 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
| 2315 | cat >> confdefs.h <<EOF |
| 2316 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 2317 | EOF |
| 2318 | |
| 2319 | |
| 2320 | fi |
| 2321 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2322 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
| 2323 | echo $ac_n "checking size of off_t""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2324 | echo "configure:2325: checking size of off_t" >&5 |
| 2325 | if eval "test \"\${ac_cv_sizeof_off_t+set}\" = set"; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2326 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2327 | else |
| 2328 | if test "$cross_compiling" = yes; then |
| 2329 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2330 | else |
| 2331 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2332 | #line 2333 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2333 | #include "confdefs.h" |
| 2334 | #include <stdio.h> |
| 2335 | #include <sys/types.h> |
| 2336 | main() |
| 2337 | { |
| 2338 | FILE *f=fopen("conftestval", "w"); |
| 2339 | if (!f) exit(1); |
| 2340 | fprintf(f, "%d\n", sizeof(off_t)); |
| 2341 | exit(0); |
| 2342 | } |
| 2343 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2344 | if { (eval echo configure:2345: \"$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] | 2345 | then |
| 2346 | ac_cv_sizeof_off_t=`cat conftestval` |
| 2347 | else |
| 2348 | echo "configure: failed program was:" >&5 |
| 2349 | cat conftest.$ac_ext >&5 |
| 2350 | rm -fr conftest* |
| 2351 | ac_cv_sizeof_off_t=0 |
| 2352 | fi |
| 2353 | rm -fr conftest* |
| 2354 | fi |
| 2355 | |
| 2356 | |
| 2357 | fi |
| 2358 | |
| 2359 | echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6 |
| 2360 | cat >> confdefs.h <<EOF |
| 2361 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 2362 | EOF |
| 2363 | |
| 2364 | |
| 2365 | echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2366 | echo "configure:2367: checking whether to enable large file support" >&5 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2367 | if test "$have_long_long" = yes -a \ |
| 2368 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 2369 | "$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] | 2370 | cat >> confdefs.h <<\EOF |
| 2371 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 2372 | EOF |
| 2373 | |
| 2374 | echo "$ac_t""yes" 1>&6 |
| 2375 | else |
| 2376 | echo "$ac_t""no" 1>&6 |
| 2377 | fi |
| 2378 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2379 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
| 2380 | echo $ac_n "checking size of time_t""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2381 | echo "configure:2382: checking size of time_t" >&5 |
| 2382 | if eval "test \"\${ac_cv_sizeof_time_t+set}\" = set"; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2383 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2384 | else |
| 2385 | if test "$cross_compiling" = yes; then |
| 2386 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2387 | else |
| 2388 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2389 | #line 2390 "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2390 | #include "confdefs.h" |
| 2391 | #include <stdio.h> |
| 2392 | #include <time.h> |
| 2393 | main() |
| 2394 | { |
| 2395 | FILE *f=fopen("conftestval", "w"); |
| 2396 | if (!f) exit(1); |
| 2397 | fprintf(f, "%d\n", sizeof(time_t)); |
| 2398 | exit(0); |
| 2399 | } |
| 2400 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2401 | if { (eval echo configure:2402: \"$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] | 2402 | then |
| 2403 | ac_cv_sizeof_time_t=`cat conftestval` |
| 2404 | else |
| 2405 | echo "configure: failed program was:" >&5 |
| 2406 | cat conftest.$ac_ext >&5 |
| 2407 | rm -fr conftest* |
| 2408 | ac_cv_sizeof_time_t=0 |
| 2409 | fi |
| 2410 | rm -fr conftest* |
| 2411 | fi |
| 2412 | |
| 2413 | |
| 2414 | fi |
| 2415 | |
| 2416 | echo "$ac_t""$ac_cv_sizeof_time_t" 1>&6 |
| 2417 | cat >> confdefs.h <<EOF |
| 2418 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
| 2419 | EOF |
| 2420 | |
| 2421 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2422 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2423 | # Minor variations in building a framework between NextStep versions 4 and 5 |
| 2424 | |
| 2425 | case $ac_sys_system/$ac_sys_release in |
| 2426 | next/4*) |
| 2427 | ns_undef_sym='__environ' |
| 2428 | LIBTOOL_CRUFT="-U $ns_undef_sym" ;; |
| 2429 | next/5*) |
| 2430 | ns_undef_sym='_environ' |
| 2431 | LIBTOOL_CRUFT="-lcc_dynamic -U $ns_undef_sym" ;; |
| 2432 | esac |
| 2433 | |
| 2434 | echo $ac_n "checking for --with-next-framework""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2435 | echo "configure:2436: checking for --with-next-framework" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2436 | if test "$with_next_framework" |
| 2437 | then |
| 2438 | OPT="$OPT -fno-common" |
| 2439 | # -U __environ is needed since bundles don't have access |
| 2440 | # to crt0 when built but will always be linked against it |
| 2441 | LDFLAGS="$LDFLAGS -Wl,-U,$ns_undef_sym" |
| 2442 | cat >> confdefs.h <<\EOF |
| 2443 | #define WITH_NEXT_FRAMEWORK 1 |
| 2444 | EOF |
| 2445 | |
| 2446 | echo "$ac_t""yes" 1>&6 |
| 2447 | else |
| 2448 | echo "$ac_t""no" 1>&6 |
| 2449 | fi |
| 2450 | |
| 2451 | echo $ac_n "checking for --with-dyld""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2452 | echo "configure:2453: checking for --with-dyld" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2453 | if test "$with_next_framework" -o "$with_dyld" |
| 2454 | then |
| 2455 | if test "$with_dyld" |
| 2456 | then |
| 2457 | echo "$ac_t""yes" 1>&6 |
| 2458 | else |
| 2459 | echo "$ac_t""required for framework build" 1>&6 |
| 2460 | fi |
| 2461 | cat >> confdefs.h <<\EOF |
| 2462 | #define WITH_DYLD 1 |
| 2463 | EOF |
| 2464 | |
| 2465 | ns_dyld='set' |
| 2466 | else |
| 2467 | echo "$ac_t""no" 1>&6 |
| 2468 | fi |
| 2469 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2470 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2471 | |
| 2472 | |
| 2473 | |
| 2474 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2475 | # SO is the extension of shared libraries `(including the dot!) |
| 2476 | # -- usually .so, .sl on HP-UX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2477 | echo $ac_n "checking SO""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2478 | echo "configure:2479: checking SO" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2479 | if test -z "$SO" |
| 2480 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2481 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2482 | hp*|HP*) SO=.sl;; |
| 2483 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2484 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2485 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2486 | echo "$ac_t""$SO" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2487 | # LDSHARED is the ld *command* used to create shared library |
| 2488 | # -- "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] | 2489 | # (Shared libraries in this instance are shared modules to be loaded into |
| 2490 | # Python, as opposed to building Python itself as a shared library.) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2491 | echo $ac_n "checking LDSHARED""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2492 | echo "configure:2493: checking LDSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2493 | if test -z "$LDSHARED" |
| 2494 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2495 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 45140f9 | 1997-08-29 18:44:06 +0000 | [diff] [blame] | 2496 | AIX*) LDSHARED="\$(srcdir)/ld_so_aix \$(CC)";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2497 | BeOS*) LDSHARED="\$(srcdir)/../BeOS/linkmodule -L.. -lpython\$(VERSION)";; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2498 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2499 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2500 | SunOS/4*) LDSHARED="ld";; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 2501 | SunOS/5*) |
| 2502 | if test "$GCC" = "yes" |
| 2503 | then LDSHARED='$(CC) -G' |
| 2504 | else LDSHARED="ld -G"; |
| 2505 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2506 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2507 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 2508 | DYNIX/ptx*) LDSHARED="ld -G";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2509 | next/*) |
| 2510 | if test "$ns_dyld" |
| 2511 | then LDSHARED='$(CC) $(LDFLAGS) -bundle -prebind' |
| 2512 | else LDSHARED='$(CC) $(CFLAGS) -nostdlib -r'; |
| 2513 | fi |
| 2514 | if test "$with_next_framework" ; then |
| 2515 | LDSHARED="$LDSHARED \$(LDLIBRARY)" |
| 2516 | fi ;; |
Guido van Rossum | 81652ab | 1996-07-21 02:53:27 +0000 | [diff] [blame] | 2517 | Linux*) LDSHARED="gcc -shared";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 2518 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 2519 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Guido van Rossum | a8acf72 | 1999-04-27 22:06:08 +0000 | [diff] [blame] | 2520 | FreeBSD*/[34]*) LDSHARED="gcc -shared";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2521 | FreeBSD*|OpenBSD*) LDSHARED="ld -Bshareable";; |
| 2522 | NetBSD*) |
| 2523 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 2524 | then |
| 2525 | LDSHARED="cc -shared" |
| 2526 | else |
| 2527 | LDSHARED="ld -Bshareable" |
| 2528 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2529 | SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2530 | *) LDSHARED="ld";; |
| 2531 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2532 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2533 | echo "$ac_t""$LDSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2534 | # 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] | 2535 | # library (module) -- this is only needed for a few systems |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2536 | echo $ac_n "checking CCSHARED""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2537 | echo "configure:2538: checking CCSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2538 | if test -z "$CCSHARED" |
| 2539 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2540 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 2541 | hp*|HP*) if test "$GCC" = yes; |
| 2542 | then CCSHARED="-fpic"; |
| 2543 | else CCSHARED="+z"; |
| 2544 | fi;; |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2545 | Linux*) CCSHARED="-fpic";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 2546 | BSD/OS*/4*) CCSHARED="-fpic";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2547 | FreeBSD*|OpenBSD*) CCSHARED="-fpic";; |
| 2548 | NetBSD*) CCSHARED="-fPIC";; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2549 | SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2550 | IRIX*/6*) case $CC in |
| 2551 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 2552 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2553 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2554 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2555 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2556 | echo "$ac_t""$CCSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2557 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2558 | # the python executable -- this is only needed for a few systems |
| 2559 | echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2560 | echo "configure:2561: checking LINKFORSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2561 | if test -z "$LINKFORSHARED" |
| 2562 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2563 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 69f6580 | 1998-03-03 21:47:00 +0000 | [diff] [blame] | 2564 | AIX*) LINKFORSHARED='-Wl,-bE:python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2565 | hp*|HP*) |
Guido van Rossum | 304dd2d | 1997-10-20 23:10:56 +0000 | [diff] [blame] | 2566 | LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 2567 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | a8acf72 | 1999-04-27 22:06:08 +0000 | [diff] [blame] | 2568 | FreeBSD/[34]*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 2d9feed | 1997-11-24 17:36:21 +0000 | [diff] [blame] | 2569 | Linux*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2570 | # -u libsys_s pulls in all symbols in libsys |
| 2571 | next/2*|next/3*) LINKFORSHARED="-u libsys_s";; |
| 2572 | # -u __dummy makes the linker aware of the objc runtime |
| 2573 | # in System.framework; otherwise, __objcInit (referenced in |
| 2574 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 2575 | # loading of any modules which reference it in System.framework |
| 2576 | next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2577 | SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2578 | NetBSD*) |
| 2579 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 2580 | then |
| 2581 | LINKFORSHARED="-Wl,--export-dynamic" |
| 2582 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2583 | SunOS/5*) case $CC in |
| 2584 | *gcc*) |
Guido van Rossum | ff48418 | 2000-02-03 13:50:24 +0000 | [diff] [blame] | 2585 | if $CC -Xlinker -V 2>&1 | grep BFD >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 2586 | then |
| 2587 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2588 | fi;; |
| 2589 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2590 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2591 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2592 | echo "$ac_t""$LINKFORSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2593 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2594 | # checks for libraries |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2595 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2596 | echo "configure:2597: checking for dlopen in -ldl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2597 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2598 | if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2599 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2600 | else |
| 2601 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2602 | LIBS="-ldl $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2603 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2604 | #line 2605 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2605 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2606 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2607 | /* We use char because int might match the return type of a gcc2 |
| 2608 | builtin and then its argument prototype would still apply. */ |
| 2609 | char dlopen(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2610 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2611 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2612 | dlopen() |
| 2613 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2614 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2615 | if { (eval echo configure:2616: \"$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] | 2616 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2617 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2618 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2619 | echo "configure: failed program was:" >&5 |
| 2620 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2621 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2622 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2623 | fi |
| 2624 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2625 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2626 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2627 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2628 | 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] | 2629 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2630 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2631 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2632 | cat >> confdefs.h <<EOF |
| 2633 | #define $ac_tr_lib 1 |
| 2634 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2635 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2636 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2637 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2638 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2639 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2640 | fi |
| 2641 | # Dynamic linking for SunOS/Solaris and SYSV |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2642 | echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2643 | echo "configure:2644: checking for shl_load in -ldld" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2644 | ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2645 | if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2646 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2647 | else |
| 2648 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2649 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2650 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2651 | #line 2652 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2652 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2653 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2654 | /* We use char because int might match the return type of a gcc2 |
| 2655 | builtin and then its argument prototype would still apply. */ |
| 2656 | char shl_load(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2657 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2658 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2659 | shl_load() |
| 2660 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2661 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2662 | if { (eval echo configure:2663: \"$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] | 2663 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2664 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2665 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2666 | echo "configure: failed program was:" >&5 |
| 2667 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2668 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2669 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2670 | fi |
| 2671 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2672 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2673 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2674 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2675 | 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] | 2676 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2677 | ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2678 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2679 | cat >> confdefs.h <<EOF |
| 2680 | #define $ac_tr_lib 1 |
| 2681 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2682 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2683 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2684 | |
| 2685 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2686 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2687 | fi |
| 2688 | # Dynamic linking for HP-UX |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2689 | |
| 2690 | # checks for system dependent C++ extensions support |
| 2691 | case "$ac_sys_system" in |
| 2692 | AIX*) echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2693 | echo "configure:2694: checking for genuine AIX C++ extensions support" >&5 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2694 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2695 | #line 2696 "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2696 | #include "confdefs.h" |
| 2697 | #include "/usr/lpp/xlC/include/load.h" |
| 2698 | int main() { |
| 2699 | loadAndInit("", 0, "") |
| 2700 | ; return 0; } |
| 2701 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2702 | if { (eval echo configure:2703: \"$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] | 2703 | rm -rf conftest* |
| 2704 | cat >> confdefs.h <<\EOF |
| 2705 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 2706 | EOF |
| 2707 | |
| 2708 | echo "$ac_t""yes" 1>&6 |
| 2709 | else |
| 2710 | echo "configure: failed program was:" >&5 |
| 2711 | cat conftest.$ac_ext >&5 |
| 2712 | rm -rf conftest* |
| 2713 | echo "$ac_t""no" 1>&6 |
| 2714 | fi |
| 2715 | rm -f conftest*;; |
| 2716 | *) ;; |
| 2717 | esac |
| 2718 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 2719 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| 2720 | # However on SGI IRIX, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2721 | # BeOS' sockets are stashed in libnet. |
| 2722 | case "$ac_sys_system" in |
| 2723 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 2724 | *) |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2725 | echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2726 | echo "configure:2727: checking for t_open in -lnsl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2727 | ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'` |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2728 | if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2729 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2730 | else |
| 2731 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2732 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2733 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2734 | #line 2735 "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2735 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2736 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2737 | /* We use char because int might match the return type of a gcc2 |
| 2738 | builtin and then its argument prototype would still apply. */ |
| 2739 | char t_open(); |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2740 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2741 | int main() { |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 2742 | t_open() |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2743 | ; return 0; } |
| 2744 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2745 | if { (eval echo configure:2746: \"$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] | 2746 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2747 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2748 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2749 | echo "configure: failed program was:" >&5 |
| 2750 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2751 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2752 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2753 | fi |
| 2754 | rm -f conftest* |
| 2755 | LIBS="$ac_save_LIBS" |
| 2756 | |
| 2757 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2758 | 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] | 2759 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2760 | LIBS="-lnsl $LIBS" |
| 2761 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2762 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2763 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 2764 | # SVR4 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2765 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2766 | echo "configure:2767: checking for socket in -lsocket" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2767 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2768 | if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2769 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2770 | else |
| 2771 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2772 | LIBS="-lsocket $LIBS $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2773 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2774 | #line 2775 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2775 | #include "confdefs.h" |
| 2776 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2777 | /* We use char because int might match the return type of a gcc2 |
| 2778 | builtin and then its argument prototype would still apply. */ |
| 2779 | char socket(); |
| 2780 | |
| 2781 | int main() { |
| 2782 | socket() |
| 2783 | ; return 0; } |
| 2784 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2785 | if { (eval echo configure:2786: \"$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] | 2786 | rm -rf conftest* |
| 2787 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2788 | else |
| 2789 | echo "configure: failed program was:" >&5 |
| 2790 | cat conftest.$ac_ext >&5 |
| 2791 | rm -rf conftest* |
| 2792 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2793 | fi |
| 2794 | rm -f conftest* |
| 2795 | LIBS="$ac_save_LIBS" |
| 2796 | |
| 2797 | fi |
| 2798 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2799 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2800 | LIBS="-lsocket $LIBS" |
| 2801 | else |
| 2802 | echo "$ac_t""no" 1>&6 |
| 2803 | fi |
| 2804 | # SVR4 sockets |
| 2805 | echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2806 | echo "configure:2807: checking for socket in -lnet" >&5 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2807 | ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'` |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2808 | if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2809 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2810 | else |
| 2811 | ac_save_LIBS="$LIBS" |
| 2812 | LIBS="-lnet $LIBS $LIBS" |
| 2813 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2814 | #line 2815 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2815 | #include "confdefs.h" |
| 2816 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2817 | /* We use char because int might match the return type of a gcc2 |
| 2818 | builtin and then its argument prototype would still apply. */ |
| 2819 | char socket(); |
| 2820 | |
| 2821 | int main() { |
| 2822 | socket() |
| 2823 | ; return 0; } |
| 2824 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2825 | if { (eval echo configure:2826: \"$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] | 2826 | rm -rf conftest* |
| 2827 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2828 | else |
| 2829 | echo "configure: failed program was:" >&5 |
| 2830 | cat conftest.$ac_ext >&5 |
| 2831 | rm -rf conftest* |
| 2832 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2833 | fi |
| 2834 | rm -f conftest* |
| 2835 | LIBS="$ac_save_LIBS" |
| 2836 | |
| 2837 | fi |
| 2838 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2839 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2840 | LIBS="-lnet $LIBS" |
| 2841 | else |
| 2842 | echo "$ac_t""no" 1>&6 |
| 2843 | fi |
| 2844 | # BeOS |
| 2845 | ;; |
| 2846 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 2847 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 2848 | echo $ac_n "checking for --with-libs""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2849 | echo "configure:2850: checking for --with-libs" >&5 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 2850 | # Check whether --with-libs or --without-libs was given. |
| 2851 | if test "${with_libs+set}" = set; then |
| 2852 | withval="$with_libs" |
| 2853 | |
| 2854 | echo "$ac_t""$withval" 1>&6 |
| 2855 | LIBS="$withval $LIBS" |
| 2856 | |
| 2857 | else |
| 2858 | echo "$ac_t""no" 1>&6 |
| 2859 | fi |
| 2860 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2861 | |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame] | 2862 | echo $ac_n "checking for --with(out)-readline""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2863 | echo "configure:2864: checking for --with(out)-readline" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2864 | # Check whether --with-readline or --without-readline was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2865 | if test "${with_readline+set}" = set; then |
| 2866 | withval="$with_readline" |
Guido van Rossum | b06df27 | 1997-08-05 21:50:20 +0000 | [diff] [blame] | 2867 | echo "$ac_t""$withval" 1>&6 |
| 2868 | { 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] | 2869 | else |
Guido van Rossum | b06df27 | 1997-08-05 21:50:20 +0000 | [diff] [blame] | 2870 | echo "$ac_t""not specified." 1>&6 |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame] | 2871 | fi |
| 2872 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2873 | |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 2874 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2875 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 2876 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2877 | echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2878 | echo "configure:2879: checking for --with-dec-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2879 | |
| 2880 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 2881 | if test "${with_dec_threads+set}" = set; then |
| 2882 | withval="$with_dec_threads" |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2883 | |
| 2884 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2885 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2886 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2887 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2888 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2889 | else |
| 2890 | echo "$ac_t""no" 1>&6 |
| 2891 | fi |
| 2892 | |
| 2893 | |
| 2894 | echo $ac_n "checking for --with-threads""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2895 | echo "configure:2896: checking for --with-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2896 | # Check whether --with-threads or --without-threads was given. |
| 2897 | if test "${with_threads+set}" = set; then |
| 2898 | withval="$with_threads" |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2899 | : |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2900 | fi |
| 2901 | |
| 2902 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2903 | # --with-thread is deprecated, but check for it anyway |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2904 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2905 | if test "${with_thread+set}" = set; then |
| 2906 | withval="$with_thread" |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 2907 | |
| 2908 | with_threads=$with_thread |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2909 | fi |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2910 | |
| 2911 | |
| 2912 | if test -z "$with_threads" |
| 2913 | then with_threads="yes" |
| 2914 | fi |
| 2915 | echo "$ac_t""$with_threads" 1>&6 |
| 2916 | |
| 2917 | if test "$with_threads" = "no" |
| 2918 | then |
| 2919 | USE_THREAD_MODULE="#" |
| 2920 | else |
| 2921 | if test -d "$with_threads" |
| 2922 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 2923 | fi |
| 2924 | if test -d "$withval" |
| 2925 | then LDFLAGS="$LDFLAGS -L$withval" |
| 2926 | fi |
| 2927 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 2928 | #define _REENTRANT 1 |
| 2929 | EOF |
| 2930 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2931 | ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2932 | echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2933 | echo "configure:2934: checking for mach/cthreads.h" >&5 |
| 2934 | if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2935 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2936 | else |
| 2937 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2938 | #line 2939 "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2939 | #include "confdefs.h" |
| 2940 | #include <mach/cthreads.h> |
| 2941 | EOF |
| 2942 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2943 | { (eval echo configure:2944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2944 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2945 | if test -z "$ac_err"; then |
| 2946 | rm -rf conftest* |
| 2947 | eval "ac_cv_header_$ac_safe=yes" |
| 2948 | else |
| 2949 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2950 | echo "configure: failed program was:" >&5 |
| 2951 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2952 | rm -rf conftest* |
| 2953 | eval "ac_cv_header_$ac_safe=no" |
| 2954 | fi |
| 2955 | rm -f conftest* |
| 2956 | fi |
| 2957 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2958 | echo "$ac_t""yes" 1>&6 |
| 2959 | cat >> confdefs.h <<\EOF |
| 2960 | #define WITH_THREAD 1 |
| 2961 | EOF |
| 2962 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2963 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2964 | #define C_THREADS 1 |
| 2965 | EOF |
| 2966 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2967 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2968 | else |
| 2969 | echo "$ac_t""no" 1>&6 |
| 2970 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 2971 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2972 | echo "configure:2973: checking for pthread_create in -lpthread" >&5 |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 2973 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2974 | if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 2975 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2976 | else |
| 2977 | ac_save_LIBS="$LIBS" |
| 2978 | LIBS="-lpthread $LIBS" |
| 2979 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2980 | #line 2981 "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 2981 | #include "confdefs.h" |
| 2982 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2983 | /* We use char because int might match the return type of a gcc2 |
| 2984 | builtin and then its argument prototype would still apply. */ |
| 2985 | char pthread_create(); |
| 2986 | |
| 2987 | int main() { |
| 2988 | pthread_create() |
| 2989 | ; return 0; } |
| 2990 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 2991 | if { (eval echo configure:2992: \"$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] | 2992 | rm -rf conftest* |
| 2993 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2994 | else |
| 2995 | echo "configure: failed program was:" >&5 |
| 2996 | cat conftest.$ac_ext >&5 |
| 2997 | rm -rf conftest* |
| 2998 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2999 | fi |
| 3000 | rm -f conftest* |
| 3001 | LIBS="$ac_save_LIBS" |
| 3002 | |
| 3003 | fi |
| 3004 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3005 | echo "$ac_t""yes" 1>&6 |
| 3006 | cat >> confdefs.h <<\EOF |
| 3007 | #define WITH_THREAD 1 |
| 3008 | EOF |
| 3009 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3010 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3011 | #define _POSIX_THREADS 1 |
| 3012 | EOF |
| 3013 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3014 | LIBS="-lpthread $LIBS" |
| 3015 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3016 | else |
| 3017 | echo "$ac_t""no" 1>&6 |
| 3018 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3019 | echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3020 | echo "configure:3021: checking for pthread_detach" >&5 |
| 3021 | if eval "test \"\${ac_cv_func_pthread_detach+set}\" = set"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3022 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3023 | else |
| 3024 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3025 | #line 3026 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3026 | #include "confdefs.h" |
| 3027 | /* System header to define __stub macros and hopefully few prototypes, |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3028 | which can conflict with char pthread_detach(); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3029 | #include <assert.h> |
| 3030 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3031 | /* We use char because int might match the return type of a gcc2 |
| 3032 | builtin and then its argument prototype would still apply. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3033 | char pthread_detach(); |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3034 | char (*f)(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3035 | |
| 3036 | int main() { |
| 3037 | |
| 3038 | /* The GNU C library defines this for functions which it implements |
| 3039 | to always fail with ENOSYS. Some functions are actually named |
| 3040 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3041 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3042 | choke me |
| 3043 | #else |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3044 | f = pthread_detach; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3045 | #endif |
| 3046 | |
| 3047 | ; return 0; } |
| 3048 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3049 | if { (eval echo configure:3050: \"$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] | 3050 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3051 | eval "ac_cv_func_pthread_detach=yes" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3052 | else |
| 3053 | echo "configure: failed program was:" >&5 |
| 3054 | cat conftest.$ac_ext >&5 |
| 3055 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3056 | eval "ac_cv_func_pthread_detach=no" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3057 | fi |
| 3058 | rm -f conftest* |
| 3059 | fi |
| 3060 | |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3061 | if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3062 | echo "$ac_t""yes" 1>&6 |
| 3063 | cat >> confdefs.h <<\EOF |
| 3064 | #define WITH_THREAD 1 |
| 3065 | EOF |
| 3066 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3067 | cat >> confdefs.h <<\EOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3068 | #define _POSIX_THREADS 1 |
| 3069 | EOF |
| 3070 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3071 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3072 | else |
| 3073 | echo "$ac_t""no" 1>&6 |
| 3074 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3075 | ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3076 | echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3077 | echo "configure:3078: checking for kernel/OS.h" >&5 |
| 3078 | if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3079 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3080 | else |
| 3081 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3082 | #line 3083 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3083 | #include "confdefs.h" |
| 3084 | #include <kernel/OS.h> |
| 3085 | EOF |
| 3086 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3087 | { (eval echo configure:3088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3088 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3089 | if test -z "$ac_err"; then |
| 3090 | rm -rf conftest* |
| 3091 | eval "ac_cv_header_$ac_safe=yes" |
| 3092 | else |
| 3093 | echo "$ac_err" >&5 |
| 3094 | echo "configure: failed program was:" >&5 |
| 3095 | cat conftest.$ac_ext >&5 |
| 3096 | rm -rf conftest* |
| 3097 | eval "ac_cv_header_$ac_safe=no" |
| 3098 | fi |
| 3099 | rm -f conftest* |
| 3100 | fi |
| 3101 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3102 | echo "$ac_t""yes" 1>&6 |
| 3103 | cat >> confdefs.h <<\EOF |
| 3104 | #define WITH_THREAD 1 |
| 3105 | EOF |
| 3106 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3107 | cat >> confdefs.h <<\EOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3108 | #define BEOS_THREADS 1 |
| 3109 | EOF |
| 3110 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3111 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3112 | else |
| 3113 | echo "$ac_t""no" 1>&6 |
| 3114 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3115 | echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3116 | echo "configure:3117: checking for pthread_create in -lpthreads" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3117 | ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3118 | if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3119 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3120 | else |
| 3121 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3122 | LIBS="-lpthreads $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3123 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3124 | #line 3125 "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3125 | #include "confdefs.h" |
| 3126 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3127 | /* We use char because int might match the return type of a gcc2 |
| 3128 | builtin and then its argument prototype would still apply. */ |
| 3129 | char pthread_create(); |
| 3130 | |
| 3131 | int main() { |
| 3132 | pthread_create() |
| 3133 | ; return 0; } |
| 3134 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3135 | if { (eval echo configure:3136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3136 | rm -rf conftest* |
| 3137 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3138 | else |
| 3139 | echo "configure: failed program was:" >&5 |
| 3140 | cat conftest.$ac_ext >&5 |
| 3141 | rm -rf conftest* |
| 3142 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3143 | fi |
| 3144 | rm -f conftest* |
| 3145 | LIBS="$ac_save_LIBS" |
| 3146 | |
| 3147 | fi |
| 3148 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3149 | echo "$ac_t""yes" 1>&6 |
| 3150 | cat >> confdefs.h <<\EOF |
| 3151 | #define WITH_THREAD 1 |
| 3152 | EOF |
| 3153 | |
| 3154 | cat >> confdefs.h <<\EOF |
| 3155 | #define _POSIX_THREADS 1 |
| 3156 | EOF |
| 3157 | |
| 3158 | LIBS="$LIBS -lpthreads" |
| 3159 | LIBOBJS="$LIBOBJS thread.o" |
| 3160 | else |
| 3161 | echo "$ac_t""no" 1>&6 |
| 3162 | |
| 3163 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3164 | echo "configure:3165: checking for pthread_create in -lc_r" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3165 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3166 | if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3167 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3168 | else |
| 3169 | ac_save_LIBS="$LIBS" |
| 3170 | LIBS="-lc_r $LIBS" |
| 3171 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3172 | #line 3173 "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3173 | #include "confdefs.h" |
| 3174 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3175 | /* We use char because int might match the return type of a gcc2 |
| 3176 | builtin and then its argument prototype would still apply. */ |
| 3177 | char pthread_create(); |
| 3178 | |
| 3179 | int main() { |
| 3180 | pthread_create() |
| 3181 | ; return 0; } |
| 3182 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3183 | if { (eval echo configure:3184: \"$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] | 3184 | rm -rf conftest* |
| 3185 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3186 | else |
| 3187 | echo "configure: failed program was:" >&5 |
| 3188 | cat conftest.$ac_ext >&5 |
| 3189 | rm -rf conftest* |
| 3190 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3191 | fi |
| 3192 | rm -f conftest* |
| 3193 | LIBS="$ac_save_LIBS" |
| 3194 | |
| 3195 | fi |
| 3196 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3197 | echo "$ac_t""yes" 1>&6 |
| 3198 | cat >> confdefs.h <<\EOF |
| 3199 | #define WITH_THREAD 1 |
| 3200 | EOF |
| 3201 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3202 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3203 | #define _POSIX_THREADS 1 |
| 3204 | EOF |
| 3205 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3206 | LIBS="$LIBS -lc_r" |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3207 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3208 | else |
| 3209 | echo "$ac_t""no" 1>&6 |
| 3210 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3211 | echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3212 | echo "configure:3213: checking for __d6_pthread_create in -lthread" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3213 | ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'` |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3214 | if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3215 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3216 | else |
| 3217 | ac_save_LIBS="$LIBS" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3218 | LIBS="-lthread $LIBS" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3219 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3220 | #line 3221 "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3221 | #include "confdefs.h" |
| 3222 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3223 | /* We use char because int might match the return type of a gcc2 |
| 3224 | builtin and then its argument prototype would still apply. */ |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3225 | char __d6_pthread_create(); |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3226 | |
| 3227 | int main() { |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3228 | __d6_pthread_create() |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3229 | ; return 0; } |
| 3230 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3231 | if { (eval echo configure:3232: \"$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] | 3232 | rm -rf conftest* |
| 3233 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3234 | else |
| 3235 | echo "configure: failed program was:" >&5 |
| 3236 | cat conftest.$ac_ext >&5 |
| 3237 | rm -rf conftest* |
| 3238 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3239 | fi |
| 3240 | rm -f conftest* |
| 3241 | LIBS="$ac_save_LIBS" |
| 3242 | |
| 3243 | fi |
| 3244 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3245 | echo "$ac_t""yes" 1>&6 |
| 3246 | cat >> confdefs.h <<\EOF |
| 3247 | #define WITH_THREAD 1 |
| 3248 | EOF |
| 3249 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3250 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3251 | #define _POSIX_THREADS 1 |
| 3252 | EOF |
| 3253 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3254 | LIBS="$LIBS -lthread" |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3255 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3256 | else |
| 3257 | echo "$ac_t""no" 1>&6 |
| 3258 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3259 | echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3260 | echo "configure:3261: checking for pth_init in -lpth" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3261 | ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'` |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3262 | if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3263 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3264 | else |
| 3265 | ac_save_LIBS="$LIBS" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3266 | LIBS="-lpth $LIBS" |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3267 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3268 | #line 3269 "configure" |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3269 | #include "confdefs.h" |
| 3270 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3271 | /* We use char because int might match the return type of a gcc2 |
| 3272 | builtin and then its argument prototype would still apply. */ |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3273 | char pth_init(); |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3274 | |
| 3275 | int main() { |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3276 | pth_init() |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3277 | ; return 0; } |
| 3278 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3279 | if { (eval echo configure:3280: \"$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] | 3280 | rm -rf conftest* |
| 3281 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3282 | else |
| 3283 | echo "configure: failed program was:" >&5 |
| 3284 | cat conftest.$ac_ext >&5 |
| 3285 | rm -rf conftest* |
| 3286 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3287 | fi |
| 3288 | rm -f conftest* |
| 3289 | LIBS="$ac_save_LIBS" |
| 3290 | |
| 3291 | fi |
| 3292 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3293 | echo "$ac_t""yes" 1>&6 |
| 3294 | cat >> confdefs.h <<\EOF |
| 3295 | #define WITH_THREAD 1 |
| 3296 | EOF |
| 3297 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3298 | cat >> confdefs.h <<\EOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3299 | #define _GNU_PTH 1 |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3300 | EOF |
| 3301 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3302 | LIBS="-lpth $LIBS" |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3303 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3304 | else |
| 3305 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3306 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3307 | echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3308 | echo "configure:3309: checking for pthread_create in -lcma" >&5 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3309 | ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'` |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3310 | if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3311 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3312 | else |
| 3313 | ac_save_LIBS="$LIBS" |
| 3314 | LIBS="-lcma $LIBS" |
| 3315 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3316 | #line 3317 "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3317 | #include "confdefs.h" |
| 3318 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3319 | /* We use char because int might match the return type of a gcc2 |
| 3320 | builtin and then its argument prototype would still apply. */ |
| 3321 | char pthread_create(); |
| 3322 | |
| 3323 | int main() { |
| 3324 | pthread_create() |
| 3325 | ; return 0; } |
| 3326 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3327 | if { (eval echo configure:3328: \"$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] | 3328 | rm -rf conftest* |
| 3329 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3330 | else |
| 3331 | echo "configure: failed program was:" >&5 |
| 3332 | cat conftest.$ac_ext >&5 |
| 3333 | rm -rf conftest* |
| 3334 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3335 | fi |
| 3336 | rm -f conftest* |
| 3337 | LIBS="$ac_save_LIBS" |
| 3338 | |
| 3339 | fi |
| 3340 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3341 | echo "$ac_t""yes" 1>&6 |
| 3342 | cat >> confdefs.h <<\EOF |
| 3343 | #define WITH_THREAD 1 |
| 3344 | EOF |
| 3345 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3346 | cat >> confdefs.h <<\EOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3347 | #define _POSIX_THREADS 1 |
| 3348 | EOF |
| 3349 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3350 | LIBS="$LIBS -lcma" |
| 3351 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3352 | else |
| 3353 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 3354 | fi |
| 3355 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3356 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3357 | fi |
| 3358 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3359 | fi |
| 3360 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3361 | fi |
| 3362 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3363 | fi |
| 3364 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3365 | fi |
| 3366 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3367 | fi |
| 3368 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3369 | fi |
| 3370 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3371 | fi |
| 3372 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3373 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3374 | echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3375 | echo "configure:3376: checking for usconfig in -lmpc" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3376 | ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'` |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3377 | if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3378 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3379 | else |
| 3380 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3381 | LIBS="-lmpc $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3382 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3383 | #line 3384 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3384 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3385 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3386 | /* We use char because int might match the return type of a gcc2 |
| 3387 | builtin and then its argument prototype would still apply. */ |
| 3388 | char usconfig(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3389 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3390 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3391 | usconfig() |
| 3392 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3393 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3394 | if { (eval echo configure:3395: \"$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] | 3395 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3396 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3397 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3398 | echo "configure: failed program was:" >&5 |
| 3399 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3400 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3401 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3402 | fi |
| 3403 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3404 | LIBS="$ac_save_LIBS" |
| 3405 | |
| 3406 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3407 | 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] | 3408 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3409 | cat >> confdefs.h <<\EOF |
| 3410 | #define WITH_THREAD 1 |
| 3411 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3412 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3413 | LIBS="$LIBS -lmpc" |
| 3414 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3415 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3416 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3417 | fi |
| 3418 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3419 | echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3420 | echo "configure:3421: checking for thr_create in -lthread" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3421 | ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'` |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3422 | if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3423 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3424 | else |
| 3425 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3426 | LIBS="-lthread $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3427 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3428 | #line 3429 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3429 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3430 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3431 | /* We use char because int might match the return type of a gcc2 |
| 3432 | builtin and then its argument prototype would still apply. */ |
| 3433 | char thr_create(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3434 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3435 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3436 | thr_create() |
| 3437 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3438 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3439 | if { (eval echo configure:3440: \"$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] | 3440 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3441 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3442 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3443 | echo "configure: failed program was:" >&5 |
| 3444 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3445 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3446 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3447 | fi |
| 3448 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3449 | LIBS="$ac_save_LIBS" |
| 3450 | |
| 3451 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3452 | 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] | 3453 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3454 | cat >> confdefs.h <<\EOF |
| 3455 | #define WITH_THREAD 1 |
| 3456 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3457 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3458 | LIBS="$LIBS -lthread" |
| 3459 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3460 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3461 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3462 | fi |
| 3463 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3464 | fi |
| 3465 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3466 | # Check for GC support |
| 3467 | |
| 3468 | USE_GC_MODULE="" |
| 3469 | echo $ac_n "checking for --with-cycle-gc""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3470 | echo "configure:3471: checking for --with-cycle-gc" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3471 | # Check whether --with-cycle-gc or --without-cycle-gc was given. |
| 3472 | if test "${with_cycle_gc+set}" = set; then |
| 3473 | withval="$with_cycle_gc" |
| 3474 | : |
| 3475 | fi |
| 3476 | |
| 3477 | |
| 3478 | if test -z "$with_cycle_gc" |
| 3479 | then with_cycle_gc="yes" |
| 3480 | fi |
| 3481 | if test "$with_cycle_gc" = "no" |
| 3482 | then |
| 3483 | USE_GC_MODULE="#" |
| 3484 | else |
| 3485 | cat >> confdefs.h <<\EOF |
| 3486 | #define WITH_CYCLE_GC 1 |
| 3487 | EOF |
| 3488 | |
| 3489 | fi |
| 3490 | echo "$ac_t""$with_cycle_gc" 1>&6 |
| 3491 | |
| 3492 | # Check for --with-wctype-functions |
| 3493 | echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3494 | echo "configure:3495: checking for --with-wctype-functions" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3495 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 3496 | if test "${with_wctype_functions+set}" = set; then |
| 3497 | withval="$with_wctype_functions" |
| 3498 | |
| 3499 | if test "$withval" != no |
| 3500 | then cat >> confdefs.h <<\EOF |
| 3501 | #define WANT_WCTYPE_FUNCTIONS 1 |
| 3502 | EOF |
| 3503 | echo "$ac_t""yes" 1>&6 |
| 3504 | else echo "$ac_t""no" 1>&6 |
| 3505 | fi |
| 3506 | else |
| 3507 | echo "$ac_t""no" 1>&6 |
| 3508 | fi |
| 3509 | |
| 3510 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3511 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3512 | |
| 3513 | DLINCLDIR=/ |
| 3514 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3515 | echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3516 | echo "configure:3517: checking for --with-sgi-dl" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3517 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3518 | if test "${with_sgi_dl+set}" = set; then |
| 3519 | withval="$with_sgi_dl" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3520 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3521 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3522 | cat >> confdefs.h <<\EOF |
| 3523 | #define WITH_SGI_DL 1 |
| 3524 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3525 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3526 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3527 | dldir=$withval |
| 3528 | if test -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3529 | then LDFLAGS="$LDFLAGS -L$dldir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3530 | 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] | 3531 | fi |
| 3532 | DLINCLDIR=${dldir} |
| 3533 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3534 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3535 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3536 | fi |
| 3537 | |
| 3538 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3539 | echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3540 | echo "configure:3541: checking for --with-dl-dld" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3541 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3542 | if test "${with_dl_dld+set}" = set; then |
| 3543 | withval="$with_dl_dld" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3544 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3545 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3546 | cat >> confdefs.h <<\EOF |
| 3547 | #define WITH_DL_DLD 1 |
| 3548 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3549 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3550 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3551 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 3552 | dlddir=`echo "$withval" | sed 's/.*,//'` |
| 3553 | if test -d "$dldir" -a -d "$dlddir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3554 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3555 | 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] | 3556 | fi |
| 3557 | DLINCLDIR=${dldir} |
| 3558 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3559 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3560 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3561 | fi |
| 3562 | |
| 3563 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3564 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 3565 | # platforms, such as AIX, have dlopen(), but don't want to use it. |
| 3566 | echo $ac_n "checking for dlopen""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3567 | echo "configure:3568: checking for dlopen" >&5 |
| 3568 | if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3569 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3570 | else |
| 3571 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3572 | #line 3573 "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3573 | #include "confdefs.h" |
| 3574 | /* System header to define __stub macros and hopefully few prototypes, |
| 3575 | which can conflict with char dlopen(); below. */ |
| 3576 | #include <assert.h> |
| 3577 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3578 | /* We use char because int might match the return type of a gcc2 |
| 3579 | builtin and then its argument prototype would still apply. */ |
| 3580 | char dlopen(); |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3581 | char (*f)(); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3582 | |
| 3583 | int main() { |
| 3584 | |
| 3585 | /* The GNU C library defines this for functions which it implements |
| 3586 | to always fail with ENOSYS. Some functions are actually named |
| 3587 | something starting with __ and the normal name is an alias. */ |
| 3588 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 3589 | choke me |
| 3590 | #else |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3591 | f = dlopen; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3592 | #endif |
| 3593 | |
| 3594 | ; return 0; } |
| 3595 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3596 | if { (eval echo configure:3597: \"$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] | 3597 | rm -rf conftest* |
| 3598 | eval "ac_cv_func_dlopen=yes" |
| 3599 | else |
| 3600 | echo "configure: failed program was:" >&5 |
| 3601 | cat conftest.$ac_ext >&5 |
| 3602 | rm -rf conftest* |
| 3603 | eval "ac_cv_func_dlopen=no" |
| 3604 | fi |
| 3605 | rm -f conftest* |
| 3606 | fi |
| 3607 | |
| 3608 | if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then |
| 3609 | echo "$ac_t""yes" 1>&6 |
| 3610 | : |
| 3611 | else |
| 3612 | echo "$ac_t""no" 1>&6 |
| 3613 | fi |
| 3614 | |
| 3615 | |
| 3616 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 3617 | # loading of modules. |
| 3618 | |
| 3619 | echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3620 | echo "configure:3621: checking DYNLOADFILE" >&5 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3621 | if test -z "$DYNLOADFILE" |
| 3622 | then |
| 3623 | case $ac_sys_system/$ac_sys_release in |
| 3624 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 3625 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 3626 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
| 3627 | next/*) DYNLOADFILE="dynload_next.o";; |
| 3628 | *) |
| 3629 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 3630 | # out any dynamic loading |
| 3631 | if test "$ac_cv_func_dlopen" = yes |
| 3632 | then DYNLOADFILE="dynload_shlib.o" |
| 3633 | else DYNLOADFILE="dynload_stub.o" |
| 3634 | fi |
| 3635 | ;; |
| 3636 | esac |
| 3637 | fi |
| 3638 | echo "$ac_t""$DYNLOADFILE" 1>&6 |
| 3639 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 3640 | then |
| 3641 | cat >> confdefs.h <<\EOF |
| 3642 | #define HAVE_DYNAMIC_LOADING 1 |
| 3643 | EOF |
| 3644 | |
| 3645 | fi |
| 3646 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3647 | # checks for library functions |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 3648 | for ac_func in alarm chown clock confstr ctermid ctermid_r dlopen execv \ |
| 3649 | flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Fred Drake | f581db1 | 1999-12-14 21:11:47 +0000 | [diff] [blame] | 3650 | getgroups getlogin getpeername getpgrp getpid getpwent gettimeofday getwd \ |
Andrew M. Kuchling | 22c6934 | 2000-06-18 15:07:40 +0000 | [diff] [blame] | 3651 | kill link lstat mkfifo mktime mremap \ |
| 3652 | nice pathconf pause plock pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 3653 | putenv readlink \ |
Guido van Rossum | 9601315 | 1997-10-08 22:47:52 +0000 | [diff] [blame] | 3654 | select setgid setlocale setuid setsid setpgid setpgrp setvbuf \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 3655 | sigaction siginterrupt sigrelse strftime strptime symlink sysconf \ |
Fred Drake | 89143df | 1999-12-09 22:03:25 +0000 | [diff] [blame] | 3656 | tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
| 3657 | truncate uname waitpid |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3658 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3659 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3660 | echo "configure:3661: checking for $ac_func" >&5 |
| 3661 | if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3662 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3663 | else |
| 3664 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3665 | #line 3666 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3666 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3667 | /* System header to define __stub macros and hopefully few prototypes, |
| 3668 | which can conflict with char $ac_func(); below. */ |
| 3669 | #include <assert.h> |
| 3670 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3671 | /* We use char because int might match the return type of a gcc2 |
| 3672 | builtin and then its argument prototype would still apply. */ |
| 3673 | char $ac_func(); |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3674 | char (*f)(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3675 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3676 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3677 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3678 | /* The GNU C library defines this for functions which it implements |
| 3679 | to always fail with ENOSYS. Some functions are actually named |
| 3680 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3681 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3682 | choke me |
| 3683 | #else |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3684 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3685 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3686 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3687 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3688 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3689 | if { (eval echo configure:3690: \"$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] | 3690 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3691 | eval "ac_cv_func_$ac_func=yes" |
| 3692 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3693 | echo "configure: failed program was:" >&5 |
| 3694 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3695 | rm -rf conftest* |
| 3696 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3697 | fi |
| 3698 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3699 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3700 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3701 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3702 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3703 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3704 | cat >> confdefs.h <<EOF |
| 3705 | #define $ac_tr_func 1 |
| 3706 | EOF |
| 3707 | |
| 3708 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3709 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3710 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3711 | done |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3712 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 3713 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3714 | # check for openpty and forkpty |
| 3715 | |
| 3716 | for ac_func in openpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3717 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3718 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3719 | echo "configure:3720: checking for $ac_func" >&5 |
| 3720 | if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3721 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3722 | else |
| 3723 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3724 | #line 3725 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3725 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3726 | /* System header to define __stub macros and hopefully few prototypes, |
| 3727 | which can conflict with char $ac_func(); below. */ |
| 3728 | #include <assert.h> |
| 3729 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3730 | /* We use char because int might match the return type of a gcc2 |
| 3731 | builtin and then its argument prototype would still apply. */ |
| 3732 | char $ac_func(); |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3733 | char (*f)(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3734 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3735 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3736 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3737 | /* The GNU C library defines this for functions which it implements |
| 3738 | to always fail with ENOSYS. Some functions are actually named |
| 3739 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3740 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3741 | choke me |
| 3742 | #else |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3743 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3744 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3745 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3746 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3747 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3748 | if { (eval echo configure:3749: \"$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] | 3749 | rm -rf conftest* |
| 3750 | eval "ac_cv_func_$ac_func=yes" |
| 3751 | else |
| 3752 | echo "configure: failed program was:" >&5 |
| 3753 | cat conftest.$ac_ext >&5 |
| 3754 | rm -rf conftest* |
| 3755 | eval "ac_cv_func_$ac_func=no" |
| 3756 | fi |
| 3757 | rm -f conftest* |
| 3758 | fi |
| 3759 | |
| 3760 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3761 | echo "$ac_t""yes" 1>&6 |
| 3762 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3763 | cat >> confdefs.h <<EOF |
| 3764 | #define $ac_tr_func 1 |
| 3765 | EOF |
| 3766 | |
| 3767 | else |
| 3768 | echo "$ac_t""no" 1>&6 |
| 3769 | echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3770 | echo "configure:3771: checking for openpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3771 | ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3772 | if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3773 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3774 | else |
| 3775 | ac_save_LIBS="$LIBS" |
| 3776 | LIBS="-lutil $LIBS" |
| 3777 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3778 | #line 3779 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3779 | #include "confdefs.h" |
| 3780 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3781 | /* We use char because int might match the return type of a gcc2 |
| 3782 | builtin and then its argument prototype would still apply. */ |
| 3783 | char openpty(); |
| 3784 | |
| 3785 | int main() { |
| 3786 | openpty() |
| 3787 | ; return 0; } |
| 3788 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3789 | if { (eval echo configure:3790: \"$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] | 3790 | rm -rf conftest* |
| 3791 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3792 | else |
| 3793 | echo "configure: failed program was:" >&5 |
| 3794 | cat conftest.$ac_ext >&5 |
| 3795 | rm -rf conftest* |
| 3796 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3797 | fi |
| 3798 | rm -f conftest* |
| 3799 | LIBS="$ac_save_LIBS" |
| 3800 | |
| 3801 | fi |
| 3802 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3803 | echo "$ac_t""yes" 1>&6 |
| 3804 | cat >> confdefs.h <<\EOF |
| 3805 | #define HAVE_OPENPTY 1 |
| 3806 | EOF |
| 3807 | LIBS="$LIBS -lutil" |
| 3808 | else |
| 3809 | echo "$ac_t""no" 1>&6 |
| 3810 | fi |
| 3811 | |
| 3812 | fi |
| 3813 | done |
| 3814 | |
| 3815 | for ac_func in forkpty |
| 3816 | do |
| 3817 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3818 | echo "configure:3819: checking for $ac_func" >&5 |
| 3819 | if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3820 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3821 | else |
| 3822 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3823 | #line 3824 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3824 | #include "confdefs.h" |
| 3825 | /* System header to define __stub macros and hopefully few prototypes, |
| 3826 | which can conflict with char $ac_func(); below. */ |
| 3827 | #include <assert.h> |
| 3828 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3829 | /* We use char because int might match the return type of a gcc2 |
| 3830 | builtin and then its argument prototype would still apply. */ |
| 3831 | char $ac_func(); |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3832 | char (*f)(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3833 | |
| 3834 | int main() { |
| 3835 | |
| 3836 | /* The GNU C library defines this for functions which it implements |
| 3837 | to always fail with ENOSYS. Some functions are actually named |
| 3838 | something starting with __ and the normal name is an alias. */ |
| 3839 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3840 | choke me |
| 3841 | #else |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3842 | f = $ac_func; |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3843 | #endif |
| 3844 | |
| 3845 | ; return 0; } |
| 3846 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3847 | if { (eval echo configure:3848: \"$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] | 3848 | rm -rf conftest* |
| 3849 | eval "ac_cv_func_$ac_func=yes" |
| 3850 | else |
| 3851 | echo "configure: failed program was:" >&5 |
| 3852 | cat conftest.$ac_ext >&5 |
| 3853 | rm -rf conftest* |
| 3854 | eval "ac_cv_func_$ac_func=no" |
| 3855 | fi |
| 3856 | rm -f conftest* |
| 3857 | fi |
| 3858 | |
| 3859 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3860 | echo "$ac_t""yes" 1>&6 |
| 3861 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3862 | cat >> confdefs.h <<EOF |
| 3863 | #define $ac_tr_func 1 |
| 3864 | EOF |
| 3865 | |
| 3866 | else |
| 3867 | echo "$ac_t""no" 1>&6 |
| 3868 | echo $ac_n "checking for forkpty in -lutil""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3869 | echo "configure:3870: checking for forkpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3870 | ac_lib_var=`echo util'_'forkpty | sed 'y%./+-%__p_%'` |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3871 | if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3872 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3873 | else |
| 3874 | ac_save_LIBS="$LIBS" |
| 3875 | LIBS="-lutil $LIBS" |
| 3876 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3877 | #line 3878 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3878 | #include "confdefs.h" |
| 3879 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3880 | /* We use char because int might match the return type of a gcc2 |
| 3881 | builtin and then its argument prototype would still apply. */ |
| 3882 | char forkpty(); |
| 3883 | |
| 3884 | int main() { |
| 3885 | forkpty() |
| 3886 | ; return 0; } |
| 3887 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3888 | if { (eval echo configure:3889: \"$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] | 3889 | rm -rf conftest* |
| 3890 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3891 | else |
| 3892 | echo "configure: failed program was:" >&5 |
| 3893 | cat conftest.$ac_ext >&5 |
| 3894 | rm -rf conftest* |
| 3895 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3896 | fi |
| 3897 | rm -f conftest* |
| 3898 | LIBS="$ac_save_LIBS" |
| 3899 | |
| 3900 | fi |
| 3901 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3902 | echo "$ac_t""yes" 1>&6 |
| 3903 | cat >> confdefs.h <<\EOF |
| 3904 | #define HAVE_FORKPTY 1 |
| 3905 | EOF |
| 3906 | LIBS="$LIBS -lutil" |
| 3907 | else |
| 3908 | echo "$ac_t""no" 1>&6 |
| 3909 | fi |
| 3910 | |
| 3911 | fi |
| 3912 | done |
| 3913 | |
| 3914 | |
| 3915 | # check for long file support functions |
| 3916 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 3917 | do |
| 3918 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3919 | echo "configure:3920: checking for $ac_func" >&5 |
| 3920 | if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3921 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3922 | else |
| 3923 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3924 | #line 3925 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3925 | #include "confdefs.h" |
| 3926 | /* System header to define __stub macros and hopefully few prototypes, |
| 3927 | which can conflict with char $ac_func(); below. */ |
| 3928 | #include <assert.h> |
| 3929 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3930 | /* We use char because int might match the return type of a gcc2 |
| 3931 | builtin and then its argument prototype would still apply. */ |
| 3932 | char $ac_func(); |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3933 | char (*f)(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3934 | |
| 3935 | int main() { |
| 3936 | |
| 3937 | /* The GNU C library defines this for functions which it implements |
| 3938 | to always fail with ENOSYS. Some functions are actually named |
| 3939 | something starting with __ and the normal name is an alias. */ |
| 3940 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3941 | choke me |
| 3942 | #else |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3943 | f = $ac_func; |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3944 | #endif |
| 3945 | |
| 3946 | ; return 0; } |
| 3947 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3948 | if { (eval echo configure:3949: \"$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] | 3949 | rm -rf conftest* |
| 3950 | eval "ac_cv_func_$ac_func=yes" |
| 3951 | else |
| 3952 | echo "configure: failed program was:" >&5 |
| 3953 | cat conftest.$ac_ext >&5 |
| 3954 | rm -rf conftest* |
| 3955 | eval "ac_cv_func_$ac_func=no" |
| 3956 | fi |
| 3957 | rm -f conftest* |
| 3958 | fi |
| 3959 | |
| 3960 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3961 | echo "$ac_t""yes" 1>&6 |
| 3962 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3963 | cat >> confdefs.h <<EOF |
| 3964 | #define $ac_tr_func 1 |
| 3965 | EOF |
| 3966 | |
| 3967 | else |
| 3968 | echo "$ac_t""no" 1>&6 |
| 3969 | fi |
| 3970 | done |
| 3971 | |
| 3972 | |
| 3973 | for ac_func in dup2 getcwd strdup strerror memmove |
| 3974 | do |
| 3975 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3976 | echo "configure:3977: checking for $ac_func" >&5 |
| 3977 | if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 3978 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3979 | else |
| 3980 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3981 | #line 3982 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 3982 | #include "confdefs.h" |
| 3983 | /* System header to define __stub macros and hopefully few prototypes, |
| 3984 | which can conflict with char $ac_func(); below. */ |
| 3985 | #include <assert.h> |
| 3986 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3987 | /* We use char because int might match the return type of a gcc2 |
| 3988 | builtin and then its argument prototype would still apply. */ |
| 3989 | char $ac_func(); |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 3990 | char (*f)(); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 3991 | |
| 3992 | int main() { |
| 3993 | |
| 3994 | /* The GNU C library defines this for functions which it implements |
| 3995 | to always fail with ENOSYS. Some functions are actually named |
| 3996 | something starting with __ and the normal name is an alias. */ |
| 3997 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3998 | choke me |
| 3999 | #else |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4000 | f = $ac_func; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4001 | #endif |
| 4002 | |
| 4003 | ; return 0; } |
| 4004 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4005 | if { (eval echo configure:4006: \"$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] | 4006 | rm -rf conftest* |
| 4007 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4008 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4009 | echo "configure: failed program was:" >&5 |
| 4010 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4011 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4012 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4013 | fi |
| 4014 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4015 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4016 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4017 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4018 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4019 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4020 | cat >> confdefs.h <<EOF |
| 4021 | #define $ac_tr_func 1 |
| 4022 | EOF |
| 4023 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4024 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4025 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4026 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4027 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4028 | done |
| 4029 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4030 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4031 | echo $ac_n "checking for getpgrp""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4032 | echo "configure:4033: checking for getpgrp" >&5 |
| 4033 | if eval "test \"\${ac_cv_func_getpgrp+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4034 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4035 | else |
| 4036 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4037 | #line 4038 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4038 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4039 | /* System header to define __stub macros and hopefully few prototypes, |
| 4040 | which can conflict with char getpgrp(); below. */ |
| 4041 | #include <assert.h> |
| 4042 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4043 | /* We use char because int might match the return type of a gcc2 |
| 4044 | builtin and then its argument prototype would still apply. */ |
| 4045 | char getpgrp(); |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4046 | char (*f)(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4047 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4048 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4049 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4050 | /* The GNU C library defines this for functions which it implements |
| 4051 | to always fail with ENOSYS. Some functions are actually named |
| 4052 | something starting with __ and the normal name is an alias. */ |
| 4053 | #if defined (__stub_getpgrp) || defined (__stub___getpgrp) |
| 4054 | choke me |
| 4055 | #else |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4056 | f = getpgrp; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4057 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4058 | |
| 4059 | ; return 0; } |
| 4060 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4061 | if { (eval echo configure:4062: \"$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] | 4062 | rm -rf conftest* |
| 4063 | eval "ac_cv_func_getpgrp=yes" |
| 4064 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4065 | echo "configure: failed program was:" >&5 |
| 4066 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4067 | rm -rf conftest* |
| 4068 | eval "ac_cv_func_getpgrp=no" |
| 4069 | fi |
| 4070 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4071 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4072 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4073 | if eval "test \"`echo '$ac_cv_func_'getpgrp`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4074 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4075 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4076 | #line 4077 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4077 | #include "confdefs.h" |
| 4078 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4079 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4080 | getpgrp(0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4081 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4082 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4083 | if { (eval echo configure:4084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4084 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4085 | cat >> confdefs.h <<\EOF |
| 4086 | #define GETPGRP_HAVE_ARG 1 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4087 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4088 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4089 | else |
| 4090 | echo "configure: failed program was:" >&5 |
| 4091 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4092 | fi |
| 4093 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4094 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4095 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4096 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4097 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4098 | echo $ac_n "checking for setpgrp""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4099 | echo "configure:4100: checking for setpgrp" >&5 |
| 4100 | if eval "test \"\${ac_cv_func_setpgrp+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4101 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4102 | else |
| 4103 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4104 | #line 4105 "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4105 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4106 | /* System header to define __stub macros and hopefully few prototypes, |
| 4107 | which can conflict with char setpgrp(); below. */ |
| 4108 | #include <assert.h> |
| 4109 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4110 | /* We use char because int might match the return type of a gcc2 |
| 4111 | builtin and then its argument prototype would still apply. */ |
| 4112 | char setpgrp(); |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4113 | char (*f)(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4114 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4115 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4116 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4117 | /* The GNU C library defines this for functions which it implements |
| 4118 | to always fail with ENOSYS. Some functions are actually named |
| 4119 | something starting with __ and the normal name is an alias. */ |
| 4120 | #if defined (__stub_setpgrp) || defined (__stub___setpgrp) |
| 4121 | choke me |
| 4122 | #else |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4123 | f = setpgrp; |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4124 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4125 | |
| 4126 | ; return 0; } |
| 4127 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4128 | if { (eval echo configure:4129: \"$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] | 4129 | rm -rf conftest* |
| 4130 | eval "ac_cv_func_setpgrp=yes" |
| 4131 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4132 | echo "configure: failed program was:" >&5 |
| 4133 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4134 | rm -rf conftest* |
| 4135 | eval "ac_cv_func_setpgrp=no" |
| 4136 | fi |
| 4137 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4138 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4139 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4140 | if eval "test \"`echo '$ac_cv_func_'setpgrp`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4141 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4142 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4143 | #line 4144 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4144 | #include "confdefs.h" |
| 4145 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4146 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4147 | setpgrp(0,0); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4148 | ; return 0; } |
| 4149 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4150 | if { (eval echo configure:4151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4151 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4152 | cat >> confdefs.h <<\EOF |
| 4153 | #define SETPGRP_HAVE_ARG 1 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4154 | EOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4155 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4156 | else |
| 4157 | echo "configure: failed program was:" >&5 |
| 4158 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4159 | fi |
| 4160 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4161 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4162 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4163 | fi |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4164 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4165 | echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4166 | echo "configure:4167: checking for gettimeofday" >&5 |
| 4167 | if eval "test \"\${ac_cv_func_gettimeofday+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4168 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4169 | else |
| 4170 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4171 | #line 4172 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4172 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4173 | /* System header to define __stub macros and hopefully few prototypes, |
| 4174 | which can conflict with char gettimeofday(); below. */ |
| 4175 | #include <assert.h> |
| 4176 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4177 | /* We use char because int might match the return type of a gcc2 |
| 4178 | builtin and then its argument prototype would still apply. */ |
| 4179 | char gettimeofday(); |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4180 | char (*f)(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4181 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4182 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4183 | |
| 4184 | /* The GNU C library defines this for functions which it implements |
| 4185 | to always fail with ENOSYS. Some functions are actually named |
| 4186 | something starting with __ and the normal name is an alias. */ |
| 4187 | #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) |
| 4188 | choke me |
| 4189 | #else |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4190 | f = gettimeofday; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4191 | #endif |
| 4192 | |
| 4193 | ; return 0; } |
| 4194 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4195 | if { (eval echo configure:4196: \"$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] | 4196 | rm -rf conftest* |
| 4197 | eval "ac_cv_func_gettimeofday=yes" |
| 4198 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4199 | echo "configure: failed program was:" >&5 |
| 4200 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4201 | rm -rf conftest* |
| 4202 | eval "ac_cv_func_gettimeofday=no" |
| 4203 | fi |
| 4204 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4205 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4206 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4207 | if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4208 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4209 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4210 | #line 4211 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4211 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4212 | #include <sys/time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4213 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4214 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
| 4215 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4216 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4217 | if { (eval echo configure:4218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4218 | : |
| 4219 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4220 | echo "configure: failed program was:" >&5 |
| 4221 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4222 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4223 | cat >> confdefs.h <<\EOF |
| 4224 | #define GETTIMEOFDAY_NO_TZ 1 |
| 4225 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4226 | |
| 4227 | fi |
| 4228 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4229 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4230 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4231 | fi |
| 4232 | |
| 4233 | |
| 4234 | # checks for structures |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4235 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4236 | echo "configure:4237: checking whether time.h and sys/time.h may both be included" >&5 |
| 4237 | if eval "test \"\${ac_cv_header_time+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4238 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4239 | else |
| 4240 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4241 | #line 4242 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4242 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4243 | #include <sys/types.h> |
| 4244 | #include <sys/time.h> |
| 4245 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4246 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4247 | struct tm *tp; |
| 4248 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4249 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4250 | if { (eval echo configure:4251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4251 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4252 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4253 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4254 | echo "configure: failed program was:" >&5 |
| 4255 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4256 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4257 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4258 | fi |
| 4259 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4260 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4261 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4262 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4263 | if test $ac_cv_header_time = yes; then |
| 4264 | cat >> confdefs.h <<\EOF |
| 4265 | #define TIME_WITH_SYS_TIME 1 |
| 4266 | EOF |
| 4267 | |
| 4268 | fi |
| 4269 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4270 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4271 | echo "configure:4272: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 4272 | if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4273 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4274 | else |
| 4275 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4276 | #line 4277 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4277 | #include "confdefs.h" |
| 4278 | #include <sys/types.h> |
| 4279 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4280 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4281 | struct tm *tp; tp->tm_sec; |
| 4282 | ; return 0; } |
| 4283 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4284 | if { (eval echo configure:4285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4285 | rm -rf conftest* |
| 4286 | ac_cv_struct_tm=time.h |
| 4287 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4288 | echo "configure: failed program was:" >&5 |
| 4289 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4290 | rm -rf conftest* |
| 4291 | ac_cv_struct_tm=sys/time.h |
| 4292 | fi |
| 4293 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4294 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4295 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4296 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4297 | if test $ac_cv_struct_tm = sys/time.h; then |
| 4298 | cat >> confdefs.h <<\EOF |
| 4299 | #define TM_IN_SYS_TIME 1 |
| 4300 | EOF |
| 4301 | |
| 4302 | fi |
| 4303 | |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4304 | echo $ac_n "checking for member tm_zone in aggregate type struct tm""... $ac_c" 1>&6 |
| 4305 | echo "configure:4306: checking for member tm_zone in aggregate type struct tm" >&5 |
| 4306 | if eval "test \"\${ac_cv_c_struct_member_tm_zone+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4307 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4308 | else |
| 4309 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4310 | #line 4311 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4311 | #include "confdefs.h" |
| 4312 | #include <sys/types.h> |
| 4313 | #include <$ac_cv_struct_tm> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4314 | int main() { |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4315 | struct tm foo; foo.tm_zone; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4316 | ; return 0; } |
| 4317 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4318 | if { (eval echo configure:4319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4319 | rm -rf conftest* |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4320 | ac_cv_c_struct_member_tm_zone=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4321 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4322 | echo "configure: failed program was:" >&5 |
| 4323 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4324 | rm -rf conftest* |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4325 | ac_cv_c_struct_member_tm_zone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4326 | fi |
| 4327 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4328 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4329 | |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4330 | echo "$ac_t""$ac_cv_c_struct_member_tm_zone" 1>&6 |
| 4331 | tm_zone="$ac_cv_c_struct_member_tm_zone" |
| 4332 | if test "$ac_cv_c_struct_member_tm_zone" = yes; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4333 | cat >> confdefs.h <<\EOF |
| 4334 | #define HAVE_TM_ZONE 1 |
| 4335 | EOF |
| 4336 | |
| 4337 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4338 | echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4339 | echo "configure:4340: checking for tzname" >&5 |
| 4340 | if eval "test \"\${ac_cv_var_tzname+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4341 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4342 | else |
| 4343 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4344 | #line 4345 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4345 | #include "confdefs.h" |
| 4346 | #include <time.h> |
| 4347 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4348 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4349 | #endif |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4350 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4351 | atoi(*tzname); |
| 4352 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4353 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4354 | if { (eval echo configure:4355: \"$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] | 4355 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4356 | ac_cv_var_tzname=yes |
| 4357 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4358 | echo "configure: failed program was:" >&5 |
| 4359 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4360 | rm -rf conftest* |
| 4361 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4362 | fi |
| 4363 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4364 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4365 | |
| 4366 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4367 | if test $ac_cv_var_tzname = yes; then |
| 4368 | cat >> confdefs.h <<\EOF |
| 4369 | #define HAVE_TZNAME 1 |
| 4370 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4371 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4372 | fi |
| 4373 | fi |
| 4374 | |
| 4375 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4376 | echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4377 | echo "configure:4378: checking for time.h that defines altzone" >&5 |
| 4378 | if eval "test \"\${ac_cv_header_time_altzone+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4379 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4380 | else |
| 4381 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4382 | #line 4383 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4383 | #include "confdefs.h" |
| 4384 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4385 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4386 | return altzone; |
| 4387 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4388 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4389 | if { (eval echo configure:4390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4390 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4391 | ac_cv_header_time_altzone=yes |
| 4392 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4393 | echo "configure: failed program was:" >&5 |
| 4394 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4395 | rm -rf conftest* |
| 4396 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4397 | fi |
| 4398 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4399 | fi |
| 4400 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4401 | echo "$ac_t""$ac_cv_header_time_altzone" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4402 | if test $ac_cv_header_time_altzone = yes; then |
| 4403 | cat >> confdefs.h <<\EOF |
| 4404 | #define HAVE_ALTZONE 1 |
| 4405 | EOF |
| 4406 | |
| 4407 | fi |
| 4408 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4409 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4410 | echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4411 | echo "configure:4412: 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] | 4412 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4413 | #line 4414 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4414 | #include "confdefs.h" |
| 4415 | |
| 4416 | #include <sys/types.h> |
| 4417 | #include <sys/select.h> |
| 4418 | #include <sys/time.h> |
| 4419 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4420 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4421 | ; |
| 4422 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4423 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4424 | if { (eval echo configure:4425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4425 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4426 | cat >> confdefs.h <<\EOF |
| 4427 | #define SYS_SELECT_WITH_SYS_TIME 1 |
| 4428 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4429 | was_it_defined=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4430 | else |
| 4431 | echo "configure: failed program was:" >&5 |
| 4432 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4433 | fi |
| 4434 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4435 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4436 | |
| 4437 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4438 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4439 | echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4440 | echo "configure:4441: checking whether char is unsigned" >&5 |
| 4441 | if eval "test \"\${ac_cv_c_char_unsigned+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4442 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4443 | else |
| 4444 | if test "$GCC" = yes; then |
| 4445 | # GCC predefines this symbol on systems where it applies. |
| 4446 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4447 | #line 4448 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4448 | #include "confdefs.h" |
| 4449 | #ifdef __CHAR_UNSIGNED__ |
| 4450 | yes |
| 4451 | #endif |
| 4452 | |
| 4453 | EOF |
| 4454 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4455 | egrep "yes" >/dev/null 2>&1; then |
| 4456 | rm -rf conftest* |
| 4457 | ac_cv_c_char_unsigned=yes |
| 4458 | else |
| 4459 | rm -rf conftest* |
| 4460 | ac_cv_c_char_unsigned=no |
| 4461 | fi |
| 4462 | rm -f conftest* |
| 4463 | |
| 4464 | else |
| 4465 | if test "$cross_compiling" = yes; then |
| 4466 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 4467 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4468 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4469 | #line 4470 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4470 | #include "confdefs.h" |
| 4471 | /* volatile prevents gcc2 from optimizing the test away on sparcs. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4472 | #if !defined(__STDC__) || __STDC__ != 1 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4473 | #define volatile |
| 4474 | #endif |
| 4475 | main() { |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4476 | volatile char c = 255; exit(c < 0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4477 | } |
| 4478 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4479 | if { (eval echo configure:4480: \"$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] | 4480 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4481 | ac_cv_c_char_unsigned=yes |
| 4482 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4483 | echo "configure: failed program was:" >&5 |
| 4484 | cat conftest.$ac_ext >&5 |
| 4485 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4486 | ac_cv_c_char_unsigned=no |
| 4487 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4488 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4489 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4490 | |
| 4491 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4492 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4493 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4494 | echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4495 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
| 4496 | cat >> confdefs.h <<\EOF |
| 4497 | #define __CHAR_UNSIGNED__ 1 |
| 4498 | EOF |
| 4499 | |
| 4500 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4501 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4502 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4503 | echo "configure:4504: checking for working const" >&5 |
| 4504 | if eval "test \"\${ac_cv_c_const+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4505 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4506 | else |
| 4507 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4508 | #line 4509 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4509 | #include "confdefs.h" |
| 4510 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4511 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4512 | |
| 4513 | /* Ultrix mips cc rejects this. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4514 | typedef int charset[2]; const charset x; |
| 4515 | /* SunOS 4.1.1 cc rejects this. */ |
| 4516 | char const *const *ccp; |
| 4517 | char **p; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4518 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 4519 | struct point {int x, y;}; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4520 | static struct point const zero = {0,0}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4521 | /* AIX XL C 1.02.0.0 rejects this. |
| 4522 | It does not let you subtract one const X* pointer from another in an arm |
| 4523 | of an if-expression whose if-part is not a constant expression */ |
| 4524 | const char *g = "string"; |
| 4525 | ccp = &g + (g ? g-g : 0); |
| 4526 | /* HPUX 7.0 cc rejects these. */ |
| 4527 | ++ccp; |
| 4528 | p = (char**) ccp; |
| 4529 | ccp = (char const *const *) p; |
| 4530 | { /* SCO 3.2v4 cc rejects this. */ |
| 4531 | char *t; |
| 4532 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 4533 | |
| 4534 | *t++ = 0; |
| 4535 | } |
| 4536 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4537 | int x[] = {25, 17}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4538 | const int *foo = &x[0]; |
| 4539 | ++foo; |
| 4540 | } |
| 4541 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 4542 | typedef const int *iptr; |
| 4543 | iptr p = 0; |
| 4544 | ++p; |
| 4545 | } |
| 4546 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 4547 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 4548 | struct s { int j; const int *ap[3]; }; |
| 4549 | struct s *b; b->j = 5; |
| 4550 | } |
| 4551 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 4552 | const int foo = 10; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4553 | } |
| 4554 | |
| 4555 | ; return 0; } |
| 4556 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4557 | if { (eval echo configure:4558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4558 | rm -rf conftest* |
| 4559 | ac_cv_c_const=yes |
| 4560 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4561 | echo "configure: failed program was:" >&5 |
| 4562 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4563 | rm -rf conftest* |
| 4564 | ac_cv_c_const=no |
| 4565 | fi |
| 4566 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4567 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4568 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4569 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4570 | if test $ac_cv_c_const = no; then |
| 4571 | cat >> confdefs.h <<\EOF |
| 4572 | #define const |
| 4573 | EOF |
| 4574 | |
| 4575 | fi |
| 4576 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4577 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4578 | echo "configure:4579: checking for inline" >&5 |
| 4579 | if eval "test \"\${ac_cv_c_inline+set}\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4580 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4581 | else |
| 4582 | ac_cv_c_inline=no |
| 4583 | for ac_kw in inline __inline__ __inline; do |
| 4584 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4585 | #line 4586 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4586 | #include "confdefs.h" |
| 4587 | |
| 4588 | int main() { |
| 4589 | } $ac_kw foo() { |
| 4590 | ; return 0; } |
| 4591 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4592 | if { (eval echo configure:4593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4593 | rm -rf conftest* |
| 4594 | ac_cv_c_inline=$ac_kw; break |
| 4595 | else |
| 4596 | echo "configure: failed program was:" >&5 |
| 4597 | cat conftest.$ac_ext >&5 |
| 4598 | fi |
| 4599 | rm -f conftest* |
| 4600 | done |
| 4601 | |
| 4602 | fi |
| 4603 | |
| 4604 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
| 4605 | case "$ac_cv_c_inline" in |
| 4606 | inline | yes) ;; |
| 4607 | no) cat >> confdefs.h <<\EOF |
| 4608 | #define inline |
| 4609 | EOF |
| 4610 | ;; |
| 4611 | *) cat >> confdefs.h <<EOF |
| 4612 | #define inline $ac_cv_c_inline |
| 4613 | EOF |
| 4614 | ;; |
| 4615 | esac |
| 4616 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4617 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4618 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4619 | echo $ac_n "checking for working volatile""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4620 | echo "configure:4621: checking for working volatile" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4621 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4622 | #line 4623 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4623 | #include "confdefs.h" |
| 4624 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4625 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4626 | volatile int x; x = 0; |
| 4627 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4628 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4629 | if { (eval echo configure:4630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4630 | rm -rf conftest* |
| 4631 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4632 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4633 | echo "configure: failed program was:" >&5 |
| 4634 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4635 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4636 | cat >> confdefs.h <<\EOF |
| 4637 | #define volatile |
| 4638 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4639 | |
| 4640 | fi |
| 4641 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4642 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4643 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4644 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4645 | echo $ac_n "checking for working signed char""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4646 | echo "configure:4647: checking for working signed char" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4647 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4648 | #line 4649 "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4649 | #include "confdefs.h" |
| 4650 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4651 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4652 | signed char c; |
| 4653 | ; return 0; } |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4654 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4655 | if { (eval echo configure:4656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4656 | rm -rf conftest* |
| 4657 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4658 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4659 | echo "configure: failed program was:" >&5 |
| 4660 | cat conftest.$ac_ext >&5 |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4661 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4662 | cat >> confdefs.h <<\EOF |
| 4663 | #define signed |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4664 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4665 | |
| 4666 | fi |
| 4667 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4668 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4669 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4670 | have_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4671 | echo $ac_n "checking for prototypes""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4672 | echo "configure:4673: checking for prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4673 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4674 | #line 4675 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4675 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4676 | int foo(int x) { return 0; } |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4677 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4678 | return foo(10); |
| 4679 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4680 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4681 | if { (eval echo configure:4682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4682 | rm -rf conftest* |
| 4683 | cat >> confdefs.h <<\EOF |
| 4684 | #define HAVE_PROTOTYPES 1 |
| 4685 | EOF |
| 4686 | have_prototypes=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4687 | else |
| 4688 | echo "configure: failed program was:" >&5 |
| 4689 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4690 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4691 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4692 | echo "$ac_t""$have_prototypes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4693 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4694 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4695 | echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4696 | echo "configure:4697: checking for variable length prototypes and stdarg.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4697 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4698 | #line 4699 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4699 | #include "confdefs.h" |
| 4700 | |
| 4701 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 4702 | int foo(int x, ...) { |
| 4703 | va_list va; |
| 4704 | va_start(va, x); |
| 4705 | va_arg(va, int); |
| 4706 | va_arg(va, char *); |
| 4707 | va_arg(va, double); |
| 4708 | return 0; |
| 4709 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4710 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4711 | int main() { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 4712 | return foo(10, "", 3.14); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4713 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4714 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4715 | if { (eval echo configure:4716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4716 | rm -rf conftest* |
| 4717 | cat >> confdefs.h <<\EOF |
| 4718 | #define HAVE_STDARG_PROTOTYPES 1 |
| 4719 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4720 | works=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4721 | else |
| 4722 | echo "configure: failed program was:" >&5 |
| 4723 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4724 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4725 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4726 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4727 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4728 | if test "$have_prototypes" = yes; then |
| 4729 | bad_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4730 | echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4731 | echo "configure:4732: checking for bad exec* prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4732 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4733 | #line 4734 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4734 | #include "confdefs.h" |
| 4735 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4736 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4737 | char **t;execve("@",t,t); |
| 4738 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4739 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4740 | if { (eval echo configure:4741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4741 | : |
| 4742 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4743 | echo "configure: failed program was:" >&5 |
| 4744 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4745 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4746 | cat >> confdefs.h <<\EOF |
| 4747 | #define BAD_EXEC_PROTOTYPES 1 |
| 4748 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4749 | bad_prototypes=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4750 | fi |
| 4751 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4752 | echo "$ac_t""$bad_prototypes" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4753 | fi |
| 4754 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4755 | bad_forward=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4756 | echo $ac_n "checking for bad static forward""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4757 | echo "configure:4758: checking for bad static forward" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4758 | if test "$cross_compiling" = yes; then |
| 4759 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 4760 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4761 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4762 | #line 4763 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4763 | #include "confdefs.h" |
| 4764 | |
| 4765 | struct s { int a; int b; }; |
| 4766 | static struct s foo; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4767 | int foobar() { |
| 4768 | static int random; |
| 4769 | random = (int) &foo; |
| 4770 | return random; |
| 4771 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4772 | static struct s foo = { 1, 2 }; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4773 | main() { |
| 4774 | exit(!((int)&foo == foobar())); |
| 4775 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4776 | |
| 4777 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4778 | if { (eval echo configure:4779: \"$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] | 4779 | then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4780 | : |
| 4781 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4782 | echo "configure: failed program was:" >&5 |
| 4783 | cat conftest.$ac_ext >&5 |
| 4784 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4785 | cat >> confdefs.h <<\EOF |
| 4786 | #define BAD_STATIC_FORWARD 1 |
| 4787 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4788 | bad_forward=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4789 | fi |
| 4790 | rm -fr conftest* |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4791 | fi |
| 4792 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4793 | echo "$ac_t""$bad_forward" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4794 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4795 | va_list_is_array=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4796 | echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4797 | echo "configure:4798: checking whether va_list is an array" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4798 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4799 | #line 4800 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4800 | #include "confdefs.h" |
| 4801 | |
| 4802 | #ifdef HAVE_STDARG_PROTOTYPES |
| 4803 | #include <stdarg.h> |
| 4804 | #else |
| 4805 | #include <varargs.h> |
| 4806 | #endif |
| 4807 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4808 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4809 | va_list list1, list2; list1 = list2; |
| 4810 | ; return 0; } |
| 4811 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4812 | if { (eval echo configure:4813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4813 | : |
| 4814 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4815 | echo "configure: failed program was:" >&5 |
| 4816 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4817 | rm -rf conftest* |
| 4818 | cat >> confdefs.h <<\EOF |
| 4819 | #define VA_LIST_IS_ARRAY 1 |
| 4820 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4821 | va_list_is_array=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4822 | fi |
| 4823 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4824 | echo "$ac_t""$va_list_is_array" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4825 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4826 | # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( |
| 4827 | echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4828 | echo "configure:4829: checking for gethostbyname_r" >&5 |
| 4829 | if eval "test \"\${ac_cv_func_gethostbyname_r+set}\" = set"; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4830 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4831 | else |
| 4832 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4833 | #line 4834 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4834 | #include "confdefs.h" |
| 4835 | /* System header to define __stub macros and hopefully few prototypes, |
| 4836 | which can conflict with char gethostbyname_r(); below. */ |
| 4837 | #include <assert.h> |
| 4838 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4839 | /* We use char because int might match the return type of a gcc2 |
| 4840 | builtin and then its argument prototype would still apply. */ |
| 4841 | char gethostbyname_r(); |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4842 | char (*f)(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4843 | |
| 4844 | int main() { |
| 4845 | |
| 4846 | /* The GNU C library defines this for functions which it implements |
| 4847 | to always fail with ENOSYS. Some functions are actually named |
| 4848 | something starting with __ and the normal name is an alias. */ |
| 4849 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 4850 | choke me |
| 4851 | #else |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4852 | f = gethostbyname_r; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4853 | #endif |
| 4854 | |
| 4855 | ; return 0; } |
| 4856 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4857 | if { (eval echo configure:4858: \"$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] | 4858 | rm -rf conftest* |
| 4859 | eval "ac_cv_func_gethostbyname_r=yes" |
| 4860 | else |
| 4861 | echo "configure: failed program was:" >&5 |
| 4862 | cat conftest.$ac_ext >&5 |
| 4863 | rm -rf conftest* |
| 4864 | eval "ac_cv_func_gethostbyname_r=no" |
| 4865 | fi |
| 4866 | rm -f conftest* |
| 4867 | fi |
| 4868 | |
| 4869 | if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then |
| 4870 | echo "$ac_t""yes" 1>&6 |
| 4871 | |
| 4872 | cat >> confdefs.h <<\EOF |
| 4873 | #define HAVE_GETHOSTBYNAME_R 1 |
| 4874 | EOF |
| 4875 | |
| 4876 | echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4877 | echo "configure:4878: checking gethostbyname_r with 6 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4878 | OLD_CFLAGS=$CFLAGS |
| 4879 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
| 4880 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4881 | #line 4882 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4882 | #include "confdefs.h" |
| 4883 | |
| 4884 | # include <netdb.h> |
| 4885 | |
| 4886 | int main() { |
| 4887 | |
| 4888 | char *name; |
| 4889 | struct hostent *he, *res; |
| 4890 | char buffer[2048]; |
| 4891 | int buflen = 2048; |
| 4892 | int h_errnop; |
| 4893 | |
| 4894 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
| 4895 | |
| 4896 | ; return 0; } |
| 4897 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4898 | if { (eval echo configure:4899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4899 | rm -rf conftest* |
| 4900 | |
| 4901 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 4902 | #define HAVE_GETHOSTBYNAME_R 1 |
| 4903 | EOF |
| 4904 | |
| 4905 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4906 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
| 4907 | EOF |
| 4908 | |
| 4909 | echo "$ac_t""yes" 1>&6 |
| 4910 | |
| 4911 | else |
| 4912 | echo "configure: failed program was:" >&5 |
| 4913 | cat conftest.$ac_ext >&5 |
| 4914 | rm -rf conftest* |
| 4915 | |
| 4916 | echo "$ac_t""no" 1>&6 |
| 4917 | echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4918 | echo "configure:4919: checking gethostbyname_r with 5 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4919 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4920 | #line 4921 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4921 | #include "confdefs.h" |
| 4922 | |
| 4923 | # include <netdb.h> |
| 4924 | |
| 4925 | int main() { |
| 4926 | |
| 4927 | char *name; |
| 4928 | struct hostent *he; |
| 4929 | char buffer[2048]; |
| 4930 | int buflen = 2048; |
| 4931 | int h_errnop; |
| 4932 | |
| 4933 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
| 4934 | |
| 4935 | ; return 0; } |
| 4936 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4937 | if { (eval echo configure:4938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4938 | rm -rf conftest* |
| 4939 | |
| 4940 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 4941 | #define HAVE_GETHOSTBYNAME_R 1 |
| 4942 | EOF |
| 4943 | |
| 4944 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4945 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
| 4946 | EOF |
| 4947 | |
| 4948 | echo "$ac_t""yes" 1>&6 |
| 4949 | |
| 4950 | else |
| 4951 | echo "configure: failed program was:" >&5 |
| 4952 | cat conftest.$ac_ext >&5 |
| 4953 | rm -rf conftest* |
| 4954 | |
| 4955 | echo "$ac_t""no" 1>&6 |
| 4956 | echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4957 | echo "configure:4958: checking gethostbyname_r with 3 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4958 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4959 | #line 4960 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4960 | #include "confdefs.h" |
| 4961 | |
| 4962 | # include <netdb.h> |
| 4963 | |
| 4964 | int main() { |
| 4965 | |
| 4966 | char *name; |
| 4967 | struct hostent *he; |
| 4968 | struct hostent_data data; |
| 4969 | |
| 4970 | (void) gethostbyname_r(name, he, &data); |
| 4971 | |
| 4972 | ; return 0; } |
| 4973 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 4974 | if { (eval echo configure:4975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4975 | rm -rf conftest* |
| 4976 | |
| 4977 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 4978 | #define HAVE_GETHOSTBYNAME_R 1 |
| 4979 | EOF |
| 4980 | |
| 4981 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4982 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
| 4983 | EOF |
| 4984 | |
| 4985 | echo "$ac_t""yes" 1>&6 |
| 4986 | |
| 4987 | else |
| 4988 | echo "configure: failed program was:" >&5 |
| 4989 | cat conftest.$ac_ext >&5 |
| 4990 | rm -rf conftest* |
| 4991 | |
| 4992 | echo "$ac_t""no" 1>&6 |
| 4993 | |
| 4994 | fi |
| 4995 | rm -f conftest* |
| 4996 | |
| 4997 | fi |
| 4998 | rm -f conftest* |
| 4999 | |
| 5000 | fi |
| 5001 | rm -f conftest* |
| 5002 | CFLAGS=$OLD_CFLAGS |
| 5003 | |
| 5004 | else |
| 5005 | echo "$ac_t""no" 1>&6 |
| 5006 | |
| 5007 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5008 | echo "configure:5009: checking for gethostbyname" >&5 |
| 5009 | if eval "test \"\${ac_cv_func_gethostbyname+set}\" = set"; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5010 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5011 | else |
| 5012 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5013 | #line 5014 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5014 | #include "confdefs.h" |
| 5015 | /* System header to define __stub macros and hopefully few prototypes, |
| 5016 | which can conflict with char gethostbyname(); below. */ |
| 5017 | #include <assert.h> |
| 5018 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5019 | /* We use char because int might match the return type of a gcc2 |
| 5020 | builtin and then its argument prototype would still apply. */ |
| 5021 | char gethostbyname(); |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5022 | char (*f)(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5023 | |
| 5024 | int main() { |
| 5025 | |
| 5026 | /* The GNU C library defines this for functions which it implements |
| 5027 | to always fail with ENOSYS. Some functions are actually named |
| 5028 | something starting with __ and the normal name is an alias. */ |
| 5029 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 5030 | choke me |
| 5031 | #else |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5032 | f = gethostbyname; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5033 | #endif |
| 5034 | |
| 5035 | ; return 0; } |
| 5036 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5037 | if { (eval echo configure:5038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5038 | rm -rf conftest* |
| 5039 | eval "ac_cv_func_gethostbyname=yes" |
| 5040 | else |
| 5041 | echo "configure: failed program was:" >&5 |
| 5042 | cat conftest.$ac_ext >&5 |
| 5043 | rm -rf conftest* |
| 5044 | eval "ac_cv_func_gethostbyname=no" |
| 5045 | fi |
| 5046 | rm -f conftest* |
| 5047 | fi |
| 5048 | |
| 5049 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
| 5050 | echo "$ac_t""yes" 1>&6 |
| 5051 | cat >> confdefs.h <<\EOF |
| 5052 | #define HAVE_GETHOSTBYNAME 1 |
| 5053 | EOF |
| 5054 | |
| 5055 | else |
| 5056 | echo "$ac_t""no" 1>&6 |
| 5057 | fi |
| 5058 | |
| 5059 | |
| 5060 | fi |
| 5061 | |
| 5062 | |
| 5063 | |
| 5064 | |
| 5065 | |
| 5066 | |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5067 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5068 | # checks for system services |
| 5069 | # (none yet) |
| 5070 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5071 | # Linux requires this for correct f.p. operations |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5072 | echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5073 | echo "configure:5074: checking for __fpu_control in -lieee" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5074 | ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'` |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5075 | if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5076 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5077 | else |
| 5078 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5079 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5080 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5081 | #line 5082 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5082 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5083 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5084 | /* We use char because int might match the return type of a gcc2 |
| 5085 | builtin and then its argument prototype would still apply. */ |
| 5086 | char __fpu_control(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5087 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5088 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5089 | __fpu_control() |
| 5090 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5091 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5092 | if { (eval echo configure:5093: \"$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] | 5093 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5094 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5095 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5096 | echo "configure: failed program was:" >&5 |
| 5097 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5098 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5099 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5100 | fi |
| 5101 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5102 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5103 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5104 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5105 | 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] | 5106 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5107 | ac_tr_lib=HAVE_LIB`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 5108 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5109 | cat >> confdefs.h <<EOF |
| 5110 | #define $ac_tr_lib 1 |
| 5111 | EOF |
| 5112 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5113 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5114 | |
| 5115 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5116 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5117 | fi |
| 5118 | |
| 5119 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5120 | # Check for --with-fpectl |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5121 | echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5122 | echo "configure:5123: checking for --with-fpectl" >&5 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5123 | # Check whether --with-fpectl or --without-fpectl was given. |
| 5124 | if test "${with_fpectl+set}" = set; then |
| 5125 | withval="$with_fpectl" |
| 5126 | |
| 5127 | if test "$withval" != no |
| 5128 | then cat >> confdefs.h <<\EOF |
| 5129 | #define WANT_SIGFPE_HANDLER 1 |
| 5130 | EOF |
| 5131 | echo "$ac_t""yes" 1>&6 |
| 5132 | else echo "$ac_t""no" 1>&6 |
| 5133 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5134 | else |
| 5135 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5136 | fi |
| 5137 | |
| 5138 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5139 | # check for --with-libm=... |
| 5140 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 5141 | case $ac_sys_system in |
| 5142 | next) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 5143 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 5144 | *) LIBM=-lm |
| 5145 | esac |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5146 | echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5147 | echo "configure:5148: checking for --with-libm=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5148 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5149 | if test "${with_libm+set}" = set; then |
| 5150 | withval="$with_libm" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5151 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5152 | if test "$withval" = no |
| 5153 | then LIBM= |
| 5154 | echo "$ac_t""force LIBM empty" 1>&6 |
| 5155 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5156 | then LIBM=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5157 | echo "$ac_t""set LIBM=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5158 | 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] | 5159 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5160 | else |
| 5161 | echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5162 | fi |
| 5163 | |
| 5164 | |
| 5165 | # check for --with-libc=... |
| 5166 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5167 | echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5168 | echo "configure:5169: checking for --with-libc=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5169 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5170 | if test "${with_libc+set}" = set; then |
| 5171 | withval="$with_libc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5172 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5173 | if test "$withval" = no |
| 5174 | then LIBC= |
| 5175 | echo "$ac_t""force LIBC empty" 1>&6 |
| 5176 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5177 | then LIBC=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5178 | echo "$ac_t""set LIBC=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5179 | 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] | 5180 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5181 | else |
| 5182 | echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5183 | fi |
| 5184 | |
| 5185 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5186 | # check for hypot() in math library |
| 5187 | LIBS_SAVE=$LIBS |
| 5188 | LIBS="$LIBS $LIBM" |
| 5189 | for ac_func in hypot |
| 5190 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5191 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5192 | echo "configure:5193: checking for $ac_func" >&5 |
| 5193 | if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5194 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5195 | else |
| 5196 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5197 | #line 5198 "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5198 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5199 | /* System header to define __stub macros and hopefully few prototypes, |
| 5200 | which can conflict with char $ac_func(); below. */ |
| 5201 | #include <assert.h> |
| 5202 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5203 | /* We use char because int might match the return type of a gcc2 |
| 5204 | builtin and then its argument prototype would still apply. */ |
| 5205 | char $ac_func(); |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5206 | char (*f)(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5207 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5208 | int main() { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5209 | |
| 5210 | /* The GNU C library defines this for functions which it implements |
| 5211 | to always fail with ENOSYS. Some functions are actually named |
| 5212 | something starting with __ and the normal name is an alias. */ |
| 5213 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5214 | choke me |
| 5215 | #else |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5216 | f = $ac_func; |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5217 | #endif |
| 5218 | |
| 5219 | ; return 0; } |
| 5220 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5221 | if { (eval echo configure:5222: \"$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] | 5222 | rm -rf conftest* |
| 5223 | eval "ac_cv_func_$ac_func=yes" |
| 5224 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5225 | echo "configure: failed program was:" >&5 |
| 5226 | cat conftest.$ac_ext >&5 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5227 | rm -rf conftest* |
| 5228 | eval "ac_cv_func_$ac_func=no" |
| 5229 | fi |
| 5230 | rm -f conftest* |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5231 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5232 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5233 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5234 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5235 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5236 | cat >> confdefs.h <<EOF |
| 5237 | #define $ac_tr_func 1 |
| 5238 | EOF |
| 5239 | |
| 5240 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5241 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5242 | fi |
| 5243 | done |
| 5244 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5245 | for ac_func in hypot |
| 5246 | do |
| 5247 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5248 | echo "configure:5249: checking for $ac_func" >&5 |
| 5249 | if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5250 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5251 | else |
| 5252 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5253 | #line 5254 "configure" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5254 | #include "confdefs.h" |
| 5255 | /* System header to define __stub macros and hopefully few prototypes, |
| 5256 | which can conflict with char $ac_func(); below. */ |
| 5257 | #include <assert.h> |
| 5258 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5259 | /* We use char because int might match the return type of a gcc2 |
| 5260 | builtin and then its argument prototype would still apply. */ |
| 5261 | char $ac_func(); |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5262 | char (*f)(); |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5263 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5264 | int main() { |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5265 | |
| 5266 | /* The GNU C library defines this for functions which it implements |
| 5267 | to always fail with ENOSYS. Some functions are actually named |
| 5268 | something starting with __ and the normal name is an alias. */ |
| 5269 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5270 | choke me |
| 5271 | #else |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5272 | f = $ac_func; |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5273 | #endif |
| 5274 | |
| 5275 | ; return 0; } |
| 5276 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5277 | if { (eval echo configure:5278: \"$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] | 5278 | rm -rf conftest* |
| 5279 | eval "ac_cv_func_$ac_func=yes" |
| 5280 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5281 | echo "configure: failed program was:" >&5 |
| 5282 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5283 | rm -rf conftest* |
| 5284 | eval "ac_cv_func_$ac_func=no" |
| 5285 | fi |
| 5286 | rm -f conftest* |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5287 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5288 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5289 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5290 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5291 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5292 | cat >> confdefs.h <<EOF |
| 5293 | #define $ac_tr_func 1 |
| 5294 | EOF |
| 5295 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5296 | else |
| 5297 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5298 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5299 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5300 | done |
| 5301 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5302 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5303 | LIBS=$LIBS_SAVE |
| 5304 | |
Guido van Rossum | a28518a | 2000-05-11 18:41:32 +0000 | [diff] [blame] | 5305 | # check for rint() in math library |
| 5306 | LIBS_SAVE=$LIBS |
| 5307 | LIBS="$LIBS $LIBM" |
| 5308 | for ac_func in rint |
| 5309 | do |
| 5310 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5311 | echo "configure:5312: checking for $ac_func" >&5 |
| 5312 | if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then |
Guido van Rossum | a28518a | 2000-05-11 18:41:32 +0000 | [diff] [blame] | 5313 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5314 | else |
| 5315 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5316 | #line 5317 "configure" |
Guido van Rossum | a28518a | 2000-05-11 18:41:32 +0000 | [diff] [blame] | 5317 | #include "confdefs.h" |
| 5318 | /* System header to define __stub macros and hopefully few prototypes, |
| 5319 | which can conflict with char $ac_func(); below. */ |
| 5320 | #include <assert.h> |
| 5321 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5322 | /* We use char because int might match the return type of a gcc2 |
| 5323 | builtin and then its argument prototype would still apply. */ |
| 5324 | char $ac_func(); |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5325 | char (*f)(); |
Guido van Rossum | a28518a | 2000-05-11 18:41:32 +0000 | [diff] [blame] | 5326 | |
| 5327 | int main() { |
| 5328 | |
| 5329 | /* The GNU C library defines this for functions which it implements |
| 5330 | to always fail with ENOSYS. Some functions are actually named |
| 5331 | something starting with __ and the normal name is an alias. */ |
| 5332 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5333 | choke me |
| 5334 | #else |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5335 | f = $ac_func; |
Guido van Rossum | a28518a | 2000-05-11 18:41:32 +0000 | [diff] [blame] | 5336 | #endif |
| 5337 | |
| 5338 | ; return 0; } |
| 5339 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5340 | if { (eval echo configure:5341: \"$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] | 5341 | rm -rf conftest* |
| 5342 | eval "ac_cv_func_$ac_func=yes" |
| 5343 | else |
| 5344 | echo "configure: failed program was:" >&5 |
| 5345 | cat conftest.$ac_ext >&5 |
| 5346 | rm -rf conftest* |
| 5347 | eval "ac_cv_func_$ac_func=no" |
| 5348 | fi |
| 5349 | rm -f conftest* |
| 5350 | fi |
| 5351 | |
| 5352 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5353 | echo "$ac_t""yes" 1>&6 |
| 5354 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5355 | cat >> confdefs.h <<EOF |
| 5356 | #define $ac_tr_func 1 |
| 5357 | EOF |
| 5358 | |
| 5359 | else |
| 5360 | echo "$ac_t""no" 1>&6 |
| 5361 | fi |
| 5362 | done |
| 5363 | |
| 5364 | LIBS=$LIBS_SAVE |
| 5365 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5366 | # check for getopt |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5367 | echo $ac_n "checking for genuine getopt""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5368 | echo "configure:5369: checking for genuine getopt" >&5 |
| 5369 | if eval "test \"\${ac_cv_func_getopt+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5370 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5371 | else |
| 5372 | if test "$cross_compiling" = yes; then |
| 5373 | ac_cv_func_getopt=no |
| 5374 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5375 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5376 | #line 5377 "configure" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5377 | #include "confdefs.h" |
| 5378 | #include <stdio.h> |
| 5379 | extern int optind, opterr, getopt(); |
| 5380 | extern char* optarg; |
| 5381 | int main() { |
| 5382 | char* av[] = { "testprog", "parameter", "-fFlag", NULL }; |
| 5383 | opterr = 0; |
| 5384 | if (getopt(3, av, "f:") == 'f') { exit(1); } |
| 5385 | exit(0); |
| 5386 | } |
| 5387 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5388 | if { (eval echo configure:5389: \"$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] | 5389 | then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5390 | ac_cv_func_getopt=yes |
| 5391 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5392 | echo "configure: failed program was:" >&5 |
| 5393 | cat conftest.$ac_ext >&5 |
| 5394 | rm -fr conftest* |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5395 | ac_cv_func_getopt=no |
| 5396 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5397 | rm -fr conftest* |
| 5398 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5399 | |
| 5400 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5401 | echo "$ac_t""$ac_cv_func_getopt" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5402 | test $ac_cv_func_getopt = no && LIBOBJS="$LIBOBJS getopt.o" |
| 5403 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5404 | # check whether malloc(0) returns NULL or not |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5405 | echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5406 | echo "configure:5407: checking what malloc(0) returns" >&5 |
| 5407 | if eval "test \"\${ac_cv_malloc_zero+set}\" = set"; then |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5408 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5409 | else |
| 5410 | if test "$cross_compiling" = yes; then |
| 5411 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5412 | else |
| 5413 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5414 | #line 5415 "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5415 | #include "confdefs.h" |
| 5416 | #include <stdio.h> |
| 5417 | #ifdef HAVE_STDLIB |
| 5418 | #include <stdlib.h> |
| 5419 | #else |
| 5420 | char *malloc(), *realloc(); |
| 5421 | int *free(); |
| 5422 | #endif |
| 5423 | main() { |
| 5424 | char *p; |
| 5425 | p = malloc(0); |
| 5426 | if (p == NULL) exit(1); |
| 5427 | p = realloc(p, 0); |
| 5428 | if (p == NULL) exit(1); |
| 5429 | free(p); |
| 5430 | exit(0); |
| 5431 | } |
| 5432 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5433 | if { (eval echo configure:5434: \"$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] | 5434 | then |
| 5435 | ac_cv_malloc_zero=nonnull |
| 5436 | else |
| 5437 | echo "configure: failed program was:" >&5 |
| 5438 | cat conftest.$ac_ext >&5 |
| 5439 | rm -fr conftest* |
| 5440 | ac_cv_malloc_zero=null |
| 5441 | fi |
| 5442 | rm -fr conftest* |
| 5443 | fi |
| 5444 | |
| 5445 | fi |
| 5446 | |
| 5447 | echo "$ac_t""$ac_cv_malloc_zero" 1>&6 |
| 5448 | if test "$ac_cv_malloc_zero" = null |
| 5449 | then |
| 5450 | cat >> confdefs.h <<\EOF |
| 5451 | #define MALLOC_ZERO_RETURNS_NULL 1 |
| 5452 | EOF |
| 5453 | |
| 5454 | fi |
| 5455 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5456 | # check for wchar.h |
| 5457 | ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'` |
| 5458 | echo $ac_n "checking for wchar.h""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5459 | echo "configure:5460: checking for wchar.h" >&5 |
| 5460 | if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5461 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5462 | else |
| 5463 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5464 | #line 5465 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5465 | #include "confdefs.h" |
| 5466 | #include <wchar.h> |
| 5467 | EOF |
| 5468 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5469 | { (eval echo configure:5470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5470 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5471 | if test -z "$ac_err"; then |
| 5472 | rm -rf conftest* |
| 5473 | eval "ac_cv_header_$ac_safe=yes" |
| 5474 | else |
| 5475 | echo "$ac_err" >&5 |
| 5476 | echo "configure: failed program was:" >&5 |
| 5477 | cat conftest.$ac_ext >&5 |
| 5478 | rm -rf conftest* |
| 5479 | eval "ac_cv_header_$ac_safe=no" |
| 5480 | fi |
| 5481 | rm -f conftest* |
| 5482 | fi |
| 5483 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5484 | echo "$ac_t""yes" 1>&6 |
| 5485 | cat >> confdefs.h <<\EOF |
| 5486 | #define HAVE_WCHAR_H 1 |
| 5487 | EOF |
| 5488 | wchar_h="yes" |
| 5489 | else |
| 5490 | echo "$ac_t""no" 1>&6 |
| 5491 | wchar_h="no" |
| 5492 | |
| 5493 | fi |
| 5494 | |
| 5495 | |
| 5496 | # check for usable wchar_t |
| 5497 | usable_wchar_t="unkown" |
| 5498 | echo $ac_n "checking for usable wchar_t""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5499 | echo "configure:5500: checking for usable wchar_t" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5500 | if test "$cross_compiling" = yes; then |
| 5501 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5502 | else |
| 5503 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5504 | #line 5505 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5505 | #include "confdefs.h" |
| 5506 | |
| 5507 | #include "wchar.h" |
| 5508 | #include "wctype.h" |
| 5509 | main() { |
| 5510 | wchar_t s; |
| 5511 | if (sizeof(s) == 2) |
| 5512 | exit(0); |
| 5513 | else |
| 5514 | exit(1); |
| 5515 | } |
| 5516 | |
| 5517 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5518 | if { (eval echo configure:5519: \"$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] | 5519 | then |
| 5520 | cat >> confdefs.h <<\EOF |
| 5521 | #define HAVE_USABLE_WCHAR_T 1 |
| 5522 | EOF |
| 5523 | usable_wchar_t="yes" |
| 5524 | else |
| 5525 | echo "configure: failed program was:" >&5 |
| 5526 | cat conftest.$ac_ext >&5 |
| 5527 | rm -fr conftest* |
| 5528 | usable_wchar_t="no" |
| 5529 | fi |
| 5530 | rm -fr conftest* |
| 5531 | fi |
| 5532 | |
| 5533 | echo "$ac_t""$usable_wchar_t" 1>&6 |
| 5534 | |
| 5535 | # check for endianness |
| 5536 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5537 | echo "configure:5538: checking whether byte ordering is bigendian" >&5 |
| 5538 | if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5539 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5540 | else |
| 5541 | ac_cv_c_bigendian=unknown |
| 5542 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 5543 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5544 | #line 5545 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5545 | #include "confdefs.h" |
| 5546 | #include <sys/types.h> |
| 5547 | #include <sys/param.h> |
| 5548 | int main() { |
| 5549 | |
| 5550 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 5551 | bogus endian macros |
| 5552 | #endif |
| 5553 | ; return 0; } |
| 5554 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5555 | if { (eval echo configure:5556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5556 | rm -rf conftest* |
| 5557 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 5558 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5559 | #line 5560 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5560 | #include "confdefs.h" |
| 5561 | #include <sys/types.h> |
| 5562 | #include <sys/param.h> |
| 5563 | int main() { |
| 5564 | |
| 5565 | #if BYTE_ORDER != BIG_ENDIAN |
| 5566 | not big endian |
| 5567 | #endif |
| 5568 | ; return 0; } |
| 5569 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5570 | if { (eval echo configure:5571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5571 | rm -rf conftest* |
| 5572 | ac_cv_c_bigendian=yes |
| 5573 | else |
| 5574 | echo "configure: failed program was:" >&5 |
| 5575 | cat conftest.$ac_ext >&5 |
| 5576 | rm -rf conftest* |
| 5577 | ac_cv_c_bigendian=no |
| 5578 | fi |
| 5579 | rm -f conftest* |
| 5580 | else |
| 5581 | echo "configure: failed program was:" >&5 |
| 5582 | cat conftest.$ac_ext >&5 |
| 5583 | fi |
| 5584 | rm -f conftest* |
| 5585 | if test $ac_cv_c_bigendian = unknown; then |
| 5586 | if test "$cross_compiling" = yes; then |
| 5587 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5588 | else |
| 5589 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5590 | #line 5591 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5591 | #include "confdefs.h" |
| 5592 | main () { |
| 5593 | /* Are we little or big endian? From Harbison&Steele. */ |
| 5594 | union |
| 5595 | { |
| 5596 | long l; |
| 5597 | char c[sizeof (long)]; |
| 5598 | } u; |
| 5599 | u.l = 1; |
| 5600 | exit (u.c[sizeof (long) - 1] == 1); |
| 5601 | } |
| 5602 | EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5603 | if { (eval echo configure:5604: \"$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] | 5604 | then |
| 5605 | ac_cv_c_bigendian=no |
| 5606 | else |
| 5607 | echo "configure: failed program was:" >&5 |
| 5608 | cat conftest.$ac_ext >&5 |
| 5609 | rm -fr conftest* |
| 5610 | ac_cv_c_bigendian=yes |
| 5611 | fi |
| 5612 | rm -fr conftest* |
| 5613 | fi |
| 5614 | |
| 5615 | fi |
| 5616 | fi |
| 5617 | |
| 5618 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
| 5619 | if test $ac_cv_c_bigendian = yes; then |
| 5620 | cat >> confdefs.h <<\EOF |
| 5621 | #define WORDS_BIGENDIAN 1 |
| 5622 | EOF |
| 5623 | |
| 5624 | fi |
| 5625 | |
| 5626 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5627 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! |
| 5628 | # Add sys/socket.h to confdefs.h |
| 5629 | cat >> confdefs.h <<\EOF |
| 5630 | #ifdef HAVE_SYS_SOCKET_H |
| 5631 | #include <sys/socket.h> |
| 5632 | #endif |
| 5633 | EOF |
| 5634 | echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5635 | echo "configure:5636: checking for socklen_t" >&5 |
| 5636 | if eval "test \"\${ac_cv_type_socklen_t+set}\" = set"; then |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5637 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5638 | else |
| 5639 | cat > conftest.$ac_ext <<EOF |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5640 | #line 5641 "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5641 | #include "confdefs.h" |
| 5642 | #include <sys/types.h> |
| 5643 | #if STDC_HEADERS |
| 5644 | #include <stdlib.h> |
| 5645 | #include <stddef.h> |
| 5646 | #endif |
| 5647 | EOF |
| 5648 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5649 | egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 5650 | rm -rf conftest* |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5651 | eval "ac_cv_type_socklen_t=yes" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5652 | else |
| 5653 | rm -rf conftest* |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5654 | eval "ac_cv_type_socklen_t=no" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5655 | fi |
| 5656 | rm -f conftest* |
| 5657 | |
| 5658 | fi |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5659 | if eval "test \"`echo '$ac_cv_type_'socklen_t`\" = yes"; then |
| 5660 | echo "$ac_t""yes" 1>&6 |
| 5661 | else |
| 5662 | echo "$ac_t""no" 1>&6 |
| 5663 | cat >> confdefs.h <<EOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5664 | #define socklen_t int |
| 5665 | EOF |
| 5666 | |
| 5667 | fi |
| 5668 | |
| 5669 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5670 | # generate output files |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5671 | trap '' 1 2 15 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5672 | cat > confcache <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5673 | # This file is a shell script that caches the results of configure |
| 5674 | # tests run on this system so they can be shared between configure |
| 5675 | # scripts and configure runs. It is not useful on other systems. |
| 5676 | # If it contains results you don't want to keep, you may remove or edit it. |
| 5677 | # |
| 5678 | # By default, configure uses ./config.cache as the cache file, |
| 5679 | # creating it if it does not exist already. You can give configure |
| 5680 | # the --cache-file=FILE option to use a different cache file; that is |
| 5681 | # what configure does when it calls configure scripts in |
| 5682 | # subdirectories, so they share the cache. |
| 5683 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 5684 | # config.status only pays attention to the cache file if you give it the |
| 5685 | # --recheck option to rerun configure. |
| 5686 | # |
| 5687 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5688 | # The following way of writing the cache mishandles newlines in values, |
| 5689 | # but we know of no workaround that is simple, portable, and efficient. |
| 5690 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5691 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 5692 | # 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] | 5693 | (set) 2>&1 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5694 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5695 | *ac_space=\ *) |
| 5696 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 5697 | # turns \\\\ into \\, and sed turns \\ into \). |
| 5698 | sed -n \ |
| 5699 | -e "s/'/'\\\\''/g" \ |
| 5700 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 5701 | ;; |
| 5702 | *) |
| 5703 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 5704 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 5705 | ;; |
| 5706 | esac >> confcache |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5707 | if cmp -s $cache_file confcache; then |
| 5708 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5709 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5710 | if test -w $cache_file; then |
| 5711 | echo "updating cache $cache_file" |
| 5712 | cat confcache > $cache_file |
| 5713 | else |
| 5714 | echo "not updating unwritable cache $cache_file" |
| 5715 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5716 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5717 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 5718 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5719 | 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] | 5720 | |
| 5721 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 5722 | # Let make expand exec_prefix. |
| 5723 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 5724 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5725 | # Any assignment to VPATH causes Sun make to only execute |
| 5726 | # the first set of double-colon rules, so remove it if not needed. |
| 5727 | # If there is a colon in the path, we need to keep it. |
| 5728 | if test "x$srcdir" = x.; then |
| 5729 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 5730 | fi |
| 5731 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5732 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5733 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5734 | DEFS=-DHAVE_CONFIG_H |
| 5735 | |
| 5736 | # Without the "./", some shells look in PATH for config.status. |
| 5737 | : ${CONFIG_STATUS=./config.status} |
| 5738 | |
| 5739 | echo creating $CONFIG_STATUS |
| 5740 | rm -f $CONFIG_STATUS |
| 5741 | cat > $CONFIG_STATUS <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5742 | #! /bin/sh |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5743 | # Generated automatically by configure. |
| 5744 | # Run this file to recreate the current configuration. |
| 5745 | # This directory was configured as follows, |
| 5746 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 5747 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5748 | # $0 $ac_configure_args |
| 5749 | # |
| 5750 | # Compiler output produced by configure, useful for debugging |
| 5751 | # configure, is in ./config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5752 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5753 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5754 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5755 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5756 | case "\$ac_option" in |
| 5757 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5758 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 5759 | 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] | 5760 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 5761 | echo "$CONFIG_STATUS generated by autoconf version 2.14.1" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5762 | exit 0 ;; |
| 5763 | -help | --help | --hel | --he | --h) |
| 5764 | echo "\$ac_cs_usage"; exit 0 ;; |
| 5765 | *) echo "\$ac_cs_usage"; exit 1 ;; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5766 | esac |
| 5767 | done |
| 5768 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5769 | ac_given_srcdir=$srcdir |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5770 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 5771 | trap 'rm -fr `echo "Makefile \ |
| 5772 | Objects/Makefile \ |
| 5773 | Parser/Makefile \ |
| 5774 | Python/Makefile \ |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 5775 | Modules/Makefile.pre \ |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 5776 | 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] | 5777 | EOF |
| 5778 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5779 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5780 | # Protect against being on the right side of a sed subst in config.status. |
| 5781 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 5782 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5783 | $ac_vpsub |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5784 | $extrasub |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5785 | s%@SHELL@%$SHELL%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5786 | s%@CFLAGS@%$CFLAGS%g |
| 5787 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 5788 | s%@CXXFLAGS@%$CXXFLAGS%g |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5789 | s%@FFLAGS@%$FFLAGS%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5790 | s%@DEFS@%$DEFS%g |
| 5791 | s%@LDFLAGS@%$LDFLAGS%g |
| 5792 | s%@LIBS@%$LIBS%g |
| 5793 | s%@exec_prefix@%$exec_prefix%g |
| 5794 | s%@prefix@%$prefix%g |
| 5795 | s%@program_transform_name@%$program_transform_name%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5796 | s%@bindir@%$bindir%g |
| 5797 | s%@sbindir@%$sbindir%g |
| 5798 | s%@libexecdir@%$libexecdir%g |
| 5799 | s%@datadir@%$datadir%g |
| 5800 | s%@sysconfdir@%$sysconfdir%g |
| 5801 | s%@sharedstatedir@%$sharedstatedir%g |
| 5802 | s%@localstatedir@%$localstatedir%g |
| 5803 | s%@libdir@%$libdir%g |
| 5804 | s%@includedir@%$includedir%g |
| 5805 | s%@oldincludedir@%$oldincludedir%g |
| 5806 | s%@infodir@%$infodir%g |
| 5807 | s%@mandir@%$mandir%g |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 5808 | s%@VERSION@%$VERSION%g |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 5809 | s%@MACHDEP@%$MACHDEP%g |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 5810 | s%@SGI_ABI@%$SGI_ABI%g |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 5811 | s%@SET_CXX@%$SET_CXX%g |
| 5812 | s%@MAINOBJ@%$MAINOBJ%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5813 | s%@CC@%$CC%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 5814 | s%@MAKE_LDLIBRARY@%$MAKE_LDLIBRARY%g |
| 5815 | s%@LDLIBRARY@%$LDLIBRARY%g |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 5816 | s%@LINKCC@%$LINKCC%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5817 | s%@RANLIB@%$RANLIB%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5818 | s%@AR@%$AR%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 5819 | s%@INSTALL@%$INSTALL%g |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5820 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 5821 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 5822 | s%@LN@%$LN%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 5823 | s%@OPT@%$OPT%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5824 | s%@CPP@%$CPP%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 5825 | s%@LIBTOOL_CRUFT@%$LIBTOOL_CRUFT%g |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 5826 | s%@SO@%$SO%g |
| 5827 | s%@LDSHARED@%$LDSHARED%g |
| 5828 | s%@CCSHARED@%$CCSHARED%g |
| 5829 | s%@LINKFORSHARED@%$LINKFORSHARED%g |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 5830 | s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 5831 | s%@LDLAST@%$LDLAST%g |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 5832 | s%@USE_GC_MODULE@%$USE_GC_MODULE%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5833 | s%@DLINCLDIR@%$DLINCLDIR%g |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 5834 | s%@DYNLOADFILE@%$DYNLOADFILE%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5835 | s%@LIBOBJS@%$LIBOBJS%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5836 | s%@HAVE_GETHOSTBYNAME_R_6_ARG@%$HAVE_GETHOSTBYNAME_R_6_ARG%g |
| 5837 | s%@HAVE_GETHOSTBYNAME_R_5_ARG@%$HAVE_GETHOSTBYNAME_R_5_ARG%g |
| 5838 | 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] | 5839 | s%@HAVE_GETHOSTBYNAME_R@%$HAVE_GETHOSTBYNAME_R%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5840 | s%@HAVE_GETHOSTBYNAME@%$HAVE_GETHOSTBYNAME%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5841 | s%@LIBM@%$LIBM%g |
| 5842 | s%@LIBC@%$LIBC%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5843 | |
| 5844 | CEOF |
| 5845 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5846 | |
| 5847 | cat >> $CONFIG_STATUS <<\EOF |
| 5848 | |
| 5849 | # Split the substitutions into bite-sized pieces for seds with |
| 5850 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 5851 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 5852 | ac_file=1 # Number of current file. |
| 5853 | ac_beg=1 # First line for current file. |
| 5854 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 5855 | ac_more_lines=: |
| 5856 | ac_sed_cmds="" |
| 5857 | while $ac_more_lines; do |
| 5858 | if test $ac_beg -gt 1; then |
| 5859 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 5860 | else |
| 5861 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 5862 | fi |
| 5863 | if test ! -s conftest.s$ac_file; then |
| 5864 | ac_more_lines=false |
| 5865 | rm -f conftest.s$ac_file |
| 5866 | else |
| 5867 | if test -z "$ac_sed_cmds"; then |
| 5868 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 5869 | else |
| 5870 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 5871 | fi |
| 5872 | ac_file=`expr $ac_file + 1` |
| 5873 | ac_beg=$ac_end |
| 5874 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 5875 | fi |
| 5876 | done |
| 5877 | if test -z "$ac_sed_cmds"; then |
| 5878 | ac_sed_cmds=cat |
| 5879 | fi |
| 5880 | EOF |
| 5881 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5882 | cat >> $CONFIG_STATUS <<EOF |
| 5883 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 5884 | CONFIG_FILES=\${CONFIG_FILES-"Makefile \ |
| 5885 | Objects/Makefile \ |
| 5886 | Parser/Makefile \ |
| 5887 | Python/Makefile \ |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 5888 | Modules/Makefile.pre \ |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 5889 | Modules/Setup.config"} |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5890 | EOF |
| 5891 | cat >> $CONFIG_STATUS <<\EOF |
| 5892 | 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] | 5893 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5894 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5895 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5896 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 5897 | *) ac_file_in="${ac_file}.in" ;; |
| 5898 | esac |
| 5899 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5900 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5901 | |
| 5902 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 5903 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 5904 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 5905 | # The file is in a subdirectory. |
| 5906 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5907 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5908 | # A "../" for each directory in $ac_dir_suffix. |
| 5909 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 5910 | else |
| 5911 | ac_dir_suffix= ac_dots= |
| 5912 | fi |
| 5913 | |
| 5914 | case "$ac_given_srcdir" in |
| 5915 | .) srcdir=. |
| 5916 | if test -z "$ac_dots"; then top_srcdir=. |
| 5917 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 5918 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 5919 | *) # Relative path. |
| 5920 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 5921 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 5922 | esac |
| 5923 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5924 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5925 | echo creating "$ac_file" |
| 5926 | rm -f "$ac_file" |
| 5927 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 5928 | case "$ac_file" in |
| 5929 | *Makefile*) ac_comsub="1i\\ |
| 5930 | # $configure_input" ;; |
| 5931 | *) ac_comsub= ;; |
| 5932 | esac |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5933 | |
| 5934 | 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] | 5935 | sed -e "$ac_comsub |
| 5936 | s%@configure_input@%$configure_input%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5937 | s%@srcdir@%$srcdir%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5938 | s%@top_srcdir@%$top_srcdir%g |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5939 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5940 | fi; done |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5941 | rm -f conftest.s* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5942 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5943 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 5944 | # 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] | 5945 | # |
| 5946 | # ac_d sets the value in "#define NAME VALUE" lines. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5947 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 5948 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5949 | ac_dC='\3' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5950 | ac_dD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5951 | # 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] | 5952 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 5953 | ac_uB='\([ ]\)%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5954 | ac_uC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5955 | ac_uD='\4%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5956 | # 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] | 5957 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 5958 | ac_eB='$%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5959 | ac_eC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5960 | ac_eD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5961 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5962 | if test "${CONFIG_HEADERS+set}" != set; then |
| 5963 | EOF |
| 5964 | cat >> $CONFIG_STATUS <<EOF |
| 5965 | CONFIG_HEADERS="config.h" |
| 5966 | EOF |
| 5967 | cat >> $CONFIG_STATUS <<\EOF |
| 5968 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5969 | 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] | 5970 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5971 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5972 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5973 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 5974 | *) ac_file_in="${ac_file}.in" ;; |
| 5975 | esac |
| 5976 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5977 | echo creating $ac_file |
| 5978 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5979 | rm -f conftest.frag conftest.in conftest.out |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5980 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 5981 | cat $ac_file_inputs > conftest.in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5982 | |
| 5983 | EOF |
| 5984 | |
| 5985 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 5986 | # 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] | 5987 | # 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] | 5988 | # Protect against being in an unquoted here document in config.status. |
| 5989 | rm -f conftest.vals |
| 5990 | cat > conftest.hdr <<\EOF |
| 5991 | s/[\\&%]/\\&/g |
| 5992 | s%[\\$`]%\\&%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5993 | 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] | 5994 | s%ac_d%ac_u%gp |
| 5995 | s%ac_u%ac_e%gp |
| 5996 | EOF |
| 5997 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 5998 | rm -f conftest.hdr |
| 5999 | |
| 6000 | # This sed command replaces #undef with comments. This is necessary, for |
| 6001 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 6002 | # on some systems where configure will not decide to define it. |
| 6003 | cat >> conftest.vals <<\EOF |
| 6004 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 6005 | EOF |
| 6006 | |
| 6007 | # Break up conftest.vals because some shells have a limit on |
| 6008 | # 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] | 6009 | |
| 6010 | rm -f conftest.tail |
| 6011 | while : |
| 6012 | do |
| 6013 | ac_lines=`grep -c . conftest.vals` |
| 6014 | # grep -c gives empty output for an empty file on some AIX systems. |
| 6015 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 6016 | # Write a limited-size here document to conftest.frag. |
| 6017 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 6018 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 6019 | echo 'CEOF |
| 6020 | sed -f conftest.frag conftest.in > conftest.out |
| 6021 | rm -f conftest.in |
| 6022 | mv conftest.out conftest.in |
| 6023 | ' >> $CONFIG_STATUS |
| 6024 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 6025 | rm -f conftest.vals |
| 6026 | mv conftest.tail conftest.vals |
| 6027 | done |
| 6028 | rm -f conftest.vals |
| 6029 | |
| 6030 | cat >> $CONFIG_STATUS <<\EOF |
| 6031 | rm -f conftest.frag conftest.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6032 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6033 | cat conftest.in >> conftest.h |
| 6034 | rm -f conftest.in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6035 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6036 | echo "$ac_file is unchanged" |
| 6037 | rm -f conftest.h |
| 6038 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6039 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 6040 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 6041 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 6042 | # The file is in a subdirectory. |
| 6043 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 6044 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6045 | rm -f $ac_file |
| 6046 | mv conftest.h $ac_file |
| 6047 | fi |
| 6048 | fi; done |
| 6049 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6050 | EOF |
| 6051 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6052 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6053 | EOF |
| 6054 | cat >> $CONFIG_STATUS <<\EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6055 | |
| 6056 | exit 0 |
| 6057 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6058 | chmod +x $CONFIG_STATUS |
| 6059 | rm -fr confdefs* $ac_clean_files |
Fred Drake | ce81d59 | 2000-07-09 14:39:29 +0000 | [diff] [blame] | 6060 | test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6061 | |