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 | |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 3 | # From configure.in Revision: 1.150 |
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. |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +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 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 27 | --with-pydebug build with Py_DEBUG defined" |
| 28 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 29 | --with-libs='lib1 ...' link against additional libs" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 30 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 31 | --with(out)-readline obsolete, edit Modules/Setup instead" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 32 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 33 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 34 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 35 | --with(out)-threads[=DIRECTORY] disable/enable thread support" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 36 | ac_help="$ac_help |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 37 | --with(out)-thread[=DIRECTORY] deprecated; use --with(out)-threads" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 38 | ac_help="$ac_help |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 39 | --with(out)-cycle-gc disable/enable garbage collection" |
| 40 | ac_help="$ac_help |
| 41 | --with-wctype-functions use wctype.h functions" |
| 42 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 43 | --with-sgi-dl=DIRECTORY IRIX 4 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-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 46 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 47 | --with-fpectl enable SIGFPE catching" |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 48 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 49 | --with-libm=STRING math library" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 50 | ac_help="$ac_help |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 51 | --with-libc=STRING C library" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 52 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 53 | # Initialize some variables set by options. |
| 54 | # The variables have the same names as the options, with |
| 55 | # dashes changed to underlines. |
| 56 | build=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 57 | cache_file=./config.cache |
| 58 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 59 | host=NONE |
| 60 | no_create= |
| 61 | nonopt=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 62 | no_recursion= |
| 63 | prefix=NONE |
| 64 | program_prefix=NONE |
| 65 | program_suffix=NONE |
| 66 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 67 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 68 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 69 | srcdir= |
| 70 | target=NONE |
| 71 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 72 | x_includes=NONE |
| 73 | x_libraries=NONE |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 74 | bindir='${exec_prefix}/bin' |
| 75 | sbindir='${exec_prefix}/sbin' |
| 76 | libexecdir='${exec_prefix}/libexec' |
| 77 | datadir='${prefix}/share' |
| 78 | sysconfdir='${prefix}/etc' |
| 79 | sharedstatedir='${prefix}/com' |
| 80 | localstatedir='${prefix}/var' |
| 81 | libdir='${exec_prefix}/lib' |
| 82 | includedir='${prefix}/include' |
| 83 | oldincludedir='/usr/include' |
| 84 | infodir='${prefix}/info' |
| 85 | mandir='${prefix}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 86 | |
| 87 | # Initialize some other variables. |
| 88 | subdirs= |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 89 | MFLAGS= MAKEFLAGS= |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 90 | SHELL=${CONFIG_SHELL-/bin/sh} |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 91 | # Maximum number of lines to put in a shell here document. |
| 92 | ac_max_here_lines=12 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 93 | |
| 94 | ac_prev= |
| 95 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 96 | do |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 97 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 98 | # If the previous option needs an argument, assign it. |
| 99 | if test -n "$ac_prev"; then |
| 100 | eval "$ac_prev=\$ac_option" |
| 101 | ac_prev= |
| 102 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 103 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 104 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 105 | case "$ac_option" in |
| 106 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 107 | *) ac_optarg= ;; |
| 108 | esac |
| 109 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 110 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 111 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 112 | case "$ac_option" in |
| 113 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 114 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 115 | ac_prev=bindir ;; |
| 116 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 117 | bindir="$ac_optarg" ;; |
| 118 | |
| 119 | -build | --build | --buil | --bui | --bu) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 120 | ac_prev=build ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 121 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 122 | build="$ac_optarg" ;; |
| 123 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 124 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 125 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 126 | ac_prev=cache_file ;; |
| 127 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 128 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 129 | cache_file="$ac_optarg" ;; |
| 130 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 131 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 132 | ac_prev=datadir ;; |
| 133 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 134 | | --da=*) |
| 135 | datadir="$ac_optarg" ;; |
| 136 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 137 | -disable-* | --disable-*) |
| 138 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 139 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 140 | 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] | 141 | { 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] | 142 | fi |
| 143 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 144 | eval "enable_${ac_feature}=no" ;; |
| 145 | |
| 146 | -enable-* | --enable-*) |
| 147 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 148 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 149 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 150 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 151 | fi |
| 152 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 153 | case "$ac_option" in |
| 154 | *=*) ;; |
| 155 | *) ac_optarg=yes ;; |
| 156 | esac |
| 157 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 158 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 159 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 160 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 161 | | --exec | --exe | --ex) |
| 162 | ac_prev=exec_prefix ;; |
| 163 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 164 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 165 | | --exec=* | --exe=* | --ex=*) |
| 166 | exec_prefix="$ac_optarg" ;; |
| 167 | |
| 168 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 169 | # Obsolete; use --with-gas. |
| 170 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 171 | |
| 172 | -help | --help | --hel | --he) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 173 | # Omit some internal or obsolete options to make the list less imposing. |
| 174 | # 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] | 175 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 176 | Usage: configure [options] [host] |
| 177 | Options: [defaults in brackets after descriptions] |
| 178 | Configuration: |
| 179 | --cache-file=FILE cache test results in FILE |
| 180 | --help print this message |
| 181 | --no-create do not create output files |
| 182 | --quiet, --silent do not print \`checking...' messages |
| 183 | --version print the version of autoconf that created configure |
| 184 | Directory and file names: |
| 185 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 186 | [$ac_default_prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 187 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 188 | [same as prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 189 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 190 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 191 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 192 | --datadir=DIR read-only architecture-independent data in DIR |
| 193 | [PREFIX/share] |
| 194 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 195 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 196 | [PREFIX/com] |
| 197 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 198 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 199 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 200 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 201 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 202 | --mandir=DIR man documentation in DIR [PREFIX/man] |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 203 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 204 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 205 | --program-suffix=SUFFIX append SUFFIX to installed program names |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 206 | --program-transform-name=PROGRAM |
| 207 | run sed PROGRAM on installed program names |
| 208 | EOF |
| 209 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 210 | Host type: |
| 211 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 212 | --host=HOST configure for HOST [guessed] |
| 213 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 214 | Features and packages: |
| 215 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 216 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 217 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 218 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 219 | --x-includes=DIR X include files are in DIR |
| 220 | --x-libraries=DIR X library files are in DIR |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 221 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 222 | if test -n "$ac_help"; then |
| 223 | echo "--enable and --with options recognized:$ac_help" |
| 224 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 225 | exit 0 ;; |
| 226 | |
| 227 | -host | --host | --hos | --ho) |
| 228 | ac_prev=host ;; |
| 229 | -host=* | --host=* | --hos=* | --ho=*) |
| 230 | host="$ac_optarg" ;; |
| 231 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 232 | -includedir | --includedir | --includedi | --included | --include \ |
| 233 | | --includ | --inclu | --incl | --inc) |
| 234 | ac_prev=includedir ;; |
| 235 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 236 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 237 | includedir="$ac_optarg" ;; |
| 238 | |
| 239 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 240 | ac_prev=infodir ;; |
| 241 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 242 | infodir="$ac_optarg" ;; |
| 243 | |
| 244 | -libdir | --libdir | --libdi | --libd) |
| 245 | ac_prev=libdir ;; |
| 246 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 247 | libdir="$ac_optarg" ;; |
| 248 | |
| 249 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 250 | | --libexe | --libex | --libe) |
| 251 | ac_prev=libexecdir ;; |
| 252 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 253 | | --libexe=* | --libex=* | --libe=*) |
| 254 | libexecdir="$ac_optarg" ;; |
| 255 | |
| 256 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 257 | | --localstate | --localstat | --localsta | --localst \ |
| 258 | | --locals | --local | --loca | --loc | --lo) |
| 259 | ac_prev=localstatedir ;; |
| 260 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 261 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 262 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 263 | localstatedir="$ac_optarg" ;; |
| 264 | |
| 265 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 266 | ac_prev=mandir ;; |
| 267 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 268 | mandir="$ac_optarg" ;; |
| 269 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 270 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 271 | # Obsolete; use --without-fp. |
| 272 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 273 | |
| 274 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 275 | | --no-cr | --no-c) |
| 276 | no_create=yes ;; |
| 277 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 278 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 279 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 280 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 281 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 282 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 283 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 284 | | --oldin | --oldi | --old | --ol | --o) |
| 285 | ac_prev=oldincludedir ;; |
| 286 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 287 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 288 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 289 | oldincludedir="$ac_optarg" ;; |
| 290 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 291 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 292 | ac_prev=prefix ;; |
| 293 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 294 | prefix="$ac_optarg" ;; |
| 295 | |
| 296 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 297 | | --program-pre | --program-pr | --program-p) |
| 298 | ac_prev=program_prefix ;; |
| 299 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 300 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 301 | program_prefix="$ac_optarg" ;; |
| 302 | |
| 303 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 304 | | --program-suf | --program-su | --program-s) |
| 305 | ac_prev=program_suffix ;; |
| 306 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 307 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 308 | program_suffix="$ac_optarg" ;; |
| 309 | |
| 310 | -program-transform-name | --program-transform-name \ |
| 311 | | --program-transform-nam | --program-transform-na \ |
| 312 | | --program-transform-n | --program-transform- \ |
| 313 | | --program-transform | --program-transfor \ |
| 314 | | --program-transfo | --program-transf \ |
| 315 | | --program-trans | --program-tran \ |
| 316 | | --progr-tra | --program-tr | --program-t) |
| 317 | ac_prev=program_transform_name ;; |
| 318 | -program-transform-name=* | --program-transform-name=* \ |
| 319 | | --program-transform-nam=* | --program-transform-na=* \ |
| 320 | | --program-transform-n=* | --program-transform-=* \ |
| 321 | | --program-transform=* | --program-transfor=* \ |
| 322 | | --program-transfo=* | --program-transf=* \ |
| 323 | | --program-trans=* | --program-tran=* \ |
| 324 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 325 | program_transform_name="$ac_optarg" ;; |
| 326 | |
| 327 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 328 | | -silent | --silent | --silen | --sile | --sil) |
| 329 | silent=yes ;; |
| 330 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 331 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 332 | ac_prev=sbindir ;; |
| 333 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 334 | | --sbi=* | --sb=*) |
| 335 | sbindir="$ac_optarg" ;; |
| 336 | |
| 337 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 338 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 339 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 340 | | --sha | --sh) |
| 341 | ac_prev=sharedstatedir ;; |
| 342 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 343 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 344 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 345 | | --sha=* | --sh=*) |
| 346 | sharedstatedir="$ac_optarg" ;; |
| 347 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 348 | -site | --site | --sit) |
| 349 | ac_prev=site ;; |
| 350 | -site=* | --site=* | --sit=*) |
| 351 | site="$ac_optarg" ;; |
| 352 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 353 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 354 | ac_prev=srcdir ;; |
| 355 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 356 | srcdir="$ac_optarg" ;; |
| 357 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 358 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 359 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 360 | ac_prev=sysconfdir ;; |
| 361 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 362 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 363 | sysconfdir="$ac_optarg" ;; |
| 364 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 365 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 366 | ac_prev=target ;; |
| 367 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 368 | target="$ac_optarg" ;; |
| 369 | |
| 370 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 371 | verbose=yes ;; |
| 372 | |
| 373 | -version | --version | --versio | --versi | --vers) |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 374 | echo "configure generated by autoconf version 2.14.1" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 375 | exit 0 ;; |
| 376 | |
| 377 | -with-* | --with-*) |
| 378 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 379 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 380 | 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] | 381 | { 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] | 382 | fi |
| 383 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 384 | case "$ac_option" in |
| 385 | *=*) ;; |
| 386 | *) ac_optarg=yes ;; |
| 387 | esac |
| 388 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 389 | |
| 390 | -without-* | --without-*) |
| 391 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 392 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 393 | 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] | 394 | { 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] | 395 | fi |
| 396 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 397 | eval "with_${ac_package}=no" ;; |
| 398 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 399 | --x) |
| 400 | # Obsolete; use --with-x. |
| 401 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 402 | |
| 403 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 404 | | --x-incl | --x-inc | --x-in | --x-i) |
| 405 | ac_prev=x_includes ;; |
| 406 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 407 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 408 | x_includes="$ac_optarg" ;; |
| 409 | |
| 410 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 411 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 412 | ac_prev=x_libraries ;; |
| 413 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 414 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 415 | x_libraries="$ac_optarg" ;; |
| 416 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 417 | -*) { 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] | 418 | ;; |
| 419 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 420 | *) |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 421 | 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] | 422 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 423 | fi |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 424 | if test "x$nonopt" != xNONE; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 425 | { 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] | 426 | fi |
| 427 | nonopt="$ac_option" |
| 428 | ;; |
| 429 | |
| 430 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 431 | done |
| 432 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 433 | if test -n "$ac_prev"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 434 | { 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] | 435 | fi |
| 436 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 437 | 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] | 438 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 439 | # File descriptor usage: |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 440 | # 0 standard input |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 441 | # 1 file creation |
| 442 | # 2 errors and warnings |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 443 | # 3 some systems may open it to /dev/tty |
| 444 | # 4 used on the Kubota Titan |
| 445 | # 6 checking for... messages and results |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 446 | # 5 compiler messages saved in config.log |
| 447 | if test "$silent" = yes; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 448 | exec 6>/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 449 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 450 | exec 6>&1 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 451 | fi |
| 452 | exec 5>./config.log |
| 453 | |
| 454 | echo "\ |
| 455 | This file contains any messages produced by compilers while |
| 456 | running configure, to aid debugging if configure makes a mistake. |
| 457 | " 1>&5 |
| 458 | |
| 459 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 460 | # Also quote any args containing shell metacharacters. |
| 461 | ac_configure_args= |
| 462 | for ac_arg |
| 463 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 464 | case "$ac_arg" in |
| 465 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 466 | | --no-cr | --no-c) ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 467 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 468 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 469 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 470 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 471 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 472 | esac |
| 473 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 474 | |
| 475 | # NLS nuisances. |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 476 | # Only set these to C if already set. These must not be set unconditionally |
| 477 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 478 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 479 | # Non-C LC_CTYPE values break the ctype check. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 480 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 481 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 482 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 483 | 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] | 484 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 485 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 486 | rm -rf conftest* confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 487 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 488 | echo > confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 489 | |
| 490 | # A filename unique to this package, relative to the directory that |
| 491 | # 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] | 492 | ac_unique_file=Include/object.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 493 | |
| 494 | # Find the source files, if location was not specified. |
| 495 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 496 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 497 | # Try the directory containing this script, then its parent. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 498 | ac_prog=$0 |
| 499 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 500 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 501 | srcdir=$ac_confdir |
| 502 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 503 | srcdir=.. |
| 504 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 505 | else |
| 506 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 507 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 508 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 509 | if test "$ac_srcdir_defaulted" = yes; then |
| 510 | { 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] | 511 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 512 | { 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] | 513 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 514 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 515 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 516 | |
| 517 | # Prefer explicitly selected file to automatically selected ones. |
| 518 | if test -z "$CONFIG_SITE"; then |
| 519 | if test "x$prefix" != xNONE; then |
| 520 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 521 | else |
| 522 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 523 | fi |
| 524 | fi |
| 525 | for ac_site_file in $CONFIG_SITE; do |
| 526 | if test -r "$ac_site_file"; then |
| 527 | echo "loading site script $ac_site_file" |
| 528 | . "$ac_site_file" |
| 529 | fi |
| 530 | done |
| 531 | |
| 532 | if test -r "$cache_file"; then |
| 533 | echo "loading cache $cache_file" |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 534 | test -f "$cache_file" && . $cache_file |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 535 | else |
| 536 | echo "creating cache $cache_file" |
| 537 | > $cache_file |
| 538 | fi |
| 539 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 540 | ac_ext=c |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 541 | # 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] | 542 | ac_cpp='$CPP $CPPFLAGS' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 543 | 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] | 544 | 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] | 545 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 546 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 547 | ac_exeext= |
| 548 | ac_objext=o |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 549 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 550 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 551 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 552 | ac_n= ac_c=' |
| 553 | ' ac_t=' ' |
| 554 | else |
| 555 | ac_n=-n ac_c= ac_t= |
| 556 | fi |
| 557 | else |
| 558 | ac_n= ac_c='\c' ac_t= |
| 559 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 560 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 561 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 562 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 563 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 564 | # Set VERSION so we only need to edit in one place (i.e., here) |
| 565 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 566 | VERSION=2.0 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 567 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 568 | # NEXTSTEP stuff |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 569 | 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] | 570 | |
| 571 | echo $ac_n "checking for --with-next-archs""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 572 | echo "configure:573: checking for --with-next-archs" >&5 |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 573 | # Check whether --with-next-archs or --without-next-archs was given. |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 574 | if test "${with_next_archs+set}" = set; then |
| 575 | withval="$with_next_archs" |
| 576 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 577 | if test -n "$withval"; then |
| 578 | ac_arch_flags=`/usr/lib/arch_tool -archify_list $withval` |
| 579 | # GCC does not currently support multi archs on the NeXT |
| 580 | with_gcc=no |
| 581 | fi |
| 582 | echo "$ac_t""$with_next_archs" 1>&6 |
| 583 | |
| 584 | else |
| 585 | echo "$ac_t""none: using `arch`" 1>&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 586 | fi |
| 587 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 588 | |
| 589 | if test -z "$MACHDEP" |
| 590 | then |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 591 | set X `hostinfo | egrep '(NeXT Mach|Kernel Release).*:' | \ |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 592 | sed -e 's/://' -e 's/\./_/'` && \ |
| 593 | ac_sys_system=next && ac_sys_release=$4 |
| 594 | |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 595 | MACHDEP="$ac_sys_system$ac_sys_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 596 | fi |
| 597 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 598 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 599 | # Check whether --with-next-framework or --without-next-framework was given. |
| 600 | if test "${with_next_framework+set}" = set; then |
| 601 | withval="$with_next_framework" |
| 602 | : |
| 603 | fi |
| 604 | |
| 605 | # Check whether --with-dyld or --without-dyld was given. |
| 606 | if test "${with_dyld+set}" = set; then |
| 607 | withval="$with_dyld" |
| 608 | : |
| 609 | fi |
| 610 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 611 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 612 | # Set name for machine-dependent library files |
| 613 | |
| 614 | echo $ac_n "checking MACHDEP""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 615 | echo "configure:616: checking MACHDEP" >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 616 | if test -z "$MACHDEP" |
| 617 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 618 | ac_sys_system=`uname -s` |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 619 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 620 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 621 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 622 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 623 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 624 | ac_md_system=`echo $ac_sys_system | |
| 625 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 626 | ac_md_release=`echo $ac_sys_release | |
| 627 | tr -d '/ ' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 628 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 629 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 630 | case $MACHDEP in |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 631 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 632 | esac |
| 633 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 634 | |
| 635 | # |
| 636 | # SGI compilers allow the specification of the both the ABI and the |
| 637 | # ISA on the command line. Depending on the values of these switches, |
| 638 | # different and often incompatable code will be generated. |
| 639 | # |
| 640 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 641 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 642 | # variable is also adjusted. |
| 643 | # |
| 644 | |
| 645 | if test ! -z "$SGI_ABI" |
| 646 | then |
| 647 | CC="cc $SGI_ABI" |
| 648 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 649 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 650 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 651 | echo "$ac_t""$MACHDEP" 1>&6 |
| 652 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 653 | # |
| 654 | # CCC is the command that compiles C++ programs |
| 655 | # |
| 656 | # Not all make programs have this predefined. |
| 657 | # |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 658 | #AC_SUBST(SET_CCC) |
| 659 | #AC_MSG_CHECKING(CCC) |
| 660 | #if test -z "$CCC" |
| 661 | #then |
| 662 | # case $ac_sys_system in |
| 663 | # IRIX*) SET_CCC="CCC= CC ${SGI_ABI}";; |
| 664 | # Linux*) SET_CCC="CCC= g++";; |
| 665 | # *) SET_CCC="" |
| 666 | # esac |
| 667 | #else |
| 668 | # SET_CCC="CCC= ${CCC}" |
| 669 | #fi |
| 670 | #AC_MSG_RESULT($SET_CCC) |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 671 | |
| 672 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 673 | # checks for alternative programs |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 674 | echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 675 | echo "configure:676: checking for --without-gcc" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 676 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 677 | if test "${with_gcc+set}" = set; then |
| 678 | withval="$with_gcc" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 679 | |
| 680 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 681 | no) CC=cc |
| 682 | without_gcc=yes;; |
| 683 | yes) CC=gcc |
| 684 | without_gcc=no;; |
| 685 | *) CC=$withval |
| 686 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 687 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 688 | else |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 689 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 690 | case $ac_sys_system in |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 691 | OSF1) CC=cc |
| 692 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 693 | BeOS*) |
| 694 | # Dunno if it's a good idea to get this over with all at once, or |
| 695 | # to handle it in with the other goodies. |
| 696 | MACHDEP=beos |
| 697 | |
| 698 | case $BE_HOST_CPU in |
| 699 | ppc) |
Guido van Rossum | 8137680 | 1999-04-06 15:50:51 +0000 | [diff] [blame] | 700 | CC="mwcc -I$PWD/BeOS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 701 | without_gcc=yes |
Guido van Rossum | 6b9da45 | 1999-03-24 17:48:12 +0000 | [diff] [blame] | 702 | case `uname -r` in |
| 703 | 4.0*) OPT="-DUSE_DL_EXPORT -O7 -opt schedule604 -export pragma" ;; |
| 704 | *) OPT="-DUSE_DL_EXPORT -O2 -proc 604e -export pragma" ;; |
| 705 | esac |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 706 | CCSHARED=-UUSE_DL_EXPORT |
| 707 | LDFLAGS="$LDFLAGS -nodup" |
| 708 | |
| 709 | AR="$PWD/BeOS/ar-fake" |
| 710 | RANLIB=: |
| 711 | |
| 712 | cat >> confdefs.h <<\EOF |
| 713 | #define DL_EXPORT_HEADER "dl_export.h" |
| 714 | EOF |
| 715 | |
| 716 | ;; |
| 717 | x86) |
| 718 | CC="gcc -I$PWD/BeOS" |
| 719 | without_gcc=no |
Guido van Rossum | 32000e8 | 2000-05-22 21:31:50 +0000 | [diff] [blame] | 720 | OPT="-DUSE_DL_EXPORT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 721 | CCSHARED=-UUSE_DL_EXPORT |
| 722 | |
| 723 | AR="$PWD/BeOS/ar-fake" |
| 724 | RANLIB=: |
| 725 | |
| 726 | cat >> confdefs.h <<\EOF |
| 727 | #define DL_EXPORT_HEADER "dl_export.h" |
| 728 | EOF |
| 729 | |
| 730 | ;; |
| 731 | *) |
| 732 | { echo "configure: error: Your BeOS system isn't PowerPC or x86... neat" 1>&2; exit 1; } |
| 733 | ;; |
| 734 | esac |
| 735 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 736 | Monterey*) |
| 737 | RANLIB=: |
| 738 | without_gcc=;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 739 | *) without_gcc=no;; |
| 740 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 741 | fi |
| 742 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 743 | echo "$ac_t""$without_gcc" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 744 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 745 | |
| 746 | |
| 747 | MAINOBJ=python.o |
| 748 | echo $ac_n "checking for --with-cxx=<compiler>""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 749 | echo "configure:750: checking for --with-cxx=<compiler>" >&5 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 750 | # Check whether --with-cxx or --without-cxx was given. |
| 751 | if test "${with_cxx+set}" = set; then |
| 752 | withval="$with_cxx" |
| 753 | |
| 754 | case $withval in |
| 755 | no) CXX= |
| 756 | with_cxx=no;; |
| 757 | *) CXX=$withval |
| 758 | MAINOBJ=ccpython.o |
| 759 | with_cxx=$withval;; |
| 760 | esac |
| 761 | else |
| 762 | |
| 763 | with_cxx=no |
| 764 | |
| 765 | fi |
| 766 | |
| 767 | echo "$ac_t""$with_cxx" 1>&6 |
| 768 | SET_CXX="CXX = $CXX" |
| 769 | |
| 770 | #AC_MSG_CHECKING(CCC) |
| 771 | #if test -z "$CCC" |
| 772 | #then |
| 773 | # case $ac_sys_system in |
| 774 | # IRIX*) SET_CCC="CCC= CC ${SGI_ABI}";; |
| 775 | # Linux*) SET_CCC="CCC= g++";; |
| 776 | # *) SET_CCC="" |
| 777 | # esac |
| 778 | #else |
| 779 | # SET_CCC="CCC= ${CCC}" |
| 780 | #fi |
| 781 | #AC_MSG_RESULT($SET_CCC) |
| 782 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 783 | # If the user switches compilers, we can't believe the cache |
| 784 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 785 | then |
| 786 | { echo "configure: error: cached CC is different -- throw away $cache_file |
| 787 | (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; } |
| 788 | fi |
| 789 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 790 | # Extract the first word of "gcc", so it can be a program name with args. |
| 791 | set dummy gcc; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 792 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 793 | echo "configure:794: checking for $ac_word" >&5 |
| 794 | if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 795 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 796 | else |
| 797 | if test -n "$CC"; then |
| 798 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 799 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 800 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 801 | ac_dummy="$PATH" |
| 802 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 803 | test -z "$ac_dir" && ac_dir=. |
| 804 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 805 | ac_cv_prog_CC="gcc" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 806 | break |
| 807 | fi |
| 808 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 809 | IFS="$ac_save_ifs" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 810 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 811 | fi |
| 812 | CC="$ac_cv_prog_CC" |
| 813 | if test -n "$CC"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 814 | echo "$ac_t""$CC" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 815 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 816 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 817 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 818 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 819 | if test -z "$CC"; then |
| 820 | # Extract the first word of "cc", so it can be a program name with args. |
| 821 | set dummy cc; ac_word=$2 |
| 822 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 823 | echo "configure:824: checking for $ac_word" >&5 |
| 824 | if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 825 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 826 | else |
| 827 | if test -n "$CC"; then |
| 828 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 829 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 830 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 831 | ac_prog_rejected=no |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 832 | ac_dummy="$PATH" |
| 833 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 834 | test -z "$ac_dir" && ac_dir=. |
| 835 | if test -f $ac_dir/$ac_word; then |
| 836 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 837 | ac_prog_rejected=yes |
| 838 | continue |
| 839 | fi |
| 840 | ac_cv_prog_CC="cc" |
| 841 | break |
| 842 | fi |
| 843 | done |
| 844 | IFS="$ac_save_ifs" |
| 845 | if test $ac_prog_rejected = yes; then |
| 846 | # We found a bogon in the path, so make sure we never use it. |
| 847 | set dummy $ac_cv_prog_CC |
| 848 | shift |
| 849 | if test $# -gt 0; then |
| 850 | # We chose a different compiler from the bogus one. |
| 851 | # However, it has the same basename, so the bogon will be chosen |
| 852 | # first if we set CC to just the basename; use the full file name. |
| 853 | shift |
| 854 | set dummy "$ac_dir/$ac_word" "$@" |
| 855 | shift |
| 856 | ac_cv_prog_CC="$@" |
| 857 | fi |
| 858 | fi |
| 859 | fi |
| 860 | fi |
| 861 | CC="$ac_cv_prog_CC" |
| 862 | if test -n "$CC"; then |
| 863 | echo "$ac_t""$CC" 1>&6 |
| 864 | else |
| 865 | echo "$ac_t""no" 1>&6 |
| 866 | fi |
| 867 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 868 | if test -z "$CC"; then |
| 869 | case "`uname -s`" in |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 870 | *win32* | *WIN32* | *CYGWIN*) |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 871 | # Extract the first word of "cl", so it can be a program name with args. |
| 872 | set dummy cl; ac_word=$2 |
| 873 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 874 | echo "configure:875: checking for $ac_word" >&5 |
| 875 | if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 876 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 877 | else |
| 878 | if test -n "$CC"; then |
| 879 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 880 | else |
| 881 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 882 | ac_dummy="$PATH" |
| 883 | for ac_dir in $ac_dummy; do |
| 884 | test -z "$ac_dir" && ac_dir=. |
| 885 | if test -f $ac_dir/$ac_word; then |
| 886 | ac_cv_prog_CC="cl" |
| 887 | break |
| 888 | fi |
| 889 | done |
| 890 | IFS="$ac_save_ifs" |
| 891 | fi |
| 892 | fi |
| 893 | CC="$ac_cv_prog_CC" |
| 894 | if test -n "$CC"; then |
| 895 | echo "$ac_t""$CC" 1>&6 |
| 896 | else |
| 897 | echo "$ac_t""no" 1>&6 |
| 898 | fi |
| 899 | ;; |
| 900 | esac |
| 901 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 902 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 903 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 904 | |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 905 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| 906 | echo "configure:907: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 907 | |
| 908 | ac_ext=c |
| 909 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 910 | ac_cpp='$CPP $CPPFLAGS' |
| 911 | 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] | 912 | 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] | 913 | cross_compiling=$ac_cv_prog_cc_cross |
| 914 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 915 | cat > conftest.$ac_ext << EOF |
| 916 | |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 917 | #line 918 "configure" |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 918 | #include "confdefs.h" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 919 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 920 | main(){return(0);} |
| 921 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 922 | if { (eval echo configure:923: \"$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] | 923 | ac_cv_prog_cc_works=yes |
| 924 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 925 | if (./conftest; exit) 2>/dev/null; then |
| 926 | ac_cv_prog_cc_cross=no |
| 927 | else |
| 928 | ac_cv_prog_cc_cross=yes |
| 929 | fi |
| 930 | else |
| 931 | echo "configure: failed program was:" >&5 |
| 932 | cat conftest.$ac_ext >&5 |
| 933 | ac_cv_prog_cc_works=no |
| 934 | fi |
| 935 | rm -fr conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 936 | ac_ext=c |
| 937 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 938 | ac_cpp='$CPP $CPPFLAGS' |
| 939 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 940 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 941 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 942 | |
| 943 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 944 | if test $ac_cv_prog_cc_works = no; then |
| 945 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 946 | fi |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 947 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| 948 | echo "configure:949: 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] | 949 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 950 | cross_compiling=$ac_cv_prog_cc_cross |
| 951 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 952 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 953 | echo "configure:954: checking whether we are using GNU C" >&5 |
| 954 | if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 955 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 956 | else |
| 957 | cat > conftest.c <<EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 958 | #ifdef __GNUC__ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 959 | yes; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 960 | #endif |
| 961 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 962 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:963: \"$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] | 963 | ac_cv_prog_gcc=yes |
| 964 | else |
| 965 | ac_cv_prog_gcc=no |
| 966 | fi |
| 967 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 968 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 969 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 970 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 971 | if test $ac_cv_prog_gcc = yes; then |
| 972 | GCC=yes |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 973 | else |
| 974 | GCC= |
| 975 | fi |
| 976 | |
| 977 | ac_test_CFLAGS="${CFLAGS+set}" |
| 978 | ac_save_CFLAGS="$CFLAGS" |
| 979 | CFLAGS= |
| 980 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 981 | echo "configure:982: checking whether ${CC-cc} accepts -g" >&5 |
| 982 | if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 983 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 984 | else |
| 985 | echo 'void f(){}' > conftest.c |
| 986 | 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] | 987 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 988 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 989 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 990 | fi |
| 991 | rm -f conftest* |
| 992 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 993 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 994 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 995 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 996 | if test "$ac_test_CFLAGS" = set; then |
| 997 | CFLAGS="$ac_save_CFLAGS" |
| 998 | elif test $ac_cv_prog_cc_g = yes; then |
| 999 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1000 | CFLAGS="-g -O2" |
| 1001 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1002 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1003 | fi |
| 1004 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1005 | if test "$GCC" = yes; then |
| 1006 | CFLAGS="-O2" |
| 1007 | else |
| 1008 | CFLAGS= |
| 1009 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1010 | fi |
| 1011 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1012 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 1013 | case $MACHDEP in |
| 1014 | bsdos*) |
| 1015 | case $CC in |
| 1016 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 1017 | esac;; |
| 1018 | esac |
| 1019 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1020 | case $ac_sys_system in |
| 1021 | hp*|HP*) |
| 1022 | case $CC in |
| 1023 | cc|*/cc) CC="$CC -Aa -D_HPUX_SOURCE";; |
| 1024 | esac;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1025 | BeOS*) |
| 1026 | case $CC in |
| 1027 | cc) CC=cc;; |
| 1028 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1029 | Monterey*) |
| 1030 | case $CC in |
| 1031 | cc) CC="$CC -Wl,-Bexport";; |
| 1032 | esac;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1033 | esac |
| 1034 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1035 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 1036 | # name of the library into which to insert object files). On systems |
| 1037 | # without shared libraries, LDLIBRARY is the same as LIBRARY (defined in |
| 1038 | # the Makefiles). |
| 1039 | |
| 1040 | |
| 1041 | LDLIBRARY='' |
| 1042 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1043 | # 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] | 1044 | # This is altered for AIX and BeOS in order to build the export list before |
| 1045 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1046 | |
| 1047 | echo $ac_n "checking LINKCC""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1048 | echo "configure:1049: checking LINKCC" >&5 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1049 | if test -z "$LINKCC" -a ! -z "$CXX" |
| 1050 | then |
| 1051 | LINKCC="$CXX" |
| 1052 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1053 | if test -z "$LINKCC" |
| 1054 | then |
| 1055 | case $ac_sys_system in |
| 1056 | AIX*) |
Guido van Rossum | 45140f9 | 1997-08-29 18:44:06 +0000 | [diff] [blame] | 1057 | LINKCC="\$(srcdir)/makexp_aix python.exp \"\" \$(LIBRARY); \$(PURIFY) \$(CC)";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1058 | BeOS*) |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 1059 | LINKCC="\$(srcdir)/../BeOS/linkcc \$(LIBRARY) \$(PURIFY) \$(CC) \$(OPT)" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1060 | LDLIBRARY='libpython$(VERSION).so';; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 1061 | dgux*) |
| 1062 | LINKCC="LD_RUN_PATH=$libdir \$(PURIFY) \$(CC)";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1063 | Monterey64*) |
| 1064 | LINKCC="\$(PURIFY) \$(CC) -L/usr/lib/ia64l64";; |
Guido van Rossum | 25f9303 | 1997-08-18 16:00:04 +0000 | [diff] [blame] | 1065 | *) LINKCC="\$(PURIFY) \$(CC)";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1066 | esac |
| 1067 | fi |
| 1068 | echo "$ac_t""$LINKCC" 1>&6 |
| 1069 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1070 | echo $ac_n "checking LDLIBRARY""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1071 | echo "configure:1072: checking LDLIBRARY" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1072 | |
| 1073 | # NeXT framework builds require that the 'ar' library be converted into |
| 1074 | # a bundle using libtool. |
| 1075 | if test "$with_next_framework" |
| 1076 | then |
| 1077 | LDLIBRARY='libpython$(VERSION).dylib' |
| 1078 | fi |
| 1079 | |
| 1080 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 1081 | if test "$MACHDEP" = "dguxR4" |
| 1082 | then |
| 1083 | LDLIBRARY='libpython$(VERSION).so' |
| 1084 | OPT="$OPT -pic" |
| 1085 | fi |
| 1086 | echo "$ac_t""$LDLIBRARY" 1>&6 |
| 1087 | |
| 1088 | # If LDLIBRARY is different from LIBRARY, emit a rule to build it. |
| 1089 | if test -z "$LDLIBRARY" |
| 1090 | then |
| 1091 | LDLIBRARY='libpython$(VERSION).a' |
| 1092 | MAKE_LDLIBRARY="true" |
| 1093 | else |
| 1094 | MAKE_LDLIBRARY='$(MAKE) $(LDLIBRARY)' |
| 1095 | fi |
| 1096 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1097 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1098 | set dummy ranlib; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1099 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1100 | echo "configure:1101: checking for $ac_word" >&5 |
| 1101 | if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1102 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1103 | else |
| 1104 | if test -n "$RANLIB"; then |
| 1105 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1106 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1107 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1108 | ac_dummy="$PATH" |
| 1109 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1110 | test -z "$ac_dir" && ac_dir=. |
| 1111 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1112 | ac_cv_prog_RANLIB="ranlib" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1113 | break |
| 1114 | fi |
| 1115 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1116 | IFS="$ac_save_ifs" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1117 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1118 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1119 | fi |
| 1120 | RANLIB="$ac_cv_prog_RANLIB" |
| 1121 | if test -n "$RANLIB"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1122 | echo "$ac_t""$RANLIB" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1123 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1124 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1125 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1126 | |
| 1127 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1128 | for ac_prog in ar aal |
| 1129 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1130 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1131 | set dummy $ac_prog; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1132 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1133 | echo "configure:1134: checking for $ac_word" >&5 |
| 1134 | if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1135 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1136 | else |
| 1137 | if test -n "$AR"; then |
| 1138 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 1139 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1140 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1141 | ac_dummy="$PATH" |
| 1142 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1143 | test -z "$ac_dir" && ac_dir=. |
| 1144 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1145 | ac_cv_prog_AR="$ac_prog" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1146 | break |
| 1147 | fi |
| 1148 | done |
| 1149 | IFS="$ac_save_ifs" |
| 1150 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1151 | fi |
| 1152 | AR="$ac_cv_prog_AR" |
| 1153 | if test -n "$AR"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1154 | echo "$ac_t""$AR" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1155 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1156 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1157 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1158 | |
| 1159 | test -n "$AR" && break |
| 1160 | done |
| 1161 | test -n "$AR" || AR="ar" |
| 1162 | |
| 1163 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1164 | |
| 1165 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1166 | # Install just never works :-( |
| 1167 | if test -z "$INSTALL" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1168 | then |
| 1169 | INSTALL=cp |
| 1170 | INSTALL_PROGRAM=cp |
| 1171 | INSTALL_DATA=cp |
| 1172 | else |
| 1173 | INSTALL_PROGRAM="$INSTALL" |
| 1174 | INSTALL_DATA="$INSTALL -m 644" |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1175 | fi |
| 1176 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1177 | # Not every filesystem supports hard links |
| 1178 | |
| 1179 | if test -z "$LN" ; then |
| 1180 | case $ac_sys_system in |
| 1181 | BeOS*) LN="ln -s";; |
| 1182 | *) LN=ln;; |
| 1183 | esac |
| 1184 | fi |
| 1185 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1186 | # Optimizer/debugger flags passed between Makefiles |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1187 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1188 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1189 | then |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 1190 | case $GCC in |
| 1191 | yes) |
| 1192 | case $ac_cv_prog_cc_g in |
| 1193 | yes) OPT="-g -O2";; |
| 1194 | *) OPT="-O2";; |
| 1195 | esac |
| 1196 | ;; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1197 | *) OPT="-O";; |
| 1198 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1199 | fi |
| 1200 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1201 | # The current (beta) Monterey compiler dies with optimizations |
| 1202 | case $ac_sys_system in |
| 1203 | Monterey*) OPT="";; |
| 1204 | esac |
| 1205 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1206 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 1207 | then |
| 1208 | OPT="$OPT $ac_arch_flags" |
| 1209 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1210 | # checks for UNIX variants that set C preprocessor variables |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1211 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1212 | echo "configure:1213: checking how to run the C preprocessor" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1213 | # On Suns, sometimes $CPP names a directory. |
| 1214 | if test -n "$CPP" && test -d "$CPP"; then |
| 1215 | CPP= |
| 1216 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1217 | if test -z "$CPP"; then |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1218 | if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1219 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1220 | else |
| 1221 | # This must be in double quotes, not single quotes, because CPP may get |
| 1222 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1223 | CPP="${CC-cc} -E" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1224 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 1225 | # not just through cpp. |
| 1226 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1227 | #line 1228 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1228 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1229 | #include <assert.h> |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1230 | Syntax Error |
| 1231 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1232 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1233 | { (eval echo configure:1234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1234 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1235 | if test -z "$ac_err"; then |
| 1236 | : |
| 1237 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1238 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1239 | echo "configure: failed program was:" >&5 |
| 1240 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1241 | rm -rf conftest* |
| 1242 | CPP="${CC-cc} -E -traditional-cpp" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1243 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1244 | #line 1245 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1245 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1246 | #include <assert.h> |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1247 | Syntax Error |
| 1248 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1249 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1250 | { (eval echo configure:1251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1251 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1252 | if test -z "$ac_err"; then |
| 1253 | : |
| 1254 | else |
| 1255 | echo "$ac_err" >&5 |
| 1256 | echo "configure: failed program was:" >&5 |
| 1257 | cat conftest.$ac_ext >&5 |
| 1258 | rm -rf conftest* |
| 1259 | CPP="${CC-cc} -nologo -E" |
| 1260 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1261 | #line 1262 "configure" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1262 | #include "confdefs.h" |
| 1263 | #include <assert.h> |
| 1264 | Syntax Error |
| 1265 | EOF |
| 1266 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1267 | { (eval echo configure:1268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1268 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1269 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1270 | : |
| 1271 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1272 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1273 | echo "configure: failed program was:" >&5 |
| 1274 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1275 | rm -rf conftest* |
| 1276 | CPP=/lib/cpp |
| 1277 | fi |
| 1278 | rm -f conftest* |
| 1279 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1280 | rm -f conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1281 | fi |
| 1282 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1283 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1284 | fi |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1285 | CPP="$ac_cv_prog_CPP" |
| 1286 | else |
| 1287 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1288 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1289 | echo "$ac_t""$CPP" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1290 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1291 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1292 | echo "configure:1293: checking for AIX" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1293 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1294 | #line 1295 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1295 | #include "confdefs.h" |
| 1296 | #ifdef _AIX |
| 1297 | yes |
| 1298 | #endif |
| 1299 | |
| 1300 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1301 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1302 | egrep "yes" >/dev/null 2>&1; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1303 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1304 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1305 | #define _ALL_SOURCE 1 |
| 1306 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1307 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1308 | else |
| 1309 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1310 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1311 | fi |
| 1312 | rm -f conftest* |
| 1313 | |
| 1314 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1315 | ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1316 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1317 | echo "configure:1318: checking for minix/config.h" >&5 |
| 1318 | if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1319 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1320 | else |
| 1321 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1322 | #line 1323 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1323 | #include "confdefs.h" |
| 1324 | #include <minix/config.h> |
| 1325 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1326 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1327 | { (eval echo configure:1328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1328 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1329 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1330 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1331 | eval "ac_cv_header_$ac_safe=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1332 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1333 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1334 | echo "configure: failed program was:" >&5 |
| 1335 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1336 | rm -rf conftest* |
| 1337 | eval "ac_cv_header_$ac_safe=no" |
| 1338 | fi |
| 1339 | rm -f conftest* |
| 1340 | fi |
| 1341 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1342 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1343 | MINIX=yes |
| 1344 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1345 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1346 | MINIX= |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1347 | fi |
| 1348 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1349 | if test "$MINIX" = yes; then |
| 1350 | cat >> confdefs.h <<\EOF |
| 1351 | #define _POSIX_SOURCE 1 |
| 1352 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1353 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1354 | cat >> confdefs.h <<\EOF |
| 1355 | #define _POSIX_1_SOURCE 2 |
| 1356 | EOF |
| 1357 | |
| 1358 | cat >> confdefs.h <<\EOF |
| 1359 | #define _MINIX 1 |
| 1360 | EOF |
| 1361 | |
| 1362 | fi |
| 1363 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1364 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1365 | echo $ac_n "checking whether $CC accepts -OPT:Olimit=0""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1366 | echo "configure:1367: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 1367 | if eval "test \"\${ac_cv_opt_olimit_ok+set}\" = set"; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1368 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1369 | else |
| 1370 | ac_save_cc="$CC" |
| 1371 | CC="$CC -OPT:Olimit=0" |
| 1372 | if test "$cross_compiling" = yes; then |
| 1373 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1374 | else |
| 1375 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1376 | #line 1377 "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1377 | #include "confdefs.h" |
| 1378 | int main() { return 0; } |
| 1379 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1380 | if { (eval echo configure:1381: \"$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] | 1381 | then |
| 1382 | ac_cv_opt_olimit_ok=yes |
| 1383 | else |
| 1384 | echo "configure: failed program was:" >&5 |
| 1385 | cat conftest.$ac_ext >&5 |
| 1386 | rm -fr conftest* |
| 1387 | ac_cv_opt_olimit_ok=no |
| 1388 | fi |
| 1389 | rm -fr conftest* |
| 1390 | fi |
| 1391 | |
| 1392 | CC="$ac_save_cc" |
| 1393 | fi |
| 1394 | |
| 1395 | echo "$ac_t""$ac_cv_opt_olimit_ok" 1>&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 1396 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 304dd2d | 1997-10-20 23:10:56 +0000 | [diff] [blame] | 1397 | OPT="$OPT -OPT:Olimit=0" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1398 | else |
| 1399 | echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1400 | echo "configure:1401: checking whether $CC accepts -Olimit 1500" >&5 |
| 1401 | if eval "test \"\${ac_cv_olimit_ok+set}\" = set"; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1402 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1403 | else |
| 1404 | ac_save_cc="$CC" |
| 1405 | CC="$CC -Olimit 1500" |
| 1406 | if test "$cross_compiling" = yes; then |
| 1407 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1408 | else |
| 1409 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1410 | #line 1411 "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1411 | #include "confdefs.h" |
| 1412 | int main() { return 0; } |
| 1413 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1414 | if { (eval echo configure:1415: \"$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] | 1415 | then |
| 1416 | ac_cv_olimit_ok=yes |
| 1417 | else |
| 1418 | echo "configure: failed program was:" >&5 |
| 1419 | cat conftest.$ac_ext >&5 |
| 1420 | rm -fr conftest* |
| 1421 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 1422 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1423 | rm -fr conftest* |
| 1424 | fi |
| 1425 | |
| 1426 | CC="$ac_save_cc" |
| 1427 | fi |
| 1428 | |
| 1429 | echo "$ac_t""$ac_cv_olimit_ok" 1>&6 |
| 1430 | if test $ac_cv_olimit_ok = yes; then |
| 1431 | OPT="$OPT -Olimit 1500" |
| 1432 | fi |
| 1433 | fi |
| 1434 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1435 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1436 | # checks for header files |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1437 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1438 | echo "configure:1439: checking for ANSI C header files" >&5 |
| 1439 | if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1440 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1441 | else |
| 1442 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1443 | #line 1444 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1444 | #include "confdefs.h" |
| 1445 | #include <stdlib.h> |
| 1446 | #include <stdarg.h> |
| 1447 | #include <string.h> |
| 1448 | #include <float.h> |
| 1449 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1450 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1451 | { (eval echo configure:1452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1452 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1453 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1454 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1455 | ac_cv_header_stdc=yes |
| 1456 | else |
| 1457 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1458 | echo "configure: failed program was:" >&5 |
| 1459 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1460 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1461 | ac_cv_header_stdc=no |
| 1462 | fi |
| 1463 | rm -f conftest* |
| 1464 | |
| 1465 | if test $ac_cv_header_stdc = yes; then |
| 1466 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 1467 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1468 | #line 1469 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1469 | #include "confdefs.h" |
| 1470 | #include <string.h> |
| 1471 | EOF |
| 1472 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1473 | egrep "memchr" >/dev/null 2>&1; then |
| 1474 | : |
| 1475 | else |
| 1476 | rm -rf conftest* |
| 1477 | ac_cv_header_stdc=no |
| 1478 | fi |
| 1479 | rm -f conftest* |
| 1480 | |
| 1481 | fi |
| 1482 | |
| 1483 | if test $ac_cv_header_stdc = yes; then |
| 1484 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 1485 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1486 | #line 1487 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1487 | #include "confdefs.h" |
| 1488 | #include <stdlib.h> |
| 1489 | EOF |
| 1490 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1491 | egrep "free" >/dev/null 2>&1; then |
| 1492 | : |
| 1493 | else |
| 1494 | rm -rf conftest* |
| 1495 | ac_cv_header_stdc=no |
| 1496 | fi |
| 1497 | rm -f conftest* |
| 1498 | |
| 1499 | fi |
| 1500 | |
| 1501 | if test $ac_cv_header_stdc = yes; then |
| 1502 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 1503 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1504 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1505 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1506 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1507 | #line 1508 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1508 | #include "confdefs.h" |
| 1509 | #include <ctype.h> |
| 1510 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 1511 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1512 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1513 | int main () { int i; for (i = 0; i < 256; i++) |
| 1514 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 1515 | exit (0); } |
| 1516 | |
| 1517 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1518 | if { (eval echo configure:1519: \"$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] | 1519 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1520 | : |
| 1521 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1522 | echo "configure: failed program was:" >&5 |
| 1523 | cat conftest.$ac_ext >&5 |
| 1524 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1525 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1526 | fi |
| 1527 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1528 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1529 | |
| 1530 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1531 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1532 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1533 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1534 | if test $ac_cv_header_stdc = yes; then |
| 1535 | cat >> confdefs.h <<\EOF |
| 1536 | #define STDC_HEADERS 1 |
| 1537 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1538 | |
| 1539 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1540 | |
Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame] | 1541 | for ac_hdr in dlfcn.h fcntl.h limits.h locale.h ncurses.h poll.h pthread.h \ |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 1542 | 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] | 1543 | sys/audioio.h sys/file.h sys/lock.h \ |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 1544 | 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] | 1545 | 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] | 1546 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1547 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1548 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1549 | echo "configure:1550: checking for $ac_hdr" >&5 |
| 1550 | if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1551 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1552 | else |
| 1553 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1554 | #line 1555 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1555 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1556 | #include <$ac_hdr> |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1557 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1558 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1559 | { (eval echo configure:1560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1560 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1561 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1562 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1563 | eval "ac_cv_header_$ac_safe=yes" |
| 1564 | else |
| 1565 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1566 | echo "configure: failed program was:" >&5 |
| 1567 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1568 | rm -rf conftest* |
| 1569 | eval "ac_cv_header_$ac_safe=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1570 | fi |
| 1571 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1572 | fi |
| 1573 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1574 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1575 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1576 | cat >> confdefs.h <<EOF |
| 1577 | #define $ac_tr_hdr 1 |
| 1578 | EOF |
| 1579 | |
| 1580 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1581 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1582 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1583 | done |
| 1584 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1585 | ac_header_dirent=no |
| 1586 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
| 1587 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1588 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1589 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1590 | echo "configure:1591: checking for $ac_hdr that defines DIR" >&5 |
| 1591 | 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] | 1592 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1593 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1594 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1595 | #line 1596 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1596 | #include "confdefs.h" |
| 1597 | #include <sys/types.h> |
| 1598 | #include <$ac_hdr> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1599 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1600 | DIR *dirp = 0; |
| 1601 | ; return 0; } |
| 1602 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1603 | if { (eval echo configure:1604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1604 | rm -rf conftest* |
| 1605 | eval "ac_cv_header_dirent_$ac_safe=yes" |
| 1606 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1607 | echo "configure: failed program was:" >&5 |
| 1608 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1609 | rm -rf conftest* |
| 1610 | eval "ac_cv_header_dirent_$ac_safe=no" |
| 1611 | fi |
| 1612 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1613 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1614 | 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] | 1615 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1616 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1617 | cat >> confdefs.h <<EOF |
| 1618 | #define $ac_tr_hdr 1 |
| 1619 | EOF |
| 1620 | ac_header_dirent=$ac_hdr; break |
| 1621 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1622 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1623 | fi |
| 1624 | done |
| 1625 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 1626 | if test $ac_header_dirent = dirent.h; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1627 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1628 | echo "configure:1629: checking for opendir in -ldir" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1629 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1630 | 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] | 1631 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1632 | else |
| 1633 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1634 | LIBS="-ldir $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1635 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1636 | #line 1637 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1637 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1638 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1639 | /* We use char because int might match the return type of a gcc2 |
| 1640 | builtin and then its argument prototype would still apply. */ |
| 1641 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1642 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1643 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1644 | opendir() |
| 1645 | ; return 0; } |
| 1646 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1647 | if { (eval echo configure:1648: \"$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] | 1648 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1649 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1650 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1651 | echo "configure: failed program was:" >&5 |
| 1652 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1653 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1654 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1655 | fi |
| 1656 | rm -f conftest* |
| 1657 | LIBS="$ac_save_LIBS" |
| 1658 | |
| 1659 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1660 | 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] | 1661 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1662 | LIBS="$LIBS -ldir" |
| 1663 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1664 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1665 | fi |
| 1666 | |
| 1667 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1668 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1669 | echo "configure:1670: checking for opendir in -lx" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1670 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1671 | 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] | 1672 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1673 | else |
| 1674 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1675 | LIBS="-lx $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1676 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1677 | #line 1678 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1678 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1679 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1680 | /* We use char because int might match the return type of a gcc2 |
| 1681 | builtin and then its argument prototype would still apply. */ |
| 1682 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1683 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1684 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1685 | opendir() |
| 1686 | ; return 0; } |
| 1687 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1688 | if { (eval echo configure:1689: \"$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] | 1689 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1690 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1691 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1692 | echo "configure: failed program was:" >&5 |
| 1693 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1694 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1695 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1696 | fi |
| 1697 | rm -f conftest* |
| 1698 | LIBS="$ac_save_LIBS" |
| 1699 | |
| 1700 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1701 | 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] | 1702 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1703 | LIBS="$LIBS -lx" |
| 1704 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1705 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1706 | fi |
| 1707 | |
| 1708 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1709 | |
| 1710 | |
| 1711 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1712 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1713 | echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1714 | echo "configure:1715: checking for clock_t in time.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1715 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1716 | #line 1717 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1717 | #include "confdefs.h" |
| 1718 | #include <time.h> |
| 1719 | EOF |
| 1720 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1721 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1722 | rm -rf conftest* |
| 1723 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1724 | else |
| 1725 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1726 | cat >> confdefs.h <<\EOF |
| 1727 | #define clock_t long |
| 1728 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1729 | |
| 1730 | fi |
| 1731 | rm -f conftest* |
| 1732 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1733 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1734 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1735 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 1736 | cat >> confdefs.h <<\EOF |
| 1737 | #if defined(SCO_DS) |
| 1738 | #undef _OFF_T |
| 1739 | #endif |
| 1740 | EOF |
| 1741 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 1742 | # Type availability checks |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1743 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1744 | echo "configure:1745: checking for mode_t" >&5 |
| 1745 | if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1746 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1747 | else |
| 1748 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1749 | #line 1750 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1750 | #include "confdefs.h" |
| 1751 | #include <sys/types.h> |
| 1752 | #if STDC_HEADERS |
| 1753 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1754 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1755 | #endif |
| 1756 | EOF |
| 1757 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1758 | 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] | 1759 | rm -rf conftest* |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1760 | eval "ac_cv_type_mode_t=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1761 | else |
| 1762 | rm -rf conftest* |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1763 | eval "ac_cv_type_mode_t=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1764 | fi |
| 1765 | rm -f conftest* |
| 1766 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1767 | fi |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1768 | if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then |
| 1769 | echo "$ac_t""yes" 1>&6 |
| 1770 | else |
| 1771 | echo "$ac_t""no" 1>&6 |
| 1772 | cat >> confdefs.h <<EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1773 | #define mode_t int |
| 1774 | EOF |
| 1775 | |
| 1776 | fi |
| 1777 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1778 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1779 | echo "configure:1780: checking for off_t" >&5 |
| 1780 | if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1781 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1782 | else |
| 1783 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1784 | #line 1785 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1785 | #include "confdefs.h" |
| 1786 | #include <sys/types.h> |
| 1787 | #if STDC_HEADERS |
| 1788 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1789 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1790 | #endif |
| 1791 | EOF |
| 1792 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1793 | 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] | 1794 | rm -rf conftest* |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1795 | eval "ac_cv_type_off_t=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1796 | else |
| 1797 | rm -rf conftest* |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1798 | eval "ac_cv_type_off_t=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1799 | fi |
| 1800 | rm -f conftest* |
| 1801 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1802 | fi |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1803 | if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then |
| 1804 | echo "$ac_t""yes" 1>&6 |
| 1805 | else |
| 1806 | echo "$ac_t""no" 1>&6 |
| 1807 | cat >> confdefs.h <<EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1808 | #define off_t long |
| 1809 | EOF |
| 1810 | |
| 1811 | fi |
| 1812 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1813 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1814 | echo "configure:1815: checking for pid_t" >&5 |
| 1815 | if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1816 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1817 | else |
| 1818 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1819 | #line 1820 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1820 | #include "confdefs.h" |
| 1821 | #include <sys/types.h> |
| 1822 | #if STDC_HEADERS |
| 1823 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1824 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1825 | #endif |
| 1826 | EOF |
| 1827 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1828 | 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] | 1829 | rm -rf conftest* |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1830 | eval "ac_cv_type_pid_t=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1831 | else |
| 1832 | rm -rf conftest* |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1833 | eval "ac_cv_type_pid_t=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1834 | fi |
| 1835 | rm -f conftest* |
| 1836 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1837 | fi |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1838 | if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then |
| 1839 | echo "$ac_t""yes" 1>&6 |
| 1840 | else |
| 1841 | echo "$ac_t""no" 1>&6 |
| 1842 | cat >> confdefs.h <<EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1843 | #define pid_t int |
| 1844 | EOF |
| 1845 | |
| 1846 | fi |
| 1847 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1848 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1849 | echo "configure:1850: checking return type of signal handlers" >&5 |
| 1850 | if eval "test \"\${ac_cv_type_signal+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1851 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1852 | else |
| 1853 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1854 | #line 1855 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1855 | #include "confdefs.h" |
| 1856 | #include <sys/types.h> |
| 1857 | #include <signal.h> |
| 1858 | #ifdef signal |
| 1859 | #undef signal |
| 1860 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1861 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1862 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 1863 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1864 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1865 | #endif |
| 1866 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1867 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1868 | int i; |
| 1869 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1870 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1871 | if { (eval echo configure:1872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1872 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1873 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1874 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1875 | echo "configure: failed program was:" >&5 |
| 1876 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1877 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1878 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1879 | fi |
| 1880 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1881 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1882 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1883 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1884 | cat >> confdefs.h <<EOF |
| 1885 | #define RETSIGTYPE $ac_cv_type_signal |
| 1886 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1887 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1888 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1889 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1890 | echo "configure:1891: checking for size_t" >&5 |
| 1891 | if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1892 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1893 | else |
| 1894 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1895 | #line 1896 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1896 | #include "confdefs.h" |
| 1897 | #include <sys/types.h> |
| 1898 | #if STDC_HEADERS |
| 1899 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1900 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1901 | #endif |
| 1902 | EOF |
| 1903 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1904 | 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] | 1905 | rm -rf conftest* |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1906 | eval "ac_cv_type_size_t=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1907 | else |
| 1908 | rm -rf conftest* |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1909 | eval "ac_cv_type_size_t=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1910 | fi |
| 1911 | rm -f conftest* |
| 1912 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1913 | fi |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1914 | if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then |
| 1915 | echo "$ac_t""yes" 1>&6 |
| 1916 | else |
| 1917 | echo "$ac_t""no" 1>&6 |
| 1918 | cat >> confdefs.h <<EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1919 | #define size_t unsigned |
| 1920 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1921 | |
| 1922 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1923 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1924 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1925 | echo "configure:1926: checking for uid_t in sys/types.h" >&5 |
| 1926 | if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1927 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1928 | else |
| 1929 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1930 | #line 1931 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1931 | #include "confdefs.h" |
| 1932 | #include <sys/types.h> |
| 1933 | EOF |
| 1934 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1935 | egrep "uid_t" >/dev/null 2>&1; then |
| 1936 | rm -rf conftest* |
| 1937 | ac_cv_type_uid_t=yes |
| 1938 | else |
| 1939 | rm -rf conftest* |
| 1940 | ac_cv_type_uid_t=no |
| 1941 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1942 | rm -f conftest* |
| 1943 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1944 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1945 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1946 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1947 | if test $ac_cv_type_uid_t = no; then |
| 1948 | cat >> confdefs.h <<\EOF |
| 1949 | #define uid_t int |
| 1950 | EOF |
| 1951 | |
| 1952 | cat >> confdefs.h <<\EOF |
| 1953 | #define gid_t int |
| 1954 | EOF |
| 1955 | |
| 1956 | fi |
| 1957 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1958 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 1959 | # Sizes of various common basic types |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1960 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1961 | echo "configure:1962: checking size of int" >&5 |
| 1962 | if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1963 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1964 | else |
| 1965 | if test "$cross_compiling" = yes; then |
| 1966 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1967 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1968 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1969 | #line 1970 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1970 | #include "confdefs.h" |
| 1971 | #include <stdio.h> |
| 1972 | main() |
| 1973 | { |
| 1974 | FILE *f=fopen("conftestval", "w"); |
| 1975 | if (!f) exit(1); |
| 1976 | fprintf(f, "%d\n", sizeof(int)); |
| 1977 | exit(0); |
| 1978 | } |
| 1979 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 1980 | if { (eval echo configure:1981: \"$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] | 1981 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1982 | ac_cv_sizeof_int=`cat conftestval` |
| 1983 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1984 | echo "configure: failed program was:" >&5 |
| 1985 | cat conftest.$ac_ext >&5 |
| 1986 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1987 | ac_cv_sizeof_int=0 |
| 1988 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1989 | rm -fr conftest* |
| 1990 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1991 | |
| 1992 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1993 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 1994 | cat >> confdefs.h <<EOF |
| 1995 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 1996 | EOF |
| 1997 | |
| 1998 | |
| 1999 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2000 | echo "configure:2001: checking size of long" >&5 |
| 2001 | if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2002 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2003 | else |
| 2004 | if test "$cross_compiling" = yes; then |
| 2005 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2006 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2007 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2008 | #line 2009 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2009 | #include "confdefs.h" |
| 2010 | #include <stdio.h> |
| 2011 | main() |
| 2012 | { |
| 2013 | FILE *f=fopen("conftestval", "w"); |
| 2014 | if (!f) exit(1); |
| 2015 | fprintf(f, "%d\n", sizeof(long)); |
| 2016 | exit(0); |
| 2017 | } |
| 2018 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2019 | if { (eval echo configure:2020: \"$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] | 2020 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2021 | ac_cv_sizeof_long=`cat conftestval` |
| 2022 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2023 | echo "configure: failed program was:" >&5 |
| 2024 | cat conftest.$ac_ext >&5 |
| 2025 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2026 | ac_cv_sizeof_long=0 |
| 2027 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2028 | rm -fr conftest* |
| 2029 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2030 | |
| 2031 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2032 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
| 2033 | cat >> confdefs.h <<EOF |
| 2034 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 2035 | EOF |
| 2036 | |
| 2037 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2038 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2039 | echo "configure:2040: checking size of void *" >&5 |
| 2040 | if eval "test \"\${ac_cv_sizeof_void_p+set}\" = set"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2041 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2042 | else |
| 2043 | if test "$cross_compiling" = yes; then |
| 2044 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2045 | else |
| 2046 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2047 | #line 2048 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2048 | #include "confdefs.h" |
| 2049 | #include <stdio.h> |
| 2050 | main() |
| 2051 | { |
| 2052 | FILE *f=fopen("conftestval", "w"); |
| 2053 | if (!f) exit(1); |
| 2054 | fprintf(f, "%d\n", sizeof(void *)); |
| 2055 | exit(0); |
| 2056 | } |
| 2057 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2058 | if { (eval echo configure:2059: \"$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] | 2059 | then |
| 2060 | ac_cv_sizeof_void_p=`cat conftestval` |
| 2061 | else |
| 2062 | echo "configure: failed program was:" >&5 |
| 2063 | cat conftest.$ac_ext >&5 |
| 2064 | rm -fr conftest* |
| 2065 | ac_cv_sizeof_void_p=0 |
| 2066 | fi |
| 2067 | rm -fr conftest* |
| 2068 | fi |
| 2069 | |
| 2070 | fi |
| 2071 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
| 2072 | cat >> confdefs.h <<EOF |
| 2073 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
| 2074 | EOF |
| 2075 | |
| 2076 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2077 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2078 | echo "configure:2079: checking size of char" >&5 |
| 2079 | if eval "test \"\${ac_cv_sizeof_char+set}\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2080 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2081 | else |
| 2082 | if test "$cross_compiling" = yes; then |
| 2083 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2084 | else |
| 2085 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2086 | #line 2087 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2087 | #include "confdefs.h" |
| 2088 | #include <stdio.h> |
| 2089 | main() |
| 2090 | { |
| 2091 | FILE *f=fopen("conftestval", "w"); |
| 2092 | if (!f) exit(1); |
| 2093 | fprintf(f, "%d\n", sizeof(char)); |
| 2094 | exit(0); |
| 2095 | } |
| 2096 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2097 | if { (eval echo configure:2098: \"$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] | 2098 | then |
| 2099 | ac_cv_sizeof_char=`cat conftestval` |
| 2100 | else |
| 2101 | echo "configure: failed program was:" >&5 |
| 2102 | cat conftest.$ac_ext >&5 |
| 2103 | rm -fr conftest* |
| 2104 | ac_cv_sizeof_char=0 |
| 2105 | fi |
| 2106 | rm -fr conftest* |
| 2107 | fi |
| 2108 | |
| 2109 | fi |
| 2110 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
| 2111 | cat >> confdefs.h <<EOF |
| 2112 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
| 2113 | EOF |
| 2114 | |
| 2115 | |
| 2116 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2117 | echo "configure:2118: checking size of short" >&5 |
| 2118 | if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2119 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2120 | else |
| 2121 | if test "$cross_compiling" = yes; then |
| 2122 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2123 | else |
| 2124 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2125 | #line 2126 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2126 | #include "confdefs.h" |
| 2127 | #include <stdio.h> |
| 2128 | main() |
| 2129 | { |
| 2130 | FILE *f=fopen("conftestval", "w"); |
| 2131 | if (!f) exit(1); |
| 2132 | fprintf(f, "%d\n", sizeof(short)); |
| 2133 | exit(0); |
| 2134 | } |
| 2135 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2136 | if { (eval echo configure:2137: \"$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] | 2137 | then |
| 2138 | ac_cv_sizeof_short=`cat conftestval` |
| 2139 | else |
| 2140 | echo "configure: failed program was:" >&5 |
| 2141 | cat conftest.$ac_ext >&5 |
| 2142 | rm -fr conftest* |
| 2143 | ac_cv_sizeof_short=0 |
| 2144 | fi |
| 2145 | rm -fr conftest* |
| 2146 | fi |
| 2147 | |
| 2148 | fi |
| 2149 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
| 2150 | cat >> confdefs.h <<EOF |
| 2151 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 2152 | EOF |
| 2153 | |
| 2154 | |
| 2155 | echo $ac_n "checking size of float""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2156 | echo "configure:2157: checking size of float" >&5 |
| 2157 | if eval "test \"\${ac_cv_sizeof_float+set}\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2158 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2159 | else |
| 2160 | if test "$cross_compiling" = yes; then |
| 2161 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2162 | else |
| 2163 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2164 | #line 2165 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2165 | #include "confdefs.h" |
| 2166 | #include <stdio.h> |
| 2167 | main() |
| 2168 | { |
| 2169 | FILE *f=fopen("conftestval", "w"); |
| 2170 | if (!f) exit(1); |
| 2171 | fprintf(f, "%d\n", sizeof(float)); |
| 2172 | exit(0); |
| 2173 | } |
| 2174 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2175 | if { (eval echo configure:2176: \"$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] | 2176 | then |
| 2177 | ac_cv_sizeof_float=`cat conftestval` |
| 2178 | else |
| 2179 | echo "configure: failed program was:" >&5 |
| 2180 | cat conftest.$ac_ext >&5 |
| 2181 | rm -fr conftest* |
| 2182 | ac_cv_sizeof_float=0 |
| 2183 | fi |
| 2184 | rm -fr conftest* |
| 2185 | fi |
| 2186 | |
| 2187 | fi |
| 2188 | echo "$ac_t""$ac_cv_sizeof_float" 1>&6 |
| 2189 | cat >> confdefs.h <<EOF |
| 2190 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
| 2191 | EOF |
| 2192 | |
| 2193 | |
| 2194 | echo $ac_n "checking size of double""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2195 | echo "configure:2196: checking size of double" >&5 |
| 2196 | if eval "test \"\${ac_cv_sizeof_double+set}\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2197 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2198 | else |
| 2199 | if test "$cross_compiling" = yes; then |
| 2200 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2201 | else |
| 2202 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2203 | #line 2204 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2204 | #include "confdefs.h" |
| 2205 | #include <stdio.h> |
| 2206 | main() |
| 2207 | { |
| 2208 | FILE *f=fopen("conftestval", "w"); |
| 2209 | if (!f) exit(1); |
| 2210 | fprintf(f, "%d\n", sizeof(double)); |
| 2211 | exit(0); |
| 2212 | } |
| 2213 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2214 | if { (eval echo configure:2215: \"$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] | 2215 | then |
| 2216 | ac_cv_sizeof_double=`cat conftestval` |
| 2217 | else |
| 2218 | echo "configure: failed program was:" >&5 |
| 2219 | cat conftest.$ac_ext >&5 |
| 2220 | rm -fr conftest* |
| 2221 | ac_cv_sizeof_double=0 |
| 2222 | fi |
| 2223 | rm -fr conftest* |
| 2224 | fi |
| 2225 | |
| 2226 | fi |
| 2227 | echo "$ac_t""$ac_cv_sizeof_double" 1>&6 |
| 2228 | cat >> confdefs.h <<EOF |
| 2229 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
| 2230 | EOF |
| 2231 | |
| 2232 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2233 | echo $ac_n "checking size of fpos_t""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2234 | echo "configure:2235: checking size of fpos_t" >&5 |
| 2235 | if eval "test \"\${ac_cv_sizeof_fpos_t+set}\" = set"; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2236 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2237 | else |
| 2238 | if test "$cross_compiling" = yes; then |
| 2239 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2240 | else |
| 2241 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2242 | #line 2243 "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2243 | #include "confdefs.h" |
| 2244 | #include <stdio.h> |
| 2245 | main() |
| 2246 | { |
| 2247 | FILE *f=fopen("conftestval", "w"); |
| 2248 | if (!f) exit(1); |
| 2249 | fprintf(f, "%d\n", sizeof(fpos_t)); |
| 2250 | exit(0); |
| 2251 | } |
| 2252 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2253 | if { (eval echo configure:2254: \"$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] | 2254 | then |
| 2255 | ac_cv_sizeof_fpos_t=`cat conftestval` |
| 2256 | else |
| 2257 | echo "configure: failed program was:" >&5 |
| 2258 | cat conftest.$ac_ext >&5 |
| 2259 | rm -fr conftest* |
| 2260 | ac_cv_sizeof_fpos_t=0 |
| 2261 | fi |
| 2262 | rm -fr conftest* |
| 2263 | fi |
| 2264 | |
| 2265 | fi |
| 2266 | echo "$ac_t""$ac_cv_sizeof_fpos_t" 1>&6 |
| 2267 | cat >> confdefs.h <<EOF |
| 2268 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
| 2269 | EOF |
| 2270 | |
| 2271 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2272 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2273 | echo $ac_n "checking for long long support""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2274 | echo "configure:2275: checking for long long support" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2275 | have_long_long=no |
| 2276 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2277 | #line 2278 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2278 | #include "confdefs.h" |
| 2279 | |
| 2280 | int main() { |
| 2281 | long long x; x = (long long)0; |
| 2282 | ; return 0; } |
| 2283 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2284 | if { (eval echo configure:2285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2285 | rm -rf conftest* |
| 2286 | cat >> confdefs.h <<\EOF |
| 2287 | #define HAVE_LONG_LONG 1 |
| 2288 | EOF |
| 2289 | have_long_long=yes |
| 2290 | else |
| 2291 | echo "configure: failed program was:" >&5 |
| 2292 | cat conftest.$ac_ext >&5 |
| 2293 | fi |
| 2294 | rm -f conftest* |
| 2295 | echo "$ac_t""$have_long_long" 1>&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2296 | if test "$have_long_long" = yes ; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2297 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2298 | echo "configure:2299: checking size of long long" >&5 |
| 2299 | if eval "test \"\${ac_cv_sizeof_long_long+set}\" = set"; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2300 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2301 | else |
| 2302 | if test "$cross_compiling" = yes; then |
| 2303 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2304 | else |
| 2305 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2306 | #line 2307 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2307 | #include "confdefs.h" |
| 2308 | #include <stdio.h> |
| 2309 | main() |
| 2310 | { |
| 2311 | FILE *f=fopen("conftestval", "w"); |
| 2312 | if (!f) exit(1); |
| 2313 | fprintf(f, "%d\n", sizeof(long long)); |
| 2314 | exit(0); |
| 2315 | } |
| 2316 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2317 | if { (eval echo configure:2318: \"$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] | 2318 | then |
| 2319 | ac_cv_sizeof_long_long=`cat conftestval` |
| 2320 | else |
| 2321 | echo "configure: failed program was:" >&5 |
| 2322 | cat conftest.$ac_ext >&5 |
| 2323 | rm -fr conftest* |
| 2324 | ac_cv_sizeof_long_long=0 |
| 2325 | fi |
| 2326 | rm -fr conftest* |
| 2327 | fi |
| 2328 | |
| 2329 | fi |
| 2330 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
| 2331 | cat >> confdefs.h <<EOF |
| 2332 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 2333 | EOF |
| 2334 | |
| 2335 | |
| 2336 | fi |
| 2337 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2338 | echo $ac_n "checking for uintptr_t support""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2339 | echo "configure:2340: checking for uintptr_t support" >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2340 | have_uintptr_t=no |
| 2341 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2342 | #line 2343 "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2343 | #include "confdefs.h" |
| 2344 | |
| 2345 | int main() { |
| 2346 | uintptr_t x; x = (uintptr_t)0; |
| 2347 | ; return 0; } |
| 2348 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2349 | if { (eval echo configure:2350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2350 | rm -rf conftest* |
| 2351 | cat >> confdefs.h <<\EOF |
| 2352 | #define HAVE_UINTPTR_T 1 |
| 2353 | EOF |
| 2354 | have_uintptr_t=yes |
| 2355 | else |
| 2356 | echo "configure: failed program was:" >&5 |
| 2357 | cat conftest.$ac_ext >&5 |
| 2358 | fi |
| 2359 | rm -f conftest* |
| 2360 | echo "$ac_t""$have_uintptr_t" 1>&6 |
| 2361 | if test "$have_uintptr_t" = yes ; then |
| 2362 | echo $ac_n "checking size of uintptr_t""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2363 | echo "configure:2364: checking size of uintptr_t" >&5 |
| 2364 | if eval "test \"\${ac_cv_sizeof_uintptr_t+set}\" = set"; then |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2365 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2366 | else |
| 2367 | if test "$cross_compiling" = yes; then |
| 2368 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2369 | else |
| 2370 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2371 | #line 2372 "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2372 | #include "confdefs.h" |
| 2373 | #include <stdio.h> |
| 2374 | main() |
| 2375 | { |
| 2376 | FILE *f=fopen("conftestval", "w"); |
| 2377 | if (!f) exit(1); |
| 2378 | fprintf(f, "%d\n", sizeof(uintptr_t)); |
| 2379 | exit(0); |
| 2380 | } |
| 2381 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2382 | if { (eval echo configure:2383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2383 | then |
| 2384 | ac_cv_sizeof_uintptr_t=`cat conftestval` |
| 2385 | else |
| 2386 | echo "configure: failed program was:" >&5 |
| 2387 | cat conftest.$ac_ext >&5 |
| 2388 | rm -fr conftest* |
| 2389 | ac_cv_sizeof_uintptr_t=0 |
| 2390 | fi |
| 2391 | rm -fr conftest* |
| 2392 | fi |
| 2393 | |
| 2394 | fi |
| 2395 | echo "$ac_t""$ac_cv_sizeof_uintptr_t" 1>&6 |
| 2396 | cat >> confdefs.h <<EOF |
| 2397 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
| 2398 | EOF |
| 2399 | |
| 2400 | |
| 2401 | fi |
| 2402 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2403 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
| 2404 | echo $ac_n "checking size of off_t""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2405 | echo "configure:2406: checking size of off_t" >&5 |
| 2406 | if eval "test \"\${ac_cv_sizeof_off_t+set}\" = set"; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2407 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2408 | else |
| 2409 | if test "$cross_compiling" = yes; then |
| 2410 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2411 | else |
| 2412 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2413 | #line 2414 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2414 | #include "confdefs.h" |
| 2415 | #include <stdio.h> |
| 2416 | #include <sys/types.h> |
| 2417 | main() |
| 2418 | { |
| 2419 | FILE *f=fopen("conftestval", "w"); |
| 2420 | if (!f) exit(1); |
| 2421 | fprintf(f, "%d\n", sizeof(off_t)); |
| 2422 | exit(0); |
| 2423 | } |
| 2424 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2425 | if { (eval echo configure:2426: \"$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] | 2426 | then |
| 2427 | ac_cv_sizeof_off_t=`cat conftestval` |
| 2428 | else |
| 2429 | echo "configure: failed program was:" >&5 |
| 2430 | cat conftest.$ac_ext >&5 |
| 2431 | rm -fr conftest* |
| 2432 | ac_cv_sizeof_off_t=0 |
| 2433 | fi |
| 2434 | rm -fr conftest* |
| 2435 | fi |
| 2436 | |
| 2437 | |
| 2438 | fi |
| 2439 | |
| 2440 | echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6 |
| 2441 | cat >> confdefs.h <<EOF |
| 2442 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 2443 | EOF |
| 2444 | |
| 2445 | |
| 2446 | echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2447 | echo "configure:2448: checking whether to enable large file support" >&5 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2448 | if test "$have_long_long" = yes -a \ |
| 2449 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 2450 | "$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] | 2451 | cat >> confdefs.h <<\EOF |
| 2452 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 2453 | EOF |
| 2454 | |
| 2455 | echo "$ac_t""yes" 1>&6 |
| 2456 | else |
| 2457 | echo "$ac_t""no" 1>&6 |
| 2458 | fi |
| 2459 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2460 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
| 2461 | echo $ac_n "checking size of time_t""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2462 | echo "configure:2463: checking size of time_t" >&5 |
| 2463 | if eval "test \"\${ac_cv_sizeof_time_t+set}\" = set"; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2464 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2465 | else |
| 2466 | if test "$cross_compiling" = yes; then |
| 2467 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2468 | else |
| 2469 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2470 | #line 2471 "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2471 | #include "confdefs.h" |
| 2472 | #include <stdio.h> |
| 2473 | #include <time.h> |
| 2474 | main() |
| 2475 | { |
| 2476 | FILE *f=fopen("conftestval", "w"); |
| 2477 | if (!f) exit(1); |
| 2478 | fprintf(f, "%d\n", sizeof(time_t)); |
| 2479 | exit(0); |
| 2480 | } |
| 2481 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2482 | if { (eval echo configure:2483: \"$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] | 2483 | then |
| 2484 | ac_cv_sizeof_time_t=`cat conftestval` |
| 2485 | else |
| 2486 | echo "configure: failed program was:" >&5 |
| 2487 | cat conftest.$ac_ext >&5 |
| 2488 | rm -fr conftest* |
| 2489 | ac_cv_sizeof_time_t=0 |
| 2490 | fi |
| 2491 | rm -fr conftest* |
| 2492 | fi |
| 2493 | |
| 2494 | |
| 2495 | fi |
| 2496 | |
| 2497 | echo "$ac_t""$ac_cv_sizeof_time_t" 1>&6 |
| 2498 | cat >> confdefs.h <<EOF |
| 2499 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
| 2500 | EOF |
| 2501 | |
| 2502 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2503 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2504 | # if have pthread_t then define SIZEOF_PTHREAD_T |
| 2505 | echo $ac_n "checking for pthread_t""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2506 | echo "configure:2507: checking for pthread_t" >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2507 | have_pthread_t=no |
| 2508 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2509 | #line 2510 "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2510 | #include "confdefs.h" |
| 2511 | #include <pthread.h> |
| 2512 | int main() { |
| 2513 | pthread_t x; x = (pthread_t)0; |
| 2514 | ; return 0; } |
| 2515 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2516 | if { (eval echo configure:2517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2517 | rm -rf conftest* |
| 2518 | have_pthread_t=yes |
| 2519 | else |
| 2520 | echo "configure: failed program was:" >&5 |
| 2521 | cat conftest.$ac_ext >&5 |
| 2522 | fi |
| 2523 | rm -f conftest* |
| 2524 | echo "$ac_t""$have_pthread_t" 1>&6 |
| 2525 | if test "$have_pthread_t" = yes ; then |
| 2526 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
| 2527 | echo $ac_n "checking size of pthread_t""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2528 | echo "configure:2529: checking size of pthread_t" >&5 |
| 2529 | if eval "test \"\${ac_cv_sizeof_pthread_t+set}\" = set"; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2530 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2531 | else |
| 2532 | if test "$cross_compiling" = yes; then |
| 2533 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2534 | else |
| 2535 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2536 | #line 2537 "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2537 | #include "confdefs.h" |
| 2538 | #include <stdio.h> |
| 2539 | #include <pthread.h> |
| 2540 | main() |
| 2541 | { |
| 2542 | FILE *f=fopen("conftestval", "w"); |
| 2543 | if (!f) exit(1); |
| 2544 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 2545 | exit(0); |
| 2546 | } |
| 2547 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2548 | if { (eval echo configure:2549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2549 | then |
| 2550 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 2551 | else |
| 2552 | echo "configure: failed program was:" >&5 |
| 2553 | cat conftest.$ac_ext >&5 |
| 2554 | rm -fr conftest* |
| 2555 | ac_cv_sizeof_pthread_t=0 |
| 2556 | fi |
| 2557 | rm -fr conftest* |
| 2558 | fi |
| 2559 | |
| 2560 | |
| 2561 | fi |
| 2562 | |
| 2563 | echo "$ac_t""$ac_cv_sizeof_pthread_t" 1>&6 |
| 2564 | cat >> confdefs.h <<EOF |
| 2565 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
| 2566 | EOF |
| 2567 | |
| 2568 | fi |
| 2569 | |
| 2570 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2571 | # Minor variations in building a framework between NextStep versions 4 and 5 |
| 2572 | |
| 2573 | case $ac_sys_system/$ac_sys_release in |
| 2574 | next/4*) |
| 2575 | ns_undef_sym='__environ' |
| 2576 | LIBTOOL_CRUFT="-U $ns_undef_sym" ;; |
| 2577 | next/5*) |
| 2578 | ns_undef_sym='_environ' |
| 2579 | LIBTOOL_CRUFT="-lcc_dynamic -U $ns_undef_sym" ;; |
| 2580 | esac |
| 2581 | |
| 2582 | echo $ac_n "checking for --with-next-framework""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2583 | echo "configure:2584: checking for --with-next-framework" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2584 | if test "$with_next_framework" |
| 2585 | then |
| 2586 | OPT="$OPT -fno-common" |
| 2587 | # -U __environ is needed since bundles don't have access |
| 2588 | # to crt0 when built but will always be linked against it |
| 2589 | LDFLAGS="$LDFLAGS -Wl,-U,$ns_undef_sym" |
| 2590 | cat >> confdefs.h <<\EOF |
| 2591 | #define WITH_NEXT_FRAMEWORK 1 |
| 2592 | EOF |
| 2593 | |
| 2594 | echo "$ac_t""yes" 1>&6 |
| 2595 | else |
| 2596 | echo "$ac_t""no" 1>&6 |
| 2597 | fi |
| 2598 | |
| 2599 | echo $ac_n "checking for --with-dyld""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2600 | echo "configure:2601: checking for --with-dyld" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2601 | if test "$with_next_framework" -o "$with_dyld" |
| 2602 | then |
| 2603 | if test "$with_dyld" |
| 2604 | then |
| 2605 | echo "$ac_t""yes" 1>&6 |
| 2606 | else |
| 2607 | echo "$ac_t""required for framework build" 1>&6 |
| 2608 | fi |
| 2609 | cat >> confdefs.h <<\EOF |
| 2610 | #define WITH_DYLD 1 |
| 2611 | EOF |
| 2612 | |
| 2613 | ns_dyld='set' |
| 2614 | else |
| 2615 | echo "$ac_t""no" 1>&6 |
| 2616 | fi |
| 2617 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2618 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2619 | |
| 2620 | |
| 2621 | |
| 2622 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2623 | # SO is the extension of shared libraries `(including the dot!) |
| 2624 | # -- usually .so, .sl on HP-UX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2625 | echo $ac_n "checking SO""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2626 | echo "configure:2627: checking SO" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2627 | if test -z "$SO" |
| 2628 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2629 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2630 | hp*|HP*) SO=.sl;; |
| 2631 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2632 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2633 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2634 | echo "$ac_t""$SO" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2635 | # LDSHARED is the ld *command* used to create shared library |
| 2636 | # -- "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] | 2637 | # (Shared libraries in this instance are shared modules to be loaded into |
| 2638 | # Python, as opposed to building Python itself as a shared library.) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2639 | echo $ac_n "checking LDSHARED""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2640 | echo "configure:2641: checking LDSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2641 | if test -z "$LDSHARED" |
| 2642 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2643 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 45140f9 | 1997-08-29 18:44:06 +0000 | [diff] [blame] | 2644 | AIX*) LDSHARED="\$(srcdir)/ld_so_aix \$(CC)";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2645 | BeOS*) LDSHARED="\$(srcdir)/../BeOS/linkmodule -L.. -lpython\$(VERSION)";; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2646 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2647 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2648 | SunOS/4*) LDSHARED="ld";; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 2649 | SunOS/5*) |
| 2650 | if test "$GCC" = "yes" |
| 2651 | then LDSHARED='$(CC) -G' |
| 2652 | else LDSHARED="ld -G"; |
| 2653 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2654 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2655 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 2656 | DYNIX/ptx*) LDSHARED="ld -G";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2657 | next/*) |
| 2658 | if test "$ns_dyld" |
| 2659 | then LDSHARED='$(CC) $(LDFLAGS) -bundle -prebind' |
| 2660 | else LDSHARED='$(CC) $(CFLAGS) -nostdlib -r'; |
| 2661 | fi |
| 2662 | if test "$with_next_framework" ; then |
| 2663 | LDSHARED="$LDSHARED \$(LDLIBRARY)" |
| 2664 | fi ;; |
Guido van Rossum | 81652ab | 1996-07-21 02:53:27 +0000 | [diff] [blame] | 2665 | Linux*) LDSHARED="gcc -shared";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 2666 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 2667 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2668 | OpenBSD*) LDSHARED="ld -Bshareable";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2669 | NetBSD*) |
| 2670 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 2671 | then |
| 2672 | LDSHARED="cc -shared" |
| 2673 | else |
| 2674 | LDSHARED="ld -Bshareable" |
| 2675 | fi;; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2676 | FreeBSD*) |
| 2677 | if "`$CC -dM -E - </dev/null | grep __ELF__`" != "" |
| 2678 | then |
| 2679 | LDSHARED="cc -shared ${LDFLAGS}" |
| 2680 | else |
| 2681 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 2682 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2683 | SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2684 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2685 | *) LDSHARED="ld";; |
| 2686 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2687 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2688 | echo "$ac_t""$LDSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2689 | # 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] | 2690 | # library (module) -- this is only needed for a few systems |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2691 | echo $ac_n "checking CCSHARED""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2692 | echo "configure:2693: checking CCSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2693 | if test -z "$CCSHARED" |
| 2694 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2695 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 2696 | hp*|HP*) if test "$GCC" = yes; |
| 2697 | then CCSHARED="-fpic"; |
| 2698 | else CCSHARED="+z"; |
| 2699 | fi;; |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2700 | Linux*) CCSHARED="-fpic";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 2701 | BSD/OS*/4*) CCSHARED="-fpic";; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2702 | OpenBSD*) CCSHARED="-fpic";; |
| 2703 | FreeBSD*|NetBSD*) CCSHARED="-fPIC";; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2704 | SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2705 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2706 | IRIX*/6*) case $CC in |
| 2707 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 2708 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2709 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2710 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2711 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2712 | echo "$ac_t""$CCSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2713 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2714 | # the python executable -- this is only needed for a few systems |
| 2715 | echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2716 | echo "configure:2717: checking LINKFORSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2717 | if test -z "$LINKFORSHARED" |
| 2718 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2719 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 69f6580 | 1998-03-03 21:47:00 +0000 | [diff] [blame] | 2720 | AIX*) LINKFORSHARED='-Wl,-bE:python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2721 | hp*|HP*) |
Guido van Rossum | 304dd2d | 1997-10-20 23:10:56 +0000 | [diff] [blame] | 2722 | LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 2723 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 2d9feed | 1997-11-24 17:36:21 +0000 | [diff] [blame] | 2724 | Linux*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2725 | # -u libsys_s pulls in all symbols in libsys |
| 2726 | next/2*|next/3*) LINKFORSHARED="-u libsys_s";; |
| 2727 | # -u __dummy makes the linker aware of the objc runtime |
| 2728 | # in System.framework; otherwise, __objcInit (referenced in |
| 2729 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 2730 | # loading of any modules which reference it in System.framework |
| 2731 | next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2732 | SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 2733 | FreeBSD*|NetBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2734 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 2735 | then |
| 2736 | LINKFORSHARED="-Wl,--export-dynamic" |
| 2737 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2738 | SunOS/5*) case $CC in |
| 2739 | *gcc*) |
Guido van Rossum | ff48418 | 2000-02-03 13:50:24 +0000 | [diff] [blame] | 2740 | if $CC -Xlinker -V 2>&1 | grep BFD >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 2741 | then |
| 2742 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2743 | fi;; |
| 2744 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2745 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2746 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2747 | echo "$ac_t""$LINKFORSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2748 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2749 | # checks for libraries |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2750 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2751 | echo "configure:2752: checking for dlopen in -ldl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2752 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2753 | 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] | 2754 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2755 | else |
| 2756 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2757 | LIBS="-ldl $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2758 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2759 | #line 2760 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2760 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2761 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2762 | /* We use char because int might match the return type of a gcc2 |
| 2763 | builtin and then its argument prototype would still apply. */ |
| 2764 | char dlopen(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2765 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2766 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2767 | dlopen() |
| 2768 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2769 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2770 | if { (eval echo configure:2771: \"$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] | 2771 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2772 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2773 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2774 | echo "configure: failed program was:" >&5 |
| 2775 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2776 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2777 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2778 | fi |
| 2779 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2780 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2781 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2782 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2783 | 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] | 2784 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2785 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2786 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2787 | cat >> confdefs.h <<EOF |
| 2788 | #define $ac_tr_lib 1 |
| 2789 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2790 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2791 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2792 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2793 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2794 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2795 | fi |
| 2796 | # Dynamic linking for SunOS/Solaris and SYSV |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2797 | echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2798 | echo "configure:2799: checking for shl_load in -ldld" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2799 | ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2800 | 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] | 2801 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2802 | else |
| 2803 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2804 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2805 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2806 | #line 2807 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2807 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2808 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2809 | /* We use char because int might match the return type of a gcc2 |
| 2810 | builtin and then its argument prototype would still apply. */ |
| 2811 | char shl_load(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2812 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2813 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2814 | shl_load() |
| 2815 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2816 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2817 | if { (eval echo configure:2818: \"$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] | 2818 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2819 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2820 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2821 | echo "configure: failed program was:" >&5 |
| 2822 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2823 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2824 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2825 | fi |
| 2826 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2827 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2828 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2829 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2830 | 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] | 2831 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2832 | ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2833 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2834 | cat >> confdefs.h <<EOF |
| 2835 | #define $ac_tr_lib 1 |
| 2836 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2837 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2838 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2839 | |
| 2840 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2841 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2842 | fi |
| 2843 | # Dynamic linking for HP-UX |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2844 | |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2845 | # Check for --with-pydebug |
| 2846 | echo $ac_n "checking for --with-pydebug""... $ac_c" 1>&6 |
| 2847 | echo "configure:2848: checking for --with-pydebug" >&5 |
| 2848 | # Check whether --with-pydebug or --without-pydebug was given. |
| 2849 | if test "${with_pydebug+set}" = set; then |
| 2850 | withval="$with_pydebug" |
| 2851 | |
| 2852 | if test "$withval" != no |
| 2853 | then cat >> confdefs.h <<\EOF |
| 2854 | #define Py_DEBUG 1 |
| 2855 | EOF |
| 2856 | echo "$ac_t""yes" 1>&6 |
| 2857 | else echo "$ac_t""no" 1>&6 |
| 2858 | fi |
| 2859 | else |
| 2860 | echo "$ac_t""no" 1>&6 |
| 2861 | fi |
| 2862 | |
| 2863 | |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2864 | # checks for system dependent C++ extensions support |
| 2865 | case "$ac_sys_system" in |
| 2866 | AIX*) echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2867 | echo "configure:2868: checking for genuine AIX C++ extensions support" >&5 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2868 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2869 | #line 2870 "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2870 | #include "confdefs.h" |
| 2871 | #include "/usr/lpp/xlC/include/load.h" |
| 2872 | int main() { |
| 2873 | loadAndInit("", 0, "") |
| 2874 | ; return 0; } |
| 2875 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2876 | if { (eval echo configure:2877: \"$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] | 2877 | rm -rf conftest* |
| 2878 | cat >> confdefs.h <<\EOF |
| 2879 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 2880 | EOF |
| 2881 | |
| 2882 | echo "$ac_t""yes" 1>&6 |
| 2883 | else |
| 2884 | echo "configure: failed program was:" >&5 |
| 2885 | cat conftest.$ac_ext >&5 |
| 2886 | rm -rf conftest* |
| 2887 | echo "$ac_t""no" 1>&6 |
| 2888 | fi |
| 2889 | rm -f conftest*;; |
| 2890 | *) ;; |
| 2891 | esac |
| 2892 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 2893 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| 2894 | # However on SGI IRIX, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2895 | # BeOS' sockets are stashed in libnet. |
| 2896 | case "$ac_sys_system" in |
| 2897 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 2898 | *) |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2899 | echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2900 | echo "configure:2901: checking for t_open in -lnsl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2901 | ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'` |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2902 | 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] | 2903 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2904 | else |
| 2905 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2906 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2907 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2908 | #line 2909 "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2909 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2910 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2911 | /* We use char because int might match the return type of a gcc2 |
| 2912 | builtin and then its argument prototype would still apply. */ |
| 2913 | char t_open(); |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2914 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2915 | int main() { |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 2916 | t_open() |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2917 | ; return 0; } |
| 2918 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2919 | if { (eval echo configure:2920: \"$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] | 2920 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2921 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2922 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2923 | echo "configure: failed program was:" >&5 |
| 2924 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2925 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2926 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2927 | fi |
| 2928 | rm -f conftest* |
| 2929 | LIBS="$ac_save_LIBS" |
| 2930 | |
| 2931 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2932 | 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] | 2933 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2934 | LIBS="-lnsl $LIBS" |
| 2935 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2936 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2937 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 2938 | # SVR4 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2939 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2940 | echo "configure:2941: checking for socket in -lsocket" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2941 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2942 | 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] | 2943 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2944 | else |
| 2945 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2946 | LIBS="-lsocket $LIBS $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2947 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2948 | #line 2949 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2949 | #include "confdefs.h" |
| 2950 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2951 | /* We use char because int might match the return type of a gcc2 |
| 2952 | builtin and then its argument prototype would still apply. */ |
| 2953 | char socket(); |
| 2954 | |
| 2955 | int main() { |
| 2956 | socket() |
| 2957 | ; return 0; } |
| 2958 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2959 | if { (eval echo configure:2960: \"$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] | 2960 | rm -rf conftest* |
| 2961 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2962 | else |
| 2963 | echo "configure: failed program was:" >&5 |
| 2964 | cat conftest.$ac_ext >&5 |
| 2965 | rm -rf conftest* |
| 2966 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2967 | fi |
| 2968 | rm -f conftest* |
| 2969 | LIBS="$ac_save_LIBS" |
| 2970 | |
| 2971 | fi |
| 2972 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2973 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2974 | LIBS="-lsocket $LIBS" |
| 2975 | else |
| 2976 | echo "$ac_t""no" 1>&6 |
| 2977 | fi |
| 2978 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 2979 | ;; |
| 2980 | esac |
| 2981 | case "$ac_sys_system" in |
| 2982 | BeOS*) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2983 | echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2984 | echo "configure:2985: checking for socket in -lnet" >&5 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2985 | ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'` |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2986 | 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] | 2987 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2988 | else |
| 2989 | ac_save_LIBS="$LIBS" |
| 2990 | LIBS="-lnet $LIBS $LIBS" |
| 2991 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 2992 | #line 2993 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2993 | #include "confdefs.h" |
| 2994 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2995 | /* We use char because int might match the return type of a gcc2 |
| 2996 | builtin and then its argument prototype would still apply. */ |
| 2997 | char socket(); |
| 2998 | |
| 2999 | int main() { |
| 3000 | socket() |
| 3001 | ; return 0; } |
| 3002 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3003 | if { (eval echo configure:3004: \"$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] | 3004 | rm -rf conftest* |
| 3005 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3006 | else |
| 3007 | echo "configure: failed program was:" >&5 |
| 3008 | cat conftest.$ac_ext >&5 |
| 3009 | rm -rf conftest* |
| 3010 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3011 | fi |
| 3012 | rm -f conftest* |
| 3013 | LIBS="$ac_save_LIBS" |
| 3014 | |
| 3015 | fi |
| 3016 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3017 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3018 | LIBS="-lnet $LIBS" |
| 3019 | else |
| 3020 | echo "$ac_t""no" 1>&6 |
| 3021 | fi |
| 3022 | # BeOS |
| 3023 | ;; |
| 3024 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 3025 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3026 | echo $ac_n "checking for --with-libs""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3027 | echo "configure:3028: checking for --with-libs" >&5 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3028 | # Check whether --with-libs or --without-libs was given. |
| 3029 | if test "${with_libs+set}" = set; then |
| 3030 | withval="$with_libs" |
| 3031 | |
| 3032 | echo "$ac_t""$withval" 1>&6 |
| 3033 | LIBS="$withval $LIBS" |
| 3034 | |
| 3035 | else |
| 3036 | echo "$ac_t""no" 1>&6 |
| 3037 | fi |
| 3038 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3039 | |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame] | 3040 | echo $ac_n "checking for --with(out)-readline""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3041 | echo "configure:3042: checking for --with(out)-readline" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3042 | # Check whether --with-readline or --without-readline was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3043 | if test "${with_readline+set}" = set; then |
| 3044 | withval="$with_readline" |
Guido van Rossum | b06df27 | 1997-08-05 21:50:20 +0000 | [diff] [blame] | 3045 | echo "$ac_t""$withval" 1>&6 |
| 3046 | { 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] | 3047 | else |
Guido van Rossum | b06df27 | 1997-08-05 21:50:20 +0000 | [diff] [blame] | 3048 | echo "$ac_t""not specified." 1>&6 |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame] | 3049 | fi |
| 3050 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3051 | |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 3052 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3053 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 3054 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3055 | echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3056 | echo "configure:3057: checking for --with-dec-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3057 | |
| 3058 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 3059 | if test "${with_dec_threads+set}" = set; then |
| 3060 | withval="$with_dec_threads" |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3061 | |
| 3062 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3063 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3064 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3065 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3066 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3067 | else |
| 3068 | echo "$ac_t""no" 1>&6 |
| 3069 | fi |
| 3070 | |
| 3071 | |
| 3072 | echo $ac_n "checking for --with-threads""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3073 | echo "configure:3074: checking for --with-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3074 | # Check whether --with-threads or --without-threads was given. |
| 3075 | if test "${with_threads+set}" = set; then |
| 3076 | withval="$with_threads" |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3077 | : |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3078 | fi |
| 3079 | |
| 3080 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3081 | # --with-thread is deprecated, but check for it anyway |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3082 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3083 | if test "${with_thread+set}" = set; then |
| 3084 | withval="$with_thread" |
Barry Warsaw | a0f3c5c | 2000-06-30 16:39:35 +0000 | [diff] [blame] | 3085 | |
| 3086 | with_threads=$with_thread |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3087 | fi |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3088 | |
| 3089 | |
| 3090 | if test -z "$with_threads" |
| 3091 | then with_threads="yes" |
| 3092 | fi |
| 3093 | echo "$ac_t""$with_threads" 1>&6 |
| 3094 | |
| 3095 | if test "$with_threads" = "no" |
| 3096 | then |
| 3097 | USE_THREAD_MODULE="#" |
| 3098 | else |
| 3099 | if test -d "$with_threads" |
| 3100 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 3101 | fi |
| 3102 | if test -d "$withval" |
| 3103 | then LDFLAGS="$LDFLAGS -L$withval" |
| 3104 | fi |
| 3105 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 3106 | #define _REENTRANT 1 |
| 3107 | EOF |
| 3108 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3109 | ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3110 | echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3111 | echo "configure:3112: checking for mach/cthreads.h" >&5 |
| 3112 | if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3113 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3114 | else |
| 3115 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3116 | #line 3117 "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3117 | #include "confdefs.h" |
| 3118 | #include <mach/cthreads.h> |
| 3119 | EOF |
| 3120 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3121 | { (eval echo configure:3122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3122 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3123 | if test -z "$ac_err"; then |
| 3124 | rm -rf conftest* |
| 3125 | eval "ac_cv_header_$ac_safe=yes" |
| 3126 | else |
| 3127 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3128 | echo "configure: failed program was:" >&5 |
| 3129 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3130 | rm -rf conftest* |
| 3131 | eval "ac_cv_header_$ac_safe=no" |
| 3132 | fi |
| 3133 | rm -f conftest* |
| 3134 | fi |
| 3135 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3136 | echo "$ac_t""yes" 1>&6 |
| 3137 | cat >> confdefs.h <<\EOF |
| 3138 | #define WITH_THREAD 1 |
| 3139 | EOF |
| 3140 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3141 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3142 | #define C_THREADS 1 |
| 3143 | EOF |
| 3144 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3145 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3146 | else |
| 3147 | echo "$ac_t""no" 1>&6 |
| 3148 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3149 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3150 | echo "configure:3151: checking for pthread_create in -lpthread" >&5 |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3151 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3152 | 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] | 3153 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3154 | else |
| 3155 | ac_save_LIBS="$LIBS" |
| 3156 | LIBS="-lpthread $LIBS" |
| 3157 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3158 | #line 3159 "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3159 | #include "confdefs.h" |
| 3160 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3161 | /* We use char because int might match the return type of a gcc2 |
| 3162 | builtin and then its argument prototype would still apply. */ |
| 3163 | char pthread_create(); |
| 3164 | |
| 3165 | int main() { |
| 3166 | pthread_create() |
| 3167 | ; return 0; } |
| 3168 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3169 | if { (eval echo configure:3170: \"$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] | 3170 | rm -rf conftest* |
| 3171 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3172 | else |
| 3173 | echo "configure: failed program was:" >&5 |
| 3174 | cat conftest.$ac_ext >&5 |
| 3175 | rm -rf conftest* |
| 3176 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3177 | fi |
| 3178 | rm -f conftest* |
| 3179 | LIBS="$ac_save_LIBS" |
| 3180 | |
| 3181 | fi |
| 3182 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3183 | echo "$ac_t""yes" 1>&6 |
| 3184 | cat >> confdefs.h <<\EOF |
| 3185 | #define WITH_THREAD 1 |
| 3186 | EOF |
| 3187 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3188 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3189 | #define _POSIX_THREADS 1 |
| 3190 | EOF |
| 3191 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3192 | LIBS="-lpthread $LIBS" |
| 3193 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3194 | else |
| 3195 | echo "$ac_t""no" 1>&6 |
| 3196 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3197 | echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3198 | echo "configure:3199: checking for pthread_detach" >&5 |
| 3199 | if eval "test \"\${ac_cv_func_pthread_detach+set}\" = set"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3200 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3201 | else |
| 3202 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3203 | #line 3204 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3204 | #include "confdefs.h" |
| 3205 | /* System header to define __stub macros and hopefully few prototypes, |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3206 | which can conflict with char pthread_detach(); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3207 | #include <assert.h> |
| 3208 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3209 | /* We use char because int might match the return type of a gcc2 |
| 3210 | builtin and then its argument prototype would still apply. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3211 | char pthread_detach(); |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3212 | char (*f)(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3213 | |
| 3214 | int main() { |
| 3215 | |
| 3216 | /* The GNU C library defines this for functions which it implements |
| 3217 | to always fail with ENOSYS. Some functions are actually named |
| 3218 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3219 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3220 | choke me |
| 3221 | #else |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3222 | f = pthread_detach; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3223 | #endif |
| 3224 | |
| 3225 | ; return 0; } |
| 3226 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3227 | if { (eval echo configure:3228: \"$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] | 3228 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3229 | eval "ac_cv_func_pthread_detach=yes" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3230 | else |
| 3231 | echo "configure: failed program was:" >&5 |
| 3232 | cat conftest.$ac_ext >&5 |
| 3233 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3234 | eval "ac_cv_func_pthread_detach=no" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3235 | fi |
| 3236 | rm -f conftest* |
| 3237 | fi |
| 3238 | |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3239 | if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3240 | echo "$ac_t""yes" 1>&6 |
| 3241 | cat >> confdefs.h <<\EOF |
| 3242 | #define WITH_THREAD 1 |
| 3243 | EOF |
| 3244 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3245 | cat >> confdefs.h <<\EOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3246 | #define _POSIX_THREADS 1 |
| 3247 | EOF |
| 3248 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3249 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3250 | else |
| 3251 | echo "$ac_t""no" 1>&6 |
| 3252 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3253 | ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3254 | echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3255 | echo "configure:3256: checking for kernel/OS.h" >&5 |
| 3256 | if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3257 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3258 | else |
| 3259 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3260 | #line 3261 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3261 | #include "confdefs.h" |
| 3262 | #include <kernel/OS.h> |
| 3263 | EOF |
| 3264 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3265 | { (eval echo configure:3266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3266 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3267 | if test -z "$ac_err"; then |
| 3268 | rm -rf conftest* |
| 3269 | eval "ac_cv_header_$ac_safe=yes" |
| 3270 | else |
| 3271 | echo "$ac_err" >&5 |
| 3272 | echo "configure: failed program was:" >&5 |
| 3273 | cat conftest.$ac_ext >&5 |
| 3274 | rm -rf conftest* |
| 3275 | eval "ac_cv_header_$ac_safe=no" |
| 3276 | fi |
| 3277 | rm -f conftest* |
| 3278 | fi |
| 3279 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3280 | echo "$ac_t""yes" 1>&6 |
| 3281 | cat >> confdefs.h <<\EOF |
| 3282 | #define WITH_THREAD 1 |
| 3283 | EOF |
| 3284 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3285 | cat >> confdefs.h <<\EOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3286 | #define BEOS_THREADS 1 |
| 3287 | EOF |
| 3288 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3289 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3290 | else |
| 3291 | echo "$ac_t""no" 1>&6 |
| 3292 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3293 | echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3294 | echo "configure:3295: checking for pthread_create in -lpthreads" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3295 | ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3296 | 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] | 3297 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3298 | else |
| 3299 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3300 | LIBS="-lpthreads $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3301 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3302 | #line 3303 "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3303 | #include "confdefs.h" |
| 3304 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3305 | /* We use char because int might match the return type of a gcc2 |
| 3306 | builtin and then its argument prototype would still apply. */ |
| 3307 | char pthread_create(); |
| 3308 | |
| 3309 | int main() { |
| 3310 | pthread_create() |
| 3311 | ; return 0; } |
| 3312 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3313 | if { (eval echo configure:3314: \"$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] | 3314 | rm -rf conftest* |
| 3315 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3316 | else |
| 3317 | echo "configure: failed program was:" >&5 |
| 3318 | cat conftest.$ac_ext >&5 |
| 3319 | rm -rf conftest* |
| 3320 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3321 | fi |
| 3322 | rm -f conftest* |
| 3323 | LIBS="$ac_save_LIBS" |
| 3324 | |
| 3325 | fi |
| 3326 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3327 | echo "$ac_t""yes" 1>&6 |
| 3328 | cat >> confdefs.h <<\EOF |
| 3329 | #define WITH_THREAD 1 |
| 3330 | EOF |
| 3331 | |
| 3332 | cat >> confdefs.h <<\EOF |
| 3333 | #define _POSIX_THREADS 1 |
| 3334 | EOF |
| 3335 | |
| 3336 | LIBS="$LIBS -lpthreads" |
| 3337 | LIBOBJS="$LIBOBJS thread.o" |
| 3338 | else |
| 3339 | echo "$ac_t""no" 1>&6 |
| 3340 | |
| 3341 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3342 | echo "configure:3343: checking for pthread_create in -lc_r" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3343 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3344 | if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3345 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3346 | else |
| 3347 | ac_save_LIBS="$LIBS" |
| 3348 | LIBS="-lc_r $LIBS" |
| 3349 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3350 | #line 3351 "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3351 | #include "confdefs.h" |
| 3352 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3353 | /* We use char because int might match the return type of a gcc2 |
| 3354 | builtin and then its argument prototype would still apply. */ |
| 3355 | char pthread_create(); |
| 3356 | |
| 3357 | int main() { |
| 3358 | pthread_create() |
| 3359 | ; return 0; } |
| 3360 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3361 | if { (eval echo configure:3362: \"$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] | 3362 | rm -rf conftest* |
| 3363 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3364 | else |
| 3365 | echo "configure: failed program was:" >&5 |
| 3366 | cat conftest.$ac_ext >&5 |
| 3367 | rm -rf conftest* |
| 3368 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3369 | fi |
| 3370 | rm -f conftest* |
| 3371 | LIBS="$ac_save_LIBS" |
| 3372 | |
| 3373 | fi |
| 3374 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3375 | echo "$ac_t""yes" 1>&6 |
| 3376 | cat >> confdefs.h <<\EOF |
| 3377 | #define WITH_THREAD 1 |
| 3378 | EOF |
| 3379 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3380 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3381 | #define _POSIX_THREADS 1 |
| 3382 | EOF |
| 3383 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3384 | LIBS="$LIBS -lc_r" |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3385 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3386 | else |
| 3387 | echo "$ac_t""no" 1>&6 |
| 3388 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3389 | echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3390 | echo "configure:3391: checking for __d6_pthread_create in -lthread" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3391 | ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'` |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3392 | 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] | 3393 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3394 | else |
| 3395 | ac_save_LIBS="$LIBS" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3396 | LIBS="-lthread $LIBS" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3397 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3398 | #line 3399 "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3399 | #include "confdefs.h" |
| 3400 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3401 | /* We use char because int might match the return type of a gcc2 |
| 3402 | builtin and then its argument prototype would still apply. */ |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3403 | char __d6_pthread_create(); |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3404 | |
| 3405 | int main() { |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3406 | __d6_pthread_create() |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3407 | ; return 0; } |
| 3408 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3409 | if { (eval echo configure:3410: \"$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] | 3410 | rm -rf conftest* |
| 3411 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3412 | else |
| 3413 | echo "configure: failed program was:" >&5 |
| 3414 | cat conftest.$ac_ext >&5 |
| 3415 | rm -rf conftest* |
| 3416 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3417 | fi |
| 3418 | rm -f conftest* |
| 3419 | LIBS="$ac_save_LIBS" |
| 3420 | |
| 3421 | fi |
| 3422 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3423 | echo "$ac_t""yes" 1>&6 |
| 3424 | cat >> confdefs.h <<\EOF |
| 3425 | #define WITH_THREAD 1 |
| 3426 | EOF |
| 3427 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3428 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3429 | #define _POSIX_THREADS 1 |
| 3430 | EOF |
| 3431 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3432 | LIBS="$LIBS -lthread" |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3433 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3434 | else |
| 3435 | echo "$ac_t""no" 1>&6 |
| 3436 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3437 | echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3438 | echo "configure:3439: checking for pth_init in -lpth" >&5 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3439 | ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'` |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3440 | 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] | 3441 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3442 | else |
| 3443 | ac_save_LIBS="$LIBS" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3444 | LIBS="-lpth $LIBS" |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3445 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3446 | #line 3447 "configure" |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3447 | #include "confdefs.h" |
| 3448 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3449 | /* We use char because int might match the return type of a gcc2 |
| 3450 | builtin and then its argument prototype would still apply. */ |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3451 | char pth_init(); |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3452 | |
| 3453 | int main() { |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3454 | pth_init() |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3455 | ; return 0; } |
| 3456 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3457 | if { (eval echo configure:3458: \"$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] | 3458 | rm -rf conftest* |
| 3459 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3460 | else |
| 3461 | echo "configure: failed program was:" >&5 |
| 3462 | cat conftest.$ac_ext >&5 |
| 3463 | rm -rf conftest* |
| 3464 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3465 | fi |
| 3466 | rm -f conftest* |
| 3467 | LIBS="$ac_save_LIBS" |
| 3468 | |
| 3469 | fi |
| 3470 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3471 | echo "$ac_t""yes" 1>&6 |
| 3472 | cat >> confdefs.h <<\EOF |
| 3473 | #define WITH_THREAD 1 |
| 3474 | EOF |
| 3475 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3476 | cat >> confdefs.h <<\EOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3477 | #define _GNU_PTH 1 |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3478 | EOF |
| 3479 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 3480 | LIBS="-lpth $LIBS" |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3481 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3482 | else |
| 3483 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3484 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3485 | echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3486 | echo "configure:3487: checking for pthread_create in -lcma" >&5 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3487 | ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'` |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3488 | 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] | 3489 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3490 | else |
| 3491 | ac_save_LIBS="$LIBS" |
| 3492 | LIBS="-lcma $LIBS" |
| 3493 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3494 | #line 3495 "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3495 | #include "confdefs.h" |
| 3496 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3497 | /* We use char because int might match the return type of a gcc2 |
| 3498 | builtin and then its argument prototype would still apply. */ |
| 3499 | char pthread_create(); |
| 3500 | |
| 3501 | int main() { |
| 3502 | pthread_create() |
| 3503 | ; return 0; } |
| 3504 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3505 | if { (eval echo configure:3506: \"$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] | 3506 | rm -rf conftest* |
| 3507 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3508 | else |
| 3509 | echo "configure: failed program was:" >&5 |
| 3510 | cat conftest.$ac_ext >&5 |
| 3511 | rm -rf conftest* |
| 3512 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3513 | fi |
| 3514 | rm -f conftest* |
| 3515 | LIBS="$ac_save_LIBS" |
| 3516 | |
| 3517 | fi |
| 3518 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3519 | echo "$ac_t""yes" 1>&6 |
| 3520 | cat >> confdefs.h <<\EOF |
| 3521 | #define WITH_THREAD 1 |
| 3522 | EOF |
| 3523 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3524 | cat >> confdefs.h <<\EOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3525 | #define _POSIX_THREADS 1 |
| 3526 | EOF |
| 3527 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3528 | LIBS="$LIBS -lcma" |
| 3529 | LIBOBJS="$LIBOBJS thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3530 | else |
| 3531 | echo "$ac_t""no" 1>&6 |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 3532 | |
| 3533 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 3534 | fi |
| 3535 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3536 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3537 | fi |
| 3538 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3539 | fi |
| 3540 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3541 | fi |
| 3542 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3543 | fi |
| 3544 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3545 | fi |
| 3546 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3547 | fi |
| 3548 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3549 | fi |
| 3550 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 3551 | fi |
| 3552 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3553 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3554 | echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3555 | echo "configure:3556: checking for usconfig in -lmpc" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3556 | ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'` |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3557 | 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] | 3558 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3559 | else |
| 3560 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3561 | LIBS="-lmpc $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3562 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3563 | #line 3564 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3564 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3565 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3566 | /* We use char because int might match the return type of a gcc2 |
| 3567 | builtin and then its argument prototype would still apply. */ |
| 3568 | char usconfig(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3569 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3570 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3571 | usconfig() |
| 3572 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3573 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3574 | if { (eval echo configure:3575: \"$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] | 3575 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3576 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3577 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3578 | echo "configure: failed program was:" >&5 |
| 3579 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3580 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3581 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3582 | fi |
| 3583 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3584 | LIBS="$ac_save_LIBS" |
| 3585 | |
| 3586 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3587 | 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] | 3588 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3589 | cat >> confdefs.h <<\EOF |
| 3590 | #define WITH_THREAD 1 |
| 3591 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3592 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3593 | LIBS="$LIBS -lmpc" |
| 3594 | LIBOBJS="$LIBOBJS thread.o" |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 3595 | USE_THREAD_MODULE="" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3596 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3597 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3598 | fi |
| 3599 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3600 | echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3601 | echo "configure:3602: checking for thr_create in -lthread" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3602 | ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'` |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3603 | 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] | 3604 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3605 | else |
| 3606 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3607 | LIBS="-lthread $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3608 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3609 | #line 3610 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3610 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3611 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3612 | /* We use char because int might match the return type of a gcc2 |
| 3613 | builtin and then its argument prototype would still apply. */ |
| 3614 | char thr_create(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3615 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3616 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3617 | thr_create() |
| 3618 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3619 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3620 | if { (eval echo configure:3621: \"$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] | 3621 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3622 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3623 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3624 | echo "configure: failed program was:" >&5 |
| 3625 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3626 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3627 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3628 | fi |
| 3629 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3630 | LIBS="$ac_save_LIBS" |
| 3631 | |
| 3632 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3633 | 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] | 3634 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3635 | cat >> confdefs.h <<\EOF |
| 3636 | #define WITH_THREAD 1 |
| 3637 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3638 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3639 | LIBS="$LIBS -lthread" |
| 3640 | LIBOBJS="$LIBOBJS thread.o" |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 3641 | USE_THREAD_MODULE="" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3642 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3643 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3644 | fi |
| 3645 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3646 | fi |
| 3647 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3648 | # Check for GC support |
| 3649 | |
| 3650 | USE_GC_MODULE="" |
| 3651 | echo $ac_n "checking for --with-cycle-gc""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3652 | echo "configure:3653: checking for --with-cycle-gc" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3653 | # Check whether --with-cycle-gc or --without-cycle-gc was given. |
| 3654 | if test "${with_cycle_gc+set}" = set; then |
| 3655 | withval="$with_cycle_gc" |
| 3656 | : |
| 3657 | fi |
| 3658 | |
| 3659 | |
| 3660 | if test -z "$with_cycle_gc" |
| 3661 | then with_cycle_gc="yes" |
| 3662 | fi |
| 3663 | if test "$with_cycle_gc" = "no" |
| 3664 | then |
| 3665 | USE_GC_MODULE="#" |
| 3666 | else |
| 3667 | cat >> confdefs.h <<\EOF |
| 3668 | #define WITH_CYCLE_GC 1 |
| 3669 | EOF |
| 3670 | |
| 3671 | fi |
| 3672 | echo "$ac_t""$with_cycle_gc" 1>&6 |
| 3673 | |
| 3674 | # Check for --with-wctype-functions |
| 3675 | echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3676 | echo "configure:3677: checking for --with-wctype-functions" >&5 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 3677 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 3678 | if test "${with_wctype_functions+set}" = set; then |
| 3679 | withval="$with_wctype_functions" |
| 3680 | |
| 3681 | if test "$withval" != no |
| 3682 | then cat >> confdefs.h <<\EOF |
| 3683 | #define WANT_WCTYPE_FUNCTIONS 1 |
| 3684 | EOF |
| 3685 | echo "$ac_t""yes" 1>&6 |
| 3686 | else echo "$ac_t""no" 1>&6 |
| 3687 | fi |
| 3688 | else |
| 3689 | echo "$ac_t""no" 1>&6 |
| 3690 | fi |
| 3691 | |
| 3692 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3693 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3694 | |
| 3695 | DLINCLDIR=/ |
| 3696 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3697 | echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3698 | echo "configure:3699: checking for --with-sgi-dl" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3699 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3700 | if test "${with_sgi_dl+set}" = set; then |
| 3701 | withval="$with_sgi_dl" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3702 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3703 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3704 | cat >> confdefs.h <<\EOF |
| 3705 | #define WITH_SGI_DL 1 |
| 3706 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3707 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3708 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3709 | dldir=$withval |
| 3710 | if test -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3711 | then LDFLAGS="$LDFLAGS -L$dldir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3712 | 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] | 3713 | fi |
| 3714 | DLINCLDIR=${dldir} |
| 3715 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3716 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3717 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3718 | fi |
| 3719 | |
| 3720 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3721 | echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3722 | echo "configure:3723: checking for --with-dl-dld" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3723 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3724 | if test "${with_dl_dld+set}" = set; then |
| 3725 | withval="$with_dl_dld" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3726 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3727 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3728 | cat >> confdefs.h <<\EOF |
| 3729 | #define WITH_DL_DLD 1 |
| 3730 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3731 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3732 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3733 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 3734 | dlddir=`echo "$withval" | sed 's/.*,//'` |
| 3735 | if test -d "$dldir" -a -d "$dlddir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3736 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3737 | 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] | 3738 | fi |
| 3739 | DLINCLDIR=${dldir} |
| 3740 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3741 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3742 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3743 | fi |
| 3744 | |
| 3745 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3746 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 3747 | # platforms, such as AIX, have dlopen(), but don't want to use it. |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3748 | for ac_func in dlopen |
| 3749 | do |
| 3750 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3751 | echo "configure:3752: checking for $ac_func" >&5 |
| 3752 | if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3753 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3754 | else |
| 3755 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3756 | #line 3757 "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3757 | #include "confdefs.h" |
| 3758 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3759 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3760 | #include <assert.h> |
| 3761 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3762 | /* We use char because int might match the return type of a gcc2 |
| 3763 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3764 | char $ac_func(); |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3765 | char (*f)(); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3766 | |
| 3767 | int main() { |
| 3768 | |
| 3769 | /* The GNU C library defines this for functions which it implements |
| 3770 | to always fail with ENOSYS. Some functions are actually named |
| 3771 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3772 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3773 | choke me |
| 3774 | #else |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3775 | f = $ac_func; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3776 | #endif |
| 3777 | |
| 3778 | ; return 0; } |
| 3779 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3780 | if { (eval echo configure:3781: \"$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] | 3781 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3782 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3783 | else |
| 3784 | echo "configure: failed program was:" >&5 |
| 3785 | cat conftest.$ac_ext >&5 |
| 3786 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3787 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3788 | fi |
| 3789 | rm -f conftest* |
| 3790 | fi |
| 3791 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3792 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3793 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3794 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3795 | cat >> confdefs.h <<EOF |
| 3796 | #define $ac_tr_func 1 |
| 3797 | EOF |
| 3798 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3799 | else |
| 3800 | echo "$ac_t""no" 1>&6 |
| 3801 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3802 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3803 | |
| 3804 | |
| 3805 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 3806 | # loading of modules. |
| 3807 | |
| 3808 | echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3809 | echo "configure:3810: checking DYNLOADFILE" >&5 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3810 | if test -z "$DYNLOADFILE" |
| 3811 | then |
| 3812 | case $ac_sys_system/$ac_sys_release in |
| 3813 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 3814 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 3815 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
| 3816 | next/*) DYNLOADFILE="dynload_next.o";; |
| 3817 | *) |
| 3818 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 3819 | # out any dynamic loading |
| 3820 | if test "$ac_cv_func_dlopen" = yes |
| 3821 | then DYNLOADFILE="dynload_shlib.o" |
| 3822 | else DYNLOADFILE="dynload_stub.o" |
| 3823 | fi |
| 3824 | ;; |
| 3825 | esac |
| 3826 | fi |
| 3827 | echo "$ac_t""$DYNLOADFILE" 1>&6 |
| 3828 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 3829 | then |
| 3830 | cat >> confdefs.h <<\EOF |
| 3831 | #define HAVE_DYNAMIC_LOADING 1 |
| 3832 | EOF |
| 3833 | |
| 3834 | fi |
| 3835 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3836 | # checks for library functions |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3837 | for ac_func in alarm chown clock confstr ctermid ctermid_r execv \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 3838 | flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3839 | getgroups getlogin getpeername getpid getpwent getwd \ |
Andrew M. Kuchling | 22c6934 | 2000-06-18 15:07:40 +0000 | [diff] [blame] | 3840 | kill link lstat mkfifo mktime mremap \ |
Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame] | 3841 | nice pathconf pause plock poll pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 3842 | putenv readlink \ |
Andrew M. Kuchling | 8d2f2b2 | 2000-07-13 01:26:58 +0000 | [diff] [blame] | 3843 | select setegid seteuid setgid \ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 3844 | setlocale setregid setreuid setsid setpgid setuid setvbuf \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 3845 | sigaction siginterrupt sigrelse strftime strptime symlink sysconf \ |
Fred Drake | 89143df | 1999-12-09 22:03:25 +0000 | [diff] [blame] | 3846 | tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Thomas Wouters | 70c21a1 | 2000-07-14 14:28:33 +0000 | [diff] [blame] | 3847 | truncate uname waitpid _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3848 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3849 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3850 | echo "configure:3851: checking for $ac_func" >&5 |
| 3851 | if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3852 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3853 | else |
| 3854 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3855 | #line 3856 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3856 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3857 | /* System header to define __stub macros and hopefully few prototypes, |
| 3858 | which can conflict with char $ac_func(); below. */ |
| 3859 | #include <assert.h> |
| 3860 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3861 | /* We use char because int might match the return type of a gcc2 |
| 3862 | builtin and then its argument prototype would still apply. */ |
| 3863 | char $ac_func(); |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3864 | char (*f)(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3865 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3866 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3867 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3868 | /* The GNU C library defines this for functions which it implements |
| 3869 | to always fail with ENOSYS. Some functions are actually named |
| 3870 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3871 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3872 | choke me |
| 3873 | #else |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3874 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3875 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3876 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3877 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3878 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3879 | if { (eval echo configure:3880: \"$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] | 3880 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3881 | eval "ac_cv_func_$ac_func=yes" |
| 3882 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3883 | echo "configure: failed program was:" >&5 |
| 3884 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3885 | rm -rf conftest* |
| 3886 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3887 | fi |
| 3888 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3889 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3890 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3891 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3892 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3893 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3894 | cat >> confdefs.h <<EOF |
| 3895 | #define $ac_tr_func 1 |
| 3896 | EOF |
| 3897 | |
| 3898 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3899 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3900 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3901 | done |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3902 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 3903 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3904 | # check for openpty and forkpty |
| 3905 | |
| 3906 | for ac_func in openpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3907 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3908 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3909 | echo "configure:3910: checking for $ac_func" >&5 |
| 3910 | if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3911 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3912 | else |
| 3913 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3914 | #line 3915 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3915 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3916 | /* System header to define __stub macros and hopefully few prototypes, |
| 3917 | which can conflict with char $ac_func(); below. */ |
| 3918 | #include <assert.h> |
| 3919 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3920 | /* We use char because int might match the return type of a gcc2 |
| 3921 | builtin and then its argument prototype would still apply. */ |
| 3922 | char $ac_func(); |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3923 | char (*f)(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3924 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3925 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3926 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3927 | /* The GNU C library defines this for functions which it implements |
| 3928 | to always fail with ENOSYS. Some functions are actually named |
| 3929 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3930 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3931 | choke me |
| 3932 | #else |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3933 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3934 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3935 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3936 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3937 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3938 | if { (eval echo configure:3939: \"$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] | 3939 | rm -rf conftest* |
| 3940 | eval "ac_cv_func_$ac_func=yes" |
| 3941 | else |
| 3942 | echo "configure: failed program was:" >&5 |
| 3943 | cat conftest.$ac_ext >&5 |
| 3944 | rm -rf conftest* |
| 3945 | eval "ac_cv_func_$ac_func=no" |
| 3946 | fi |
| 3947 | rm -f conftest* |
| 3948 | fi |
| 3949 | |
| 3950 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3951 | echo "$ac_t""yes" 1>&6 |
| 3952 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3953 | cat >> confdefs.h <<EOF |
| 3954 | #define $ac_tr_func 1 |
| 3955 | EOF |
| 3956 | |
| 3957 | else |
| 3958 | echo "$ac_t""no" 1>&6 |
| 3959 | echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3960 | echo "configure:3961: checking for openpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3961 | ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3962 | if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3963 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3964 | else |
| 3965 | ac_save_LIBS="$LIBS" |
| 3966 | LIBS="-lutil $LIBS" |
| 3967 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3968 | #line 3969 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 3969 | #include "confdefs.h" |
| 3970 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3971 | /* We use char because int might match the return type of a gcc2 |
| 3972 | builtin and then its argument prototype would still apply. */ |
| 3973 | char openpty(); |
| 3974 | |
| 3975 | int main() { |
| 3976 | openpty() |
| 3977 | ; return 0; } |
| 3978 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 3979 | if { (eval echo configure:3980: \"$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] | 3980 | rm -rf conftest* |
| 3981 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3982 | else |
| 3983 | echo "configure: failed program was:" >&5 |
| 3984 | cat conftest.$ac_ext >&5 |
| 3985 | rm -rf conftest* |
| 3986 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3987 | fi |
| 3988 | rm -f conftest* |
| 3989 | LIBS="$ac_save_LIBS" |
| 3990 | |
| 3991 | fi |
| 3992 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3993 | echo "$ac_t""yes" 1>&6 |
| 3994 | cat >> confdefs.h <<\EOF |
| 3995 | #define HAVE_OPENPTY 1 |
| 3996 | EOF |
| 3997 | LIBS="$LIBS -lutil" |
| 3998 | else |
| 3999 | echo "$ac_t""no" 1>&6 |
| 4000 | fi |
| 4001 | |
| 4002 | fi |
| 4003 | done |
| 4004 | |
| 4005 | for ac_func in forkpty |
| 4006 | do |
| 4007 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4008 | echo "configure:4009: checking for $ac_func" >&5 |
| 4009 | if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4010 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4011 | else |
| 4012 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4013 | #line 4014 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4014 | #include "confdefs.h" |
| 4015 | /* System header to define __stub macros and hopefully few prototypes, |
| 4016 | which can conflict with char $ac_func(); below. */ |
| 4017 | #include <assert.h> |
| 4018 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4019 | /* We use char because int might match the return type of a gcc2 |
| 4020 | builtin and then its argument prototype would still apply. */ |
| 4021 | char $ac_func(); |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4022 | char (*f)(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4023 | |
| 4024 | int main() { |
| 4025 | |
| 4026 | /* The GNU C library defines this for functions which it implements |
| 4027 | to always fail with ENOSYS. Some functions are actually named |
| 4028 | something starting with __ and the normal name is an alias. */ |
| 4029 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4030 | choke me |
| 4031 | #else |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4032 | f = $ac_func; |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4033 | #endif |
| 4034 | |
| 4035 | ; return 0; } |
| 4036 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4037 | if { (eval echo configure:4038: \"$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] | 4038 | rm -rf conftest* |
| 4039 | eval "ac_cv_func_$ac_func=yes" |
| 4040 | else |
| 4041 | echo "configure: failed program was:" >&5 |
| 4042 | cat conftest.$ac_ext >&5 |
| 4043 | rm -rf conftest* |
| 4044 | eval "ac_cv_func_$ac_func=no" |
| 4045 | fi |
| 4046 | rm -f conftest* |
| 4047 | fi |
| 4048 | |
| 4049 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4050 | echo "$ac_t""yes" 1>&6 |
| 4051 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4052 | cat >> confdefs.h <<EOF |
| 4053 | #define $ac_tr_func 1 |
| 4054 | EOF |
| 4055 | |
| 4056 | else |
| 4057 | echo "$ac_t""no" 1>&6 |
| 4058 | echo $ac_n "checking for forkpty in -lutil""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4059 | echo "configure:4060: checking for forkpty in -lutil" >&5 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4060 | ac_lib_var=`echo util'_'forkpty | sed 'y%./+-%__p_%'` |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4061 | if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4062 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4063 | else |
| 4064 | ac_save_LIBS="$LIBS" |
| 4065 | LIBS="-lutil $LIBS" |
| 4066 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4067 | #line 4068 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4068 | #include "confdefs.h" |
| 4069 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4070 | /* We use char because int might match the return type of a gcc2 |
| 4071 | builtin and then its argument prototype would still apply. */ |
| 4072 | char forkpty(); |
| 4073 | |
| 4074 | int main() { |
| 4075 | forkpty() |
| 4076 | ; return 0; } |
| 4077 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4078 | if { (eval echo configure:4079: \"$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] | 4079 | rm -rf conftest* |
| 4080 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4081 | else |
| 4082 | echo "configure: failed program was:" >&5 |
| 4083 | cat conftest.$ac_ext >&5 |
| 4084 | rm -rf conftest* |
| 4085 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4086 | fi |
| 4087 | rm -f conftest* |
| 4088 | LIBS="$ac_save_LIBS" |
| 4089 | |
| 4090 | fi |
| 4091 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4092 | echo "$ac_t""yes" 1>&6 |
| 4093 | cat >> confdefs.h <<\EOF |
| 4094 | #define HAVE_FORKPTY 1 |
| 4095 | EOF |
| 4096 | LIBS="$LIBS -lutil" |
| 4097 | else |
| 4098 | echo "$ac_t""no" 1>&6 |
| 4099 | fi |
| 4100 | |
| 4101 | fi |
| 4102 | done |
| 4103 | |
| 4104 | |
| 4105 | # check for long file support functions |
| 4106 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 4107 | do |
| 4108 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4109 | echo "configure:4110: checking for $ac_func" >&5 |
| 4110 | if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4111 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4112 | else |
| 4113 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4114 | #line 4115 "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4115 | #include "confdefs.h" |
| 4116 | /* System header to define __stub macros and hopefully few prototypes, |
| 4117 | which can conflict with char $ac_func(); below. */ |
| 4118 | #include <assert.h> |
| 4119 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4120 | /* We use char because int might match the return type of a gcc2 |
| 4121 | builtin and then its argument prototype would still apply. */ |
| 4122 | char $ac_func(); |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4123 | char (*f)(); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4124 | |
| 4125 | int main() { |
| 4126 | |
| 4127 | /* The GNU C library defines this for functions which it implements |
| 4128 | to always fail with ENOSYS. Some functions are actually named |
| 4129 | something starting with __ and the normal name is an alias. */ |
| 4130 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4131 | choke me |
| 4132 | #else |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4133 | f = $ac_func; |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 4134 | #endif |
| 4135 | |
| 4136 | ; return 0; } |
| 4137 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4138 | if { (eval echo configure:4139: \"$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] | 4139 | rm -rf conftest* |
| 4140 | eval "ac_cv_func_$ac_func=yes" |
| 4141 | else |
| 4142 | echo "configure: failed program was:" >&5 |
| 4143 | cat conftest.$ac_ext >&5 |
| 4144 | rm -rf conftest* |
| 4145 | eval "ac_cv_func_$ac_func=no" |
| 4146 | fi |
| 4147 | rm -f conftest* |
| 4148 | fi |
| 4149 | |
| 4150 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4151 | echo "$ac_t""yes" 1>&6 |
| 4152 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4153 | cat >> confdefs.h <<EOF |
| 4154 | #define $ac_tr_func 1 |
| 4155 | EOF |
| 4156 | |
| 4157 | else |
| 4158 | echo "$ac_t""no" 1>&6 |
| 4159 | fi |
| 4160 | done |
| 4161 | |
| 4162 | |
| 4163 | for ac_func in dup2 getcwd strdup strerror memmove |
| 4164 | do |
| 4165 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4166 | echo "configure:4167: checking for $ac_func" >&5 |
| 4167 | if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4168 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4169 | else |
| 4170 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4171 | #line 4172 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4172 | #include "confdefs.h" |
| 4173 | /* System header to define __stub macros and hopefully few prototypes, |
| 4174 | which can conflict with char $ac_func(); below. */ |
| 4175 | #include <assert.h> |
| 4176 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 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 $ac_func(); |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4180 | char (*f)(); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4181 | |
| 4182 | int main() { |
| 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_$ac_func) || defined (__stub___$ac_func) |
| 4188 | choke me |
| 4189 | #else |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4190 | f = $ac_func; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 4191 | #endif |
| 4192 | |
| 4193 | ; return 0; } |
| 4194 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +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_$ac_func=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 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 | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4201 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4202 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 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_'$ac_func`\" = 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 | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4209 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4210 | cat >> confdefs.h <<EOF |
| 4211 | #define $ac_tr_func 1 |
| 4212 | EOF |
| 4213 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4214 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4215 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4216 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4217 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4218 | done |
| 4219 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4220 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4221 | for ac_func in getpgrp |
| 4222 | do |
| 4223 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4224 | echo "configure:4225: checking for $ac_func" >&5 |
| 4225 | if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4226 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4227 | else |
| 4228 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4229 | #line 4230 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4230 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4231 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4232 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4233 | #include <assert.h> |
| 4234 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4235 | /* We use char because int might match the return type of a gcc2 |
| 4236 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4237 | char $ac_func(); |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4238 | char (*f)(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4239 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4240 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4241 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4242 | /* The GNU C library defines this for functions which it implements |
| 4243 | to always fail with ENOSYS. Some functions are actually named |
| 4244 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4245 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4246 | choke me |
| 4247 | #else |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4248 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4249 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4250 | |
| 4251 | ; return 0; } |
| 4252 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4253 | if { (eval echo configure:4254: \"$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] | 4254 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4255 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4256 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4257 | echo "configure: failed program was:" >&5 |
| 4258 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4259 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4260 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4261 | fi |
| 4262 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4263 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4264 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4265 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4266 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4267 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4268 | cat >> confdefs.h <<EOF |
| 4269 | #define $ac_tr_func 1 |
| 4270 | EOF |
| 4271 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4272 | #line 4273 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4273 | #include "confdefs.h" |
| 4274 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4275 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4276 | getpgrp(0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4277 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4278 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4279 | if { (eval echo configure:4280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4280 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4281 | cat >> confdefs.h <<\EOF |
| 4282 | #define GETPGRP_HAVE_ARG 1 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4283 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4284 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4285 | else |
| 4286 | echo "configure: failed program was:" >&5 |
| 4287 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4288 | fi |
| 4289 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4290 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4291 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4292 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4293 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4294 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4295 | for ac_func in setpgrp |
| 4296 | do |
| 4297 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4298 | echo "configure:4299: checking for $ac_func" >&5 |
| 4299 | if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4300 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4301 | else |
| 4302 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4303 | #line 4304 "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4304 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4305 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4306 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4307 | #include <assert.h> |
| 4308 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4309 | /* We use char because int might match the return type of a gcc2 |
| 4310 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4311 | char $ac_func(); |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4312 | char (*f)(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4313 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4314 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4315 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4316 | /* The GNU C library defines this for functions which it implements |
| 4317 | to always fail with ENOSYS. Some functions are actually named |
| 4318 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4319 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4320 | choke me |
| 4321 | #else |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4322 | f = $ac_func; |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4323 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4324 | |
| 4325 | ; return 0; } |
| 4326 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4327 | if { (eval echo configure:4328: \"$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] | 4328 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4329 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4330 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4331 | echo "configure: failed program was:" >&5 |
| 4332 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4333 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4334 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4335 | fi |
| 4336 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4337 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4338 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4339 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4340 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4341 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4342 | cat >> confdefs.h <<EOF |
| 4343 | #define $ac_tr_func 1 |
| 4344 | EOF |
| 4345 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4346 | #line 4347 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4347 | #include "confdefs.h" |
| 4348 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4349 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4350 | setpgrp(0,0); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4351 | ; return 0; } |
| 4352 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4353 | if { (eval echo configure:4354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4354 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4355 | cat >> confdefs.h <<\EOF |
| 4356 | #define SETPGRP_HAVE_ARG 1 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4357 | EOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4358 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4359 | else |
| 4360 | echo "configure: failed program was:" >&5 |
| 4361 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4362 | fi |
| 4363 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4364 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4365 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4366 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4367 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 4368 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4369 | for ac_func in gettimeofday |
| 4370 | do |
| 4371 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4372 | echo "configure:4373: checking for $ac_func" >&5 |
| 4373 | if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4374 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4375 | else |
| 4376 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4377 | #line 4378 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4378 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4379 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4380 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4381 | #include <assert.h> |
| 4382 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4383 | /* We use char because int might match the return type of a gcc2 |
| 4384 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4385 | char $ac_func(); |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4386 | char (*f)(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4387 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4388 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4389 | |
| 4390 | /* The GNU C library defines this for functions which it implements |
| 4391 | to always fail with ENOSYS. Some functions are actually named |
| 4392 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4393 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4394 | choke me |
| 4395 | #else |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4396 | f = $ac_func; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4397 | #endif |
| 4398 | |
| 4399 | ; return 0; } |
| 4400 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4401 | if { (eval echo configure:4402: \"$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] | 4402 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4403 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4404 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4405 | echo "configure: failed program was:" >&5 |
| 4406 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4407 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4408 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4409 | fi |
| 4410 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4411 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4412 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4413 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4414 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4415 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4416 | cat >> confdefs.h <<EOF |
| 4417 | #define $ac_tr_func 1 |
| 4418 | EOF |
| 4419 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4420 | #line 4421 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4421 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4422 | #include <sys/time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4423 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4424 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
| 4425 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4426 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4427 | if { (eval echo configure:4428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4428 | : |
| 4429 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4430 | echo "configure: failed program was:" >&5 |
| 4431 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4432 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4433 | cat >> confdefs.h <<\EOF |
| 4434 | #define GETTIMEOFDAY_NO_TZ 1 |
| 4435 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4436 | |
| 4437 | fi |
| 4438 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4439 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4440 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4441 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4442 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4443 | |
| 4444 | |
| 4445 | # checks for structures |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4446 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4447 | echo "configure:4448: checking whether time.h and sys/time.h may both be included" >&5 |
| 4448 | if eval "test \"\${ac_cv_header_time+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4449 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4450 | else |
| 4451 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4452 | #line 4453 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4453 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4454 | #include <sys/types.h> |
| 4455 | #include <sys/time.h> |
| 4456 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4457 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4458 | struct tm *tp; |
| 4459 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4460 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4461 | if { (eval echo configure:4462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4462 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4463 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4464 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4465 | echo "configure: failed program was:" >&5 |
| 4466 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4467 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4468 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4469 | fi |
| 4470 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4471 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4472 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4473 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4474 | if test $ac_cv_header_time = yes; then |
| 4475 | cat >> confdefs.h <<\EOF |
| 4476 | #define TIME_WITH_SYS_TIME 1 |
| 4477 | EOF |
| 4478 | |
| 4479 | fi |
| 4480 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4481 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4482 | echo "configure:4483: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 4483 | if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4484 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4485 | else |
| 4486 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4487 | #line 4488 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4488 | #include "confdefs.h" |
| 4489 | #include <sys/types.h> |
| 4490 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4491 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4492 | struct tm *tp; tp->tm_sec; |
| 4493 | ; return 0; } |
| 4494 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4495 | if { (eval echo configure:4496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4496 | rm -rf conftest* |
| 4497 | ac_cv_struct_tm=time.h |
| 4498 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4499 | echo "configure: failed program was:" >&5 |
| 4500 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4501 | rm -rf conftest* |
| 4502 | ac_cv_struct_tm=sys/time.h |
| 4503 | fi |
| 4504 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4505 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4506 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4507 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4508 | if test $ac_cv_struct_tm = sys/time.h; then |
| 4509 | cat >> confdefs.h <<\EOF |
| 4510 | #define TM_IN_SYS_TIME 1 |
| 4511 | EOF |
| 4512 | |
| 4513 | fi |
| 4514 | |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4515 | echo $ac_n "checking for member tm_zone in aggregate type struct tm""... $ac_c" 1>&6 |
| 4516 | echo "configure:4517: checking for member tm_zone in aggregate type struct tm" >&5 |
| 4517 | 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] | 4518 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4519 | else |
| 4520 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4521 | #line 4522 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4522 | #include "confdefs.h" |
| 4523 | #include <sys/types.h> |
| 4524 | #include <$ac_cv_struct_tm> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4525 | int main() { |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4526 | struct tm foo; foo.tm_zone; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4527 | ; return 0; } |
| 4528 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4529 | if { (eval echo configure:4530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4530 | rm -rf conftest* |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4531 | ac_cv_c_struct_member_tm_zone=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4532 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4533 | echo "configure: failed program was:" >&5 |
| 4534 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4535 | rm -rf conftest* |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4536 | ac_cv_c_struct_member_tm_zone=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4537 | fi |
| 4538 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4539 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4540 | |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4541 | echo "$ac_t""$ac_cv_c_struct_member_tm_zone" 1>&6 |
| 4542 | tm_zone="$ac_cv_c_struct_member_tm_zone" |
| 4543 | if test "$ac_cv_c_struct_member_tm_zone" = yes; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4544 | cat >> confdefs.h <<\EOF |
| 4545 | #define HAVE_TM_ZONE 1 |
| 4546 | EOF |
| 4547 | |
| 4548 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4549 | echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4550 | echo "configure:4551: checking for tzname" >&5 |
| 4551 | if eval "test \"\${ac_cv_var_tzname+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4552 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4553 | else |
| 4554 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4555 | #line 4556 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4556 | #include "confdefs.h" |
| 4557 | #include <time.h> |
| 4558 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4559 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4560 | #endif |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4561 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4562 | atoi(*tzname); |
| 4563 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4564 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4565 | if { (eval echo configure:4566: \"$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] | 4566 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4567 | ac_cv_var_tzname=yes |
| 4568 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4569 | echo "configure: failed program was:" >&5 |
| 4570 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4571 | rm -rf conftest* |
| 4572 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4573 | fi |
| 4574 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4575 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4576 | |
| 4577 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4578 | if test $ac_cv_var_tzname = yes; then |
| 4579 | cat >> confdefs.h <<\EOF |
| 4580 | #define HAVE_TZNAME 1 |
| 4581 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4582 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4583 | fi |
| 4584 | fi |
| 4585 | |
| 4586 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4587 | echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4588 | echo "configure:4589: checking for time.h that defines altzone" >&5 |
| 4589 | if eval "test \"\${ac_cv_header_time_altzone+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4590 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4591 | else |
| 4592 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4593 | #line 4594 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4594 | #include "confdefs.h" |
| 4595 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4596 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4597 | return altzone; |
| 4598 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4599 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4600 | if { (eval echo configure:4601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4601 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4602 | ac_cv_header_time_altzone=yes |
| 4603 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4604 | echo "configure: failed program was:" >&5 |
| 4605 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4606 | rm -rf conftest* |
| 4607 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4608 | fi |
| 4609 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4610 | fi |
| 4611 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4612 | echo "$ac_t""$ac_cv_header_time_altzone" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4613 | if test $ac_cv_header_time_altzone = yes; then |
| 4614 | cat >> confdefs.h <<\EOF |
| 4615 | #define HAVE_ALTZONE 1 |
| 4616 | EOF |
| 4617 | |
| 4618 | fi |
| 4619 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4620 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4621 | echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4622 | echo "configure:4623: 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] | 4623 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4624 | #line 4625 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4625 | #include "confdefs.h" |
| 4626 | |
| 4627 | #include <sys/types.h> |
| 4628 | #include <sys/select.h> |
| 4629 | #include <sys/time.h> |
| 4630 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4631 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4632 | ; |
| 4633 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4634 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4635 | if { (eval echo configure:4636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4636 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4637 | cat >> confdefs.h <<\EOF |
| 4638 | #define SYS_SELECT_WITH_SYS_TIME 1 |
| 4639 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4640 | was_it_defined=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4641 | else |
| 4642 | echo "configure: failed program was:" >&5 |
| 4643 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4644 | fi |
| 4645 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4646 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4647 | |
| 4648 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4649 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4650 | echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4651 | echo "configure:4652: checking whether char is unsigned" >&5 |
| 4652 | if eval "test \"\${ac_cv_c_char_unsigned+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4653 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4654 | else |
| 4655 | if test "$GCC" = yes; then |
| 4656 | # GCC predefines this symbol on systems where it applies. |
| 4657 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4658 | #line 4659 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4659 | #include "confdefs.h" |
| 4660 | #ifdef __CHAR_UNSIGNED__ |
| 4661 | yes |
| 4662 | #endif |
| 4663 | |
| 4664 | EOF |
| 4665 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4666 | egrep "yes" >/dev/null 2>&1; then |
| 4667 | rm -rf conftest* |
| 4668 | ac_cv_c_char_unsigned=yes |
| 4669 | else |
| 4670 | rm -rf conftest* |
| 4671 | ac_cv_c_char_unsigned=no |
| 4672 | fi |
| 4673 | rm -f conftest* |
| 4674 | |
| 4675 | else |
| 4676 | if test "$cross_compiling" = yes; then |
| 4677 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 4678 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4679 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4680 | #line 4681 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4681 | #include "confdefs.h" |
| 4682 | /* volatile prevents gcc2 from optimizing the test away on sparcs. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4683 | #if !defined(__STDC__) || __STDC__ != 1 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4684 | #define volatile |
| 4685 | #endif |
| 4686 | main() { |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4687 | volatile char c = 255; exit(c < 0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4688 | } |
| 4689 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4690 | if { (eval echo configure:4691: \"$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] | 4691 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4692 | ac_cv_c_char_unsigned=yes |
| 4693 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4694 | echo "configure: failed program was:" >&5 |
| 4695 | cat conftest.$ac_ext >&5 |
| 4696 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4697 | ac_cv_c_char_unsigned=no |
| 4698 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4699 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4700 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4701 | |
| 4702 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4703 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4704 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4705 | echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4706 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
| 4707 | cat >> confdefs.h <<\EOF |
| 4708 | #define __CHAR_UNSIGNED__ 1 |
| 4709 | EOF |
| 4710 | |
| 4711 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4712 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4713 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4714 | echo "configure:4715: checking for working const" >&5 |
| 4715 | if eval "test \"\${ac_cv_c_const+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4716 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4717 | else |
| 4718 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4719 | #line 4720 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4720 | #include "confdefs.h" |
| 4721 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4722 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4723 | |
| 4724 | /* Ultrix mips cc rejects this. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4725 | typedef int charset[2]; const charset x; |
| 4726 | /* SunOS 4.1.1 cc rejects this. */ |
| 4727 | char const *const *ccp; |
| 4728 | char **p; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4729 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 4730 | struct point {int x, y;}; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4731 | static struct point const zero = {0,0}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4732 | /* AIX XL C 1.02.0.0 rejects this. |
| 4733 | It does not let you subtract one const X* pointer from another in an arm |
| 4734 | of an if-expression whose if-part is not a constant expression */ |
| 4735 | const char *g = "string"; |
| 4736 | ccp = &g + (g ? g-g : 0); |
| 4737 | /* HPUX 7.0 cc rejects these. */ |
| 4738 | ++ccp; |
| 4739 | p = (char**) ccp; |
| 4740 | ccp = (char const *const *) p; |
| 4741 | { /* SCO 3.2v4 cc rejects this. */ |
| 4742 | char *t; |
| 4743 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 4744 | |
| 4745 | *t++ = 0; |
| 4746 | } |
| 4747 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4748 | int x[] = {25, 17}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4749 | const int *foo = &x[0]; |
| 4750 | ++foo; |
| 4751 | } |
| 4752 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 4753 | typedef const int *iptr; |
| 4754 | iptr p = 0; |
| 4755 | ++p; |
| 4756 | } |
| 4757 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 4758 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 4759 | struct s { int j; const int *ap[3]; }; |
| 4760 | struct s *b; b->j = 5; |
| 4761 | } |
| 4762 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 4763 | const int foo = 10; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4764 | } |
| 4765 | |
| 4766 | ; return 0; } |
| 4767 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4768 | if { (eval echo configure:4769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4769 | rm -rf conftest* |
| 4770 | ac_cv_c_const=yes |
| 4771 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4772 | echo "configure: failed program was:" >&5 |
| 4773 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4774 | rm -rf conftest* |
| 4775 | ac_cv_c_const=no |
| 4776 | fi |
| 4777 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4778 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4779 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4780 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4781 | if test $ac_cv_c_const = no; then |
| 4782 | cat >> confdefs.h <<\EOF |
| 4783 | #define const |
| 4784 | EOF |
| 4785 | |
| 4786 | fi |
| 4787 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4788 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4789 | echo "configure:4790: checking for inline" >&5 |
| 4790 | if eval "test \"\${ac_cv_c_inline+set}\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4791 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4792 | else |
| 4793 | ac_cv_c_inline=no |
| 4794 | for ac_kw in inline __inline__ __inline; do |
| 4795 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4796 | #line 4797 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4797 | #include "confdefs.h" |
| 4798 | |
| 4799 | int main() { |
| 4800 | } $ac_kw foo() { |
| 4801 | ; return 0; } |
| 4802 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4803 | if { (eval echo configure:4804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4804 | rm -rf conftest* |
| 4805 | ac_cv_c_inline=$ac_kw; break |
| 4806 | else |
| 4807 | echo "configure: failed program was:" >&5 |
| 4808 | cat conftest.$ac_ext >&5 |
| 4809 | fi |
| 4810 | rm -f conftest* |
| 4811 | done |
| 4812 | |
| 4813 | fi |
| 4814 | |
| 4815 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
| 4816 | case "$ac_cv_c_inline" in |
| 4817 | inline | yes) ;; |
| 4818 | no) cat >> confdefs.h <<\EOF |
| 4819 | #define inline |
| 4820 | EOF |
| 4821 | ;; |
| 4822 | *) cat >> confdefs.h <<EOF |
| 4823 | #define inline $ac_cv_c_inline |
| 4824 | EOF |
| 4825 | ;; |
| 4826 | esac |
| 4827 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4828 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4829 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4830 | echo $ac_n "checking for working volatile""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4831 | echo "configure:4832: checking for working volatile" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4832 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4833 | #line 4834 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4834 | #include "confdefs.h" |
| 4835 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4836 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4837 | volatile int x; x = 0; |
| 4838 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4839 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4840 | if { (eval echo configure:4841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4841 | rm -rf conftest* |
| 4842 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4843 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4844 | echo "configure: failed program was:" >&5 |
| 4845 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4846 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4847 | cat >> confdefs.h <<\EOF |
| 4848 | #define volatile |
| 4849 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4850 | |
| 4851 | fi |
| 4852 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4853 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4854 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4855 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4856 | echo $ac_n "checking for working signed char""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4857 | echo "configure:4858: checking for working signed char" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4858 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4859 | #line 4860 "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4860 | #include "confdefs.h" |
| 4861 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4862 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4863 | signed char c; |
| 4864 | ; return 0; } |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4865 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4866 | if { (eval echo configure:4867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4867 | rm -rf conftest* |
| 4868 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4869 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4870 | echo "configure: failed program was:" >&5 |
| 4871 | cat conftest.$ac_ext >&5 |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4872 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4873 | cat >> confdefs.h <<\EOF |
| 4874 | #define signed |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4875 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4876 | |
| 4877 | fi |
| 4878 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4879 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4880 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4881 | have_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4882 | echo $ac_n "checking for prototypes""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4883 | echo "configure:4884: checking for prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4884 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4885 | #line 4886 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4886 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4887 | int foo(int x) { return 0; } |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4888 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4889 | return foo(10); |
| 4890 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4891 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4892 | if { (eval echo configure:4893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4893 | rm -rf conftest* |
| 4894 | cat >> confdefs.h <<\EOF |
| 4895 | #define HAVE_PROTOTYPES 1 |
| 4896 | EOF |
| 4897 | have_prototypes=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4898 | else |
| 4899 | echo "configure: failed program was:" >&5 |
| 4900 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4901 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4902 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4903 | echo "$ac_t""$have_prototypes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4904 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4905 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4906 | echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4907 | echo "configure:4908: checking for variable length prototypes and stdarg.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4908 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4909 | #line 4910 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4910 | #include "confdefs.h" |
| 4911 | |
| 4912 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 4913 | int foo(int x, ...) { |
| 4914 | va_list va; |
| 4915 | va_start(va, x); |
| 4916 | va_arg(va, int); |
| 4917 | va_arg(va, char *); |
| 4918 | va_arg(va, double); |
| 4919 | return 0; |
| 4920 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4921 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4922 | int main() { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 4923 | return foo(10, "", 3.14); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4924 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4925 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4926 | if { (eval echo configure:4927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4927 | rm -rf conftest* |
| 4928 | cat >> confdefs.h <<\EOF |
| 4929 | #define HAVE_STDARG_PROTOTYPES 1 |
| 4930 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4931 | works=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4932 | else |
| 4933 | echo "configure: failed program was:" >&5 |
| 4934 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4935 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4936 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4937 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4938 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4939 | if test "$have_prototypes" = yes; then |
| 4940 | bad_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4941 | echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4942 | echo "configure:4943: checking for bad exec* prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4943 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4944 | #line 4945 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4945 | #include "confdefs.h" |
| 4946 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4947 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4948 | char **t;execve("@",t,t); |
| 4949 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4950 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4951 | if { (eval echo configure:4952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4952 | : |
| 4953 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4954 | echo "configure: failed program was:" >&5 |
| 4955 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4956 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4957 | cat >> confdefs.h <<\EOF |
| 4958 | #define BAD_EXEC_PROTOTYPES 1 |
| 4959 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4960 | bad_prototypes=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4961 | fi |
| 4962 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4963 | echo "$ac_t""$bad_prototypes" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4964 | fi |
| 4965 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4966 | bad_forward=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4967 | echo $ac_n "checking for bad static forward""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4968 | echo "configure:4969: checking for bad static forward" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4969 | if test "$cross_compiling" = yes; then |
| 4970 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 4971 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4972 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4973 | #line 4974 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4974 | #include "confdefs.h" |
| 4975 | |
| 4976 | struct s { int a; int b; }; |
| 4977 | static struct s foo; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4978 | int foobar() { |
| 4979 | static int random; |
| 4980 | random = (int) &foo; |
| 4981 | return random; |
| 4982 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4983 | static struct s foo = { 1, 2 }; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4984 | main() { |
| 4985 | exit(!((int)&foo == foobar())); |
| 4986 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4987 | |
| 4988 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 4989 | if { (eval echo configure:4990: \"$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] | 4990 | then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4991 | : |
| 4992 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4993 | echo "configure: failed program was:" >&5 |
| 4994 | cat conftest.$ac_ext >&5 |
| 4995 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4996 | cat >> confdefs.h <<\EOF |
| 4997 | #define BAD_STATIC_FORWARD 1 |
| 4998 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4999 | bad_forward=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5000 | fi |
| 5001 | rm -fr conftest* |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5002 | fi |
| 5003 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5004 | echo "$ac_t""$bad_forward" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5005 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5006 | va_list_is_array=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5007 | echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5008 | echo "configure:5009: checking whether va_list is an array" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5009 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5010 | #line 5011 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5011 | #include "confdefs.h" |
| 5012 | |
| 5013 | #ifdef HAVE_STDARG_PROTOTYPES |
| 5014 | #include <stdarg.h> |
| 5015 | #else |
| 5016 | #include <varargs.h> |
| 5017 | #endif |
| 5018 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5019 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5020 | va_list list1, list2; list1 = list2; |
| 5021 | ; return 0; } |
| 5022 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5023 | if { (eval echo configure:5024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5024 | : |
| 5025 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5026 | echo "configure: failed program was:" >&5 |
| 5027 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5028 | rm -rf conftest* |
| 5029 | cat >> confdefs.h <<\EOF |
| 5030 | #define VA_LIST_IS_ARRAY 1 |
| 5031 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5032 | va_list_is_array=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5033 | fi |
| 5034 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5035 | echo "$ac_t""$va_list_is_array" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5036 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5037 | # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( |
| 5038 | echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5039 | echo "configure:5040: checking for gethostbyname_r" >&5 |
| 5040 | if eval "test \"\${ac_cv_func_gethostbyname_r+set}\" = set"; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5041 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5042 | else |
| 5043 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5044 | #line 5045 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5045 | #include "confdefs.h" |
| 5046 | /* System header to define __stub macros and hopefully few prototypes, |
| 5047 | which can conflict with char gethostbyname_r(); below. */ |
| 5048 | #include <assert.h> |
| 5049 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5050 | /* We use char because int might match the return type of a gcc2 |
| 5051 | builtin and then its argument prototype would still apply. */ |
| 5052 | char gethostbyname_r(); |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5053 | char (*f)(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5054 | |
| 5055 | int main() { |
| 5056 | |
| 5057 | /* The GNU C library defines this for functions which it implements |
| 5058 | to always fail with ENOSYS. Some functions are actually named |
| 5059 | something starting with __ and the normal name is an alias. */ |
| 5060 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 5061 | choke me |
| 5062 | #else |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5063 | f = gethostbyname_r; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5064 | #endif |
| 5065 | |
| 5066 | ; return 0; } |
| 5067 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5068 | if { (eval echo configure:5069: \"$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] | 5069 | rm -rf conftest* |
| 5070 | eval "ac_cv_func_gethostbyname_r=yes" |
| 5071 | else |
| 5072 | echo "configure: failed program was:" >&5 |
| 5073 | cat conftest.$ac_ext >&5 |
| 5074 | rm -rf conftest* |
| 5075 | eval "ac_cv_func_gethostbyname_r=no" |
| 5076 | fi |
| 5077 | rm -f conftest* |
| 5078 | fi |
| 5079 | |
| 5080 | if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then |
| 5081 | echo "$ac_t""yes" 1>&6 |
| 5082 | |
| 5083 | cat >> confdefs.h <<\EOF |
| 5084 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5085 | EOF |
| 5086 | |
| 5087 | echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5088 | echo "configure:5089: checking gethostbyname_r with 6 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5089 | OLD_CFLAGS=$CFLAGS |
| 5090 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
| 5091 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5092 | #line 5093 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5093 | #include "confdefs.h" |
| 5094 | |
| 5095 | # include <netdb.h> |
| 5096 | |
| 5097 | int main() { |
| 5098 | |
| 5099 | char *name; |
| 5100 | struct hostent *he, *res; |
| 5101 | char buffer[2048]; |
| 5102 | int buflen = 2048; |
| 5103 | int h_errnop; |
| 5104 | |
| 5105 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
| 5106 | |
| 5107 | ; return 0; } |
| 5108 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5109 | if { (eval echo configure:5110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5110 | rm -rf conftest* |
| 5111 | |
| 5112 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5113 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5114 | EOF |
| 5115 | |
| 5116 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5117 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
| 5118 | EOF |
| 5119 | |
| 5120 | echo "$ac_t""yes" 1>&6 |
| 5121 | |
| 5122 | else |
| 5123 | echo "configure: failed program was:" >&5 |
| 5124 | cat conftest.$ac_ext >&5 |
| 5125 | rm -rf conftest* |
| 5126 | |
| 5127 | echo "$ac_t""no" 1>&6 |
| 5128 | echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5129 | echo "configure:5130: checking gethostbyname_r with 5 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5130 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5131 | #line 5132 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5132 | #include "confdefs.h" |
| 5133 | |
| 5134 | # include <netdb.h> |
| 5135 | |
| 5136 | int main() { |
| 5137 | |
| 5138 | char *name; |
| 5139 | struct hostent *he; |
| 5140 | char buffer[2048]; |
| 5141 | int buflen = 2048; |
| 5142 | int h_errnop; |
| 5143 | |
| 5144 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
| 5145 | |
| 5146 | ; return 0; } |
| 5147 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5148 | if { (eval echo configure:5149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5149 | rm -rf conftest* |
| 5150 | |
| 5151 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5152 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5153 | EOF |
| 5154 | |
| 5155 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5156 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
| 5157 | EOF |
| 5158 | |
| 5159 | echo "$ac_t""yes" 1>&6 |
| 5160 | |
| 5161 | else |
| 5162 | echo "configure: failed program was:" >&5 |
| 5163 | cat conftest.$ac_ext >&5 |
| 5164 | rm -rf conftest* |
| 5165 | |
| 5166 | echo "$ac_t""no" 1>&6 |
| 5167 | echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5168 | echo "configure:5169: checking gethostbyname_r with 3 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5169 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5170 | #line 5171 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5171 | #include "confdefs.h" |
| 5172 | |
| 5173 | # include <netdb.h> |
| 5174 | |
| 5175 | int main() { |
| 5176 | |
| 5177 | char *name; |
| 5178 | struct hostent *he; |
| 5179 | struct hostent_data data; |
| 5180 | |
| 5181 | (void) gethostbyname_r(name, he, &data); |
| 5182 | |
| 5183 | ; return 0; } |
| 5184 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5185 | if { (eval echo configure:5186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5186 | rm -rf conftest* |
| 5187 | |
| 5188 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5189 | #define HAVE_GETHOSTBYNAME_R 1 |
| 5190 | EOF |
| 5191 | |
| 5192 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5193 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
| 5194 | EOF |
| 5195 | |
| 5196 | echo "$ac_t""yes" 1>&6 |
| 5197 | |
| 5198 | else |
| 5199 | echo "configure: failed program was:" >&5 |
| 5200 | cat conftest.$ac_ext >&5 |
| 5201 | rm -rf conftest* |
| 5202 | |
| 5203 | echo "$ac_t""no" 1>&6 |
| 5204 | |
| 5205 | fi |
| 5206 | rm -f conftest* |
| 5207 | |
| 5208 | fi |
| 5209 | rm -f conftest* |
| 5210 | |
| 5211 | fi |
| 5212 | rm -f conftest* |
| 5213 | CFLAGS=$OLD_CFLAGS |
| 5214 | |
| 5215 | else |
| 5216 | echo "$ac_t""no" 1>&6 |
| 5217 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5218 | for ac_func in gethostbyname |
| 5219 | do |
| 5220 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5221 | echo "configure:5222: checking for $ac_func" >&5 |
| 5222 | if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5223 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5224 | else |
| 5225 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5226 | #line 5227 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5227 | #include "confdefs.h" |
| 5228 | /* System header to define __stub macros and hopefully few prototypes, |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5229 | which can conflict with char $ac_func(); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5230 | #include <assert.h> |
| 5231 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5232 | /* We use char because int might match the return type of a gcc2 |
| 5233 | builtin and then its argument prototype would still apply. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5234 | char $ac_func(); |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5235 | char (*f)(); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5236 | |
| 5237 | int main() { |
| 5238 | |
| 5239 | /* The GNU C library defines this for functions which it implements |
| 5240 | to always fail with ENOSYS. Some functions are actually named |
| 5241 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5242 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5243 | choke me |
| 5244 | #else |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5245 | f = $ac_func; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5246 | #endif |
| 5247 | |
| 5248 | ; return 0; } |
| 5249 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5250 | if { (eval echo configure:5251: \"$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] | 5251 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5252 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5253 | else |
| 5254 | echo "configure: failed program was:" >&5 |
| 5255 | cat conftest.$ac_ext >&5 |
| 5256 | rm -rf conftest* |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5257 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5258 | fi |
| 5259 | rm -f conftest* |
| 5260 | fi |
| 5261 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5262 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5263 | echo "$ac_t""yes" 1>&6 |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5264 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5265 | cat >> confdefs.h <<EOF |
| 5266 | #define $ac_tr_func 1 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5267 | EOF |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5268 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5269 | else |
| 5270 | echo "$ac_t""no" 1>&6 |
| 5271 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5272 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 5273 | |
| 5274 | |
| 5275 | fi |
| 5276 | |
| 5277 | |
| 5278 | |
| 5279 | |
| 5280 | |
| 5281 | |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 5282 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5283 | # checks for system services |
| 5284 | # (none yet) |
| 5285 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5286 | # Linux requires this for correct f.p. operations |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5287 | echo $ac_n "checking for __fpu_control""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5288 | echo "configure:5289: checking for __fpu_control" >&5 |
| 5289 | if eval "test \"\${ac_cv_func___fpu_control+set}\" = set"; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5290 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5291 | else |
| 5292 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5293 | #line 5294 "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5294 | #include "confdefs.h" |
| 5295 | /* System header to define __stub macros and hopefully few prototypes, |
| 5296 | which can conflict with char __fpu_control(); below. */ |
| 5297 | #include <assert.h> |
| 5298 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5299 | /* We use char because int might match the return type of a gcc2 |
| 5300 | builtin and then its argument prototype would still apply. */ |
| 5301 | char __fpu_control(); |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5302 | char (*f)(); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5303 | |
| 5304 | int main() { |
| 5305 | |
| 5306 | /* The GNU C library defines this for functions which it implements |
| 5307 | to always fail with ENOSYS. Some functions are actually named |
| 5308 | something starting with __ and the normal name is an alias. */ |
| 5309 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 5310 | choke me |
| 5311 | #else |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5312 | f = __fpu_control; |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5313 | #endif |
| 5314 | |
| 5315 | ; return 0; } |
| 5316 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5317 | if { (eval echo configure:5318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5318 | rm -rf conftest* |
| 5319 | eval "ac_cv_func___fpu_control=yes" |
| 5320 | else |
| 5321 | echo "configure: failed program was:" >&5 |
| 5322 | cat conftest.$ac_ext >&5 |
| 5323 | rm -rf conftest* |
| 5324 | eval "ac_cv_func___fpu_control=no" |
| 5325 | fi |
| 5326 | rm -f conftest* |
| 5327 | fi |
| 5328 | |
| 5329 | if eval "test \"`echo '$ac_cv_func_'__fpu_control`\" = yes"; then |
| 5330 | echo "$ac_t""yes" 1>&6 |
| 5331 | : |
| 5332 | else |
| 5333 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5334 | echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5335 | echo "configure:5336: checking for __fpu_control in -lieee" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5336 | ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'` |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5337 | 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] | 5338 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5339 | else |
| 5340 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5341 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5342 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5343 | #line 5344 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5344 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5345 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5346 | /* We use char because int might match the return type of a gcc2 |
| 5347 | builtin and then its argument prototype would still apply. */ |
| 5348 | char __fpu_control(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5349 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5350 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5351 | __fpu_control() |
| 5352 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5353 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5354 | if { (eval echo configure:5355: \"$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] | 5355 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5356 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5357 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5358 | echo "configure: failed program was:" >&5 |
| 5359 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5360 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5361 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5362 | fi |
| 5363 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5364 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5365 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5366 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5367 | 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] | 5368 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5369 | ac_tr_lib=HAVE_LIB`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 5370 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5371 | cat >> confdefs.h <<EOF |
| 5372 | #define $ac_tr_lib 1 |
| 5373 | EOF |
| 5374 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5375 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5376 | |
| 5377 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5378 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5379 | fi |
| 5380 | |
| 5381 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 5382 | fi |
| 5383 | |
| 5384 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5385 | # Check for --with-fpectl |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5386 | echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5387 | echo "configure:5388: checking for --with-fpectl" >&5 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5388 | # Check whether --with-fpectl or --without-fpectl was given. |
| 5389 | if test "${with_fpectl+set}" = set; then |
| 5390 | withval="$with_fpectl" |
| 5391 | |
| 5392 | if test "$withval" != no |
| 5393 | then cat >> confdefs.h <<\EOF |
| 5394 | #define WANT_SIGFPE_HANDLER 1 |
| 5395 | EOF |
| 5396 | echo "$ac_t""yes" 1>&6 |
| 5397 | else echo "$ac_t""no" 1>&6 |
| 5398 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5399 | else |
| 5400 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5401 | fi |
| 5402 | |
| 5403 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5404 | # check for --with-libm=... |
| 5405 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 5406 | case $ac_sys_system in |
| 5407 | next) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 5408 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 5409 | *) LIBM=-lm |
| 5410 | esac |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5411 | echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5412 | echo "configure:5413: checking for --with-libm=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5413 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5414 | if test "${with_libm+set}" = set; then |
| 5415 | withval="$with_libm" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5416 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5417 | if test "$withval" = no |
| 5418 | then LIBM= |
| 5419 | echo "$ac_t""force LIBM empty" 1>&6 |
| 5420 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5421 | then LIBM=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5422 | echo "$ac_t""set LIBM=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5423 | 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] | 5424 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5425 | else |
| 5426 | echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5427 | fi |
| 5428 | |
| 5429 | |
| 5430 | # check for --with-libc=... |
| 5431 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5432 | echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5433 | echo "configure:5434: checking for --with-libc=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5434 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5435 | if test "${with_libc+set}" = set; then |
| 5436 | withval="$with_libc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5437 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5438 | if test "$withval" = no |
| 5439 | then LIBC= |
| 5440 | echo "$ac_t""force LIBC empty" 1>&6 |
| 5441 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5442 | then LIBC=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5443 | echo "$ac_t""set LIBC=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5444 | 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] | 5445 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 5446 | else |
| 5447 | echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5448 | fi |
| 5449 | |
| 5450 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5451 | # check for hypot() in math library |
| 5452 | LIBS_SAVE=$LIBS |
| 5453 | LIBS="$LIBS $LIBM" |
| 5454 | for ac_func in hypot |
| 5455 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5456 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5457 | echo "configure:5458: checking for $ac_func" >&5 |
| 5458 | if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5459 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5460 | else |
| 5461 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5462 | #line 5463 "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5463 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5464 | /* System header to define __stub macros and hopefully few prototypes, |
| 5465 | which can conflict with char $ac_func(); below. */ |
| 5466 | #include <assert.h> |
| 5467 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5468 | /* We use char because int might match the return type of a gcc2 |
| 5469 | builtin and then its argument prototype would still apply. */ |
| 5470 | char $ac_func(); |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5471 | char (*f)(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5472 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5473 | int main() { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5474 | |
| 5475 | /* The GNU C library defines this for functions which it implements |
| 5476 | to always fail with ENOSYS. Some functions are actually named |
| 5477 | something starting with __ and the normal name is an alias. */ |
| 5478 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5479 | choke me |
| 5480 | #else |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5481 | f = $ac_func; |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5482 | #endif |
| 5483 | |
| 5484 | ; return 0; } |
| 5485 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5486 | if { (eval echo configure:5487: \"$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] | 5487 | rm -rf conftest* |
| 5488 | eval "ac_cv_func_$ac_func=yes" |
| 5489 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5490 | echo "configure: failed program was:" >&5 |
| 5491 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5492 | rm -rf conftest* |
| 5493 | eval "ac_cv_func_$ac_func=no" |
| 5494 | fi |
| 5495 | rm -f conftest* |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5496 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5497 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5498 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5499 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5500 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5501 | cat >> confdefs.h <<EOF |
| 5502 | #define $ac_tr_func 1 |
| 5503 | EOF |
| 5504 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5505 | else |
| 5506 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5507 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5508 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 5509 | done |
| 5510 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5511 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 5512 | LIBS=$LIBS_SAVE |
| 5513 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5514 | # check for getopt |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5515 | echo $ac_n "checking for genuine getopt""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5516 | echo "configure:5517: checking for genuine getopt" >&5 |
| 5517 | if eval "test \"\${ac_cv_func_getopt+set}\" = set"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5518 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5519 | else |
| 5520 | if test "$cross_compiling" = yes; then |
| 5521 | ac_cv_func_getopt=no |
| 5522 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5523 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5524 | #line 5525 "configure" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5525 | #include "confdefs.h" |
| 5526 | #include <stdio.h> |
| 5527 | extern int optind, opterr, getopt(); |
| 5528 | extern char* optarg; |
| 5529 | int main() { |
| 5530 | char* av[] = { "testprog", "parameter", "-fFlag", NULL }; |
| 5531 | opterr = 0; |
| 5532 | if (getopt(3, av, "f:") == 'f') { exit(1); } |
| 5533 | exit(0); |
| 5534 | } |
| 5535 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5536 | if { (eval echo configure:5537: \"$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] | 5537 | then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5538 | ac_cv_func_getopt=yes |
| 5539 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5540 | echo "configure: failed program was:" >&5 |
| 5541 | cat conftest.$ac_ext >&5 |
| 5542 | rm -fr conftest* |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5543 | ac_cv_func_getopt=no |
| 5544 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5545 | rm -fr conftest* |
| 5546 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5547 | |
| 5548 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5549 | echo "$ac_t""$ac_cv_func_getopt" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 5550 | test $ac_cv_func_getopt = no && LIBOBJS="$LIBOBJS getopt.o" |
| 5551 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5552 | # check whether malloc(0) returns NULL or not |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5553 | echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5554 | echo "configure:5555: checking what malloc(0) returns" >&5 |
| 5555 | if eval "test \"\${ac_cv_malloc_zero+set}\" = set"; then |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5556 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5557 | else |
| 5558 | if test "$cross_compiling" = yes; then |
| 5559 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5560 | else |
| 5561 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5562 | #line 5563 "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 5563 | #include "confdefs.h" |
| 5564 | #include <stdio.h> |
| 5565 | #ifdef HAVE_STDLIB |
| 5566 | #include <stdlib.h> |
| 5567 | #else |
| 5568 | char *malloc(), *realloc(); |
| 5569 | int *free(); |
| 5570 | #endif |
| 5571 | main() { |
| 5572 | char *p; |
| 5573 | p = malloc(0); |
| 5574 | if (p == NULL) exit(1); |
| 5575 | p = realloc(p, 0); |
| 5576 | if (p == NULL) exit(1); |
| 5577 | free(p); |
| 5578 | exit(0); |
| 5579 | } |
| 5580 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5581 | if { (eval echo configure:5582: \"$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] | 5582 | then |
| 5583 | ac_cv_malloc_zero=nonnull |
| 5584 | else |
| 5585 | echo "configure: failed program was:" >&5 |
| 5586 | cat conftest.$ac_ext >&5 |
| 5587 | rm -fr conftest* |
| 5588 | ac_cv_malloc_zero=null |
| 5589 | fi |
| 5590 | rm -fr conftest* |
| 5591 | fi |
| 5592 | |
| 5593 | fi |
| 5594 | |
| 5595 | echo "$ac_t""$ac_cv_malloc_zero" 1>&6 |
| 5596 | if test "$ac_cv_malloc_zero" = null |
| 5597 | then |
| 5598 | cat >> confdefs.h <<\EOF |
| 5599 | #define MALLOC_ZERO_RETURNS_NULL 1 |
| 5600 | EOF |
| 5601 | |
| 5602 | fi |
| 5603 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5604 | # check for wchar.h |
| 5605 | ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'` |
| 5606 | echo $ac_n "checking for wchar.h""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5607 | echo "configure:5608: checking for wchar.h" >&5 |
| 5608 | if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5609 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5610 | else |
| 5611 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5612 | #line 5613 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5613 | #include "confdefs.h" |
| 5614 | #include <wchar.h> |
| 5615 | EOF |
| 5616 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5617 | { (eval echo configure:5618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5618 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5619 | if test -z "$ac_err"; then |
| 5620 | rm -rf conftest* |
| 5621 | eval "ac_cv_header_$ac_safe=yes" |
| 5622 | else |
| 5623 | echo "$ac_err" >&5 |
| 5624 | echo "configure: failed program was:" >&5 |
| 5625 | cat conftest.$ac_ext >&5 |
| 5626 | rm -rf conftest* |
| 5627 | eval "ac_cv_header_$ac_safe=no" |
| 5628 | fi |
| 5629 | rm -f conftest* |
| 5630 | fi |
| 5631 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5632 | echo "$ac_t""yes" 1>&6 |
| 5633 | cat >> confdefs.h <<\EOF |
| 5634 | #define HAVE_WCHAR_H 1 |
| 5635 | EOF |
| 5636 | wchar_h="yes" |
| 5637 | else |
| 5638 | echo "$ac_t""no" 1>&6 |
| 5639 | wchar_h="no" |
| 5640 | |
| 5641 | fi |
| 5642 | |
| 5643 | |
| 5644 | # check for usable wchar_t |
| 5645 | usable_wchar_t="unkown" |
| 5646 | echo $ac_n "checking for usable wchar_t""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5647 | echo "configure:5648: checking for usable wchar_t" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5648 | if test "$cross_compiling" = yes; then |
| 5649 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5650 | else |
| 5651 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5652 | #line 5653 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5653 | #include "confdefs.h" |
| 5654 | |
| 5655 | #include "wchar.h" |
| 5656 | #include "wctype.h" |
| 5657 | main() { |
| 5658 | wchar_t s; |
| 5659 | if (sizeof(s) == 2) |
| 5660 | exit(0); |
| 5661 | else |
| 5662 | exit(1); |
| 5663 | } |
| 5664 | |
| 5665 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5666 | if { (eval echo configure:5667: \"$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] | 5667 | then |
| 5668 | cat >> confdefs.h <<\EOF |
| 5669 | #define HAVE_USABLE_WCHAR_T 1 |
| 5670 | EOF |
| 5671 | usable_wchar_t="yes" |
| 5672 | else |
| 5673 | echo "configure: failed program was:" >&5 |
| 5674 | cat conftest.$ac_ext >&5 |
| 5675 | rm -fr conftest* |
| 5676 | usable_wchar_t="no" |
| 5677 | fi |
| 5678 | rm -fr conftest* |
| 5679 | fi |
| 5680 | |
| 5681 | echo "$ac_t""$usable_wchar_t" 1>&6 |
| 5682 | |
| 5683 | # check for endianness |
| 5684 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5685 | echo "configure:5686: checking whether byte ordering is bigendian" >&5 |
| 5686 | if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5687 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5688 | else |
| 5689 | ac_cv_c_bigendian=unknown |
| 5690 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 5691 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5692 | #line 5693 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5693 | #include "confdefs.h" |
| 5694 | #include <sys/types.h> |
| 5695 | #include <sys/param.h> |
| 5696 | int main() { |
| 5697 | |
| 5698 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 5699 | bogus endian macros |
| 5700 | #endif |
| 5701 | ; return 0; } |
| 5702 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5703 | if { (eval echo configure:5704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5704 | rm -rf conftest* |
| 5705 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 5706 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5707 | #line 5708 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5708 | #include "confdefs.h" |
| 5709 | #include <sys/types.h> |
| 5710 | #include <sys/param.h> |
| 5711 | int main() { |
| 5712 | |
| 5713 | #if BYTE_ORDER != BIG_ENDIAN |
| 5714 | not big endian |
| 5715 | #endif |
| 5716 | ; return 0; } |
| 5717 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5718 | if { (eval echo configure:5719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5719 | rm -rf conftest* |
| 5720 | ac_cv_c_bigendian=yes |
| 5721 | else |
| 5722 | echo "configure: failed program was:" >&5 |
| 5723 | cat conftest.$ac_ext >&5 |
| 5724 | rm -rf conftest* |
| 5725 | ac_cv_c_bigendian=no |
| 5726 | fi |
| 5727 | rm -f conftest* |
| 5728 | else |
| 5729 | echo "configure: failed program was:" >&5 |
| 5730 | cat conftest.$ac_ext >&5 |
| 5731 | fi |
| 5732 | rm -f conftest* |
| 5733 | if test $ac_cv_c_bigendian = unknown; then |
| 5734 | if test "$cross_compiling" = yes; then |
| 5735 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5736 | else |
| 5737 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5738 | #line 5739 "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5739 | #include "confdefs.h" |
| 5740 | main () { |
| 5741 | /* Are we little or big endian? From Harbison&Steele. */ |
| 5742 | union |
| 5743 | { |
| 5744 | long l; |
| 5745 | char c[sizeof (long)]; |
| 5746 | } u; |
| 5747 | u.l = 1; |
| 5748 | exit (u.c[sizeof (long) - 1] == 1); |
| 5749 | } |
| 5750 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5751 | if { (eval echo configure:5752: \"$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] | 5752 | then |
| 5753 | ac_cv_c_bigendian=no |
| 5754 | else |
| 5755 | echo "configure: failed program was:" >&5 |
| 5756 | cat conftest.$ac_ext >&5 |
| 5757 | rm -fr conftest* |
| 5758 | ac_cv_c_bigendian=yes |
| 5759 | fi |
| 5760 | rm -fr conftest* |
| 5761 | fi |
| 5762 | |
| 5763 | fi |
| 5764 | fi |
| 5765 | |
| 5766 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
| 5767 | if test $ac_cv_c_bigendian = yes; then |
| 5768 | cat >> confdefs.h <<\EOF |
| 5769 | #define WORDS_BIGENDIAN 1 |
| 5770 | EOF |
| 5771 | |
| 5772 | fi |
| 5773 | |
| 5774 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5775 | # Check whether right shifting a negative integer extends the sign bit |
| 5776 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
| 5777 | echo $ac_n "checking whether right shift extends the sign bit""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5778 | echo "configure:5779: checking whether right shift extends the sign bit" >&5 |
| 5779 | if eval "test \"\${ac_cv_rshift_extends_sign+set}\" = set"; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 5780 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5781 | else |
| 5782 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5783 | if test "$cross_compiling" = yes; then |
| 5784 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 5785 | else |
| 5786 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5787 | #line 5788 "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5788 | #include "confdefs.h" |
| 5789 | |
| 5790 | int main() |
| 5791 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 5792 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5793 | } |
| 5794 | |
| 5795 | EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5796 | if { (eval echo configure:5797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 5797 | then |
| 5798 | ac_cv_rshift_extends_sign=yes |
| 5799 | else |
| 5800 | echo "configure: failed program was:" >&5 |
| 5801 | cat conftest.$ac_ext >&5 |
| 5802 | rm -fr conftest* |
| 5803 | ac_cv_rshift_extends_sign=no |
| 5804 | fi |
| 5805 | rm -fr conftest* |
| 5806 | fi |
| 5807 | |
| 5808 | fi |
| 5809 | |
| 5810 | echo "$ac_t""$ac_cv_rshift_extends_sign" 1>&6 |
| 5811 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5812 | then |
| 5813 | cat >> confdefs.h <<\EOF |
| 5814 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
| 5815 | EOF |
| 5816 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 5817 | fi |
| 5818 | |
| 5819 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5820 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! |
| 5821 | # Add sys/socket.h to confdefs.h |
| 5822 | cat >> confdefs.h <<\EOF |
| 5823 | #ifdef HAVE_SYS_SOCKET_H |
| 5824 | #include <sys/socket.h> |
| 5825 | #endif |
| 5826 | EOF |
| 5827 | echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5828 | echo "configure:5829: checking for socklen_t" >&5 |
| 5829 | if eval "test \"\${ac_cv_type_socklen_t+set}\" = set"; then |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5830 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5831 | else |
| 5832 | cat > conftest.$ac_ext <<EOF |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5833 | #line 5834 "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5834 | #include "confdefs.h" |
| 5835 | #include <sys/types.h> |
| 5836 | #if STDC_HEADERS |
| 5837 | #include <stdlib.h> |
| 5838 | #include <stddef.h> |
| 5839 | #endif |
| 5840 | EOF |
| 5841 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5842 | egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 5843 | rm -rf conftest* |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5844 | eval "ac_cv_type_socklen_t=yes" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5845 | else |
| 5846 | rm -rf conftest* |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5847 | eval "ac_cv_type_socklen_t=no" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5848 | fi |
| 5849 | rm -f conftest* |
| 5850 | |
| 5851 | fi |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5852 | if eval "test \"`echo '$ac_cv_type_'socklen_t`\" = yes"; then |
| 5853 | echo "$ac_t""yes" 1>&6 |
| 5854 | else |
| 5855 | echo "$ac_t""no" 1>&6 |
| 5856 | cat >> confdefs.h <<EOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 5857 | #define socklen_t int |
| 5858 | EOF |
| 5859 | |
| 5860 | fi |
| 5861 | |
| 5862 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5863 | # generate output files |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5864 | trap '' 1 2 15 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5865 | cat > confcache <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5866 | # This file is a shell script that caches the results of configure |
| 5867 | # tests run on this system so they can be shared between configure |
| 5868 | # scripts and configure runs. It is not useful on other systems. |
| 5869 | # If it contains results you don't want to keep, you may remove or edit it. |
| 5870 | # |
| 5871 | # By default, configure uses ./config.cache as the cache file, |
| 5872 | # creating it if it does not exist already. You can give configure |
| 5873 | # the --cache-file=FILE option to use a different cache file; that is |
| 5874 | # what configure does when it calls configure scripts in |
| 5875 | # subdirectories, so they share the cache. |
| 5876 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 5877 | # config.status only pays attention to the cache file if you give it the |
| 5878 | # --recheck option to rerun configure. |
| 5879 | # |
| 5880 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5881 | # The following way of writing the cache mishandles newlines in values, |
| 5882 | # but we know of no workaround that is simple, portable, and efficient. |
| 5883 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5884 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 5885 | # 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] | 5886 | (set) 2>&1 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5887 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5888 | *ac_space=\ *) |
| 5889 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 5890 | # turns \\\\ into \\, and sed turns \\ into \). |
| 5891 | sed -n \ |
| 5892 | -e "s/'/'\\\\''/g" \ |
| 5893 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 5894 | ;; |
| 5895 | *) |
| 5896 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 5897 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 5898 | ;; |
| 5899 | esac >> confcache |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5900 | if cmp -s $cache_file confcache; then |
| 5901 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5902 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5903 | if test -w $cache_file; then |
| 5904 | echo "updating cache $cache_file" |
| 5905 | cat confcache > $cache_file |
| 5906 | else |
| 5907 | echo "not updating unwritable cache $cache_file" |
| 5908 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5909 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5910 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 5911 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5912 | 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] | 5913 | |
| 5914 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 5915 | # Let make expand exec_prefix. |
| 5916 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 5917 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5918 | # Any assignment to VPATH causes Sun make to only execute |
| 5919 | # the first set of double-colon rules, so remove it if not needed. |
| 5920 | # If there is a colon in the path, we need to keep it. |
| 5921 | if test "x$srcdir" = x.; then |
| 5922 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 5923 | fi |
| 5924 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5925 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5926 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5927 | DEFS=-DHAVE_CONFIG_H |
| 5928 | |
| 5929 | # Without the "./", some shells look in PATH for config.status. |
| 5930 | : ${CONFIG_STATUS=./config.status} |
| 5931 | |
| 5932 | echo creating $CONFIG_STATUS |
| 5933 | rm -f $CONFIG_STATUS |
| 5934 | cat > $CONFIG_STATUS <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5935 | #! /bin/sh |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5936 | # Generated automatically by configure. |
| 5937 | # Run this file to recreate the current configuration. |
| 5938 | # This directory was configured as follows, |
| 5939 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 5940 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5941 | # $0 $ac_configure_args |
| 5942 | # |
| 5943 | # Compiler output produced by configure, useful for debugging |
| 5944 | # configure, is in ./config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5945 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5946 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5947 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5948 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5949 | case "\$ac_option" in |
| 5950 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5951 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 5952 | 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] | 5953 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 5954 | echo "$CONFIG_STATUS generated by autoconf version 2.14.1" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5955 | exit 0 ;; |
| 5956 | -help | --help | --hel | --he | --h) |
| 5957 | echo "\$ac_cs_usage"; exit 0 ;; |
| 5958 | *) echo "\$ac_cs_usage"; exit 1 ;; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5959 | esac |
| 5960 | done |
| 5961 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5962 | ac_given_srcdir=$srcdir |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5963 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 5964 | trap 'rm -fr `echo "Makefile \ |
| 5965 | Objects/Makefile \ |
| 5966 | Parser/Makefile \ |
Sjoerd Mullender | a179503 | 2000-08-17 11:41:06 +0000 | [diff] [blame] | 5967 | Grammar/Makefile \ |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 5968 | Python/Makefile \ |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 5969 | Modules/Makefile.pre \ |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 5970 | 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] | 5971 | EOF |
| 5972 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5973 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5974 | # Protect against being on the right side of a sed subst in config.status. |
| 5975 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 5976 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5977 | $ac_vpsub |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5978 | $extrasub |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5979 | s%@SHELL@%$SHELL%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5980 | s%@CFLAGS@%$CFLAGS%g |
| 5981 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 5982 | s%@CXXFLAGS@%$CXXFLAGS%g |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 5983 | s%@FFLAGS@%$FFLAGS%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5984 | s%@DEFS@%$DEFS%g |
| 5985 | s%@LDFLAGS@%$LDFLAGS%g |
| 5986 | s%@LIBS@%$LIBS%g |
| 5987 | s%@exec_prefix@%$exec_prefix%g |
| 5988 | s%@prefix@%$prefix%g |
| 5989 | s%@program_transform_name@%$program_transform_name%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5990 | s%@bindir@%$bindir%g |
| 5991 | s%@sbindir@%$sbindir%g |
| 5992 | s%@libexecdir@%$libexecdir%g |
| 5993 | s%@datadir@%$datadir%g |
| 5994 | s%@sysconfdir@%$sysconfdir%g |
| 5995 | s%@sharedstatedir@%$sharedstatedir%g |
| 5996 | s%@localstatedir@%$localstatedir%g |
| 5997 | s%@libdir@%$libdir%g |
| 5998 | s%@includedir@%$includedir%g |
| 5999 | s%@oldincludedir@%$oldincludedir%g |
| 6000 | s%@infodir@%$infodir%g |
| 6001 | s%@mandir@%$mandir%g |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 6002 | s%@VERSION@%$VERSION%g |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 6003 | s%@MACHDEP@%$MACHDEP%g |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 6004 | s%@SGI_ABI@%$SGI_ABI%g |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 6005 | s%@SET_CXX@%$SET_CXX%g |
| 6006 | s%@MAINOBJ@%$MAINOBJ%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6007 | s%@CC@%$CC%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 6008 | s%@MAKE_LDLIBRARY@%$MAKE_LDLIBRARY%g |
| 6009 | s%@LDLIBRARY@%$LDLIBRARY%g |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 6010 | s%@LINKCC@%$LINKCC%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6011 | s%@RANLIB@%$RANLIB%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6012 | s%@AR@%$AR%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 6013 | s%@INSTALL@%$INSTALL%g |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6014 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 6015 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6016 | s%@LN@%$LN%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 6017 | s%@OPT@%$OPT%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6018 | s%@CPP@%$CPP%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 6019 | s%@LIBTOOL_CRUFT@%$LIBTOOL_CRUFT%g |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 6020 | s%@SO@%$SO%g |
| 6021 | s%@LDSHARED@%$LDSHARED%g |
| 6022 | s%@CCSHARED@%$CCSHARED%g |
| 6023 | s%@LINKFORSHARED@%$LINKFORSHARED%g |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 6024 | s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 6025 | s%@LDLAST@%$LDLAST%g |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 6026 | s%@USE_GC_MODULE@%$USE_GC_MODULE%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6027 | s%@DLINCLDIR@%$DLINCLDIR%g |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 6028 | s%@DYNLOADFILE@%$DYNLOADFILE%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6029 | s%@LIBOBJS@%$LIBOBJS%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6030 | s%@HAVE_GETHOSTBYNAME_R_6_ARG@%$HAVE_GETHOSTBYNAME_R_6_ARG%g |
| 6031 | s%@HAVE_GETHOSTBYNAME_R_5_ARG@%$HAVE_GETHOSTBYNAME_R_5_ARG%g |
| 6032 | 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] | 6033 | s%@HAVE_GETHOSTBYNAME_R@%$HAVE_GETHOSTBYNAME_R%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6034 | s%@HAVE_GETHOSTBYNAME@%$HAVE_GETHOSTBYNAME%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6035 | s%@LIBM@%$LIBM%g |
| 6036 | s%@LIBC@%$LIBC%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6037 | |
| 6038 | CEOF |
| 6039 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6040 | |
| 6041 | cat >> $CONFIG_STATUS <<\EOF |
| 6042 | |
| 6043 | # Split the substitutions into bite-sized pieces for seds with |
| 6044 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 6045 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 6046 | ac_file=1 # Number of current file. |
| 6047 | ac_beg=1 # First line for current file. |
| 6048 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 6049 | ac_more_lines=: |
| 6050 | ac_sed_cmds="" |
| 6051 | while $ac_more_lines; do |
| 6052 | if test $ac_beg -gt 1; then |
| 6053 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 6054 | else |
| 6055 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 6056 | fi |
| 6057 | if test ! -s conftest.s$ac_file; then |
| 6058 | ac_more_lines=false |
| 6059 | rm -f conftest.s$ac_file |
| 6060 | else |
| 6061 | if test -z "$ac_sed_cmds"; then |
| 6062 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 6063 | else |
| 6064 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 6065 | fi |
| 6066 | ac_file=`expr $ac_file + 1` |
| 6067 | ac_beg=$ac_end |
| 6068 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 6069 | fi |
| 6070 | done |
| 6071 | if test -z "$ac_sed_cmds"; then |
| 6072 | ac_sed_cmds=cat |
| 6073 | fi |
| 6074 | EOF |
| 6075 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6076 | cat >> $CONFIG_STATUS <<EOF |
| 6077 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 6078 | CONFIG_FILES=\${CONFIG_FILES-"Makefile \ |
| 6079 | Objects/Makefile \ |
| 6080 | Parser/Makefile \ |
Sjoerd Mullender | a179503 | 2000-08-17 11:41:06 +0000 | [diff] [blame] | 6081 | Grammar/Makefile \ |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 6082 | Python/Makefile \ |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 6083 | Modules/Makefile.pre \ |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 6084 | Modules/Setup.config"} |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6085 | EOF |
| 6086 | cat >> $CONFIG_STATUS <<\EOF |
| 6087 | 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] | 6088 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6089 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6090 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6091 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 6092 | *) ac_file_in="${ac_file}.in" ;; |
| 6093 | esac |
| 6094 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6095 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6096 | |
| 6097 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 6098 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 6099 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 6100 | # The file is in a subdirectory. |
| 6101 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6102 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6103 | # A "../" for each directory in $ac_dir_suffix. |
| 6104 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 6105 | else |
| 6106 | ac_dir_suffix= ac_dots= |
| 6107 | fi |
| 6108 | |
| 6109 | case "$ac_given_srcdir" in |
| 6110 | .) srcdir=. |
| 6111 | if test -z "$ac_dots"; then top_srcdir=. |
| 6112 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 6113 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 6114 | *) # Relative path. |
| 6115 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 6116 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 6117 | esac |
| 6118 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6119 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6120 | echo creating "$ac_file" |
| 6121 | rm -f "$ac_file" |
| 6122 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 6123 | case "$ac_file" in |
| 6124 | *Makefile*) ac_comsub="1i\\ |
| 6125 | # $configure_input" ;; |
| 6126 | *) ac_comsub= ;; |
| 6127 | esac |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6128 | |
| 6129 | 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] | 6130 | sed -e "$ac_comsub |
| 6131 | s%@configure_input@%$configure_input%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6132 | s%@srcdir@%$srcdir%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6133 | s%@top_srcdir@%$top_srcdir%g |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6134 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6135 | fi; done |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6136 | rm -f conftest.s* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6137 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6138 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 6139 | # 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] | 6140 | # |
| 6141 | # ac_d sets the value in "#define NAME VALUE" lines. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6142 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 6143 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6144 | ac_dC='\3' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6145 | ac_dD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6146 | # 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] | 6147 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 6148 | ac_uB='\([ ]\)%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6149 | ac_uC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6150 | ac_uD='\4%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6151 | # 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] | 6152 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 6153 | ac_eB='$%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6154 | ac_eC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6155 | ac_eD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6156 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6157 | if test "${CONFIG_HEADERS+set}" != set; then |
| 6158 | EOF |
| 6159 | cat >> $CONFIG_STATUS <<EOF |
| 6160 | CONFIG_HEADERS="config.h" |
| 6161 | EOF |
| 6162 | cat >> $CONFIG_STATUS <<\EOF |
| 6163 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6164 | 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] | 6165 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6166 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6167 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6168 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 6169 | *) ac_file_in="${ac_file}.in" ;; |
| 6170 | esac |
| 6171 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6172 | echo creating $ac_file |
| 6173 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6174 | rm -f conftest.frag conftest.in conftest.out |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6175 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 6176 | cat $ac_file_inputs > conftest.in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6177 | |
| 6178 | EOF |
| 6179 | |
| 6180 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 6181 | # 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] | 6182 | # 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] | 6183 | # Protect against being in an unquoted here document in config.status. |
| 6184 | rm -f conftest.vals |
| 6185 | cat > conftest.hdr <<\EOF |
| 6186 | s/[\\&%]/\\&/g |
| 6187 | s%[\\$`]%\\&%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6188 | 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] | 6189 | s%ac_d%ac_u%gp |
| 6190 | s%ac_u%ac_e%gp |
| 6191 | EOF |
| 6192 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 6193 | rm -f conftest.hdr |
| 6194 | |
| 6195 | # This sed command replaces #undef with comments. This is necessary, for |
| 6196 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 6197 | # on some systems where configure will not decide to define it. |
| 6198 | cat >> conftest.vals <<\EOF |
| 6199 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 6200 | EOF |
| 6201 | |
| 6202 | # Break up conftest.vals because some shells have a limit on |
| 6203 | # 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] | 6204 | |
| 6205 | rm -f conftest.tail |
| 6206 | while : |
| 6207 | do |
| 6208 | ac_lines=`grep -c . conftest.vals` |
| 6209 | # grep -c gives empty output for an empty file on some AIX systems. |
| 6210 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 6211 | # Write a limited-size here document to conftest.frag. |
| 6212 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 6213 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 6214 | echo 'CEOF |
| 6215 | sed -f conftest.frag conftest.in > conftest.out |
| 6216 | rm -f conftest.in |
| 6217 | mv conftest.out conftest.in |
| 6218 | ' >> $CONFIG_STATUS |
| 6219 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 6220 | rm -f conftest.vals |
| 6221 | mv conftest.tail conftest.vals |
| 6222 | done |
| 6223 | rm -f conftest.vals |
| 6224 | |
| 6225 | cat >> $CONFIG_STATUS <<\EOF |
| 6226 | rm -f conftest.frag conftest.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6227 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6228 | cat conftest.in >> conftest.h |
| 6229 | rm -f conftest.in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6230 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6231 | echo "$ac_file is unchanged" |
| 6232 | rm -f conftest.h |
| 6233 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6234 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 6235 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 6236 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 6237 | # The file is in a subdirectory. |
| 6238 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 6239 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6240 | rm -f $ac_file |
| 6241 | mv conftest.h $ac_file |
| 6242 | fi |
| 6243 | fi; done |
| 6244 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6245 | EOF |
| 6246 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6247 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6248 | EOF |
| 6249 | cat >> $CONFIG_STATUS <<\EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6250 | |
| 6251 | exit 0 |
| 6252 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6253 | chmod +x $CONFIG_STATUS |
| 6254 | rm -fr confdefs* $ac_clean_files |
Skip Montanaro | cb85326 | 2000-08-30 22:29:48 +0000 | [diff] [blame] | 6255 | test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6256 | |