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