Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2 | |
Guido van Rossum | ff48418 | 2000-02-03 13:50:24 +0000 | [diff] [blame] | 3 | # From configure.in Revision: 1.115 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5 | # Guess values for system-dependent variables and create Makefiles. |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +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 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 17 | --with-next-archs='arch1 arch2 ..' build MAB binary" |
| 18 | ac_help="$ac_help |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 19 | --with-next-framework Build (OpenStep|Rhapsody|MacOS10) framework" |
| 20 | ac_help="$ac_help |
| 21 | --with-dyld Use (OpenStep|Rhapsody|MacOS10) dynamic linker" |
| 22 | ac_help="$ac_help |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 23 | --without-gcc never use gcc" |
| 24 | ac_help="$ac_help |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 25 | --with-cxx=<compiler> enable C++ support" |
| 26 | ac_help="$ac_help |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 27 | --with-libs='lib1 ...' link against additional libs" |
| 28 | ac_help="$ac_help |
Guido van Rossum | b06df27 | 1997-08-05 21:50:20 +0000 | [diff] [blame] | 29 | --with(out)-readline obsolete, edit Modules/Setup instead" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 30 | ac_help="$ac_help |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 31 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries" |
| 32 | ac_help="$ac_help |
| 33 | --with-threads alias for --with-thread" |
| 34 | ac_help="$ac_help |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 35 | --with-thread[=DIRECTORY] make interpreter thread-safe" |
| 36 | ac_help="$ac_help |
| 37 | --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking" |
| 38 | ac_help="$ac_help |
| 39 | --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking" |
| 40 | ac_help="$ac_help |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 41 | --with-fpectl enable SIGFPE catching" |
| 42 | ac_help="$ac_help |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 43 | --with-libm=STRING math library" |
| 44 | ac_help="$ac_help |
| 45 | --with-libc=STRING C library" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 46 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 47 | # Initialize some variables set by options. |
| 48 | # The variables have the same names as the options, with |
| 49 | # dashes changed to underlines. |
| 50 | build=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 51 | cache_file=./config.cache |
| 52 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 53 | host=NONE |
| 54 | no_create= |
| 55 | nonopt=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 56 | no_recursion= |
| 57 | prefix=NONE |
| 58 | program_prefix=NONE |
| 59 | program_suffix=NONE |
| 60 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 61 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 62 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 63 | srcdir= |
| 64 | target=NONE |
| 65 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 66 | x_includes=NONE |
| 67 | x_libraries=NONE |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 68 | bindir='${exec_prefix}/bin' |
| 69 | sbindir='${exec_prefix}/sbin' |
| 70 | libexecdir='${exec_prefix}/libexec' |
| 71 | datadir='${prefix}/share' |
| 72 | sysconfdir='${prefix}/etc' |
| 73 | sharedstatedir='${prefix}/com' |
| 74 | localstatedir='${prefix}/var' |
| 75 | libdir='${exec_prefix}/lib' |
| 76 | includedir='${prefix}/include' |
| 77 | oldincludedir='/usr/include' |
| 78 | infodir='${prefix}/info' |
| 79 | mandir='${prefix}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 80 | |
| 81 | # Initialize some other variables. |
| 82 | subdirs= |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 83 | MFLAGS= MAKEFLAGS= |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 84 | SHELL=${CONFIG_SHELL-/bin/sh} |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 85 | # Maximum number of lines to put in a shell here document. |
| 86 | ac_max_here_lines=12 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 87 | |
| 88 | ac_prev= |
| 89 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 90 | do |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 91 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 92 | # If the previous option needs an argument, assign it. |
| 93 | if test -n "$ac_prev"; then |
| 94 | eval "$ac_prev=\$ac_option" |
| 95 | ac_prev= |
| 96 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 97 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 98 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 99 | case "$ac_option" in |
| 100 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 101 | *) ac_optarg= ;; |
| 102 | esac |
| 103 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 104 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 105 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 106 | case "$ac_option" in |
| 107 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 108 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 109 | ac_prev=bindir ;; |
| 110 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 111 | bindir="$ac_optarg" ;; |
| 112 | |
| 113 | -build | --build | --buil | --bui | --bu) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 114 | ac_prev=build ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 115 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 116 | build="$ac_optarg" ;; |
| 117 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 118 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 119 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 120 | ac_prev=cache_file ;; |
| 121 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 122 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 123 | cache_file="$ac_optarg" ;; |
| 124 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 125 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 126 | ac_prev=datadir ;; |
| 127 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 128 | | --da=*) |
| 129 | datadir="$ac_optarg" ;; |
| 130 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 131 | -disable-* | --disable-*) |
| 132 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 133 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 134 | 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] | 135 | { 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] | 136 | fi |
| 137 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 138 | eval "enable_${ac_feature}=no" ;; |
| 139 | |
| 140 | -enable-* | --enable-*) |
| 141 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 142 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 143 | 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] | 144 | { 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] | 145 | fi |
| 146 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 147 | case "$ac_option" in |
| 148 | *=*) ;; |
| 149 | *) ac_optarg=yes ;; |
| 150 | esac |
| 151 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 152 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 153 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 154 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 155 | | --exec | --exe | --ex) |
| 156 | ac_prev=exec_prefix ;; |
| 157 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 158 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 159 | | --exec=* | --exe=* | --ex=*) |
| 160 | exec_prefix="$ac_optarg" ;; |
| 161 | |
| 162 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 163 | # Obsolete; use --with-gas. |
| 164 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 165 | |
| 166 | -help | --help | --hel | --he) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 167 | # Omit some internal or obsolete options to make the list less imposing. |
| 168 | # 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] | 169 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 170 | Usage: configure [options] [host] |
| 171 | Options: [defaults in brackets after descriptions] |
| 172 | Configuration: |
| 173 | --cache-file=FILE cache test results in FILE |
| 174 | --help print this message |
| 175 | --no-create do not create output files |
| 176 | --quiet, --silent do not print \`checking...' messages |
| 177 | --version print the version of autoconf that created configure |
| 178 | Directory and file names: |
| 179 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 180 | [$ac_default_prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 181 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 182 | [same as prefix] |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 183 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 184 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 185 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 186 | --datadir=DIR read-only architecture-independent data in DIR |
| 187 | [PREFIX/share] |
| 188 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 189 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 190 | [PREFIX/com] |
| 191 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 192 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 193 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 194 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 195 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 196 | --mandir=DIR man documentation in DIR [PREFIX/man] |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 197 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 198 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 199 | --program-suffix=SUFFIX append SUFFIX to installed program names |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 200 | --program-transform-name=PROGRAM |
| 201 | run sed PROGRAM on installed program names |
| 202 | EOF |
| 203 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 204 | Host type: |
| 205 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 206 | --host=HOST configure for HOST [guessed] |
| 207 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 208 | Features and packages: |
| 209 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 210 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 211 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 212 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 213 | --x-includes=DIR X include files are in DIR |
| 214 | --x-libraries=DIR X library files are in DIR |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 215 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 216 | if test -n "$ac_help"; then |
| 217 | echo "--enable and --with options recognized:$ac_help" |
| 218 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 219 | exit 0 ;; |
| 220 | |
| 221 | -host | --host | --hos | --ho) |
| 222 | ac_prev=host ;; |
| 223 | -host=* | --host=* | --hos=* | --ho=*) |
| 224 | host="$ac_optarg" ;; |
| 225 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 226 | -includedir | --includedir | --includedi | --included | --include \ |
| 227 | | --includ | --inclu | --incl | --inc) |
| 228 | ac_prev=includedir ;; |
| 229 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 230 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 231 | includedir="$ac_optarg" ;; |
| 232 | |
| 233 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 234 | ac_prev=infodir ;; |
| 235 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 236 | infodir="$ac_optarg" ;; |
| 237 | |
| 238 | -libdir | --libdir | --libdi | --libd) |
| 239 | ac_prev=libdir ;; |
| 240 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 241 | libdir="$ac_optarg" ;; |
| 242 | |
| 243 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 244 | | --libexe | --libex | --libe) |
| 245 | ac_prev=libexecdir ;; |
| 246 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 247 | | --libexe=* | --libex=* | --libe=*) |
| 248 | libexecdir="$ac_optarg" ;; |
| 249 | |
| 250 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 251 | | --localstate | --localstat | --localsta | --localst \ |
| 252 | | --locals | --local | --loca | --loc | --lo) |
| 253 | ac_prev=localstatedir ;; |
| 254 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 255 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 256 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 257 | localstatedir="$ac_optarg" ;; |
| 258 | |
| 259 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 260 | ac_prev=mandir ;; |
| 261 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 262 | mandir="$ac_optarg" ;; |
| 263 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 264 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 265 | # Obsolete; use --without-fp. |
| 266 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 267 | |
| 268 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 269 | | --no-cr | --no-c) |
| 270 | no_create=yes ;; |
| 271 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 272 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 273 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 274 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 275 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 276 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 277 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 278 | | --oldin | --oldi | --old | --ol | --o) |
| 279 | ac_prev=oldincludedir ;; |
| 280 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 281 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 282 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 283 | oldincludedir="$ac_optarg" ;; |
| 284 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 285 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 286 | ac_prev=prefix ;; |
| 287 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 288 | prefix="$ac_optarg" ;; |
| 289 | |
| 290 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 291 | | --program-pre | --program-pr | --program-p) |
| 292 | ac_prev=program_prefix ;; |
| 293 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 294 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 295 | program_prefix="$ac_optarg" ;; |
| 296 | |
| 297 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 298 | | --program-suf | --program-su | --program-s) |
| 299 | ac_prev=program_suffix ;; |
| 300 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 301 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 302 | program_suffix="$ac_optarg" ;; |
| 303 | |
| 304 | -program-transform-name | --program-transform-name \ |
| 305 | | --program-transform-nam | --program-transform-na \ |
| 306 | | --program-transform-n | --program-transform- \ |
| 307 | | --program-transform | --program-transfor \ |
| 308 | | --program-transfo | --program-transf \ |
| 309 | | --program-trans | --program-tran \ |
| 310 | | --progr-tra | --program-tr | --program-t) |
| 311 | ac_prev=program_transform_name ;; |
| 312 | -program-transform-name=* | --program-transform-name=* \ |
| 313 | | --program-transform-nam=* | --program-transform-na=* \ |
| 314 | | --program-transform-n=* | --program-transform-=* \ |
| 315 | | --program-transform=* | --program-transfor=* \ |
| 316 | | --program-transfo=* | --program-transf=* \ |
| 317 | | --program-trans=* | --program-tran=* \ |
| 318 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 319 | program_transform_name="$ac_optarg" ;; |
| 320 | |
| 321 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 322 | | -silent | --silent | --silen | --sile | --sil) |
| 323 | silent=yes ;; |
| 324 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 325 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 326 | ac_prev=sbindir ;; |
| 327 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 328 | | --sbi=* | --sb=*) |
| 329 | sbindir="$ac_optarg" ;; |
| 330 | |
| 331 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 332 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 333 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 334 | | --sha | --sh) |
| 335 | ac_prev=sharedstatedir ;; |
| 336 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 337 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 338 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 339 | | --sha=* | --sh=*) |
| 340 | sharedstatedir="$ac_optarg" ;; |
| 341 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 342 | -site | --site | --sit) |
| 343 | ac_prev=site ;; |
| 344 | -site=* | --site=* | --sit=*) |
| 345 | site="$ac_optarg" ;; |
| 346 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 347 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 348 | ac_prev=srcdir ;; |
| 349 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 350 | srcdir="$ac_optarg" ;; |
| 351 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 352 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 353 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 354 | ac_prev=sysconfdir ;; |
| 355 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 356 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 357 | sysconfdir="$ac_optarg" ;; |
| 358 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 359 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 360 | ac_prev=target ;; |
| 361 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 362 | target="$ac_optarg" ;; |
| 363 | |
| 364 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 365 | verbose=yes ;; |
| 366 | |
| 367 | -version | --version | --versio | --versi | --vers) |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 368 | echo "configure generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 369 | exit 0 ;; |
| 370 | |
| 371 | -with-* | --with-*) |
| 372 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 373 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 374 | 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] | 375 | { 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] | 376 | fi |
| 377 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 378 | case "$ac_option" in |
| 379 | *=*) ;; |
| 380 | *) ac_optarg=yes ;; |
| 381 | esac |
| 382 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 383 | |
| 384 | -without-* | --without-*) |
| 385 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 386 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 387 | 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] | 388 | { 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] | 389 | fi |
| 390 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 391 | eval "with_${ac_package}=no" ;; |
| 392 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 393 | --x) |
| 394 | # Obsolete; use --with-x. |
| 395 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 396 | |
| 397 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 398 | | --x-incl | --x-inc | --x-in | --x-i) |
| 399 | ac_prev=x_includes ;; |
| 400 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 401 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 402 | x_includes="$ac_optarg" ;; |
| 403 | |
| 404 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 405 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 406 | ac_prev=x_libraries ;; |
| 407 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 408 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 409 | x_libraries="$ac_optarg" ;; |
| 410 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 411 | -*) { 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] | 412 | ;; |
| 413 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 414 | *) |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 415 | 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] | 416 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 417 | fi |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 418 | if test "x$nonopt" != xNONE; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 419 | { 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] | 420 | fi |
| 421 | nonopt="$ac_option" |
| 422 | ;; |
| 423 | |
| 424 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 425 | done |
| 426 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 427 | if test -n "$ac_prev"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 428 | { 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] | 429 | fi |
| 430 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 431 | 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] | 432 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 433 | # File descriptor usage: |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 434 | # 0 standard input |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 435 | # 1 file creation |
| 436 | # 2 errors and warnings |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 437 | # 3 some systems may open it to /dev/tty |
| 438 | # 4 used on the Kubota Titan |
| 439 | # 6 checking for... messages and results |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 440 | # 5 compiler messages saved in config.log |
| 441 | if test "$silent" = yes; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 442 | exec 6>/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 443 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 444 | exec 6>&1 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 445 | fi |
| 446 | exec 5>./config.log |
| 447 | |
| 448 | echo "\ |
| 449 | This file contains any messages produced by compilers while |
| 450 | running configure, to aid debugging if configure makes a mistake. |
| 451 | " 1>&5 |
| 452 | |
| 453 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 454 | # Also quote any args containing shell metacharacters. |
| 455 | ac_configure_args= |
| 456 | for ac_arg |
| 457 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 458 | case "$ac_arg" in |
| 459 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 460 | | --no-cr | --no-c) ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 461 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 462 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 463 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 464 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 465 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 466 | esac |
| 467 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 468 | |
| 469 | # NLS nuisances. |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 470 | # Only set these to C if already set. These must not be set unconditionally |
| 471 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 472 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 473 | # Non-C LC_CTYPE values break the ctype check. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 474 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 475 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 476 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 477 | 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] | 478 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 479 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 480 | rm -rf conftest* confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 481 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 482 | echo > confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 483 | |
| 484 | # A filename unique to this package, relative to the directory that |
| 485 | # 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] | 486 | ac_unique_file=Include/object.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 487 | |
| 488 | # Find the source files, if location was not specified. |
| 489 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 490 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 491 | # Try the directory containing this script, then its parent. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 492 | ac_prog=$0 |
| 493 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 494 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 495 | srcdir=$ac_confdir |
| 496 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 497 | srcdir=.. |
| 498 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 499 | else |
| 500 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 501 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 502 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 503 | if test "$ac_srcdir_defaulted" = yes; then |
| 504 | { 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] | 505 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 506 | { 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] | 507 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 508 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 509 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 510 | |
| 511 | # Prefer explicitly selected file to automatically selected ones. |
| 512 | if test -z "$CONFIG_SITE"; then |
| 513 | if test "x$prefix" != xNONE; then |
| 514 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 515 | else |
| 516 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 517 | fi |
| 518 | fi |
| 519 | for ac_site_file in $CONFIG_SITE; do |
| 520 | if test -r "$ac_site_file"; then |
| 521 | echo "loading site script $ac_site_file" |
| 522 | . "$ac_site_file" |
| 523 | fi |
| 524 | done |
| 525 | |
| 526 | if test -r "$cache_file"; then |
| 527 | echo "loading cache $cache_file" |
| 528 | . $cache_file |
| 529 | else |
| 530 | echo "creating cache $cache_file" |
| 531 | > $cache_file |
| 532 | fi |
| 533 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 534 | ac_ext=c |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 535 | # 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] | 536 | ac_cpp='$CPP $CPPFLAGS' |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 537 | 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] | 538 | 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] | 539 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 540 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 541 | ac_exeext= |
| 542 | ac_objext=o |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 543 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 544 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 545 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 546 | ac_n= ac_c=' |
| 547 | ' ac_t=' ' |
| 548 | else |
| 549 | ac_n=-n ac_c= ac_t= |
| 550 | fi |
| 551 | else |
| 552 | ac_n= ac_c='\c' ac_t= |
| 553 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 554 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 555 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 556 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 557 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 558 | # Set VERSION so we only need to edit in one place (i.e., here) |
| 559 | |
| 560 | VERSION=1.5 |
| 561 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 562 | # NEXTSTEP stuff |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 563 | 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] | 564 | |
| 565 | echo $ac_n "checking for --with-next-archs""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 566 | echo "configure:567: checking for --with-next-archs" >&5 |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 567 | # Check whether --with-next-archs or --without-next-archs was given. |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 568 | if test "${with_next_archs+set}" = set; then |
| 569 | withval="$with_next_archs" |
| 570 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 571 | if test -n "$withval"; then |
| 572 | ac_arch_flags=`/usr/lib/arch_tool -archify_list $withval` |
| 573 | # GCC does not currently support multi archs on the NeXT |
| 574 | with_gcc=no |
| 575 | fi |
| 576 | echo "$ac_t""$with_next_archs" 1>&6 |
| 577 | |
| 578 | else |
| 579 | echo "$ac_t""none: using `arch`" 1>&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 580 | fi |
| 581 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 582 | |
| 583 | if test -z "$MACHDEP" |
| 584 | then |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 585 | set X `hostinfo | egrep '(NeXT Mach|Kernel Release).*:' | \ |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 586 | sed -e 's/://' -e 's/\./_/'` && \ |
| 587 | ac_sys_system=next && ac_sys_release=$4 |
| 588 | |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 589 | MACHDEP="$ac_sys_system$ac_sys_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 590 | fi |
| 591 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 592 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 593 | # Check whether --with-next-framework or --without-next-framework was given. |
| 594 | if test "${with_next_framework+set}" = set; then |
| 595 | withval="$with_next_framework" |
| 596 | : |
| 597 | fi |
| 598 | |
| 599 | # Check whether --with-dyld or --without-dyld was given. |
| 600 | if test "${with_dyld+set}" = set; then |
| 601 | withval="$with_dyld" |
| 602 | : |
| 603 | fi |
| 604 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 605 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 606 | # Set name for machine-dependent library files |
| 607 | |
| 608 | echo $ac_n "checking MACHDEP""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 609 | echo "configure:610: checking MACHDEP" >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 610 | if test -z "$MACHDEP" |
| 611 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 612 | ac_sys_system=`uname -s` |
| 613 | if test "$ac_sys_system" = "AIX" ; then |
| 614 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 615 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 616 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 617 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 618 | ac_md_system=`echo $ac_sys_system | |
| 619 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 620 | ac_md_release=`echo $ac_sys_release | |
| 621 | tr -d '/ ' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 622 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 623 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 624 | case $MACHDEP in |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 625 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 626 | esac |
| 627 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 628 | |
| 629 | # |
| 630 | # SGI compilers allow the specification of the both the ABI and the |
| 631 | # ISA on the command line. Depending on the values of these switches, |
| 632 | # different and often incompatable code will be generated. |
| 633 | # |
| 634 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 635 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 636 | # variable is also adjusted. |
| 637 | # |
| 638 | |
| 639 | if test ! -z "$SGI_ABI" |
| 640 | then |
| 641 | CC="cc $SGI_ABI" |
| 642 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 643 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 644 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 645 | echo "$ac_t""$MACHDEP" 1>&6 |
| 646 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 647 | # |
| 648 | # CCC is the command that compiles C++ programs |
| 649 | # |
| 650 | # Not all make programs have this predefined. |
| 651 | # |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 652 | #AC_SUBST(SET_CCC) |
| 653 | #AC_MSG_CHECKING(CCC) |
| 654 | #if test -z "$CCC" |
| 655 | #then |
| 656 | # case $ac_sys_system in |
| 657 | # IRIX*) SET_CCC="CCC= CC ${SGI_ABI}";; |
| 658 | # Linux*) SET_CCC="CCC= g++";; |
| 659 | # *) SET_CCC="" |
| 660 | # esac |
| 661 | #else |
| 662 | # SET_CCC="CCC= ${CCC}" |
| 663 | #fi |
| 664 | #AC_MSG_RESULT($SET_CCC) |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 665 | |
| 666 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 667 | # checks for alternative programs |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 668 | echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 669 | echo "configure:670: checking for --without-gcc" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 670 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 671 | if test "${with_gcc+set}" = set; then |
| 672 | withval="$with_gcc" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 673 | |
| 674 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 675 | no) CC=cc |
| 676 | without_gcc=yes;; |
| 677 | yes) CC=gcc |
| 678 | without_gcc=no;; |
| 679 | *) CC=$withval |
| 680 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 681 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 682 | else |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 683 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 684 | case $ac_sys_system in |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 685 | OSF1) CC=cc |
| 686 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 687 | BeOS*) |
| 688 | # Dunno if it's a good idea to get this over with all at once, or |
| 689 | # to handle it in with the other goodies. |
| 690 | MACHDEP=beos |
| 691 | |
| 692 | case $BE_HOST_CPU in |
| 693 | ppc) |
Guido van Rossum | 8137680 | 1999-04-06 15:50:51 +0000 | [diff] [blame] | 694 | CC="mwcc -I$PWD/BeOS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 695 | without_gcc=yes |
Guido van Rossum | 6b9da45 | 1999-03-24 17:48:12 +0000 | [diff] [blame] | 696 | case `uname -r` in |
| 697 | 4.0*) OPT="-DUSE_DL_EXPORT -O7 -opt schedule604 -export pragma" ;; |
| 698 | *) OPT="-DUSE_DL_EXPORT -O2 -proc 604e -export pragma" ;; |
| 699 | esac |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 700 | CCSHARED=-UUSE_DL_EXPORT |
| 701 | LDFLAGS="$LDFLAGS -nodup" |
| 702 | |
| 703 | AR="$PWD/BeOS/ar-fake" |
| 704 | RANLIB=: |
| 705 | |
| 706 | cat >> confdefs.h <<\EOF |
| 707 | #define DL_EXPORT_HEADER "dl_export.h" |
| 708 | EOF |
| 709 | |
| 710 | ;; |
| 711 | x86) |
| 712 | CC="gcc -I$PWD/BeOS" |
| 713 | without_gcc=no |
| 714 | OPT="-DUSE_DL_EXPORT -O3 -mpentiumpro" |
| 715 | CCSHARED=-UUSE_DL_EXPORT |
| 716 | |
| 717 | AR="$PWD/BeOS/ar-fake" |
| 718 | RANLIB=: |
| 719 | |
| 720 | cat >> confdefs.h <<\EOF |
| 721 | #define DL_EXPORT_HEADER "dl_export.h" |
| 722 | EOF |
| 723 | |
| 724 | ;; |
| 725 | *) |
| 726 | { echo "configure: error: Your BeOS system isn't PowerPC or x86... neat" 1>&2; exit 1; } |
| 727 | ;; |
| 728 | esac |
| 729 | ;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 730 | *) without_gcc=no;; |
| 731 | esac |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 732 | fi |
| 733 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 734 | echo "$ac_t""$without_gcc" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 735 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 736 | |
| 737 | |
| 738 | MAINOBJ=python.o |
| 739 | echo $ac_n "checking for --with-cxx=<compiler>""... $ac_c" 1>&6 |
| 740 | echo "configure:741: checking for --with-cxx=<compiler>" >&5 |
| 741 | # Check whether --with-cxx or --without-cxx was given. |
| 742 | if test "${with_cxx+set}" = set; then |
| 743 | withval="$with_cxx" |
| 744 | |
| 745 | case $withval in |
| 746 | no) CXX= |
| 747 | with_cxx=no;; |
| 748 | *) CXX=$withval |
| 749 | MAINOBJ=ccpython.o |
| 750 | with_cxx=$withval;; |
| 751 | esac |
| 752 | else |
| 753 | |
| 754 | with_cxx=no |
| 755 | |
| 756 | fi |
| 757 | |
| 758 | echo "$ac_t""$with_cxx" 1>&6 |
| 759 | SET_CXX="CXX = $CXX" |
| 760 | |
| 761 | #AC_MSG_CHECKING(CCC) |
| 762 | #if test -z "$CCC" |
| 763 | #then |
| 764 | # case $ac_sys_system in |
| 765 | # IRIX*) SET_CCC="CCC= CC ${SGI_ABI}";; |
| 766 | # Linux*) SET_CCC="CCC= g++";; |
| 767 | # *) SET_CCC="" |
| 768 | # esac |
| 769 | #else |
| 770 | # SET_CCC="CCC= ${CCC}" |
| 771 | #fi |
| 772 | #AC_MSG_RESULT($SET_CCC) |
| 773 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 774 | # If the user switches compilers, we can't believe the cache |
| 775 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 776 | then |
| 777 | { echo "configure: error: cached CC is different -- throw away $cache_file |
| 778 | (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; } |
| 779 | fi |
| 780 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 781 | # Extract the first word of "gcc", so it can be a program name with args. |
| 782 | set dummy gcc; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 783 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 784 | echo "configure:785: checking for $ac_word" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 785 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 786 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 787 | else |
| 788 | if test -n "$CC"; then |
| 789 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 790 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 791 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 792 | ac_dummy="$PATH" |
| 793 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 794 | test -z "$ac_dir" && ac_dir=. |
| 795 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 796 | ac_cv_prog_CC="gcc" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 797 | break |
| 798 | fi |
| 799 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 800 | IFS="$ac_save_ifs" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 801 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 802 | fi |
| 803 | CC="$ac_cv_prog_CC" |
| 804 | if test -n "$CC"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 805 | echo "$ac_t""$CC" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 806 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 807 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 808 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 809 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 810 | if test -z "$CC"; then |
| 811 | # Extract the first word of "cc", so it can be a program name with args. |
| 812 | set dummy cc; ac_word=$2 |
| 813 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 814 | echo "configure:815: checking for $ac_word" >&5 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 815 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 816 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 817 | else |
| 818 | if test -n "$CC"; then |
| 819 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 820 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 821 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 822 | ac_prog_rejected=no |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 823 | ac_dummy="$PATH" |
| 824 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 825 | test -z "$ac_dir" && ac_dir=. |
| 826 | if test -f $ac_dir/$ac_word; then |
| 827 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 828 | ac_prog_rejected=yes |
| 829 | continue |
| 830 | fi |
| 831 | ac_cv_prog_CC="cc" |
| 832 | break |
| 833 | fi |
| 834 | done |
| 835 | IFS="$ac_save_ifs" |
| 836 | if test $ac_prog_rejected = yes; then |
| 837 | # We found a bogon in the path, so make sure we never use it. |
| 838 | set dummy $ac_cv_prog_CC |
| 839 | shift |
| 840 | if test $# -gt 0; then |
| 841 | # We chose a different compiler from the bogus one. |
| 842 | # However, it has the same basename, so the bogon will be chosen |
| 843 | # first if we set CC to just the basename; use the full file name. |
| 844 | shift |
| 845 | set dummy "$ac_dir/$ac_word" "$@" |
| 846 | shift |
| 847 | ac_cv_prog_CC="$@" |
| 848 | fi |
| 849 | fi |
| 850 | fi |
| 851 | fi |
| 852 | CC="$ac_cv_prog_CC" |
| 853 | if test -n "$CC"; then |
| 854 | echo "$ac_t""$CC" 1>&6 |
| 855 | else |
| 856 | echo "$ac_t""no" 1>&6 |
| 857 | fi |
| 858 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 859 | if test -z "$CC"; then |
| 860 | case "`uname -s`" in |
| 861 | *win32* | *WIN32*) |
| 862 | # Extract the first word of "cl", so it can be a program name with args. |
| 863 | set dummy cl; ac_word=$2 |
| 864 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 865 | echo "configure:866: checking for $ac_word" >&5 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 866 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 867 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 868 | else |
| 869 | if test -n "$CC"; then |
| 870 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 871 | else |
| 872 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 873 | ac_dummy="$PATH" |
| 874 | for ac_dir in $ac_dummy; do |
| 875 | test -z "$ac_dir" && ac_dir=. |
| 876 | if test -f $ac_dir/$ac_word; then |
| 877 | ac_cv_prog_CC="cl" |
| 878 | break |
| 879 | fi |
| 880 | done |
| 881 | IFS="$ac_save_ifs" |
| 882 | fi |
| 883 | fi |
| 884 | CC="$ac_cv_prog_CC" |
| 885 | if test -n "$CC"; then |
| 886 | echo "$ac_t""$CC" 1>&6 |
| 887 | else |
| 888 | echo "$ac_t""no" 1>&6 |
| 889 | fi |
| 890 | ;; |
| 891 | esac |
| 892 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 893 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 894 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 895 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 896 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 897 | echo "configure:898: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 898 | |
| 899 | ac_ext=c |
| 900 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 901 | ac_cpp='$CPP $CPPFLAGS' |
| 902 | 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] | 903 | 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] | 904 | cross_compiling=$ac_cv_prog_cc_cross |
| 905 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 906 | cat > conftest.$ac_ext << EOF |
| 907 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 908 | #line 909 "configure" |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 909 | #include "confdefs.h" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 910 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 911 | main(){return(0);} |
| 912 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 913 | if { (eval echo configure:914: \"$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] | 914 | ac_cv_prog_cc_works=yes |
| 915 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 916 | if (./conftest; exit) 2>/dev/null; then |
| 917 | ac_cv_prog_cc_cross=no |
| 918 | else |
| 919 | ac_cv_prog_cc_cross=yes |
| 920 | fi |
| 921 | else |
| 922 | echo "configure: failed program was:" >&5 |
| 923 | cat conftest.$ac_ext >&5 |
| 924 | ac_cv_prog_cc_works=no |
| 925 | fi |
| 926 | rm -fr conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 927 | ac_ext=c |
| 928 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 929 | ac_cpp='$CPP $CPPFLAGS' |
| 930 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 931 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 932 | cross_compiling=$ac_cv_prog_cc_cross |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 933 | |
| 934 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 935 | if test $ac_cv_prog_cc_works = no; then |
| 936 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 937 | fi |
| 938 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 939 | echo "configure:940: 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] | 940 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 941 | cross_compiling=$ac_cv_prog_cc_cross |
| 942 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 943 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 944 | echo "configure:945: checking whether we are using GNU C" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 945 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 946 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 947 | else |
| 948 | cat > conftest.c <<EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 949 | #ifdef __GNUC__ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 950 | yes; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 951 | #endif |
| 952 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 953 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:954: \"$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] | 954 | ac_cv_prog_gcc=yes |
| 955 | else |
| 956 | ac_cv_prog_gcc=no |
| 957 | fi |
| 958 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 959 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 960 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 961 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 962 | if test $ac_cv_prog_gcc = yes; then |
| 963 | GCC=yes |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 964 | else |
| 965 | GCC= |
| 966 | fi |
| 967 | |
| 968 | ac_test_CFLAGS="${CFLAGS+set}" |
| 969 | ac_save_CFLAGS="$CFLAGS" |
| 970 | CFLAGS= |
| 971 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 972 | echo "configure:973: checking whether ${CC-cc} accepts -g" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 973 | 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] | 974 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 975 | else |
| 976 | echo 'void f(){}' > conftest.c |
| 977 | 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] | 978 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 979 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 980 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 981 | fi |
| 982 | rm -f conftest* |
| 983 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 984 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 985 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 986 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 987 | if test "$ac_test_CFLAGS" = set; then |
| 988 | CFLAGS="$ac_save_CFLAGS" |
| 989 | elif test $ac_cv_prog_cc_g = yes; then |
| 990 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 991 | CFLAGS="-g -O2" |
| 992 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 993 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 994 | fi |
| 995 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 996 | if test "$GCC" = yes; then |
| 997 | CFLAGS="-O2" |
| 998 | else |
| 999 | CFLAGS= |
| 1000 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1001 | fi |
| 1002 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1003 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 1004 | case $MACHDEP in |
| 1005 | bsdos*) |
| 1006 | case $CC in |
| 1007 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 1008 | esac;; |
| 1009 | esac |
| 1010 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1011 | case $ac_sys_system in |
| 1012 | hp*|HP*) |
| 1013 | case $CC in |
| 1014 | cc|*/cc) CC="$CC -Aa -D_HPUX_SOURCE";; |
| 1015 | esac;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1016 | BeOS*) |
| 1017 | case $CC in |
| 1018 | cc) CC=cc;; |
| 1019 | esac;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1020 | esac |
| 1021 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1022 | # LDLIBRARY is the name of the library to link against (as opposed to the |
| 1023 | # name of the library into which to insert object files). On systems |
| 1024 | # without shared libraries, LDLIBRARY is the same as LIBRARY (defined in |
| 1025 | # the Makefiles). |
| 1026 | |
| 1027 | |
| 1028 | LDLIBRARY='' |
| 1029 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1030 | # 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] | 1031 | # This is altered for AIX and BeOS in order to build the export list before |
| 1032 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1033 | |
| 1034 | echo $ac_n "checking LINKCC""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1035 | echo "configure:1036: checking LINKCC" >&5 |
| 1036 | if test -z "$LINKCC" -a ! -z "$CXX" |
| 1037 | then |
| 1038 | LINKCC="$CXX" |
| 1039 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1040 | if test -z "$LINKCC" |
| 1041 | then |
| 1042 | case $ac_sys_system in |
| 1043 | AIX*) |
Guido van Rossum | 45140f9 | 1997-08-29 18:44:06 +0000 | [diff] [blame] | 1044 | LINKCC="\$(srcdir)/makexp_aix python.exp \"\" \$(LIBRARY); \$(PURIFY) \$(CC)";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1045 | BeOS*) |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 1046 | LINKCC="\$(srcdir)/../BeOS/linkcc \$(LIBRARY) \$(PURIFY) \$(CC) \$(OPT)" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1047 | LDLIBRARY='libpython$(VERSION).so';; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 1048 | dgux*) |
| 1049 | LINKCC="LD_RUN_PATH=$libdir \$(PURIFY) \$(CC)";; |
Guido van Rossum | 25f9303 | 1997-08-18 16:00:04 +0000 | [diff] [blame] | 1050 | *) LINKCC="\$(PURIFY) \$(CC)";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1051 | esac |
| 1052 | fi |
| 1053 | echo "$ac_t""$LINKCC" 1>&6 |
| 1054 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1055 | echo $ac_n "checking LDLIBRARY""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1056 | echo "configure:1057: checking LDLIBRARY" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1057 | |
| 1058 | # NeXT framework builds require that the 'ar' library be converted into |
| 1059 | # a bundle using libtool. |
| 1060 | if test "$with_next_framework" |
| 1061 | then |
| 1062 | LDLIBRARY='libpython$(VERSION).dylib' |
| 1063 | fi |
| 1064 | |
| 1065 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 1066 | if test "$MACHDEP" = "dguxR4" |
| 1067 | then |
| 1068 | LDLIBRARY='libpython$(VERSION).so' |
| 1069 | OPT="$OPT -pic" |
| 1070 | fi |
| 1071 | echo "$ac_t""$LDLIBRARY" 1>&6 |
| 1072 | |
| 1073 | # If LDLIBRARY is different from LIBRARY, emit a rule to build it. |
| 1074 | if test -z "$LDLIBRARY" |
| 1075 | then |
| 1076 | LDLIBRARY='libpython$(VERSION).a' |
| 1077 | MAKE_LDLIBRARY="true" |
| 1078 | else |
| 1079 | MAKE_LDLIBRARY='$(MAKE) $(LDLIBRARY)' |
| 1080 | fi |
| 1081 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1082 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1083 | set dummy ranlib; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1084 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1085 | echo "configure:1086: checking for $ac_word" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1086 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 1087 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1088 | else |
| 1089 | if test -n "$RANLIB"; then |
| 1090 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1091 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1092 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1093 | ac_dummy="$PATH" |
| 1094 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1095 | test -z "$ac_dir" && ac_dir=. |
| 1096 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1097 | ac_cv_prog_RANLIB="ranlib" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1098 | break |
| 1099 | fi |
| 1100 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1101 | IFS="$ac_save_ifs" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1102 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1103 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1104 | fi |
| 1105 | RANLIB="$ac_cv_prog_RANLIB" |
| 1106 | if test -n "$RANLIB"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1107 | echo "$ac_t""$RANLIB" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1108 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1109 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1110 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1111 | |
| 1112 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1113 | for ac_prog in ar aal |
| 1114 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1115 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1116 | set dummy $ac_prog; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1117 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1118 | echo "configure:1119: checking for $ac_word" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1119 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
| 1120 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1121 | else |
| 1122 | if test -n "$AR"; then |
| 1123 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 1124 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1125 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1126 | ac_dummy="$PATH" |
| 1127 | for ac_dir in $ac_dummy; do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1128 | test -z "$ac_dir" && ac_dir=. |
| 1129 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1130 | ac_cv_prog_AR="$ac_prog" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1131 | break |
| 1132 | fi |
| 1133 | done |
| 1134 | IFS="$ac_save_ifs" |
| 1135 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1136 | fi |
| 1137 | AR="$ac_cv_prog_AR" |
| 1138 | if test -n "$AR"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1139 | echo "$ac_t""$AR" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1140 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1141 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1142 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1143 | |
| 1144 | test -n "$AR" && break |
| 1145 | done |
| 1146 | test -n "$AR" || AR="ar" |
| 1147 | |
| 1148 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1149 | |
| 1150 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1151 | # Install just never works :-( |
| 1152 | if test -z "$INSTALL" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1153 | then |
| 1154 | INSTALL=cp |
| 1155 | INSTALL_PROGRAM=cp |
| 1156 | INSTALL_DATA=cp |
| 1157 | else |
| 1158 | INSTALL_PROGRAM="$INSTALL" |
| 1159 | INSTALL_DATA="$INSTALL -m 644" |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1160 | fi |
| 1161 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1162 | # Not every filesystem supports hard links |
| 1163 | |
| 1164 | if test -z "$LN" ; then |
| 1165 | case $ac_sys_system in |
| 1166 | BeOS*) LN="ln -s";; |
| 1167 | *) LN=ln;; |
| 1168 | esac |
| 1169 | fi |
| 1170 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1171 | # Optimizer/debugger flags passed between Makefiles |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1172 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1173 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1174 | then |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 1175 | case $GCC in |
| 1176 | yes) |
| 1177 | case $ac_cv_prog_cc_g in |
| 1178 | yes) OPT="-g -O2";; |
| 1179 | *) OPT="-O2";; |
| 1180 | esac |
| 1181 | ;; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1182 | *) OPT="-O";; |
| 1183 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1184 | fi |
| 1185 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1186 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 1187 | then |
| 1188 | OPT="$OPT $ac_arch_flags" |
| 1189 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1190 | # checks for UNIX variants that set C preprocessor variables |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1191 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1192 | echo "configure:1193: checking how to run the C preprocessor" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1193 | # On Suns, sometimes $CPP names a directory. |
| 1194 | if test -n "$CPP" && test -d "$CPP"; then |
| 1195 | CPP= |
| 1196 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1197 | if test -z "$CPP"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1198 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 1199 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1200 | else |
| 1201 | # This must be in double quotes, not single quotes, because CPP may get |
| 1202 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1203 | CPP="${CC-cc} -E" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1204 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 1205 | # not just through cpp. |
| 1206 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1207 | #line 1208 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1208 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1209 | #include <assert.h> |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1210 | Syntax Error |
| 1211 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1212 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1213 | { (eval echo configure:1214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1214 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1215 | if test -z "$ac_err"; then |
| 1216 | : |
| 1217 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1218 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1219 | echo "configure: failed program was:" >&5 |
| 1220 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1221 | rm -rf conftest* |
| 1222 | CPP="${CC-cc} -E -traditional-cpp" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1223 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1224 | #line 1225 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1225 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1226 | #include <assert.h> |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1227 | Syntax Error |
| 1228 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1229 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1230 | { (eval echo configure:1231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1231 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1232 | if test -z "$ac_err"; then |
| 1233 | : |
| 1234 | else |
| 1235 | echo "$ac_err" >&5 |
| 1236 | echo "configure: failed program was:" >&5 |
| 1237 | cat conftest.$ac_ext >&5 |
| 1238 | rm -rf conftest* |
| 1239 | CPP="${CC-cc} -nologo -E" |
| 1240 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1241 | #line 1242 "configure" |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1242 | #include "confdefs.h" |
| 1243 | #include <assert.h> |
| 1244 | Syntax Error |
| 1245 | EOF |
| 1246 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1247 | { (eval echo configure:1248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1248 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1249 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1250 | : |
| 1251 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1252 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1253 | echo "configure: failed program was:" >&5 |
| 1254 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1255 | rm -rf conftest* |
| 1256 | CPP=/lib/cpp |
| 1257 | fi |
| 1258 | rm -f conftest* |
| 1259 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1260 | rm -f conftest* |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1261 | fi |
| 1262 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1263 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1264 | fi |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1265 | CPP="$ac_cv_prog_CPP" |
| 1266 | else |
| 1267 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1268 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1269 | echo "$ac_t""$CPP" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1270 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1271 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1272 | echo "configure:1273: checking for AIX" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1273 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1274 | #line 1275 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1275 | #include "confdefs.h" |
| 1276 | #ifdef _AIX |
| 1277 | yes |
| 1278 | #endif |
| 1279 | |
| 1280 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1281 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1282 | egrep "yes" >/dev/null 2>&1; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1283 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1284 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1285 | #define _ALL_SOURCE 1 |
| 1286 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1287 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1288 | else |
| 1289 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1290 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1291 | fi |
| 1292 | rm -f conftest* |
| 1293 | |
| 1294 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1295 | ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1296 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1297 | echo "configure:1298: checking for minix/config.h" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1298 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1299 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1300 | else |
| 1301 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1302 | #line 1303 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1303 | #include "confdefs.h" |
| 1304 | #include <minix/config.h> |
| 1305 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1306 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1307 | { (eval echo configure:1308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1308 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1309 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1310 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1311 | eval "ac_cv_header_$ac_safe=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1312 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1313 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1314 | echo "configure: failed program was:" >&5 |
| 1315 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1316 | rm -rf conftest* |
| 1317 | eval "ac_cv_header_$ac_safe=no" |
| 1318 | fi |
| 1319 | rm -f conftest* |
| 1320 | fi |
| 1321 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1322 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1323 | MINIX=yes |
| 1324 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1325 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1326 | MINIX= |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1327 | fi |
| 1328 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1329 | if test "$MINIX" = yes; then |
| 1330 | cat >> confdefs.h <<\EOF |
| 1331 | #define _POSIX_SOURCE 1 |
| 1332 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1333 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1334 | cat >> confdefs.h <<\EOF |
| 1335 | #define _POSIX_1_SOURCE 2 |
| 1336 | EOF |
| 1337 | |
| 1338 | cat >> confdefs.h <<\EOF |
| 1339 | #define _MINIX 1 |
| 1340 | EOF |
| 1341 | |
| 1342 | fi |
| 1343 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1344 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1345 | echo $ac_n "checking whether $CC accepts -OPT:Olimit=0""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1346 | echo "configure:1347: checking whether $CC accepts -OPT:Olimit=0" >&5 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1347 | if eval "test \"`echo '$''{'ac_cv_opt_olimit_ok'+set}'`\" = set"; then |
| 1348 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1349 | else |
| 1350 | ac_save_cc="$CC" |
| 1351 | CC="$CC -OPT:Olimit=0" |
| 1352 | if test "$cross_compiling" = yes; then |
| 1353 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1354 | else |
| 1355 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1356 | #line 1357 "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1357 | #include "confdefs.h" |
| 1358 | int main() { return 0; } |
| 1359 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1360 | if { (eval echo configure:1361: \"$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] | 1361 | then |
| 1362 | ac_cv_opt_olimit_ok=yes |
| 1363 | else |
| 1364 | echo "configure: failed program was:" >&5 |
| 1365 | cat conftest.$ac_ext >&5 |
| 1366 | rm -fr conftest* |
| 1367 | ac_cv_opt_olimit_ok=no |
| 1368 | fi |
| 1369 | rm -fr conftest* |
| 1370 | fi |
| 1371 | |
| 1372 | CC="$ac_save_cc" |
| 1373 | fi |
| 1374 | |
| 1375 | echo "$ac_t""$ac_cv_opt_olimit_ok" 1>&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 1376 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 304dd2d | 1997-10-20 23:10:56 +0000 | [diff] [blame] | 1377 | OPT="$OPT -OPT:Olimit=0" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1378 | else |
| 1379 | echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1380 | echo "configure:1381: checking whether $CC accepts -Olimit 1500" >&5 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1381 | if eval "test \"`echo '$''{'ac_cv_olimit_ok'+set}'`\" = set"; then |
| 1382 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1383 | else |
| 1384 | ac_save_cc="$CC" |
| 1385 | CC="$CC -Olimit 1500" |
| 1386 | if test "$cross_compiling" = yes; then |
| 1387 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1388 | else |
| 1389 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1390 | #line 1391 "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1391 | #include "confdefs.h" |
| 1392 | int main() { return 0; } |
| 1393 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1394 | if { (eval echo configure:1395: \"$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] | 1395 | then |
| 1396 | ac_cv_olimit_ok=yes |
| 1397 | else |
| 1398 | echo "configure: failed program was:" >&5 |
| 1399 | cat conftest.$ac_ext >&5 |
| 1400 | rm -fr conftest* |
| 1401 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 1402 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1403 | rm -fr conftest* |
| 1404 | fi |
| 1405 | |
| 1406 | CC="$ac_save_cc" |
| 1407 | fi |
| 1408 | |
| 1409 | echo "$ac_t""$ac_cv_olimit_ok" 1>&6 |
| 1410 | if test $ac_cv_olimit_ok = yes; then |
| 1411 | OPT="$OPT -Olimit 1500" |
| 1412 | fi |
| 1413 | fi |
| 1414 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1415 | # check for ANSI or K&R ("traditional") preprocessor |
| 1416 | echo $ac_n "checking for C preprocessor type""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1417 | echo "configure:1418: checking for C preprocessor type" >&5 |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1418 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1419 | #line 1420 "configure" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1420 | #include "confdefs.h" |
| 1421 | |
| 1422 | #define spam(name, doc) {#name, &name, #name "() -- " doc} |
| 1423 | int foo; |
| 1424 | struct {char *name; int *addr; char *doc;} desc = spam(foo, "something"); |
| 1425 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1426 | int main() { |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1427 | ; |
| 1428 | ; return 0; } |
| 1429 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1430 | if { (eval echo configure:1431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1431 | rm -rf conftest* |
| 1432 | cpp_type=ansi |
| 1433 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1434 | echo "configure: failed program was:" >&5 |
| 1435 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1436 | rm -rf conftest* |
| 1437 | cat >> confdefs.h <<\EOF |
| 1438 | #define HAVE_OLD_CPP 1 |
| 1439 | EOF |
| 1440 | cpp_type=traditional |
| 1441 | fi |
| 1442 | rm -f conftest* |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1443 | echo "$ac_t""$cpp_type" 1>&6 |
| 1444 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1445 | # checks for header files |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1446 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1447 | echo "configure:1448: checking for ANSI C header files" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1448 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
| 1449 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1450 | else |
| 1451 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1452 | #line 1453 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1453 | #include "confdefs.h" |
| 1454 | #include <stdlib.h> |
| 1455 | #include <stdarg.h> |
| 1456 | #include <string.h> |
| 1457 | #include <float.h> |
| 1458 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1459 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1460 | { (eval echo configure:1461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1461 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1462 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1463 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1464 | ac_cv_header_stdc=yes |
| 1465 | else |
| 1466 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1467 | echo "configure: failed program was:" >&5 |
| 1468 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1469 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1470 | ac_cv_header_stdc=no |
| 1471 | fi |
| 1472 | rm -f conftest* |
| 1473 | |
| 1474 | if test $ac_cv_header_stdc = yes; then |
| 1475 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 1476 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1477 | #line 1478 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1478 | #include "confdefs.h" |
| 1479 | #include <string.h> |
| 1480 | EOF |
| 1481 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1482 | egrep "memchr" >/dev/null 2>&1; then |
| 1483 | : |
| 1484 | else |
| 1485 | rm -rf conftest* |
| 1486 | ac_cv_header_stdc=no |
| 1487 | fi |
| 1488 | rm -f conftest* |
| 1489 | |
| 1490 | fi |
| 1491 | |
| 1492 | if test $ac_cv_header_stdc = yes; then |
| 1493 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 1494 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1495 | #line 1496 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1496 | #include "confdefs.h" |
| 1497 | #include <stdlib.h> |
| 1498 | EOF |
| 1499 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1500 | egrep "free" >/dev/null 2>&1; then |
| 1501 | : |
| 1502 | else |
| 1503 | rm -rf conftest* |
| 1504 | ac_cv_header_stdc=no |
| 1505 | fi |
| 1506 | rm -f conftest* |
| 1507 | |
| 1508 | fi |
| 1509 | |
| 1510 | if test $ac_cv_header_stdc = yes; then |
| 1511 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 1512 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1513 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1514 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1515 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1516 | #line 1517 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1517 | #include "confdefs.h" |
| 1518 | #include <ctype.h> |
| 1519 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 1520 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1521 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1522 | int main () { int i; for (i = 0; i < 256; i++) |
| 1523 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 1524 | exit (0); } |
| 1525 | |
| 1526 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1527 | if { (eval echo configure:1528: \"$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] | 1528 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1529 | : |
| 1530 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1531 | echo "configure: failed program was:" >&5 |
| 1532 | cat conftest.$ac_ext >&5 |
| 1533 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1534 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1535 | fi |
| 1536 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1537 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1538 | |
| 1539 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1540 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1541 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1542 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1543 | if test $ac_cv_header_stdc = yes; then |
| 1544 | cat >> confdefs.h <<\EOF |
| 1545 | #define STDC_HEADERS 1 |
| 1546 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1547 | |
| 1548 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1549 | |
Guido van Rossum | 9601315 | 1997-10-08 22:47:52 +0000 | [diff] [blame] | 1550 | for ac_hdr in dlfcn.h fcntl.h limits.h locale.h ncurses.h pthread.h \ |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 1551 | signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h \ |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1552 | sys/audioio.h sys/file.h sys/lock.h \ |
| 1553 | sys/param.h sys/select.h sys/time.h sys/times.h \ |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 1554 | sys/un.h sys/utsname.h sys/wait.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1555 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1556 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1557 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1558 | echo "configure:1559: checking for $ac_hdr" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1559 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1560 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1561 | else |
| 1562 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1563 | #line 1564 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1564 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1565 | #include <$ac_hdr> |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1566 | EOF |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1567 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1568 | { (eval echo configure:1569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1569 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1570 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1571 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1572 | eval "ac_cv_header_$ac_safe=yes" |
| 1573 | else |
| 1574 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1575 | echo "configure: failed program was:" >&5 |
| 1576 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1577 | rm -rf conftest* |
| 1578 | eval "ac_cv_header_$ac_safe=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1579 | fi |
| 1580 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1581 | fi |
| 1582 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1583 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1584 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1585 | cat >> confdefs.h <<EOF |
| 1586 | #define $ac_tr_hdr 1 |
| 1587 | EOF |
| 1588 | |
| 1589 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1590 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1591 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1592 | done |
| 1593 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1594 | ac_header_dirent=no |
| 1595 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
| 1596 | do |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1597 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1598 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1599 | echo "configure:1600: checking for $ac_hdr that defines DIR" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1600 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
| 1601 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1602 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1603 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1604 | #line 1605 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1605 | #include "confdefs.h" |
| 1606 | #include <sys/types.h> |
| 1607 | #include <$ac_hdr> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1608 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1609 | DIR *dirp = 0; |
| 1610 | ; return 0; } |
| 1611 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1612 | if { (eval echo configure:1613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1613 | rm -rf conftest* |
| 1614 | eval "ac_cv_header_dirent_$ac_safe=yes" |
| 1615 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1616 | echo "configure: failed program was:" >&5 |
| 1617 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1618 | rm -rf conftest* |
| 1619 | eval "ac_cv_header_dirent_$ac_safe=no" |
| 1620 | fi |
| 1621 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1622 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1623 | 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] | 1624 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1625 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1626 | cat >> confdefs.h <<EOF |
| 1627 | #define $ac_tr_hdr 1 |
| 1628 | EOF |
| 1629 | ac_header_dirent=$ac_hdr; break |
| 1630 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1631 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1632 | fi |
| 1633 | done |
| 1634 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 1635 | if test $ac_header_dirent = dirent.h; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1636 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1637 | echo "configure:1638: checking for opendir in -ldir" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1638 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1639 | 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] | 1640 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1641 | else |
| 1642 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1643 | LIBS="-ldir $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1644 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1645 | #line 1646 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1646 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1647 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1648 | /* We use char because int might match the return type of a gcc2 |
| 1649 | builtin and then its argument prototype would still apply. */ |
| 1650 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1651 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1652 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1653 | opendir() |
| 1654 | ; return 0; } |
| 1655 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1656 | if { (eval echo configure:1657: \"$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] | 1657 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1658 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1659 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1660 | echo "configure: failed program was:" >&5 |
| 1661 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1662 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1663 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1664 | fi |
| 1665 | rm -f conftest* |
| 1666 | LIBS="$ac_save_LIBS" |
| 1667 | |
| 1668 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1669 | 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] | 1670 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1671 | LIBS="$LIBS -ldir" |
| 1672 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1673 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1674 | fi |
| 1675 | |
| 1676 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1677 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1678 | echo "configure:1679: checking for opendir in -lx" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1679 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1680 | 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] | 1681 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1682 | else |
| 1683 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1684 | LIBS="-lx $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1685 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1686 | #line 1687 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1687 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1688 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1689 | /* We use char because int might match the return type of a gcc2 |
| 1690 | builtin and then its argument prototype would still apply. */ |
| 1691 | char opendir(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1692 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1693 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1694 | opendir() |
| 1695 | ; return 0; } |
| 1696 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1697 | if { (eval echo configure:1698: \"$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] | 1698 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1699 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1700 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1701 | echo "configure: failed program was:" >&5 |
| 1702 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1703 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1704 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1705 | fi |
| 1706 | rm -f conftest* |
| 1707 | LIBS="$ac_save_LIBS" |
| 1708 | |
| 1709 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1710 | 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] | 1711 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1712 | LIBS="$LIBS -lx" |
| 1713 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1714 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1715 | fi |
| 1716 | |
| 1717 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1718 | |
| 1719 | |
| 1720 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1721 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1722 | echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1723 | echo "configure:1724: checking for clock_t in time.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1724 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1725 | #line 1726 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1726 | #include "confdefs.h" |
| 1727 | #include <time.h> |
| 1728 | EOF |
| 1729 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1730 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1731 | rm -rf conftest* |
| 1732 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1733 | else |
| 1734 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1735 | cat >> confdefs.h <<\EOF |
| 1736 | #define clock_t long |
| 1737 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1738 | |
| 1739 | fi |
| 1740 | rm -f conftest* |
| 1741 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1742 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1743 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 1744 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 1745 | cat >> confdefs.h <<\EOF |
| 1746 | #if defined(SCO_DS) |
| 1747 | #undef _OFF_T |
| 1748 | #endif |
| 1749 | EOF |
| 1750 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1751 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1752 | echo "configure:1753: checking for mode_t" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1753 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
| 1754 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1755 | else |
| 1756 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1757 | #line 1758 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1758 | #include "confdefs.h" |
| 1759 | #include <sys/types.h> |
| 1760 | #if STDC_HEADERS |
| 1761 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1762 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1763 | #endif |
| 1764 | EOF |
| 1765 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1766 | 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] | 1767 | rm -rf conftest* |
| 1768 | ac_cv_type_mode_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1769 | else |
| 1770 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1771 | ac_cv_type_mode_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1772 | fi |
| 1773 | rm -f conftest* |
| 1774 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1775 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1776 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1777 | if test $ac_cv_type_mode_t = no; then |
| 1778 | cat >> confdefs.h <<\EOF |
| 1779 | #define mode_t int |
| 1780 | EOF |
| 1781 | |
| 1782 | fi |
| 1783 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1784 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1785 | echo "configure:1786: checking for off_t" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1786 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
| 1787 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1788 | else |
| 1789 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1790 | #line 1791 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1791 | #include "confdefs.h" |
| 1792 | #include <sys/types.h> |
| 1793 | #if STDC_HEADERS |
| 1794 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1795 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1796 | #endif |
| 1797 | EOF |
| 1798 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1799 | 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] | 1800 | rm -rf conftest* |
| 1801 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1802 | else |
| 1803 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1804 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1805 | fi |
| 1806 | rm -f conftest* |
| 1807 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1808 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1809 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1810 | if test $ac_cv_type_off_t = no; then |
| 1811 | cat >> confdefs.h <<\EOF |
| 1812 | #define off_t long |
| 1813 | EOF |
| 1814 | |
| 1815 | fi |
| 1816 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1817 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1818 | echo "configure:1819: checking for pid_t" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1819 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
| 1820 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1821 | else |
| 1822 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1823 | #line 1824 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1824 | #include "confdefs.h" |
| 1825 | #include <sys/types.h> |
| 1826 | #if STDC_HEADERS |
| 1827 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1828 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1829 | #endif |
| 1830 | EOF |
| 1831 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1832 | 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] | 1833 | rm -rf conftest* |
| 1834 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1835 | else |
| 1836 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1837 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1838 | fi |
| 1839 | rm -f conftest* |
| 1840 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1841 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1842 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1843 | if test $ac_cv_type_pid_t = no; then |
| 1844 | cat >> confdefs.h <<\EOF |
| 1845 | #define pid_t int |
| 1846 | EOF |
| 1847 | |
| 1848 | fi |
| 1849 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1850 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1851 | echo "configure:1852: checking return type of signal handlers" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1852 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
| 1853 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1854 | else |
| 1855 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1856 | #line 1857 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1857 | #include "confdefs.h" |
| 1858 | #include <sys/types.h> |
| 1859 | #include <signal.h> |
| 1860 | #ifdef signal |
| 1861 | #undef signal |
| 1862 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1863 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1864 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 1865 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1866 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1867 | #endif |
| 1868 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1869 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1870 | int i; |
| 1871 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1872 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1873 | if { (eval echo configure:1874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1874 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1875 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1876 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1877 | echo "configure: failed program was:" >&5 |
| 1878 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1879 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1880 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1881 | fi |
| 1882 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1883 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1884 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1885 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1886 | cat >> confdefs.h <<EOF |
| 1887 | #define RETSIGTYPE $ac_cv_type_signal |
| 1888 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1889 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1890 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1891 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1892 | echo "configure:1893: checking for size_t" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1893 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
| 1894 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1895 | else |
| 1896 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1897 | #line 1898 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1898 | #include "confdefs.h" |
| 1899 | #include <sys/types.h> |
| 1900 | #if STDC_HEADERS |
| 1901 | #include <stdlib.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1902 | #include <stddef.h> |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1903 | #endif |
| 1904 | EOF |
| 1905 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1906 | 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] | 1907 | rm -rf conftest* |
| 1908 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1909 | else |
| 1910 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1911 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1912 | fi |
| 1913 | rm -f conftest* |
| 1914 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1915 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1916 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1917 | if test $ac_cv_type_size_t = no; then |
| 1918 | cat >> confdefs.h <<\EOF |
| 1919 | #define size_t unsigned |
| 1920 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1921 | |
| 1922 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1923 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1924 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1925 | echo "configure:1926: checking for uid_t in sys/types.h" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1926 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
| 1927 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1928 | else |
| 1929 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1930 | #line 1931 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1931 | #include "confdefs.h" |
| 1932 | #include <sys/types.h> |
| 1933 | EOF |
| 1934 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1935 | egrep "uid_t" >/dev/null 2>&1; then |
| 1936 | rm -rf conftest* |
| 1937 | ac_cv_type_uid_t=yes |
| 1938 | else |
| 1939 | rm -rf conftest* |
| 1940 | ac_cv_type_uid_t=no |
| 1941 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1942 | rm -f conftest* |
| 1943 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1944 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1945 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1946 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1947 | if test $ac_cv_type_uid_t = no; then |
| 1948 | cat >> confdefs.h <<\EOF |
| 1949 | #define uid_t int |
| 1950 | EOF |
| 1951 | |
| 1952 | cat >> confdefs.h <<\EOF |
| 1953 | #define gid_t int |
| 1954 | EOF |
| 1955 | |
| 1956 | fi |
| 1957 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1958 | |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1959 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1960 | echo "configure:1961: checking size of int" >&5 |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1961 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
| 1962 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1963 | else |
| 1964 | if test "$cross_compiling" = yes; then |
| 1965 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 1966 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1967 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1968 | #line 1969 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1969 | #include "confdefs.h" |
| 1970 | #include <stdio.h> |
| 1971 | main() |
| 1972 | { |
| 1973 | FILE *f=fopen("conftestval", "w"); |
| 1974 | if (!f) exit(1); |
| 1975 | fprintf(f, "%d\n", sizeof(int)); |
| 1976 | exit(0); |
| 1977 | } |
| 1978 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1979 | if { (eval echo configure:1980: \"$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] | 1980 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1981 | ac_cv_sizeof_int=`cat conftestval` |
| 1982 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1983 | echo "configure: failed program was:" >&5 |
| 1984 | cat conftest.$ac_ext >&5 |
| 1985 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1986 | ac_cv_sizeof_int=0 |
| 1987 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1988 | rm -fr conftest* |
| 1989 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1990 | |
| 1991 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 1992 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 1993 | cat >> confdefs.h <<EOF |
| 1994 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 1995 | EOF |
| 1996 | |
| 1997 | |
| 1998 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1999 | echo "configure:2000: checking size of long" >&5 |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2000 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
| 2001 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2002 | else |
| 2003 | if test "$cross_compiling" = yes; then |
| 2004 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2005 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2006 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2007 | #line 2008 "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2008 | #include "confdefs.h" |
| 2009 | #include <stdio.h> |
| 2010 | main() |
| 2011 | { |
| 2012 | FILE *f=fopen("conftestval", "w"); |
| 2013 | if (!f) exit(1); |
| 2014 | fprintf(f, "%d\n", sizeof(long)); |
| 2015 | exit(0); |
| 2016 | } |
| 2017 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2018 | if { (eval echo configure:2019: \"$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] | 2019 | then |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2020 | ac_cv_sizeof_long=`cat conftestval` |
| 2021 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2022 | echo "configure: failed program was:" >&5 |
| 2023 | cat conftest.$ac_ext >&5 |
| 2024 | rm -fr conftest* |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2025 | ac_cv_sizeof_long=0 |
| 2026 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2027 | rm -fr conftest* |
| 2028 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2029 | |
| 2030 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2031 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
| 2032 | cat >> confdefs.h <<EOF |
| 2033 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 2034 | EOF |
| 2035 | |
| 2036 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2037 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2038 | echo "configure:2039: checking size of void *" >&5 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2039 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then |
| 2040 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2041 | else |
| 2042 | if test "$cross_compiling" = yes; then |
| 2043 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2044 | else |
| 2045 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2046 | #line 2047 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2047 | #include "confdefs.h" |
| 2048 | #include <stdio.h> |
| 2049 | main() |
| 2050 | { |
| 2051 | FILE *f=fopen("conftestval", "w"); |
| 2052 | if (!f) exit(1); |
| 2053 | fprintf(f, "%d\n", sizeof(void *)); |
| 2054 | exit(0); |
| 2055 | } |
| 2056 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2057 | if { (eval echo configure:2058: \"$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] | 2058 | then |
| 2059 | ac_cv_sizeof_void_p=`cat conftestval` |
| 2060 | else |
| 2061 | echo "configure: failed program was:" >&5 |
| 2062 | cat conftest.$ac_ext >&5 |
| 2063 | rm -fr conftest* |
| 2064 | ac_cv_sizeof_void_p=0 |
| 2065 | fi |
| 2066 | rm -fr conftest* |
| 2067 | fi |
| 2068 | |
| 2069 | fi |
| 2070 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
| 2071 | cat >> confdefs.h <<EOF |
| 2072 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
| 2073 | EOF |
| 2074 | |
| 2075 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2076 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2077 | echo $ac_n "checking for long long support""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2078 | echo "configure:2079: checking for long long support" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2079 | have_long_long=no |
| 2080 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2081 | #line 2082 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2082 | #include "confdefs.h" |
| 2083 | |
| 2084 | int main() { |
| 2085 | long long x; x = (long long)0; |
| 2086 | ; return 0; } |
| 2087 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2088 | if { (eval echo configure:2089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2089 | rm -rf conftest* |
| 2090 | cat >> confdefs.h <<\EOF |
| 2091 | #define HAVE_LONG_LONG 1 |
| 2092 | EOF |
| 2093 | have_long_long=yes |
| 2094 | else |
| 2095 | echo "configure: failed program was:" >&5 |
| 2096 | cat conftest.$ac_ext >&5 |
| 2097 | fi |
| 2098 | rm -f conftest* |
| 2099 | echo "$ac_t""$have_long_long" 1>&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2100 | if test "$have_long_long" = yes ; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2101 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2102 | echo "configure:2103: checking size of long long" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2103 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
| 2104 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2105 | else |
| 2106 | if test "$cross_compiling" = yes; then |
| 2107 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2108 | else |
| 2109 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2110 | #line 2111 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2111 | #include "confdefs.h" |
| 2112 | #include <stdio.h> |
| 2113 | main() |
| 2114 | { |
| 2115 | FILE *f=fopen("conftestval", "w"); |
| 2116 | if (!f) exit(1); |
| 2117 | fprintf(f, "%d\n", sizeof(long long)); |
| 2118 | exit(0); |
| 2119 | } |
| 2120 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2121 | if { (eval echo configure:2122: \"$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] | 2122 | then |
| 2123 | ac_cv_sizeof_long_long=`cat conftestval` |
| 2124 | else |
| 2125 | echo "configure: failed program was:" >&5 |
| 2126 | cat conftest.$ac_ext >&5 |
| 2127 | rm -fr conftest* |
| 2128 | ac_cv_sizeof_long_long=0 |
| 2129 | fi |
| 2130 | rm -fr conftest* |
| 2131 | fi |
| 2132 | |
| 2133 | fi |
| 2134 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
| 2135 | cat >> confdefs.h <<EOF |
| 2136 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 2137 | EOF |
| 2138 | |
| 2139 | |
| 2140 | fi |
| 2141 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2142 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
| 2143 | echo $ac_n "checking size of off_t""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2144 | echo "configure:2145: checking size of off_t" >&5 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2145 | if eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then |
| 2146 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2147 | else |
| 2148 | if test "$cross_compiling" = yes; then |
| 2149 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2150 | else |
| 2151 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2152 | #line 2153 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2153 | #include "confdefs.h" |
| 2154 | #include <stdio.h> |
| 2155 | #include <sys/types.h> |
| 2156 | main() |
| 2157 | { |
| 2158 | FILE *f=fopen("conftestval", "w"); |
| 2159 | if (!f) exit(1); |
| 2160 | fprintf(f, "%d\n", sizeof(off_t)); |
| 2161 | exit(0); |
| 2162 | } |
| 2163 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2164 | if { (eval echo configure:2165: \"$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] | 2165 | then |
| 2166 | ac_cv_sizeof_off_t=`cat conftestval` |
| 2167 | else |
| 2168 | echo "configure: failed program was:" >&5 |
| 2169 | cat conftest.$ac_ext >&5 |
| 2170 | rm -fr conftest* |
| 2171 | ac_cv_sizeof_off_t=0 |
| 2172 | fi |
| 2173 | rm -fr conftest* |
| 2174 | fi |
| 2175 | |
| 2176 | |
| 2177 | fi |
| 2178 | |
| 2179 | echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6 |
| 2180 | cat >> confdefs.h <<EOF |
| 2181 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 2182 | EOF |
| 2183 | |
| 2184 | |
| 2185 | echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2186 | echo "configure:2187: checking whether to enable large file support" >&5 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2187 | if test "$have_long_long" = yes -a \ |
| 2188 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 2189 | "$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] | 2190 | cat >> confdefs.h <<\EOF |
| 2191 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 2192 | EOF |
| 2193 | |
| 2194 | echo "$ac_t""yes" 1>&6 |
| 2195 | else |
| 2196 | echo "$ac_t""no" 1>&6 |
| 2197 | fi |
| 2198 | |
| 2199 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2200 | # Minor variations in building a framework between NextStep versions 4 and 5 |
| 2201 | |
| 2202 | case $ac_sys_system/$ac_sys_release in |
| 2203 | next/4*) |
| 2204 | ns_undef_sym='__environ' |
| 2205 | LIBTOOL_CRUFT="-U $ns_undef_sym" ;; |
| 2206 | next/5*) |
| 2207 | ns_undef_sym='_environ' |
| 2208 | LIBTOOL_CRUFT="-lcc_dynamic -U $ns_undef_sym" ;; |
| 2209 | esac |
| 2210 | |
| 2211 | echo $ac_n "checking for --with-next-framework""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2212 | echo "configure:2213: checking for --with-next-framework" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2213 | if test "$with_next_framework" |
| 2214 | then |
| 2215 | OPT="$OPT -fno-common" |
| 2216 | # -U __environ is needed since bundles don't have access |
| 2217 | # to crt0 when built but will always be linked against it |
| 2218 | LDFLAGS="$LDFLAGS -Wl,-U,$ns_undef_sym" |
| 2219 | cat >> confdefs.h <<\EOF |
| 2220 | #define WITH_NEXT_FRAMEWORK 1 |
| 2221 | EOF |
| 2222 | |
| 2223 | echo "$ac_t""yes" 1>&6 |
| 2224 | else |
| 2225 | echo "$ac_t""no" 1>&6 |
| 2226 | fi |
| 2227 | |
| 2228 | echo $ac_n "checking for --with-dyld""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2229 | echo "configure:2230: checking for --with-dyld" >&5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2230 | if test "$with_next_framework" -o "$with_dyld" |
| 2231 | then |
| 2232 | if test "$with_dyld" |
| 2233 | then |
| 2234 | echo "$ac_t""yes" 1>&6 |
| 2235 | else |
| 2236 | echo "$ac_t""required for framework build" 1>&6 |
| 2237 | fi |
| 2238 | cat >> confdefs.h <<\EOF |
| 2239 | #define WITH_DYLD 1 |
| 2240 | EOF |
| 2241 | |
| 2242 | ns_dyld='set' |
| 2243 | else |
| 2244 | echo "$ac_t""no" 1>&6 |
| 2245 | fi |
| 2246 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2247 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2248 | |
| 2249 | |
| 2250 | |
| 2251 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2252 | # SO is the extension of shared libraries `(including the dot!) |
| 2253 | # -- usually .so, .sl on HP-UX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2254 | echo $ac_n "checking SO""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2255 | echo "configure:2256: checking SO" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2256 | if test -z "$SO" |
| 2257 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2258 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 2259 | hp*|HP*) SO=.sl;; |
| 2260 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2261 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2262 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2263 | echo "$ac_t""$SO" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2264 | # LDSHARED is the ld *command* used to create shared library |
| 2265 | # -- "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] | 2266 | # (Shared libraries in this instance are shared modules to be loaded into |
| 2267 | # Python, as opposed to building Python itself as a shared library.) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2268 | echo $ac_n "checking LDSHARED""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2269 | echo "configure:2270: checking LDSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2270 | if test -z "$LDSHARED" |
| 2271 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2272 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 45140f9 | 1997-08-29 18:44:06 +0000 | [diff] [blame] | 2273 | AIX*) LDSHARED="\$(srcdir)/ld_so_aix \$(CC)";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2274 | BeOS*) LDSHARED="\$(srcdir)/../BeOS/linkmodule -L.. -lpython\$(VERSION)";; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2275 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 2276 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2277 | SunOS/4*) LDSHARED="ld";; |
| 2278 | SunOS/5*) LDSHARED="ld -G";; |
| 2279 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2280 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 2281 | DYNIX/ptx*) LDSHARED="ld -G";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2282 | next/*) |
| 2283 | if test "$ns_dyld" |
| 2284 | then LDSHARED='$(CC) $(LDFLAGS) -bundle -prebind' |
| 2285 | else LDSHARED='$(CC) $(CFLAGS) -nostdlib -r'; |
| 2286 | fi |
| 2287 | if test "$with_next_framework" ; then |
| 2288 | LDSHARED="$LDSHARED \$(LDLIBRARY)" |
| 2289 | fi ;; |
Guido van Rossum | 81652ab | 1996-07-21 02:53:27 +0000 | [diff] [blame] | 2290 | Linux*) LDSHARED="gcc -shared";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 2291 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 2292 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Guido van Rossum | a8acf72 | 1999-04-27 22:06:08 +0000 | [diff] [blame] | 2293 | FreeBSD*/[34]*) LDSHARED="gcc -shared";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2294 | FreeBSD*|OpenBSD*) LDSHARED="ld -Bshareable";; |
| 2295 | NetBSD*) |
| 2296 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 2297 | then |
| 2298 | LDSHARED="cc -shared" |
| 2299 | else |
| 2300 | LDSHARED="ld -Bshareable" |
| 2301 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2302 | SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2303 | *) LDSHARED="ld";; |
| 2304 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2305 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2306 | echo "$ac_t""$LDSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2307 | # 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] | 2308 | # library (module) -- this is only needed for a few systems |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2309 | echo $ac_n "checking CCSHARED""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2310 | echo "configure:2311: checking CCSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2311 | if test -z "$CCSHARED" |
| 2312 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2313 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 2314 | hp*|HP*) if test "$GCC" = yes; |
| 2315 | then CCSHARED="-fpic"; |
| 2316 | else CCSHARED="+z"; |
| 2317 | fi;; |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2318 | Linux*) CCSHARED="-fpic";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 2319 | BSD/OS*/4*) CCSHARED="-fpic";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2320 | FreeBSD*|OpenBSD*) CCSHARED="-fpic";; |
| 2321 | NetBSD*) CCSHARED="-fPIC";; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2322 | SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2323 | IRIX*/6*) case $CC in |
| 2324 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 2325 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2326 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2327 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2328 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2329 | echo "$ac_t""$CCSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2330 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2331 | # the python executable -- this is only needed for a few systems |
| 2332 | echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2333 | echo "configure:2334: checking LINKFORSHARED" >&5 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2334 | if test -z "$LINKFORSHARED" |
| 2335 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 2336 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 69f6580 | 1998-03-03 21:47:00 +0000 | [diff] [blame] | 2337 | AIX*) LINKFORSHARED='-Wl,-bE:python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2338 | hp*|HP*) |
Guido van Rossum | 304dd2d | 1997-10-20 23:10:56 +0000 | [diff] [blame] | 2339 | LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 2340 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | a8acf72 | 1999-04-27 22:06:08 +0000 | [diff] [blame] | 2341 | FreeBSD/[34]*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 2d9feed | 1997-11-24 17:36:21 +0000 | [diff] [blame] | 2342 | Linux*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 2343 | # -u libsys_s pulls in all symbols in libsys |
| 2344 | next/2*|next/3*) LINKFORSHARED="-u libsys_s";; |
| 2345 | # -u __dummy makes the linker aware of the objc runtime |
| 2346 | # in System.framework; otherwise, __objcInit (referenced in |
| 2347 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 2348 | # loading of any modules which reference it in System.framework |
| 2349 | next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2350 | SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 2351 | NetBSD*) |
| 2352 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 2353 | then |
| 2354 | LINKFORSHARED="-Wl,--export-dynamic" |
| 2355 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2356 | SunOS/5*) case $CC in |
| 2357 | *gcc*) |
Guido van Rossum | ff48418 | 2000-02-03 13:50:24 +0000 | [diff] [blame] | 2358 | if $CC -Xlinker -V 2>&1 | grep BFD >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 2359 | then |
| 2360 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 2361 | fi;; |
| 2362 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2363 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2364 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2365 | echo "$ac_t""$LINKFORSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2366 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2367 | # checks for libraries |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2368 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2369 | echo "configure:2370: checking for dlopen in -ldl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2370 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2371 | 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] | 2372 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2373 | else |
| 2374 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2375 | LIBS="-ldl $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2376 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2377 | #line 2378 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2378 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2379 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2380 | /* We use char because int might match the return type of a gcc2 |
| 2381 | builtin and then its argument prototype would still apply. */ |
| 2382 | char dlopen(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2383 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2384 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2385 | dlopen() |
| 2386 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2387 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2388 | if { (eval echo configure:2389: \"$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] | 2389 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2390 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2391 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2392 | echo "configure: failed program was:" >&5 |
| 2393 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2394 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2395 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2396 | fi |
| 2397 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2398 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2399 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2400 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2401 | 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] | 2402 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2403 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2404 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2405 | cat >> confdefs.h <<EOF |
| 2406 | #define $ac_tr_lib 1 |
| 2407 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2408 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2409 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2410 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2411 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2412 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2413 | fi |
| 2414 | # Dynamic linking for SunOS/Solaris and SYSV |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2415 | echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2416 | echo "configure:2417: checking for shl_load in -ldld" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2417 | ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2418 | 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] | 2419 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2420 | else |
| 2421 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2422 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2423 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2424 | #line 2425 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2425 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2426 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2427 | /* We use char because int might match the return type of a gcc2 |
| 2428 | builtin and then its argument prototype would still apply. */ |
| 2429 | char shl_load(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2430 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2431 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2432 | shl_load() |
| 2433 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2434 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2435 | if { (eval echo configure:2436: \"$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] | 2436 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2437 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2438 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2439 | echo "configure: failed program was:" >&5 |
| 2440 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2441 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2442 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2443 | fi |
| 2444 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2445 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2446 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2447 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2448 | 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] | 2449 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2450 | ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2451 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2452 | cat >> confdefs.h <<EOF |
| 2453 | #define $ac_tr_lib 1 |
| 2454 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2455 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2456 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2457 | |
| 2458 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2459 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2460 | fi |
| 2461 | # Dynamic linking for HP-UX |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2462 | |
| 2463 | # checks for system dependent C++ extensions support |
| 2464 | case "$ac_sys_system" in |
| 2465 | AIX*) echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2466 | echo "configure:2467: checking for genuine AIX C++ extensions support" >&5 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2467 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2468 | #line 2469 "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 2469 | #include "confdefs.h" |
| 2470 | #include "/usr/lpp/xlC/include/load.h" |
| 2471 | int main() { |
| 2472 | loadAndInit("", 0, "") |
| 2473 | ; return 0; } |
| 2474 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2475 | if { (eval echo configure:2476: \"$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] | 2476 | rm -rf conftest* |
| 2477 | cat >> confdefs.h <<\EOF |
| 2478 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 2479 | EOF |
| 2480 | |
| 2481 | echo "$ac_t""yes" 1>&6 |
| 2482 | else |
| 2483 | echo "configure: failed program was:" >&5 |
| 2484 | cat conftest.$ac_ext >&5 |
| 2485 | rm -rf conftest* |
| 2486 | echo "$ac_t""no" 1>&6 |
| 2487 | fi |
| 2488 | rm -f conftest*;; |
| 2489 | *) ;; |
| 2490 | esac |
| 2491 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 2492 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| 2493 | # However on SGI IRIX, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2494 | # BeOS' sockets are stashed in libnet. |
| 2495 | case "$ac_sys_system" in |
| 2496 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 2497 | *) |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2498 | echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2499 | echo "configure:2500: checking for t_open in -lnsl" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2500 | ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'` |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2501 | 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] | 2502 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2503 | else |
| 2504 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2505 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2506 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2507 | #line 2508 "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2508 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2509 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2510 | /* We use char because int might match the return type of a gcc2 |
| 2511 | builtin and then its argument prototype would still apply. */ |
| 2512 | char t_open(); |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2513 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2514 | int main() { |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 2515 | t_open() |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2516 | ; return 0; } |
| 2517 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2518 | if { (eval echo configure:2519: \"$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] | 2519 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2520 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2521 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2522 | echo "configure: failed program was:" >&5 |
| 2523 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2524 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2525 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2526 | fi |
| 2527 | rm -f conftest* |
| 2528 | LIBS="$ac_save_LIBS" |
| 2529 | |
| 2530 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2531 | 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] | 2532 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2533 | LIBS="-lnsl $LIBS" |
| 2534 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2535 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 2536 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 2537 | # SVR4 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2538 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2539 | echo "configure:2540: checking for socket in -lsocket" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2540 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2541 | 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] | 2542 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2543 | else |
| 2544 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2545 | LIBS="-lsocket $LIBS $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2546 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2547 | #line 2548 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2548 | #include "confdefs.h" |
| 2549 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2550 | /* We use char because int might match the return type of a gcc2 |
| 2551 | builtin and then its argument prototype would still apply. */ |
| 2552 | char socket(); |
| 2553 | |
| 2554 | int main() { |
| 2555 | socket() |
| 2556 | ; return 0; } |
| 2557 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2558 | if { (eval echo configure:2559: \"$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] | 2559 | rm -rf conftest* |
| 2560 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2561 | else |
| 2562 | echo "configure: failed program was:" >&5 |
| 2563 | cat conftest.$ac_ext >&5 |
| 2564 | rm -rf conftest* |
| 2565 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2566 | fi |
| 2567 | rm -f conftest* |
| 2568 | LIBS="$ac_save_LIBS" |
| 2569 | |
| 2570 | fi |
| 2571 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2572 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2573 | LIBS="-lsocket $LIBS" |
| 2574 | else |
| 2575 | echo "$ac_t""no" 1>&6 |
| 2576 | fi |
| 2577 | # SVR4 sockets |
| 2578 | echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2579 | echo "configure:2580: checking for socket in -lnet" >&5 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2580 | ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'` |
| 2581 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2582 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2583 | else |
| 2584 | ac_save_LIBS="$LIBS" |
| 2585 | LIBS="-lnet $LIBS $LIBS" |
| 2586 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2587 | #line 2588 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2588 | #include "confdefs.h" |
| 2589 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2590 | /* We use char because int might match the return type of a gcc2 |
| 2591 | builtin and then its argument prototype would still apply. */ |
| 2592 | char socket(); |
| 2593 | |
| 2594 | int main() { |
| 2595 | socket() |
| 2596 | ; return 0; } |
| 2597 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2598 | if { (eval echo configure:2599: \"$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] | 2599 | rm -rf conftest* |
| 2600 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2601 | else |
| 2602 | echo "configure: failed program was:" >&5 |
| 2603 | cat conftest.$ac_ext >&5 |
| 2604 | rm -rf conftest* |
| 2605 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2606 | fi |
| 2607 | rm -f conftest* |
| 2608 | LIBS="$ac_save_LIBS" |
| 2609 | |
| 2610 | fi |
| 2611 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2612 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2613 | LIBS="-lnet $LIBS" |
| 2614 | else |
| 2615 | echo "$ac_t""no" 1>&6 |
| 2616 | fi |
| 2617 | # BeOS |
| 2618 | ;; |
| 2619 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 2620 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 2621 | echo $ac_n "checking for --with-libs""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2622 | echo "configure:2623: checking for --with-libs" >&5 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 2623 | # Check whether --with-libs or --without-libs was given. |
| 2624 | if test "${with_libs+set}" = set; then |
| 2625 | withval="$with_libs" |
| 2626 | |
| 2627 | echo "$ac_t""$withval" 1>&6 |
| 2628 | LIBS="$withval $LIBS" |
| 2629 | |
| 2630 | else |
| 2631 | echo "$ac_t""no" 1>&6 |
| 2632 | fi |
| 2633 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2634 | |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame] | 2635 | echo $ac_n "checking for --with(out)-readline""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2636 | echo "configure:2637: checking for --with(out)-readline" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2637 | # Check whether --with-readline or --without-readline was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2638 | if test "${with_readline+set}" = set; then |
| 2639 | withval="$with_readline" |
Guido van Rossum | b06df27 | 1997-08-05 21:50:20 +0000 | [diff] [blame] | 2640 | echo "$ac_t""$withval" 1>&6 |
| 2641 | { echo "configure: error: --with(out)-readline is obsolete" 1>&2; exit 1; } |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame] | 2642 | else |
Guido van Rossum | b06df27 | 1997-08-05 21:50:20 +0000 | [diff] [blame] | 2643 | echo "$ac_t""not specified." 1>&6 |
Guido van Rossum | 3c83bb4 | 1996-12-31 22:35:16 +0000 | [diff] [blame] | 2644 | fi |
| 2645 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2646 | |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 2647 | |
| 2648 | USE_THREAD_MODULE="#" |
| 2649 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2650 | echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2651 | echo "configure:2652: checking for --with-dec-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2652 | |
| 2653 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 2654 | if test "${with_dec_threads+set}" = set; then |
| 2655 | withval="$with_dec_threads" |
| 2656 | echo "$ac_t""$withval" 1>&6 |
| 2657 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2658 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2659 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2660 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2661 | else |
| 2662 | echo "$ac_t""no" 1>&6 |
| 2663 | fi |
| 2664 | |
| 2665 | |
| 2666 | echo $ac_n "checking for --with-threads""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2667 | echo "configure:2668: checking for --with-threads" >&5 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 2668 | # Check whether --with-threads or --without-threads was given. |
| 2669 | if test "${with_threads+set}" = set; then |
| 2670 | withval="$with_threads" |
| 2671 | echo "$ac_t""$withval" 1>&6 |
| 2672 | if test "${with_thread+set}" != set; then |
| 2673 | with_thread="$withval"; |
| 2674 | fi |
| 2675 | else |
| 2676 | echo "$ac_t""no" 1>&6 |
| 2677 | fi |
| 2678 | |
| 2679 | |
| 2680 | echo $ac_n "checking for --with-thread""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2681 | echo "configure:2682: checking for --with-thread" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2682 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2683 | if test "${with_thread+set}" = set; then |
| 2684 | withval="$with_thread" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2685 | |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 2686 | USE_THREAD_MODULE= |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2687 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2688 | if test -d "$withval" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2689 | then LDFLAGS="$LDFLAGS -L$withval" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2690 | fi |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 2691 | cat >> confdefs.h <<\EOF |
| 2692 | #define _REENTRANT 1 |
| 2693 | EOF |
| 2694 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2695 | ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2696 | echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2697 | echo "configure:2698: checking for mach/cthreads.h" >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2698 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2699 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2700 | else |
| 2701 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2702 | #line 2703 "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2703 | #include "confdefs.h" |
| 2704 | #include <mach/cthreads.h> |
| 2705 | EOF |
| 2706 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2707 | { (eval echo configure:2708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2708 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2709 | if test -z "$ac_err"; then |
| 2710 | rm -rf conftest* |
| 2711 | eval "ac_cv_header_$ac_safe=yes" |
| 2712 | else |
| 2713 | echo "$ac_err" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2714 | echo "configure: failed program was:" >&5 |
| 2715 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 2716 | rm -rf conftest* |
| 2717 | eval "ac_cv_header_$ac_safe=no" |
| 2718 | fi |
| 2719 | rm -f conftest* |
| 2720 | fi |
| 2721 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2722 | echo "$ac_t""yes" 1>&6 |
| 2723 | cat >> confdefs.h <<\EOF |
| 2724 | #define WITH_THREAD 1 |
| 2725 | EOF |
| 2726 | |
| 2727 | cat >> confdefs.h <<\EOF |
| 2728 | #define C_THREADS 1 |
| 2729 | EOF |
| 2730 | |
| 2731 | LIBOBJS="$LIBOBJS thread.o" |
| 2732 | else |
| 2733 | echo "$ac_t""no" 1>&6 |
| 2734 | |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 2735 | echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2736 | echo "configure:2737: checking for pthread_detach" >&5 |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 2737 | 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] | 2738 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2739 | else |
| 2740 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2741 | #line 2742 "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2742 | #include "confdefs.h" |
| 2743 | /* System header to define __stub macros and hopefully few prototypes, |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 2744 | which can conflict with char pthread_detach(); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2745 | #include <assert.h> |
| 2746 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2747 | /* We use char because int might match the return type of a gcc2 |
| 2748 | builtin and then its argument prototype would still apply. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 2749 | char pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2750 | |
| 2751 | int main() { |
| 2752 | |
| 2753 | /* The GNU C library defines this for functions which it implements |
| 2754 | to always fail with ENOSYS. Some functions are actually named |
| 2755 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 2756 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2757 | choke me |
| 2758 | #else |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 2759 | pthread_detach(); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2760 | #endif |
| 2761 | |
| 2762 | ; return 0; } |
| 2763 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2764 | if { (eval echo configure:2765: \"$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] | 2765 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 2766 | eval "ac_cv_func_pthread_detach=yes" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2767 | else |
| 2768 | echo "configure: failed program was:" >&5 |
| 2769 | cat conftest.$ac_ext >&5 |
| 2770 | rm -rf conftest* |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 2771 | eval "ac_cv_func_pthread_detach=no" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2772 | fi |
| 2773 | rm -f conftest* |
| 2774 | fi |
| 2775 | |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 2776 | if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2777 | echo "$ac_t""yes" 1>&6 |
| 2778 | cat >> confdefs.h <<\EOF |
| 2779 | #define WITH_THREAD 1 |
| 2780 | EOF |
| 2781 | |
| 2782 | cat >> confdefs.h <<\EOF |
| 2783 | #define _POSIX_THREADS 1 |
| 2784 | EOF |
| 2785 | |
| 2786 | LIBOBJS="$LIBOBJS thread.o" |
| 2787 | else |
| 2788 | echo "$ac_t""no" 1>&6 |
| 2789 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2790 | ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'` |
| 2791 | echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2792 | echo "configure:2793: checking for kernel/OS.h" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2793 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2794 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2795 | else |
| 2796 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2797 | #line 2798 "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2798 | #include "confdefs.h" |
| 2799 | #include <kernel/OS.h> |
| 2800 | EOF |
| 2801 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2802 | { (eval echo configure:2803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2803 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2804 | if test -z "$ac_err"; then |
| 2805 | rm -rf conftest* |
| 2806 | eval "ac_cv_header_$ac_safe=yes" |
| 2807 | else |
| 2808 | echo "$ac_err" >&5 |
| 2809 | echo "configure: failed program was:" >&5 |
| 2810 | cat conftest.$ac_ext >&5 |
| 2811 | rm -rf conftest* |
| 2812 | eval "ac_cv_header_$ac_safe=no" |
| 2813 | fi |
| 2814 | rm -f conftest* |
| 2815 | fi |
| 2816 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2817 | echo "$ac_t""yes" 1>&6 |
| 2818 | cat >> confdefs.h <<\EOF |
| 2819 | #define WITH_THREAD 1 |
| 2820 | EOF |
| 2821 | |
| 2822 | cat >> confdefs.h <<\EOF |
| 2823 | #define BEOS_THREADS 1 |
| 2824 | EOF |
| 2825 | |
| 2826 | LIBOBJS="$LIBOBJS thread.o" |
| 2827 | else |
| 2828 | echo "$ac_t""no" 1>&6 |
| 2829 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2830 | echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2831 | echo "configure:2832: checking for pthread_create in -lpthreads" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2832 | ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2833 | 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] | 2834 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2835 | else |
| 2836 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2837 | LIBS="-lpthreads $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2838 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2839 | #line 2840 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2840 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2841 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2842 | /* We use char because int might match the return type of a gcc2 |
| 2843 | builtin and then its argument prototype would still apply. */ |
| 2844 | char pthread_create(); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2845 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2846 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2847 | pthread_create() |
| 2848 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2849 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2850 | if { (eval echo configure:2851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2851 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2852 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2853 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2854 | echo "configure: failed program was:" >&5 |
| 2855 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2856 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2857 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2858 | fi |
| 2859 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2860 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2861 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2862 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2863 | 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] | 2864 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2865 | cat >> confdefs.h <<\EOF |
| 2866 | #define WITH_THREAD 1 |
| 2867 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2868 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2869 | cat >> confdefs.h <<\EOF |
| 2870 | #define _POSIX_THREADS 1 |
| 2871 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2872 | |
| 2873 | LIBS="$LIBS -lpthreads" |
| 2874 | LIBOBJS="$LIBOBJS thread.o" |
| 2875 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2876 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 2877 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2878 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2879 | echo "configure:2880: checking for pthread_create in -lpthread" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2880 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 2881 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2882 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2883 | else |
| 2884 | ac_save_LIBS="$LIBS" |
| 2885 | LIBS="-lpthread $LIBS" |
| 2886 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2887 | #line 2888 "configure" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 2888 | #include "confdefs.h" |
| 2889 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2890 | /* We use char because int might match the return type of a gcc2 |
| 2891 | builtin and then its argument prototype would still apply. */ |
| 2892 | char pthread_create(); |
| 2893 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2894 | int main() { |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 2895 | pthread_create() |
| 2896 | ; return 0; } |
| 2897 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2898 | if { (eval echo configure:2899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 2899 | rm -rf conftest* |
| 2900 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2901 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2902 | echo "configure: failed program was:" >&5 |
| 2903 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 2904 | rm -rf conftest* |
| 2905 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2906 | fi |
| 2907 | rm -f conftest* |
| 2908 | LIBS="$ac_save_LIBS" |
| 2909 | |
| 2910 | fi |
| 2911 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2912 | echo "$ac_t""yes" 1>&6 |
| 2913 | cat >> confdefs.h <<\EOF |
| 2914 | #define WITH_THREAD 1 |
| 2915 | EOF |
| 2916 | |
| 2917 | cat >> confdefs.h <<\EOF |
| 2918 | #define _POSIX_THREADS 1 |
| 2919 | EOF |
| 2920 | |
| 2921 | LIBS="$LIBS -lpthread" |
| 2922 | LIBOBJS="$LIBOBJS thread.o" |
| 2923 | else |
| 2924 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 2925 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 2926 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2927 | echo "configure:2928: checking for pthread_create in -lc_r" >&5 |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 2928 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
| 2929 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2930 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2931 | else |
| 2932 | ac_save_LIBS="$LIBS" |
| 2933 | LIBS="-lc_r $LIBS" |
| 2934 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2935 | #line 2936 "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 2936 | #include "confdefs.h" |
| 2937 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2938 | /* We use char because int might match the return type of a gcc2 |
| 2939 | builtin and then its argument prototype would still apply. */ |
| 2940 | char pthread_create(); |
| 2941 | |
| 2942 | int main() { |
| 2943 | pthread_create() |
| 2944 | ; return 0; } |
| 2945 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2946 | if { (eval echo configure:2947: \"$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] | 2947 | rm -rf conftest* |
| 2948 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2949 | else |
| 2950 | echo "configure: failed program was:" >&5 |
| 2951 | cat conftest.$ac_ext >&5 |
| 2952 | rm -rf conftest* |
| 2953 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2954 | fi |
| 2955 | rm -f conftest* |
| 2956 | LIBS="$ac_save_LIBS" |
| 2957 | |
| 2958 | fi |
| 2959 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2960 | echo "$ac_t""yes" 1>&6 |
| 2961 | cat >> confdefs.h <<\EOF |
| 2962 | #define WITH_THREAD 1 |
| 2963 | EOF |
| 2964 | |
| 2965 | cat >> confdefs.h <<\EOF |
| 2966 | #define _POSIX_THREADS 1 |
| 2967 | EOF |
| 2968 | |
| 2969 | LIBS="$LIBS -lc_r" |
| 2970 | LIBOBJS="$LIBOBJS thread.o" |
| 2971 | else |
| 2972 | echo "$ac_t""no" 1>&6 |
| 2973 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 2974 | echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2975 | echo "configure:2976: checking for __d6_pthread_create in -lthread" >&5 |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 2976 | ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'` |
| 2977 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2978 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2979 | else |
| 2980 | ac_save_LIBS="$LIBS" |
| 2981 | LIBS="-lthread $LIBS" |
| 2982 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2983 | #line 2984 "configure" |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 2984 | #include "confdefs.h" |
| 2985 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2986 | /* We use char because int might match the return type of a gcc2 |
| 2987 | builtin and then its argument prototype would still apply. */ |
| 2988 | char __d6_pthread_create(); |
| 2989 | |
| 2990 | int main() { |
| 2991 | __d6_pthread_create() |
| 2992 | ; return 0; } |
| 2993 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 2994 | if { (eval echo configure:2995: \"$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] | 2995 | rm -rf conftest* |
| 2996 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2997 | else |
| 2998 | echo "configure: failed program was:" >&5 |
| 2999 | cat conftest.$ac_ext >&5 |
| 3000 | rm -rf conftest* |
| 3001 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3002 | fi |
| 3003 | rm -f conftest* |
| 3004 | LIBS="$ac_save_LIBS" |
| 3005 | |
| 3006 | fi |
| 3007 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3008 | echo "$ac_t""yes" 1>&6 |
| 3009 | cat >> confdefs.h <<\EOF |
| 3010 | #define WITH_THREAD 1 |
| 3011 | EOF |
| 3012 | |
| 3013 | cat >> confdefs.h <<\EOF |
| 3014 | #define _POSIX_THREADS 1 |
| 3015 | EOF |
| 3016 | |
| 3017 | LIBS="$LIBS -lthread" |
| 3018 | LIBOBJS="$LIBOBJS thread.o" |
| 3019 | else |
| 3020 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3021 | |
| 3022 | echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 3023 | echo "configure:3024: checking for pthread_create in -lcma" >&5 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3024 | ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'` |
| 3025 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3026 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3027 | else |
| 3028 | ac_save_LIBS="$LIBS" |
| 3029 | LIBS="-lcma $LIBS" |
| 3030 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 3031 | #line 3032 "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3032 | #include "confdefs.h" |
| 3033 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3034 | /* We use char because int might match the return type of a gcc2 |
| 3035 | builtin and then its argument prototype would still apply. */ |
| 3036 | char pthread_create(); |
| 3037 | |
| 3038 | int main() { |
| 3039 | pthread_create() |
| 3040 | ; return 0; } |
| 3041 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 3042 | if { (eval echo configure:3043: \"$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] | 3043 | rm -rf conftest* |
| 3044 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3045 | else |
| 3046 | echo "configure: failed program was:" >&5 |
| 3047 | cat conftest.$ac_ext >&5 |
| 3048 | rm -rf conftest* |
| 3049 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3050 | fi |
| 3051 | rm -f conftest* |
| 3052 | LIBS="$ac_save_LIBS" |
| 3053 | |
| 3054 | fi |
| 3055 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3056 | echo "$ac_t""yes" 1>&6 |
| 3057 | cat >> confdefs.h <<\EOF |
| 3058 | #define WITH_THREAD 1 |
| 3059 | EOF |
| 3060 | |
| 3061 | cat >> confdefs.h <<\EOF |
| 3062 | #define _POSIX_THREADS 1 |
| 3063 | EOF |
| 3064 | |
| 3065 | LIBS="$LIBS -lcma" |
| 3066 | LIBOBJS="$LIBOBJS thread.o" |
| 3067 | else |
| 3068 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 3069 | fi |
| 3070 | |
| 3071 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3072 | fi |
| 3073 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3074 | fi |
| 3075 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3076 | fi |
| 3077 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 3078 | fi |
| 3079 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3080 | fi |
| 3081 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3082 | fi |
| 3083 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3084 | fi |
| 3085 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 3086 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3087 | echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 3088 | echo "configure:3089: checking for usconfig in -lmpc" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3089 | ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'` |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3090 | 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] | 3091 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3092 | else |
| 3093 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3094 | LIBS="-lmpc $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3095 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 3096 | #line 3097 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3097 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3098 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3099 | /* We use char because int might match the return type of a gcc2 |
| 3100 | builtin and then its argument prototype would still apply. */ |
| 3101 | char usconfig(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3102 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3103 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3104 | usconfig() |
| 3105 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3106 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 3107 | if { (eval echo configure:3108: \"$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] | 3108 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3109 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3110 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3111 | echo "configure: failed program was:" >&5 |
| 3112 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3113 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3114 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3115 | fi |
| 3116 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3117 | LIBS="$ac_save_LIBS" |
| 3118 | |
| 3119 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3120 | 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] | 3121 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3122 | cat >> confdefs.h <<\EOF |
| 3123 | #define WITH_THREAD 1 |
| 3124 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3125 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3126 | LIBS="$LIBS -lmpc" |
| 3127 | LIBOBJS="$LIBOBJS thread.o" |
| 3128 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3129 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3130 | fi |
| 3131 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3132 | echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 3133 | echo "configure:3134: checking for thr_create in -lthread" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3134 | ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'` |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3135 | 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] | 3136 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3137 | else |
| 3138 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3139 | LIBS="-lthread $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3140 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 3141 | #line 3142 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3142 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3143 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3144 | /* We use char because int might match the return type of a gcc2 |
| 3145 | builtin and then its argument prototype would still apply. */ |
| 3146 | char thr_create(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3147 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3148 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3149 | thr_create() |
| 3150 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3151 | EOF |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 3152 | if { (eval echo configure:3153: \"$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] | 3153 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3154 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3155 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3156 | echo "configure: failed program was:" >&5 |
| 3157 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3158 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3159 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3160 | fi |
| 3161 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3162 | LIBS="$ac_save_LIBS" |
| 3163 | |
| 3164 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3165 | 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] | 3166 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3167 | cat >> confdefs.h <<\EOF |
| 3168 | #define WITH_THREAD 1 |
| 3169 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3170 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3171 | LIBS="$LIBS -lthread" |
| 3172 | LIBOBJS="$LIBOBJS thread.o" |
| 3173 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3174 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3175 | fi |
| 3176 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3177 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3178 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3179 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3180 | fi |
| 3181 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3182 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3183 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3184 | |
| 3185 | DLINCLDIR=/ |
| 3186 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3187 | echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6 |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 3188 | echo "configure:3189: checking for --with-sgi-dl" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3189 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3190 | if test "${with_sgi_dl+set}" = set; then |
| 3191 | withval="$with_sgi_dl" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3192 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3193 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3194 | cat >> confdefs.h <<\EOF |
| 3195 | #define WITH_SGI_DL 1 |
| 3196 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3197 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3198 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3199 | dldir=$withval |
| 3200 | if test -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3201 | then LDFLAGS="$LDFLAGS -L$dldir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3202 | 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] | 3203 | fi |
| 3204 | DLINCLDIR=${dldir} |
| 3205 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3206 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3207 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3208 | fi |
| 3209 | |
| 3210 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3211 | echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3212 | echo "configure:3213: checking for --with-dl-dld" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3213 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3214 | if test "${with_dl_dld+set}" = set; then |
| 3215 | withval="$with_dl_dld" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3216 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3217 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3218 | cat >> confdefs.h <<\EOF |
| 3219 | #define WITH_DL_DLD 1 |
| 3220 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3221 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3222 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3223 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 3224 | dlddir=`echo "$withval" | sed 's/.*,//'` |
| 3225 | if test -d "$dldir" -a -d "$dlddir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3226 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3227 | 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] | 3228 | fi |
| 3229 | DLINCLDIR=${dldir} |
| 3230 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3231 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3232 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3233 | fi |
| 3234 | |
| 3235 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3236 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 3237 | # platforms, such as AIX, have dlopen(), but don't want to use it. |
| 3238 | echo $ac_n "checking for dlopen""... $ac_c" 1>&6 |
| 3239 | echo "configure:3240: checking for dlopen" >&5 |
| 3240 | if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then |
| 3241 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3242 | else |
| 3243 | cat > conftest.$ac_ext <<EOF |
| 3244 | #line 3245 "configure" |
| 3245 | #include "confdefs.h" |
| 3246 | /* System header to define __stub macros and hopefully few prototypes, |
| 3247 | which can conflict with char dlopen(); below. */ |
| 3248 | #include <assert.h> |
| 3249 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3250 | /* We use char because int might match the return type of a gcc2 |
| 3251 | builtin and then its argument prototype would still apply. */ |
| 3252 | char dlopen(); |
| 3253 | |
| 3254 | int main() { |
| 3255 | |
| 3256 | /* The GNU C library defines this for functions which it implements |
| 3257 | to always fail with ENOSYS. Some functions are actually named |
| 3258 | something starting with __ and the normal name is an alias. */ |
| 3259 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| 3260 | choke me |
| 3261 | #else |
| 3262 | dlopen(); |
| 3263 | #endif |
| 3264 | |
| 3265 | ; return 0; } |
| 3266 | EOF |
| 3267 | if { (eval echo configure:3268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3268 | rm -rf conftest* |
| 3269 | eval "ac_cv_func_dlopen=yes" |
| 3270 | else |
| 3271 | echo "configure: failed program was:" >&5 |
| 3272 | cat conftest.$ac_ext >&5 |
| 3273 | rm -rf conftest* |
| 3274 | eval "ac_cv_func_dlopen=no" |
| 3275 | fi |
| 3276 | rm -f conftest* |
| 3277 | fi |
| 3278 | |
| 3279 | if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then |
| 3280 | echo "$ac_t""yes" 1>&6 |
| 3281 | : |
| 3282 | else |
| 3283 | echo "$ac_t""no" 1>&6 |
| 3284 | fi |
| 3285 | |
| 3286 | |
| 3287 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 3288 | # loading of modules. |
| 3289 | |
| 3290 | echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6 |
| 3291 | echo "configure:3292: checking DYNLOADFILE" >&5 |
| 3292 | if test -z "$DYNLOADFILE" |
| 3293 | then |
| 3294 | case $ac_sys_system/$ac_sys_release in |
| 3295 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 3296 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 3297 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
| 3298 | next/*) DYNLOADFILE="dynload_next.o";; |
| 3299 | *) |
| 3300 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 3301 | # out any dynamic loading |
| 3302 | if test "$ac_cv_func_dlopen" = yes |
| 3303 | then DYNLOADFILE="dynload_shlib.o" |
| 3304 | else DYNLOADFILE="dynload_stub.o" |
| 3305 | fi |
| 3306 | ;; |
| 3307 | esac |
| 3308 | fi |
| 3309 | echo "$ac_t""$DYNLOADFILE" 1>&6 |
| 3310 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 3311 | then |
| 3312 | cat >> confdefs.h <<\EOF |
| 3313 | #define HAVE_DYNAMIC_LOADING 1 |
| 3314 | EOF |
| 3315 | |
| 3316 | fi |
| 3317 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3318 | # checks for library functions |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 3319 | for ac_func in alarm chown clock confstr ctermid ctermid_r dlopen execv \ |
| 3320 | flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Fred Drake | f581db1 | 1999-12-14 21:11:47 +0000 | [diff] [blame] | 3321 | getgroups getlogin getpeername getpgrp getpid getpwent gettimeofday getwd \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 3322 | kill link lstat mkfifo mktime nice pathconf pause plock pthread_init \ |
| 3323 | putenv readlink \ |
Guido van Rossum | 9601315 | 1997-10-08 22:47:52 +0000 | [diff] [blame] | 3324 | select setgid setlocale setuid setsid setpgid setpgrp setvbuf \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 3325 | sigaction siginterrupt sigrelse strftime strptime symlink sysconf \ |
Fred Drake | 89143df | 1999-12-09 22:03:25 +0000 | [diff] [blame] | 3326 | tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
| 3327 | truncate uname waitpid |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3328 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3329 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3330 | echo "configure:3331: checking for $ac_func" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3331 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 3332 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3333 | else |
| 3334 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3335 | #line 3336 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3336 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3337 | /* System header to define __stub macros and hopefully few prototypes, |
| 3338 | which can conflict with char $ac_func(); below. */ |
| 3339 | #include <assert.h> |
| 3340 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3341 | /* We use char because int might match the return type of a gcc2 |
| 3342 | builtin and then its argument prototype would still apply. */ |
| 3343 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3344 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3345 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3346 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3347 | /* The GNU C library defines this for functions which it implements |
| 3348 | to always fail with ENOSYS. Some functions are actually named |
| 3349 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3350 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3351 | choke me |
| 3352 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3353 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3354 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3355 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3356 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3357 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3358 | if { (eval echo configure:3359: \"$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] | 3359 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3360 | eval "ac_cv_func_$ac_func=yes" |
| 3361 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3362 | echo "configure: failed program was:" >&5 |
| 3363 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3364 | rm -rf conftest* |
| 3365 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3366 | fi |
| 3367 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3368 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3369 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3370 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3371 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3372 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3373 | cat >> confdefs.h <<EOF |
| 3374 | #define $ac_tr_func 1 |
| 3375 | EOF |
| 3376 | |
| 3377 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3378 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3379 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3380 | done |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3381 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 3382 | |
| 3383 | # check for long file support functions |
| 3384 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3385 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3386 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3387 | echo "configure:3388: checking for $ac_func" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3388 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 3389 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3390 | else |
| 3391 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3392 | #line 3393 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3393 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3394 | /* System header to define __stub macros and hopefully few prototypes, |
| 3395 | which can conflict with char $ac_func(); below. */ |
| 3396 | #include <assert.h> |
| 3397 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3398 | /* We use char because int might match the return type of a gcc2 |
| 3399 | builtin and then its argument prototype would still apply. */ |
| 3400 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3401 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3402 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3403 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3404 | /* The GNU C library defines this for functions which it implements |
| 3405 | to always fail with ENOSYS. Some functions are actually named |
| 3406 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3407 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3408 | choke me |
| 3409 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3410 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3411 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3412 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3413 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3414 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3415 | if { (eval echo configure:3416: \"$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] | 3416 | rm -rf conftest* |
| 3417 | eval "ac_cv_func_$ac_func=yes" |
| 3418 | else |
| 3419 | echo "configure: failed program was:" >&5 |
| 3420 | cat conftest.$ac_ext >&5 |
| 3421 | rm -rf conftest* |
| 3422 | eval "ac_cv_func_$ac_func=no" |
| 3423 | fi |
| 3424 | rm -f conftest* |
| 3425 | fi |
| 3426 | |
| 3427 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3428 | echo "$ac_t""yes" 1>&6 |
| 3429 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3430 | cat >> confdefs.h <<EOF |
| 3431 | #define $ac_tr_func 1 |
| 3432 | EOF |
| 3433 | |
| 3434 | else |
| 3435 | echo "$ac_t""no" 1>&6 |
| 3436 | fi |
| 3437 | done |
| 3438 | |
| 3439 | |
| 3440 | for ac_func in dup2 getcwd strdup strerror memmove |
| 3441 | do |
| 3442 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3443 | echo "configure:3444: checking for $ac_func" >&5 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 3444 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 3445 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3446 | else |
| 3447 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3448 | #line 3449 "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 3449 | #include "confdefs.h" |
| 3450 | /* System header to define __stub macros and hopefully few prototypes, |
| 3451 | which can conflict with char $ac_func(); below. */ |
| 3452 | #include <assert.h> |
| 3453 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3454 | /* We use char because int might match the return type of a gcc2 |
| 3455 | builtin and then its argument prototype would still apply. */ |
| 3456 | char $ac_func(); |
| 3457 | |
| 3458 | int main() { |
| 3459 | |
| 3460 | /* The GNU C library defines this for functions which it implements |
| 3461 | to always fail with ENOSYS. Some functions are actually named |
| 3462 | something starting with __ and the normal name is an alias. */ |
| 3463 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3464 | choke me |
| 3465 | #else |
| 3466 | $ac_func(); |
| 3467 | #endif |
| 3468 | |
| 3469 | ; return 0; } |
| 3470 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3471 | if { (eval echo configure:3472: \"$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] | 3472 | rm -rf conftest* |
| 3473 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3474 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3475 | echo "configure: failed program was:" >&5 |
| 3476 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3477 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3478 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3479 | fi |
| 3480 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3481 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3482 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3483 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3484 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3485 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3486 | cat >> confdefs.h <<EOF |
| 3487 | #define $ac_tr_func 1 |
| 3488 | EOF |
| 3489 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3490 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3491 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 3492 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3493 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3494 | done |
| 3495 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3496 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3497 | echo $ac_n "checking for getpgrp""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3498 | echo "configure:3499: checking for getpgrp" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3499 | if eval "test \"`echo '$''{'ac_cv_func_getpgrp'+set}'`\" = set"; then |
| 3500 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3501 | else |
| 3502 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3503 | #line 3504 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3504 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3505 | /* System header to define __stub macros and hopefully few prototypes, |
| 3506 | which can conflict with char getpgrp(); below. */ |
| 3507 | #include <assert.h> |
| 3508 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3509 | /* We use char because int might match the return type of a gcc2 |
| 3510 | builtin and then its argument prototype would still apply. */ |
| 3511 | char getpgrp(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3512 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3513 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3514 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3515 | /* The GNU C library defines this for functions which it implements |
| 3516 | to always fail with ENOSYS. Some functions are actually named |
| 3517 | something starting with __ and the normal name is an alias. */ |
| 3518 | #if defined (__stub_getpgrp) || defined (__stub___getpgrp) |
| 3519 | choke me |
| 3520 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3521 | getpgrp(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3522 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3523 | |
| 3524 | ; return 0; } |
| 3525 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3526 | if { (eval echo configure:3527: \"$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] | 3527 | rm -rf conftest* |
| 3528 | eval "ac_cv_func_getpgrp=yes" |
| 3529 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3530 | echo "configure: failed program was:" >&5 |
| 3531 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3532 | rm -rf conftest* |
| 3533 | eval "ac_cv_func_getpgrp=no" |
| 3534 | fi |
| 3535 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3536 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3537 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3538 | if eval "test \"`echo '$ac_cv_func_'getpgrp`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3539 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3540 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3541 | #line 3542 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3542 | #include "confdefs.h" |
| 3543 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3544 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3545 | getpgrp(0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3546 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3547 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3548 | if { (eval echo configure:3549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3549 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3550 | cat >> confdefs.h <<\EOF |
| 3551 | #define GETPGRP_HAVE_ARG 1 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3552 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3553 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3554 | else |
| 3555 | echo "configure: failed program was:" >&5 |
| 3556 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3557 | fi |
| 3558 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3559 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3560 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3561 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3562 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3563 | echo $ac_n "checking for setpgrp""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3564 | echo "configure:3565: checking for setpgrp" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3565 | if eval "test \"`echo '$''{'ac_cv_func_setpgrp'+set}'`\" = set"; then |
| 3566 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3567 | else |
| 3568 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3569 | #line 3570 "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 3570 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3571 | /* System header to define __stub macros and hopefully few prototypes, |
| 3572 | which can conflict with char setpgrp(); below. */ |
| 3573 | #include <assert.h> |
| 3574 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3575 | /* We use char because int might match the return type of a gcc2 |
| 3576 | builtin and then its argument prototype would still apply. */ |
| 3577 | char setpgrp(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3578 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3579 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3580 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 3581 | /* The GNU C library defines this for functions which it implements |
| 3582 | to always fail with ENOSYS. Some functions are actually named |
| 3583 | something starting with __ and the normal name is an alias. */ |
| 3584 | #if defined (__stub_setpgrp) || defined (__stub___setpgrp) |
| 3585 | choke me |
| 3586 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3587 | setpgrp(); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 3588 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3589 | |
| 3590 | ; return 0; } |
| 3591 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3592 | if { (eval echo configure:3593: \"$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] | 3593 | rm -rf conftest* |
| 3594 | eval "ac_cv_func_setpgrp=yes" |
| 3595 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3596 | echo "configure: failed program was:" >&5 |
| 3597 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3598 | rm -rf conftest* |
| 3599 | eval "ac_cv_func_setpgrp=no" |
| 3600 | fi |
| 3601 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3602 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3603 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3604 | if eval "test \"`echo '$ac_cv_func_'setpgrp`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3605 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3606 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3607 | #line 3608 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3608 | #include "confdefs.h" |
| 3609 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3610 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3611 | setpgrp(0,0); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 3612 | ; return 0; } |
| 3613 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3614 | if { (eval echo configure:3615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 3615 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3616 | cat >> confdefs.h <<\EOF |
| 3617 | #define SETPGRP_HAVE_ARG 1 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 3618 | EOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 3619 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3620 | else |
| 3621 | echo "configure: failed program was:" >&5 |
| 3622 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 3623 | fi |
| 3624 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3625 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3626 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 3627 | fi |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 3628 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3629 | echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3630 | echo "configure:3631: checking for gettimeofday" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3631 | if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then |
| 3632 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3633 | else |
| 3634 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3635 | #line 3636 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3636 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3637 | /* System header to define __stub macros and hopefully few prototypes, |
| 3638 | which can conflict with char gettimeofday(); below. */ |
| 3639 | #include <assert.h> |
| 3640 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3641 | /* We use char because int might match the return type of a gcc2 |
| 3642 | builtin and then its argument prototype would still apply. */ |
| 3643 | char gettimeofday(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3644 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3645 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3646 | |
| 3647 | /* The GNU C library defines this for functions which it implements |
| 3648 | to always fail with ENOSYS. Some functions are actually named |
| 3649 | something starting with __ and the normal name is an alias. */ |
| 3650 | #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) |
| 3651 | choke me |
| 3652 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3653 | gettimeofday(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3654 | #endif |
| 3655 | |
| 3656 | ; return 0; } |
| 3657 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3658 | if { (eval echo configure:3659: \"$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] | 3659 | rm -rf conftest* |
| 3660 | eval "ac_cv_func_gettimeofday=yes" |
| 3661 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3662 | echo "configure: failed program was:" >&5 |
| 3663 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3664 | rm -rf conftest* |
| 3665 | eval "ac_cv_func_gettimeofday=no" |
| 3666 | fi |
| 3667 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3668 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3669 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3670 | if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3671 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3672 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3673 | #line 3674 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3674 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3675 | #include <sys/time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3676 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3677 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
| 3678 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3679 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3680 | if { (eval echo configure:3681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3681 | : |
| 3682 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3683 | echo "configure: failed program was:" >&5 |
| 3684 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3685 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3686 | cat >> confdefs.h <<\EOF |
| 3687 | #define GETTIMEOFDAY_NO_TZ 1 |
| 3688 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3689 | |
| 3690 | fi |
| 3691 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3692 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3693 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3694 | fi |
| 3695 | |
| 3696 | |
| 3697 | # checks for structures |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3698 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3699 | echo "configure:3700: checking whether time.h and sys/time.h may both be included" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3700 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
| 3701 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3702 | else |
| 3703 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3704 | #line 3705 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3705 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3706 | #include <sys/types.h> |
| 3707 | #include <sys/time.h> |
| 3708 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3709 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3710 | struct tm *tp; |
| 3711 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3712 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3713 | if { (eval echo configure:3714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3714 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3715 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3716 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3717 | echo "configure: failed program was:" >&5 |
| 3718 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3719 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3720 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3721 | fi |
| 3722 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3723 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3724 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3725 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3726 | if test $ac_cv_header_time = yes; then |
| 3727 | cat >> confdefs.h <<\EOF |
| 3728 | #define TIME_WITH_SYS_TIME 1 |
| 3729 | EOF |
| 3730 | |
| 3731 | fi |
| 3732 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3733 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3734 | echo "configure:3735: checking whether struct tm is in sys/time.h or time.h" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3735 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
| 3736 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3737 | else |
| 3738 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3739 | #line 3740 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3740 | #include "confdefs.h" |
| 3741 | #include <sys/types.h> |
| 3742 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3743 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3744 | struct tm *tp; tp->tm_sec; |
| 3745 | ; return 0; } |
| 3746 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3747 | if { (eval echo configure:3748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3748 | rm -rf conftest* |
| 3749 | ac_cv_struct_tm=time.h |
| 3750 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3751 | echo "configure: failed program was:" >&5 |
| 3752 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3753 | rm -rf conftest* |
| 3754 | ac_cv_struct_tm=sys/time.h |
| 3755 | fi |
| 3756 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3757 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3758 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3759 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3760 | if test $ac_cv_struct_tm = sys/time.h; then |
| 3761 | cat >> confdefs.h <<\EOF |
| 3762 | #define TM_IN_SYS_TIME 1 |
| 3763 | EOF |
| 3764 | |
| 3765 | fi |
| 3766 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3767 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3768 | echo "configure:3769: checking for tm_zone in struct tm" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3769 | if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then |
| 3770 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3771 | else |
| 3772 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3773 | #line 3774 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3774 | #include "confdefs.h" |
| 3775 | #include <sys/types.h> |
| 3776 | #include <$ac_cv_struct_tm> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3777 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3778 | struct tm tm; tm.tm_zone; |
| 3779 | ; return 0; } |
| 3780 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3781 | if { (eval echo configure:3782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3782 | rm -rf conftest* |
| 3783 | ac_cv_struct_tm_zone=yes |
| 3784 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3785 | echo "configure: failed program was:" >&5 |
| 3786 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3787 | rm -rf conftest* |
| 3788 | ac_cv_struct_tm_zone=no |
| 3789 | fi |
| 3790 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3791 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3792 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3793 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3794 | if test "$ac_cv_struct_tm_zone" = yes; then |
| 3795 | cat >> confdefs.h <<\EOF |
| 3796 | #define HAVE_TM_ZONE 1 |
| 3797 | EOF |
| 3798 | |
| 3799 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3800 | echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3801 | echo "configure:3802: checking for tzname" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3802 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
| 3803 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3804 | else |
| 3805 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3806 | #line 3807 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3807 | #include "confdefs.h" |
| 3808 | #include <time.h> |
| 3809 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3810 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3811 | #endif |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3812 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3813 | atoi(*tzname); |
| 3814 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3815 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3816 | if { (eval echo configure:3817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3817 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3818 | ac_cv_var_tzname=yes |
| 3819 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3820 | echo "configure: failed program was:" >&5 |
| 3821 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3822 | rm -rf conftest* |
| 3823 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3824 | fi |
| 3825 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3826 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3827 | |
| 3828 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3829 | if test $ac_cv_var_tzname = yes; then |
| 3830 | cat >> confdefs.h <<\EOF |
| 3831 | #define HAVE_TZNAME 1 |
| 3832 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3833 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3834 | fi |
| 3835 | fi |
| 3836 | |
| 3837 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3838 | echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3839 | echo "configure:3840: checking for time.h that defines altzone" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3840 | if eval "test \"`echo '$''{'ac_cv_header_time_altzone'+set}'`\" = set"; then |
| 3841 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3842 | else |
| 3843 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3844 | #line 3845 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3845 | #include "confdefs.h" |
| 3846 | #include <time.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3847 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3848 | return altzone; |
| 3849 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3850 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3851 | if { (eval echo configure:3852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3852 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3853 | ac_cv_header_time_altzone=yes |
| 3854 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3855 | echo "configure: failed program was:" >&5 |
| 3856 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3857 | rm -rf conftest* |
| 3858 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3859 | fi |
| 3860 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3861 | fi |
| 3862 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3863 | echo "$ac_t""$ac_cv_header_time_altzone" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3864 | if test $ac_cv_header_time_altzone = yes; then |
| 3865 | cat >> confdefs.h <<\EOF |
| 3866 | #define HAVE_ALTZONE 1 |
| 3867 | EOF |
| 3868 | |
| 3869 | fi |
| 3870 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3871 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3872 | echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3873 | echo "configure:3874: 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] | 3874 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3875 | #line 3876 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3876 | #include "confdefs.h" |
| 3877 | |
| 3878 | #include <sys/types.h> |
| 3879 | #include <sys/select.h> |
| 3880 | #include <sys/time.h> |
| 3881 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3882 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3883 | ; |
| 3884 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3885 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3886 | if { (eval echo configure:3887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3887 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3888 | cat >> confdefs.h <<\EOF |
| 3889 | #define SYS_SELECT_WITH_SYS_TIME 1 |
| 3890 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3891 | was_it_defined=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3892 | else |
| 3893 | echo "configure: failed program was:" >&5 |
| 3894 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3895 | fi |
| 3896 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3897 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3898 | |
| 3899 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3900 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3901 | echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3902 | echo "configure:3903: checking whether char is unsigned" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3903 | if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then |
| 3904 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3905 | else |
| 3906 | if test "$GCC" = yes; then |
| 3907 | # GCC predefines this symbol on systems where it applies. |
| 3908 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3909 | #line 3910 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3910 | #include "confdefs.h" |
| 3911 | #ifdef __CHAR_UNSIGNED__ |
| 3912 | yes |
| 3913 | #endif |
| 3914 | |
| 3915 | EOF |
| 3916 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3917 | egrep "yes" >/dev/null 2>&1; then |
| 3918 | rm -rf conftest* |
| 3919 | ac_cv_c_char_unsigned=yes |
| 3920 | else |
| 3921 | rm -rf conftest* |
| 3922 | ac_cv_c_char_unsigned=no |
| 3923 | fi |
| 3924 | rm -f conftest* |
| 3925 | |
| 3926 | else |
| 3927 | if test "$cross_compiling" = yes; then |
| 3928 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 3929 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3930 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3931 | #line 3932 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3932 | #include "confdefs.h" |
| 3933 | /* volatile prevents gcc2 from optimizing the test away on sparcs. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3934 | #if !defined(__STDC__) || __STDC__ != 1 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3935 | #define volatile |
| 3936 | #endif |
| 3937 | main() { |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3938 | volatile char c = 255; exit(c < 0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3939 | } |
| 3940 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3941 | if { (eval echo configure:3942: \"$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] | 3942 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3943 | ac_cv_c_char_unsigned=yes |
| 3944 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3945 | echo "configure: failed program was:" >&5 |
| 3946 | cat conftest.$ac_ext >&5 |
| 3947 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3948 | ac_cv_c_char_unsigned=no |
| 3949 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3950 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3951 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3952 | |
| 3953 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3954 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3955 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3956 | echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3957 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
| 3958 | cat >> confdefs.h <<\EOF |
| 3959 | #define __CHAR_UNSIGNED__ 1 |
| 3960 | EOF |
| 3961 | |
| 3962 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3963 | |
| 3964 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3965 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3966 | echo "configure:3967: checking for working const" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3967 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
| 3968 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3969 | else |
| 3970 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 3971 | #line 3972 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3972 | #include "confdefs.h" |
| 3973 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3974 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3975 | |
| 3976 | /* Ultrix mips cc rejects this. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3977 | typedef int charset[2]; const charset x; |
| 3978 | /* SunOS 4.1.1 cc rejects this. */ |
| 3979 | char const *const *ccp; |
| 3980 | char **p; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3981 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 3982 | struct point {int x, y;}; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3983 | static struct point const zero = {0,0}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3984 | /* AIX XL C 1.02.0.0 rejects this. |
| 3985 | It does not let you subtract one const X* pointer from another in an arm |
| 3986 | of an if-expression whose if-part is not a constant expression */ |
| 3987 | const char *g = "string"; |
| 3988 | ccp = &g + (g ? g-g : 0); |
| 3989 | /* HPUX 7.0 cc rejects these. */ |
| 3990 | ++ccp; |
| 3991 | p = (char**) ccp; |
| 3992 | ccp = (char const *const *) p; |
| 3993 | { /* SCO 3.2v4 cc rejects this. */ |
| 3994 | char *t; |
| 3995 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 3996 | |
| 3997 | *t++ = 0; |
| 3998 | } |
| 3999 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4000 | int x[] = {25, 17}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4001 | const int *foo = &x[0]; |
| 4002 | ++foo; |
| 4003 | } |
| 4004 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 4005 | typedef const int *iptr; |
| 4006 | iptr p = 0; |
| 4007 | ++p; |
| 4008 | } |
| 4009 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 4010 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 4011 | struct s { int j; const int *ap[3]; }; |
| 4012 | struct s *b; b->j = 5; |
| 4013 | } |
| 4014 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 4015 | const int foo = 10; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4016 | } |
| 4017 | |
| 4018 | ; return 0; } |
| 4019 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4020 | if { (eval echo configure:4021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4021 | rm -rf conftest* |
| 4022 | ac_cv_c_const=yes |
| 4023 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4024 | echo "configure: failed program was:" >&5 |
| 4025 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4026 | rm -rf conftest* |
| 4027 | ac_cv_c_const=no |
| 4028 | fi |
| 4029 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4030 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4031 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4032 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4033 | if test $ac_cv_c_const = no; then |
| 4034 | cat >> confdefs.h <<\EOF |
| 4035 | #define const |
| 4036 | EOF |
| 4037 | |
| 4038 | fi |
| 4039 | |
| 4040 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4041 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4042 | echo $ac_n "checking for working volatile""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4043 | echo "configure:4044: checking for working volatile" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4044 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4045 | #line 4046 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4046 | #include "confdefs.h" |
| 4047 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4048 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4049 | volatile int x; x = 0; |
| 4050 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4051 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4052 | if { (eval echo configure:4053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4053 | rm -rf conftest* |
| 4054 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4055 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4056 | echo "configure: failed program was:" >&5 |
| 4057 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4058 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4059 | cat >> confdefs.h <<\EOF |
| 4060 | #define volatile |
| 4061 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4062 | |
| 4063 | fi |
| 4064 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4065 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4066 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4067 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4068 | echo $ac_n "checking for working signed char""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4069 | echo "configure:4070: checking for working signed char" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4070 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4071 | #line 4072 "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4072 | #include "confdefs.h" |
| 4073 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4074 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4075 | signed char c; |
| 4076 | ; return 0; } |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4077 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4078 | if { (eval echo configure:4079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4079 | rm -rf conftest* |
| 4080 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4081 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4082 | echo "configure: failed program was:" >&5 |
| 4083 | cat conftest.$ac_ext >&5 |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 4084 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4085 | cat >> confdefs.h <<\EOF |
| 4086 | #define signed |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4087 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4088 | |
| 4089 | fi |
| 4090 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4091 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4092 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4093 | have_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4094 | echo $ac_n "checking for prototypes""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4095 | echo "configure:4096: checking for prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4096 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4097 | #line 4098 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4098 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4099 | int foo(int x) { return 0; } |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4100 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4101 | return foo(10); |
| 4102 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4103 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4104 | if { (eval echo configure:4105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4105 | rm -rf conftest* |
| 4106 | cat >> confdefs.h <<\EOF |
| 4107 | #define HAVE_PROTOTYPES 1 |
| 4108 | EOF |
| 4109 | have_prototypes=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4110 | else |
| 4111 | echo "configure: failed program was:" >&5 |
| 4112 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4113 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4114 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4115 | echo "$ac_t""$have_prototypes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4116 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4117 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4118 | echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4119 | echo "configure:4120: checking for variable length prototypes and stdarg.h" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4120 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4121 | #line 4122 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4122 | #include "confdefs.h" |
| 4123 | |
| 4124 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 4125 | int foo(int x, ...) { |
| 4126 | va_list va; |
| 4127 | va_start(va, x); |
| 4128 | va_arg(va, int); |
| 4129 | va_arg(va, char *); |
| 4130 | va_arg(va, double); |
| 4131 | return 0; |
| 4132 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4133 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4134 | int main() { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 4135 | return foo(10, "", 3.14); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4136 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4137 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4138 | if { (eval echo configure:4139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4139 | rm -rf conftest* |
| 4140 | cat >> confdefs.h <<\EOF |
| 4141 | #define HAVE_STDARG_PROTOTYPES 1 |
| 4142 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4143 | works=yes |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4144 | else |
| 4145 | echo "configure: failed program was:" >&5 |
| 4146 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4147 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4148 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4149 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4150 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4151 | if test "$have_prototypes" = yes; then |
| 4152 | bad_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4153 | echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4154 | echo "configure:4155: checking for bad exec* prototypes" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4155 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4156 | #line 4157 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4157 | #include "confdefs.h" |
| 4158 | #include <unistd.h> |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4159 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4160 | char **t;execve("@",t,t); |
| 4161 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4162 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4163 | if { (eval echo configure:4164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4164 | : |
| 4165 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4166 | echo "configure: failed program was:" >&5 |
| 4167 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4168 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4169 | cat >> confdefs.h <<\EOF |
| 4170 | #define BAD_EXEC_PROTOTYPES 1 |
| 4171 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4172 | bad_prototypes=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4173 | fi |
| 4174 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4175 | echo "$ac_t""$bad_prototypes" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4176 | fi |
| 4177 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4178 | bad_forward=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4179 | echo $ac_n "checking for bad static forward""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4180 | echo "configure:4181: checking for bad static forward" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4181 | if test "$cross_compiling" = yes; then |
| 4182 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 4183 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4184 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4185 | #line 4186 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4186 | #include "confdefs.h" |
| 4187 | |
| 4188 | struct s { int a; int b; }; |
| 4189 | static struct s foo; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4190 | int foobar() { |
| 4191 | static int random; |
| 4192 | random = (int) &foo; |
| 4193 | return random; |
| 4194 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4195 | static struct s foo = { 1, 2 }; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4196 | main() { |
| 4197 | exit(!((int)&foo == foobar())); |
| 4198 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4199 | |
| 4200 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4201 | if { (eval echo configure:4202: \"$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] | 4202 | then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4203 | : |
| 4204 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4205 | echo "configure: failed program was:" >&5 |
| 4206 | cat conftest.$ac_ext >&5 |
| 4207 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4208 | cat >> confdefs.h <<\EOF |
| 4209 | #define BAD_STATIC_FORWARD 1 |
| 4210 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4211 | bad_forward=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4212 | fi |
| 4213 | rm -fr conftest* |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4214 | fi |
| 4215 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4216 | echo "$ac_t""$bad_forward" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4217 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4218 | va_list_is_array=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4219 | echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4220 | echo "configure:4221: checking whether va_list is an array" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4221 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4222 | #line 4223 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4223 | #include "confdefs.h" |
| 4224 | |
| 4225 | #ifdef HAVE_STDARG_PROTOTYPES |
| 4226 | #include <stdarg.h> |
| 4227 | #else |
| 4228 | #include <varargs.h> |
| 4229 | #endif |
| 4230 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4231 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4232 | va_list list1, list2; list1 = list2; |
| 4233 | ; return 0; } |
| 4234 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4235 | if { (eval echo configure:4236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4236 | : |
| 4237 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4238 | echo "configure: failed program was:" >&5 |
| 4239 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4240 | rm -rf conftest* |
| 4241 | cat >> confdefs.h <<\EOF |
| 4242 | #define VA_LIST_IS_ARRAY 1 |
| 4243 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4244 | va_list_is_array=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4245 | fi |
| 4246 | rm -f conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4247 | echo "$ac_t""$va_list_is_array" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4248 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4249 | # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( |
| 4250 | echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4251 | echo "configure:4252: checking for gethostbyname_r" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4252 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then |
| 4253 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4254 | else |
| 4255 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4256 | #line 4257 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4257 | #include "confdefs.h" |
| 4258 | /* System header to define __stub macros and hopefully few prototypes, |
| 4259 | which can conflict with char gethostbyname_r(); below. */ |
| 4260 | #include <assert.h> |
| 4261 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4262 | /* We use char because int might match the return type of a gcc2 |
| 4263 | builtin and then its argument prototype would still apply. */ |
| 4264 | char gethostbyname_r(); |
| 4265 | |
| 4266 | int main() { |
| 4267 | |
| 4268 | /* The GNU C library defines this for functions which it implements |
| 4269 | to always fail with ENOSYS. Some functions are actually named |
| 4270 | something starting with __ and the normal name is an alias. */ |
| 4271 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 4272 | choke me |
| 4273 | #else |
| 4274 | gethostbyname_r(); |
| 4275 | #endif |
| 4276 | |
| 4277 | ; return 0; } |
| 4278 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4279 | if { (eval echo configure:4280: \"$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] | 4280 | rm -rf conftest* |
| 4281 | eval "ac_cv_func_gethostbyname_r=yes" |
| 4282 | else |
| 4283 | echo "configure: failed program was:" >&5 |
| 4284 | cat conftest.$ac_ext >&5 |
| 4285 | rm -rf conftest* |
| 4286 | eval "ac_cv_func_gethostbyname_r=no" |
| 4287 | fi |
| 4288 | rm -f conftest* |
| 4289 | fi |
| 4290 | |
| 4291 | if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then |
| 4292 | echo "$ac_t""yes" 1>&6 |
| 4293 | |
| 4294 | cat >> confdefs.h <<\EOF |
| 4295 | #define HAVE_GETHOSTBYNAME_R 1 |
| 4296 | EOF |
| 4297 | |
| 4298 | echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4299 | echo "configure:4300: checking gethostbyname_r with 6 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4300 | OLD_CFLAGS=$CFLAGS |
| 4301 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
| 4302 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4303 | #line 4304 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4304 | #include "confdefs.h" |
| 4305 | |
| 4306 | # include <netdb.h> |
| 4307 | |
| 4308 | int main() { |
| 4309 | |
| 4310 | char *name; |
| 4311 | struct hostent *he, *res; |
| 4312 | char buffer[2048]; |
| 4313 | int buflen = 2048; |
| 4314 | int h_errnop; |
| 4315 | |
| 4316 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
| 4317 | |
| 4318 | ; return 0; } |
| 4319 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4320 | if { (eval echo configure:4321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4321 | rm -rf conftest* |
| 4322 | |
| 4323 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 4324 | #define HAVE_GETHOSTBYNAME_R 1 |
| 4325 | EOF |
| 4326 | |
| 4327 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4328 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
| 4329 | EOF |
| 4330 | |
| 4331 | echo "$ac_t""yes" 1>&6 |
| 4332 | |
| 4333 | else |
| 4334 | echo "configure: failed program was:" >&5 |
| 4335 | cat conftest.$ac_ext >&5 |
| 4336 | rm -rf conftest* |
| 4337 | |
| 4338 | echo "$ac_t""no" 1>&6 |
| 4339 | echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4340 | echo "configure:4341: checking gethostbyname_r with 5 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4341 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4342 | #line 4343 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4343 | #include "confdefs.h" |
| 4344 | |
| 4345 | # include <netdb.h> |
| 4346 | |
| 4347 | int main() { |
| 4348 | |
| 4349 | char *name; |
| 4350 | struct hostent *he; |
| 4351 | char buffer[2048]; |
| 4352 | int buflen = 2048; |
| 4353 | int h_errnop; |
| 4354 | |
| 4355 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
| 4356 | |
| 4357 | ; return 0; } |
| 4358 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4359 | if { (eval echo configure:4360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4360 | rm -rf conftest* |
| 4361 | |
| 4362 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 4363 | #define HAVE_GETHOSTBYNAME_R 1 |
| 4364 | EOF |
| 4365 | |
| 4366 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4367 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
| 4368 | EOF |
| 4369 | |
| 4370 | echo "$ac_t""yes" 1>&6 |
| 4371 | |
| 4372 | else |
| 4373 | echo "configure: failed program was:" >&5 |
| 4374 | cat conftest.$ac_ext >&5 |
| 4375 | rm -rf conftest* |
| 4376 | |
| 4377 | echo "$ac_t""no" 1>&6 |
| 4378 | echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4379 | echo "configure:4380: checking gethostbyname_r with 3 args" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4380 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4381 | #line 4382 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4382 | #include "confdefs.h" |
| 4383 | |
| 4384 | # include <netdb.h> |
| 4385 | |
| 4386 | int main() { |
| 4387 | |
| 4388 | char *name; |
| 4389 | struct hostent *he; |
| 4390 | struct hostent_data data; |
| 4391 | |
| 4392 | (void) gethostbyname_r(name, he, &data); |
| 4393 | |
| 4394 | ; return 0; } |
| 4395 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4396 | if { (eval echo configure:4397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4397 | rm -rf conftest* |
| 4398 | |
| 4399 | cat >> confdefs.h <<\EOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 4400 | #define HAVE_GETHOSTBYNAME_R 1 |
| 4401 | EOF |
| 4402 | |
| 4403 | cat >> confdefs.h <<\EOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4404 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
| 4405 | EOF |
| 4406 | |
| 4407 | echo "$ac_t""yes" 1>&6 |
| 4408 | |
| 4409 | else |
| 4410 | echo "configure: failed program was:" >&5 |
| 4411 | cat conftest.$ac_ext >&5 |
| 4412 | rm -rf conftest* |
| 4413 | |
| 4414 | echo "$ac_t""no" 1>&6 |
| 4415 | |
| 4416 | fi |
| 4417 | rm -f conftest* |
| 4418 | |
| 4419 | fi |
| 4420 | rm -f conftest* |
| 4421 | |
| 4422 | fi |
| 4423 | rm -f conftest* |
| 4424 | CFLAGS=$OLD_CFLAGS |
| 4425 | |
| 4426 | else |
| 4427 | echo "$ac_t""no" 1>&6 |
| 4428 | |
| 4429 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4430 | echo "configure:4431: checking for gethostbyname" >&5 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4431 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
| 4432 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4433 | else |
| 4434 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4435 | #line 4436 "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4436 | #include "confdefs.h" |
| 4437 | /* System header to define __stub macros and hopefully few prototypes, |
| 4438 | which can conflict with char gethostbyname(); below. */ |
| 4439 | #include <assert.h> |
| 4440 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4441 | /* We use char because int might match the return type of a gcc2 |
| 4442 | builtin and then its argument prototype would still apply. */ |
| 4443 | char gethostbyname(); |
| 4444 | |
| 4445 | int main() { |
| 4446 | |
| 4447 | /* The GNU C library defines this for functions which it implements |
| 4448 | to always fail with ENOSYS. Some functions are actually named |
| 4449 | something starting with __ and the normal name is an alias. */ |
| 4450 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 4451 | choke me |
| 4452 | #else |
| 4453 | gethostbyname(); |
| 4454 | #endif |
| 4455 | |
| 4456 | ; return 0; } |
| 4457 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4458 | if { (eval echo configure:4459: \"$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] | 4459 | rm -rf conftest* |
| 4460 | eval "ac_cv_func_gethostbyname=yes" |
| 4461 | else |
| 4462 | echo "configure: failed program was:" >&5 |
| 4463 | cat conftest.$ac_ext >&5 |
| 4464 | rm -rf conftest* |
| 4465 | eval "ac_cv_func_gethostbyname=no" |
| 4466 | fi |
| 4467 | rm -f conftest* |
| 4468 | fi |
| 4469 | |
| 4470 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
| 4471 | echo "$ac_t""yes" 1>&6 |
| 4472 | cat >> confdefs.h <<\EOF |
| 4473 | #define HAVE_GETHOSTBYNAME 1 |
| 4474 | EOF |
| 4475 | |
| 4476 | else |
| 4477 | echo "$ac_t""no" 1>&6 |
| 4478 | fi |
| 4479 | |
| 4480 | |
| 4481 | fi |
| 4482 | |
| 4483 | |
| 4484 | |
| 4485 | |
| 4486 | |
| 4487 | |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 4488 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4489 | # checks for system services |
| 4490 | # (none yet) |
| 4491 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4492 | # Linux requires this for correct f.p. operations |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4493 | echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4494 | echo "configure:4495: checking for __fpu_control in -lieee" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4495 | ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'` |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4496 | 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] | 4497 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4498 | else |
| 4499 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4500 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4501 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4502 | #line 4503 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4503 | #include "confdefs.h" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4504 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4505 | /* We use char because int might match the return type of a gcc2 |
| 4506 | builtin and then its argument prototype would still apply. */ |
| 4507 | char __fpu_control(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4508 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4509 | int main() { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4510 | __fpu_control() |
| 4511 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4512 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4513 | if { (eval echo configure:4514: \"$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] | 4514 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4515 | eval "ac_cv_lib_$ac_lib_var=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4516 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4517 | echo "configure: failed program was:" >&5 |
| 4518 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4519 | rm -rf conftest* |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4520 | eval "ac_cv_lib_$ac_lib_var=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4521 | fi |
| 4522 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4523 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4524 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4525 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4526 | 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] | 4527 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4528 | ac_tr_lib=HAVE_LIB`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 4529 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4530 | cat >> confdefs.h <<EOF |
| 4531 | #define $ac_tr_lib 1 |
| 4532 | EOF |
| 4533 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4534 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4535 | |
| 4536 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4537 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4538 | fi |
| 4539 | |
| 4540 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4541 | # Check for --with-fpectl |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4542 | echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4543 | echo "configure:4544: checking for --with-fpectl" >&5 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4544 | # Check whether --with-fpectl or --without-fpectl was given. |
| 4545 | if test "${with_fpectl+set}" = set; then |
| 4546 | withval="$with_fpectl" |
| 4547 | |
| 4548 | if test "$withval" != no |
| 4549 | then cat >> confdefs.h <<\EOF |
| 4550 | #define WANT_SIGFPE_HANDLER 1 |
| 4551 | EOF |
| 4552 | echo "$ac_t""yes" 1>&6 |
| 4553 | else echo "$ac_t""no" 1>&6 |
| 4554 | fi |
| 4555 | fi |
| 4556 | |
| 4557 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4558 | # check for --with-libm=... |
| 4559 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 4560 | case $ac_sys_system in |
| 4561 | next) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 4562 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 4563 | *) LIBM=-lm |
| 4564 | esac |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4565 | echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4566 | echo "configure:4567: checking for --with-libm=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4567 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4568 | if test "${with_libm+set}" = set; then |
| 4569 | withval="$with_libm" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4570 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4571 | if test "$withval" = no |
| 4572 | then LIBM= |
| 4573 | echo "$ac_t""force LIBM empty" 1>&6 |
| 4574 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4575 | then LIBM=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4576 | echo "$ac_t""set LIBM=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4577 | 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] | 4578 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4579 | else |
| 4580 | echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4581 | fi |
| 4582 | |
| 4583 | |
| 4584 | # check for --with-libc=... |
| 4585 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4586 | echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4587 | echo "configure:4588: checking for --with-libc=STRING" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4588 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4589 | if test "${with_libc+set}" = set; then |
| 4590 | withval="$with_libc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4591 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4592 | if test "$withval" = no |
| 4593 | then LIBC= |
| 4594 | echo "$ac_t""force LIBC empty" 1>&6 |
| 4595 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4596 | then LIBC=$withval |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4597 | echo "$ac_t""set LIBC=\"$withval\"" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4598 | 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] | 4599 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 4600 | else |
| 4601 | echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4602 | fi |
| 4603 | |
| 4604 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4605 | # check for hypot() in math library |
| 4606 | LIBS_SAVE=$LIBS |
| 4607 | LIBS="$LIBS $LIBM" |
| 4608 | for ac_func in hypot |
| 4609 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4610 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4611 | echo "configure:4612: checking for $ac_func" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4612 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 4613 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4614 | else |
| 4615 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4616 | #line 4617 "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4617 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4618 | /* System header to define __stub macros and hopefully few prototypes, |
| 4619 | which can conflict with char $ac_func(); below. */ |
| 4620 | #include <assert.h> |
| 4621 | /* Override any gcc2 internal prototype to avoid an error. */ |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4622 | /* We use char because int might match the return type of a gcc2 |
| 4623 | builtin and then its argument prototype would still apply. */ |
| 4624 | char $ac_func(); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4625 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4626 | int main() { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4627 | |
| 4628 | /* The GNU C library defines this for functions which it implements |
| 4629 | to always fail with ENOSYS. Some functions are actually named |
| 4630 | something starting with __ and the normal name is an alias. */ |
| 4631 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4632 | choke me |
| 4633 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4634 | $ac_func(); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4635 | #endif |
| 4636 | |
| 4637 | ; return 0; } |
| 4638 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4639 | if { (eval echo configure:4640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4640 | rm -rf conftest* |
| 4641 | eval "ac_cv_func_$ac_func=yes" |
| 4642 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4643 | echo "configure: failed program was:" >&5 |
| 4644 | cat conftest.$ac_ext >&5 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4645 | rm -rf conftest* |
| 4646 | eval "ac_cv_func_$ac_func=no" |
| 4647 | fi |
| 4648 | rm -f conftest* |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4649 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4650 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4651 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4652 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4653 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4654 | cat >> confdefs.h <<EOF |
| 4655 | #define $ac_tr_func 1 |
| 4656 | EOF |
| 4657 | |
| 4658 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4659 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4660 | fi |
| 4661 | done |
| 4662 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4663 | for ac_func in hypot |
| 4664 | do |
| 4665 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4666 | echo "configure:4667: checking for $ac_func" >&5 |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4667 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 4668 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4669 | else |
| 4670 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4671 | #line 4672 "configure" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4672 | #include "confdefs.h" |
| 4673 | /* System header to define __stub macros and hopefully few prototypes, |
| 4674 | which can conflict with char $ac_func(); below. */ |
| 4675 | #include <assert.h> |
| 4676 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4677 | /* We use char because int might match the return type of a gcc2 |
| 4678 | builtin and then its argument prototype would still apply. */ |
| 4679 | char $ac_func(); |
| 4680 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4681 | int main() { |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4682 | |
| 4683 | /* The GNU C library defines this for functions which it implements |
| 4684 | to always fail with ENOSYS. Some functions are actually named |
| 4685 | something starting with __ and the normal name is an alias. */ |
| 4686 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4687 | choke me |
| 4688 | #else |
| 4689 | $ac_func(); |
| 4690 | #endif |
| 4691 | |
| 4692 | ; return 0; } |
| 4693 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4694 | if { (eval echo configure:4695: \"$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] | 4695 | rm -rf conftest* |
| 4696 | eval "ac_cv_func_$ac_func=yes" |
| 4697 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4698 | echo "configure: failed program was:" >&5 |
| 4699 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4700 | rm -rf conftest* |
| 4701 | eval "ac_cv_func_$ac_func=no" |
| 4702 | fi |
| 4703 | rm -f conftest* |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4704 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4705 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4706 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 4707 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4708 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 4709 | cat >> confdefs.h <<EOF |
| 4710 | #define $ac_tr_func 1 |
| 4711 | EOF |
| 4712 | |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4713 | else |
| 4714 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4715 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4716 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 4717 | done |
| 4718 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4719 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 4720 | LIBS=$LIBS_SAVE |
| 4721 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4722 | # check for getopt |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4723 | echo $ac_n "checking for genuine getopt""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4724 | echo "configure:4725: checking for genuine getopt" >&5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4725 | if eval "test \"`echo '$''{'ac_cv_func_getopt'+set}'`\" = set"; then |
| 4726 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4727 | else |
| 4728 | if test "$cross_compiling" = yes; then |
| 4729 | ac_cv_func_getopt=no |
| 4730 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4731 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4732 | #line 4733 "configure" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4733 | #include "confdefs.h" |
| 4734 | #include <stdio.h> |
| 4735 | extern int optind, opterr, getopt(); |
| 4736 | extern char* optarg; |
| 4737 | int main() { |
| 4738 | char* av[] = { "testprog", "parameter", "-fFlag", NULL }; |
| 4739 | opterr = 0; |
| 4740 | if (getopt(3, av, "f:") == 'f') { exit(1); } |
| 4741 | exit(0); |
| 4742 | } |
| 4743 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4744 | if { (eval echo configure:4745: \"$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] | 4745 | then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4746 | ac_cv_func_getopt=yes |
| 4747 | else |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4748 | echo "configure: failed program was:" >&5 |
| 4749 | cat conftest.$ac_ext >&5 |
| 4750 | rm -fr conftest* |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4751 | ac_cv_func_getopt=no |
| 4752 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4753 | rm -fr conftest* |
| 4754 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4755 | |
| 4756 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4757 | echo "$ac_t""$ac_cv_func_getopt" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4758 | test $ac_cv_func_getopt = no && LIBOBJS="$LIBOBJS getopt.o" |
| 4759 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 4760 | # check whether malloc(0) returns NULL or not |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 4761 | echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4762 | echo "configure:4763: checking what malloc(0) returns" >&5 |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 4763 | if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then |
| 4764 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4765 | else |
| 4766 | if test "$cross_compiling" = yes; then |
| 4767 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 4768 | else |
| 4769 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4770 | #line 4771 "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 4771 | #include "confdefs.h" |
| 4772 | #include <stdio.h> |
| 4773 | #ifdef HAVE_STDLIB |
| 4774 | #include <stdlib.h> |
| 4775 | #else |
| 4776 | char *malloc(), *realloc(); |
| 4777 | int *free(); |
| 4778 | #endif |
| 4779 | main() { |
| 4780 | char *p; |
| 4781 | p = malloc(0); |
| 4782 | if (p == NULL) exit(1); |
| 4783 | p = realloc(p, 0); |
| 4784 | if (p == NULL) exit(1); |
| 4785 | free(p); |
| 4786 | exit(0); |
| 4787 | } |
| 4788 | EOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4789 | if { (eval echo configure:4790: \"$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] | 4790 | then |
| 4791 | ac_cv_malloc_zero=nonnull |
| 4792 | else |
| 4793 | echo "configure: failed program was:" >&5 |
| 4794 | cat conftest.$ac_ext >&5 |
| 4795 | rm -fr conftest* |
| 4796 | ac_cv_malloc_zero=null |
| 4797 | fi |
| 4798 | rm -fr conftest* |
| 4799 | fi |
| 4800 | |
| 4801 | fi |
| 4802 | |
| 4803 | echo "$ac_t""$ac_cv_malloc_zero" 1>&6 |
| 4804 | if test "$ac_cv_malloc_zero" = null |
| 4805 | then |
| 4806 | cat >> confdefs.h <<\EOF |
| 4807 | #define MALLOC_ZERO_RETURNS_NULL 1 |
| 4808 | EOF |
| 4809 | |
| 4810 | fi |
| 4811 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4812 | # generate output files |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4813 | trap '' 1 2 15 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4814 | cat > confcache <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4815 | # This file is a shell script that caches the results of configure |
| 4816 | # tests run on this system so they can be shared between configure |
| 4817 | # scripts and configure runs. It is not useful on other systems. |
| 4818 | # If it contains results you don't want to keep, you may remove or edit it. |
| 4819 | # |
| 4820 | # By default, configure uses ./config.cache as the cache file, |
| 4821 | # creating it if it does not exist already. You can give configure |
| 4822 | # the --cache-file=FILE option to use a different cache file; that is |
| 4823 | # what configure does when it calls configure scripts in |
| 4824 | # subdirectories, so they share the cache. |
| 4825 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 4826 | # config.status only pays attention to the cache file if you give it the |
| 4827 | # --recheck option to rerun configure. |
| 4828 | # |
| 4829 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4830 | # The following way of writing the cache mishandles newlines in values, |
| 4831 | # but we know of no workaround that is simple, portable, and efficient. |
| 4832 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4833 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 4834 | # 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] | 4835 | (set) 2>&1 | |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4836 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4837 | *ac_space=\ *) |
| 4838 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 4839 | # turns \\\\ into \\, and sed turns \\ into \). |
| 4840 | sed -n \ |
| 4841 | -e "s/'/'\\\\''/g" \ |
| 4842 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 4843 | ;; |
| 4844 | *) |
| 4845 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 4846 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 4847 | ;; |
| 4848 | esac >> confcache |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4849 | if cmp -s $cache_file confcache; then |
| 4850 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4851 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4852 | if test -w $cache_file; then |
| 4853 | echo "updating cache $cache_file" |
| 4854 | cat confcache > $cache_file |
| 4855 | else |
| 4856 | echo "not updating unwritable cache $cache_file" |
| 4857 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4858 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4859 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 4860 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4861 | 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] | 4862 | |
| 4863 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 4864 | # Let make expand exec_prefix. |
| 4865 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 4866 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4867 | # Any assignment to VPATH causes Sun make to only execute |
| 4868 | # the first set of double-colon rules, so remove it if not needed. |
| 4869 | # If there is a colon in the path, we need to keep it. |
| 4870 | if test "x$srcdir" = x.; then |
| 4871 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 4872 | fi |
| 4873 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4874 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4875 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4876 | DEFS=-DHAVE_CONFIG_H |
| 4877 | |
| 4878 | # Without the "./", some shells look in PATH for config.status. |
| 4879 | : ${CONFIG_STATUS=./config.status} |
| 4880 | |
| 4881 | echo creating $CONFIG_STATUS |
| 4882 | rm -f $CONFIG_STATUS |
| 4883 | cat > $CONFIG_STATUS <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4884 | #! /bin/sh |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4885 | # Generated automatically by configure. |
| 4886 | # Run this file to recreate the current configuration. |
| 4887 | # This directory was configured as follows, |
| 4888 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 4889 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4890 | # $0 $ac_configure_args |
| 4891 | # |
| 4892 | # Compiler output produced by configure, useful for debugging |
| 4893 | # configure, is in ./config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4894 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4895 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4896 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4897 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4898 | case "\$ac_option" in |
| 4899 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4900 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 4901 | 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] | 4902 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4903 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4904 | exit 0 ;; |
| 4905 | -help | --help | --hel | --he | --h) |
| 4906 | echo "\$ac_cs_usage"; exit 0 ;; |
| 4907 | *) echo "\$ac_cs_usage"; exit 1 ;; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4908 | esac |
| 4909 | done |
| 4910 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4911 | ac_given_srcdir=$srcdir |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4912 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4913 | trap 'rm -fr `echo "Makefile \ |
| 4914 | Objects/Makefile \ |
| 4915 | Parser/Makefile \ |
| 4916 | Python/Makefile \ |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 4917 | Modules/Makefile.pre \ |
| 4918 | Modules/Setup.thread config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4919 | EOF |
| 4920 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4921 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4922 | # Protect against being on the right side of a sed subst in config.status. |
| 4923 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 4924 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4925 | $ac_vpsub |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4926 | $extrasub |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4927 | s%@SHELL@%$SHELL%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4928 | s%@CFLAGS@%$CFLAGS%g |
| 4929 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 4930 | s%@CXXFLAGS@%$CXXFLAGS%g |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 4931 | s%@FFLAGS@%$FFLAGS%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4932 | s%@DEFS@%$DEFS%g |
| 4933 | s%@LDFLAGS@%$LDFLAGS%g |
| 4934 | s%@LIBS@%$LIBS%g |
| 4935 | s%@exec_prefix@%$exec_prefix%g |
| 4936 | s%@prefix@%$prefix%g |
| 4937 | s%@program_transform_name@%$program_transform_name%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4938 | s%@bindir@%$bindir%g |
| 4939 | s%@sbindir@%$sbindir%g |
| 4940 | s%@libexecdir@%$libexecdir%g |
| 4941 | s%@datadir@%$datadir%g |
| 4942 | s%@sysconfdir@%$sysconfdir%g |
| 4943 | s%@sharedstatedir@%$sharedstatedir%g |
| 4944 | s%@localstatedir@%$localstatedir%g |
| 4945 | s%@libdir@%$libdir%g |
| 4946 | s%@includedir@%$includedir%g |
| 4947 | s%@oldincludedir@%$oldincludedir%g |
| 4948 | s%@infodir@%$infodir%g |
| 4949 | s%@mandir@%$mandir%g |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 4950 | s%@VERSION@%$VERSION%g |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4951 | s%@MACHDEP@%$MACHDEP%g |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 4952 | s%@SGI_ABI@%$SGI_ABI%g |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 4953 | s%@SET_CXX@%$SET_CXX%g |
| 4954 | s%@MAINOBJ@%$MAINOBJ%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4955 | s%@CC@%$CC%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 4956 | s%@MAKE_LDLIBRARY@%$MAKE_LDLIBRARY%g |
| 4957 | s%@LDLIBRARY@%$LDLIBRARY%g |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 4958 | s%@LINKCC@%$LINKCC%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4959 | s%@RANLIB@%$RANLIB%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4960 | s%@AR@%$AR%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 4961 | s%@INSTALL@%$INSTALL%g |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4962 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 4963 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 4964 | s%@LN@%$LN%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 4965 | s%@OPT@%$OPT%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4966 | s%@CPP@%$CPP%g |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 4967 | s%@LIBTOOL_CRUFT@%$LIBTOOL_CRUFT%g |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 4968 | s%@SO@%$SO%g |
| 4969 | s%@LDSHARED@%$LDSHARED%g |
| 4970 | s%@CCSHARED@%$CCSHARED%g |
| 4971 | s%@LINKFORSHARED@%$LINKFORSHARED%g |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 4972 | s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 4973 | s%@LDLAST@%$LDLAST%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4974 | s%@DLINCLDIR@%$DLINCLDIR%g |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4975 | s%@DYNLOADFILE@%$DYNLOADFILE%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4976 | s%@LIBOBJS@%$LIBOBJS%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4977 | s%@HAVE_GETHOSTBYNAME_R_6_ARG@%$HAVE_GETHOSTBYNAME_R_6_ARG%g |
| 4978 | s%@HAVE_GETHOSTBYNAME_R_5_ARG@%$HAVE_GETHOSTBYNAME_R_5_ARG%g |
| 4979 | 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] | 4980 | s%@HAVE_GETHOSTBYNAME_R@%$HAVE_GETHOSTBYNAME_R%g |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 4981 | s%@HAVE_GETHOSTBYNAME@%$HAVE_GETHOSTBYNAME%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4982 | s%@LIBM@%$LIBM%g |
| 4983 | s%@LIBC@%$LIBC%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4984 | |
| 4985 | CEOF |
| 4986 | EOF |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4987 | |
| 4988 | cat >> $CONFIG_STATUS <<\EOF |
| 4989 | |
| 4990 | # Split the substitutions into bite-sized pieces for seds with |
| 4991 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 4992 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 4993 | ac_file=1 # Number of current file. |
| 4994 | ac_beg=1 # First line for current file. |
| 4995 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 4996 | ac_more_lines=: |
| 4997 | ac_sed_cmds="" |
| 4998 | while $ac_more_lines; do |
| 4999 | if test $ac_beg -gt 1; then |
| 5000 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 5001 | else |
| 5002 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 5003 | fi |
| 5004 | if test ! -s conftest.s$ac_file; then |
| 5005 | ac_more_lines=false |
| 5006 | rm -f conftest.s$ac_file |
| 5007 | else |
| 5008 | if test -z "$ac_sed_cmds"; then |
| 5009 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 5010 | else |
| 5011 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 5012 | fi |
| 5013 | ac_file=`expr $ac_file + 1` |
| 5014 | ac_beg=$ac_end |
| 5015 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 5016 | fi |
| 5017 | done |
| 5018 | if test -z "$ac_sed_cmds"; then |
| 5019 | ac_sed_cmds=cat |
| 5020 | fi |
| 5021 | EOF |
| 5022 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5023 | cat >> $CONFIG_STATUS <<EOF |
| 5024 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 5025 | CONFIG_FILES=\${CONFIG_FILES-"Makefile \ |
| 5026 | Objects/Makefile \ |
| 5027 | Parser/Makefile \ |
| 5028 | Python/Makefile \ |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 5029 | Modules/Makefile.pre \ |
| 5030 | Modules/Setup.thread"} |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5031 | EOF |
| 5032 | cat >> $CONFIG_STATUS <<\EOF |
| 5033 | 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] | 5034 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5035 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5036 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5037 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 5038 | *) ac_file_in="${ac_file}.in" ;; |
| 5039 | esac |
| 5040 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5041 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5042 | |
| 5043 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 5044 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 5045 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 5046 | # The file is in a subdirectory. |
| 5047 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5048 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5049 | # A "../" for each directory in $ac_dir_suffix. |
| 5050 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 5051 | else |
| 5052 | ac_dir_suffix= ac_dots= |
| 5053 | fi |
| 5054 | |
| 5055 | case "$ac_given_srcdir" in |
| 5056 | .) srcdir=. |
| 5057 | if test -z "$ac_dots"; then top_srcdir=. |
| 5058 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 5059 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 5060 | *) # Relative path. |
| 5061 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 5062 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 5063 | esac |
| 5064 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5065 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5066 | echo creating "$ac_file" |
| 5067 | rm -f "$ac_file" |
| 5068 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 5069 | case "$ac_file" in |
| 5070 | *Makefile*) ac_comsub="1i\\ |
| 5071 | # $configure_input" ;; |
| 5072 | *) ac_comsub= ;; |
| 5073 | esac |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5074 | |
| 5075 | 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] | 5076 | sed -e "$ac_comsub |
| 5077 | s%@configure_input@%$configure_input%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5078 | s%@srcdir@%$srcdir%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5079 | s%@top_srcdir@%$top_srcdir%g |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5080 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5081 | fi; done |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5082 | rm -f conftest.s* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5083 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5084 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 5085 | # 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] | 5086 | # |
| 5087 | # ac_d sets the value in "#define NAME VALUE" lines. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5088 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 5089 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5090 | ac_dC='\3' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5091 | ac_dD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5092 | # 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] | 5093 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 5094 | ac_uB='\([ ]\)%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5095 | ac_uC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5096 | ac_uD='\4%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5097 | # 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] | 5098 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 5099 | ac_eB='$%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5100 | ac_eC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5101 | ac_eD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5102 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5103 | if test "${CONFIG_HEADERS+set}" != set; then |
| 5104 | EOF |
| 5105 | cat >> $CONFIG_STATUS <<EOF |
| 5106 | CONFIG_HEADERS="config.h" |
| 5107 | EOF |
| 5108 | cat >> $CONFIG_STATUS <<\EOF |
| 5109 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5110 | 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] | 5111 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5112 | case "$ac_file" in |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5113 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5114 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 5115 | *) ac_file_in="${ac_file}.in" ;; |
| 5116 | esac |
| 5117 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5118 | echo creating $ac_file |
| 5119 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5120 | rm -f conftest.frag conftest.in conftest.out |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5121 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 5122 | cat $ac_file_inputs > conftest.in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5123 | |
| 5124 | EOF |
| 5125 | |
| 5126 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 5127 | # 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] | 5128 | # 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] | 5129 | # Protect against being in an unquoted here document in config.status. |
| 5130 | rm -f conftest.vals |
| 5131 | cat > conftest.hdr <<\EOF |
| 5132 | s/[\\&%]/\\&/g |
| 5133 | s%[\\$`]%\\&%g |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5134 | 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] | 5135 | s%ac_d%ac_u%gp |
| 5136 | s%ac_u%ac_e%gp |
| 5137 | EOF |
| 5138 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 5139 | rm -f conftest.hdr |
| 5140 | |
| 5141 | # This sed command replaces #undef with comments. This is necessary, for |
| 5142 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 5143 | # on some systems where configure will not decide to define it. |
| 5144 | cat >> conftest.vals <<\EOF |
| 5145 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 5146 | EOF |
| 5147 | |
| 5148 | # Break up conftest.vals because some shells have a limit on |
| 5149 | # 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] | 5150 | |
| 5151 | rm -f conftest.tail |
| 5152 | while : |
| 5153 | do |
| 5154 | ac_lines=`grep -c . conftest.vals` |
| 5155 | # grep -c gives empty output for an empty file on some AIX systems. |
| 5156 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 5157 | # Write a limited-size here document to conftest.frag. |
| 5158 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 5159 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 5160 | echo 'CEOF |
| 5161 | sed -f conftest.frag conftest.in > conftest.out |
| 5162 | rm -f conftest.in |
| 5163 | mv conftest.out conftest.in |
| 5164 | ' >> $CONFIG_STATUS |
| 5165 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 5166 | rm -f conftest.vals |
| 5167 | mv conftest.tail conftest.vals |
| 5168 | done |
| 5169 | rm -f conftest.vals |
| 5170 | |
| 5171 | cat >> $CONFIG_STATUS <<\EOF |
| 5172 | rm -f conftest.frag conftest.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5173 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5174 | cat conftest.in >> conftest.h |
| 5175 | rm -f conftest.in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5176 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5177 | echo "$ac_file is unchanged" |
| 5178 | rm -f conftest.h |
| 5179 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5180 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 5181 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 5182 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 5183 | # The file is in a subdirectory. |
| 5184 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 5185 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5186 | rm -f $ac_file |
| 5187 | mv conftest.h $ac_file |
| 5188 | fi |
| 5189 | fi; done |
| 5190 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5191 | EOF |
| 5192 | cat >> $CONFIG_STATUS <<EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 5193 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5194 | EOF |
| 5195 | cat >> $CONFIG_STATUS <<\EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5196 | |
| 5197 | exit 0 |
| 5198 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5199 | chmod +x $CONFIG_STATUS |
| 5200 | rm -fr confdefs* $ac_clean_files |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5201 | 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] | 5202 | |