blob: 8a95a436d709e26d3495fb1ced30ad2ab1993a28 [file] [log] [blame]
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001#! /bin/sh
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002
Neil Schemenauer8ba94452001-02-19 18:18:48 +00003# From configure.in Revision: 1.204
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004
Guido van Rossum627b2d71993-12-24 10:39:16 +00005# Guess values for system-dependent variables and create Makefiles.
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00006# Generated automatically using autoconf version 2.13
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00007# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
Guido van Rossum76be6ed1995-01-02 18:33:54 +00008#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Guido van Rossum627b2d71993-12-24 10:39:16 +000011
Guido van Rossum76be6ed1995-01-02 18:33:54 +000012# Defaults:
13ac_help=
14ac_default_prefix=/usr/local
15# Any additions from configure.in:
16ac_help="$ac_help
Barry Warsawc0d24d82000-06-29 16:12:00 +000017 --with-next-archs='arch1 arch2 ..' build MAB binary"
Guido van Rossum7b3853f1996-07-30 18:09:35 +000018ac_help="$ac_help
Guido van Rossum3dc0a512000-10-05 18:00:06 +000019 --with-next-framework Build (OpenStep|Rhapsody|MacOSX|Darwin) framework"
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000020ac_help="$ac_help
Guido van Rossum3dc0a512000-10-05 18:00:06 +000021 --with-dyld Use (OpenStep|Rhapsody|MacOSX|Darwin) dynamic linker"
Guido van Rossum54ecc3d1999-01-27 17:53:11 +000022ac_help="$ac_help
Barry Warsawc0d24d82000-06-29 16:12:00 +000023 --without-gcc never use gcc"
Guido van Rossum76be6ed1995-01-02 18:33:54 +000024ac_help="$ac_help
Barry Warsawc0d24d82000-06-29 16:12:00 +000025 --with-cxx=<compiler> enable C++ support"
Guido van Rossum95012191999-12-16 17:50:52 +000026ac_help="$ac_help
Neil Schemenauerdfb38e42001-01-27 06:57:08 +000027 --with-suffix=.exe set executable suffix"
28ac_help="$ac_help
Skip Montanarocb853262000-08-30 22:29:48 +000029 --with-pydebug build with Py_DEBUG defined"
30ac_help="$ac_help
Barry Warsawc0d24d82000-06-29 16:12:00 +000031 --with-libs='lib1 ...' link against additional libs"
Guido van Rossuma68acba1996-07-31 17:36:39 +000032ac_help="$ac_help
Neil Schemenauerd32c2492001-01-24 17:25:28 +000033 --with-signal-module disable/enable signal module"
34ac_help="$ac_help
Barry Warsawc0d24d82000-06-29 16:12:00 +000035 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries"
Guido van Rossumec2f0731997-01-22 20:54:01 +000036ac_help="$ac_help
Barry Warsawc0d24d82000-06-29 16:12:00 +000037 --with(out)-threads[=DIRECTORY] disable/enable thread support"
Guido van Rossumec2f0731997-01-22 20:54:01 +000038ac_help="$ac_help
Barry Warsawa0f3c5c2000-06-30 16:39:35 +000039 --with(out)-thread[=DIRECTORY] deprecated; use --with(out)-threads"
Guido van Rossum76be6ed1995-01-02 18:33:54 +000040ac_help="$ac_help
Guido van Rossum9e8181b2000-09-19 00:46:46 +000041 --with-pth use GNU pth threading libraries"
42ac_help="$ac_help
Barry Warsawef82cd72000-06-30 16:21:01 +000043 --with(out)-cycle-gc disable/enable garbage collection"
44ac_help="$ac_help
45 --with-wctype-functions use wctype.h functions"
46ac_help="$ac_help
Barry Warsawc0d24d82000-06-29 16:12:00 +000047 --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking"
Guido van Rossum76be6ed1995-01-02 18:33:54 +000048ac_help="$ac_help
Barry Warsawc0d24d82000-06-29 16:12:00 +000049 --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking"
Guido van Rossum76be6ed1995-01-02 18:33:54 +000050ac_help="$ac_help
Barry Warsawc0d24d82000-06-29 16:12:00 +000051 --with-fpectl enable SIGFPE catching"
Guido van Rossum7f253911997-05-09 02:42:48 +000052ac_help="$ac_help
Barry Warsawc0d24d82000-06-29 16:12:00 +000053 --with-libm=STRING math library"
Guido van Rossum76be6ed1995-01-02 18:33:54 +000054ac_help="$ac_help
Barry Warsawc0d24d82000-06-29 16:12:00 +000055 --with-libc=STRING C library"
Guido van Rossum4c3f57c2001-01-10 20:40:46 +000056ac_help="$ac_help
57 --with-check-import-case enable imported module name case checking"
Guido van Rossum627b2d71993-12-24 10:39:16 +000058
Guido van Rossum7f43da71994-08-01 12:15:30 +000059# Initialize some variables set by options.
60# The variables have the same names as the options, with
61# dashes changed to underlines.
62build=NONE
Guido van Rossum76be6ed1995-01-02 18:33:54 +000063cache_file=./config.cache
64exec_prefix=NONE
Guido van Rossum7f43da71994-08-01 12:15:30 +000065host=NONE
66no_create=
67nonopt=NONE
Guido van Rossum76be6ed1995-01-02 18:33:54 +000068no_recursion=
69prefix=NONE
70program_prefix=NONE
71program_suffix=NONE
72program_transform_name=s,x,x,
Guido van Rossum7f43da71994-08-01 12:15:30 +000073silent=
Guido van Rossum76be6ed1995-01-02 18:33:54 +000074site=
Guido van Rossum7f43da71994-08-01 12:15:30 +000075srcdir=
76target=NONE
77verbose=
Guido van Rossum76be6ed1995-01-02 18:33:54 +000078x_includes=NONE
79x_libraries=NONE
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000080bindir='${exec_prefix}/bin'
81sbindir='${exec_prefix}/sbin'
82libexecdir='${exec_prefix}/libexec'
83datadir='${prefix}/share'
84sysconfdir='${prefix}/etc'
85sharedstatedir='${prefix}/com'
86localstatedir='${prefix}/var'
87libdir='${exec_prefix}/lib'
88includedir='${prefix}/include'
89oldincludedir='/usr/include'
90infodir='${prefix}/info'
91mandir='${prefix}/man'
Guido van Rossum76be6ed1995-01-02 18:33:54 +000092
93# Initialize some other variables.
94subdirs=
Guido van Rossum48bdbfc1996-05-28 22:53:48 +000095MFLAGS= MAKEFLAGS=
Guido van Rossume6c2cf11999-01-08 21:08:33 +000096SHELL=${CONFIG_SHELL-/bin/sh}
Guido van Rossumf78abae1997-01-21 22:02:36 +000097# Maximum number of lines to put in a shell here document.
98ac_max_here_lines=12
Guido van Rossum7f43da71994-08-01 12:15:30 +000099
100ac_prev=
101for ac_option
Guido van Rossum627b2d71993-12-24 10:39:16 +0000102do
Guido van Rossum627b2d71993-12-24 10:39:16 +0000103
Guido van Rossum7f43da71994-08-01 12:15:30 +0000104 # If the previous option needs an argument, assign it.
105 if test -n "$ac_prev"; then
106 eval "$ac_prev=\$ac_option"
107 ac_prev=
108 continue
Guido van Rossum627b2d71993-12-24 10:39:16 +0000109 fi
Guido van Rossum7f43da71994-08-01 12:15:30 +0000110
Guido van Rossum7f43da71994-08-01 12:15:30 +0000111 case "$ac_option" in
112 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
113 *) ac_optarg= ;;
114 esac
115
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000116 # Accept the important Cygnus configure options, so we can diagnose typos.
117
Guido van Rossum7f43da71994-08-01 12:15:30 +0000118 case "$ac_option" in
119
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000120 -bindir | --bindir | --bindi | --bind | --bin | --bi)
121 ac_prev=bindir ;;
122 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
123 bindir="$ac_optarg" ;;
124
125 -build | --build | --buil | --bui | --bu)
Guido van Rossum7f43da71994-08-01 12:15:30 +0000126 ac_prev=build ;;
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000127 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Guido van Rossum7f43da71994-08-01 12:15:30 +0000128 build="$ac_optarg" ;;
129
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000130 -cache-file | --cache-file | --cache-fil | --cache-fi \
131 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
132 ac_prev=cache_file ;;
133 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
134 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
135 cache_file="$ac_optarg" ;;
136
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000137 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
138 ac_prev=datadir ;;
139 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
140 | --da=*)
141 datadir="$ac_optarg" ;;
142
Guido van Rossum7f43da71994-08-01 12:15:30 +0000143 -disable-* | --disable-*)
144 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000145 # Reject names that are not valid shell variable names.
Guido van Rossum7f43da71994-08-01 12:15:30 +0000146 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000147 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +0000148 fi
149 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
150 eval "enable_${ac_feature}=no" ;;
151
152 -enable-* | --enable-*)
153 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000154 # Reject names that are not valid shell variable names.
Guido van Rossum7f43da71994-08-01 12:15:30 +0000155 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000156 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +0000157 fi
158 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
159 case "$ac_option" in
160 *=*) ;;
161 *) ac_optarg=yes ;;
162 esac
163 eval "enable_${ac_feature}='$ac_optarg'" ;;
164
Guido van Rossum7f43da71994-08-01 12:15:30 +0000165 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
166 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
167 | --exec | --exe | --ex)
168 ac_prev=exec_prefix ;;
169 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
170 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
171 | --exec=* | --exe=* | --ex=*)
172 exec_prefix="$ac_optarg" ;;
173
174 -gas | --gas | --ga | --g)
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000175 # Obsolete; use --with-gas.
176 with_gas=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000177
178 -help | --help | --hel | --he)
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +0000179 # Omit some internal or obsolete options to make the list less imposing.
180 # This message is too long to be a string in the A/UX 3.1 sh.
Guido van Rossum7f43da71994-08-01 12:15:30 +0000181 cat << EOF
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +0000182Usage: configure [options] [host]
183Options: [defaults in brackets after descriptions]
184Configuration:
185 --cache-file=FILE cache test results in FILE
186 --help print this message
187 --no-create do not create output files
188 --quiet, --silent do not print \`checking...' messages
189 --version print the version of autoconf that created configure
190Directory and file names:
191 --prefix=PREFIX install architecture-independent files in PREFIX
192 [$ac_default_prefix]
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000193 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +0000194 [same as prefix]
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000195 --bindir=DIR user executables in DIR [EPREFIX/bin]
196 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
197 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
198 --datadir=DIR read-only architecture-independent data in DIR
199 [PREFIX/share]
200 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
201 --sharedstatedir=DIR modifiable architecture-independent data in DIR
202 [PREFIX/com]
203 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
204 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
205 --includedir=DIR C header files in DIR [PREFIX/include]
206 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
207 --infodir=DIR info documentation in DIR [PREFIX/info]
208 --mandir=DIR man documentation in DIR [PREFIX/man]
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +0000209 --srcdir=DIR find the sources in DIR [configure dir or ..]
210 --program-prefix=PREFIX prepend PREFIX to installed program names
211 --program-suffix=SUFFIX append SUFFIX to installed program names
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000212 --program-transform-name=PROGRAM
213 run sed PROGRAM on installed program names
214EOF
215 cat << EOF
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +0000216Host type:
217 --build=BUILD configure for building on BUILD [BUILD=HOST]
218 --host=HOST configure for HOST [guessed]
219 --target=TARGET configure for TARGET [TARGET=HOST]
220Features and packages:
221 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
222 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
223 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
224 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
225 --x-includes=DIR X include files are in DIR
226 --x-libraries=DIR X library files are in DIR
Guido van Rossum7f43da71994-08-01 12:15:30 +0000227EOF
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000228 if test -n "$ac_help"; then
229 echo "--enable and --with options recognized:$ac_help"
230 fi
Guido van Rossum7f43da71994-08-01 12:15:30 +0000231 exit 0 ;;
232
233 -host | --host | --hos | --ho)
234 ac_prev=host ;;
235 -host=* | --host=* | --hos=* | --ho=*)
236 host="$ac_optarg" ;;
237
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000238 -includedir | --includedir | --includedi | --included | --include \
239 | --includ | --inclu | --incl | --inc)
240 ac_prev=includedir ;;
241 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
242 | --includ=* | --inclu=* | --incl=* | --inc=*)
243 includedir="$ac_optarg" ;;
244
245 -infodir | --infodir | --infodi | --infod | --info | --inf)
246 ac_prev=infodir ;;
247 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
248 infodir="$ac_optarg" ;;
249
250 -libdir | --libdir | --libdi | --libd)
251 ac_prev=libdir ;;
252 -libdir=* | --libdir=* | --libdi=* | --libd=*)
253 libdir="$ac_optarg" ;;
254
255 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
256 | --libexe | --libex | --libe)
257 ac_prev=libexecdir ;;
258 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
259 | --libexe=* | --libex=* | --libe=*)
260 libexecdir="$ac_optarg" ;;
261
262 -localstatedir | --localstatedir | --localstatedi | --localstated \
263 | --localstate | --localstat | --localsta | --localst \
264 | --locals | --local | --loca | --loc | --lo)
265 ac_prev=localstatedir ;;
266 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
267 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
268 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
269 localstatedir="$ac_optarg" ;;
270
271 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
272 ac_prev=mandir ;;
273 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
274 mandir="$ac_optarg" ;;
275
Guido van Rossum7f43da71994-08-01 12:15:30 +0000276 -nfp | --nfp | --nf)
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000277 # Obsolete; use --without-fp.
278 with_fp=no ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000279
280 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
281 | --no-cr | --no-c)
282 no_create=yes ;;
283
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000284 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
285 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
286 no_recursion=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000287
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000288 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
289 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
290 | --oldin | --oldi | --old | --ol | --o)
291 ac_prev=oldincludedir ;;
292 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
293 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
294 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
295 oldincludedir="$ac_optarg" ;;
296
Guido van Rossum7f43da71994-08-01 12:15:30 +0000297 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
298 ac_prev=prefix ;;
299 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
300 prefix="$ac_optarg" ;;
301
302 -program-prefix | --program-prefix | --program-prefi | --program-pref \
303 | --program-pre | --program-pr | --program-p)
304 ac_prev=program_prefix ;;
305 -program-prefix=* | --program-prefix=* | --program-prefi=* \
306 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
307 program_prefix="$ac_optarg" ;;
308
309 -program-suffix | --program-suffix | --program-suffi | --program-suff \
310 | --program-suf | --program-su | --program-s)
311 ac_prev=program_suffix ;;
312 -program-suffix=* | --program-suffix=* | --program-suffi=* \
313 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
314 program_suffix="$ac_optarg" ;;
315
316 -program-transform-name | --program-transform-name \
317 | --program-transform-nam | --program-transform-na \
318 | --program-transform-n | --program-transform- \
319 | --program-transform | --program-transfor \
320 | --program-transfo | --program-transf \
321 | --program-trans | --program-tran \
322 | --progr-tra | --program-tr | --program-t)
323 ac_prev=program_transform_name ;;
324 -program-transform-name=* | --program-transform-name=* \
325 | --program-transform-nam=* | --program-transform-na=* \
326 | --program-transform-n=* | --program-transform-=* \
327 | --program-transform=* | --program-transfor=* \
328 | --program-transfo=* | --program-transf=* \
329 | --program-trans=* | --program-tran=* \
330 | --progr-tra=* | --program-tr=* | --program-t=*)
331 program_transform_name="$ac_optarg" ;;
332
333 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
334 | -silent | --silent | --silen | --sile | --sil)
335 silent=yes ;;
336
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000337 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
338 ac_prev=sbindir ;;
339 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
340 | --sbi=* | --sb=*)
341 sbindir="$ac_optarg" ;;
342
343 -sharedstatedir | --sharedstatedir | --sharedstatedi \
344 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
345 | --sharedst | --shareds | --shared | --share | --shar \
346 | --sha | --sh)
347 ac_prev=sharedstatedir ;;
348 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
349 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
350 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
351 | --sha=* | --sh=*)
352 sharedstatedir="$ac_optarg" ;;
353
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000354 -site | --site | --sit)
355 ac_prev=site ;;
356 -site=* | --site=* | --sit=*)
357 site="$ac_optarg" ;;
358
Guido van Rossum7f43da71994-08-01 12:15:30 +0000359 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
360 ac_prev=srcdir ;;
361 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
362 srcdir="$ac_optarg" ;;
363
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000364 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
365 | --syscon | --sysco | --sysc | --sys | --sy)
366 ac_prev=sysconfdir ;;
367 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
368 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
369 sysconfdir="$ac_optarg" ;;
370
Guido van Rossum7f43da71994-08-01 12:15:30 +0000371 -target | --target | --targe | --targ | --tar | --ta | --t)
372 ac_prev=target ;;
373 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
374 target="$ac_optarg" ;;
375
376 -v | -verbose | --verbose | --verbos | --verbo | --verb)
377 verbose=yes ;;
378
379 -version | --version | --versio | --versi | --vers)
Guido van Rossum8d6e8af2000-10-30 17:45:07 +0000380 echo "configure generated by autoconf version 2.13"
Guido van Rossum7f43da71994-08-01 12:15:30 +0000381 exit 0 ;;
382
383 -with-* | --with-*)
384 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000385 # Reject names that are not valid shell variable names.
Guido van Rossum7f43da71994-08-01 12:15:30 +0000386 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +0000388 fi
389 ac_package=`echo $ac_package| sed 's/-/_/g'`
390 case "$ac_option" in
391 *=*) ;;
392 *) ac_optarg=yes ;;
393 esac
394 eval "with_${ac_package}='$ac_optarg'" ;;
395
396 -without-* | --without-*)
397 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000398 # Reject names that are not valid shell variable names.
Guido van Rossum7f43da71994-08-01 12:15:30 +0000399 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000400 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +0000401 fi
402 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 eval "with_${ac_package}=no" ;;
404
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000405 --x)
406 # Obsolete; use --with-x.
407 with_x=yes ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000408
409 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
410 | --x-incl | --x-inc | --x-in | --x-i)
411 ac_prev=x_includes ;;
412 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
413 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
414 x_includes="$ac_optarg" ;;
415
416 -x-libraries | --x-libraries | --x-librarie | --x-librari \
417 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
418 ac_prev=x_libraries ;;
419 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
420 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
421 x_libraries="$ac_optarg" ;;
422
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000423 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +0000424 ;;
425
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000426 *)
Guido van Rossum0a516c91994-09-12 10:58:40 +0000427 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000428 echo "configure: warning: $ac_option: invalid host type" 1>&2
Guido van Rossum7f43da71994-08-01 12:15:30 +0000429 fi
Guido van Rossum0a516c91994-09-12 10:58:40 +0000430 if test "x$nonopt" != xNONE; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000431 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +0000432 fi
433 nonopt="$ac_option"
434 ;;
435
436 esac
Guido van Rossum627b2d71993-12-24 10:39:16 +0000437done
438
Guido van Rossum7f43da71994-08-01 12:15:30 +0000439if test -n "$ac_prev"; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000440 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +0000441fi
442
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +0000443trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
Guido van Rossum7f43da71994-08-01 12:15:30 +0000444
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000445# File descriptor usage:
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +0000446# 0 standard input
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000447# 1 file creation
448# 2 errors and warnings
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +0000449# 3 some systems may open it to /dev/tty
450# 4 used on the Kubota Titan
451# 6 checking for... messages and results
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000452# 5 compiler messages saved in config.log
453if test "$silent" = yes; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +0000454 exec 6>/dev/null
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000455else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +0000456 exec 6>&1
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000457fi
458exec 5>./config.log
459
460echo "\
461This file contains any messages produced by compilers while
462running configure, to aid debugging if configure makes a mistake.
463" 1>&5
464
465# Strip out --no-create and --no-recursion so they do not pile up.
466# Also quote any args containing shell metacharacters.
467ac_configure_args=
468for ac_arg
469do
Guido van Rossum7f43da71994-08-01 12:15:30 +0000470 case "$ac_arg" in
471 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
472 | --no-cr | --no-c) ;;
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
475 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
476 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
477 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000478 esac
479done
Guido van Rossum627b2d71993-12-24 10:39:16 +0000480
481# NLS nuisances.
Guido van Rossumf78abae1997-01-21 22:02:36 +0000482# Only set these to C if already set. These must not be set unconditionally
483# because not all systems understand e.g. LANG=C (notably SCO).
484# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
485# Non-C LC_CTYPE values break the ctype check.
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000486if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Guido van Rossumf78abae1997-01-21 22:02:36 +0000487if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
488if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
489if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Guido van Rossum627b2d71993-12-24 10:39:16 +0000490
Guido van Rossum7f43da71994-08-01 12:15:30 +0000491# confdefs.h avoids OS command line length limits that DEFS can exceed.
492rm -rf conftest* confdefs.h
Guido van Rossum627b2d71993-12-24 10:39:16 +0000493# AIX cpp loses on an empty file, so make sure it contains at least a newline.
494echo > confdefs.h
Guido van Rossum627b2d71993-12-24 10:39:16 +0000495
496# A filename unique to this package, relative to the directory that
497# configure is in, which we can look for to find out if srcdir is correct.
Guido van Rossum7f43da71994-08-01 12:15:30 +0000498ac_unique_file=Include/object.h
Guido van Rossum627b2d71993-12-24 10:39:16 +0000499
500# Find the source files, if location was not specified.
501if test -z "$srcdir"; then
Guido van Rossum7f43da71994-08-01 12:15:30 +0000502 ac_srcdir_defaulted=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000503 # Try the directory containing this script, then its parent.
Guido van Rossum7f43da71994-08-01 12:15:30 +0000504 ac_prog=$0
505 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
506 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
507 srcdir=$ac_confdir
508 if test ! -r $srcdir/$ac_unique_file; then
Guido van Rossum627b2d71993-12-24 10:39:16 +0000509 srcdir=..
510 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000511else
512 ac_srcdir_defaulted=no
Guido van Rossum627b2d71993-12-24 10:39:16 +0000513fi
Guido van Rossum7f43da71994-08-01 12:15:30 +0000514if test ! -r $srcdir/$ac_unique_file; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000515 if test "$ac_srcdir_defaulted" = yes; then
516 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
Guido van Rossum627b2d71993-12-24 10:39:16 +0000517 else
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000518 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
Guido van Rossum627b2d71993-12-24 10:39:16 +0000519 fi
Guido van Rossum627b2d71993-12-24 10:39:16 +0000520fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000521srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
522
523# Prefer explicitly selected file to automatically selected ones.
524if test -z "$CONFIG_SITE"; then
525 if test "x$prefix" != xNONE; then
526 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
527 else
528 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
529 fi
530fi
531for ac_site_file in $CONFIG_SITE; do
532 if test -r "$ac_site_file"; then
533 echo "loading site script $ac_site_file"
534 . "$ac_site_file"
535 fi
536done
537
538if test -r "$cache_file"; then
539 echo "loading cache $cache_file"
Guido van Rossum8d6e8af2000-10-30 17:45:07 +0000540 . $cache_file
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000541else
542 echo "creating cache $cache_file"
543 > $cache_file
544fi
545
Guido van Rossum7f43da71994-08-01 12:15:30 +0000546ac_ext=c
Guido van Rossum0a516c91994-09-12 10:58:40 +0000547# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000548ac_cpp='$CPP $CPPFLAGS'
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000549ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Guido van Rossume6c2cf11999-01-08 21:08:33 +0000550ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Guido van Rossumf78abae1997-01-21 22:02:36 +0000551cross_compiling=$ac_cv_prog_cc_cross
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000552
Guido van Rossume6c2cf11999-01-08 21:08:33 +0000553ac_exeext=
554ac_objext=o
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000555if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
556 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
557 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
558 ac_n= ac_c='
559' ac_t=' '
560 else
561 ac_n=-n ac_c= ac_t=
562 fi
563else
564 ac_n= ac_c='\c' ac_t=
565fi
Guido van Rossum627b2d71993-12-24 10:39:16 +0000566
Guido van Rossum0a516c91994-09-12 10:58:40 +0000567
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000568
Guido van Rossum627b2d71993-12-24 10:39:16 +0000569
Guido van Rossum1fd74a71997-07-19 19:36:02 +0000570# Set VERSION so we only need to edit in one place (i.e., here)
571
Neil Schemenauer7d645772001-01-17 21:59:33 +0000572VERSION=2.1
Guido van Rossum1fd74a71997-07-19 19:36:02 +0000573
Guido van Rossum3dc0a512000-10-05 18:00:06 +0000574# NEXTSTEP|MacOSX|Darwin stuff
Guido van Rossum54ecc3d1999-01-27 17:53:11 +0000575if test -f /usr/lib/NextStep/software_version -o -f /System/Library/CoreServices/software_version ; then
Guido van Rossum563e7081996-09-10 18:20:48 +0000576
577 echo $ac_n "checking for --with-next-archs""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +0000578echo "configure:579: checking for --with-next-archs" >&5
Guido van Rossum563e7081996-09-10 18:20:48 +0000579 # Check whether --with-next-archs or --without-next-archs was given.
Guido van Rossum7b3853f1996-07-30 18:09:35 +0000580if test "${with_next_archs+set}" = set; then
581 withval="$with_next_archs"
582
Guido van Rossum563e7081996-09-10 18:20:48 +0000583 if test -n "$withval"; then
584 ac_arch_flags=`/usr/lib/arch_tool -archify_list $withval`
585 # GCC does not currently support multi archs on the NeXT
586 with_gcc=no
587 fi
588 echo "$ac_t""$with_next_archs" 1>&6
589
590else
591 echo "$ac_t""none: using `arch`" 1>&6
Guido van Rossum7b3853f1996-07-30 18:09:35 +0000592fi
593
Guido van Rossum563e7081996-09-10 18:20:48 +0000594
595 if test -z "$MACHDEP"
596 then
Guido van Rossum3dc0a512000-10-05 18:00:06 +0000597 ac_sys_system=`uname -s`
598 if test "$ac_sys_system" = "Darwin" ; then
599 ac_sys_release=`uname -r`
600 else
Guido van Rossum54ecc3d1999-01-27 17:53:11 +0000601 set X `hostinfo | egrep '(NeXT Mach|Kernel Release).*:' | \
Guido van Rossum3dc0a512000-10-05 18:00:06 +0000602 sed -e 's/://' -e 's/\./_/'` && \
603 ac_sys_system=next && ac_sys_release=$4
604 fi
Guido van Rossum563e7081996-09-10 18:20:48 +0000605
Guido van Rossum3dc0a512000-10-05 18:00:06 +0000606 MACHDEP="$ac_sys_system$ac_sys_release"
Guido van Rossum563e7081996-09-10 18:20:48 +0000607 fi
608fi
Guido van Rossum7b3853f1996-07-30 18:09:35 +0000609
Guido van Rossum54ecc3d1999-01-27 17:53:11 +0000610# Check whether --with-next-framework or --without-next-framework was given.
611if test "${with_next_framework+set}" = set; then
612 withval="$with_next_framework"
613 :
614fi
615
616# Check whether --with-dyld or --without-dyld was given.
617if test "${with_dyld+set}" = set; then
618 withval="$with_dyld"
619 :
620fi
621
Guido van Rossum91922671997-10-09 20:24:13 +0000622
Guido van Rossum7b3853f1996-07-30 18:09:35 +0000623# Set name for machine-dependent library files
624
625echo $ac_n "checking MACHDEP""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +0000626echo "configure:627: checking MACHDEP" >&5
Guido van Rossum7b3853f1996-07-30 18:09:35 +0000627if test -z "$MACHDEP"
628then
Guido van Rossum563e7081996-09-10 18:20:48 +0000629 ac_sys_system=`uname -s`
Trent Mick635f6fb2000-08-23 21:33:05 +0000630 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64"; then
Guido van Rossum563e7081996-09-10 18:20:48 +0000631 ac_sys_release=`uname -v`
Guido van Rossum7b3853f1996-07-30 18:09:35 +0000632 else
Guido van Rossum563e7081996-09-10 18:20:48 +0000633 ac_sys_release=`uname -r`
Guido van Rossum7b3853f1996-07-30 18:09:35 +0000634 fi
Guido van Rossum563e7081996-09-10 18:20:48 +0000635 ac_md_system=`echo $ac_sys_system |
636 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
637 ac_md_release=`echo $ac_sys_release |
638 tr -d '/ ' | sed 's/\..*//'`
Guido van Rossumb97ef171997-09-28 05:44:03 +0000639 MACHDEP="$ac_md_system$ac_md_release"
Guido van Rossum563e7081996-09-10 18:20:48 +0000640
Guido van Rossum07397971997-04-29 21:49:50 +0000641 case $MACHDEP in
Guido van Rossumb97ef171997-09-28 05:44:03 +0000642 '') MACHDEP="unknown";;
Guido van Rossum7b3853f1996-07-30 18:09:35 +0000643 esac
644fi
Guido van Rossum91922671997-10-09 20:24:13 +0000645
646#
647# SGI compilers allow the specification of the both the ABI and the
648# ISA on the command line. Depending on the values of these switches,
649# different and often incompatable code will be generated.
650#
651# The SGI_ABI variable can be used to modify the CC and LDFLAGS and
652# thus supply support for various ABI/ISA combinations. The MACHDEP
653# variable is also adjusted.
654#
655
656if test ! -z "$SGI_ABI"
657then
658 CC="cc $SGI_ABI"
659 LDFLAGS="$SGI_ABI $LDFLAGS"
660 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
661fi
Guido van Rossum7b3853f1996-07-30 18:09:35 +0000662echo "$ac_t""$MACHDEP" 1>&6
663
Guido van Rossum627b2d71993-12-24 10:39:16 +0000664# checks for alternative programs
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +0000665echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +0000666echo "configure:667: checking for --without-gcc" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000667# Check whether --with-gcc or --without-gcc was given.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000668if test "${with_gcc+set}" = set; then
669 withval="$with_gcc"
Guido van Rossum7f43da71994-08-01 12:15:30 +0000670
671 case $withval in
Guido van Rossumda88dad1995-01-26 00:46:29 +0000672 no) CC=cc
673 without_gcc=yes;;
674 yes) CC=gcc
675 without_gcc=no;;
676 *) CC=$withval
677 without_gcc=$withval;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000678 esac
Guido van Rossumda88dad1995-01-26 00:46:29 +0000679else
Guido van Rossume77438c1995-09-13 18:59:59 +0000680
Guido van Rossum7b3853f1996-07-30 18:09:35 +0000681 case $ac_sys_system in
Guido van Rossume77438c1995-09-13 18:59:59 +0000682 OSF1) CC=cc
683 without_gcc=;;
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +0000684 AIX*) CC=cc_r
685 without_gcc=;;
Guido van Rossum7a5f4201999-01-12 20:30:23 +0000686 BeOS*)
Guido van Rossum7a5f4201999-01-12 20:30:23 +0000687 case $BE_HOST_CPU in
688 ppc)
Fred Drake5790be12000-10-09 17:06:13 +0000689 CC=mwcc
Guido van Rossum7a5f4201999-01-12 20:30:23 +0000690 without_gcc=yes
Fred Drake5790be12000-10-09 17:06:13 +0000691 OPT="-O -D'DL_EXPORT(RTYPE)=__declspec(dllexport) RTYPE' -D'DL_IMPORT(RTYPE)=__declspec(dllexport) RTYPE' -export pragma"
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +0000692 CCSHARED="-UDL_IMPORT -D'DL_IMPORT(RTYPE)=__declspec(dllimport) RTYPE'"
Guido van Rossum7a5f4201999-01-12 20:30:23 +0000693 LDFLAGS="$LDFLAGS -nodup"
Guido van Rossum7a5f4201999-01-12 20:30:23 +0000694 ;;
695 x86)
Fred Drake5790be12000-10-09 17:06:13 +0000696 CC=gcc
Guido van Rossum7a5f4201999-01-12 20:30:23 +0000697 without_gcc=no
Fred Drake5790be12000-10-09 17:06:13 +0000698 OPT=-O
Guido van Rossum7a5f4201999-01-12 20:30:23 +0000699 ;;
700 *)
Fred Drake5790be12000-10-09 17:06:13 +0000701 { echo "configure: error: Unknown BeOS platform \"$BE_HOST_CPU\"" 1>&2; exit 1; }
Guido van Rossum7a5f4201999-01-12 20:30:23 +0000702 ;;
703 esac
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +0000704 AR="\$(srcdir)/Modules/ar_beos"
705 RANLIB=:
Guido van Rossum7a5f4201999-01-12 20:30:23 +0000706 ;;
Trent Mick635f6fb2000-08-23 21:33:05 +0000707 Monterey*)
708 RANLIB=:
709 without_gcc=;;
Guido van Rossume77438c1995-09-13 18:59:59 +0000710 *) without_gcc=no;;
711 esac
Guido van Rossum7f43da71994-08-01 12:15:30 +0000712fi
713
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +0000714echo "$ac_t""$without_gcc" 1>&6
Guido van Rossumda88dad1995-01-26 00:46:29 +0000715
Guido van Rossum95012191999-12-16 17:50:52 +0000716
717
Neil Schemenauerd32c2492001-01-24 17:25:28 +0000718MAINOBJ=Modules/python.o
Guido van Rossum95012191999-12-16 17:50:52 +0000719echo $ac_n "checking for --with-cxx=<compiler>""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +0000720echo "configure:721: checking for --with-cxx=<compiler>" >&5
Guido van Rossum95012191999-12-16 17:50:52 +0000721# Check whether --with-cxx or --without-cxx was given.
722if test "${with_cxx+set}" = set; then
723 withval="$with_cxx"
724
Martin v. Löwis22352952000-12-13 17:37:02 +0000725 check_cxx=no
Guido van Rossum95012191999-12-16 17:50:52 +0000726 case $withval in
727 no) CXX=
728 with_cxx=no;;
729 *) CXX=$withval
Neil Schemenauerd32c2492001-01-24 17:25:28 +0000730 MAINOBJ=Modules/ccpython.o
Guido van Rossum95012191999-12-16 17:50:52 +0000731 with_cxx=$withval;;
732 esac
733else
734
735 with_cxx=no
Martin v. Löwis22352952000-12-13 17:37:02 +0000736 check_cxx=yes
Guido van Rossum95012191999-12-16 17:50:52 +0000737
738fi
739
740echo "$ac_t""$with_cxx" 1>&6
Martin v. Löwis22352952000-12-13 17:37:02 +0000741
742
743if test "$check_cxx" = "yes"
744then
745 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
746do
747# Extract the first word of "$ac_prog", so it can be a program name with args.
748set dummy $ac_prog; ac_word=$2
749echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +0000750echo "configure:751: checking for $ac_word" >&5
Martin v. Löwis22352952000-12-13 17:37:02 +0000751if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
753else
754 if test -n "$CXX"; then
755 ac_cv_prog_CXX="$CXX" # Let the user override the test.
756else
757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
758 ac_dummy="$PATH"
759 for ac_dir in $ac_dummy; do
760 test -z "$ac_dir" && ac_dir=.
761 if test -f $ac_dir/$ac_word; then
762 ac_cv_prog_CXX="$ac_prog"
763 break
764 fi
765 done
766 IFS="$ac_save_ifs"
767fi
768fi
769CXX="$ac_cv_prog_CXX"
770if test -n "$CXX"; then
771 echo "$ac_t""$CXX" 1>&6
772else
773 echo "$ac_t""no" 1>&6
774fi
775
776test -n "$CXX" && break
777done
778test -n "$CXX" || CXX="notfound"
779
780 if test "$CXX" = "notfound"
781 then
782 CXX=
783 else
784 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +0000785echo "configure:786: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
Martin v. Löwis22352952000-12-13 17:37:02 +0000786
787ac_ext=C
788# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
789ac_cpp='$CXXCPP $CPPFLAGS'
790ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
791ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
792cross_compiling=$ac_cv_prog_cxx_cross
793
794cat > conftest.$ac_ext << EOF
795
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +0000796#line 797 "configure"
Martin v. Löwis22352952000-12-13 17:37:02 +0000797#include "confdefs.h"
798
799int main(){return(0);}
800EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +0000801if { (eval echo configure:802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Martin v. Löwis22352952000-12-13 17:37:02 +0000802 ac_cv_prog_cxx_works=yes
803 # If we can't run a trivial program, we are probably using a cross compiler.
804 if (./conftest; exit) 2>/dev/null; then
805 ac_cv_prog_cxx_cross=no
806 else
807 ac_cv_prog_cxx_cross=yes
808 fi
809else
810 echo "configure: failed program was:" >&5
811 cat conftest.$ac_ext >&5
812 ac_cv_prog_cxx_works=no
813fi
814rm -fr conftest*
815ac_ext=c
816# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
817ac_cpp='$CPP $CPPFLAGS'
818ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
819ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
820cross_compiling=$ac_cv_prog_cc_cross
821
822echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
823if test $ac_cv_prog_cxx_works = no; then
824 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
825fi
826echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +0000827echo "configure:828: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
Martin v. Löwis22352952000-12-13 17:37:02 +0000828echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
829cross_compiling=$ac_cv_prog_cxx_cross
830
831 fi
832fi
833
Guido van Rossum8b131c51995-03-09 14:10:13 +0000834# If the user switches compilers, we can't believe the cache
835if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
836then
837 { echo "configure: error: cached CC is different -- throw away $cache_file
838(it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; }
839fi
840
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000841# Extract the first word of "gcc", so it can be a program name with args.
842set dummy gcc; ac_word=$2
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +0000843echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +0000844echo "configure:845: checking for $ac_word" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +0000845if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +0000846 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000847else
848 if test -n "$CC"; then
849 ac_cv_prog_CC="$CC" # Let the user override the test.
850else
Guido van Rossume6c2cf11999-01-08 21:08:33 +0000851 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
852 ac_dummy="$PATH"
853 for ac_dir in $ac_dummy; do
Guido van Rossum7f43da71994-08-01 12:15:30 +0000854 test -z "$ac_dir" && ac_dir=.
855 if test -f $ac_dir/$ac_word; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000856 ac_cv_prog_CC="gcc"
Guido van Rossum627b2d71993-12-24 10:39:16 +0000857 break
858 fi
859 done
Guido van Rossum7f43da71994-08-01 12:15:30 +0000860 IFS="$ac_save_ifs"
Guido van Rossum627b2d71993-12-24 10:39:16 +0000861fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000862fi
863CC="$ac_cv_prog_CC"
864if test -n "$CC"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +0000865 echo "$ac_t""$CC" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000866else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +0000867 echo "$ac_t""no" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000868fi
Guido van Rossum627b2d71993-12-24 10:39:16 +0000869
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000870if test -z "$CC"; then
871 # Extract the first word of "cc", so it can be a program name with args.
872set dummy cc; ac_word=$2
873echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +0000874echo "configure:875: checking for $ac_word" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +0000875if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000876 echo $ac_n "(cached) $ac_c" 1>&6
877else
878 if test -n "$CC"; then
879 ac_cv_prog_CC="$CC" # Let the user override the test.
880else
Guido van Rossume6c2cf11999-01-08 21:08:33 +0000881 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000882 ac_prog_rejected=no
Guido van Rossume6c2cf11999-01-08 21:08:33 +0000883 ac_dummy="$PATH"
884 for ac_dir in $ac_dummy; do
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000885 test -z "$ac_dir" && ac_dir=.
886 if test -f $ac_dir/$ac_word; then
887 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
888 ac_prog_rejected=yes
889 continue
890 fi
891 ac_cv_prog_CC="cc"
892 break
893 fi
894 done
895 IFS="$ac_save_ifs"
896if test $ac_prog_rejected = yes; then
897 # We found a bogon in the path, so make sure we never use it.
898 set dummy $ac_cv_prog_CC
899 shift
900 if test $# -gt 0; then
901 # We chose a different compiler from the bogus one.
902 # However, it has the same basename, so the bogon will be chosen
903 # first if we set CC to just the basename; use the full file name.
904 shift
905 set dummy "$ac_dir/$ac_word" "$@"
906 shift
907 ac_cv_prog_CC="$@"
908 fi
909fi
910fi
911fi
912CC="$ac_cv_prog_CC"
913if test -n "$CC"; then
914 echo "$ac_t""$CC" 1>&6
915else
916 echo "$ac_t""no" 1>&6
917fi
918
Guido van Rossume6c2cf11999-01-08 21:08:33 +0000919 if test -z "$CC"; then
920 case "`uname -s`" in
Guido van Rossum8d6e8af2000-10-30 17:45:07 +0000921 *win32* | *WIN32*)
Guido van Rossume6c2cf11999-01-08 21:08:33 +0000922 # Extract the first word of "cl", so it can be a program name with args.
923set dummy cl; ac_word=$2
924echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +0000925echo "configure:926: checking for $ac_word" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +0000926if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
Guido van Rossume6c2cf11999-01-08 21:08:33 +0000927 echo $ac_n "(cached) $ac_c" 1>&6
928else
929 if test -n "$CC"; then
930 ac_cv_prog_CC="$CC" # Let the user override the test.
931else
932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
933 ac_dummy="$PATH"
934 for ac_dir in $ac_dummy; do
935 test -z "$ac_dir" && ac_dir=.
936 if test -f $ac_dir/$ac_word; then
937 ac_cv_prog_CC="cl"
938 break
939 fi
940 done
941 IFS="$ac_save_ifs"
942fi
943fi
944CC="$ac_cv_prog_CC"
945if test -n "$CC"; then
946 echo "$ac_t""$CC" 1>&6
947else
948 echo "$ac_t""no" 1>&6
949fi
950 ;;
951 esac
952 fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000953 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
954fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000955
Guido van Rossum8d6e8af2000-10-30 17:45:07 +0000956echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +0000957echo "configure:958: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +0000958
959ac_ext=c
960# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
961ac_cpp='$CPP $CPPFLAGS'
962ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Guido van Rossume6c2cf11999-01-08 21:08:33 +0000963ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Guido van Rossumf78abae1997-01-21 22:02:36 +0000964cross_compiling=$ac_cv_prog_cc_cross
965
Guido van Rossume6c2cf11999-01-08 21:08:33 +0000966cat > conftest.$ac_ext << EOF
967
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +0000968#line 969 "configure"
Guido van Rossumf78abae1997-01-21 22:02:36 +0000969#include "confdefs.h"
Guido van Rossume6c2cf11999-01-08 21:08:33 +0000970
Guido van Rossumf78abae1997-01-21 22:02:36 +0000971main(){return(0);}
972EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +0000973if { (eval echo configure:974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossumf78abae1997-01-21 22:02:36 +0000974 ac_cv_prog_cc_works=yes
975 # If we can't run a trivial program, we are probably using a cross compiler.
976 if (./conftest; exit) 2>/dev/null; then
977 ac_cv_prog_cc_cross=no
978 else
979 ac_cv_prog_cc_cross=yes
980 fi
981else
982 echo "configure: failed program was:" >&5
983 cat conftest.$ac_ext >&5
984 ac_cv_prog_cc_works=no
985fi
986rm -fr conftest*
Guido van Rossume6c2cf11999-01-08 21:08:33 +0000987ac_ext=c
988# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
989ac_cpp='$CPP $CPPFLAGS'
990ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
991ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
992cross_compiling=$ac_cv_prog_cc_cross
Guido van Rossumf78abae1997-01-21 22:02:36 +0000993
994echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
995if test $ac_cv_prog_cc_works = no; then
996 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
997fi
Guido van Rossum8d6e8af2000-10-30 17:45:07 +0000998echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +0000999echo "configure:1000: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00001000echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1001cross_compiling=$ac_cv_prog_cc_cross
1002
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001003echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001004echo "configure:1005: checking whether we are using GNU C" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00001005if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001006 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001007else
1008 cat > conftest.c <<EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00001009#ifdef __GNUC__
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001010 yes;
Guido van Rossum627b2d71993-12-24 10:39:16 +00001011#endif
1012EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001013if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001014 ac_cv_prog_gcc=yes
1015else
1016 ac_cv_prog_gcc=no
1017fi
1018fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001019
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001020echo "$ac_t""$ac_cv_prog_gcc" 1>&6
Guido van Rossumf78abae1997-01-21 22:02:36 +00001021
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001022if test $ac_cv_prog_gcc = yes; then
1023 GCC=yes
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001024else
1025 GCC=
1026fi
1027
1028ac_test_CFLAGS="${CFLAGS+set}"
1029ac_save_CFLAGS="$CFLAGS"
1030CFLAGS=
1031echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001032echo "configure:1033: checking whether ${CC-cc} accepts -g" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00001033if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001034 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001035else
1036 echo 'void f(){}' > conftest.c
1037if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
Guido van Rossumf78abae1997-01-21 22:02:36 +00001038 ac_cv_prog_cc_g=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001039else
Guido van Rossumf78abae1997-01-21 22:02:36 +00001040 ac_cv_prog_cc_g=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00001041fi
1042rm -f conftest*
1043
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001044fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001045
Guido van Rossumf78abae1997-01-21 22:02:36 +00001046echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001047if test "$ac_test_CFLAGS" = set; then
1048 CFLAGS="$ac_save_CFLAGS"
1049elif test $ac_cv_prog_cc_g = yes; then
1050 if test "$GCC" = yes; then
Guido van Rossumf78abae1997-01-21 22:02:36 +00001051 CFLAGS="-g -O2"
1052 else
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001053 CFLAGS="-g"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001054 fi
1055else
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001056 if test "$GCC" = yes; then
1057 CFLAGS="-O2"
1058 else
1059 CFLAGS=
1060 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001061fi
1062
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001063echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001064echo "configure:1065: checking for Cygwin environment" >&5
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001065if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1067else
1068 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001069#line 1070 "configure"
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001070#include "confdefs.h"
Guido van Rossum76c5fe21997-08-14 19:45:07 +00001071
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001072int main() {
1073
1074#ifndef __CYGWIN__
1075#define __CYGWIN__ __CYGWIN32__
1076#endif
1077return __CYGWIN__;
1078; return 0; }
1079EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001080if { (eval echo configure:1081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001081 rm -rf conftest*
1082 ac_cv_cygwin=yes
1083else
1084 echo "configure: failed program was:" >&5
1085 cat conftest.$ac_ext >&5
1086 rm -rf conftest*
1087 ac_cv_cygwin=no
1088fi
1089rm -f conftest*
1090rm -f conftest*
Guido van Rossumff555e32000-09-22 15:38:21 +00001091fi
1092
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001093echo "$ac_t""$ac_cv_cygwin" 1>&6
1094CYGWIN=
1095test "$ac_cv_cygwin" = yes && CYGWIN=yes
1096echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001097echo "configure:1098: checking for mingw32 environment" >&5
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001098if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1099 echo $ac_n "(cached) $ac_c" 1>&6
1100else
1101 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001102#line 1103 "configure"
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001103#include "confdefs.h"
1104
1105int main() {
1106return __MINGW32__;
1107; return 0; }
1108EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001109if { (eval echo configure:1110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001110 rm -rf conftest*
1111 ac_cv_mingw32=yes
1112else
1113 echo "configure: failed program was:" >&5
1114 cat conftest.$ac_ext >&5
1115 rm -rf conftest*
1116 ac_cv_mingw32=no
1117fi
1118rm -f conftest*
1119rm -f conftest*
1120fi
1121
1122echo "$ac_t""$ac_cv_mingw32" 1>&6
1123MINGW32=
1124test "$ac_cv_mingw32" = yes && MINGW32=yes
1125
1126
1127echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001128echo "configure:1129: checking for executable suffix" >&5
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001129if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1130 echo $ac_n "(cached) $ac_c" 1>&6
1131else
1132 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1133 ac_cv_exeext=.exe
1134else
1135 rm -f conftest*
1136 echo 'int main () { return 0; }' > conftest.$ac_ext
1137 ac_cv_exeext=
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001138 if { (eval echo configure:1139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001139 for file in conftest.*; do
1140 case $file in
1141 *.c | *.o | *.obj) ;;
1142 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1143 esac
1144 done
1145 else
1146 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1147 fi
1148 rm -f conftest*
1149 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1150fi
1151fi
1152
1153EXEEXT=""
1154test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1155echo "$ac_t""${ac_cv_exeext}" 1>&6
1156ac_exeext=$EXEEXT
1157
Neil Schemenauerdfb38e42001-01-27 06:57:08 +00001158echo $ac_n "checking for --with-suffix""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001159echo "configure:1160: checking for --with-suffix" >&5
Neil Schemenauerdfb38e42001-01-27 06:57:08 +00001160# Check whether --with-suffix or --without-suffix was given.
1161if test "${with_suffix+set}" = set; then
1162 withval="$with_suffix"
1163
1164 case $withval in
1165 no) EXEEXT=;;
1166 yes) EXEEXT=.exe;;
1167 *) EXEEXT=$withval;;
1168 esac
1169fi
1170
1171echo "$ac_t""$EXEEXT" 1>&6
Guido van Rossumff555e32000-09-22 15:38:21 +00001172
Guido van Rossumdd997f71998-10-07 19:58:26 +00001173case $MACHDEP in
1174bsdos*)
1175 case $CC in
1176 gcc) CC="$CC -D_HAVE_BSDI";;
1177 esac;;
1178esac
1179
Guido van Rossum24b1e751997-08-21 02:29:16 +00001180case $ac_sys_system in
1181hp*|HP*)
1182 case $CC in
Guido van Rossumcd5ff9f2000-09-22 16:15:54 +00001183 cc|*/cc) CC="$CC -Ae";;
Guido van Rossum24b1e751997-08-21 02:29:16 +00001184 esac;;
Trent Mick635f6fb2000-08-23 21:33:05 +00001185Monterey*)
1186 case $CC in
1187 cc) CC="$CC -Wl,-Bexport";;
1188 esac;;
Guido van Rossum24b1e751997-08-21 02:29:16 +00001189esac
1190
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00001191
1192echo $ac_n "checking LIBRARY""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001193echo "configure:1194: checking LIBRARY" >&5
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00001194if test -z "$LIBRARY"
1195then
1196 LIBRARY='libpython$(VERSION).a'
1197fi
1198echo "$ac_t""$LIBRARY" 1>&6
1199
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00001200# LDLIBRARY is the name of the library to link against (as opposed to the
1201# name of the library into which to insert object files). On systems
1202# without shared libraries, LDLIBRARY is the same as LIBRARY (defined in
Guido van Rossumaef734b2001-01-10 21:09:12 +00001203# the Makefiles). On Cygwin LDLIBRARY is the import library, DLLLIBRARY is the
1204# shared (i.e., DLL) library.
1205
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00001206
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00001207LDLIBRARY="$LIBRARY"
Guido van Rossumca563f22001-01-23 01:52:44 +00001208DLLLIBRARY=''
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00001209
Guido van Rossum76c5fe21997-08-14 19:45:07 +00001210# LINKCC is the command that links the python executable -- default is $(CC).
Fred Drake5790be12000-10-09 17:06:13 +00001211# This is altered for AIX in order to build the export list before
Guido van Rossumec95c7b1998-08-04 17:59:56 +00001212# linking.
Guido van Rossum76c5fe21997-08-14 19:45:07 +00001213
1214echo $ac_n "checking LINKCC""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001215echo "configure:1216: checking LINKCC" >&5
Guido van Rossum76c5fe21997-08-14 19:45:07 +00001216if test -z "$LINKCC"
1217then
1218 case $ac_sys_system in
1219 AIX*)
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +00001220 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); \$(PURIFY) \$(CC)";;
Guido van Rossum3c4bb801997-12-18 23:55:32 +00001221 dgux*)
1222 LINKCC="LD_RUN_PATH=$libdir \$(PURIFY) \$(CC)";;
Trent Mick635f6fb2000-08-23 21:33:05 +00001223 Monterey64*)
1224 LINKCC="\$(PURIFY) \$(CC) -L/usr/lib/ia64l64";;
Guido van Rossum25f93031997-08-18 16:00:04 +00001225 *) LINKCC="\$(PURIFY) \$(CC)";;
Guido van Rossum76c5fe21997-08-14 19:45:07 +00001226 esac
1227fi
1228echo "$ac_t""$LINKCC" 1>&6
1229
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00001230echo $ac_n "checking LDLIBRARY""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001231echo "configure:1232: checking LDLIBRARY" >&5
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00001232
1233# NeXT framework builds require that the 'ar' library be converted into
1234# a bundle using libtool.
1235if test "$with_next_framework"
1236then
1237 LDLIBRARY='libpython$(VERSION).dylib'
1238fi
1239
1240# DG/UX requires some fancy ld contortions to produce a .so from an .a
Fred Drake5790be12000-10-09 17:06:13 +00001241case $MACHDEP in
1242dguxR4)
1243 LDLIBRARY='libpython$(VERSION).so'
1244 OPT="$OPT -pic"
1245 ;;
1246beos*)
1247 LDLIBRARY='libpython$(VERSION).so'
1248 ;;
Guido van Rossumaef734b2001-01-10 21:09:12 +00001249cygwin*)
1250 LDLIBRARY='libpython$(VERSION).dll.a'
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001251 DLLLIBRARY='libpython$(VERSION).dll'
Guido van Rossumaef734b2001-01-10 21:09:12 +00001252 ;;
Fred Drake5790be12000-10-09 17:06:13 +00001253esac
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00001254echo "$ac_t""$LDLIBRARY" 1>&6
1255
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001256# Extract the first word of "ranlib", so it can be a program name with args.
1257set dummy ranlib; ac_word=$2
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001258echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001259echo "configure:1260: checking for $ac_word" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00001260if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001261 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001262else
1263 if test -n "$RANLIB"; then
1264 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1265else
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001266 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1267 ac_dummy="$PATH"
1268 for ac_dir in $ac_dummy; do
Guido van Rossum7f43da71994-08-01 12:15:30 +00001269 test -z "$ac_dir" && ac_dir=.
1270 if test -f $ac_dir/$ac_word; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001271 ac_cv_prog_RANLIB="ranlib"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001272 break
1273 fi
1274 done
Guido van Rossum7f43da71994-08-01 12:15:30 +00001275 IFS="$ac_save_ifs"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001276 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001277fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001278fi
1279RANLIB="$ac_cv_prog_RANLIB"
1280if test -n "$RANLIB"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001281 echo "$ac_t""$RANLIB" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001282else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001283 echo "$ac_t""no" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001284fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00001285
1286
Guido van Rossum7f43da71994-08-01 12:15:30 +00001287for ac_prog in ar aal
1288do
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001289# Extract the first word of "$ac_prog", so it can be a program name with args.
1290set dummy $ac_prog; ac_word=$2
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001291echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001292echo "configure:1293: checking for $ac_word" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00001293if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001294 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001295else
1296 if test -n "$AR"; then
1297 ac_cv_prog_AR="$AR" # Let the user override the test.
1298else
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1300 ac_dummy="$PATH"
1301 for ac_dir in $ac_dummy; do
Guido van Rossum7f43da71994-08-01 12:15:30 +00001302 test -z "$ac_dir" && ac_dir=.
1303 if test -f $ac_dir/$ac_word; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001304 ac_cv_prog_AR="$ac_prog"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001305 break
1306 fi
1307 done
1308 IFS="$ac_save_ifs"
1309fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001310fi
1311AR="$ac_cv_prog_AR"
1312if test -n "$AR"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001313 echo "$ac_t""$AR" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001314else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001315 echo "$ac_t""no" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001316fi
Guido van Rossum7f43da71994-08-01 12:15:30 +00001317
1318test -n "$AR" && break
1319done
1320test -n "$AR" || AR="ar"
1321
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001322ac_aux_dir=
1323for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1324 if test -f $ac_dir/install-sh; then
1325 ac_aux_dir=$ac_dir
1326 ac_install_sh="$ac_aux_dir/install-sh -c"
1327 break
1328 elif test -f $ac_dir/install.sh; then
1329 ac_aux_dir=$ac_dir
1330 ac_install_sh="$ac_aux_dir/install.sh -c"
1331 break
1332 fi
1333done
1334if test -z "$ac_aux_dir"; then
1335 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
Guido van Rossumb1ba03f1994-08-19 15:34:50 +00001336fi
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001337ac_config_guess=$ac_aux_dir/config.guess
1338ac_config_sub=$ac_aux_dir/config.sub
1339ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1340
1341# Find a good install program. We prefer a C program (faster),
1342# so one script is as good as another. But avoid the broken or
1343# incompatible versions:
1344# SysV /etc/install, /usr/sbin/install
1345# SunOS /usr/etc/install
1346# IRIX /sbin/install
1347# AIX /bin/install
1348# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1349# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1350# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1351# ./install, which can be erroneously created by make from ./install.sh.
1352echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001353echo "configure:1354: checking for a BSD compatible install" >&5
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001354if test -z "$INSTALL"; then
1355if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1356 echo $ac_n "(cached) $ac_c" 1>&6
1357else
1358 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1359 for ac_dir in $PATH; do
1360 # Account for people who put trailing slashes in PATH elements.
1361 case "$ac_dir/" in
1362 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1363 *)
1364 # OSF1 and SCO ODT 3.0 have their own names for install.
1365 # Don't use installbsd from OSF since it installs stuff as root
1366 # by default.
1367 for ac_prog in ginstall scoinst install; do
1368 if test -f $ac_dir/$ac_prog; then
1369 if test $ac_prog = install &&
1370 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1371 # AIX install. It has an incompatible calling convention.
1372 :
1373 else
1374 ac_cv_path_install="$ac_dir/$ac_prog -c"
1375 break 2
1376 fi
1377 fi
1378 done
1379 ;;
1380 esac
1381 done
1382 IFS="$ac_save_IFS"
1383
1384fi
1385 if test "${ac_cv_path_install+set}" = set; then
1386 INSTALL="$ac_cv_path_install"
1387 else
1388 # As a last resort, use the slow shell script. We don't cache a
1389 # path for INSTALL within a source directory, because that will
1390 # break other packages using the cache if that directory is
1391 # removed, or if the path is relative.
1392 INSTALL="$ac_install_sh"
1393 fi
1394fi
1395echo "$ac_t""$INSTALL" 1>&6
1396
1397# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1398# It thinks the first close brace ends the variable substitution.
1399test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1400
1401test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1402
1403test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1404
Guido van Rossumb1ba03f1994-08-19 15:34:50 +00001405
Guido van Rossumec95c7b1998-08-04 17:59:56 +00001406# Not every filesystem supports hard links
1407
1408if test -z "$LN" ; then
1409 case $ac_sys_system in
1410 BeOS*) LN="ln -s";;
Guido van Rossumaef734b2001-01-10 21:09:12 +00001411 CYGWIN*) LN="ln -s";;
Guido van Rossumec95c7b1998-08-04 17:59:56 +00001412 *) LN=ln;;
1413 esac
1414fi
1415
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001416# Optimizer/debugger flags
Guido van Rossum7b3853f1996-07-30 18:09:35 +00001417
Guido van Rossumb1ba03f1994-08-19 15:34:50 +00001418if test -z "$OPT"
Guido van Rossum7b3853f1996-07-30 18:09:35 +00001419then
Guido van Rossumedca74a1997-07-18 23:29:40 +00001420 case $GCC in
1421 yes)
1422 case $ac_cv_prog_cc_g in
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00001423 yes) OPT="-g -O2 -Wall -Wstrict-prototypes";;
1424 *) OPT="-O2 -Wall -Wstrict-prototypes";;
Guido van Rossumedca74a1997-07-18 23:29:40 +00001425 esac
1426 ;;
Guido van Rossum7b3853f1996-07-30 18:09:35 +00001427 *) OPT="-O";;
1428 esac
Guido van Rossumb1ba03f1994-08-19 15:34:50 +00001429fi
1430
Trent Mick635f6fb2000-08-23 21:33:05 +00001431# The current (beta) Monterey compiler dies with optimizations
1432case $ac_sys_system in
1433Monterey*) OPT="";;
1434esac
1435
Guido van Rossum563e7081996-09-10 18:20:48 +00001436if test "$ac_arch_flags"
Guido van Rossuma68acba1996-07-31 17:36:39 +00001437then
1438 OPT="$OPT $ac_arch_flags"
1439fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00001440# checks for UNIX variants that set C preprocessor variables
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001441echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001442echo "configure:1443: checking how to run the C preprocessor" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001443# On Suns, sometimes $CPP names a directory.
1444if test -n "$CPP" && test -d "$CPP"; then
1445 CPP=
1446fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00001447if test -z "$CPP"; then
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00001448if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001449 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001450else
1451 # This must be in double quotes, not single quotes, because CPP may get
1452 # substituted into the Makefile and "${CC-cc}" will confuse make.
Guido van Rossum627b2d71993-12-24 10:39:16 +00001453 CPP="${CC-cc} -E"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001454 # On the NeXT, cc -E runs the code through the compiler's parser,
1455 # not just through cpp.
1456 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001457#line 1458 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001458#include "confdefs.h"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001459#include <assert.h>
Guido van Rossum7f43da71994-08-01 12:15:30 +00001460Syntax Error
1461EOF
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001462ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001463{ (eval echo configure:1464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001464ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1465if test -z "$ac_err"; then
1466 :
1467else
1468 echo "$ac_err" >&5
1469 echo "configure: failed program was:" >&5
1470 cat conftest.$ac_ext >&5
1471 rm -rf conftest*
Guido van Rossumff555e32000-09-22 15:38:21 +00001472 CPP="${CC-cc} -E -traditional-cpp"
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001473 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001474#line 1475 "configure"
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001475#include "confdefs.h"
1476#include <assert.h>
1477Syntax Error
1478EOF
1479ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001480{ (eval echo configure:1481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001481ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Guido van Rossum7f43da71994-08-01 12:15:30 +00001482if test -z "$ac_err"; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00001483 :
1484else
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001485 echo "$ac_err" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00001486 echo "configure: failed program was:" >&5
1487 cat conftest.$ac_ext >&5
Guido van Rossum627b2d71993-12-24 10:39:16 +00001488 rm -rf conftest*
Guido van Rossumff555e32000-09-22 15:38:21 +00001489 CPP="${CC-cc} -nologo -E"
1490 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001491#line 1492 "configure"
Guido van Rossumff555e32000-09-22 15:38:21 +00001492#include "confdefs.h"
1493#include <assert.h>
1494Syntax Error
1495EOF
1496ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001497{ (eval echo configure:1498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Guido van Rossumff555e32000-09-22 15:38:21 +00001498ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1499if test -z "$ac_err"; then
1500 :
1501else
1502 echo "$ac_err" >&5
1503 echo "configure: failed program was:" >&5
1504 cat conftest.$ac_ext >&5
1505 rm -rf conftest*
Guido van Rossum627b2d71993-12-24 10:39:16 +00001506 CPP=/lib/cpp
1507fi
1508rm -f conftest*
1509fi
Guido van Rossum7f43da71994-08-01 12:15:30 +00001510rm -f conftest*
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001511fi
1512rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001513 ac_cv_prog_CPP="$CPP"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001514fi
Guido van Rossume77438c1995-09-13 18:59:59 +00001515 CPP="$ac_cv_prog_CPP"
1516else
1517 ac_cv_prog_CPP="$CPP"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001518fi
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001519echo "$ac_t""$CPP" 1>&6
Guido van Rossum627b2d71993-12-24 10:39:16 +00001520
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001521echo $ac_n "checking for AIX""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001522echo "configure:1523: checking for AIX" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001523cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001524#line 1525 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001525#include "confdefs.h"
1526#ifdef _AIX
1527 yes
1528#endif
1529
1530EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1532 egrep "yes" >/dev/null 2>&1; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00001533 rm -rf conftest*
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001534 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001535#define _ALL_SOURCE 1
1536EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00001537
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001538else
1539 rm -rf conftest*
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001540 echo "$ac_t""no" 1>&6
Guido van Rossum627b2d71993-12-24 10:39:16 +00001541fi
1542rm -f conftest*
1543
1544
Guido van Rossumf78abae1997-01-21 22:02:36 +00001545ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001546echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001547echo "configure:1548: checking for minix/config.h" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00001548if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001549 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001550else
1551 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001552#line 1553 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001553#include "confdefs.h"
1554#include <minix/config.h>
1555EOF
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001556ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001557{ (eval echo configure:1558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001558ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Guido van Rossum7f43da71994-08-01 12:15:30 +00001559if test -z "$ac_err"; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00001560 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001561 eval "ac_cv_header_$ac_safe=yes"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001562else
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001563 echo "$ac_err" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00001564 echo "configure: failed program was:" >&5
1565 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001566 rm -rf conftest*
1567 eval "ac_cv_header_$ac_safe=no"
1568fi
1569rm -f conftest*
1570fi
1571if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001572 echo "$ac_t""yes" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001573 MINIX=yes
1574else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001575 echo "$ac_t""no" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001576MINIX=
Guido van Rossum627b2d71993-12-24 10:39:16 +00001577fi
1578
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001579if test "$MINIX" = yes; then
1580 cat >> confdefs.h <<\EOF
1581#define _POSIX_SOURCE 1
1582EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00001583
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001584 cat >> confdefs.h <<\EOF
1585#define _POSIX_1_SOURCE 2
1586EOF
1587
1588 cat >> confdefs.h <<\EOF
1589#define _MINIX 1
1590EOF
1591
1592fi
1593
Guido van Rossumda88dad1995-01-26 00:46:29 +00001594
Guido van Rossum91922671997-10-09 20:24:13 +00001595echo $ac_n "checking whether $CC accepts -OPT:Olimit=0""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001596echo "configure:1597: checking whether $CC accepts -OPT:Olimit=0" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00001597if eval "test \"`echo '$''{'ac_cv_opt_olimit_ok'+set}'`\" = set"; then
Guido van Rossum91922671997-10-09 20:24:13 +00001598 echo $ac_n "(cached) $ac_c" 1>&6
1599else
1600 ac_save_cc="$CC"
1601CC="$CC -OPT:Olimit=0"
1602if test "$cross_compiling" = yes; then
1603 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1604else
1605 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001606#line 1607 "configure"
Guido van Rossum91922671997-10-09 20:24:13 +00001607#include "confdefs.h"
1608int main() { return 0; }
1609EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001610if { (eval echo configure:1611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Guido van Rossum91922671997-10-09 20:24:13 +00001611then
1612 ac_cv_opt_olimit_ok=yes
1613else
1614 echo "configure: failed program was:" >&5
1615 cat conftest.$ac_ext >&5
1616 rm -fr conftest*
1617 ac_cv_opt_olimit_ok=no
1618fi
1619rm -fr conftest*
1620fi
1621
1622CC="$ac_save_cc"
1623fi
1624
1625echo "$ac_t""$ac_cv_opt_olimit_ok" 1>&6
Guido van Rossum2efa34b1997-10-23 17:43:11 +00001626if test $ac_cv_opt_olimit_ok = yes; then
Guido van Rossum5839e582000-10-09 19:52:35 +00001627 case $ac_sys_system in
1628 Darwin*) OPT="$OPT" ;;
1629 *) OPT="$OPT -OPT:Olimit=0";;
1630 esac
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00001631else
1632 echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001633echo "configure:1634: checking whether $CC accepts -Olimit 1500" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00001634 if eval "test \"`echo '$''{'ac_cv_olimit_ok'+set}'`\" = set"; then
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00001635 echo $ac_n "(cached) $ac_c" 1>&6
1636else
1637 ac_save_cc="$CC"
1638 CC="$CC -Olimit 1500"
1639 if test "$cross_compiling" = yes; then
1640 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1641else
1642 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001643#line 1644 "configure"
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00001644#include "confdefs.h"
1645int main() { return 0; }
1646EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001647if { (eval echo configure:1648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00001648then
1649 ac_cv_olimit_ok=yes
1650else
1651 echo "configure: failed program was:" >&5
1652 cat conftest.$ac_ext >&5
1653 rm -fr conftest*
1654 ac_cv_olimit_ok=no
Guido van Rossum201afe51997-05-14 21:14:44 +00001655fi
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00001656rm -fr conftest*
1657fi
1658
1659 CC="$ac_save_cc"
1660fi
1661
1662 echo "$ac_t""$ac_cv_olimit_ok" 1>&6
1663 if test $ac_cv_olimit_ok = yes; then
1664 OPT="$OPT -Olimit 1500"
1665 fi
1666fi
1667
Guido van Rossum84e7b241996-08-19 21:59:00 +00001668
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001669# checks for header files
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001670echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001671echo "configure:1672: checking for ANSI C header files" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00001672if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001673 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001674else
1675 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001676#line 1677 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001677#include "confdefs.h"
1678#include <stdlib.h>
1679#include <stdarg.h>
1680#include <string.h>
1681#include <float.h>
1682EOF
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001683ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001684{ (eval echo configure:1685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001685ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Guido van Rossum7f43da71994-08-01 12:15:30 +00001686if test -z "$ac_err"; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00001687 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001688 ac_cv_header_stdc=yes
1689else
1690 echo "$ac_err" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00001691 echo "configure: failed program was:" >&5
1692 cat conftest.$ac_ext >&5
Guido van Rossum627b2d71993-12-24 10:39:16 +00001693 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001694 ac_cv_header_stdc=no
1695fi
1696rm -f conftest*
1697
1698if test $ac_cv_header_stdc = yes; then
1699 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1700cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001701#line 1702 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001702#include "confdefs.h"
1703#include <string.h>
1704EOF
1705if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1706 egrep "memchr" >/dev/null 2>&1; then
1707 :
1708else
1709 rm -rf conftest*
1710 ac_cv_header_stdc=no
1711fi
1712rm -f conftest*
1713
1714fi
1715
1716if test $ac_cv_header_stdc = yes; then
1717 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1718cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001719#line 1720 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001720#include "confdefs.h"
1721#include <stdlib.h>
1722EOF
1723if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1724 egrep "free" >/dev/null 2>&1; then
1725 :
1726else
1727 rm -rf conftest*
1728 ac_cv_header_stdc=no
1729fi
1730rm -f conftest*
1731
1732fi
1733
1734if test $ac_cv_header_stdc = yes; then
1735 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1736if test "$cross_compiling" = yes; then
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001737 :
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001738else
Guido van Rossumf78abae1997-01-21 22:02:36 +00001739 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001740#line 1741 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001741#include "confdefs.h"
1742#include <ctype.h>
1743#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1744#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001745#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Guido van Rossum627b2d71993-12-24 10:39:16 +00001746int main () { int i; for (i = 0; i < 256; i++)
1747if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1748exit (0); }
1749
1750EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001751if { (eval echo configure:1752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Guido van Rossumf78abae1997-01-21 22:02:36 +00001752then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001753 :
1754else
Guido van Rossumf78abae1997-01-21 22:02:36 +00001755 echo "configure: failed program was:" >&5
1756 cat conftest.$ac_ext >&5
1757 rm -fr conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001758 ac_cv_header_stdc=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00001759fi
1760rm -fr conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001761fi
Guido van Rossumf78abae1997-01-21 22:02:36 +00001762
1763fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001764fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001765
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001766echo "$ac_t""$ac_cv_header_stdc" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001767if test $ac_cv_header_stdc = yes; then
1768 cat >> confdefs.h <<\EOF
1769#define STDC_HEADERS 1
1770EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00001771
1772fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00001773
Andrew M. Kuchling5821b772000-08-25 01:14:08 +00001774for ac_hdr in dlfcn.h fcntl.h limits.h locale.h ncurses.h poll.h pthread.h \
Eric S. Raymondd2d75d32001-01-16 15:26:34 +00001775signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h termios.h \
Fred Drakea50d6ec2000-08-31 16:13:20 +00001776sys/audioio.h sys/file.h sys/lock.h db_185.h db.h \
Guido van Rossum95713eb2000-05-18 20:53:31 +00001777sys/param.h sys/select.h sys/socket.h sys/time.h sys/times.h \
Fred Drakeae90f8d2000-09-15 03:38:12 +00001778sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
1779ndbm.h db1/ndbm.h gdbm/ndbm.h
Guido van Rossum627b2d71993-12-24 10:39:16 +00001780do
Guido van Rossumf78abae1997-01-21 22:02:36 +00001781ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001782echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001783echo "configure:1784: checking for $ac_hdr" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00001784if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001785 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001786else
1787 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001788#line 1789 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001789#include "confdefs.h"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001790#include <$ac_hdr>
Guido van Rossum627b2d71993-12-24 10:39:16 +00001791EOF
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001792ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001793{ (eval echo configure:1794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001794ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Guido van Rossum7f43da71994-08-01 12:15:30 +00001795if test -z "$ac_err"; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00001796 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001797 eval "ac_cv_header_$ac_safe=yes"
1798else
1799 echo "$ac_err" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00001800 echo "configure: failed program was:" >&5
1801 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001802 rm -rf conftest*
1803 eval "ac_cv_header_$ac_safe=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001804fi
1805rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001806fi
1807if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001808 echo "$ac_t""yes" 1>&6
Guido van Rossumf78abae1997-01-21 22:02:36 +00001809 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001810 cat >> confdefs.h <<EOF
1811#define $ac_tr_hdr 1
1812EOF
1813
1814else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001815 echo "$ac_t""no" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001816fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00001817done
1818
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001819ac_header_dirent=no
1820for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1821do
Guido van Rossumf78abae1997-01-21 22:02:36 +00001822ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001823echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001824echo "configure:1825: checking for $ac_hdr that defines DIR" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00001825if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001826 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum627b2d71993-12-24 10:39:16 +00001827else
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001828 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001829#line 1830 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001830#include "confdefs.h"
1831#include <sys/types.h>
1832#include <$ac_hdr>
Guido van Rossumf78abae1997-01-21 22:02:36 +00001833int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001834DIR *dirp = 0;
1835; return 0; }
1836EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001837if { (eval echo configure:1838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001838 rm -rf conftest*
1839 eval "ac_cv_header_dirent_$ac_safe=yes"
1840else
Guido van Rossumf78abae1997-01-21 22:02:36 +00001841 echo "configure: failed program was:" >&5
1842 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001843 rm -rf conftest*
1844 eval "ac_cv_header_dirent_$ac_safe=no"
1845fi
1846rm -f conftest*
Guido van Rossum627b2d71993-12-24 10:39:16 +00001847fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001848if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001849 echo "$ac_t""yes" 1>&6
Guido van Rossumf78abae1997-01-21 22:02:36 +00001850 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001851 cat >> confdefs.h <<EOF
1852#define $ac_tr_hdr 1
1853EOF
1854 ac_header_dirent=$ac_hdr; break
1855else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001856 echo "$ac_t""no" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001857fi
1858done
1859# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1860if test $ac_header_dirent = dirent.h; then
Guido van Rossumf78abae1997-01-21 22:02:36 +00001861echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001862echo "configure:1863: checking for opendir in -ldir" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00001863ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00001864if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001865 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001866else
1867 ac_save_LIBS="$LIBS"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001868LIBS="-ldir $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001869cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001870#line 1871 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001871#include "confdefs.h"
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001872/* Override any gcc2 internal prototype to avoid an error. */
1873/* We use char because int might match the return type of a gcc2
1874 builtin and then its argument prototype would still apply. */
1875char opendir();
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001876
Guido van Rossumf78abae1997-01-21 22:02:36 +00001877int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001878opendir()
1879; return 0; }
1880EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001881if { (eval echo configure:1882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001882 rm -rf conftest*
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001883 eval "ac_cv_lib_$ac_lib_var=yes"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001884else
Guido van Rossumf78abae1997-01-21 22:02:36 +00001885 echo "configure: failed program was:" >&5
1886 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001887 rm -rf conftest*
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001888 eval "ac_cv_lib_$ac_lib_var=no"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001889fi
1890rm -f conftest*
1891LIBS="$ac_save_LIBS"
1892
1893fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001894if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001895 echo "$ac_t""yes" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001896 LIBS="$LIBS -ldir"
1897else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001898 echo "$ac_t""no" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001899fi
1900
1901else
Guido van Rossumf78abae1997-01-21 22:02:36 +00001902echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001903echo "configure:1904: checking for opendir in -lx" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00001904ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00001905if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001906 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001907else
1908 ac_save_LIBS="$LIBS"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001909LIBS="-lx $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001910cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001911#line 1912 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001912#include "confdefs.h"
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001913/* Override any gcc2 internal prototype to avoid an error. */
1914/* We use char because int might match the return type of a gcc2
1915 builtin and then its argument prototype would still apply. */
1916char opendir();
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001917
Guido van Rossumf78abae1997-01-21 22:02:36 +00001918int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001919opendir()
1920; return 0; }
1921EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001922if { (eval echo configure:1923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001923 rm -rf conftest*
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001924 eval "ac_cv_lib_$ac_lib_var=yes"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001925else
Guido van Rossumf78abae1997-01-21 22:02:36 +00001926 echo "configure: failed program was:" >&5
1927 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001928 rm -rf conftest*
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001929 eval "ac_cv_lib_$ac_lib_var=no"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001930fi
1931rm -f conftest*
1932LIBS="$ac_save_LIBS"
1933
1934fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001935if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001936 echo "$ac_t""yes" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001937 LIBS="$LIBS -lx"
1938else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001939 echo "$ac_t""no" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001940fi
1941
1942fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00001943
1944
1945# checks for typedefs
Guido van Rossumda88dad1995-01-26 00:46:29 +00001946was_it_defined=no
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001947echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001948echo "configure:1949: checking for clock_t in time.h" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001949cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001950#line 1951 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001951#include "confdefs.h"
1952#include <time.h>
1953EOF
1954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1955 egrep "clock_t" >/dev/null 2>&1; then
Guido van Rossumda88dad1995-01-26 00:46:29 +00001956 rm -rf conftest*
1957 was_it_defined=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00001958else
1959 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001960 cat >> confdefs.h <<\EOF
1961#define clock_t long
1962EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00001963
1964fi
1965rm -f conftest*
1966
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001967echo "$ac_t""$was_it_defined" 1>&6
Guido van Rossumda88dad1995-01-26 00:46:29 +00001968
Guido van Rossum84e7b241996-08-19 21:59:00 +00001969# Add some code to confdefs.h so that the test for off_t works on SCO
1970cat >> confdefs.h <<\EOF
1971#if defined(SCO_DS)
1972#undef _OFF_T
1973#endif
1974EOF
1975
Guido van Rossumef2255b2000-03-10 22:30:29 +00001976# Type availability checks
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001977echo $ac_n "checking for mode_t""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001978echo "configure:1979: checking for mode_t" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00001979if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001980 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001981else
1982 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00001983#line 1984 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001984#include "confdefs.h"
1985#include <sys/types.h>
1986#if STDC_HEADERS
1987#include <stdlib.h>
Guido van Rossumf78abae1997-01-21 22:02:36 +00001988#include <stddef.h>
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001989#endif
1990EOF
1991if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001992 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001993 rm -rf conftest*
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00001994 ac_cv_type_mode_t=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00001995else
1996 rm -rf conftest*
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00001997 ac_cv_type_mode_t=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00001998fi
1999rm -f conftest*
2000
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002001fi
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002002echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2003if test $ac_cv_type_mode_t = no; then
2004 cat >> confdefs.h <<\EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002005#define mode_t int
2006EOF
2007
2008fi
2009
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002010echo $ac_n "checking for off_t""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002011echo "configure:2012: checking for off_t" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002012if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002013 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002014else
2015 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002016#line 2017 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002017#include "confdefs.h"
2018#include <sys/types.h>
2019#if STDC_HEADERS
2020#include <stdlib.h>
Guido van Rossumf78abae1997-01-21 22:02:36 +00002021#include <stddef.h>
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002022#endif
2023EOF
2024if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Guido van Rossume6c2cf11999-01-08 21:08:33 +00002025 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002026 rm -rf conftest*
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002027 ac_cv_type_off_t=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00002028else
2029 rm -rf conftest*
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002030 ac_cv_type_off_t=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00002031fi
2032rm -f conftest*
2033
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002034fi
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002035echo "$ac_t""$ac_cv_type_off_t" 1>&6
2036if test $ac_cv_type_off_t = no; then
2037 cat >> confdefs.h <<\EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002038#define off_t long
2039EOF
2040
2041fi
2042
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002043echo $ac_n "checking for pid_t""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002044echo "configure:2045: checking for pid_t" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002045if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002046 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002047else
2048 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002049#line 2050 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002050#include "confdefs.h"
2051#include <sys/types.h>
2052#if STDC_HEADERS
2053#include <stdlib.h>
Guido van Rossumf78abae1997-01-21 22:02:36 +00002054#include <stddef.h>
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002055#endif
2056EOF
2057if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Guido van Rossume6c2cf11999-01-08 21:08:33 +00002058 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002059 rm -rf conftest*
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002060 ac_cv_type_pid_t=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00002061else
2062 rm -rf conftest*
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002063 ac_cv_type_pid_t=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00002064fi
2065rm -f conftest*
2066
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002067fi
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002068echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2069if test $ac_cv_type_pid_t = no; then
2070 cat >> confdefs.h <<\EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002071#define pid_t int
2072EOF
2073
2074fi
2075
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002076echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002077echo "configure:2078: checking return type of signal handlers" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002078if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002079 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002080else
2081 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002082#line 2083 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00002083#include "confdefs.h"
2084#include <sys/types.h>
2085#include <signal.h>
2086#ifdef signal
2087#undef signal
2088#endif
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002089#ifdef __cplusplus
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002090extern "C" void (*signal (int, void (*)(int)))(int);
2091#else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002092void (*signal ()) ();
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002093#endif
2094
Guido van Rossumf78abae1997-01-21 22:02:36 +00002095int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002096int i;
2097; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00002098EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002099if { (eval echo configure:2100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00002100 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002101 ac_cv_type_signal=void
Guido van Rossum627b2d71993-12-24 10:39:16 +00002102else
Guido van Rossumf78abae1997-01-21 22:02:36 +00002103 echo "configure: failed program was:" >&5
2104 cat conftest.$ac_ext >&5
Guido van Rossum627b2d71993-12-24 10:39:16 +00002105 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002106 ac_cv_type_signal=int
Guido van Rossum627b2d71993-12-24 10:39:16 +00002107fi
2108rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002109fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002110
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002111echo "$ac_t""$ac_cv_type_signal" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002112cat >> confdefs.h <<EOF
2113#define RETSIGTYPE $ac_cv_type_signal
2114EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00002115
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002116
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002117echo $ac_n "checking for size_t""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002118echo "configure:2119: checking for size_t" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002119if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002120 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002121else
2122 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002123#line 2124 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002124#include "confdefs.h"
2125#include <sys/types.h>
2126#if STDC_HEADERS
2127#include <stdlib.h>
Guido van Rossumf78abae1997-01-21 22:02:36 +00002128#include <stddef.h>
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002129#endif
2130EOF
2131if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Guido van Rossume6c2cf11999-01-08 21:08:33 +00002132 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002133 rm -rf conftest*
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002134 ac_cv_type_size_t=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00002135else
2136 rm -rf conftest*
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002137 ac_cv_type_size_t=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00002138fi
2139rm -f conftest*
2140
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002141fi
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002142echo "$ac_t""$ac_cv_type_size_t" 1>&6
2143if test $ac_cv_type_size_t = no; then
2144 cat >> confdefs.h <<\EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002145#define size_t unsigned
2146EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00002147
2148fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002149
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002150echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002151echo "configure:2152: checking for uid_t in sys/types.h" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002152if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002153 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002154else
2155 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002156#line 2157 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002157#include "confdefs.h"
2158#include <sys/types.h>
2159EOF
2160if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2161 egrep "uid_t" >/dev/null 2>&1; then
2162 rm -rf conftest*
2163 ac_cv_type_uid_t=yes
2164else
2165 rm -rf conftest*
2166 ac_cv_type_uid_t=no
2167fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00002168rm -f conftest*
2169
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002170fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002171
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002172echo "$ac_t""$ac_cv_type_uid_t" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002173if test $ac_cv_type_uid_t = no; then
2174 cat >> confdefs.h <<\EOF
2175#define uid_t int
2176EOF
2177
2178 cat >> confdefs.h <<\EOF
2179#define gid_t int
2180EOF
2181
2182fi
2183
Guido van Rossum627b2d71993-12-24 10:39:16 +00002184
Guido van Rossumef2255b2000-03-10 22:30:29 +00002185# Sizes of various common basic types
Guido van Rossumccaf3b61996-12-06 21:19:16 +00002186echo $ac_n "checking size of int""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002187echo "configure:2188: checking size of int" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002188if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
Guido van Rossumccaf3b61996-12-06 21:19:16 +00002189 echo $ac_n "(cached) $ac_c" 1>&6
2190else
2191 if test "$cross_compiling" = yes; then
2192 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2193else
Guido van Rossumf78abae1997-01-21 22:02:36 +00002194 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002195#line 2196 "configure"
Guido van Rossumccaf3b61996-12-06 21:19:16 +00002196#include "confdefs.h"
2197#include <stdio.h>
2198main()
2199{
2200 FILE *f=fopen("conftestval", "w");
2201 if (!f) exit(1);
2202 fprintf(f, "%d\n", sizeof(int));
2203 exit(0);
2204}
2205EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002206if { (eval echo configure:2207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Guido van Rossumf78abae1997-01-21 22:02:36 +00002207then
Guido van Rossumccaf3b61996-12-06 21:19:16 +00002208 ac_cv_sizeof_int=`cat conftestval`
2209else
Guido van Rossumf78abae1997-01-21 22:02:36 +00002210 echo "configure: failed program was:" >&5
2211 cat conftest.$ac_ext >&5
2212 rm -fr conftest*
Guido van Rossumccaf3b61996-12-06 21:19:16 +00002213 ac_cv_sizeof_int=0
2214fi
Guido van Rossumccaf3b61996-12-06 21:19:16 +00002215rm -fr conftest*
2216fi
Guido van Rossumf78abae1997-01-21 22:02:36 +00002217
2218fi
Guido van Rossumccaf3b61996-12-06 21:19:16 +00002219echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2220cat >> confdefs.h <<EOF
2221#define SIZEOF_INT $ac_cv_sizeof_int
2222EOF
2223
2224
2225echo $ac_n "checking size of long""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002226echo "configure:2227: checking size of long" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002227if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
Guido van Rossumccaf3b61996-12-06 21:19:16 +00002228 echo $ac_n "(cached) $ac_c" 1>&6
2229else
2230 if test "$cross_compiling" = yes; then
2231 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2232else
Guido van Rossumf78abae1997-01-21 22:02:36 +00002233 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002234#line 2235 "configure"
Guido van Rossumccaf3b61996-12-06 21:19:16 +00002235#include "confdefs.h"
2236#include <stdio.h>
2237main()
2238{
2239 FILE *f=fopen("conftestval", "w");
2240 if (!f) exit(1);
2241 fprintf(f, "%d\n", sizeof(long));
2242 exit(0);
2243}
2244EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002245if { (eval echo configure:2246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Guido van Rossumf78abae1997-01-21 22:02:36 +00002246then
Guido van Rossumccaf3b61996-12-06 21:19:16 +00002247 ac_cv_sizeof_long=`cat conftestval`
2248else
Guido van Rossumf78abae1997-01-21 22:02:36 +00002249 echo "configure: failed program was:" >&5
2250 cat conftest.$ac_ext >&5
2251 rm -fr conftest*
Guido van Rossumccaf3b61996-12-06 21:19:16 +00002252 ac_cv_sizeof_long=0
2253fi
Guido van Rossumccaf3b61996-12-06 21:19:16 +00002254rm -fr conftest*
2255fi
Guido van Rossumf78abae1997-01-21 22:02:36 +00002256
2257fi
Guido van Rossumccaf3b61996-12-06 21:19:16 +00002258echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2259cat >> confdefs.h <<EOF
2260#define SIZEOF_LONG $ac_cv_sizeof_long
2261EOF
2262
2263
Guido van Rossumad678af1998-10-02 14:42:15 +00002264echo $ac_n "checking size of void *""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002265echo "configure:2266: checking size of void *" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002266if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
Guido van Rossumad678af1998-10-02 14:42:15 +00002267 echo $ac_n "(cached) $ac_c" 1>&6
2268else
2269 if test "$cross_compiling" = yes; then
2270 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2271else
2272 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002273#line 2274 "configure"
Guido van Rossumad678af1998-10-02 14:42:15 +00002274#include "confdefs.h"
2275#include <stdio.h>
2276main()
2277{
2278 FILE *f=fopen("conftestval", "w");
2279 if (!f) exit(1);
2280 fprintf(f, "%d\n", sizeof(void *));
2281 exit(0);
2282}
2283EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002284if { (eval echo configure:2285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Guido van Rossumad678af1998-10-02 14:42:15 +00002285then
2286 ac_cv_sizeof_void_p=`cat conftestval`
2287else
2288 echo "configure: failed program was:" >&5
2289 cat conftest.$ac_ext >&5
2290 rm -fr conftest*
2291 ac_cv_sizeof_void_p=0
2292fi
2293rm -fr conftest*
2294fi
2295
2296fi
2297echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
2298cat >> confdefs.h <<EOF
2299#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
2300EOF
2301
2302
Guido van Rossumef2255b2000-03-10 22:30:29 +00002303echo $ac_n "checking size of char""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002304echo "configure:2305: checking size of char" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002305if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
Guido van Rossumef2255b2000-03-10 22:30:29 +00002306 echo $ac_n "(cached) $ac_c" 1>&6
2307else
2308 if test "$cross_compiling" = yes; then
2309 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2310else
2311 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002312#line 2313 "configure"
Guido van Rossumef2255b2000-03-10 22:30:29 +00002313#include "confdefs.h"
2314#include <stdio.h>
2315main()
2316{
2317 FILE *f=fopen("conftestval", "w");
2318 if (!f) exit(1);
2319 fprintf(f, "%d\n", sizeof(char));
2320 exit(0);
2321}
2322EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002323if { (eval echo configure:2324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Guido van Rossumef2255b2000-03-10 22:30:29 +00002324then
2325 ac_cv_sizeof_char=`cat conftestval`
2326else
2327 echo "configure: failed program was:" >&5
2328 cat conftest.$ac_ext >&5
2329 rm -fr conftest*
2330 ac_cv_sizeof_char=0
2331fi
2332rm -fr conftest*
2333fi
2334
2335fi
2336echo "$ac_t""$ac_cv_sizeof_char" 1>&6
2337cat >> confdefs.h <<EOF
2338#define SIZEOF_CHAR $ac_cv_sizeof_char
2339EOF
2340
2341
2342echo $ac_n "checking size of short""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002343echo "configure:2344: checking size of short" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002344if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
Guido van Rossumef2255b2000-03-10 22:30:29 +00002345 echo $ac_n "(cached) $ac_c" 1>&6
2346else
2347 if test "$cross_compiling" = yes; then
2348 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2349else
2350 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002351#line 2352 "configure"
Guido van Rossumef2255b2000-03-10 22:30:29 +00002352#include "confdefs.h"
2353#include <stdio.h>
2354main()
2355{
2356 FILE *f=fopen("conftestval", "w");
2357 if (!f) exit(1);
2358 fprintf(f, "%d\n", sizeof(short));
2359 exit(0);
2360}
2361EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002362if { (eval echo configure:2363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Guido van Rossumef2255b2000-03-10 22:30:29 +00002363then
2364 ac_cv_sizeof_short=`cat conftestval`
2365else
2366 echo "configure: failed program was:" >&5
2367 cat conftest.$ac_ext >&5
2368 rm -fr conftest*
2369 ac_cv_sizeof_short=0
2370fi
2371rm -fr conftest*
2372fi
2373
2374fi
2375echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2376cat >> confdefs.h <<EOF
2377#define SIZEOF_SHORT $ac_cv_sizeof_short
2378EOF
2379
2380
2381echo $ac_n "checking size of float""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002382echo "configure:2383: checking size of float" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002383if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
Guido van Rossumef2255b2000-03-10 22:30:29 +00002384 echo $ac_n "(cached) $ac_c" 1>&6
2385else
2386 if test "$cross_compiling" = yes; then
2387 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2388else
2389 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002390#line 2391 "configure"
Guido van Rossumef2255b2000-03-10 22:30:29 +00002391#include "confdefs.h"
2392#include <stdio.h>
2393main()
2394{
2395 FILE *f=fopen("conftestval", "w");
2396 if (!f) exit(1);
2397 fprintf(f, "%d\n", sizeof(float));
2398 exit(0);
2399}
2400EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002401if { (eval echo configure:2402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Guido van Rossumef2255b2000-03-10 22:30:29 +00002402then
2403 ac_cv_sizeof_float=`cat conftestval`
2404else
2405 echo "configure: failed program was:" >&5
2406 cat conftest.$ac_ext >&5
2407 rm -fr conftest*
2408 ac_cv_sizeof_float=0
2409fi
2410rm -fr conftest*
2411fi
2412
2413fi
2414echo "$ac_t""$ac_cv_sizeof_float" 1>&6
2415cat >> confdefs.h <<EOF
2416#define SIZEOF_FLOAT $ac_cv_sizeof_float
2417EOF
2418
2419
2420echo $ac_n "checking size of double""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002421echo "configure:2422: checking size of double" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002422if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
Guido van Rossumef2255b2000-03-10 22:30:29 +00002423 echo $ac_n "(cached) $ac_c" 1>&6
2424else
2425 if test "$cross_compiling" = yes; then
2426 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2427else
2428 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002429#line 2430 "configure"
Guido van Rossumef2255b2000-03-10 22:30:29 +00002430#include "confdefs.h"
2431#include <stdio.h>
2432main()
2433{
2434 FILE *f=fopen("conftestval", "w");
2435 if (!f) exit(1);
2436 fprintf(f, "%d\n", sizeof(double));
2437 exit(0);
2438}
2439EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002440if { (eval echo configure:2441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Guido van Rossumef2255b2000-03-10 22:30:29 +00002441then
2442 ac_cv_sizeof_double=`cat conftestval`
2443else
2444 echo "configure: failed program was:" >&5
2445 cat conftest.$ac_ext >&5
2446 rm -fr conftest*
2447 ac_cv_sizeof_double=0
2448fi
2449rm -fr conftest*
2450fi
2451
2452fi
2453echo "$ac_t""$ac_cv_sizeof_double" 1>&6
2454cat >> confdefs.h <<EOF
2455#define SIZEOF_DOUBLE $ac_cv_sizeof_double
2456EOF
2457
2458
Guido van Rossumb9a22a12000-06-30 02:48:53 +00002459echo $ac_n "checking size of fpos_t""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002460echo "configure:2461: checking size of fpos_t" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002461if eval "test \"`echo '$''{'ac_cv_sizeof_fpos_t'+set}'`\" = set"; then
Guido van Rossumb9a22a12000-06-30 02:48:53 +00002462 echo $ac_n "(cached) $ac_c" 1>&6
2463else
2464 if test "$cross_compiling" = yes; then
2465 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2466else
2467 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002468#line 2469 "configure"
Guido van Rossumb9a22a12000-06-30 02:48:53 +00002469#include "confdefs.h"
2470#include <stdio.h>
2471main()
2472{
2473 FILE *f=fopen("conftestval", "w");
2474 if (!f) exit(1);
2475 fprintf(f, "%d\n", sizeof(fpos_t));
2476 exit(0);
2477}
2478EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002479if { (eval echo configure:2480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Guido van Rossumb9a22a12000-06-30 02:48:53 +00002480then
2481 ac_cv_sizeof_fpos_t=`cat conftestval`
2482else
2483 echo "configure: failed program was:" >&5
2484 cat conftest.$ac_ext >&5
2485 rm -fr conftest*
2486 ac_cv_sizeof_fpos_t=0
2487fi
2488rm -fr conftest*
2489fi
2490
2491fi
2492echo "$ac_t""$ac_cv_sizeof_fpos_t" 1>&6
2493cat >> confdefs.h <<EOF
2494#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
2495EOF
2496
2497
Guido van Rossum0a516c91994-09-12 10:58:40 +00002498
Guido van Rossumec95c7b1998-08-04 17:59:56 +00002499echo $ac_n "checking for long long support""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002500echo "configure:2501: checking for long long support" >&5
Guido van Rossumec95c7b1998-08-04 17:59:56 +00002501have_long_long=no
2502cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002503#line 2504 "configure"
Guido van Rossumec95c7b1998-08-04 17:59:56 +00002504#include "confdefs.h"
2505
2506int main() {
2507long long x; x = (long long)0;
2508; return 0; }
2509EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002510if { (eval echo configure:2511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossumec95c7b1998-08-04 17:59:56 +00002511 rm -rf conftest*
2512 cat >> confdefs.h <<\EOF
2513#define HAVE_LONG_LONG 1
2514EOF
2515 have_long_long=yes
2516else
2517 echo "configure: failed program was:" >&5
2518 cat conftest.$ac_ext >&5
2519fi
2520rm -f conftest*
2521echo "$ac_t""$have_long_long" 1>&6
Guido van Rossum96f2eb91999-04-10 16:02:18 +00002522if test "$have_long_long" = yes ; then
Guido van Rossumec95c7b1998-08-04 17:59:56 +00002523echo $ac_n "checking size of long long""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002524echo "configure:2525: checking size of long long" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002525if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
Guido van Rossumec95c7b1998-08-04 17:59:56 +00002526 echo $ac_n "(cached) $ac_c" 1>&6
2527else
2528 if test "$cross_compiling" = yes; then
2529 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2530else
2531 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002532#line 2533 "configure"
Guido van Rossumec95c7b1998-08-04 17:59:56 +00002533#include "confdefs.h"
2534#include <stdio.h>
2535main()
2536{
2537 FILE *f=fopen("conftestval", "w");
2538 if (!f) exit(1);
2539 fprintf(f, "%d\n", sizeof(long long));
2540 exit(0);
2541}
2542EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002543if { (eval echo configure:2544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Guido van Rossumec95c7b1998-08-04 17:59:56 +00002544then
2545 ac_cv_sizeof_long_long=`cat conftestval`
2546else
2547 echo "configure: failed program was:" >&5
2548 cat conftest.$ac_ext >&5
2549 rm -fr conftest*
2550 ac_cv_sizeof_long_long=0
2551fi
2552rm -fr conftest*
2553fi
2554
2555fi
2556echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2557cat >> confdefs.h <<EOF
2558#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2559EOF
2560
2561
2562fi
2563
Barry Warsawbc7c7f92000-08-18 04:53:33 +00002564echo $ac_n "checking for uintptr_t support""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002565echo "configure:2566: checking for uintptr_t support" >&5
Barry Warsawbc7c7f92000-08-18 04:53:33 +00002566have_uintptr_t=no
2567cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002568#line 2569 "configure"
Barry Warsawbc7c7f92000-08-18 04:53:33 +00002569#include "confdefs.h"
2570
2571int main() {
2572uintptr_t x; x = (uintptr_t)0;
2573; return 0; }
2574EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002575if { (eval echo configure:2576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Barry Warsawbc7c7f92000-08-18 04:53:33 +00002576 rm -rf conftest*
2577 cat >> confdefs.h <<\EOF
2578#define HAVE_UINTPTR_T 1
2579EOF
2580 have_uintptr_t=yes
2581else
2582 echo "configure: failed program was:" >&5
2583 cat conftest.$ac_ext >&5
2584fi
2585rm -f conftest*
2586echo "$ac_t""$have_uintptr_t" 1>&6
2587if test "$have_uintptr_t" = yes ; then
2588echo $ac_n "checking size of uintptr_t""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002589echo "configure:2590: checking size of uintptr_t" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002590if eval "test \"`echo '$''{'ac_cv_sizeof_uintptr_t'+set}'`\" = set"; then
Barry Warsawbc7c7f92000-08-18 04:53:33 +00002591 echo $ac_n "(cached) $ac_c" 1>&6
2592else
2593 if test "$cross_compiling" = yes; then
2594 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2595else
2596 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002597#line 2598 "configure"
Barry Warsawbc7c7f92000-08-18 04:53:33 +00002598#include "confdefs.h"
2599#include <stdio.h>
2600main()
2601{
2602 FILE *f=fopen("conftestval", "w");
2603 if (!f) exit(1);
2604 fprintf(f, "%d\n", sizeof(uintptr_t));
2605 exit(0);
2606}
2607EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002608if { (eval echo configure:2609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Barry Warsawbc7c7f92000-08-18 04:53:33 +00002609then
2610 ac_cv_sizeof_uintptr_t=`cat conftestval`
2611else
2612 echo "configure: failed program was:" >&5
2613 cat conftest.$ac_ext >&5
2614 rm -fr conftest*
2615 ac_cv_sizeof_uintptr_t=0
2616fi
2617rm -fr conftest*
2618fi
2619
2620fi
2621echo "$ac_t""$ac_cv_sizeof_uintptr_t" 1>&6
2622cat >> confdefs.h <<EOF
2623#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
2624EOF
2625
2626
2627fi
2628
Guido van Rossumf98e2a71999-01-06 18:53:34 +00002629# Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
2630echo $ac_n "checking size of off_t""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002631echo "configure:2632: checking size of off_t" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002632if eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then
Guido van Rossumf98e2a71999-01-06 18:53:34 +00002633 echo $ac_n "(cached) $ac_c" 1>&6
2634else
2635 if test "$cross_compiling" = yes; then
2636 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2637else
2638 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002639#line 2640 "configure"
Guido van Rossumf98e2a71999-01-06 18:53:34 +00002640#include "confdefs.h"
2641#include <stdio.h>
2642#include <sys/types.h>
2643main()
2644{
2645 FILE *f=fopen("conftestval", "w");
2646 if (!f) exit(1);
2647 fprintf(f, "%d\n", sizeof(off_t));
2648 exit(0);
2649}
2650EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002651if { (eval echo configure:2652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Guido van Rossumf98e2a71999-01-06 18:53:34 +00002652then
2653 ac_cv_sizeof_off_t=`cat conftestval`
2654else
2655 echo "configure: failed program was:" >&5
2656 cat conftest.$ac_ext >&5
2657 rm -fr conftest*
2658 ac_cv_sizeof_off_t=0
2659fi
2660rm -fr conftest*
2661fi
2662
2663
2664fi
2665
2666echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6
2667cat >> confdefs.h <<EOF
2668#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
2669EOF
2670
2671
2672echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002673echo "configure:2674: checking whether to enable large file support" >&5
Guido van Rossum96f2eb91999-04-10 16:02:18 +00002674if test "$have_long_long" = yes -a \
2675 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
2676 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
Guido van Rossumf98e2a71999-01-06 18:53:34 +00002677 cat >> confdefs.h <<\EOF
2678#define HAVE_LARGEFILE_SUPPORT 1
2679EOF
2680
2681 echo "$ac_t""yes" 1>&6
2682else
2683 echo "$ac_t""no" 1>&6
2684fi
2685
Guido van Rossumb9a22a12000-06-30 02:48:53 +00002686# AC_CHECK_SIZEOF() doesn't include <time.h>.
2687echo $ac_n "checking size of time_t""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002688echo "configure:2689: checking size of time_t" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002689if eval "test \"`echo '$''{'ac_cv_sizeof_time_t'+set}'`\" = set"; then
Guido van Rossumb9a22a12000-06-30 02:48:53 +00002690 echo $ac_n "(cached) $ac_c" 1>&6
2691else
2692 if test "$cross_compiling" = yes; then
2693 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2694else
2695 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002696#line 2697 "configure"
Guido van Rossumb9a22a12000-06-30 02:48:53 +00002697#include "confdefs.h"
2698#include <stdio.h>
2699#include <time.h>
2700main()
2701{
2702 FILE *f=fopen("conftestval", "w");
2703 if (!f) exit(1);
2704 fprintf(f, "%d\n", sizeof(time_t));
2705 exit(0);
2706}
2707EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002708if { (eval echo configure:2709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Guido van Rossumb9a22a12000-06-30 02:48:53 +00002709then
2710 ac_cv_sizeof_time_t=`cat conftestval`
2711else
2712 echo "configure: failed program was:" >&5
2713 cat conftest.$ac_ext >&5
2714 rm -fr conftest*
2715 ac_cv_sizeof_time_t=0
2716fi
2717rm -fr conftest*
2718fi
2719
2720
2721fi
2722
2723echo "$ac_t""$ac_cv_sizeof_time_t" 1>&6
2724cat >> confdefs.h <<EOF
2725#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
2726EOF
2727
2728
Guido van Rossumf98e2a71999-01-06 18:53:34 +00002729
Trent Mick635f6fb2000-08-23 21:33:05 +00002730# if have pthread_t then define SIZEOF_PTHREAD_T
2731echo $ac_n "checking for pthread_t""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002732echo "configure:2733: checking for pthread_t" >&5
Trent Mick635f6fb2000-08-23 21:33:05 +00002733have_pthread_t=no
2734cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002735#line 2736 "configure"
Trent Mick635f6fb2000-08-23 21:33:05 +00002736#include "confdefs.h"
2737#include <pthread.h>
2738int main() {
Guido van Rossum12580492000-09-24 16:47:19 +00002739pthread_t x; x = *(pthread_t*)0;
Trent Mick635f6fb2000-08-23 21:33:05 +00002740; return 0; }
2741EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002742if { (eval echo configure:2743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Trent Mick635f6fb2000-08-23 21:33:05 +00002743 rm -rf conftest*
2744 have_pthread_t=yes
2745else
2746 echo "configure: failed program was:" >&5
2747 cat conftest.$ac_ext >&5
2748fi
2749rm -f conftest*
2750echo "$ac_t""$have_pthread_t" 1>&6
2751if test "$have_pthread_t" = yes ; then
2752 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
2753 echo $ac_n "checking size of pthread_t""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002754echo "configure:2755: checking size of pthread_t" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002755 if eval "test \"`echo '$''{'ac_cv_sizeof_pthread_t'+set}'`\" = set"; then
Trent Mick635f6fb2000-08-23 21:33:05 +00002756 echo $ac_n "(cached) $ac_c" 1>&6
2757else
2758 if test "$cross_compiling" = yes; then
2759 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2760else
2761 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002762#line 2763 "configure"
Trent Mick635f6fb2000-08-23 21:33:05 +00002763#include "confdefs.h"
2764#include <stdio.h>
2765 #include <pthread.h>
2766 main()
2767 {
2768 FILE *f=fopen("conftestval", "w");
2769 if (!f) exit(1);
2770 fprintf(f, "%d\n", sizeof(pthread_t));
2771 exit(0);
2772 }
2773EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002774if { (eval echo configure:2775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Trent Mick635f6fb2000-08-23 21:33:05 +00002775then
2776 ac_cv_sizeof_pthread_t=`cat conftestval`
2777else
2778 echo "configure: failed program was:" >&5
2779 cat conftest.$ac_ext >&5
2780 rm -fr conftest*
2781 ac_cv_sizeof_pthread_t=0
2782fi
2783rm -fr conftest*
2784fi
2785
2786
2787fi
2788
2789 echo "$ac_t""$ac_cv_sizeof_pthread_t" 1>&6
2790 cat >> confdefs.h <<EOF
2791#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
2792EOF
2793
2794fi
2795
2796
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00002797# Minor variations in building a framework between NextStep versions 4 and 5
2798
2799case $ac_sys_system/$ac_sys_release in
Guido van Rossum5839e582000-10-09 19:52:35 +00002800 Darwin/*)
2801 ns_undef_sym='_environ'
2802 LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -U $ns_undef_sym" ;;
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00002803 next/4*)
2804 ns_undef_sym='__environ'
2805 LIBTOOL_CRUFT="-U $ns_undef_sym" ;;
2806 next/5*)
2807 ns_undef_sym='_environ'
2808 LIBTOOL_CRUFT="-lcc_dynamic -U $ns_undef_sym" ;;
2809esac
2810
2811echo $ac_n "checking for --with-next-framework""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002812echo "configure:2813: checking for --with-next-framework" >&5
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00002813if test "$with_next_framework"
2814then
2815 OPT="$OPT -fno-common"
2816 # -U __environ is needed since bundles don't have access
2817 # to crt0 when built but will always be linked against it
2818 LDFLAGS="$LDFLAGS -Wl,-U,$ns_undef_sym"
2819 cat >> confdefs.h <<\EOF
2820#define WITH_NEXT_FRAMEWORK 1
2821EOF
2822
2823 echo "$ac_t""yes" 1>&6
2824else
2825 echo "$ac_t""no" 1>&6
2826fi
2827
2828echo $ac_n "checking for --with-dyld""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002829echo "configure:2830: checking for --with-dyld" >&5
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00002830if test "$with_next_framework" -o "$with_dyld"
2831then
2832 if test "$with_dyld"
2833 then
2834 echo "$ac_t""yes" 1>&6
2835 else
2836 echo "$ac_t""required for framework build" 1>&6
2837 fi
2838 cat >> confdefs.h <<\EOF
2839#define WITH_DYLD 1
2840EOF
2841
2842 ns_dyld='set'
2843else
2844 echo "$ac_t""no" 1>&6
2845fi
2846
Guido van Rossum0a516c91994-09-12 10:58:40 +00002847# Set info about shared libraries.
Guido van Rossum0a516c91994-09-12 10:58:40 +00002848
2849
2850
2851
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +00002852
Guido van Rossum0a516c91994-09-12 10:58:40 +00002853# SO is the extension of shared libraries `(including the dot!)
Guido van Rossumaef734b2001-01-10 21:09:12 +00002854# -- usually .so, .sl on HP-UX, .dll on Cygwin
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002855echo $ac_n "checking SO""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002856echo "configure:2857: checking SO" >&5
Guido van Rossum0a516c91994-09-12 10:58:40 +00002857if test -z "$SO"
2858then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002859 case $ac_sys_system in
Guido van Rossum563e7081996-09-10 18:20:48 +00002860 hp*|HP*) SO=.sl;;
Guido van Rossumaef734b2001-01-10 21:09:12 +00002861 CYGWIN*) SO=.dll;;
Guido van Rossum563e7081996-09-10 18:20:48 +00002862 *) SO=.so;;
Guido van Rossum0a516c91994-09-12 10:58:40 +00002863 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +00002864fi
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002865echo "$ac_t""$SO" 1>&6
Guido van Rossum0a516c91994-09-12 10:58:40 +00002866# LDSHARED is the ld *command* used to create shared library
2867# -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00002868# (Shared libraries in this instance are shared modules to be loaded into
2869# Python, as opposed to building Python itself as a shared library.)
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002870echo $ac_n "checking LDSHARED""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002871echo "configure:2872: checking LDSHARED" >&5
Guido van Rossum0a516c91994-09-12 10:58:40 +00002872if test -z "$LDSHARED"
2873then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002874 case $ac_sys_system/$ac_sys_release in
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +00002875 AIX*)
2876 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
2877 LDSHARED="\$(BINLIBDEST)/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/python.exp"
2878 ;;
2879 BeOS*)
2880 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
2881 LDSHARED="\$(BINLIBDEST)/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
2882 ;;
Guido van Rossum07397971997-04-29 21:49:50 +00002883 IRIX/5*) LDSHARED="ld -shared";;
Guido van Rossum91922671997-10-09 20:24:13 +00002884 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
Guido van Rossum0a516c91994-09-12 10:58:40 +00002885 SunOS/4*) LDSHARED="ld";;
Greg Ward57c9a662000-05-26 12:22:54 +00002886 SunOS/5*)
2887 if test "$GCC" = "yes"
Neil Schemenauer8ba94452001-02-19 18:18:48 +00002888 then LDSHARED='$(CC) -shared'
Greg Ward57c9a662000-05-26 12:22:54 +00002889 else LDSHARED="ld -G";
2890 fi ;;
Guido van Rossum0a516c91994-09-12 10:58:40 +00002891 hp*|HP*) LDSHARED="ld -b";;
Guido van Rossumda88dad1995-01-26 00:46:29 +00002892 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
2893 DYNIX/ptx*) LDSHARED="ld -G";;
Guido van Rossum3dc0a512000-10-05 18:00:06 +00002894 Darwin/*|next/*)
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00002895 if test "$ns_dyld"
Guido van Rossumacb14c72001-01-10 21:41:16 +00002896 then LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined suppress'
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00002897 else LDSHARED='$(CC) $(CFLAGS) -nostdlib -r';
2898 fi
Guido van Rossum3dc0a512000-10-05 18:00:06 +00002899 if test "$with_next_framework" ; then
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00002900 LDSHARED="$LDSHARED \$(LDLIBRARY)"
2901 fi ;;
Guido van Rossum81652ab1996-07-21 02:53:27 +00002902 Linux*) LDSHARED="gcc -shared";;
Guido van Rossum3c4bb801997-12-18 23:55:32 +00002903 dgux*) LDSHARED="ld -G";;
Guido van Rossum458e7fa1999-09-17 15:40:40 +00002904 BSD/OS*/4*) LDSHARED="gcc -shared";;
Guido van Rossum0286ae82000-08-29 15:06:49 +00002905 OpenBSD*) LDSHARED="ld -Bshareable";;
Guido van Rossumdf693651999-01-07 21:50:41 +00002906 NetBSD*)
2907 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
2908 then
2909 LDSHARED="cc -shared"
2910 else
2911 LDSHARED="ld -Bshareable"
2912 fi;;
Guido van Rossum0286ae82000-08-29 15:06:49 +00002913 FreeBSD*)
Jeremy Hylton4bcc7c52000-08-31 17:45:35 +00002914 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
Guido van Rossum0286ae82000-08-29 15:06:49 +00002915 then
2916 LDSHARED="cc -shared ${LDFLAGS}"
2917 else
2918 LDSHARED="ld -Bshareable ${LDFLAGS}"
2919 fi;;
Guido van Rossum84e7b241996-08-19 21:59:00 +00002920 SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";;
Trent Mick635f6fb2000-08-23 21:33:05 +00002921 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
Guido van Rossumaef734b2001-01-10 21:09:12 +00002922 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
Guido van Rossum0a516c91994-09-12 10:58:40 +00002923 *) LDSHARED="ld";;
2924 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +00002925fi
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002926echo "$ac_t""$LDSHARED" 1>&6
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +00002927BLDSHARED=${BLDSHARED-$LDSHARED}
Guido van Rossum0a516c91994-09-12 10:58:40 +00002928# CCSHARED are the C *flags* used to create objects to go into a shared
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00002929# library (module) -- this is only needed for a few systems
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002930echo $ac_n "checking CCSHARED""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002931echo "configure:2932: checking CCSHARED" >&5
Guido van Rossum0a516c91994-09-12 10:58:40 +00002932if test -z "$CCSHARED"
2933then
Guido van Rossum07397971997-04-29 21:49:50 +00002934 case $ac_sys_system/$ac_sys_release in
Neil Schemenauerc761fc82001-02-19 04:50:49 +00002935 SunOS*) if test "$GCC" = yes;
2936 then CCSHARED="-fPIC";
2937 fi;;
Guido van Rossumaf07a441995-02-13 19:45:27 +00002938 hp*|HP*) if test "$GCC" = yes;
2939 then CCSHARED="-fpic";
2940 else CCSHARED="+z";
2941 fi;;
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00002942 Linux*) CCSHARED="-fPIC";;
Guido van Rossumf5957ea1999-10-05 21:59:33 +00002943 BSD/OS*/4*) CCSHARED="-fpic";;
Guido van Rossum0286ae82000-08-29 15:06:49 +00002944 OpenBSD*) CCSHARED="-fpic";;
2945 FreeBSD*|NetBSD*) CCSHARED="-fPIC";;
Guido van Rossum84e7b241996-08-19 21:59:00 +00002946 SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";;
Trent Mick635f6fb2000-08-23 21:33:05 +00002947 Monterey*) CCSHARED="-G";;
Guido van Rossum2b5ca001998-03-05 15:41:09 +00002948 IRIX*/6*) case $CC in
2949 *gcc*) CCSHARED="-shared";;
Guido van Rossumee21f411998-04-20 18:51:54 +00002950 *) CCSHARED="";;
Guido van Rossum2b5ca001998-03-05 15:41:09 +00002951 esac;;
Guido van Rossumaef734b2001-01-10 21:09:12 +00002952 CYGWIN*) CCSHARED="-DUSE_DL_IMPORT";;
Guido van Rossum0a516c91994-09-12 10:58:40 +00002953 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +00002954fi
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002955echo "$ac_t""$CCSHARED" 1>&6
Guido van Rossum0a516c91994-09-12 10:58:40 +00002956# LINKFORSHARED are the flags passed to the $(CC) command that links
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002957# the python executable -- this is only needed for a few systems
2958echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002959echo "configure:2960: checking LINKFORSHARED" >&5
Guido van Rossum0a516c91994-09-12 10:58:40 +00002960if test -z "$LINKFORSHARED"
2961then
Guido van Rossum07397971997-04-29 21:49:50 +00002962 case $ac_sys_system/$ac_sys_release in
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +00002963 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
Guido van Rossumccaf3b61996-12-06 21:19:16 +00002964 hp*|HP*)
Guido van Rossum304dd2d1997-10-20 23:10:56 +00002965 LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
Guido van Rossumf5957ea1999-10-05 21:59:33 +00002966 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
Guido van Rossum2d9feed1997-11-24 17:36:21 +00002967 Linux*) LINKFORSHARED="-Xlinker -export-dynamic";;
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00002968 # -u libsys_s pulls in all symbols in libsys
2969 next/2*|next/3*) LINKFORSHARED="-u libsys_s";;
2970 # -u __dummy makes the linker aware of the objc runtime
2971 # in System.framework; otherwise, __objcInit (referenced in
2972 # crt1.o) gets erroneously defined as common, which breaks dynamic
2973 # loading of any modules which reference it in System.framework
2974 next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;;
Guido van Rossumacb14c72001-01-10 21:41:16 +00002975 Darwin/*) LINKFORSHARED="-u __dummy -framework System -framework Foundation" ;;
Guido van Rossum84e7b241996-08-19 21:59:00 +00002976 SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
Fred Drake02706f52000-09-25 15:08:46 +00002977 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
Guido van Rossum0286ae82000-08-29 15:06:49 +00002978 FreeBSD*|NetBSD*)
Guido van Rossumdf693651999-01-07 21:50:41 +00002979 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
2980 then
2981 LINKFORSHARED="-Wl,--export-dynamic"
2982 fi;;
Guido van Rossum2b5ca001998-03-05 15:41:09 +00002983 SunOS/5*) case $CC in
2984 *gcc*)
Guido van Rossumff484182000-02-03 13:50:24 +00002985 if $CC -Xlinker -V 2>&1 | grep BFD >/dev/null
Guido van Rossum8f4ceb11997-12-18 23:42:19 +00002986 then
2987 LINKFORSHARED="-Xlinker --export-dynamic"
Guido van Rossum2b5ca001998-03-05 15:41:09 +00002988 fi;;
2989 esac;;
Guido van Rossum0a516c91994-09-12 10:58:40 +00002990 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +00002991fi
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002992echo "$ac_t""$LINKFORSHARED" 1>&6
Guido van Rossum0a516c91994-09-12 10:58:40 +00002993
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00002994
2995echo $ac_n "checking CFLAGSFORSHARED""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00002996echo "configure:2997: checking CFLAGSFORSHARED" >&5
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00002997if test ! "$LIBRARY" = "$LDLIBRARY"
2998then
Neil Schemenauer0c6141f2001-01-27 21:40:54 +00002999 case $ac_sys_system in
3000 CYGWIN*)
3001 # Cygwin needs CCSHARED when building extension DLLs
3002 # but not when building the interpreter DLL.
3003 CFLAGSFORSHARED='';;
3004 *)
3005 CFLAGSFORSHARED='$(CCSHARED)'
3006 esac
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00003007fi
3008echo "$ac_t""$CFLAGSFORSHARED" 1>&6
3009
Guido van Rossum627b2d71993-12-24 10:39:16 +00003010# checks for libraries
Guido van Rossumf78abae1997-01-21 22:02:36 +00003011echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003012echo "configure:3013: checking for dlopen in -ldl" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00003013ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003014if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003015 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003016else
3017 ac_save_LIBS="$LIBS"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003018LIBS="-ldl $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003019cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003020#line 3021 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00003021#include "confdefs.h"
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003022/* Override any gcc2 internal prototype to avoid an error. */
3023/* We use char because int might match the return type of a gcc2
3024 builtin and then its argument prototype would still apply. */
3025char dlopen();
Guido van Rossum627b2d71993-12-24 10:39:16 +00003026
Guido van Rossumf78abae1997-01-21 22:02:36 +00003027int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003028dlopen()
3029; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00003030EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003031if { (eval echo configure:3032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00003032 rm -rf conftest*
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003033 eval "ac_cv_lib_$ac_lib_var=yes"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003034else
Guido van Rossumf78abae1997-01-21 22:02:36 +00003035 echo "configure: failed program was:" >&5
3036 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003037 rm -rf conftest*
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003038 eval "ac_cv_lib_$ac_lib_var=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00003039fi
3040rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003041LIBS="$ac_save_LIBS"
Guido van Rossum627b2d71993-12-24 10:39:16 +00003042
Guido van Rossum627b2d71993-12-24 10:39:16 +00003043fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003044if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003045 echo "$ac_t""yes" 1>&6
Guido van Rossumf78abae1997-01-21 22:02:36 +00003046 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3047 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003048 cat >> confdefs.h <<EOF
3049#define $ac_tr_lib 1
3050EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00003051
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003052 LIBS="-ldl $LIBS"
Guido van Rossum7f43da71994-08-01 12:15:30 +00003053
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003054else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003055 echo "$ac_t""no" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003056fi
3057 # Dynamic linking for SunOS/Solaris and SYSV
Guido van Rossumf78abae1997-01-21 22:02:36 +00003058echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003059echo "configure:3060: checking for shl_load in -ldld" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00003060ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003061if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003062 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003063else
3064 ac_save_LIBS="$LIBS"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003065LIBS="-ldld $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003066cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003067#line 3068 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00003068#include "confdefs.h"
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003069/* Override any gcc2 internal prototype to avoid an error. */
3070/* We use char because int might match the return type of a gcc2
3071 builtin and then its argument prototype would still apply. */
3072char shl_load();
Guido van Rossum627b2d71993-12-24 10:39:16 +00003073
Guido van Rossumf78abae1997-01-21 22:02:36 +00003074int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003075shl_load()
3076; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00003077EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003078if { (eval echo configure:3079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00003079 rm -rf conftest*
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003080 eval "ac_cv_lib_$ac_lib_var=yes"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003081else
Guido van Rossumf78abae1997-01-21 22:02:36 +00003082 echo "configure: failed program was:" >&5
3083 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003084 rm -rf conftest*
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003085 eval "ac_cv_lib_$ac_lib_var=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00003086fi
3087rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003088LIBS="$ac_save_LIBS"
Guido van Rossum627b2d71993-12-24 10:39:16 +00003089
Guido van Rossum627b2d71993-12-24 10:39:16 +00003090fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003091if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003092 echo "$ac_t""yes" 1>&6
Guido van Rossumf78abae1997-01-21 22:02:36 +00003093 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3094 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003095 cat >> confdefs.h <<EOF
3096#define $ac_tr_lib 1
3097EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00003098
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003099 LIBS="-ldld $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003100
3101else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003102 echo "$ac_t""no" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003103fi
3104 # Dynamic linking for HP-UX
Guido van Rossum0eefa3f1999-11-16 15:57:37 +00003105
Skip Montanarocb853262000-08-30 22:29:48 +00003106# Check for --with-pydebug
3107echo $ac_n "checking for --with-pydebug""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003108echo "configure:3109: checking for --with-pydebug" >&5
Skip Montanarocb853262000-08-30 22:29:48 +00003109# Check whether --with-pydebug or --without-pydebug was given.
3110if test "${with_pydebug+set}" = set; then
3111 withval="$with_pydebug"
3112
3113if test "$withval" != no
3114then cat >> confdefs.h <<\EOF
3115#define Py_DEBUG 1
3116EOF
3117 echo "$ac_t""yes" 1>&6
3118else echo "$ac_t""no" 1>&6
3119fi
3120else
3121 echo "$ac_t""no" 1>&6
3122fi
3123
3124
Guido van Rossum0eefa3f1999-11-16 15:57:37 +00003125# checks for system dependent C++ extensions support
3126case "$ac_sys_system" in
3127 AIX*) echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003128echo "configure:3129: checking for genuine AIX C++ extensions support" >&5
Guido van Rossum0eefa3f1999-11-16 15:57:37 +00003129 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003130#line 3131 "configure"
Guido van Rossum0eefa3f1999-11-16 15:57:37 +00003131#include "confdefs.h"
3132#include "/usr/lpp/xlC/include/load.h"
3133int main() {
3134loadAndInit("", 0, "")
3135; return 0; }
3136EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003137if { (eval echo configure:3138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum0eefa3f1999-11-16 15:57:37 +00003138 rm -rf conftest*
3139 cat >> confdefs.h <<\EOF
3140#define AIX_GENUINE_CPLUSPLUS 1
3141EOF
3142
3143 echo "$ac_t""yes" 1>&6
3144else
3145 echo "configure: failed program was:" >&5
3146 cat conftest.$ac_ext >&5
3147 rm -rf conftest*
3148 echo "$ac_t""no" 1>&6
3149fi
3150rm -f conftest*;;
3151 *) ;;
3152esac
3153
Guido van Rossum70c7f481998-03-26 18:44:10 +00003154# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
3155# However on SGI IRIX, these exist but are broken.
Guido van Rossumec95c7b1998-08-04 17:59:56 +00003156# BeOS' sockets are stashed in libnet.
3157case "$ac_sys_system" in
3158IRIX*) ;;
Guido van Rossumb93a8621998-05-07 13:27:32 +00003159*)
Guido van Rossumf78abae1997-01-21 22:02:36 +00003160echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003161echo "configure:3162: checking for t_open in -lnsl" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00003162ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003163if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003164 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum79dddcb1995-01-12 12:25:42 +00003165else
3166 ac_save_LIBS="$LIBS"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003167LIBS="-lnsl $LIBS"
Guido van Rossum79dddcb1995-01-12 12:25:42 +00003168cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003169#line 3170 "configure"
Guido van Rossum79dddcb1995-01-12 12:25:42 +00003170#include "confdefs.h"
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003171/* Override any gcc2 internal prototype to avoid an error. */
3172/* We use char because int might match the return type of a gcc2
3173 builtin and then its argument prototype would still apply. */
3174char t_open();
Guido van Rossum79dddcb1995-01-12 12:25:42 +00003175
Guido van Rossumf78abae1997-01-21 22:02:36 +00003176int main() {
Guido van Rossum0ddb0281995-01-17 16:46:14 +00003177t_open()
Guido van Rossum79dddcb1995-01-12 12:25:42 +00003178; return 0; }
3179EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003180if { (eval echo configure:3181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum79dddcb1995-01-12 12:25:42 +00003181 rm -rf conftest*
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003182 eval "ac_cv_lib_$ac_lib_var=yes"
Guido van Rossum79dddcb1995-01-12 12:25:42 +00003183else
Guido van Rossumf78abae1997-01-21 22:02:36 +00003184 echo "configure: failed program was:" >&5
3185 cat conftest.$ac_ext >&5
Guido van Rossum79dddcb1995-01-12 12:25:42 +00003186 rm -rf conftest*
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003187 eval "ac_cv_lib_$ac_lib_var=no"
Guido van Rossum79dddcb1995-01-12 12:25:42 +00003188fi
3189rm -f conftest*
3190LIBS="$ac_save_LIBS"
3191
3192fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003193if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003194 echo "$ac_t""yes" 1>&6
Guido van Rossum79dddcb1995-01-12 12:25:42 +00003195 LIBS="-lnsl $LIBS"
3196else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003197 echo "$ac_t""no" 1>&6
Guido van Rossum79dddcb1995-01-12 12:25:42 +00003198fi
Guido van Rossum0ddb0281995-01-17 16:46:14 +00003199 # SVR4
Guido van Rossumf78abae1997-01-21 22:02:36 +00003200echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003201echo "configure:3202: checking for socket in -lsocket" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00003202ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003203if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003204 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003205else
3206 ac_save_LIBS="$LIBS"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003207LIBS="-lsocket $LIBS $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003208cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003209#line 3210 "configure"
Guido van Rossumec95c7b1998-08-04 17:59:56 +00003210#include "confdefs.h"
3211/* Override any gcc2 internal prototype to avoid an error. */
3212/* We use char because int might match the return type of a gcc2
3213 builtin and then its argument prototype would still apply. */
3214char socket();
3215
3216int main() {
3217socket()
3218; return 0; }
3219EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003220if { (eval echo configure:3221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossumec95c7b1998-08-04 17:59:56 +00003221 rm -rf conftest*
3222 eval "ac_cv_lib_$ac_lib_var=yes"
3223else
3224 echo "configure: failed program was:" >&5
3225 cat conftest.$ac_ext >&5
3226 rm -rf conftest*
3227 eval "ac_cv_lib_$ac_lib_var=no"
3228fi
3229rm -f conftest*
3230LIBS="$ac_save_LIBS"
3231
3232fi
3233if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3234 echo "$ac_t""yes" 1>&6
Guido van Rossumad678af1998-10-02 14:42:15 +00003235 LIBS="-lsocket $LIBS"
3236else
3237 echo "$ac_t""no" 1>&6
3238fi
3239 # SVR4 sockets
Jeremy Hyltoncb25d5e2000-07-27 21:23:28 +00003240;;
3241esac
3242case "$ac_sys_system" in
3243BeOS*)
Guido van Rossumad678af1998-10-02 14:42:15 +00003244echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003245echo "configure:3246: checking for socket in -lnet" >&5
Guido van Rossumad678af1998-10-02 14:42:15 +00003246ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003247if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Guido van Rossumad678af1998-10-02 14:42:15 +00003248 echo $ac_n "(cached) $ac_c" 1>&6
3249else
3250 ac_save_LIBS="$LIBS"
3251LIBS="-lnet $LIBS $LIBS"
3252cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003253#line 3254 "configure"
Guido van Rossumad678af1998-10-02 14:42:15 +00003254#include "confdefs.h"
3255/* Override any gcc2 internal prototype to avoid an error. */
3256/* We use char because int might match the return type of a gcc2
3257 builtin and then its argument prototype would still apply. */
3258char socket();
3259
3260int main() {
3261socket()
3262; return 0; }
3263EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003264if { (eval echo configure:3265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossumad678af1998-10-02 14:42:15 +00003265 rm -rf conftest*
3266 eval "ac_cv_lib_$ac_lib_var=yes"
3267else
3268 echo "configure: failed program was:" >&5
3269 cat conftest.$ac_ext >&5
3270 rm -rf conftest*
3271 eval "ac_cv_lib_$ac_lib_var=no"
3272fi
3273rm -f conftest*
3274LIBS="$ac_save_LIBS"
3275
3276fi
3277if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3278 echo "$ac_t""yes" 1>&6
Guido van Rossumec95c7b1998-08-04 17:59:56 +00003279 LIBS="-lnet $LIBS"
3280else
3281 echo "$ac_t""no" 1>&6
3282fi
3283 # BeOS
3284;;
3285esac
Guido van Rossum70c7f481998-03-26 18:44:10 +00003286
Guido van Rossuma68acba1996-07-31 17:36:39 +00003287echo $ac_n "checking for --with-libs""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003288echo "configure:3289: checking for --with-libs" >&5
Guido van Rossuma68acba1996-07-31 17:36:39 +00003289# Check whether --with-libs or --without-libs was given.
3290if test "${with_libs+set}" = set; then
3291 withval="$with_libs"
3292
3293echo "$ac_t""$withval" 1>&6
3294LIBS="$withval $LIBS"
3295
3296else
3297 echo "$ac_t""no" 1>&6
3298fi
3299
Guido van Rossum7f43da71994-08-01 12:15:30 +00003300
Neil Schemenauerd32c2492001-01-24 17:25:28 +00003301# Determine if signalmodule should be used.
3302
3303
3304echo $ac_n "checking for --with-signal-module""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003305echo "configure:3306: checking for --with-signal-module" >&5
Neil Schemenauerd32c2492001-01-24 17:25:28 +00003306# Check whether --with-signal-module or --without-signal-module was given.
3307if test "${with_signal_module+set}" = set; then
3308 withval="$with_signal_module"
3309 :
3310fi
3311
3312
3313if test -z "$with_signal_module"
3314then with_signal_module="yes"
3315fi
3316echo "$ac_t""$with_signal_module" 1>&6
3317
3318if test "${with_signal_module}" = "yes"; then
3319 USE_SIGNAL_MODULE=""
3320 SIGNAL_OBJS=""
3321else
3322 USE_SIGNAL_MODULE="#"
3323 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
3324fi
3325
Guido van Rossum3d15bd82001-01-10 18:53:48 +00003326# This is used to generate Setup.config
Guido van Rossum009f7871997-12-04 00:51:42 +00003327
Barry Warsawc0d24d82000-06-29 16:12:00 +00003328USE_THREAD_MODULE=""
Guido van Rossum009f7871997-12-04 00:51:42 +00003329
Guido van Rossumec2f0731997-01-22 20:54:01 +00003330echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003331echo "configure:3332: checking for --with-dec-threads" >&5
Guido van Rossumec2f0731997-01-22 20:54:01 +00003332
3333# Check whether --with-dec-threads or --without-dec-threads was given.
3334if test "${with_dec_threads+set}" = set; then
3335 withval="$with_dec_threads"
Barry Warsawc0d24d82000-06-29 16:12:00 +00003336
3337echo "$ac_t""$withval" 1>&6
Guido van Rossumec2f0731997-01-22 20:54:01 +00003338LDLAST=-threads
Guido van Rossumf78abae1997-01-21 22:02:36 +00003339if test "${with_thread+set}" != set; then
Guido van Rossumec2f0731997-01-22 20:54:01 +00003340 with_thread="$withval";
Guido van Rossumf78abae1997-01-21 22:02:36 +00003341fi
Guido van Rossumec2f0731997-01-22 20:54:01 +00003342else
3343 echo "$ac_t""no" 1>&6
3344fi
3345
3346
3347echo $ac_n "checking for --with-threads""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003348echo "configure:3349: checking for --with-threads" >&5
Guido van Rossumec2f0731997-01-22 20:54:01 +00003349# Check whether --with-threads or --without-threads was given.
3350if test "${with_threads+set}" = set; then
3351 withval="$with_threads"
Barry Warsawc0d24d82000-06-29 16:12:00 +00003352 :
Guido van Rossumec2f0731997-01-22 20:54:01 +00003353fi
3354
3355
Barry Warsawc0d24d82000-06-29 16:12:00 +00003356# --with-thread is deprecated, but check for it anyway
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003357# Check whether --with-thread or --without-thread was given.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003358if test "${with_thread+set}" = set; then
3359 withval="$with_thread"
Barry Warsawa0f3c5c2000-06-30 16:39:35 +00003360
3361with_threads=$with_thread
Guido van Rossum7f43da71994-08-01 12:15:30 +00003362fi
Barry Warsawc0d24d82000-06-29 16:12:00 +00003363
3364
3365if test -z "$with_threads"
3366then with_threads="yes"
3367fi
3368echo "$ac_t""$with_threads" 1>&6
3369
3370if test "$with_threads" = "no"
3371then
3372 USE_THREAD_MODULE="#"
3373else
Guido van Rossum40951012000-10-07 16:21:27 +00003374 if test ! -z "$with_threads" -a -d "$with_threads"
Barry Warsawc0d24d82000-06-29 16:12:00 +00003375 then LDFLAGS="$LDFLAGS -L$with_threads"
3376 fi
Guido van Rossum40951012000-10-07 16:21:27 +00003377 if test ! -z "$withval" -a -d "$withval"
Barry Warsawc0d24d82000-06-29 16:12:00 +00003378 then LDFLAGS="$LDFLAGS -L$withval"
3379 fi
3380 cat >> confdefs.h <<\EOF
Guido van Rossum9caf77a1996-08-01 00:52:26 +00003381#define _REENTRANT 1
3382EOF
3383
Barry Warsawc0d24d82000-06-29 16:12:00 +00003384 ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'`
Guido van Rossum7b3853f1996-07-30 18:09:35 +00003385echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003386echo "configure:3387: checking for mach/cthreads.h" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003387if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
Guido van Rossum7b3853f1996-07-30 18:09:35 +00003388 echo $ac_n "(cached) $ac_c" 1>&6
3389else
3390 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003391#line 3392 "configure"
Guido van Rossum7b3853f1996-07-30 18:09:35 +00003392#include "confdefs.h"
3393#include <mach/cthreads.h>
3394EOF
3395ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003396{ (eval echo configure:3397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Guido van Rossume6c2cf11999-01-08 21:08:33 +00003397ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Guido van Rossum7b3853f1996-07-30 18:09:35 +00003398if test -z "$ac_err"; then
3399 rm -rf conftest*
3400 eval "ac_cv_header_$ac_safe=yes"
3401else
3402 echo "$ac_err" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00003403 echo "configure: failed program was:" >&5
3404 cat conftest.$ac_ext >&5
Guido van Rossum7b3853f1996-07-30 18:09:35 +00003405 rm -rf conftest*
3406 eval "ac_cv_header_$ac_safe=no"
3407fi
3408rm -f conftest*
3409fi
3410if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3411 echo "$ac_t""yes" 1>&6
3412 cat >> confdefs.h <<\EOF
3413#define WITH_THREAD 1
3414EOF
3415
Barry Warsawc0d24d82000-06-29 16:12:00 +00003416 cat >> confdefs.h <<\EOF
Guido van Rossum7b3853f1996-07-30 18:09:35 +00003417#define C_THREADS 1
3418EOF
3419
Neil Schemenauerd32c2492001-01-24 17:25:28 +00003420 LIBOBJS="$LIBOBJS Python/thread.o"
Guido van Rossum7b3853f1996-07-30 18:09:35 +00003421else
3422 echo "$ac_t""no" 1>&6
3423
Guido van Rossum9e8181b2000-09-19 00:46:46 +00003424 echo $ac_n "checking for --with-pth""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003425echo "configure:3426: checking for --with-pth" >&5
Guido van Rossum9e8181b2000-09-19 00:46:46 +00003426 # Check whether --with-pth or --without-pth was given.
3427if test "${with_pth+set}" = set; then
3428 withval="$with_pth"
3429
3430 echo "$ac_t""$withval" 1>&6
3431 cat >> confdefs.h <<\EOF
3432#define WITH_THREAD 1
3433EOF
3434
3435 cat >> confdefs.h <<\EOF
3436#define HAVE_PTH 1
3437EOF
3438
3439 LIBS="-lpth $LIBS"
Neil Schemenauerd32c2492001-01-24 17:25:28 +00003440 LIBOBJS="$LIBOBJS Python/thread.o"
Guido van Rossum9e8181b2000-09-19 00:46:46 +00003441else
3442
3443 echo "$ac_t""no" 1>&6
Barry Warsawc0d24d82000-06-29 16:12:00 +00003444 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003445echo "configure:3446: checking for pthread_create in -lpthread" >&5
Guido van Rossum02a1c402000-02-25 19:26:31 +00003446ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003447if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Guido van Rossum02a1c402000-02-25 19:26:31 +00003448 echo $ac_n "(cached) $ac_c" 1>&6
3449else
3450 ac_save_LIBS="$LIBS"
3451LIBS="-lpthread $LIBS"
3452cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003453#line 3454 "configure"
Guido van Rossum02a1c402000-02-25 19:26:31 +00003454#include "confdefs.h"
3455/* Override any gcc2 internal prototype to avoid an error. */
3456/* We use char because int might match the return type of a gcc2
3457 builtin and then its argument prototype would still apply. */
3458char pthread_create();
3459
3460int main() {
3461pthread_create()
3462; return 0; }
3463EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003464if { (eval echo configure:3465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum02a1c402000-02-25 19:26:31 +00003465 rm -rf conftest*
3466 eval "ac_cv_lib_$ac_lib_var=yes"
3467else
3468 echo "configure: failed program was:" >&5
3469 cat conftest.$ac_ext >&5
3470 rm -rf conftest*
3471 eval "ac_cv_lib_$ac_lib_var=no"
3472fi
3473rm -f conftest*
3474LIBS="$ac_save_LIBS"
3475
3476fi
3477if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3478 echo "$ac_t""yes" 1>&6
3479 cat >> confdefs.h <<\EOF
3480#define WITH_THREAD 1
3481EOF
3482
Barry Warsawc0d24d82000-06-29 16:12:00 +00003483 cat >> confdefs.h <<\EOF
Guido van Rossum02a1c402000-02-25 19:26:31 +00003484#define _POSIX_THREADS 1
3485EOF
3486
Barry Warsawc0d24d82000-06-29 16:12:00 +00003487 LIBS="-lpthread $LIBS"
Neil Schemenauerd32c2492001-01-24 17:25:28 +00003488 LIBOBJS="$LIBOBJS Python/thread.o"
Guido van Rossum02a1c402000-02-25 19:26:31 +00003489else
3490 echo "$ac_t""no" 1>&6
3491
Barry Warsawc0d24d82000-06-29 16:12:00 +00003492 echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003493echo "configure:3494: checking for pthread_detach" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003494if eval "test \"`echo '$''{'ac_cv_func_pthread_detach'+set}'`\" = set"; then
Guido van Rossumad678af1998-10-02 14:42:15 +00003495 echo $ac_n "(cached) $ac_c" 1>&6
3496else
3497 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003498#line 3499 "configure"
Guido van Rossumad678af1998-10-02 14:42:15 +00003499#include "confdefs.h"
3500/* System header to define __stub macros and hopefully few prototypes,
Guido van Rossumea516321998-12-17 18:08:55 +00003501 which can conflict with char pthread_detach(); below. */
Guido van Rossumad678af1998-10-02 14:42:15 +00003502#include <assert.h>
3503/* Override any gcc2 internal prototype to avoid an error. */
3504/* We use char because int might match the return type of a gcc2
3505 builtin and then its argument prototype would still apply. */
Guido van Rossumea516321998-12-17 18:08:55 +00003506char pthread_detach();
Guido van Rossumad678af1998-10-02 14:42:15 +00003507
3508int main() {
3509
3510/* The GNU C library defines this for functions which it implements
3511 to always fail with ENOSYS. Some functions are actually named
3512 something starting with __ and the normal name is an alias. */
Guido van Rossumea516321998-12-17 18:08:55 +00003513#if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
Guido van Rossumad678af1998-10-02 14:42:15 +00003514choke me
3515#else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003516pthread_detach();
Guido van Rossumad678af1998-10-02 14:42:15 +00003517#endif
3518
3519; return 0; }
3520EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003521if { (eval echo configure:3522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossumad678af1998-10-02 14:42:15 +00003522 rm -rf conftest*
Guido van Rossumea516321998-12-17 18:08:55 +00003523 eval "ac_cv_func_pthread_detach=yes"
Guido van Rossumad678af1998-10-02 14:42:15 +00003524else
3525 echo "configure: failed program was:" >&5
3526 cat conftest.$ac_ext >&5
3527 rm -rf conftest*
Guido van Rossumea516321998-12-17 18:08:55 +00003528 eval "ac_cv_func_pthread_detach=no"
Guido van Rossumad678af1998-10-02 14:42:15 +00003529fi
3530rm -f conftest*
3531fi
3532
Guido van Rossumea516321998-12-17 18:08:55 +00003533if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then
Guido van Rossumad678af1998-10-02 14:42:15 +00003534 echo "$ac_t""yes" 1>&6
3535 cat >> confdefs.h <<\EOF
3536#define WITH_THREAD 1
3537EOF
3538
Guido van Rossum5839e582000-10-09 19:52:35 +00003539 case $ac_sys_system in
3540 Darwin*) ;;
3541 *) cat >> confdefs.h <<\EOF
Guido van Rossumad678af1998-10-02 14:42:15 +00003542#define _POSIX_THREADS 1
3543EOF
Guido van Rossum5839e582000-10-09 19:52:35 +00003544;;
3545 esac
Neil Schemenauerd32c2492001-01-24 17:25:28 +00003546 LIBOBJS="$LIBOBJS Python/thread.o"
Guido van Rossumad678af1998-10-02 14:42:15 +00003547else
3548 echo "$ac_t""no" 1>&6
3549
Barry Warsawc0d24d82000-06-29 16:12:00 +00003550 ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'`
Guido van Rossumec95c7b1998-08-04 17:59:56 +00003551echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003552echo "configure:3553: checking for kernel/OS.h" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003553if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
Guido van Rossumec95c7b1998-08-04 17:59:56 +00003554 echo $ac_n "(cached) $ac_c" 1>&6
3555else
3556 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003557#line 3558 "configure"
Guido van Rossumec95c7b1998-08-04 17:59:56 +00003558#include "confdefs.h"
3559#include <kernel/OS.h>
3560EOF
3561ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003562{ (eval echo configure:3563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Guido van Rossume6c2cf11999-01-08 21:08:33 +00003563ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Guido van Rossumec95c7b1998-08-04 17:59:56 +00003564if test -z "$ac_err"; then
3565 rm -rf conftest*
3566 eval "ac_cv_header_$ac_safe=yes"
3567else
3568 echo "$ac_err" >&5
3569 echo "configure: failed program was:" >&5
3570 cat conftest.$ac_ext >&5
3571 rm -rf conftest*
3572 eval "ac_cv_header_$ac_safe=no"
3573fi
3574rm -f conftest*
3575fi
3576if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3577 echo "$ac_t""yes" 1>&6
3578 cat >> confdefs.h <<\EOF
3579#define WITH_THREAD 1
3580EOF
3581
Barry Warsawc0d24d82000-06-29 16:12:00 +00003582 cat >> confdefs.h <<\EOF
Guido van Rossumec95c7b1998-08-04 17:59:56 +00003583#define BEOS_THREADS 1
3584EOF
3585
Neil Schemenauerd32c2492001-01-24 17:25:28 +00003586 LIBOBJS="$LIBOBJS Python/thread.o"
Guido van Rossumec95c7b1998-08-04 17:59:56 +00003587else
3588 echo "$ac_t""no" 1>&6
3589
Barry Warsawc0d24d82000-06-29 16:12:00 +00003590 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003591echo "configure:3592: checking for pthread_create in -lpthreads" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00003592ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003593if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003594 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003595else
3596 ac_save_LIBS="$LIBS"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003597LIBS="-lpthreads $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003598cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003599#line 3600 "configure"
Greg Steinadf63d62000-07-05 10:38:09 +00003600#include "confdefs.h"
3601/* Override any gcc2 internal prototype to avoid an error. */
3602/* We use char because int might match the return type of a gcc2
3603 builtin and then its argument prototype would still apply. */
3604char pthread_create();
3605
3606int main() {
3607pthread_create()
3608; return 0; }
3609EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003610if { (eval echo configure:3611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Greg Steinadf63d62000-07-05 10:38:09 +00003611 rm -rf conftest*
3612 eval "ac_cv_lib_$ac_lib_var=yes"
3613else
3614 echo "configure: failed program was:" >&5
3615 cat conftest.$ac_ext >&5
3616 rm -rf conftest*
3617 eval "ac_cv_lib_$ac_lib_var=no"
3618fi
3619rm -f conftest*
3620LIBS="$ac_save_LIBS"
3621
3622fi
3623if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3624 echo "$ac_t""yes" 1>&6
3625 cat >> confdefs.h <<\EOF
3626#define WITH_THREAD 1
3627EOF
3628
3629 cat >> confdefs.h <<\EOF
3630#define _POSIX_THREADS 1
3631EOF
3632
3633 LIBS="$LIBS -lpthreads"
Neil Schemenauerd32c2492001-01-24 17:25:28 +00003634 LIBOBJS="$LIBOBJS Python/thread.o"
Greg Steinadf63d62000-07-05 10:38:09 +00003635else
3636 echo "$ac_t""no" 1>&6
3637
3638 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003639echo "configure:3640: checking for pthread_create in -lc_r" >&5
Greg Steinadf63d62000-07-05 10:38:09 +00003640ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003641if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Greg Steinadf63d62000-07-05 10:38:09 +00003642 echo $ac_n "(cached) $ac_c" 1>&6
3643else
3644 ac_save_LIBS="$LIBS"
3645LIBS="-lc_r $LIBS"
3646cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003647#line 3648 "configure"
Guido van Rossum49545951997-12-02 19:28:29 +00003648#include "confdefs.h"
3649/* Override any gcc2 internal prototype to avoid an error. */
3650/* We use char because int might match the return type of a gcc2
3651 builtin and then its argument prototype would still apply. */
3652char pthread_create();
3653
3654int main() {
3655pthread_create()
3656; return 0; }
3657EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003658if { (eval echo configure:3659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum49545951997-12-02 19:28:29 +00003659 rm -rf conftest*
3660 eval "ac_cv_lib_$ac_lib_var=yes"
3661else
3662 echo "configure: failed program was:" >&5
3663 cat conftest.$ac_ext >&5
3664 rm -rf conftest*
3665 eval "ac_cv_lib_$ac_lib_var=no"
3666fi
3667rm -f conftest*
3668LIBS="$ac_save_LIBS"
3669
3670fi
3671if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3672 echo "$ac_t""yes" 1>&6
3673 cat >> confdefs.h <<\EOF
3674#define WITH_THREAD 1
3675EOF
3676
Barry Warsawc0d24d82000-06-29 16:12:00 +00003677 cat >> confdefs.h <<\EOF
Guido van Rossum49545951997-12-02 19:28:29 +00003678#define _POSIX_THREADS 1
3679EOF
3680
Greg Steinadf63d62000-07-05 10:38:09 +00003681 LIBS="$LIBS -lc_r"
Neil Schemenauerd32c2492001-01-24 17:25:28 +00003682 LIBOBJS="$LIBOBJS Python/thread.o"
Guido van Rossum07bd90e2000-05-08 13:41:38 +00003683else
3684 echo "$ac_t""no" 1>&6
3685
Greg Steinadf63d62000-07-05 10:38:09 +00003686 echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003687echo "configure:3688: checking for __d6_pthread_create in -lthread" >&5
Greg Steinadf63d62000-07-05 10:38:09 +00003688ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003689if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Guido van Rossum07bd90e2000-05-08 13:41:38 +00003690 echo $ac_n "(cached) $ac_c" 1>&6
3691else
3692 ac_save_LIBS="$LIBS"
Greg Steinadf63d62000-07-05 10:38:09 +00003693LIBS="-lthread $LIBS"
Guido van Rossum07bd90e2000-05-08 13:41:38 +00003694cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003695#line 3696 "configure"
Guido van Rossum07bd90e2000-05-08 13:41:38 +00003696#include "confdefs.h"
3697/* Override any gcc2 internal prototype to avoid an error. */
3698/* We use char because int might match the return type of a gcc2
3699 builtin and then its argument prototype would still apply. */
Greg Steinadf63d62000-07-05 10:38:09 +00003700char __d6_pthread_create();
Guido van Rossum07bd90e2000-05-08 13:41:38 +00003701
3702int main() {
Greg Steinadf63d62000-07-05 10:38:09 +00003703__d6_pthread_create()
Guido van Rossum07bd90e2000-05-08 13:41:38 +00003704; return 0; }
3705EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003706if { (eval echo configure:3707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum07bd90e2000-05-08 13:41:38 +00003707 rm -rf conftest*
3708 eval "ac_cv_lib_$ac_lib_var=yes"
3709else
3710 echo "configure: failed program was:" >&5
3711 cat conftest.$ac_ext >&5
3712 rm -rf conftest*
3713 eval "ac_cv_lib_$ac_lib_var=no"
3714fi
3715rm -f conftest*
3716LIBS="$ac_save_LIBS"
3717
3718fi
3719if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3720 echo "$ac_t""yes" 1>&6
3721 cat >> confdefs.h <<\EOF
3722#define WITH_THREAD 1
3723EOF
3724
Barry Warsawc0d24d82000-06-29 16:12:00 +00003725 cat >> confdefs.h <<\EOF
Guido van Rossum07bd90e2000-05-08 13:41:38 +00003726#define _POSIX_THREADS 1
3727EOF
3728
Greg Steinadf63d62000-07-05 10:38:09 +00003729 LIBS="$LIBS -lthread"
Neil Schemenauerd32c2492001-01-24 17:25:28 +00003730 LIBOBJS="$LIBOBJS Python/thread.o"
Guido van Rossum49545951997-12-02 19:28:29 +00003731else
3732 echo "$ac_t""no" 1>&6
3733
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003734 echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003735echo "configure:3736: checking for __pthread_create_system in -lpthread" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003736ac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'`
3737if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3738 echo $ac_n "(cached) $ac_c" 1>&6
3739else
3740 ac_save_LIBS="$LIBS"
3741LIBS="-lpthread $LIBS"
3742cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003743#line 3744 "configure"
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003744#include "confdefs.h"
3745/* Override any gcc2 internal prototype to avoid an error. */
3746/* We use char because int might match the return type of a gcc2
3747 builtin and then its argument prototype would still apply. */
3748char __pthread_create_system();
3749
3750int main() {
3751__pthread_create_system()
3752; return 0; }
3753EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003754if { (eval echo configure:3755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003755 rm -rf conftest*
3756 eval "ac_cv_lib_$ac_lib_var=yes"
3757else
3758 echo "configure: failed program was:" >&5
3759 cat conftest.$ac_ext >&5
3760 rm -rf conftest*
3761 eval "ac_cv_lib_$ac_lib_var=no"
3762fi
3763rm -f conftest*
3764LIBS="$ac_save_LIBS"
3765
3766fi
3767if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3768 echo "$ac_t""yes" 1>&6
3769 cat >> confdefs.h <<\EOF
3770#define WITH_THREAD 1
3771EOF
3772
3773 cat >> confdefs.h <<\EOF
3774#define _POSIX_THREADS 1
3775EOF
3776
3777 LIBS="$LIBS -lpthread"
Neil Schemenauerd32c2492001-01-24 17:25:28 +00003778 LIBOBJS="$LIBOBJS Python/thread.o"
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003779else
3780 echo "$ac_t""no" 1>&6
3781
Barry Warsawc0d24d82000-06-29 16:12:00 +00003782 echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003783echo "configure:3784: checking for pthread_create in -lcma" >&5
Guido van Rossumb93a8621998-05-07 13:27:32 +00003784ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003785if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Guido van Rossumb93a8621998-05-07 13:27:32 +00003786 echo $ac_n "(cached) $ac_c" 1>&6
3787else
3788 ac_save_LIBS="$LIBS"
3789LIBS="-lcma $LIBS"
3790cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003791#line 3792 "configure"
Guido van Rossumb93a8621998-05-07 13:27:32 +00003792#include "confdefs.h"
3793/* Override any gcc2 internal prototype to avoid an error. */
3794/* We use char because int might match the return type of a gcc2
3795 builtin and then its argument prototype would still apply. */
3796char pthread_create();
3797
3798int main() {
3799pthread_create()
3800; return 0; }
3801EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003802if { (eval echo configure:3803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossumb93a8621998-05-07 13:27:32 +00003803 rm -rf conftest*
3804 eval "ac_cv_lib_$ac_lib_var=yes"
3805else
3806 echo "configure: failed program was:" >&5
3807 cat conftest.$ac_ext >&5
3808 rm -rf conftest*
3809 eval "ac_cv_lib_$ac_lib_var=no"
3810fi
3811rm -f conftest*
3812LIBS="$ac_save_LIBS"
3813
3814fi
3815if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3816 echo "$ac_t""yes" 1>&6
3817 cat >> confdefs.h <<\EOF
3818#define WITH_THREAD 1
3819EOF
3820
Barry Warsawc0d24d82000-06-29 16:12:00 +00003821 cat >> confdefs.h <<\EOF
Guido van Rossumb93a8621998-05-07 13:27:32 +00003822#define _POSIX_THREADS 1
3823EOF
3824
Barry Warsawc0d24d82000-06-29 16:12:00 +00003825 LIBS="$LIBS -lcma"
Neil Schemenauerd32c2492001-01-24 17:25:28 +00003826 LIBOBJS="$LIBOBJS Python/thread.o"
Guido van Rossumb93a8621998-05-07 13:27:32 +00003827else
3828 echo "$ac_t""no" 1>&6
Thomas Wouters0db2b2b2000-08-26 11:33:43 +00003829
3830 USE_THREAD_MODULE="#"
Guido van Rossum2d38f911996-06-26 19:47:01 +00003831fi
3832
Barry Warsawc0d24d82000-06-29 16:12:00 +00003833
Guido van Rossum627b2d71993-12-24 10:39:16 +00003834fi
3835
Guido van Rossum7b3853f1996-07-30 18:09:35 +00003836fi
3837
Guido van Rossum0be3e491997-05-22 20:33:33 +00003838fi
3839
Guido van Rossum49545951997-12-02 19:28:29 +00003840fi
3841
Guido van Rossumb93a8621998-05-07 13:27:32 +00003842fi
3843
Guido van Rossumec95c7b1998-08-04 17:59:56 +00003844fi
3845
Guido van Rossumad678af1998-10-02 14:42:15 +00003846fi
3847
Guido van Rossum07bd90e2000-05-08 13:41:38 +00003848fi
3849
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003850fi
3851
Guido van Rossum0be3e491997-05-22 20:33:33 +00003852
Barry Warsawc0d24d82000-06-29 16:12:00 +00003853 echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003854echo "configure:3855: checking for usconfig in -lmpc" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00003855ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003856if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003857 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003858else
3859 ac_save_LIBS="$LIBS"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003860LIBS="-lmpc $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003861cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003862#line 3863 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00003863#include "confdefs.h"
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003864/* Override any gcc2 internal prototype to avoid an error. */
3865/* We use char because int might match the return type of a gcc2
3866 builtin and then its argument prototype would still apply. */
3867char usconfig();
Guido van Rossum627b2d71993-12-24 10:39:16 +00003868
Guido van Rossumf78abae1997-01-21 22:02:36 +00003869int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003870usconfig()
3871; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00003872EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003873if { (eval echo configure:3874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00003874 rm -rf conftest*
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003875 eval "ac_cv_lib_$ac_lib_var=yes"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003876else
Guido van Rossumf78abae1997-01-21 22:02:36 +00003877 echo "configure: failed program was:" >&5
3878 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003879 rm -rf conftest*
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003880 eval "ac_cv_lib_$ac_lib_var=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00003881fi
3882rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003883LIBS="$ac_save_LIBS"
3884
3885fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003886if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003887 echo "$ac_t""yes" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003888 cat >> confdefs.h <<\EOF
3889#define WITH_THREAD 1
3890EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00003891
Barry Warsawc0d24d82000-06-29 16:12:00 +00003892 LIBS="$LIBS -lmpc"
Neil Schemenauerd32c2492001-01-24 17:25:28 +00003893 LIBOBJS="$LIBOBJS Python/thread.o"
Thomas Wouters0db2b2b2000-08-26 11:33:43 +00003894 USE_THREAD_MODULE=""
Guido van Rossum7f43da71994-08-01 12:15:30 +00003895else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003896 echo "$ac_t""no" 1>&6
Guido van Rossum627b2d71993-12-24 10:39:16 +00003897fi
3898
Barry Warsawc0d24d82000-06-29 16:12:00 +00003899 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003900echo "configure:3901: checking for thr_create in -lthread" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00003901ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003902if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003903 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003904else
3905 ac_save_LIBS="$LIBS"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003906LIBS="-lthread $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003907cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003908#line 3909 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00003909#include "confdefs.h"
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003910/* Override any gcc2 internal prototype to avoid an error. */
3911/* We use char because int might match the return type of a gcc2
3912 builtin and then its argument prototype would still apply. */
3913char thr_create();
Guido van Rossum627b2d71993-12-24 10:39:16 +00003914
Guido van Rossumf78abae1997-01-21 22:02:36 +00003915int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003916thr_create()
3917; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00003918EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003919if { (eval echo configure:3920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00003920 rm -rf conftest*
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003921 eval "ac_cv_lib_$ac_lib_var=yes"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003922else
Guido van Rossumf78abae1997-01-21 22:02:36 +00003923 echo "configure: failed program was:" >&5
3924 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003925 rm -rf conftest*
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003926 eval "ac_cv_lib_$ac_lib_var=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00003927fi
3928rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003929LIBS="$ac_save_LIBS"
3930
3931fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003932if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003933 echo "$ac_t""yes" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003934 cat >> confdefs.h <<\EOF
3935#define WITH_THREAD 1
3936EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00003937
Barry Warsawc0d24d82000-06-29 16:12:00 +00003938 LIBS="$LIBS -lthread"
Neil Schemenauerd32c2492001-01-24 17:25:28 +00003939 LIBOBJS="$LIBOBJS Python/thread.o"
Thomas Wouters0db2b2b2000-08-26 11:33:43 +00003940 USE_THREAD_MODULE=""
Guido van Rossum7f43da71994-08-01 12:15:30 +00003941else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003942 echo "$ac_t""no" 1>&6
Guido van Rossum627b2d71993-12-24 10:39:16 +00003943fi
3944
Jeremy Hylton1a2ca862000-10-16 16:59:12 +00003945
3946 if test "$USE_THREAD_MODULE" != "#"
3947 then
3948 # If the above checks didn't disable threads, (at least) OSF1
3949 # needs this '-threads' argument during linking.
3950 case $ac_sys_system in
3951 OSF1) LDLAST=-threads;;
3952 esac
3953 fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00003954fi
3955
Barry Warsawef82cd72000-06-30 16:21:01 +00003956# Check for GC support
3957
3958USE_GC_MODULE=""
3959echo $ac_n "checking for --with-cycle-gc""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003960echo "configure:3961: checking for --with-cycle-gc" >&5
Barry Warsawef82cd72000-06-30 16:21:01 +00003961# Check whether --with-cycle-gc or --without-cycle-gc was given.
3962if test "${with_cycle_gc+set}" = set; then
3963 withval="$with_cycle_gc"
3964 :
3965fi
3966
3967
3968if test -z "$with_cycle_gc"
3969then with_cycle_gc="yes"
3970fi
3971if test "$with_cycle_gc" = "no"
3972then
3973 USE_GC_MODULE="#"
3974else
3975 cat >> confdefs.h <<\EOF
3976#define WITH_CYCLE_GC 1
3977EOF
3978
3979fi
3980echo "$ac_t""$with_cycle_gc" 1>&6
3981
3982# Check for --with-wctype-functions
3983echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00003984echo "configure:3985: checking for --with-wctype-functions" >&5
Barry Warsawef82cd72000-06-30 16:21:01 +00003985# Check whether --with-wctype-functions or --without-wctype-functions was given.
3986if test "${with_wctype_functions+set}" = set; then
3987 withval="$with_wctype_functions"
3988
3989if test "$withval" != no
3990then cat >> confdefs.h <<\EOF
3991#define WANT_WCTYPE_FUNCTIONS 1
3992EOF
3993 echo "$ac_t""yes" 1>&6
3994else echo "$ac_t""no" 1>&6
3995fi
3996else
3997 echo "$ac_t""no" 1>&6
3998fi
3999
4000
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004001# -I${DLINCLDIR} is added to the compile rule for importdl.o
Guido van Rossum7f43da71994-08-01 12:15:30 +00004002
4003DLINCLDIR=/
4004
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004005echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004006echo "configure:4007: checking for --with-sgi-dl" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004007# Check whether --with-sgi-dl or --without-sgi-dl was given.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004008if test "${with_sgi_dl+set}" = set; then
4009 withval="$with_sgi_dl"
Guido van Rossum7f43da71994-08-01 12:15:30 +00004010
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004011echo "$ac_t""$withval" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004012cat >> confdefs.h <<\EOF
4013#define WITH_SGI_DL 1
4014EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00004015
Guido van Rossume97ee181999-12-20 21:27:22 +00004016DYNLOADFILE="dynload_dl.o"
Guido van Rossum7f43da71994-08-01 12:15:30 +00004017dldir=$withval
Guido van Rossum40951012000-10-07 16:21:27 +00004018if test ! -z "$dldir" -a -d "$dldir"
Guido van Rossum84e7b241996-08-19 21:59:00 +00004019then LDFLAGS="$LDFLAGS -L$dldir"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004020else { echo "configure: error: proper usage is --with-sgi-dl=DIRECTORY" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00004021fi
4022DLINCLDIR=${dldir}
4023LIBS="$LIBS -ldl -lmld"
Guido van Rossumda88dad1995-01-26 00:46:29 +00004024else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004025 echo "$ac_t""no" 1>&6
Guido van Rossum7f43da71994-08-01 12:15:30 +00004026fi
4027
4028
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004029echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004030echo "configure:4031: checking for --with-dl-dld" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004031# Check whether --with-dl-dld or --without-dl-dld was given.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004032if test "${with_dl_dld+set}" = set; then
4033 withval="$with_dl_dld"
Guido van Rossum7f43da71994-08-01 12:15:30 +00004034
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004035echo "$ac_t""$withval" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004036cat >> confdefs.h <<\EOF
4037#define WITH_DL_DLD 1
4038EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00004039
Guido van Rossume97ee181999-12-20 21:27:22 +00004040DYNLOADFILE="dynload_dl.o"
Guido van Rossum7f43da71994-08-01 12:15:30 +00004041dldir=`echo "$withval" | sed 's/,.*//'`
4042dlddir=`echo "$withval" | sed 's/.*,//'`
Barry Warsaw7d1219d2000-10-05 18:45:53 +00004043if test ! -z "$dldir" -a -d "$dldir" -a ! -z "$dlddir" -a -d "$dlddir"
Guido van Rossum84e7b241996-08-19 21:59:00 +00004044then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004045else { echo "configure: error: proper usage is --with-dl-dld=DL_DIRECTORY" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00004046fi
4047DLINCLDIR=${dldir}
4048LIBS="$LIBS -ldl -ldld"
Guido van Rossumda88dad1995-01-26 00:46:29 +00004049else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004050 echo "$ac_t""no" 1>&6
Guido van Rossum7f43da71994-08-01 12:15:30 +00004051fi
4052
4053
Guido van Rossume97ee181999-12-20 21:27:22 +00004054# the dlopen() function means we might want to use dynload_shlib.o. some
4055# platforms, such as AIX, have dlopen(), but don't want to use it.
Thomas Wouters3a584202000-08-05 23:28:51 +00004056for ac_func in dlopen
4057do
4058echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004059echo "configure:4060: checking for $ac_func" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004060if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
Guido van Rossume97ee181999-12-20 21:27:22 +00004061 echo $ac_n "(cached) $ac_c" 1>&6
4062else
4063 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004064#line 4065 "configure"
Guido van Rossume97ee181999-12-20 21:27:22 +00004065#include "confdefs.h"
4066/* System header to define __stub macros and hopefully few prototypes,
Thomas Wouters3a584202000-08-05 23:28:51 +00004067 which can conflict with char $ac_func(); below. */
Guido van Rossume97ee181999-12-20 21:27:22 +00004068#include <assert.h>
4069/* Override any gcc2 internal prototype to avoid an error. */
4070/* We use char because int might match the return type of a gcc2
4071 builtin and then its argument prototype would still apply. */
Thomas Wouters3a584202000-08-05 23:28:51 +00004072char $ac_func();
Guido van Rossume97ee181999-12-20 21:27:22 +00004073
4074int main() {
4075
4076/* The GNU C library defines this for functions which it implements
4077 to always fail with ENOSYS. Some functions are actually named
4078 something starting with __ and the normal name is an alias. */
Thomas Wouters3a584202000-08-05 23:28:51 +00004079#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Guido van Rossume97ee181999-12-20 21:27:22 +00004080choke me
4081#else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004082$ac_func();
Guido van Rossume97ee181999-12-20 21:27:22 +00004083#endif
4084
4085; return 0; }
4086EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004087if { (eval echo configure:4088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossume97ee181999-12-20 21:27:22 +00004088 rm -rf conftest*
Thomas Wouters3a584202000-08-05 23:28:51 +00004089 eval "ac_cv_func_$ac_func=yes"
Guido van Rossume97ee181999-12-20 21:27:22 +00004090else
4091 echo "configure: failed program was:" >&5
4092 cat conftest.$ac_ext >&5
4093 rm -rf conftest*
Thomas Wouters3a584202000-08-05 23:28:51 +00004094 eval "ac_cv_func_$ac_func=no"
Guido van Rossume97ee181999-12-20 21:27:22 +00004095fi
4096rm -f conftest*
4097fi
4098
Thomas Wouters3a584202000-08-05 23:28:51 +00004099if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
Guido van Rossume97ee181999-12-20 21:27:22 +00004100 echo "$ac_t""yes" 1>&6
Thomas Wouters3a584202000-08-05 23:28:51 +00004101 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4102 cat >> confdefs.h <<EOF
4103#define $ac_tr_func 1
4104EOF
4105
Guido van Rossume97ee181999-12-20 21:27:22 +00004106else
4107 echo "$ac_t""no" 1>&6
4108fi
Thomas Wouters3a584202000-08-05 23:28:51 +00004109done
Guido van Rossume97ee181999-12-20 21:27:22 +00004110
4111
4112# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
4113# loading of modules.
4114
4115echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004116echo "configure:4117: checking DYNLOADFILE" >&5
Guido van Rossume97ee181999-12-20 21:27:22 +00004117if test -z "$DYNLOADFILE"
4118then
4119 case $ac_sys_system/$ac_sys_release in
4120 AIX*) DYNLOADFILE="dynload_aix.o";;
4121 BeOS*) DYNLOADFILE="dynload_beos.o";;
4122 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
Guido van Rossum5839e582000-10-09 19:52:35 +00004123 Darwin/*|next/*) DYNLOADFILE="dynload_next.o";;
Guido van Rossume97ee181999-12-20 21:27:22 +00004124 *)
4125 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
4126 # out any dynamic loading
4127 if test "$ac_cv_func_dlopen" = yes
4128 then DYNLOADFILE="dynload_shlib.o"
4129 else DYNLOADFILE="dynload_stub.o"
4130 fi
4131 ;;
4132 esac
4133fi
4134echo "$ac_t""$DYNLOADFILE" 1>&6
4135if test "$DYNLOADFILE" != "dynload_stub.o"
4136then
4137 cat >> confdefs.h <<\EOF
4138#define HAVE_DYNAMIC_LOADING 1
4139EOF
4140
4141fi
4142
Guido van Rossum627b2d71993-12-24 10:39:16 +00004143# checks for library functions
Thomas Wouters3a584202000-08-05 23:28:51 +00004144for ac_func in alarm chown clock confstr ctermid ctermid_r execv \
Fred Drake35a092f1999-12-13 16:23:35 +00004145 flock fork fsync fdatasync fpathconf ftime ftruncate \
Andrew M. Kuchlinga9586c72001-01-08 17:58:56 +00004146 getgroups getlogin getpeername getpid getpwent getwd \
Andrew M. Kuchling22c69342000-06-18 15:07:40 +00004147 kill link lstat mkfifo mktime mremap \
Andrew M. Kuchling5821b772000-08-25 01:14:08 +00004148 nice pathconf pause plock poll pthread_init \
Fred Drake35a092f1999-12-13 16:23:35 +00004149 putenv readlink \
Andrew M. Kuchling8d2f2b22000-07-13 01:26:58 +00004150 select setegid seteuid setgid \
Thomas Wouters3a584202000-08-05 23:28:51 +00004151 setlocale setregid setreuid setsid setpgid setuid setvbuf \
Fred Drake35a092f1999-12-13 16:23:35 +00004152 sigaction siginterrupt sigrelse strftime strptime symlink sysconf \
Fred Drake89143df1999-12-09 22:03:25 +00004153 tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
Thomas Wouters70c21a12000-07-14 14:28:33 +00004154 truncate uname waitpid _getpty
Guido van Rossum627b2d71993-12-24 10:39:16 +00004155do
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004156echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004157echo "configure:4158: checking for $ac_func" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004158if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004159 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004160else
4161 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004162#line 4163 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00004163#include "confdefs.h"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004164/* System header to define __stub macros and hopefully few prototypes,
4165 which can conflict with char $ac_func(); below. */
4166#include <assert.h>
4167/* Override any gcc2 internal prototype to avoid an error. */
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004168/* We use char because int might match the return type of a gcc2
4169 builtin and then its argument prototype would still apply. */
4170char $ac_func();
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004171
Guido van Rossumf78abae1997-01-21 22:02:36 +00004172int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004173
Guido van Rossum627b2d71993-12-24 10:39:16 +00004174/* The GNU C library defines this for functions which it implements
4175 to always fail with ENOSYS. Some functions are actually named
4176 something starting with __ and the normal name is an alias. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004177#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Guido van Rossum627b2d71993-12-24 10:39:16 +00004178choke me
4179#else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004180$ac_func();
Guido van Rossum627b2d71993-12-24 10:39:16 +00004181#endif
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004182
Guido van Rossum7f43da71994-08-01 12:15:30 +00004183; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00004184EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004185if { (eval echo configure:4186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00004186 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004187 eval "ac_cv_func_$ac_func=yes"
4188else
Guido van Rossumf78abae1997-01-21 22:02:36 +00004189 echo "configure: failed program was:" >&5
4190 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004191 rm -rf conftest*
4192 eval "ac_cv_func_$ac_func=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00004193fi
4194rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004195fi
Guido van Rossumf78abae1997-01-21 22:02:36 +00004196
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004197if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004198 echo "$ac_t""yes" 1>&6
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004199 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004200 cat >> confdefs.h <<EOF
4201#define $ac_tr_func 1
4202EOF
4203
4204else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004205 echo "$ac_t""no" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004206fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00004207done
Guido van Rossum7b3853f1996-07-30 18:09:35 +00004208
Guido van Rossumf98e2a71999-01-06 18:53:34 +00004209
Fred Drake8cef4cf2000-06-28 16:40:38 +00004210# check for openpty and forkpty
4211
4212for ac_func in openpty
Guido van Rossum627b2d71993-12-24 10:39:16 +00004213do
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004214echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004215echo "configure:4216: checking for $ac_func" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004216if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004217 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004218else
4219 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004220#line 4221 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00004221#include "confdefs.h"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004222/* System header to define __stub macros and hopefully few prototypes,
4223 which can conflict with char $ac_func(); below. */
4224#include <assert.h>
4225/* Override any gcc2 internal prototype to avoid an error. */
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004226/* We use char because int might match the return type of a gcc2
4227 builtin and then its argument prototype would still apply. */
4228char $ac_func();
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004229
Guido van Rossumf78abae1997-01-21 22:02:36 +00004230int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004231
Guido van Rossum627b2d71993-12-24 10:39:16 +00004232/* The GNU C library defines this for functions which it implements
4233 to always fail with ENOSYS. Some functions are actually named
4234 something starting with __ and the normal name is an alias. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004235#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Guido van Rossum627b2d71993-12-24 10:39:16 +00004236choke me
4237#else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004238$ac_func();
Guido van Rossum627b2d71993-12-24 10:39:16 +00004239#endif
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004240
Guido van Rossum7f43da71994-08-01 12:15:30 +00004241; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00004242EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004243if { (eval echo configure:4244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Fred Drake8cef4cf2000-06-28 16:40:38 +00004244 rm -rf conftest*
4245 eval "ac_cv_func_$ac_func=yes"
4246else
4247 echo "configure: failed program was:" >&5
4248 cat conftest.$ac_ext >&5
4249 rm -rf conftest*
4250 eval "ac_cv_func_$ac_func=no"
4251fi
4252rm -f conftest*
4253fi
4254
4255if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4256 echo "$ac_t""yes" 1>&6
4257 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4258 cat >> confdefs.h <<EOF
4259#define $ac_tr_func 1
4260EOF
4261
4262else
4263 echo "$ac_t""no" 1>&6
4264echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004265echo "configure:4266: checking for openpty in -lutil" >&5
Fred Drake8cef4cf2000-06-28 16:40:38 +00004266ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004267if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Fred Drake8cef4cf2000-06-28 16:40:38 +00004268 echo $ac_n "(cached) $ac_c" 1>&6
4269else
4270 ac_save_LIBS="$LIBS"
4271LIBS="-lutil $LIBS"
4272cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004273#line 4274 "configure"
Fred Drake8cef4cf2000-06-28 16:40:38 +00004274#include "confdefs.h"
4275/* Override any gcc2 internal prototype to avoid an error. */
4276/* We use char because int might match the return type of a gcc2
4277 builtin and then its argument prototype would still apply. */
4278char openpty();
4279
4280int main() {
4281openpty()
4282; return 0; }
4283EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004284if { (eval echo configure:4285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Fred Drake8cef4cf2000-06-28 16:40:38 +00004285 rm -rf conftest*
4286 eval "ac_cv_lib_$ac_lib_var=yes"
4287else
4288 echo "configure: failed program was:" >&5
4289 cat conftest.$ac_ext >&5
4290 rm -rf conftest*
4291 eval "ac_cv_lib_$ac_lib_var=no"
4292fi
4293rm -f conftest*
4294LIBS="$ac_save_LIBS"
4295
4296fi
4297if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4298 echo "$ac_t""yes" 1>&6
4299 cat >> confdefs.h <<\EOF
4300#define HAVE_OPENPTY 1
4301EOF
4302 LIBS="$LIBS -lutil"
4303else
4304 echo "$ac_t""no" 1>&6
4305fi
4306
4307fi
4308done
4309
4310for ac_func in forkpty
4311do
4312echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004313echo "configure:4314: checking for $ac_func" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004314if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
Fred Drake8cef4cf2000-06-28 16:40:38 +00004315 echo $ac_n "(cached) $ac_c" 1>&6
4316else
4317 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004318#line 4319 "configure"
Fred Drake8cef4cf2000-06-28 16:40:38 +00004319#include "confdefs.h"
4320/* System header to define __stub macros and hopefully few prototypes,
4321 which can conflict with char $ac_func(); below. */
4322#include <assert.h>
4323/* Override any gcc2 internal prototype to avoid an error. */
4324/* We use char because int might match the return type of a gcc2
4325 builtin and then its argument prototype would still apply. */
4326char $ac_func();
Fred Drake8cef4cf2000-06-28 16:40:38 +00004327
4328int main() {
4329
4330/* The GNU C library defines this for functions which it implements
4331 to always fail with ENOSYS. Some functions are actually named
4332 something starting with __ and the normal name is an alias. */
4333#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4334choke me
4335#else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004336$ac_func();
Fred Drake8cef4cf2000-06-28 16:40:38 +00004337#endif
4338
4339; return 0; }
4340EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004341if { (eval echo configure:4342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Fred Drake8cef4cf2000-06-28 16:40:38 +00004342 rm -rf conftest*
4343 eval "ac_cv_func_$ac_func=yes"
4344else
4345 echo "configure: failed program was:" >&5
4346 cat conftest.$ac_ext >&5
4347 rm -rf conftest*
4348 eval "ac_cv_func_$ac_func=no"
4349fi
4350rm -f conftest*
4351fi
4352
4353if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4354 echo "$ac_t""yes" 1>&6
4355 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4356 cat >> confdefs.h <<EOF
4357#define $ac_tr_func 1
4358EOF
4359
4360else
4361 echo "$ac_t""no" 1>&6
4362echo $ac_n "checking for forkpty in -lutil""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004363echo "configure:4364: checking for forkpty in -lutil" >&5
Fred Drake8cef4cf2000-06-28 16:40:38 +00004364ac_lib_var=`echo util'_'forkpty | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004365if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Fred Drake8cef4cf2000-06-28 16:40:38 +00004366 echo $ac_n "(cached) $ac_c" 1>&6
4367else
4368 ac_save_LIBS="$LIBS"
4369LIBS="-lutil $LIBS"
4370cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004371#line 4372 "configure"
Fred Drake8cef4cf2000-06-28 16:40:38 +00004372#include "confdefs.h"
4373/* Override any gcc2 internal prototype to avoid an error. */
4374/* We use char because int might match the return type of a gcc2
4375 builtin and then its argument prototype would still apply. */
4376char forkpty();
4377
4378int main() {
4379forkpty()
4380; return 0; }
4381EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004382if { (eval echo configure:4383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Fred Drake8cef4cf2000-06-28 16:40:38 +00004383 rm -rf conftest*
4384 eval "ac_cv_lib_$ac_lib_var=yes"
4385else
4386 echo "configure: failed program was:" >&5
4387 cat conftest.$ac_ext >&5
4388 rm -rf conftest*
4389 eval "ac_cv_lib_$ac_lib_var=no"
4390fi
4391rm -f conftest*
4392LIBS="$ac_save_LIBS"
4393
4394fi
4395if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4396 echo "$ac_t""yes" 1>&6
4397 cat >> confdefs.h <<\EOF
4398#define HAVE_FORKPTY 1
4399EOF
4400 LIBS="$LIBS -lutil"
4401else
4402 echo "$ac_t""no" 1>&6
4403fi
4404
4405fi
4406done
4407
4408
4409# check for long file support functions
4410for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
4411do
4412echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004413echo "configure:4414: checking for $ac_func" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004414if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
Fred Drake8cef4cf2000-06-28 16:40:38 +00004415 echo $ac_n "(cached) $ac_c" 1>&6
4416else
4417 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004418#line 4419 "configure"
Fred Drake8cef4cf2000-06-28 16:40:38 +00004419#include "confdefs.h"
4420/* System header to define __stub macros and hopefully few prototypes,
4421 which can conflict with char $ac_func(); below. */
4422#include <assert.h>
4423/* Override any gcc2 internal prototype to avoid an error. */
4424/* We use char because int might match the return type of a gcc2
4425 builtin and then its argument prototype would still apply. */
4426char $ac_func();
Fred Drake8cef4cf2000-06-28 16:40:38 +00004427
4428int main() {
4429
4430/* The GNU C library defines this for functions which it implements
4431 to always fail with ENOSYS. Some functions are actually named
4432 something starting with __ and the normal name is an alias. */
4433#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4434choke me
4435#else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004436$ac_func();
Fred Drake8cef4cf2000-06-28 16:40:38 +00004437#endif
4438
4439; return 0; }
4440EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004441if { (eval echo configure:4442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossumf98e2a71999-01-06 18:53:34 +00004442 rm -rf conftest*
4443 eval "ac_cv_func_$ac_func=yes"
4444else
4445 echo "configure: failed program was:" >&5
4446 cat conftest.$ac_ext >&5
4447 rm -rf conftest*
4448 eval "ac_cv_func_$ac_func=no"
4449fi
4450rm -f conftest*
4451fi
4452
4453if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4454 echo "$ac_t""yes" 1>&6
4455 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4456 cat >> confdefs.h <<EOF
4457#define $ac_tr_func 1
4458EOF
4459
4460else
4461 echo "$ac_t""no" 1>&6
4462fi
4463done
4464
4465
4466for ac_func in dup2 getcwd strdup strerror memmove
4467do
4468echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004469echo "configure:4470: checking for $ac_func" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004470if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
Guido van Rossumf98e2a71999-01-06 18:53:34 +00004471 echo $ac_n "(cached) $ac_c" 1>&6
4472else
4473 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004474#line 4475 "configure"
Guido van Rossumf98e2a71999-01-06 18:53:34 +00004475#include "confdefs.h"
4476/* System header to define __stub macros and hopefully few prototypes,
4477 which can conflict with char $ac_func(); below. */
4478#include <assert.h>
4479/* Override any gcc2 internal prototype to avoid an error. */
4480/* We use char because int might match the return type of a gcc2
4481 builtin and then its argument prototype would still apply. */
4482char $ac_func();
4483
4484int main() {
4485
4486/* The GNU C library defines this for functions which it implements
4487 to always fail with ENOSYS. Some functions are actually named
4488 something starting with __ and the normal name is an alias. */
4489#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4490choke me
4491#else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004492$ac_func();
Guido van Rossumf98e2a71999-01-06 18:53:34 +00004493#endif
4494
4495; return 0; }
4496EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004497if { (eval echo configure:4498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004498 rm -rf conftest*
4499 eval "ac_cv_func_$ac_func=yes"
Guido van Rossum627b2d71993-12-24 10:39:16 +00004500else
Guido van Rossumf78abae1997-01-21 22:02:36 +00004501 echo "configure: failed program was:" >&5
4502 cat conftest.$ac_ext >&5
Guido van Rossum627b2d71993-12-24 10:39:16 +00004503 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004504 eval "ac_cv_func_$ac_func=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00004505fi
4506rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004507fi
Guido van Rossumf78abae1997-01-21 22:02:36 +00004508
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004509if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004510 echo "$ac_t""yes" 1>&6
Guido van Rossumf78abae1997-01-21 22:02:36 +00004511 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4512 cat >> confdefs.h <<EOF
4513#define $ac_tr_func 1
4514EOF
4515
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004516else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004517 echo "$ac_t""no" 1>&6
Guido van Rossume6c2cf11999-01-08 21:08:33 +00004518LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004519fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00004520done
4521
Guido van Rossumf78abae1997-01-21 22:02:36 +00004522
Thomas Wouters3a584202000-08-05 23:28:51 +00004523for ac_func in getpgrp
4524do
4525echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004526echo "configure:4527: checking for $ac_func" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004527if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004528 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004529else
4530 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004531#line 4532 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00004532#include "confdefs.h"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004533/* System header to define __stub macros and hopefully few prototypes,
Thomas Wouters3a584202000-08-05 23:28:51 +00004534 which can conflict with char $ac_func(); below. */
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004535#include <assert.h>
4536/* Override any gcc2 internal prototype to avoid an error. */
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004537/* We use char because int might match the return type of a gcc2
4538 builtin and then its argument prototype would still apply. */
Thomas Wouters3a584202000-08-05 23:28:51 +00004539char $ac_func();
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004540
Guido van Rossumf78abae1997-01-21 22:02:36 +00004541int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004542
Guido van Rossum627b2d71993-12-24 10:39:16 +00004543/* The GNU C library defines this for functions which it implements
4544 to always fail with ENOSYS. Some functions are actually named
4545 something starting with __ and the normal name is an alias. */
Thomas Wouters3a584202000-08-05 23:28:51 +00004546#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Guido van Rossum627b2d71993-12-24 10:39:16 +00004547choke me
4548#else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004549$ac_func();
Guido van Rossum627b2d71993-12-24 10:39:16 +00004550#endif
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004551
4552; return 0; }
4553EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004554if { (eval echo configure:4555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004555 rm -rf conftest*
Thomas Wouters3a584202000-08-05 23:28:51 +00004556 eval "ac_cv_func_$ac_func=yes"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004557else
Guido van Rossumf78abae1997-01-21 22:02:36 +00004558 echo "configure: failed program was:" >&5
4559 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004560 rm -rf conftest*
Thomas Wouters3a584202000-08-05 23:28:51 +00004561 eval "ac_cv_func_$ac_func=no"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004562fi
4563rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004564fi
Guido van Rossumf78abae1997-01-21 22:02:36 +00004565
Thomas Wouters3a584202000-08-05 23:28:51 +00004566if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004567 echo "$ac_t""yes" 1>&6
Thomas Wouters3a584202000-08-05 23:28:51 +00004568 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4569 cat >> confdefs.h <<EOF
4570#define $ac_tr_func 1
4571EOF
4572 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004573#line 4574 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004574#include "confdefs.h"
4575#include <unistd.h>
Guido van Rossumf78abae1997-01-21 22:02:36 +00004576int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004577getpgrp(0);
Guido van Rossum7f43da71994-08-01 12:15:30 +00004578; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00004579EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004580if { (eval echo configure:4581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00004581 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004582 cat >> confdefs.h <<\EOF
4583#define GETPGRP_HAVE_ARG 1
Guido van Rossum627b2d71993-12-24 10:39:16 +00004584EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00004585
Guido van Rossumf78abae1997-01-21 22:02:36 +00004586else
4587 echo "configure: failed program was:" >&5
4588 cat conftest.$ac_ext >&5
Guido van Rossum627b2d71993-12-24 10:39:16 +00004589fi
4590rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004591else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004592 echo "$ac_t""no" 1>&6
Guido van Rossum627b2d71993-12-24 10:39:16 +00004593fi
Thomas Wouters3a584202000-08-05 23:28:51 +00004594done
Guido van Rossum627b2d71993-12-24 10:39:16 +00004595
Thomas Wouters3a584202000-08-05 23:28:51 +00004596for ac_func in setpgrp
4597do
4598echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004599echo "configure:4600: checking for $ac_func" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004600if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004601 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004602else
4603 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004604#line 4605 "configure"
Guido van Rossum8eee56f1994-10-20 22:18:37 +00004605#include "confdefs.h"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004606/* System header to define __stub macros and hopefully few prototypes,
Thomas Wouters3a584202000-08-05 23:28:51 +00004607 which can conflict with char $ac_func(); below. */
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004608#include <assert.h>
4609/* Override any gcc2 internal prototype to avoid an error. */
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004610/* We use char because int might match the return type of a gcc2
4611 builtin and then its argument prototype would still apply. */
Thomas Wouters3a584202000-08-05 23:28:51 +00004612char $ac_func();
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004613
Guido van Rossumf78abae1997-01-21 22:02:36 +00004614int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004615
Guido van Rossum8eee56f1994-10-20 22:18:37 +00004616/* The GNU C library defines this for functions which it implements
4617 to always fail with ENOSYS. Some functions are actually named
4618 something starting with __ and the normal name is an alias. */
Thomas Wouters3a584202000-08-05 23:28:51 +00004619#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Guido van Rossum8eee56f1994-10-20 22:18:37 +00004620choke me
4621#else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004622$ac_func();
Guido van Rossum8eee56f1994-10-20 22:18:37 +00004623#endif
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004624
4625; return 0; }
4626EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004627if { (eval echo configure:4628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004628 rm -rf conftest*
Thomas Wouters3a584202000-08-05 23:28:51 +00004629 eval "ac_cv_func_$ac_func=yes"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004630else
Guido van Rossumf78abae1997-01-21 22:02:36 +00004631 echo "configure: failed program was:" >&5
4632 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004633 rm -rf conftest*
Thomas Wouters3a584202000-08-05 23:28:51 +00004634 eval "ac_cv_func_$ac_func=no"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004635fi
4636rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004637fi
Guido van Rossumf78abae1997-01-21 22:02:36 +00004638
Thomas Wouters3a584202000-08-05 23:28:51 +00004639if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004640 echo "$ac_t""yes" 1>&6
Thomas Wouters3a584202000-08-05 23:28:51 +00004641 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4642 cat >> confdefs.h <<EOF
4643#define $ac_tr_func 1
4644EOF
4645 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004646#line 4647 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004647#include "confdefs.h"
4648#include <unistd.h>
Guido van Rossumf78abae1997-01-21 22:02:36 +00004649int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004650setpgrp(0,0);
Guido van Rossum8eee56f1994-10-20 22:18:37 +00004651; return 0; }
4652EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004653if { (eval echo configure:4654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossum8eee56f1994-10-20 22:18:37 +00004654 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004655 cat >> confdefs.h <<\EOF
4656#define SETPGRP_HAVE_ARG 1
Guido van Rossum8eee56f1994-10-20 22:18:37 +00004657EOF
Guido van Rossum8eee56f1994-10-20 22:18:37 +00004658
Guido van Rossumf78abae1997-01-21 22:02:36 +00004659else
4660 echo "configure: failed program was:" >&5
4661 cat conftest.$ac_ext >&5
Guido van Rossum8eee56f1994-10-20 22:18:37 +00004662fi
4663rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004664else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004665 echo "$ac_t""no" 1>&6
Guido van Rossum8eee56f1994-10-20 22:18:37 +00004666fi
Thomas Wouters3a584202000-08-05 23:28:51 +00004667done
Guido van Rossum8eee56f1994-10-20 22:18:37 +00004668
Thomas Wouters3a584202000-08-05 23:28:51 +00004669for ac_func in gettimeofday
4670do
4671echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004672echo "configure:4673: checking for $ac_func" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004673if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004674 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004675else
4676 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004677#line 4678 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00004678#include "confdefs.h"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004679/* System header to define __stub macros and hopefully few prototypes,
Thomas Wouters3a584202000-08-05 23:28:51 +00004680 which can conflict with char $ac_func(); below. */
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004681#include <assert.h>
4682/* Override any gcc2 internal prototype to avoid an error. */
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004683/* We use char because int might match the return type of a gcc2
4684 builtin and then its argument prototype would still apply. */
Thomas Wouters3a584202000-08-05 23:28:51 +00004685char $ac_func();
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004686
Guido van Rossumf78abae1997-01-21 22:02:36 +00004687int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004688
4689/* The GNU C library defines this for functions which it implements
4690 to always fail with ENOSYS. Some functions are actually named
4691 something starting with __ and the normal name is an alias. */
Thomas Wouters3a584202000-08-05 23:28:51 +00004692#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004693choke me
4694#else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004695$ac_func();
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004696#endif
4697
4698; return 0; }
4699EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004700if { (eval echo configure:4701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004701 rm -rf conftest*
Thomas Wouters3a584202000-08-05 23:28:51 +00004702 eval "ac_cv_func_$ac_func=yes"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004703else
Guido van Rossumf78abae1997-01-21 22:02:36 +00004704 echo "configure: failed program was:" >&5
4705 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004706 rm -rf conftest*
Thomas Wouters3a584202000-08-05 23:28:51 +00004707 eval "ac_cv_func_$ac_func=no"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004708fi
4709rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004710fi
Guido van Rossumf78abae1997-01-21 22:02:36 +00004711
Thomas Wouters3a584202000-08-05 23:28:51 +00004712if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004713 echo "$ac_t""yes" 1>&6
Thomas Wouters3a584202000-08-05 23:28:51 +00004714 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4715 cat >> confdefs.h <<EOF
4716#define $ac_tr_func 1
4717EOF
4718 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004719#line 4720 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004720#include "confdefs.h"
Guido van Rossum627b2d71993-12-24 10:39:16 +00004721#include <sys/time.h>
Guido van Rossumf78abae1997-01-21 22:02:36 +00004722int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004723gettimeofday((struct timeval*)0,(struct timezone*)0);
4724; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00004725EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004726if { (eval echo configure:4727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00004727 :
4728else
Guido van Rossumf78abae1997-01-21 22:02:36 +00004729 echo "configure: failed program was:" >&5
4730 cat conftest.$ac_ext >&5
Guido van Rossum627b2d71993-12-24 10:39:16 +00004731 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004732 cat >> confdefs.h <<\EOF
4733#define GETTIMEOFDAY_NO_TZ 1
4734EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00004735
4736fi
4737rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004738else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004739 echo "$ac_t""no" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004740fi
Thomas Wouters3a584202000-08-05 23:28:51 +00004741done
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004742
4743
4744# checks for structures
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004745echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004746echo "configure:4747: checking whether time.h and sys/time.h may both be included" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004747if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004748 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004749else
4750 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004751#line 4752 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00004752#include "confdefs.h"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004753#include <sys/types.h>
4754#include <sys/time.h>
4755#include <time.h>
Guido van Rossumf78abae1997-01-21 22:02:36 +00004756int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004757struct tm *tp;
4758; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00004759EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004760if { (eval echo configure:4761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00004761 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004762 ac_cv_header_time=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00004763else
Guido van Rossumf78abae1997-01-21 22:02:36 +00004764 echo "configure: failed program was:" >&5
4765 cat conftest.$ac_ext >&5
Guido van Rossum627b2d71993-12-24 10:39:16 +00004766 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004767 ac_cv_header_time=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00004768fi
4769rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004770fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004771
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004772echo "$ac_t""$ac_cv_header_time" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004773if test $ac_cv_header_time = yes; then
4774 cat >> confdefs.h <<\EOF
4775#define TIME_WITH_SYS_TIME 1
4776EOF
4777
4778fi
4779
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004780echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004781echo "configure:4782: checking whether struct tm is in sys/time.h or time.h" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004782if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004783 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004784else
4785 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004786#line 4787 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004787#include "confdefs.h"
4788#include <sys/types.h>
4789#include <time.h>
Guido van Rossumf78abae1997-01-21 22:02:36 +00004790int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004791struct tm *tp; tp->tm_sec;
4792; return 0; }
4793EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004794if { (eval echo configure:4795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004795 rm -rf conftest*
4796 ac_cv_struct_tm=time.h
4797else
Guido van Rossumf78abae1997-01-21 22:02:36 +00004798 echo "configure: failed program was:" >&5
4799 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004800 rm -rf conftest*
4801 ac_cv_struct_tm=sys/time.h
4802fi
4803rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004804fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004805
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004806echo "$ac_t""$ac_cv_struct_tm" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004807if test $ac_cv_struct_tm = sys/time.h; then
4808 cat >> confdefs.h <<\EOF
4809#define TM_IN_SYS_TIME 1
4810EOF
4811
4812fi
4813
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004814echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004815echo "configure:4816: checking for tm_zone in struct tm" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004816if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004817 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004818else
4819 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004820#line 4821 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004821#include "confdefs.h"
4822#include <sys/types.h>
4823#include <$ac_cv_struct_tm>
Guido van Rossumf78abae1997-01-21 22:02:36 +00004824int main() {
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004825struct tm tm; tm.tm_zone;
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004826; return 0; }
4827EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004828if { (eval echo configure:4829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004829 rm -rf conftest*
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004830 ac_cv_struct_tm_zone=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004831else
Guido van Rossumf78abae1997-01-21 22:02:36 +00004832 echo "configure: failed program was:" >&5
4833 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004834 rm -rf conftest*
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004835 ac_cv_struct_tm_zone=no
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004836fi
4837rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004838fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004839
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004840echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4841if test "$ac_cv_struct_tm_zone" = yes; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004842 cat >> confdefs.h <<\EOF
4843#define HAVE_TM_ZONE 1
4844EOF
4845
4846else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004847 echo $ac_n "checking for tzname""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004848echo "configure:4849: checking for tzname" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004849if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004850 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004851else
4852 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004853#line 4854 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00004854#include "confdefs.h"
4855#include <time.h>
4856#ifndef tzname /* For SGI. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004857extern char *tzname[]; /* RS6000 and others reject char **tzname. */
Guido van Rossum627b2d71993-12-24 10:39:16 +00004858#endif
Guido van Rossumf78abae1997-01-21 22:02:36 +00004859int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004860atoi(*tzname);
4861; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00004862EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004863if { (eval echo configure:4864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00004864 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004865 ac_cv_var_tzname=yes
4866else
Guido van Rossumf78abae1997-01-21 22:02:36 +00004867 echo "configure: failed program was:" >&5
4868 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004869 rm -rf conftest*
4870 ac_cv_var_tzname=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00004871fi
4872rm -f conftest*
Guido van Rossum627b2d71993-12-24 10:39:16 +00004873fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004874
4875echo "$ac_t""$ac_cv_var_tzname" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004876 if test $ac_cv_var_tzname = yes; then
4877 cat >> confdefs.h <<\EOF
4878#define HAVE_TZNAME 1
4879EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00004880
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004881 fi
4882fi
4883
4884
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004885echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004886echo "configure:4887: checking for time.h that defines altzone" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004887if eval "test \"`echo '$''{'ac_cv_header_time_altzone'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004888 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004889else
4890 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004891#line 4892 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00004892#include "confdefs.h"
4893#include <time.h>
Guido van Rossumf78abae1997-01-21 22:02:36 +00004894int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004895return altzone;
4896; return 0; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00004897EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004898if { (eval echo configure:4899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossum7f43da71994-08-01 12:15:30 +00004899 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004900 ac_cv_header_time_altzone=yes
4901else
Guido van Rossumf78abae1997-01-21 22:02:36 +00004902 echo "configure: failed program was:" >&5
4903 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004904 rm -rf conftest*
4905 ac_cv_header_time_altzone=no
Guido van Rossum7f43da71994-08-01 12:15:30 +00004906fi
4907rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004908fi
4909
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004910echo "$ac_t""$ac_cv_header_time_altzone" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004911if test $ac_cv_header_time_altzone = yes; then
4912 cat >> confdefs.h <<\EOF
4913#define HAVE_ALTZONE 1
4914EOF
4915
4916fi
4917
Guido van Rossumda88dad1995-01-26 00:46:29 +00004918was_it_defined=no
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004919echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004920echo "configure:4921: checking whether sys/select.h and sys/time.h may both be included" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004921cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004922#line 4923 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00004923#include "confdefs.h"
4924
4925#include <sys/types.h>
4926#include <sys/select.h>
4927#include <sys/time.h>
4928
Guido van Rossumf78abae1997-01-21 22:02:36 +00004929int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004930;
4931; return 0; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00004932EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004933if { (eval echo configure:4934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossum7f43da71994-08-01 12:15:30 +00004934 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004935 cat >> confdefs.h <<\EOF
4936#define SYS_SELECT_WITH_SYS_TIME 1
4937EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00004938 was_it_defined=yes
Guido van Rossumf78abae1997-01-21 22:02:36 +00004939else
4940 echo "configure: failed program was:" >&5
4941 cat conftest.$ac_ext >&5
Guido van Rossum7f43da71994-08-01 12:15:30 +00004942fi
4943rm -f conftest*
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004944echo "$ac_t""$was_it_defined" 1>&6
Guido van Rossum627b2d71993-12-24 10:39:16 +00004945
4946# checks for compiler characteristics
Guido van Rossum7f43da71994-08-01 12:15:30 +00004947
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004948echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004949echo "configure:4950: checking whether char is unsigned" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004950if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004951 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004952else
4953 if test "$GCC" = yes; then
4954 # GCC predefines this symbol on systems where it applies.
4955cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004956#line 4957 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004957#include "confdefs.h"
4958#ifdef __CHAR_UNSIGNED__
4959 yes
4960#endif
4961
4962EOF
4963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4964 egrep "yes" >/dev/null 2>&1; then
4965 rm -rf conftest*
4966 ac_cv_c_char_unsigned=yes
4967else
4968 rm -rf conftest*
4969 ac_cv_c_char_unsigned=no
4970fi
4971rm -f conftest*
4972
4973else
4974if test "$cross_compiling" = yes; then
4975 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4976else
Guido van Rossumf78abae1997-01-21 22:02:36 +00004977 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004978#line 4979 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00004979#include "confdefs.h"
4980/* volatile prevents gcc2 from optimizing the test away on sparcs. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004981#if !defined(__STDC__) || __STDC__ != 1
Guido van Rossum7f43da71994-08-01 12:15:30 +00004982#define volatile
4983#endif
4984main() {
Guido van Rossum7f43da71994-08-01 12:15:30 +00004985 volatile char c = 255; exit(c < 0);
Guido van Rossum7f43da71994-08-01 12:15:30 +00004986}
4987EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00004988if { (eval echo configure:4989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Guido van Rossumf78abae1997-01-21 22:02:36 +00004989then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004990 ac_cv_c_char_unsigned=yes
4991else
Guido van Rossumf78abae1997-01-21 22:02:36 +00004992 echo "configure: failed program was:" >&5
4993 cat conftest.$ac_ext >&5
4994 rm -fr conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004995 ac_cv_c_char_unsigned=no
4996fi
Guido van Rossum7f43da71994-08-01 12:15:30 +00004997rm -fr conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004998fi
Guido van Rossumf78abae1997-01-21 22:02:36 +00004999
5000fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005001fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00005002
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005003echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005004if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
5005 cat >> confdefs.h <<\EOF
5006#define __CHAR_UNSIGNED__ 1
5007EOF
5008
5009fi
Guido van Rossum7f43da71994-08-01 12:15:30 +00005010
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005011echo $ac_n "checking for working const""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005012echo "configure:5013: checking for working const" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00005013if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005014 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005015else
5016 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005017#line 5018 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005018#include "confdefs.h"
5019
Guido van Rossumf78abae1997-01-21 22:02:36 +00005020int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005021
5022/* Ultrix mips cc rejects this. */
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005023typedef int charset[2]; const charset x;
Guido van Rossum627b2d71993-12-24 10:39:16 +00005024/* SunOS 4.1.1 cc rejects this. */
5025char const *const *ccp;
5026char **p;
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005027/* NEC SVR4.0.2 mips cc rejects this. */
5028struct point {int x, y;};
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00005029static struct point const zero = {0,0};
Guido van Rossum627b2d71993-12-24 10:39:16 +00005030/* AIX XL C 1.02.0.0 rejects this.
5031 It does not let you subtract one const X* pointer from another in an arm
5032 of an if-expression whose if-part is not a constant expression */
5033const char *g = "string";
5034ccp = &g + (g ? g-g : 0);
5035/* HPUX 7.0 cc rejects these. */
5036++ccp;
5037p = (char**) ccp;
5038ccp = (char const *const *) p;
5039{ /* SCO 3.2v4 cc rejects this. */
5040 char *t;
5041 char const *s = 0 ? (char *) 0 : (char const *) 0;
5042
5043 *t++ = 0;
5044}
5045{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005046 int x[] = {25, 17};
Guido van Rossum627b2d71993-12-24 10:39:16 +00005047 const int *foo = &x[0];
5048 ++foo;
5049}
5050{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5051 typedef const int *iptr;
5052 iptr p = 0;
5053 ++p;
5054}
5055{ /* AIX XL C 1.02.0.0 rejects this saying
5056 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5057 struct s { int j; const int *ap[3]; };
5058 struct s *b; b->j = 5;
5059}
5060{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5061 const int foo = 10;
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005062}
5063
5064; return 0; }
5065EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005066if { (eval echo configure:5067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005067 rm -rf conftest*
5068 ac_cv_c_const=yes
5069else
Guido van Rossumf78abae1997-01-21 22:02:36 +00005070 echo "configure: failed program was:" >&5
5071 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005072 rm -rf conftest*
5073 ac_cv_c_const=no
5074fi
5075rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005076fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00005077
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005078echo "$ac_t""$ac_cv_c_const" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005079if test $ac_cv_c_const = no; then
5080 cat >> confdefs.h <<\EOF
5081#define const
5082EOF
5083
5084fi
5085
5086
Guido van Rossumda88dad1995-01-26 00:46:29 +00005087works=no
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005088echo $ac_n "checking for working volatile""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005089echo "configure:5090: checking for working volatile" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005090cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005091#line 5092 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00005092#include "confdefs.h"
5093
Guido van Rossumf78abae1997-01-21 22:02:36 +00005094int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005095volatile int x; x = 0;
5096; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00005097EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005098if { (eval echo configure:5099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossumda88dad1995-01-26 00:46:29 +00005099 rm -rf conftest*
5100 works=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00005101else
Guido van Rossumf78abae1997-01-21 22:02:36 +00005102 echo "configure: failed program was:" >&5
5103 cat conftest.$ac_ext >&5
Guido van Rossum627b2d71993-12-24 10:39:16 +00005104 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005105 cat >> confdefs.h <<\EOF
5106#define volatile
5107EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00005108
5109fi
5110rm -f conftest*
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005111echo "$ac_t""$works" 1>&6
Guido van Rossum7f43da71994-08-01 12:15:30 +00005112
Guido van Rossumda88dad1995-01-26 00:46:29 +00005113works=no
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005114echo $ac_n "checking for working signed char""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005115echo "configure:5116: checking for working signed char" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005116cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005117#line 5118 "configure"
Guido van Rossumdabb11b1994-10-11 15:04:27 +00005118#include "confdefs.h"
5119
Guido van Rossumf78abae1997-01-21 22:02:36 +00005120int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005121signed char c;
5122; return 0; }
Guido van Rossumdabb11b1994-10-11 15:04:27 +00005123EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005124if { (eval echo configure:5125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossumda88dad1995-01-26 00:46:29 +00005125 rm -rf conftest*
5126 works=yes
Guido van Rossumdabb11b1994-10-11 15:04:27 +00005127else
Guido van Rossumf78abae1997-01-21 22:02:36 +00005128 echo "configure: failed program was:" >&5
5129 cat conftest.$ac_ext >&5
Guido van Rossumdabb11b1994-10-11 15:04:27 +00005130 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005131 cat >> confdefs.h <<\EOF
5132#define signed
Guido van Rossum627b2d71993-12-24 10:39:16 +00005133EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00005134
5135fi
5136rm -f conftest*
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005137echo "$ac_t""$works" 1>&6
Guido van Rossum7f43da71994-08-01 12:15:30 +00005138
Guido van Rossumda88dad1995-01-26 00:46:29 +00005139have_prototypes=no
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005140echo $ac_n "checking for prototypes""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005141echo "configure:5142: checking for prototypes" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005142cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005143#line 5144 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00005144#include "confdefs.h"
Guido van Rossum7f43da71994-08-01 12:15:30 +00005145int foo(int x) { return 0; }
Guido van Rossumf78abae1997-01-21 22:02:36 +00005146int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005147return foo(10);
5148; return 0; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00005149EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005150if { (eval echo configure:5151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005151 rm -rf conftest*
5152 cat >> confdefs.h <<\EOF
5153#define HAVE_PROTOTYPES 1
5154EOF
5155 have_prototypes=yes
Guido van Rossumf78abae1997-01-21 22:02:36 +00005156else
5157 echo "configure: failed program was:" >&5
5158 cat conftest.$ac_ext >&5
Guido van Rossum7f43da71994-08-01 12:15:30 +00005159fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005160rm -f conftest*
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005161echo "$ac_t""$have_prototypes" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005162
Guido van Rossumda88dad1995-01-26 00:46:29 +00005163works=no
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005164echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005165echo "configure:5166: checking for variable length prototypes and stdarg.h" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005166cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005167#line 5168 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00005168#include "confdefs.h"
5169
5170#include <stdarg.h>
Guido van Rossum90eea071996-08-30 20:58:57 +00005171int foo(int x, ...) {
5172 va_list va;
5173 va_start(va, x);
5174 va_arg(va, int);
5175 va_arg(va, char *);
5176 va_arg(va, double);
5177 return 0;
5178}
Guido van Rossum7f43da71994-08-01 12:15:30 +00005179
Guido van Rossumf78abae1997-01-21 22:02:36 +00005180int main() {
Guido van Rossum90eea071996-08-30 20:58:57 +00005181return foo(10, "", 3.14);
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005182; return 0; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00005183EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005184if { (eval echo configure:5185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005185 rm -rf conftest*
5186 cat >> confdefs.h <<\EOF
5187#define HAVE_STDARG_PROTOTYPES 1
5188EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00005189 works=yes
Guido van Rossumf78abae1997-01-21 22:02:36 +00005190else
5191 echo "configure: failed program was:" >&5
5192 cat conftest.$ac_ext >&5
Guido van Rossum627b2d71993-12-24 10:39:16 +00005193fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005194rm -f conftest*
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005195echo "$ac_t""$works" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005196
Guido van Rossumda88dad1995-01-26 00:46:29 +00005197if test "$have_prototypes" = yes; then
5198bad_prototypes=no
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005199echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005200echo "configure:5201: checking for bad exec* prototypes" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005201cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005202#line 5203 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00005203#include "confdefs.h"
5204#include <unistd.h>
Guido van Rossumf78abae1997-01-21 22:02:36 +00005205int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005206char **t;execve("@",t,t);
5207; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00005208EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005209if { (eval echo configure:5210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00005210 :
5211else
Guido van Rossumf78abae1997-01-21 22:02:36 +00005212 echo "configure: failed program was:" >&5
5213 cat conftest.$ac_ext >&5
Guido van Rossum627b2d71993-12-24 10:39:16 +00005214 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005215 cat >> confdefs.h <<\EOF
5216#define BAD_EXEC_PROTOTYPES 1
5217EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00005218 bad_prototypes=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00005219fi
5220rm -f conftest*
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005221echo "$ac_t""$bad_prototypes" 1>&6
Guido van Rossum627b2d71993-12-24 10:39:16 +00005222fi
5223
Guido van Rossumda88dad1995-01-26 00:46:29 +00005224bad_forward=no
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005225echo $ac_n "checking for bad static forward""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005226echo "configure:5227: checking for bad static forward" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005227if test "$cross_compiling" = yes; then
5228 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5229else
Guido van Rossumf78abae1997-01-21 22:02:36 +00005230 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005231#line 5232 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00005232#include "confdefs.h"
5233
5234struct s { int a; int b; };
5235static struct s foo;
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005236int foobar() {
5237 static int random;
5238 random = (int) &foo;
5239 return random;
5240}
Guido van Rossum7f43da71994-08-01 12:15:30 +00005241static struct s foo = { 1, 2 };
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005242main() {
5243 exit(!((int)&foo == foobar()));
5244}
Guido van Rossum7f43da71994-08-01 12:15:30 +00005245
5246EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005247if { (eval echo configure:5248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Guido van Rossumf78abae1997-01-21 22:02:36 +00005248then
Guido van Rossum7f43da71994-08-01 12:15:30 +00005249 :
5250else
Guido van Rossumf78abae1997-01-21 22:02:36 +00005251 echo "configure: failed program was:" >&5
5252 cat conftest.$ac_ext >&5
5253 rm -fr conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005254 cat >> confdefs.h <<\EOF
5255#define BAD_STATIC_FORWARD 1
5256EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00005257 bad_forward=yes
Guido van Rossum7f43da71994-08-01 12:15:30 +00005258fi
5259rm -fr conftest*
Guido van Rossumf78abae1997-01-21 22:02:36 +00005260fi
5261
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005262echo "$ac_t""$bad_forward" 1>&6
Guido van Rossum7f43da71994-08-01 12:15:30 +00005263
Guido van Rossumda88dad1995-01-26 00:46:29 +00005264va_list_is_array=no
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005265echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005266echo "configure:5267: checking whether va_list is an array" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005267cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005268#line 5269 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005269#include "confdefs.h"
5270
5271#ifdef HAVE_STDARG_PROTOTYPES
5272#include <stdarg.h>
5273#else
5274#include <varargs.h>
5275#endif
5276
Guido van Rossumf78abae1997-01-21 22:02:36 +00005277int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005278va_list list1, list2; list1 = list2;
5279; return 0; }
5280EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005281if { (eval echo configure:5282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005282 :
5283else
Guido van Rossumf78abae1997-01-21 22:02:36 +00005284 echo "configure: failed program was:" >&5
5285 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005286 rm -rf conftest*
5287 cat >> confdefs.h <<\EOF
5288#define VA_LIST_IS_ARRAY 1
5289EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00005290 va_list_is_array=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005291fi
5292rm -f conftest*
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005293echo "$ac_t""$va_list_is_array" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005294
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005295# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
5296echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005297echo "configure:5298: checking for gethostbyname_r" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00005298if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005299 echo $ac_n "(cached) $ac_c" 1>&6
5300else
5301 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005302#line 5303 "configure"
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005303#include "confdefs.h"
5304/* System header to define __stub macros and hopefully few prototypes,
5305 which can conflict with char gethostbyname_r(); below. */
5306#include <assert.h>
5307/* Override any gcc2 internal prototype to avoid an error. */
5308/* We use char because int might match the return type of a gcc2
5309 builtin and then its argument prototype would still apply. */
5310char gethostbyname_r();
5311
5312int main() {
5313
5314/* The GNU C library defines this for functions which it implements
5315 to always fail with ENOSYS. Some functions are actually named
5316 something starting with __ and the normal name is an alias. */
5317#if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
5318choke me
5319#else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00005320gethostbyname_r();
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005321#endif
5322
5323; return 0; }
5324EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005325if { (eval echo configure:5326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005326 rm -rf conftest*
5327 eval "ac_cv_func_gethostbyname_r=yes"
5328else
5329 echo "configure: failed program was:" >&5
5330 cat conftest.$ac_ext >&5
5331 rm -rf conftest*
5332 eval "ac_cv_func_gethostbyname_r=no"
5333fi
5334rm -f conftest*
5335fi
5336
5337if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
5338 echo "$ac_t""yes" 1>&6
5339
5340 cat >> confdefs.h <<\EOF
5341#define HAVE_GETHOSTBYNAME_R 1
5342EOF
5343
5344 echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005345echo "configure:5346: checking gethostbyname_r with 6 args" >&5
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005346 OLD_CFLAGS=$CFLAGS
5347 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
5348 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005349#line 5350 "configure"
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005350#include "confdefs.h"
5351
5352# include <netdb.h>
5353
5354int main() {
5355
5356 char *name;
5357 struct hostent *he, *res;
5358 char buffer[2048];
5359 int buflen = 2048;
5360 int h_errnop;
5361
5362 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
5363
5364; return 0; }
5365EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005366if { (eval echo configure:5367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005367 rm -rf conftest*
5368
5369 cat >> confdefs.h <<\EOF
Guido van Rossum8db7d8b1999-03-23 16:40:33 +00005370#define HAVE_GETHOSTBYNAME_R 1
5371EOF
5372
5373 cat >> confdefs.h <<\EOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005374#define HAVE_GETHOSTBYNAME_R_6_ARG 1
5375EOF
5376
5377 echo "$ac_t""yes" 1>&6
5378
5379else
5380 echo "configure: failed program was:" >&5
5381 cat conftest.$ac_ext >&5
5382 rm -rf conftest*
5383
5384 echo "$ac_t""no" 1>&6
5385 echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005386echo "configure:5387: checking gethostbyname_r with 5 args" >&5
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005387 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005388#line 5389 "configure"
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005389#include "confdefs.h"
5390
5391# include <netdb.h>
5392
5393int main() {
5394
5395 char *name;
5396 struct hostent *he;
5397 char buffer[2048];
5398 int buflen = 2048;
5399 int h_errnop;
5400
5401 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
5402
5403; return 0; }
5404EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005405if { (eval echo configure:5406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005406 rm -rf conftest*
5407
5408 cat >> confdefs.h <<\EOF
Guido van Rossum8db7d8b1999-03-23 16:40:33 +00005409#define HAVE_GETHOSTBYNAME_R 1
5410EOF
5411
5412 cat >> confdefs.h <<\EOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005413#define HAVE_GETHOSTBYNAME_R_5_ARG 1
5414EOF
5415
5416 echo "$ac_t""yes" 1>&6
5417
5418else
5419 echo "configure: failed program was:" >&5
5420 cat conftest.$ac_ext >&5
5421 rm -rf conftest*
5422
5423 echo "$ac_t""no" 1>&6
5424 echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005425echo "configure:5426: checking gethostbyname_r with 3 args" >&5
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005426 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005427#line 5428 "configure"
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005428#include "confdefs.h"
5429
5430# include <netdb.h>
5431
5432int main() {
5433
5434 char *name;
5435 struct hostent *he;
5436 struct hostent_data data;
5437
5438 (void) gethostbyname_r(name, he, &data);
5439
5440; return 0; }
5441EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005442if { (eval echo configure:5443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005443 rm -rf conftest*
5444
5445 cat >> confdefs.h <<\EOF
Guido van Rossum8db7d8b1999-03-23 16:40:33 +00005446#define HAVE_GETHOSTBYNAME_R 1
5447EOF
5448
5449 cat >> confdefs.h <<\EOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005450#define HAVE_GETHOSTBYNAME_R_3_ARG 1
5451EOF
5452
5453 echo "$ac_t""yes" 1>&6
5454
5455else
5456 echo "configure: failed program was:" >&5
5457 cat conftest.$ac_ext >&5
5458 rm -rf conftest*
5459
5460 echo "$ac_t""no" 1>&6
5461
5462fi
5463rm -f conftest*
5464
5465fi
5466rm -f conftest*
5467
5468fi
5469rm -f conftest*
5470 CFLAGS=$OLD_CFLAGS
5471
5472else
5473 echo "$ac_t""no" 1>&6
5474
Thomas Wouters3a584202000-08-05 23:28:51 +00005475 for ac_func in gethostbyname
5476do
5477echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005478echo "configure:5479: checking for $ac_func" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00005479if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005480 echo $ac_n "(cached) $ac_c" 1>&6
5481else
5482 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005483#line 5484 "configure"
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005484#include "confdefs.h"
5485/* System header to define __stub macros and hopefully few prototypes,
Thomas Wouters3a584202000-08-05 23:28:51 +00005486 which can conflict with char $ac_func(); below. */
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005487#include <assert.h>
5488/* Override any gcc2 internal prototype to avoid an error. */
5489/* We use char because int might match the return type of a gcc2
5490 builtin and then its argument prototype would still apply. */
Thomas Wouters3a584202000-08-05 23:28:51 +00005491char $ac_func();
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005492
5493int main() {
5494
5495/* The GNU C library defines this for functions which it implements
5496 to always fail with ENOSYS. Some functions are actually named
5497 something starting with __ and the normal name is an alias. */
Thomas Wouters3a584202000-08-05 23:28:51 +00005498#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005499choke me
5500#else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00005501$ac_func();
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005502#endif
5503
5504; return 0; }
5505EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005506if { (eval echo configure:5507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005507 rm -rf conftest*
Thomas Wouters3a584202000-08-05 23:28:51 +00005508 eval "ac_cv_func_$ac_func=yes"
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005509else
5510 echo "configure: failed program was:" >&5
5511 cat conftest.$ac_ext >&5
5512 rm -rf conftest*
Thomas Wouters3a584202000-08-05 23:28:51 +00005513 eval "ac_cv_func_$ac_func=no"
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005514fi
5515rm -f conftest*
5516fi
5517
Thomas Wouters3a584202000-08-05 23:28:51 +00005518if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005519 echo "$ac_t""yes" 1>&6
Thomas Wouters3a584202000-08-05 23:28:51 +00005520 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5521 cat >> confdefs.h <<EOF
5522#define $ac_tr_func 1
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005523EOF
Thomas Wouters3a584202000-08-05 23:28:51 +00005524
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005525else
5526 echo "$ac_t""no" 1>&6
5527fi
Thomas Wouters3a584202000-08-05 23:28:51 +00005528done
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005529
5530
5531fi
5532
5533
5534
5535
5536
5537
Guido van Rossum8db7d8b1999-03-23 16:40:33 +00005538
Guido van Rossum627b2d71993-12-24 10:39:16 +00005539# checks for system services
5540# (none yet)
5541
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005542# Linux requires this for correct f.p. operations
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +00005543echo $ac_n "checking for __fpu_control""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005544echo "configure:5545: checking for __fpu_control" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00005545if eval "test \"`echo '$''{'ac_cv_func___fpu_control'+set}'`\" = set"; then
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +00005546 echo $ac_n "(cached) $ac_c" 1>&6
5547else
5548 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005549#line 5550 "configure"
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +00005550#include "confdefs.h"
5551/* System header to define __stub macros and hopefully few prototypes,
5552 which can conflict with char __fpu_control(); below. */
5553#include <assert.h>
5554/* Override any gcc2 internal prototype to avoid an error. */
5555/* We use char because int might match the return type of a gcc2
5556 builtin and then its argument prototype would still apply. */
5557char __fpu_control();
5558
5559int main() {
5560
5561/* The GNU C library defines this for functions which it implements
5562 to always fail with ENOSYS. Some functions are actually named
5563 something starting with __ and the normal name is an alias. */
5564#if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
5565choke me
5566#else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00005567__fpu_control();
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +00005568#endif
5569
5570; return 0; }
5571EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005572if { (eval echo configure:5573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +00005573 rm -rf conftest*
5574 eval "ac_cv_func___fpu_control=yes"
5575else
5576 echo "configure: failed program was:" >&5
5577 cat conftest.$ac_ext >&5
5578 rm -rf conftest*
5579 eval "ac_cv_func___fpu_control=no"
5580fi
5581rm -f conftest*
5582fi
5583
5584if eval "test \"`echo '$ac_cv_func_'__fpu_control`\" = yes"; then
5585 echo "$ac_t""yes" 1>&6
5586 :
5587else
5588 echo "$ac_t""no" 1>&6
Guido van Rossumf78abae1997-01-21 22:02:36 +00005589echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005590echo "configure:5591: checking for __fpu_control in -lieee" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00005591ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00005592if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005593 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005594else
5595 ac_save_LIBS="$LIBS"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005596LIBS="-lieee $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005597cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005598#line 5599 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00005599#include "confdefs.h"
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00005600/* Override any gcc2 internal prototype to avoid an error. */
5601/* We use char because int might match the return type of a gcc2
5602 builtin and then its argument prototype would still apply. */
5603char __fpu_control();
Guido van Rossum627b2d71993-12-24 10:39:16 +00005604
Guido van Rossumf78abae1997-01-21 22:02:36 +00005605int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005606__fpu_control()
5607; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00005608EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005609if { (eval echo configure:5610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00005610 rm -rf conftest*
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00005611 eval "ac_cv_lib_$ac_lib_var=yes"
Guido van Rossum627b2d71993-12-24 10:39:16 +00005612else
Guido van Rossumf78abae1997-01-21 22:02:36 +00005613 echo "configure: failed program was:" >&5
5614 cat conftest.$ac_ext >&5
Guido van Rossum627b2d71993-12-24 10:39:16 +00005615 rm -rf conftest*
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00005616 eval "ac_cv_lib_$ac_lib_var=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00005617fi
5618rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005619LIBS="$ac_save_LIBS"
Guido van Rossum627b2d71993-12-24 10:39:16 +00005620
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005621fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00005622if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005623 echo "$ac_t""yes" 1>&6
Guido van Rossumf78abae1997-01-21 22:02:36 +00005624 ac_tr_lib=HAVE_LIB`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5625 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005626 cat >> confdefs.h <<EOF
5627#define $ac_tr_lib 1
5628EOF
5629
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005630 LIBS="-lieee $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005631
5632else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005633 echo "$ac_t""no" 1>&6
Guido van Rossum627b2d71993-12-24 10:39:16 +00005634fi
5635
5636
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +00005637fi
5638
5639
Guido van Rossum7f253911997-05-09 02:42:48 +00005640# Check for --with-fpectl
Guido van Rossum7f253911997-05-09 02:42:48 +00005641echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005642echo "configure:5643: checking for --with-fpectl" >&5
Guido van Rossum7f253911997-05-09 02:42:48 +00005643# Check whether --with-fpectl or --without-fpectl was given.
5644if test "${with_fpectl+set}" = set; then
5645 withval="$with_fpectl"
5646
5647if test "$withval" != no
5648then cat >> confdefs.h <<\EOF
5649#define WANT_SIGFPE_HANDLER 1
5650EOF
5651 echo "$ac_t""yes" 1>&6
5652else echo "$ac_t""no" 1>&6
5653fi
Guido van Rossumef2255b2000-03-10 22:30:29 +00005654else
5655 echo "$ac_t""no" 1>&6
Guido van Rossum7f253911997-05-09 02:42:48 +00005656fi
5657
5658
Guido van Rossum7f43da71994-08-01 12:15:30 +00005659# check for --with-libm=...
5660
Guido van Rossum563e7081996-09-10 18:20:48 +00005661case $ac_sys_system in
Guido van Rossum3dc0a512000-10-05 18:00:06 +00005662Darwin) ;;
Guido van Rossum563e7081996-09-10 18:20:48 +00005663next) ;;
Guido van Rossumec95c7b1998-08-04 17:59:56 +00005664BeOS) ;;
Guido van Rossum563e7081996-09-10 18:20:48 +00005665*) LIBM=-lm
5666esac
Guido van Rossum7f253911997-05-09 02:42:48 +00005667echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005668echo "configure:5669: checking for --with-libm=STRING" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005669# Check whether --with-libm or --without-libm was given.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00005670if test "${with_libm+set}" = set; then
5671 withval="$with_libm"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005672
Guido van Rossum7f253911997-05-09 02:42:48 +00005673if test "$withval" = no
5674then LIBM=
5675 echo "$ac_t""force LIBM empty" 1>&6
5676elif test "$withval" != yes
Guido van Rossum7f43da71994-08-01 12:15:30 +00005677then LIBM=$withval
Guido van Rossum7f253911997-05-09 02:42:48 +00005678 echo "$ac_t""set LIBM=\"$withval\"" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005679else { echo "configure: error: proper usage is --with-libm=STRING" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00005680fi
Guido van Rossum7f253911997-05-09 02:42:48 +00005681else
5682 echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6
Guido van Rossum7f43da71994-08-01 12:15:30 +00005683fi
5684
5685
5686# check for --with-libc=...
5687
Guido van Rossum7f253911997-05-09 02:42:48 +00005688echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005689echo "configure:5690: checking for --with-libc=STRING" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005690# Check whether --with-libc or --without-libc was given.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00005691if test "${with_libc+set}" = set; then
5692 withval="$with_libc"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005693
Guido van Rossum7f253911997-05-09 02:42:48 +00005694if test "$withval" = no
5695then LIBC=
5696 echo "$ac_t""force LIBC empty" 1>&6
5697elif test "$withval" != yes
Guido van Rossum7f43da71994-08-01 12:15:30 +00005698then LIBC=$withval
Guido van Rossum7f253911997-05-09 02:42:48 +00005699 echo "$ac_t""set LIBC=\"$withval\"" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005700else { echo "configure: error: proper usage is --with-libc=STRING" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00005701fi
Guido van Rossum7f253911997-05-09 02:42:48 +00005702else
5703 echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6
Guido van Rossum7f43da71994-08-01 12:15:30 +00005704fi
5705
5706
Guido van Rossum4c3f57c2001-01-10 20:40:46 +00005707# check for --with-check-import-case
5708# Check whether --with-check-import-case or --without-check-import-case was given.
5709if test "${with_check_import_case+set}" = set; then
5710 withval="$with_check_import_case"
5711 :
5712fi
5713
5714echo $ac_n "checking for --with-check-import-case""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005715echo "configure:5716: checking for --with-check-import-case" >&5
Guido van Rossum4c3f57c2001-01-10 20:40:46 +00005716if test "$with_check_import_case"
5717then
5718 cat >> confdefs.h <<\EOF
5719#define CHECK_IMPORT_CASE 1
5720EOF
5721
5722 echo "$ac_t""yes" 1>&6
5723else
5724 echo "$ac_t""no" 1>&6
5725fi
5726
Guido van Rossumaf5b83e1995-01-04 19:02:35 +00005727# check for hypot() in math library
5728LIBS_SAVE=$LIBS
5729LIBS="$LIBS $LIBM"
5730for ac_func in hypot
5731do
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005732echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005733echo "configure:5734: checking for $ac_func" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00005734if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005735 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossumaf5b83e1995-01-04 19:02:35 +00005736else
5737 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005738#line 5739 "configure"
Guido van Rossumaf5b83e1995-01-04 19:02:35 +00005739#include "confdefs.h"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005740/* System header to define __stub macros and hopefully few prototypes,
5741 which can conflict with char $ac_func(); below. */
5742#include <assert.h>
5743/* Override any gcc2 internal prototype to avoid an error. */
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00005744/* We use char because int might match the return type of a gcc2
5745 builtin and then its argument prototype would still apply. */
5746char $ac_func();
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005747
Guido van Rossumf78abae1997-01-21 22:02:36 +00005748int main() {
Guido van Rossumaf5b83e1995-01-04 19:02:35 +00005749
5750/* The GNU C library defines this for functions which it implements
5751 to always fail with ENOSYS. Some functions are actually named
5752 something starting with __ and the normal name is an alias. */
5753#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5754choke me
5755#else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00005756$ac_func();
Guido van Rossumaf5b83e1995-01-04 19:02:35 +00005757#endif
5758
5759; return 0; }
5760EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005761if { (eval echo configure:5762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum2b3ac691996-08-30 15:18:41 +00005762 rm -rf conftest*
5763 eval "ac_cv_func_$ac_func=yes"
5764else
Guido van Rossumf78abae1997-01-21 22:02:36 +00005765 echo "configure: failed program was:" >&5
5766 cat conftest.$ac_ext >&5
Guido van Rossum2b3ac691996-08-30 15:18:41 +00005767 rm -rf conftest*
5768 eval "ac_cv_func_$ac_func=no"
5769fi
5770rm -f conftest*
Guido van Rossum2b3ac691996-08-30 15:18:41 +00005771fi
Guido van Rossumf78abae1997-01-21 22:02:36 +00005772
Guido van Rossum2b3ac691996-08-30 15:18:41 +00005773if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5774 echo "$ac_t""yes" 1>&6
Guido van Rossumf78abae1997-01-21 22:02:36 +00005775 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5776 cat >> confdefs.h <<EOF
5777#define $ac_tr_func 1
5778EOF
5779
Guido van Rossum2b3ac691996-08-30 15:18:41 +00005780else
5781 echo "$ac_t""no" 1>&6
Guido van Rossume6c2cf11999-01-08 21:08:33 +00005782LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
Guido van Rossum2b3ac691996-08-30 15:18:41 +00005783fi
Guido van Rossum2b3ac691996-08-30 15:18:41 +00005784done
5785
Guido van Rossumf78abae1997-01-21 22:02:36 +00005786
Guido van Rossumaf5b83e1995-01-04 19:02:35 +00005787LIBS=$LIBS_SAVE
5788
Guido van Rossumad713701997-07-10 22:42:38 +00005789# check whether malloc(0) returns NULL or not
Guido van Rossumad713701997-07-10 22:42:38 +00005790echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005791echo "configure:5792: checking what malloc(0) returns" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00005792if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then
Guido van Rossumad713701997-07-10 22:42:38 +00005793 echo $ac_n "(cached) $ac_c" 1>&6
5794else
5795 if test "$cross_compiling" = yes; then
5796 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5797else
5798 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005799#line 5800 "configure"
Guido van Rossumad713701997-07-10 22:42:38 +00005800#include "confdefs.h"
5801#include <stdio.h>
5802#ifdef HAVE_STDLIB
5803#include <stdlib.h>
5804#else
5805char *malloc(), *realloc();
5806int *free();
5807#endif
5808main() {
5809 char *p;
5810 p = malloc(0);
5811 if (p == NULL) exit(1);
5812 p = realloc(p, 0);
5813 if (p == NULL) exit(1);
5814 free(p);
5815 exit(0);
5816}
5817EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005818if { (eval echo configure:5819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Guido van Rossumad713701997-07-10 22:42:38 +00005819then
5820 ac_cv_malloc_zero=nonnull
5821else
5822 echo "configure: failed program was:" >&5
5823 cat conftest.$ac_ext >&5
5824 rm -fr conftest*
5825 ac_cv_malloc_zero=null
5826fi
5827rm -fr conftest*
5828fi
5829
5830fi
5831
5832echo "$ac_t""$ac_cv_malloc_zero" 1>&6
5833if test "$ac_cv_malloc_zero" = null
5834then
5835 cat >> confdefs.h <<\EOF
5836#define MALLOC_ZERO_RETURNS_NULL 1
5837EOF
5838
5839fi
5840
Guido van Rossumef2255b2000-03-10 22:30:29 +00005841# check for wchar.h
5842ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'`
5843echo $ac_n "checking for wchar.h""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005844echo "configure:5845: checking for wchar.h" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00005845if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
Guido van Rossumef2255b2000-03-10 22:30:29 +00005846 echo $ac_n "(cached) $ac_c" 1>&6
5847else
5848 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005849#line 5850 "configure"
Guido van Rossumef2255b2000-03-10 22:30:29 +00005850#include "confdefs.h"
5851#include <wchar.h>
5852EOF
5853ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005854{ (eval echo configure:5855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Guido van Rossumef2255b2000-03-10 22:30:29 +00005855ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5856if test -z "$ac_err"; then
5857 rm -rf conftest*
5858 eval "ac_cv_header_$ac_safe=yes"
5859else
5860 echo "$ac_err" >&5
5861 echo "configure: failed program was:" >&5
5862 cat conftest.$ac_ext >&5
5863 rm -rf conftest*
5864 eval "ac_cv_header_$ac_safe=no"
5865fi
5866rm -f conftest*
5867fi
5868if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5869 echo "$ac_t""yes" 1>&6
5870 cat >> confdefs.h <<\EOF
5871#define HAVE_WCHAR_H 1
5872EOF
5873 wchar_h="yes"
5874else
5875 echo "$ac_t""no" 1>&6
5876wchar_h="no"
5877
5878fi
5879
5880
5881# check for usable wchar_t
5882usable_wchar_t="unkown"
5883echo $ac_n "checking for usable wchar_t""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005884echo "configure:5885: checking for usable wchar_t" >&5
Guido van Rossumef2255b2000-03-10 22:30:29 +00005885if test "$cross_compiling" = yes; then
5886 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5887else
5888 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005889#line 5890 "configure"
Guido van Rossumef2255b2000-03-10 22:30:29 +00005890#include "confdefs.h"
5891
5892#include "wchar.h"
5893#include "wctype.h"
5894main() {
5895 wchar_t s;
5896 if (sizeof(s) == 2)
5897 exit(0);
5898 else
5899 exit(1);
5900}
5901
5902EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005903if { (eval echo configure:5904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Guido van Rossumef2255b2000-03-10 22:30:29 +00005904then
5905 cat >> confdefs.h <<\EOF
5906#define HAVE_USABLE_WCHAR_T 1
5907EOF
5908 usable_wchar_t="yes"
5909else
5910 echo "configure: failed program was:" >&5
5911 cat conftest.$ac_ext >&5
5912 rm -fr conftest*
5913 usable_wchar_t="no"
5914fi
5915rm -fr conftest*
5916fi
5917
5918echo "$ac_t""$usable_wchar_t" 1>&6
5919
5920# check for endianness
5921echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005922echo "configure:5923: checking whether byte ordering is bigendian" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00005923if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
Guido van Rossumef2255b2000-03-10 22:30:29 +00005924 echo $ac_n "(cached) $ac_c" 1>&6
5925else
5926 ac_cv_c_bigendian=unknown
5927# See if sys/param.h defines the BYTE_ORDER macro.
5928cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005929#line 5930 "configure"
Guido van Rossumef2255b2000-03-10 22:30:29 +00005930#include "confdefs.h"
5931#include <sys/types.h>
5932#include <sys/param.h>
5933int main() {
5934
5935#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5936 bogus endian macros
5937#endif
5938; return 0; }
5939EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005940if { (eval echo configure:5941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossumef2255b2000-03-10 22:30:29 +00005941 rm -rf conftest*
5942 # It does; now see whether it defined to BIG_ENDIAN or not.
5943cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005944#line 5945 "configure"
Guido van Rossumef2255b2000-03-10 22:30:29 +00005945#include "confdefs.h"
5946#include <sys/types.h>
5947#include <sys/param.h>
5948int main() {
5949
5950#if BYTE_ORDER != BIG_ENDIAN
5951 not big endian
5952#endif
5953; return 0; }
5954EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005955if { (eval echo configure:5956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossumef2255b2000-03-10 22:30:29 +00005956 rm -rf conftest*
5957 ac_cv_c_bigendian=yes
5958else
5959 echo "configure: failed program was:" >&5
5960 cat conftest.$ac_ext >&5
5961 rm -rf conftest*
5962 ac_cv_c_bigendian=no
5963fi
5964rm -f conftest*
5965else
5966 echo "configure: failed program was:" >&5
5967 cat conftest.$ac_ext >&5
5968fi
5969rm -f conftest*
5970if test $ac_cv_c_bigendian = unknown; then
5971if test "$cross_compiling" = yes; then
5972 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5973else
5974 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005975#line 5976 "configure"
Guido van Rossumef2255b2000-03-10 22:30:29 +00005976#include "confdefs.h"
5977main () {
5978 /* Are we little or big endian? From Harbison&Steele. */
5979 union
5980 {
5981 long l;
5982 char c[sizeof (long)];
5983 } u;
5984 u.l = 1;
5985 exit (u.c[sizeof (long) - 1] == 1);
5986}
5987EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00005988if { (eval echo configure:5989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Guido van Rossumef2255b2000-03-10 22:30:29 +00005989then
5990 ac_cv_c_bigendian=no
5991else
5992 echo "configure: failed program was:" >&5
5993 cat conftest.$ac_ext >&5
5994 rm -fr conftest*
5995 ac_cv_c_bigendian=yes
5996fi
5997rm -fr conftest*
5998fi
5999
6000fi
6001fi
6002
6003echo "$ac_t""$ac_cv_c_bigendian" 1>&6
6004if test $ac_cv_c_bigendian = yes; then
6005 cat >> confdefs.h <<\EOF
6006#define WORDS_BIGENDIAN 1
6007EOF
6008
6009fi
6010
6011
Vladimir Marangozov676aa882000-07-12 03:02:43 +00006012# Check whether right shifting a negative integer extends the sign bit
6013# or fills with zeros (like the Cray J90, according to Tim Peters).
6014echo $ac_n "checking whether right shift extends the sign bit""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00006015echo "configure:6016: checking whether right shift extends the sign bit" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00006016if eval "test \"`echo '$''{'ac_cv_rshift_extends_sign'+set}'`\" = set"; then
Vladimir Marangozova6180282000-07-12 05:05:06 +00006017 echo $ac_n "(cached) $ac_c" 1>&6
6018else
6019
Vladimir Marangozov676aa882000-07-12 03:02:43 +00006020if test "$cross_compiling" = yes; then
6021 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
6022else
6023 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00006024#line 6025 "configure"
Vladimir Marangozov676aa882000-07-12 03:02:43 +00006025#include "confdefs.h"
6026
6027int main()
6028{
Vladimir Marangozova6180282000-07-12 05:05:06 +00006029 exit(((-1)>>3 == -1) ? 0 : 1);
Vladimir Marangozov676aa882000-07-12 03:02:43 +00006030}
6031
6032EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00006033if { (eval echo configure:6034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Vladimir Marangozova6180282000-07-12 05:05:06 +00006034then
6035 ac_cv_rshift_extends_sign=yes
6036else
6037 echo "configure: failed program was:" >&5
6038 cat conftest.$ac_ext >&5
6039 rm -fr conftest*
6040 ac_cv_rshift_extends_sign=no
6041fi
6042rm -fr conftest*
6043fi
6044
6045fi
6046
6047echo "$ac_t""$ac_cv_rshift_extends_sign" 1>&6
6048if test "$ac_cv_rshift_extends_sign" = no
Vladimir Marangozov676aa882000-07-12 03:02:43 +00006049then
6050 cat >> confdefs.h <<\EOF
6051#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
6052EOF
6053
Vladimir Marangozov676aa882000-07-12 03:02:43 +00006054fi
6055
Guido van Rossumcadfaec2001-01-05 14:45:49 +00006056# check for getc_unlocked and related locking functions
6057echo $ac_n "checking for getc_unlocked() and friends""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00006058echo "configure:6059: checking for getc_unlocked() and friends" >&5
Guido van Rossumcadfaec2001-01-05 14:45:49 +00006059if eval "test \"`echo '$''{'ac_cv_have_getc_unlocked'+set}'`\" = set"; then
6060 echo $ac_n "(cached) $ac_c" 1>&6
6061else
6062
6063cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00006064#line 6065 "configure"
Guido van Rossumcadfaec2001-01-05 14:45:49 +00006065#include "confdefs.h"
6066#include <stdio.h>
6067int main() {
6068
6069 FILE *f = fopen("/dev/null", "r");
6070 flockfile(f);
6071 getc_unlocked(f);
6072 funlockfile(f);
6073
6074; return 0; }
6075EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00006076if { (eval echo configure:6077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossumcadfaec2001-01-05 14:45:49 +00006077 rm -rf conftest*
6078 ac_cv_have_getc_unlocked=yes
6079else
6080 echo "configure: failed program was:" >&5
6081 cat conftest.$ac_ext >&5
6082 rm -rf conftest*
6083 ac_cv_have_getc_unlocked=no
6084fi
6085rm -f conftest*
6086fi
6087
6088echo "$ac_t""$ac_cv_have_getc_unlocked" 1>&6
6089if test "$ac_cv_have_getc_unlocked" = yes
6090then
6091 cat >> confdefs.h <<\EOF
6092#define HAVE_GETC_UNLOCKED 1
6093EOF
6094
6095fi
Vladimir Marangozov676aa882000-07-12 03:02:43 +00006096
Guido van Rossum95713eb2000-05-18 20:53:31 +00006097# THIS MUST BE LAST, IT CAN BREAK OTHER TESTS!
6098# Add sys/socket.h to confdefs.h
6099cat >> confdefs.h <<\EOF
6100#ifdef HAVE_SYS_SOCKET_H
6101#include <sys/socket.h>
6102#endif
6103EOF
6104echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00006105echo "configure:6106: checking for socklen_t" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00006106if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
Guido van Rossum95713eb2000-05-18 20:53:31 +00006107 echo $ac_n "(cached) $ac_c" 1>&6
6108else
6109 cat > conftest.$ac_ext <<EOF
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00006110#line 6111 "configure"
Guido van Rossum95713eb2000-05-18 20:53:31 +00006111#include "confdefs.h"
6112#include <sys/types.h>
6113#if STDC_HEADERS
6114#include <stdlib.h>
6115#include <stddef.h>
6116#endif
6117EOF
6118if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6119 egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6120 rm -rf conftest*
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00006121 ac_cv_type_socklen_t=yes
Guido van Rossum95713eb2000-05-18 20:53:31 +00006122else
6123 rm -rf conftest*
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00006124 ac_cv_type_socklen_t=no
Guido van Rossum95713eb2000-05-18 20:53:31 +00006125fi
6126rm -f conftest*
6127
6128fi
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00006129echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
6130if test $ac_cv_type_socklen_t = no; then
6131 cat >> confdefs.h <<\EOF
Guido van Rossum95713eb2000-05-18 20:53:31 +00006132#define socklen_t int
6133EOF
6134
6135fi
6136
6137
Neil Schemenauerd32c2492001-01-24 17:25:28 +00006138#AC_MSG_CHECKING(for Modules/Setup)
6139#if test ! -f Modules/Setup ; then
6140# if test ! -d Modules ; then
6141# mkdir Modules
6142# fi
6143# cp "$srcdir/Modules/Setup.dist" Modules/Setup
6144# AC_MSG_RESULT(creating)
6145#else
6146# AC_MSG_RESULT(already exists)
6147#fi
6148
6149
Neil Schemenauer28aa9d32001-02-16 04:11:41 +00006150SRCDIRS="Include Parser Grammar Objects Python Modules"
Andrew M. Kuchling8abedde2001-01-26 22:55:24 +00006151echo $ac_n "checking for build directories""... $ac_c" 1>&6
Andrew M. Kuchlingf55204b2001-02-21 21:12:59 +00006152echo "configure:6153: checking for build directories" >&5
Neil Schemenauerd32c2492001-01-24 17:25:28 +00006153for dir in $SRCDIRS; do
6154 if test ! -d $dir; then
6155 mkdir $dir
Guido van Rossum262cf202000-11-02 19:33:53 +00006156 fi
Neil Schemenauerd32c2492001-01-24 17:25:28 +00006157done
6158echo "$ac_t""done" 1>&6
Fred Drake036144d2000-10-26 17:09:35 +00006159
Guido van Rossum627b2d71993-12-24 10:39:16 +00006160# generate output files
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006161trap '' 1 2 15
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00006162cat > confcache <<\EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006163# This file is a shell script that caches the results of configure
6164# tests run on this system so they can be shared between configure
6165# scripts and configure runs. It is not useful on other systems.
6166# If it contains results you don't want to keep, you may remove or edit it.
6167#
6168# By default, configure uses ./config.cache as the cache file,
6169# creating it if it does not exist already. You can give configure
6170# the --cache-file=FILE option to use a different cache file; that is
6171# what configure does when it calls configure scripts in
6172# subdirectories, so they share the cache.
6173# Giving --cache-file=/dev/null disables caching, for debugging configure.
6174# config.status only pays attention to the cache file if you give it the
6175# --recheck option to rerun configure.
6176#
6177EOF
Guido van Rossumf78abae1997-01-21 22:02:36 +00006178# The following way of writing the cache mishandles newlines in values,
6179# but we know of no workaround that is simple, portable, and efficient.
6180# So, don't put newlines in cache variables' values.
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00006181# Ultrix sh set writes to stderr and can't be redirected directly,
6182# and sets the high bit in the cache file unless we assign to the vars.
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006183(set) 2>&1 |
Guido van Rossume6c2cf11999-01-08 21:08:33 +00006184 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Guido van Rossumf78abae1997-01-21 22:02:36 +00006185 *ac_space=\ *)
6186 # `set' does not quote correctly, so add quotes (double-quote substitution
6187 # turns \\\\ into \\, and sed turns \\ into \).
6188 sed -n \
6189 -e "s/'/'\\\\''/g" \
6190 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6191 ;;
6192 *)
6193 # `set' quotes correctly as required by POSIX, so do not add quotes.
6194 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6195 ;;
6196 esac >> confcache
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00006197if cmp -s $cache_file confcache; then
6198 :
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006199else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00006200 if test -w $cache_file; then
6201 echo "updating cache $cache_file"
6202 cat confcache > $cache_file
6203 else
6204 echo "not updating unwritable cache $cache_file"
6205 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006206fi
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00006207rm -f confcache
Guido van Rossum0a516c91994-09-12 10:58:40 +00006208
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00006209trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006210
6211test "x$prefix" = xNONE && prefix=$ac_default_prefix
6212# Let make expand exec_prefix.
6213test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
Guido van Rossum0a516c91994-09-12 10:58:40 +00006214
Guido van Rossum7f43da71994-08-01 12:15:30 +00006215# Any assignment to VPATH causes Sun make to only execute
6216# the first set of double-colon rules, so remove it if not needed.
6217# If there is a colon in the path, we need to keep it.
6218if test "x$srcdir" = x.; then
6219 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6220fi
6221
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006222trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
Guido van Rossum627b2d71993-12-24 10:39:16 +00006223
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006224DEFS=-DHAVE_CONFIG_H
6225
6226# Without the "./", some shells look in PATH for config.status.
6227: ${CONFIG_STATUS=./config.status}
6228
6229echo creating $CONFIG_STATUS
6230rm -f $CONFIG_STATUS
6231cat > $CONFIG_STATUS <<EOF
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00006232#! /bin/sh
Guido van Rossum627b2d71993-12-24 10:39:16 +00006233# Generated automatically by configure.
6234# Run this file to recreate the current configuration.
6235# This directory was configured as follows,
6236# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6237#
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006238# $0 $ac_configure_args
6239#
6240# Compiler output produced by configure, useful for debugging
6241# configure, is in ./config.log if it exists.
Guido van Rossum627b2d71993-12-24 10:39:16 +00006242
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006243ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
Guido van Rossum7f43da71994-08-01 12:15:30 +00006244for ac_option
Guido van Rossum627b2d71993-12-24 10:39:16 +00006245do
Guido van Rossum7f43da71994-08-01 12:15:30 +00006246 case "\$ac_option" in
6247 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006248 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6249 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00006250 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00006251 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Guido van Rossum7f43da71994-08-01 12:15:30 +00006252 exit 0 ;;
6253 -help | --help | --hel | --he | --h)
6254 echo "\$ac_cs_usage"; exit 0 ;;
6255 *) echo "\$ac_cs_usage"; exit 1 ;;
Guido van Rossum627b2d71993-12-24 10:39:16 +00006256 esac
6257done
6258
Guido van Rossum7f43da71994-08-01 12:15:30 +00006259ac_given_srcdir=$srcdir
Neil Schemenauerd32c2492001-01-24 17:25:28 +00006260ac_given_INSTALL="$INSTALL"
Guido van Rossum627b2d71993-12-24 10:39:16 +00006261
Andrew M. Kuchling8abedde2001-01-26 22:55:24 +00006262trap 'rm -fr `echo "Makefile.pre Modules/Setup.config config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00006263EOF
6264cat >> $CONFIG_STATUS <<EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00006265
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00006266# Protect against being on the right side of a sed subst in config.status.
6267sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6268 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00006269$ac_vpsub
Guido van Rossum627b2d71993-12-24 10:39:16 +00006270$extrasub
Guido van Rossume6c2cf11999-01-08 21:08:33 +00006271s%@SHELL@%$SHELL%g
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006272s%@CFLAGS@%$CFLAGS%g
6273s%@CPPFLAGS@%$CPPFLAGS%g
6274s%@CXXFLAGS@%$CXXFLAGS%g
Guido van Rossume6c2cf11999-01-08 21:08:33 +00006275s%@FFLAGS@%$FFLAGS%g
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006276s%@DEFS@%$DEFS%g
6277s%@LDFLAGS@%$LDFLAGS%g
6278s%@LIBS@%$LIBS%g
6279s%@exec_prefix@%$exec_prefix%g
6280s%@prefix@%$prefix%g
6281s%@program_transform_name@%$program_transform_name%g
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00006282s%@bindir@%$bindir%g
6283s%@sbindir@%$sbindir%g
6284s%@libexecdir@%$libexecdir%g
6285s%@datadir@%$datadir%g
6286s%@sysconfdir@%$sysconfdir%g
6287s%@sharedstatedir@%$sharedstatedir%g
6288s%@localstatedir@%$localstatedir%g
6289s%@libdir@%$libdir%g
6290s%@includedir@%$includedir%g
6291s%@oldincludedir@%$oldincludedir%g
6292s%@infodir@%$infodir%g
6293s%@mandir@%$mandir%g
Guido van Rossum1fd74a71997-07-19 19:36:02 +00006294s%@VERSION@%$VERSION%g
Guido van Rossum7b3853f1996-07-30 18:09:35 +00006295s%@MACHDEP@%$MACHDEP%g
Guido van Rossum91922671997-10-09 20:24:13 +00006296s%@SGI_ABI@%$SGI_ABI%g
Martin v. Löwis22352952000-12-13 17:37:02 +00006297s%@CXX@%$CXX%g
Guido van Rossumca563f22001-01-23 01:52:44 +00006298s%@MAINOBJ@%$MAINOBJ%g
Guido van Rossum627b2d71993-12-24 10:39:16 +00006299s%@CC@%$CC%g
Neil Schemenauerd32c2492001-01-24 17:25:28 +00006300s%@EXEEXT@%$EXEEXT%g
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00006301s%@LIBRARY@%$LIBRARY%g
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00006302s%@LDLIBRARY@%$LDLIBRARY%g
Guido van Rossumca563f22001-01-23 01:52:44 +00006303s%@DLLLIBRARY@%$DLLLIBRARY%g
Guido van Rossum76c5fe21997-08-14 19:45:07 +00006304s%@LINKCC@%$LINKCC%g
Guido van Rossum627b2d71993-12-24 10:39:16 +00006305s%@RANLIB@%$RANLIB%g
Guido van Rossum7f43da71994-08-01 12:15:30 +00006306s%@AR@%$AR%g
Guido van Rossumda88dad1995-01-26 00:46:29 +00006307s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
Neil Schemenauerd32c2492001-01-24 17:25:28 +00006308s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
Guido van Rossumda88dad1995-01-26 00:46:29 +00006309s%@INSTALL_DATA@%$INSTALL_DATA%g
Guido van Rossumec95c7b1998-08-04 17:59:56 +00006310s%@LN@%$LN%g
Guido van Rossumb1ba03f1994-08-19 15:34:50 +00006311s%@OPT@%$OPT%g
Guido van Rossum627b2d71993-12-24 10:39:16 +00006312s%@CPP@%$CPP%g
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00006313s%@LIBTOOL_CRUFT@%$LIBTOOL_CRUFT%g
Guido van Rossum0a516c91994-09-12 10:58:40 +00006314s%@SO@%$SO%g
6315s%@LDSHARED@%$LDSHARED%g
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +00006316s%@BLDSHARED@%$BLDSHARED%g
Guido van Rossum0a516c91994-09-12 10:58:40 +00006317s%@CCSHARED@%$CCSHARED%g
6318s%@LINKFORSHARED@%$LINKFORSHARED%g
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00006319s%@CFLAGSFORSHARED@%$CFLAGSFORSHARED%g
Neil Schemenauerd32c2492001-01-24 17:25:28 +00006320s%@USE_SIGNAL_MODULE@%$USE_SIGNAL_MODULE%g
6321s%@SIGNAL_OBJS@%$SIGNAL_OBJS%g
Guido van Rossum009f7871997-12-04 00:51:42 +00006322s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g
Guido van Rossumec2f0731997-01-22 20:54:01 +00006323s%@LDLAST@%$LDLAST%g
Barry Warsawef82cd72000-06-30 16:21:01 +00006324s%@USE_GC_MODULE@%$USE_GC_MODULE%g
Guido van Rossum7f43da71994-08-01 12:15:30 +00006325s%@DLINCLDIR@%$DLINCLDIR%g
Guido van Rossume97ee181999-12-20 21:27:22 +00006326s%@DYNLOADFILE@%$DYNLOADFILE%g
Guido van Rossum627b2d71993-12-24 10:39:16 +00006327s%@LIBOBJS@%$LIBOBJS%g
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00006328s%@HAVE_GETHOSTBYNAME_R_6_ARG@%$HAVE_GETHOSTBYNAME_R_6_ARG%g
6329s%@HAVE_GETHOSTBYNAME_R_5_ARG@%$HAVE_GETHOSTBYNAME_R_5_ARG%g
6330s%@HAVE_GETHOSTBYNAME_R_3_ARG@%$HAVE_GETHOSTBYNAME_R_3_ARG%g
Guido van Rossum8db7d8b1999-03-23 16:40:33 +00006331s%@HAVE_GETHOSTBYNAME_R@%$HAVE_GETHOSTBYNAME_R%g
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00006332s%@HAVE_GETHOSTBYNAME@%$HAVE_GETHOSTBYNAME%g
Guido van Rossum7f43da71994-08-01 12:15:30 +00006333s%@LIBM@%$LIBM%g
6334s%@LIBC@%$LIBC%g
Neil Schemenauerd32c2492001-01-24 17:25:28 +00006335s%@SRCDIRS@%$SRCDIRS%g
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006336
6337CEOF
6338EOF
Guido van Rossumf78abae1997-01-21 22:02:36 +00006339
6340cat >> $CONFIG_STATUS <<\EOF
6341
6342# Split the substitutions into bite-sized pieces for seds with
6343# small command number limits, like on Digital OSF/1 and HP-UX.
6344ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6345ac_file=1 # Number of current file.
6346ac_beg=1 # First line for current file.
6347ac_end=$ac_max_sed_cmds # Line after last line for current file.
6348ac_more_lines=:
6349ac_sed_cmds=""
6350while $ac_more_lines; do
6351 if test $ac_beg -gt 1; then
6352 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6353 else
6354 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6355 fi
6356 if test ! -s conftest.s$ac_file; then
6357 ac_more_lines=false
6358 rm -f conftest.s$ac_file
6359 else
6360 if test -z "$ac_sed_cmds"; then
6361 ac_sed_cmds="sed -f conftest.s$ac_file"
6362 else
6363 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6364 fi
6365 ac_file=`expr $ac_file + 1`
6366 ac_beg=$ac_end
6367 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6368 fi
6369done
6370if test -z "$ac_sed_cmds"; then
6371 ac_sed_cmds=cat
6372fi
6373EOF
6374
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006375cat >> $CONFIG_STATUS <<EOF
6376
Andrew M. Kuchling8abedde2001-01-26 22:55:24 +00006377CONFIG_FILES=\${CONFIG_FILES-"Makefile.pre Modules/Setup.config"}
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006378EOF
6379cat >> $CONFIG_STATUS <<\EOF
6380for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Guido van Rossumf78abae1997-01-21 22:02:36 +00006381 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006382 case "$ac_file" in
Guido van Rossumf78abae1997-01-21 22:02:36 +00006383 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006384 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6385 *) ac_file_in="${ac_file}.in" ;;
6386 esac
6387
Guido van Rossumf78abae1997-01-21 22:02:36 +00006388 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006389
6390 # Remove last slash and all that follows it. Not all systems have dirname.
6391 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6392 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6393 # The file is in a subdirectory.
6394 test ! -d "$ac_dir" && mkdir "$ac_dir"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00006395 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006396 # A "../" for each directory in $ac_dir_suffix.
6397 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6398 else
6399 ac_dir_suffix= ac_dots=
6400 fi
6401
6402 case "$ac_given_srcdir" in
6403 .) srcdir=.
6404 if test -z "$ac_dots"; then top_srcdir=.
6405 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6406 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6407 *) # Relative path.
6408 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6409 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6410 esac
6411
Neil Schemenauerd32c2492001-01-24 17:25:28 +00006412 case "$ac_given_INSTALL" in
6413 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6414 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6415 esac
Guido van Rossumf78abae1997-01-21 22:02:36 +00006416
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006417 echo creating "$ac_file"
6418 rm -f "$ac_file"
6419 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6420 case "$ac_file" in
6421 *Makefile*) ac_comsub="1i\\
6422# $configure_input" ;;
6423 *) ac_comsub= ;;
6424 esac
Guido van Rossumf78abae1997-01-21 22:02:36 +00006425
6426 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006427 sed -e "$ac_comsub
6428s%@configure_input@%$configure_input%g
Guido van Rossum627b2d71993-12-24 10:39:16 +00006429s%@srcdir@%$srcdir%g
Guido van Rossum7f43da71994-08-01 12:15:30 +00006430s%@top_srcdir@%$top_srcdir%g
Neil Schemenauerd32c2492001-01-24 17:25:28 +00006431s%@INSTALL@%$INSTALL%g
Guido van Rossumf78abae1997-01-21 22:02:36 +00006432" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Guido van Rossum627b2d71993-12-24 10:39:16 +00006433fi; done
Guido van Rossumf78abae1997-01-21 22:02:36 +00006434rm -f conftest.s*
Guido van Rossum627b2d71993-12-24 10:39:16 +00006435
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006436# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6437# NAME is the cpp macro being defined and VALUE is the value it is being given.
Guido van Rossum7f43da71994-08-01 12:15:30 +00006438#
6439# ac_d sets the value in "#define NAME VALUE" lines.
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006440ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6441ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
Guido van Rossum7f43da71994-08-01 12:15:30 +00006442ac_dC='\3'
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006443ac_dD='%g'
Guido van Rossum7f43da71994-08-01 12:15:30 +00006444# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006445ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6446ac_uB='\([ ]\)%\1#\2define\3'
Guido van Rossum7f43da71994-08-01 12:15:30 +00006447ac_uC=' '
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006448ac_uD='\4%g'
Guido van Rossum7f43da71994-08-01 12:15:30 +00006449# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006450ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6451ac_eB='$%\1#\2define\3'
Guido van Rossum7f43da71994-08-01 12:15:30 +00006452ac_eC=' '
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006453ac_eD='%g'
Guido van Rossum7f43da71994-08-01 12:15:30 +00006454
Guido van Rossumf78abae1997-01-21 22:02:36 +00006455if test "${CONFIG_HEADERS+set}" != set; then
6456EOF
6457cat >> $CONFIG_STATUS <<EOF
6458 CONFIG_HEADERS="config.h"
6459EOF
6460cat >> $CONFIG_STATUS <<\EOF
6461fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006462for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
Guido van Rossumf78abae1997-01-21 22:02:36 +00006463 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006464 case "$ac_file" in
Guido van Rossumf78abae1997-01-21 22:02:36 +00006465 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006466 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6467 *) ac_file_in="${ac_file}.in" ;;
6468 esac
6469
Guido van Rossum7f43da71994-08-01 12:15:30 +00006470 echo creating $ac_file
6471
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006472 rm -f conftest.frag conftest.in conftest.out
Guido van Rossumf78abae1997-01-21 22:02:36 +00006473 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6474 cat $ac_file_inputs > conftest.in
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006475
6476EOF
6477
6478# Transform confdefs.h into a sed script conftest.vals that substitutes
6479# the proper values into config.h.in to produce config.h. And first:
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00006480# Protect against being on the right side of a sed subst in config.status.
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006481# Protect against being in an unquoted here document in config.status.
6482rm -f conftest.vals
6483cat > conftest.hdr <<\EOF
6484s/[\\&%]/\\&/g
6485s%[\\$`]%\\&%g
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00006486s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006487s%ac_d%ac_u%gp
6488s%ac_u%ac_e%gp
6489EOF
6490sed -n -f conftest.hdr confdefs.h > conftest.vals
6491rm -f conftest.hdr
6492
6493# This sed command replaces #undef with comments. This is necessary, for
6494# example, in the case of _POSIX_SOURCE, which is predefined and required
6495# on some systems where configure will not decide to define it.
6496cat >> conftest.vals <<\EOF
6497s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6498EOF
6499
6500# Break up conftest.vals because some shells have a limit on
6501# the size of here documents, and old seds have small limits too.
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006502
6503rm -f conftest.tail
6504while :
6505do
6506 ac_lines=`grep -c . conftest.vals`
6507 # grep -c gives empty output for an empty file on some AIX systems.
6508 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6509 # Write a limited-size here document to conftest.frag.
6510 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6511 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6512 echo 'CEOF
6513 sed -f conftest.frag conftest.in > conftest.out
6514 rm -f conftest.in
6515 mv conftest.out conftest.in
6516' >> $CONFIG_STATUS
6517 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6518 rm -f conftest.vals
6519 mv conftest.tail conftest.vals
6520done
6521rm -f conftest.vals
6522
6523cat >> $CONFIG_STATUS <<\EOF
6524 rm -f conftest.frag conftest.h
Guido van Rossum7f43da71994-08-01 12:15:30 +00006525 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006526 cat conftest.in >> conftest.h
6527 rm -f conftest.in
Guido van Rossum7f43da71994-08-01 12:15:30 +00006528 if cmp -s $ac_file conftest.h 2>/dev/null; then
Guido van Rossum7f43da71994-08-01 12:15:30 +00006529 echo "$ac_file is unchanged"
6530 rm -f conftest.h
6531 else
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00006532 # Remove last slash and all that follows it. Not all systems have dirname.
6533 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6534 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6535 # The file is in a subdirectory.
6536 test ! -d "$ac_dir" && mkdir "$ac_dir"
6537 fi
Guido van Rossum7f43da71994-08-01 12:15:30 +00006538 rm -f $ac_file
6539 mv conftest.h $ac_file
6540 fi
6541fi; done
6542
Guido van Rossumf78abae1997-01-21 22:02:36 +00006543EOF
6544cat >> $CONFIG_STATUS <<EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00006545
Guido van Rossumf78abae1997-01-21 22:02:36 +00006546EOF
6547cat >> $CONFIG_STATUS <<\EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00006548
6549exit 0
6550EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006551chmod +x $CONFIG_STATUS
6552rm -fr confdefs* $ac_clean_files
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00006553test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
Guido van Rossum627b2d71993-12-24 10:39:16 +00006554
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00006555
6556echo "creating Setup"
6557if test ! -f Modules/Setup
6558then
6559 cp $srcdir/Modules/Setup.dist Modules/Setup
6560fi
6561
6562echo "creating Setup.local"
6563if test ! -f Modules/Setup.local
6564then
6565 echo "# Edit this file for local setup changes" >Modules/Setup.local
6566fi
6567
6568echo "creating Makefile"
6569$SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
6570 -s Modules Modules/Setup.config \
6571 Modules/Setup Modules/Setup.local
Neil Schemenauerc761fc82001-02-19 04:50:49 +00006572mv config.c Modules