blob: 9033eb450ddb08af65b673d2263de9df595997d3 [file] [log] [blame]
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001#! /bin/sh
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002
Guido van Rossum6db412b2001-04-18 04:37:57 +00003# From configure.in Revision: 1.216
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 Warsawc0d24d8b2000-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 Warsawc0d24d8b2000-06-29 16:12:00 +000023 --without-gcc never use gcc"
Guido van Rossum76be6ed1995-01-02 18:33:54 +000024ac_help="$ac_help
Barry Warsawc0d24d8b2000-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 Warsawc0d24d8b2000-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 Warsawc0d24d8b2000-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 Warsawc0d24d8b2000-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
Neil Schemenauera35c6882001-02-27 04:45:05 +000045 --with(out)-pymalloc disable/enable specialized mallocs"
46ac_help="$ac_help
Barry Warsawef82cd72000-06-30 16:21:01 +000047 --with-wctype-functions use wctype.h functions"
48ac_help="$ac_help
Barry Warsawc0d24d8b2000-06-29 16:12:00 +000049 --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking"
Guido van Rossum76be6ed1995-01-02 18:33:54 +000050ac_help="$ac_help
Barry Warsawc0d24d8b2000-06-29 16:12:00 +000051 --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking"
Guido van Rossum76be6ed1995-01-02 18:33:54 +000052ac_help="$ac_help
Barry Warsawc0d24d8b2000-06-29 16:12:00 +000053 --with-fpectl enable SIGFPE catching"
Guido van Rossum7f253911997-05-09 02:42:48 +000054ac_help="$ac_help
Barry Warsawc0d24d8b2000-06-29 16:12:00 +000055 --with-libm=STRING math library"
Guido van Rossum76be6ed1995-01-02 18:33:54 +000056ac_help="$ac_help
Barry Warsawc0d24d8b2000-06-29 16:12:00 +000057 --with-libc=STRING C library"
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
Guido van Rossum6db412b2001-04-18 04:37:57 +0000572VERSION=2.2
Guido van Rossum1fd74a71997-07-19 19:36:02 +0000573
Neil Schemenauer4edbc2a2001-03-22 00:34:03 +0000574# Arguments passed to configure.
575
576CONFIG_ARGS="$ac_configure_args"
577
Guido van Rossum3dc0a512000-10-05 18:00:06 +0000578# NEXTSTEP|MacOSX|Darwin stuff
Guido van Rossum54ecc3d1999-01-27 17:53:11 +0000579if test -f /usr/lib/NextStep/software_version -o -f /System/Library/CoreServices/software_version ; then
Guido van Rossum563e7081996-09-10 18:20:48 +0000580
581 echo $ac_n "checking for --with-next-archs""... $ac_c" 1>&6
Neil Schemenauer4edbc2a2001-03-22 00:34:03 +0000582echo "configure:583: checking for --with-next-archs" >&5
Guido van Rossum563e7081996-09-10 18:20:48 +0000583 # Check whether --with-next-archs or --without-next-archs was given.
Guido van Rossum7b3853f1996-07-30 18:09:35 +0000584if test "${with_next_archs+set}" = set; then
585 withval="$with_next_archs"
586
Guido van Rossum563e7081996-09-10 18:20:48 +0000587 if test -n "$withval"; then
588 ac_arch_flags=`/usr/lib/arch_tool -archify_list $withval`
589 # GCC does not currently support multi archs on the NeXT
590 with_gcc=no
591 fi
592 echo "$ac_t""$with_next_archs" 1>&6
593
594else
595 echo "$ac_t""none: using `arch`" 1>&6
Guido van Rossum7b3853f1996-07-30 18:09:35 +0000596fi
597
Guido van Rossum563e7081996-09-10 18:20:48 +0000598
599 if test -z "$MACHDEP"
600 then
Guido van Rossum3dc0a512000-10-05 18:00:06 +0000601 ac_sys_system=`uname -s`
602 if test "$ac_sys_system" = "Darwin" ; then
603 ac_sys_release=`uname -r`
604 else
Guido van Rossum54ecc3d1999-01-27 17:53:11 +0000605 set X `hostinfo | egrep '(NeXT Mach|Kernel Release).*:' | \
Guido van Rossum3dc0a512000-10-05 18:00:06 +0000606 sed -e 's/://' -e 's/\./_/'` && \
607 ac_sys_system=next && ac_sys_release=$4
608 fi
Guido van Rossum563e7081996-09-10 18:20:48 +0000609
Guido van Rossum3dc0a512000-10-05 18:00:06 +0000610 MACHDEP="$ac_sys_system$ac_sys_release"
Guido van Rossum563e7081996-09-10 18:20:48 +0000611 fi
612fi
Guido van Rossum7b3853f1996-07-30 18:09:35 +0000613
Guido van Rossum54ecc3d1999-01-27 17:53:11 +0000614# Check whether --with-next-framework or --without-next-framework was given.
615if test "${with_next_framework+set}" = set; then
616 withval="$with_next_framework"
617 :
618fi
619
620# Check whether --with-dyld or --without-dyld was given.
621if test "${with_dyld+set}" = set; then
622 withval="$with_dyld"
623 :
624fi
625
Guido van Rossum91922671997-10-09 20:24:13 +0000626
Guido van Rossum7b3853f1996-07-30 18:09:35 +0000627# Set name for machine-dependent library files
628
629echo $ac_n "checking MACHDEP""... $ac_c" 1>&6
Neil Schemenauer4edbc2a2001-03-22 00:34:03 +0000630echo "configure:631: checking MACHDEP" >&5
Guido van Rossum7b3853f1996-07-30 18:09:35 +0000631if test -z "$MACHDEP"
632then
Guido van Rossum563e7081996-09-10 18:20:48 +0000633 ac_sys_system=`uname -s`
Guido van Rossum2242f2f2001-04-11 20:58:20 +0000634 if test "$ac_sys_system" = "AIX" -o \
635 "$ac_sys_system" = "Monterey64" -o \
636 "$ac_sys_system" = "UnixWare"; then
Guido van Rossum563e7081996-09-10 18:20:48 +0000637 ac_sys_release=`uname -v`
Guido van Rossum7b3853f1996-07-30 18:09:35 +0000638 else
Guido van Rossum563e7081996-09-10 18:20:48 +0000639 ac_sys_release=`uname -r`
Guido van Rossum7b3853f1996-07-30 18:09:35 +0000640 fi
Guido van Rossum563e7081996-09-10 18:20:48 +0000641 ac_md_system=`echo $ac_sys_system |
642 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
643 ac_md_release=`echo $ac_sys_release |
644 tr -d '/ ' | sed 's/\..*//'`
Guido van Rossumb97ef171997-09-28 05:44:03 +0000645 MACHDEP="$ac_md_system$ac_md_release"
Guido van Rossum563e7081996-09-10 18:20:48 +0000646
Guido van Rossum07397971997-04-29 21:49:50 +0000647 case $MACHDEP in
Guido van Rossumb97ef171997-09-28 05:44:03 +0000648 '') MACHDEP="unknown";;
Guido van Rossum7b3853f1996-07-30 18:09:35 +0000649 esac
650fi
Guido van Rossum91922671997-10-09 20:24:13 +0000651
652#
653# SGI compilers allow the specification of the both the ABI and the
654# ISA on the command line. Depending on the values of these switches,
655# different and often incompatable code will be generated.
656#
657# The SGI_ABI variable can be used to modify the CC and LDFLAGS and
658# thus supply support for various ABI/ISA combinations. The MACHDEP
659# variable is also adjusted.
660#
661
662if test ! -z "$SGI_ABI"
663then
664 CC="cc $SGI_ABI"
665 LDFLAGS="$SGI_ABI $LDFLAGS"
666 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
667fi
Guido van Rossum7b3853f1996-07-30 18:09:35 +0000668echo "$ac_t""$MACHDEP" 1>&6
669
Guido van Rossum627b2d71993-12-24 10:39:16 +0000670# checks for alternative programs
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +0000671echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +0000672echo "configure:673: checking for --without-gcc" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000673# Check whether --with-gcc or --without-gcc was given.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000674if test "${with_gcc+set}" = set; then
675 withval="$with_gcc"
Guido van Rossum7f43da71994-08-01 12:15:30 +0000676
677 case $withval in
Guido van Rossumda88dad1995-01-26 00:46:29 +0000678 no) CC=cc
679 without_gcc=yes;;
680 yes) CC=gcc
681 without_gcc=no;;
682 *) CC=$withval
683 without_gcc=$withval;;
Guido van Rossum7f43da71994-08-01 12:15:30 +0000684 esac
Guido van Rossumda88dad1995-01-26 00:46:29 +0000685else
Guido van Rossume77438c1995-09-13 18:59:59 +0000686
Guido van Rossum7b3853f1996-07-30 18:09:35 +0000687 case $ac_sys_system in
Guido van Rossume77438c1995-09-13 18:59:59 +0000688 OSF1) CC=cc
689 without_gcc=;;
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +0000690 AIX*) CC=cc_r
691 without_gcc=;;
Guido van Rossum7a5f4201999-01-12 20:30:23 +0000692 BeOS*)
Guido van Rossum7a5f4201999-01-12 20:30:23 +0000693 case $BE_HOST_CPU in
694 ppc)
Fred Drake5790be12000-10-09 17:06:13 +0000695 CC=mwcc
Guido van Rossum7a5f4201999-01-12 20:30:23 +0000696 without_gcc=yes
Fred Drake5790be12000-10-09 17:06:13 +0000697 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 +0000698 CCSHARED="-UDL_IMPORT -D'DL_IMPORT(RTYPE)=__declspec(dllimport) RTYPE'"
Guido van Rossum7a5f4201999-01-12 20:30:23 +0000699 LDFLAGS="$LDFLAGS -nodup"
Guido van Rossum7a5f4201999-01-12 20:30:23 +0000700 ;;
701 x86)
Fred Drake5790be12000-10-09 17:06:13 +0000702 CC=gcc
Guido van Rossum7a5f4201999-01-12 20:30:23 +0000703 without_gcc=no
Fred Drake5790be12000-10-09 17:06:13 +0000704 OPT=-O
Guido van Rossum7a5f4201999-01-12 20:30:23 +0000705 ;;
706 *)
Fred Drake5790be12000-10-09 17:06:13 +0000707 { echo "configure: error: Unknown BeOS platform \"$BE_HOST_CPU\"" 1>&2; exit 1; }
Guido van Rossum7a5f4201999-01-12 20:30:23 +0000708 ;;
709 esac
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +0000710 AR="\$(srcdir)/Modules/ar_beos"
711 RANLIB=:
Guido van Rossum7a5f4201999-01-12 20:30:23 +0000712 ;;
Trent Mick635f6fb2000-08-23 21:33:05 +0000713 Monterey*)
714 RANLIB=:
Guido van Rossum2242f2f2001-04-11 20:58:20 +0000715 without_gcc=
716 ;;
717 UnixWare*)
718 RANLIB=:
719 without_gcc=
720 ;;
721 *)
722 without_gcc=no
723 ;;
Guido van Rossume77438c1995-09-13 18:59:59 +0000724 esac
Guido van Rossum7f43da71994-08-01 12:15:30 +0000725fi
726
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +0000727echo "$ac_t""$without_gcc" 1>&6
Guido van Rossumda88dad1995-01-26 00:46:29 +0000728
Guido van Rossum95012191999-12-16 17:50:52 +0000729
730
Fred Drakea1a84e72001-03-06 05:52:16 +0000731MAINOBJ=python.o
Guido van Rossum95012191999-12-16 17:50:52 +0000732echo $ac_n "checking for --with-cxx=<compiler>""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +0000733echo "configure:734: checking for --with-cxx=<compiler>" >&5
Guido van Rossum95012191999-12-16 17:50:52 +0000734# Check whether --with-cxx or --without-cxx was given.
735if test "${with_cxx+set}" = set; then
736 withval="$with_cxx"
737
Martin v. Löwis22352952000-12-13 17:37:02 +0000738 check_cxx=no
Guido van Rossum95012191999-12-16 17:50:52 +0000739 case $withval in
740 no) CXX=
741 with_cxx=no;;
742 *) CXX=$withval
Fred Drakea1a84e72001-03-06 05:52:16 +0000743 MAINOBJ=ccpython.o
Guido van Rossum95012191999-12-16 17:50:52 +0000744 with_cxx=$withval;;
745 esac
746else
747
748 with_cxx=no
Martin v. Löwis22352952000-12-13 17:37:02 +0000749 check_cxx=yes
Guido van Rossum95012191999-12-16 17:50:52 +0000750
751fi
752
753echo "$ac_t""$with_cxx" 1>&6
Martin v. Löwis22352952000-12-13 17:37:02 +0000754
755
756if test "$check_cxx" = "yes"
757then
758 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
759do
760# Extract the first word of "$ac_prog", so it can be a program name with args.
761set dummy $ac_prog; ac_word=$2
762echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +0000763echo "configure:764: checking for $ac_word" >&5
Martin v. Löwis22352952000-12-13 17:37:02 +0000764if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
765 echo $ac_n "(cached) $ac_c" 1>&6
766else
767 if test -n "$CXX"; then
768 ac_cv_prog_CXX="$CXX" # Let the user override the test.
769else
770 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
771 ac_dummy="$PATH"
772 for ac_dir in $ac_dummy; do
773 test -z "$ac_dir" && ac_dir=.
774 if test -f $ac_dir/$ac_word; then
775 ac_cv_prog_CXX="$ac_prog"
776 break
777 fi
778 done
779 IFS="$ac_save_ifs"
780fi
781fi
782CXX="$ac_cv_prog_CXX"
783if test -n "$CXX"; then
784 echo "$ac_t""$CXX" 1>&6
785else
786 echo "$ac_t""no" 1>&6
787fi
788
789test -n "$CXX" && break
790done
791test -n "$CXX" || CXX="notfound"
792
793 if test "$CXX" = "notfound"
794 then
795 CXX=
796 else
797 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +0000798echo "configure:799: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
Martin v. Löwis22352952000-12-13 17:37:02 +0000799
800ac_ext=C
801# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
802ac_cpp='$CXXCPP $CPPFLAGS'
803ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
804ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
805cross_compiling=$ac_cv_prog_cxx_cross
806
807cat > conftest.$ac_ext << EOF
808
Guido van Rossum2242f2f2001-04-11 20:58:20 +0000809#line 810 "configure"
Martin v. Löwis22352952000-12-13 17:37:02 +0000810#include "confdefs.h"
811
812int main(){return(0);}
813EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +0000814if { (eval echo configure:815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Martin v. Löwis22352952000-12-13 17:37:02 +0000815 ac_cv_prog_cxx_works=yes
816 # If we can't run a trivial program, we are probably using a cross compiler.
817 if (./conftest; exit) 2>/dev/null; then
818 ac_cv_prog_cxx_cross=no
819 else
820 ac_cv_prog_cxx_cross=yes
821 fi
822else
823 echo "configure: failed program was:" >&5
824 cat conftest.$ac_ext >&5
825 ac_cv_prog_cxx_works=no
826fi
827rm -fr conftest*
828ac_ext=c
829# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
830ac_cpp='$CPP $CPPFLAGS'
831ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
832ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
833cross_compiling=$ac_cv_prog_cc_cross
834
835echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
836if test $ac_cv_prog_cxx_works = no; then
837 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
838fi
839echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +0000840echo "configure:841: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
Martin v. Löwis22352952000-12-13 17:37:02 +0000841echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
842cross_compiling=$ac_cv_prog_cxx_cross
843
844 fi
845fi
846
Guido van Rossum8b131c51995-03-09 14:10:13 +0000847# If the user switches compilers, we can't believe the cache
848if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
849then
850 { echo "configure: error: cached CC is different -- throw away $cache_file
851(it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; }
852fi
853
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000854# Extract the first word of "gcc", so it can be a program name with args.
855set dummy gcc; ac_word=$2
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +0000856echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +0000857echo "configure:858: checking for $ac_word" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +0000858if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +0000859 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000860else
861 if test -n "$CC"; then
862 ac_cv_prog_CC="$CC" # Let the user override the test.
863else
Guido van Rossume6c2cf11999-01-08 21:08:33 +0000864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
865 ac_dummy="$PATH"
866 for ac_dir in $ac_dummy; do
Guido van Rossum7f43da71994-08-01 12:15:30 +0000867 test -z "$ac_dir" && ac_dir=.
868 if test -f $ac_dir/$ac_word; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000869 ac_cv_prog_CC="gcc"
Guido van Rossum627b2d71993-12-24 10:39:16 +0000870 break
871 fi
872 done
Guido van Rossum7f43da71994-08-01 12:15:30 +0000873 IFS="$ac_save_ifs"
Guido van Rossum627b2d71993-12-24 10:39:16 +0000874fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000875fi
876CC="$ac_cv_prog_CC"
877if test -n "$CC"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +0000878 echo "$ac_t""$CC" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000879else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +0000880 echo "$ac_t""no" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000881fi
Guido van Rossum627b2d71993-12-24 10:39:16 +0000882
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000883if test -z "$CC"; then
884 # Extract the first word of "cc", so it can be a program name with args.
885set dummy cc; ac_word=$2
886echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +0000887echo "configure:888: checking for $ac_word" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +0000888if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000889 echo $ac_n "(cached) $ac_c" 1>&6
890else
891 if test -n "$CC"; then
892 ac_cv_prog_CC="$CC" # Let the user override the test.
893else
Guido van Rossume6c2cf11999-01-08 21:08:33 +0000894 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000895 ac_prog_rejected=no
Guido van Rossume6c2cf11999-01-08 21:08:33 +0000896 ac_dummy="$PATH"
897 for ac_dir in $ac_dummy; do
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000898 test -z "$ac_dir" && ac_dir=.
899 if test -f $ac_dir/$ac_word; then
900 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
901 ac_prog_rejected=yes
902 continue
903 fi
904 ac_cv_prog_CC="cc"
905 break
906 fi
907 done
908 IFS="$ac_save_ifs"
909if test $ac_prog_rejected = yes; then
910 # We found a bogon in the path, so make sure we never use it.
911 set dummy $ac_cv_prog_CC
912 shift
913 if test $# -gt 0; then
914 # We chose a different compiler from the bogus one.
915 # However, it has the same basename, so the bogon will be chosen
916 # first if we set CC to just the basename; use the full file name.
917 shift
918 set dummy "$ac_dir/$ac_word" "$@"
919 shift
920 ac_cv_prog_CC="$@"
921 fi
922fi
923fi
924fi
925CC="$ac_cv_prog_CC"
926if test -n "$CC"; then
927 echo "$ac_t""$CC" 1>&6
928else
929 echo "$ac_t""no" 1>&6
930fi
931
Guido van Rossume6c2cf11999-01-08 21:08:33 +0000932 if test -z "$CC"; then
933 case "`uname -s`" in
Guido van Rossum8d6e8af2000-10-30 17:45:07 +0000934 *win32* | *WIN32*)
Guido van Rossume6c2cf11999-01-08 21:08:33 +0000935 # Extract the first word of "cl", so it can be a program name with args.
936set dummy cl; ac_word=$2
937echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +0000938echo "configure:939: checking for $ac_word" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +0000939if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
Guido van Rossume6c2cf11999-01-08 21:08:33 +0000940 echo $ac_n "(cached) $ac_c" 1>&6
941else
942 if test -n "$CC"; then
943 ac_cv_prog_CC="$CC" # Let the user override the test.
944else
945 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
946 ac_dummy="$PATH"
947 for ac_dir in $ac_dummy; do
948 test -z "$ac_dir" && ac_dir=.
949 if test -f $ac_dir/$ac_word; then
950 ac_cv_prog_CC="cl"
951 break
952 fi
953 done
954 IFS="$ac_save_ifs"
955fi
956fi
957CC="$ac_cv_prog_CC"
958if test -n "$CC"; then
959 echo "$ac_t""$CC" 1>&6
960else
961 echo "$ac_t""no" 1>&6
962fi
963 ;;
964 esac
965 fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +0000966 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
967fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +0000968
Guido van Rossum8d6e8af2000-10-30 17:45:07 +0000969echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +0000970echo "configure:971: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +0000971
972ac_ext=c
973# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
974ac_cpp='$CPP $CPPFLAGS'
975ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Guido van Rossume6c2cf11999-01-08 21:08:33 +0000976ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Guido van Rossumf78abae1997-01-21 22:02:36 +0000977cross_compiling=$ac_cv_prog_cc_cross
978
Guido van Rossume6c2cf11999-01-08 21:08:33 +0000979cat > conftest.$ac_ext << EOF
980
Guido van Rossum2242f2f2001-04-11 20:58:20 +0000981#line 982 "configure"
Guido van Rossumf78abae1997-01-21 22:02:36 +0000982#include "confdefs.h"
Guido van Rossume6c2cf11999-01-08 21:08:33 +0000983
Guido van Rossumf78abae1997-01-21 22:02:36 +0000984main(){return(0);}
985EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +0000986if { (eval echo configure:987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossumf78abae1997-01-21 22:02:36 +0000987 ac_cv_prog_cc_works=yes
988 # If we can't run a trivial program, we are probably using a cross compiler.
989 if (./conftest; exit) 2>/dev/null; then
990 ac_cv_prog_cc_cross=no
991 else
992 ac_cv_prog_cc_cross=yes
993 fi
994else
995 echo "configure: failed program was:" >&5
996 cat conftest.$ac_ext >&5
997 ac_cv_prog_cc_works=no
998fi
999rm -fr conftest*
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001000ac_ext=c
1001# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1002ac_cpp='$CPP $CPPFLAGS'
1003ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1004ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1005cross_compiling=$ac_cv_prog_cc_cross
Guido van Rossumf78abae1997-01-21 22:02:36 +00001006
1007echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1008if test $ac_cv_prog_cc_works = no; then
1009 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1010fi
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00001011echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001012echo "configure:1013: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00001013echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1014cross_compiling=$ac_cv_prog_cc_cross
1015
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001016echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001017echo "configure:1018: checking whether we are using GNU C" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00001018if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001019 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001020else
1021 cat > conftest.c <<EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00001022#ifdef __GNUC__
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001023 yes;
Guido van Rossum627b2d71993-12-24 10:39:16 +00001024#endif
1025EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001026if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001027 ac_cv_prog_gcc=yes
1028else
1029 ac_cv_prog_gcc=no
1030fi
1031fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001032
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001033echo "$ac_t""$ac_cv_prog_gcc" 1>&6
Guido van Rossumf78abae1997-01-21 22:02:36 +00001034
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001035if test $ac_cv_prog_gcc = yes; then
1036 GCC=yes
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001037else
1038 GCC=
1039fi
1040
1041ac_test_CFLAGS="${CFLAGS+set}"
1042ac_save_CFLAGS="$CFLAGS"
1043CFLAGS=
1044echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001045echo "configure:1046: checking whether ${CC-cc} accepts -g" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00001046if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001047 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001048else
1049 echo 'void f(){}' > conftest.c
1050if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
Guido van Rossumf78abae1997-01-21 22:02:36 +00001051 ac_cv_prog_cc_g=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001052else
Guido van Rossumf78abae1997-01-21 22:02:36 +00001053 ac_cv_prog_cc_g=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00001054fi
1055rm -f conftest*
1056
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001057fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001058
Guido van Rossumf78abae1997-01-21 22:02:36 +00001059echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001060if test "$ac_test_CFLAGS" = set; then
1061 CFLAGS="$ac_save_CFLAGS"
1062elif test $ac_cv_prog_cc_g = yes; then
1063 if test "$GCC" = yes; then
Guido van Rossumf78abae1997-01-21 22:02:36 +00001064 CFLAGS="-g -O2"
1065 else
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001066 CFLAGS="-g"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001067 fi
1068else
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001069 if test "$GCC" = yes; then
1070 CFLAGS="-O2"
1071 else
1072 CFLAGS=
1073 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001074fi
1075
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001076echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001077echo "configure:1078: checking for Cygwin environment" >&5
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001078if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1079 echo $ac_n "(cached) $ac_c" 1>&6
1080else
1081 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001082#line 1083 "configure"
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001083#include "confdefs.h"
Guido van Rossum76c5fe21997-08-14 19:45:07 +00001084
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001085int main() {
1086
1087#ifndef __CYGWIN__
1088#define __CYGWIN__ __CYGWIN32__
1089#endif
1090return __CYGWIN__;
1091; return 0; }
1092EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001093if { (eval echo configure:1094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001094 rm -rf conftest*
1095 ac_cv_cygwin=yes
1096else
1097 echo "configure: failed program was:" >&5
1098 cat conftest.$ac_ext >&5
1099 rm -rf conftest*
1100 ac_cv_cygwin=no
1101fi
1102rm -f conftest*
1103rm -f conftest*
Guido van Rossumff555e32000-09-22 15:38:21 +00001104fi
1105
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001106echo "$ac_t""$ac_cv_cygwin" 1>&6
1107CYGWIN=
1108test "$ac_cv_cygwin" = yes && CYGWIN=yes
1109echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001110echo "configure:1111: checking for mingw32 environment" >&5
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001111if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1112 echo $ac_n "(cached) $ac_c" 1>&6
1113else
1114 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001115#line 1116 "configure"
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001116#include "confdefs.h"
1117
1118int main() {
1119return __MINGW32__;
1120; return 0; }
1121EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001122if { (eval echo configure:1123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001123 rm -rf conftest*
1124 ac_cv_mingw32=yes
1125else
1126 echo "configure: failed program was:" >&5
1127 cat conftest.$ac_ext >&5
1128 rm -rf conftest*
1129 ac_cv_mingw32=no
1130fi
1131rm -f conftest*
1132rm -f conftest*
1133fi
1134
1135echo "$ac_t""$ac_cv_mingw32" 1>&6
1136MINGW32=
1137test "$ac_cv_mingw32" = yes && MINGW32=yes
1138
1139
1140echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001141echo "configure:1142: checking for executable suffix" >&5
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001142if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1143 echo $ac_n "(cached) $ac_c" 1>&6
1144else
1145 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1146 ac_cv_exeext=.exe
1147else
1148 rm -f conftest*
1149 echo 'int main () { return 0; }' > conftest.$ac_ext
1150 ac_cv_exeext=
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001151 if { (eval echo configure:1152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001152 for file in conftest.*; do
1153 case $file in
1154 *.c | *.o | *.obj) ;;
1155 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1156 esac
1157 done
1158 else
1159 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1160 fi
1161 rm -f conftest*
1162 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1163fi
1164fi
1165
1166EXEEXT=""
1167test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1168echo "$ac_t""${ac_cv_exeext}" 1>&6
1169ac_exeext=$EXEEXT
1170
Neil Schemenauerdfb38e42001-01-27 06:57:08 +00001171echo $ac_n "checking for --with-suffix""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001172echo "configure:1173: checking for --with-suffix" >&5
Neil Schemenauerdfb38e42001-01-27 06:57:08 +00001173# Check whether --with-suffix or --without-suffix was given.
1174if test "${with_suffix+set}" = set; then
1175 withval="$with_suffix"
1176
1177 case $withval in
1178 no) EXEEXT=;;
1179 yes) EXEEXT=.exe;;
1180 *) EXEEXT=$withval;;
1181 esac
1182fi
1183
1184echo "$ac_t""$EXEEXT" 1>&6
Guido van Rossumff555e32000-09-22 15:38:21 +00001185
Guido van Rossumdd997f71998-10-07 19:58:26 +00001186case $MACHDEP in
1187bsdos*)
1188 case $CC in
1189 gcc) CC="$CC -D_HAVE_BSDI";;
1190 esac;;
1191esac
1192
Guido van Rossum24b1e751997-08-21 02:29:16 +00001193case $ac_sys_system in
1194hp*|HP*)
1195 case $CC in
Guido van Rossumcd5ff9f2000-09-22 16:15:54 +00001196 cc|*/cc) CC="$CC -Ae";;
Guido van Rossum24b1e751997-08-21 02:29:16 +00001197 esac;;
Trent Mick635f6fb2000-08-23 21:33:05 +00001198Monterey*)
1199 case $CC in
1200 cc) CC="$CC -Wl,-Bexport";;
1201 esac;;
Martin v. Löwisa30c1002001-03-06 12:10:20 +00001202SunOS*)
1203 # Some functions have a prototype only with that define, e.g. confstr
1204 cat >> confdefs.h <<\EOF
1205#define __EXTENSIONS__ 1
1206EOF
1207
1208 ;;
Guido van Rossum24b1e751997-08-21 02:29:16 +00001209esac
1210
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00001211
Martin v. Löwisa30c1002001-03-06 12:10:20 +00001212
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00001213echo $ac_n "checking LIBRARY""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001214echo "configure:1215: checking LIBRARY" >&5
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00001215if test -z "$LIBRARY"
1216then
1217 LIBRARY='libpython$(VERSION).a'
1218fi
1219echo "$ac_t""$LIBRARY" 1>&6
1220
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00001221# LDLIBRARY is the name of the library to link against (as opposed to the
1222# name of the library into which to insert object files). On systems
1223# without shared libraries, LDLIBRARY is the same as LIBRARY (defined in
Guido van Rossumaef734b2001-01-10 21:09:12 +00001224# the Makefiles). On Cygwin LDLIBRARY is the import library, DLLLIBRARY is the
1225# shared (i.e., DLL) library.
1226
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00001227
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00001228LDLIBRARY="$LIBRARY"
Guido van Rossumca563f22001-01-23 01:52:44 +00001229DLLLIBRARY=''
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00001230
Guido van Rossum76c5fe21997-08-14 19:45:07 +00001231# LINKCC is the command that links the python executable -- default is $(CC).
Fred Drake5790be12000-10-09 17:06:13 +00001232# This is altered for AIX in order to build the export list before
Guido van Rossumec95c7b1998-08-04 17:59:56 +00001233# linking.
Guido van Rossum76c5fe21997-08-14 19:45:07 +00001234
1235echo $ac_n "checking LINKCC""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001236echo "configure:1237: checking LINKCC" >&5
Guido van Rossum76c5fe21997-08-14 19:45:07 +00001237if test -z "$LINKCC"
1238then
1239 case $ac_sys_system in
1240 AIX*)
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +00001241 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); \$(PURIFY) \$(CC)";;
Guido van Rossum3c4bb801997-12-18 23:55:32 +00001242 dgux*)
1243 LINKCC="LD_RUN_PATH=$libdir \$(PURIFY) \$(CC)";;
Trent Mick635f6fb2000-08-23 21:33:05 +00001244 Monterey64*)
1245 LINKCC="\$(PURIFY) \$(CC) -L/usr/lib/ia64l64";;
Guido van Rossum25f93031997-08-18 16:00:04 +00001246 *) LINKCC="\$(PURIFY) \$(CC)";;
Guido van Rossum76c5fe21997-08-14 19:45:07 +00001247 esac
1248fi
1249echo "$ac_t""$LINKCC" 1>&6
1250
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00001251echo $ac_n "checking LDLIBRARY""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001252echo "configure:1253: checking LDLIBRARY" >&5
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00001253
1254# NeXT framework builds require that the 'ar' library be converted into
1255# a bundle using libtool.
1256if test "$with_next_framework"
1257then
1258 LDLIBRARY='libpython$(VERSION).dylib'
1259fi
1260
1261# DG/UX requires some fancy ld contortions to produce a .so from an .a
Fred Drake5790be12000-10-09 17:06:13 +00001262case $MACHDEP in
1263dguxR4)
1264 LDLIBRARY='libpython$(VERSION).so'
1265 OPT="$OPT -pic"
1266 ;;
1267beos*)
1268 LDLIBRARY='libpython$(VERSION).so'
1269 ;;
Guido van Rossumaef734b2001-01-10 21:09:12 +00001270cygwin*)
1271 LDLIBRARY='libpython$(VERSION).dll.a'
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001272 DLLLIBRARY='libpython$(VERSION).dll'
Guido van Rossumaef734b2001-01-10 21:09:12 +00001273 ;;
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001274unixware*)
1275 LDLIBRARY='libpython$(VERSION).so'
1276 ;;
Fred Drake5790be12000-10-09 17:06:13 +00001277esac
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00001278echo "$ac_t""$LDLIBRARY" 1>&6
1279
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001280# Extract the first word of "ranlib", so it can be a program name with args.
1281set dummy ranlib; ac_word=$2
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001282echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001283echo "configure:1284: checking for $ac_word" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00001284if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001285 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001286else
1287 if test -n "$RANLIB"; then
1288 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1289else
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1291 ac_dummy="$PATH"
1292 for ac_dir in $ac_dummy; do
Guido van Rossum7f43da71994-08-01 12:15:30 +00001293 test -z "$ac_dir" && ac_dir=.
1294 if test -f $ac_dir/$ac_word; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001295 ac_cv_prog_RANLIB="ranlib"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001296 break
1297 fi
1298 done
Guido van Rossum7f43da71994-08-01 12:15:30 +00001299 IFS="$ac_save_ifs"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001300 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001301fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001302fi
1303RANLIB="$ac_cv_prog_RANLIB"
1304if test -n "$RANLIB"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001305 echo "$ac_t""$RANLIB" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001306else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001307 echo "$ac_t""no" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001308fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00001309
1310
Guido van Rossum7f43da71994-08-01 12:15:30 +00001311for ac_prog in ar aal
1312do
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001313# Extract the first word of "$ac_prog", so it can be a program name with args.
1314set dummy $ac_prog; ac_word=$2
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001315echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001316echo "configure:1317: checking for $ac_word" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00001317if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001318 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001319else
1320 if test -n "$AR"; then
1321 ac_cv_prog_AR="$AR" # Let the user override the test.
1322else
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1324 ac_dummy="$PATH"
1325 for ac_dir in $ac_dummy; do
Guido van Rossum7f43da71994-08-01 12:15:30 +00001326 test -z "$ac_dir" && ac_dir=.
1327 if test -f $ac_dir/$ac_word; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001328 ac_cv_prog_AR="$ac_prog"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001329 break
1330 fi
1331 done
1332 IFS="$ac_save_ifs"
1333fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001334fi
1335AR="$ac_cv_prog_AR"
1336if test -n "$AR"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001337 echo "$ac_t""$AR" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001338else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001339 echo "$ac_t""no" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001340fi
Guido van Rossum7f43da71994-08-01 12:15:30 +00001341
1342test -n "$AR" && break
1343done
1344test -n "$AR" || AR="ar"
1345
Neil Schemenauera42c8272001-03-31 00:01:55 +00001346
1347case $MACHDEP in
1348bsdos*)
1349 # install -d does not work on BSDI
1350 if test -z "$INSTALL"
1351 then
1352 INSTALL="${srcdir}/install-sh -c"
1353 fi
1354esac
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001355ac_aux_dir=
1356for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1357 if test -f $ac_dir/install-sh; then
1358 ac_aux_dir=$ac_dir
1359 ac_install_sh="$ac_aux_dir/install-sh -c"
1360 break
1361 elif test -f $ac_dir/install.sh; then
1362 ac_aux_dir=$ac_dir
1363 ac_install_sh="$ac_aux_dir/install.sh -c"
1364 break
1365 fi
1366done
1367if test -z "$ac_aux_dir"; then
1368 { 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 +00001369fi
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001370ac_config_guess=$ac_aux_dir/config.guess
1371ac_config_sub=$ac_aux_dir/config.sub
1372ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1373
1374# Find a good install program. We prefer a C program (faster),
1375# so one script is as good as another. But avoid the broken or
1376# incompatible versions:
1377# SysV /etc/install, /usr/sbin/install
1378# SunOS /usr/etc/install
1379# IRIX /sbin/install
1380# AIX /bin/install
1381# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1382# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1383# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1384# ./install, which can be erroneously created by make from ./install.sh.
1385echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001386echo "configure:1387: checking for a BSD compatible install" >&5
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001387if test -z "$INSTALL"; then
1388if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1389 echo $ac_n "(cached) $ac_c" 1>&6
1390else
1391 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1392 for ac_dir in $PATH; do
1393 # Account for people who put trailing slashes in PATH elements.
1394 case "$ac_dir/" in
1395 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1396 *)
1397 # OSF1 and SCO ODT 3.0 have their own names for install.
1398 # Don't use installbsd from OSF since it installs stuff as root
1399 # by default.
1400 for ac_prog in ginstall scoinst install; do
1401 if test -f $ac_dir/$ac_prog; then
1402 if test $ac_prog = install &&
1403 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1404 # AIX install. It has an incompatible calling convention.
1405 :
1406 else
1407 ac_cv_path_install="$ac_dir/$ac_prog -c"
1408 break 2
1409 fi
1410 fi
1411 done
1412 ;;
1413 esac
1414 done
1415 IFS="$ac_save_IFS"
1416
1417fi
1418 if test "${ac_cv_path_install+set}" = set; then
1419 INSTALL="$ac_cv_path_install"
1420 else
1421 # As a last resort, use the slow shell script. We don't cache a
1422 # path for INSTALL within a source directory, because that will
1423 # break other packages using the cache if that directory is
1424 # removed, or if the path is relative.
1425 INSTALL="$ac_install_sh"
1426 fi
1427fi
1428echo "$ac_t""$INSTALL" 1>&6
1429
1430# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1431# It thinks the first close brace ends the variable substitution.
1432test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1433
1434test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1435
1436test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1437
Guido van Rossumb1ba03f1994-08-19 15:34:50 +00001438
Guido van Rossumec95c7b1998-08-04 17:59:56 +00001439# Not every filesystem supports hard links
1440
1441if test -z "$LN" ; then
1442 case $ac_sys_system in
1443 BeOS*) LN="ln -s";;
Guido van Rossumaef734b2001-01-10 21:09:12 +00001444 CYGWIN*) LN="ln -s";;
Guido van Rossumec95c7b1998-08-04 17:59:56 +00001445 *) LN=ln;;
1446 esac
1447fi
1448
Neil Schemenauerd32c2492001-01-24 17:25:28 +00001449# Optimizer/debugger flags
Guido van Rossum7b3853f1996-07-30 18:09:35 +00001450
Guido van Rossumb1ba03f1994-08-19 15:34:50 +00001451if test -z "$OPT"
Guido van Rossum7b3853f1996-07-30 18:09:35 +00001452then
Guido van Rossumedca74a1997-07-18 23:29:40 +00001453 case $GCC in
1454 yes)
1455 case $ac_cv_prog_cc_g in
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001456 yes)
1457 OPT="-g -O2 -Wall -Wstrict-prototypes";;
1458 *)
1459 OPT="-O2 -Wall -Wstrict-prototypes";;
Guido van Rossumedca74a1997-07-18 23:29:40 +00001460 esac
1461 ;;
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001462 *)
1463 case $ac_sys_system in
1464 UnixWare*)
1465 OPT="-O -K pentium,host,inline,loop_unroll,alloca ";;
1466 *)
1467 OPT="-O";;
Guido van Rossum7b3853f1996-07-30 18:09:35 +00001468 esac
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001469 esac
Guido van Rossumb1ba03f1994-08-19 15:34:50 +00001470fi
1471
Trent Mick635f6fb2000-08-23 21:33:05 +00001472# The current (beta) Monterey compiler dies with optimizations
1473case $ac_sys_system in
1474Monterey*) OPT="";;
1475esac
1476
Guido van Rossum563e7081996-09-10 18:20:48 +00001477if test "$ac_arch_flags"
Guido van Rossuma68acba1996-07-31 17:36:39 +00001478then
1479 OPT="$OPT $ac_arch_flags"
1480fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00001481# checks for UNIX variants that set C preprocessor variables
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001482echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001483echo "configure:1484: checking how to run the C preprocessor" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001484# On Suns, sometimes $CPP names a directory.
1485if test -n "$CPP" && test -d "$CPP"; then
1486 CPP=
1487fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00001488if test -z "$CPP"; then
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00001489if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001490 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001491else
1492 # This must be in double quotes, not single quotes, because CPP may get
1493 # substituted into the Makefile and "${CC-cc}" will confuse make.
Guido van Rossum627b2d71993-12-24 10:39:16 +00001494 CPP="${CC-cc} -E"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001495 # On the NeXT, cc -E runs the code through the compiler's parser,
1496 # not just through cpp.
1497 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001498#line 1499 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001499#include "confdefs.h"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001500#include <assert.h>
Guido van Rossum7f43da71994-08-01 12:15:30 +00001501Syntax Error
1502EOF
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001503ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001504{ (eval echo configure:1505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001505ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1506if test -z "$ac_err"; then
1507 :
1508else
1509 echo "$ac_err" >&5
1510 echo "configure: failed program was:" >&5
1511 cat conftest.$ac_ext >&5
1512 rm -rf conftest*
Guido van Rossumff555e32000-09-22 15:38:21 +00001513 CPP="${CC-cc} -E -traditional-cpp"
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001514 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001515#line 1516 "configure"
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001516#include "confdefs.h"
1517#include <assert.h>
1518Syntax Error
1519EOF
1520ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001521{ (eval echo configure:1522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001522ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Guido van Rossum7f43da71994-08-01 12:15:30 +00001523if test -z "$ac_err"; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00001524 :
1525else
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001526 echo "$ac_err" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00001527 echo "configure: failed program was:" >&5
1528 cat conftest.$ac_ext >&5
Guido van Rossum627b2d71993-12-24 10:39:16 +00001529 rm -rf conftest*
Guido van Rossumff555e32000-09-22 15:38:21 +00001530 CPP="${CC-cc} -nologo -E"
1531 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001532#line 1533 "configure"
Guido van Rossumff555e32000-09-22 15:38:21 +00001533#include "confdefs.h"
1534#include <assert.h>
1535Syntax Error
1536EOF
1537ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001538{ (eval echo configure:1539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Guido van Rossumff555e32000-09-22 15:38:21 +00001539ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1540if test -z "$ac_err"; then
1541 :
1542else
1543 echo "$ac_err" >&5
1544 echo "configure: failed program was:" >&5
1545 cat conftest.$ac_ext >&5
1546 rm -rf conftest*
Guido van Rossum627b2d71993-12-24 10:39:16 +00001547 CPP=/lib/cpp
1548fi
1549rm -f conftest*
1550fi
Guido van Rossum7f43da71994-08-01 12:15:30 +00001551rm -f conftest*
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001552fi
1553rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001554 ac_cv_prog_CPP="$CPP"
Guido van Rossum7f43da71994-08-01 12:15:30 +00001555fi
Guido van Rossume77438c1995-09-13 18:59:59 +00001556 CPP="$ac_cv_prog_CPP"
1557else
1558 ac_cv_prog_CPP="$CPP"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001559fi
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001560echo "$ac_t""$CPP" 1>&6
Guido van Rossum627b2d71993-12-24 10:39:16 +00001561
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001562echo $ac_n "checking for AIX""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001563echo "configure:1564: checking for AIX" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001564cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001565#line 1566 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001566#include "confdefs.h"
1567#ifdef _AIX
1568 yes
1569#endif
1570
1571EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001572if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1573 egrep "yes" >/dev/null 2>&1; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00001574 rm -rf conftest*
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001575 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001576#define _ALL_SOURCE 1
1577EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00001578
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001579else
1580 rm -rf conftest*
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001581 echo "$ac_t""no" 1>&6
Guido van Rossum627b2d71993-12-24 10:39:16 +00001582fi
1583rm -f conftest*
1584
1585
Guido van Rossumf78abae1997-01-21 22:02:36 +00001586ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001587echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001588echo "configure:1589: checking for minix/config.h" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00001589if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001590 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001591else
1592 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001593#line 1594 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001594#include "confdefs.h"
1595#include <minix/config.h>
1596EOF
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001597ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001598{ (eval echo configure:1599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001599ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Guido van Rossum7f43da71994-08-01 12:15:30 +00001600if test -z "$ac_err"; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00001601 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001602 eval "ac_cv_header_$ac_safe=yes"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001603else
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001604 echo "$ac_err" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00001605 echo "configure: failed program was:" >&5
1606 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001607 rm -rf conftest*
1608 eval "ac_cv_header_$ac_safe=no"
1609fi
1610rm -f conftest*
1611fi
1612if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001613 echo "$ac_t""yes" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001614 MINIX=yes
1615else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001616 echo "$ac_t""no" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001617MINIX=
Guido van Rossum627b2d71993-12-24 10:39:16 +00001618fi
1619
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001620if test "$MINIX" = yes; then
1621 cat >> confdefs.h <<\EOF
1622#define _POSIX_SOURCE 1
1623EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00001624
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001625 cat >> confdefs.h <<\EOF
1626#define _POSIX_1_SOURCE 2
1627EOF
1628
1629 cat >> confdefs.h <<\EOF
1630#define _MINIX 1
1631EOF
1632
1633fi
1634
Guido van Rossumda88dad1995-01-26 00:46:29 +00001635
Guido van Rossum91922671997-10-09 20:24:13 +00001636echo $ac_n "checking whether $CC accepts -OPT:Olimit=0""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001637echo "configure:1638: checking whether $CC accepts -OPT:Olimit=0" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00001638if eval "test \"`echo '$''{'ac_cv_opt_olimit_ok'+set}'`\" = set"; then
Guido van Rossum91922671997-10-09 20:24:13 +00001639 echo $ac_n "(cached) $ac_c" 1>&6
1640else
1641 ac_save_cc="$CC"
1642CC="$CC -OPT:Olimit=0"
1643if test "$cross_compiling" = yes; then
1644 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1645else
1646 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001647#line 1648 "configure"
Guido van Rossum91922671997-10-09 20:24:13 +00001648#include "confdefs.h"
1649int main() { return 0; }
1650EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001651if { (eval echo configure:1652: \"$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 +00001652then
1653 ac_cv_opt_olimit_ok=yes
1654else
1655 echo "configure: failed program was:" >&5
1656 cat conftest.$ac_ext >&5
1657 rm -fr conftest*
1658 ac_cv_opt_olimit_ok=no
1659fi
1660rm -fr conftest*
1661fi
1662
1663CC="$ac_save_cc"
1664fi
1665
1666echo "$ac_t""$ac_cv_opt_olimit_ok" 1>&6
Guido van Rossum2efa34b1997-10-23 17:43:11 +00001667if test $ac_cv_opt_olimit_ok = yes; then
Guido van Rossum5839e582000-10-09 19:52:35 +00001668 case $ac_sys_system in
1669 Darwin*) OPT="$OPT" ;;
1670 *) OPT="$OPT -OPT:Olimit=0";;
1671 esac
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00001672else
1673 echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001674echo "configure:1675: checking whether $CC accepts -Olimit 1500" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00001675 if eval "test \"`echo '$''{'ac_cv_olimit_ok'+set}'`\" = set"; then
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00001676 echo $ac_n "(cached) $ac_c" 1>&6
1677else
1678 ac_save_cc="$CC"
1679 CC="$CC -Olimit 1500"
1680 if test "$cross_compiling" = yes; then
1681 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1682else
1683 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001684#line 1685 "configure"
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00001685#include "confdefs.h"
1686int main() { return 0; }
1687EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001688if { (eval echo configure:1689: \"$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 +00001689then
1690 ac_cv_olimit_ok=yes
1691else
1692 echo "configure: failed program was:" >&5
1693 cat conftest.$ac_ext >&5
1694 rm -fr conftest*
1695 ac_cv_olimit_ok=no
Guido van Rossum201afe51997-05-14 21:14:44 +00001696fi
Guido van Rossum6b3d77e1998-07-07 21:11:02 +00001697rm -fr conftest*
1698fi
1699
1700 CC="$ac_save_cc"
1701fi
1702
1703 echo "$ac_t""$ac_cv_olimit_ok" 1>&6
1704 if test $ac_cv_olimit_ok = yes; then
1705 OPT="$OPT -Olimit 1500"
1706 fi
1707fi
1708
Guido van Rossum84e7b241996-08-19 21:59:00 +00001709
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001710# checks for header files
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001711echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001712echo "configure:1713: checking for ANSI C header files" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00001713if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001714 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001715else
1716 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001717#line 1718 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001718#include "confdefs.h"
1719#include <stdlib.h>
1720#include <stdarg.h>
1721#include <string.h>
1722#include <float.h>
1723EOF
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001724ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001725{ (eval echo configure:1726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001726ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Guido van Rossum7f43da71994-08-01 12:15:30 +00001727if test -z "$ac_err"; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00001728 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001729 ac_cv_header_stdc=yes
1730else
1731 echo "$ac_err" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00001732 echo "configure: failed program was:" >&5
1733 cat conftest.$ac_ext >&5
Guido van Rossum627b2d71993-12-24 10:39:16 +00001734 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001735 ac_cv_header_stdc=no
1736fi
1737rm -f conftest*
1738
1739if test $ac_cv_header_stdc = yes; then
1740 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1741cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001742#line 1743 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001743#include "confdefs.h"
1744#include <string.h>
1745EOF
1746if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1747 egrep "memchr" >/dev/null 2>&1; then
1748 :
1749else
1750 rm -rf conftest*
1751 ac_cv_header_stdc=no
1752fi
1753rm -f conftest*
1754
1755fi
1756
1757if test $ac_cv_header_stdc = yes; then
1758 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1759cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001760#line 1761 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001761#include "confdefs.h"
1762#include <stdlib.h>
1763EOF
1764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1765 egrep "free" >/dev/null 2>&1; then
1766 :
1767else
1768 rm -rf conftest*
1769 ac_cv_header_stdc=no
1770fi
1771rm -f conftest*
1772
1773fi
1774
1775if test $ac_cv_header_stdc = yes; then
1776 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1777if test "$cross_compiling" = yes; then
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001778 :
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001779else
Guido van Rossumf78abae1997-01-21 22:02:36 +00001780 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001781#line 1782 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001782#include "confdefs.h"
1783#include <ctype.h>
1784#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1785#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001786#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
Guido van Rossum627b2d71993-12-24 10:39:16 +00001787int main () { int i; for (i = 0; i < 256; i++)
1788if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1789exit (0); }
1790
1791EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001792if { (eval echo configure:1793: \"$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 +00001793then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001794 :
1795else
Guido van Rossumf78abae1997-01-21 22:02:36 +00001796 echo "configure: failed program was:" >&5
1797 cat conftest.$ac_ext >&5
1798 rm -fr conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001799 ac_cv_header_stdc=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00001800fi
1801rm -fr conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001802fi
Guido van Rossumf78abae1997-01-21 22:02:36 +00001803
1804fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001805fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001806
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001807echo "$ac_t""$ac_cv_header_stdc" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001808if test $ac_cv_header_stdc = yes; then
1809 cat >> confdefs.h <<\EOF
1810#define STDC_HEADERS 1
1811EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00001812
1813fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00001814
Andrew M. Kuchling5821b772000-08-25 01:14:08 +00001815for 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 +00001816signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h termios.h \
Fred Drakea50d6ec2000-08-31 16:13:20 +00001817sys/audioio.h sys/file.h sys/lock.h db_185.h db.h \
Guido van Rossum95713eb2000-05-18 20:53:31 +00001818sys/param.h sys/select.h sys/socket.h sys/time.h sys/times.h \
Fred Drakeae90f8d2000-09-15 03:38:12 +00001819sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
1820ndbm.h db1/ndbm.h gdbm/ndbm.h
Guido van Rossum627b2d71993-12-24 10:39:16 +00001821do
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""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001824echo "configure:1825: checking for $ac_hdr" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00001825if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001826 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001827else
1828 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001829#line 1830 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001830#include "confdefs.h"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001831#include <$ac_hdr>
Guido van Rossum627b2d71993-12-24 10:39:16 +00001832EOF
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001833ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001834{ (eval echo configure:1835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Guido van Rossume6c2cf11999-01-08 21:08:33 +00001835ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Guido van Rossum7f43da71994-08-01 12:15:30 +00001836if test -z "$ac_err"; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00001837 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001838 eval "ac_cv_header_$ac_safe=yes"
1839else
1840 echo "$ac_err" >&5
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_$ac_safe=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00001845fi
1846rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001847fi
1848if eval "test \"`echo '$ac_cv_header_'$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
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
Guido van Rossum627b2d71993-12-24 10:39:16 +00001858done
1859
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001860ac_header_dirent=no
1861for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1862do
Guido van Rossumf78abae1997-01-21 22:02:36 +00001863ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001864echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001865echo "configure:1866: checking for $ac_hdr that defines DIR" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00001866if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001867 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum627b2d71993-12-24 10:39:16 +00001868else
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001869 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001870#line 1871 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001871#include "confdefs.h"
1872#include <sys/types.h>
1873#include <$ac_hdr>
Guido van Rossumf78abae1997-01-21 22:02:36 +00001874int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001875DIR *dirp = 0;
1876; return 0; }
1877EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001878if { (eval echo configure:1879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001879 rm -rf conftest*
1880 eval "ac_cv_header_dirent_$ac_safe=yes"
1881else
Guido van Rossumf78abae1997-01-21 22:02:36 +00001882 echo "configure: failed program was:" >&5
1883 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001884 rm -rf conftest*
1885 eval "ac_cv_header_dirent_$ac_safe=no"
1886fi
1887rm -f conftest*
Guido van Rossum627b2d71993-12-24 10:39:16 +00001888fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001889if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001890 echo "$ac_t""yes" 1>&6
Guido van Rossumf78abae1997-01-21 22:02:36 +00001891 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001892 cat >> confdefs.h <<EOF
1893#define $ac_tr_hdr 1
1894EOF
1895 ac_header_dirent=$ac_hdr; break
1896else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001897 echo "$ac_t""no" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001898fi
1899done
1900# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1901if test $ac_header_dirent = dirent.h; then
Guido van Rossumf78abae1997-01-21 22:02:36 +00001902echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001903echo "configure:1904: checking for opendir in -ldir" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00001904ac_lib_var=`echo dir'_'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="-ldir $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001910cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +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
Guido van Rossum2242f2f2001-04-11 20:58:20 +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 -ldir"
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
1942else
Guido van Rossumf78abae1997-01-21 22:02:36 +00001943echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001944echo "configure:1945: checking for opendir in -lx" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00001945ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00001946if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001947 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001948else
1949 ac_save_LIBS="$LIBS"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001950LIBS="-lx $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001951cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001952#line 1953 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001953#include "confdefs.h"
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001954/* Override any gcc2 internal prototype to avoid an error. */
1955/* We use char because int might match the return type of a gcc2
1956 builtin and then its argument prototype would still apply. */
1957char opendir();
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001958
Guido van Rossumf78abae1997-01-21 22:02:36 +00001959int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001960opendir()
1961; return 0; }
1962EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001963if { (eval echo configure:1964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001964 rm -rf conftest*
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001965 eval "ac_cv_lib_$ac_lib_var=yes"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001966else
Guido van Rossumf78abae1997-01-21 22:02:36 +00001967 echo "configure: failed program was:" >&5
1968 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001969 rm -rf conftest*
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001970 eval "ac_cv_lib_$ac_lib_var=no"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001971fi
1972rm -f conftest*
1973LIBS="$ac_save_LIBS"
1974
1975fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00001976if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001977 echo "$ac_t""yes" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001978 LIBS="$LIBS -lx"
1979else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001980 echo "$ac_t""no" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001981fi
1982
1983fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00001984
1985
1986# checks for typedefs
Guido van Rossumda88dad1995-01-26 00:46:29 +00001987was_it_defined=no
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00001988echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001989echo "configure:1990: checking for clock_t in time.h" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001990cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00001991#line 1992 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00001992#include "confdefs.h"
1993#include <time.h>
1994EOF
1995if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1996 egrep "clock_t" >/dev/null 2>&1; then
Guido van Rossumda88dad1995-01-26 00:46:29 +00001997 rm -rf conftest*
1998 was_it_defined=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00001999else
2000 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002001 cat >> confdefs.h <<\EOF
2002#define clock_t long
2003EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00002004
2005fi
2006rm -f conftest*
2007
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002008echo "$ac_t""$was_it_defined" 1>&6
Guido van Rossumda88dad1995-01-26 00:46:29 +00002009
Guido van Rossum84e7b241996-08-19 21:59:00 +00002010# Add some code to confdefs.h so that the test for off_t works on SCO
2011cat >> confdefs.h <<\EOF
2012#if defined(SCO_DS)
2013#undef _OFF_T
2014#endif
2015EOF
2016
Guido van Rossumef2255b2000-03-10 22:30:29 +00002017# Type availability checks
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002018echo $ac_n "checking for mode_t""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002019echo "configure:2020: checking for mode_t" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002020if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002021 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002022else
2023 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002024#line 2025 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002025#include "confdefs.h"
2026#include <sys/types.h>
2027#if STDC_HEADERS
2028#include <stdlib.h>
Guido van Rossumf78abae1997-01-21 22:02:36 +00002029#include <stddef.h>
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002030#endif
2031EOF
2032if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Guido van Rossume6c2cf11999-01-08 21:08:33 +00002033 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 +00002034 rm -rf conftest*
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002035 ac_cv_type_mode_t=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00002036else
2037 rm -rf conftest*
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002038 ac_cv_type_mode_t=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00002039fi
2040rm -f conftest*
2041
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002042fi
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002043echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2044if test $ac_cv_type_mode_t = no; then
2045 cat >> confdefs.h <<\EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002046#define mode_t int
2047EOF
2048
2049fi
2050
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002051echo $ac_n "checking for off_t""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002052echo "configure:2053: checking for off_t" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002053if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002054 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002055else
2056 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002057#line 2058 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002058#include "confdefs.h"
2059#include <sys/types.h>
2060#if STDC_HEADERS
2061#include <stdlib.h>
Guido van Rossumf78abae1997-01-21 22:02:36 +00002062#include <stddef.h>
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002063#endif
2064EOF
2065if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Guido van Rossume6c2cf11999-01-08 21:08:33 +00002066 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 +00002067 rm -rf conftest*
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002068 ac_cv_type_off_t=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00002069else
2070 rm -rf conftest*
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002071 ac_cv_type_off_t=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00002072fi
2073rm -f conftest*
2074
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002075fi
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002076echo "$ac_t""$ac_cv_type_off_t" 1>&6
2077if test $ac_cv_type_off_t = no; then
2078 cat >> confdefs.h <<\EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002079#define off_t long
2080EOF
2081
2082fi
2083
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002084echo $ac_n "checking for pid_t""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002085echo "configure:2086: checking for pid_t" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002086if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002087 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002088else
2089 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002090#line 2091 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002091#include "confdefs.h"
2092#include <sys/types.h>
2093#if STDC_HEADERS
2094#include <stdlib.h>
Guido van Rossumf78abae1997-01-21 22:02:36 +00002095#include <stddef.h>
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002096#endif
2097EOF
2098if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Guido van Rossume6c2cf11999-01-08 21:08:33 +00002099 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 +00002100 rm -rf conftest*
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002101 ac_cv_type_pid_t=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00002102else
2103 rm -rf conftest*
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002104 ac_cv_type_pid_t=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00002105fi
2106rm -f conftest*
2107
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002108fi
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002109echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2110if test $ac_cv_type_pid_t = no; then
2111 cat >> confdefs.h <<\EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002112#define pid_t int
2113EOF
2114
2115fi
2116
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002117echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002118echo "configure:2119: checking return type of signal handlers" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002119if eval "test \"`echo '$''{'ac_cv_type_signal'+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
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002123#line 2124 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00002124#include "confdefs.h"
2125#include <sys/types.h>
2126#include <signal.h>
2127#ifdef signal
2128#undef signal
2129#endif
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002130#ifdef __cplusplus
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002131extern "C" void (*signal (int, void (*)(int)))(int);
2132#else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002133void (*signal ()) ();
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002134#endif
2135
Guido van Rossumf78abae1997-01-21 22:02:36 +00002136int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002137int i;
2138; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00002139EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002140if { (eval echo configure:2141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00002141 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002142 ac_cv_type_signal=void
Guido van Rossum627b2d71993-12-24 10:39:16 +00002143else
Guido van Rossumf78abae1997-01-21 22:02:36 +00002144 echo "configure: failed program was:" >&5
2145 cat conftest.$ac_ext >&5
Guido van Rossum627b2d71993-12-24 10:39:16 +00002146 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002147 ac_cv_type_signal=int
Guido van Rossum627b2d71993-12-24 10:39:16 +00002148fi
2149rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002150fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002151
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002152echo "$ac_t""$ac_cv_type_signal" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002153cat >> confdefs.h <<EOF
2154#define RETSIGTYPE $ac_cv_type_signal
2155EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00002156
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002157
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002158echo $ac_n "checking for size_t""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002159echo "configure:2160: checking for size_t" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002160if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002161 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002162else
2163 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002164#line 2165 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002165#include "confdefs.h"
2166#include <sys/types.h>
2167#if STDC_HEADERS
2168#include <stdlib.h>
Guido van Rossumf78abae1997-01-21 22:02:36 +00002169#include <stddef.h>
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002170#endif
2171EOF
2172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Guido van Rossume6c2cf11999-01-08 21:08:33 +00002173 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 +00002174 rm -rf conftest*
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002175 ac_cv_type_size_t=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00002176else
2177 rm -rf conftest*
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002178 ac_cv_type_size_t=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00002179fi
2180rm -f conftest*
2181
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002182fi
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002183echo "$ac_t""$ac_cv_type_size_t" 1>&6
2184if test $ac_cv_type_size_t = no; then
2185 cat >> confdefs.h <<\EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002186#define size_t unsigned
2187EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00002188
2189fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002190
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002191echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002192echo "configure:2193: checking for uid_t in sys/types.h" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002193if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002194 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002195else
2196 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002197#line 2198 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002198#include "confdefs.h"
2199#include <sys/types.h>
2200EOF
2201if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2202 egrep "uid_t" >/dev/null 2>&1; then
2203 rm -rf conftest*
2204 ac_cv_type_uid_t=yes
2205else
2206 rm -rf conftest*
2207 ac_cv_type_uid_t=no
2208fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00002209rm -f conftest*
2210
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002211fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00002212
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002213echo "$ac_t""$ac_cv_type_uid_t" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002214if test $ac_cv_type_uid_t = no; then
2215 cat >> confdefs.h <<\EOF
2216#define uid_t int
2217EOF
2218
2219 cat >> confdefs.h <<\EOF
2220#define gid_t int
2221EOF
2222
2223fi
2224
Guido van Rossum627b2d71993-12-24 10:39:16 +00002225
Guido van Rossumef2255b2000-03-10 22:30:29 +00002226# Sizes of various common basic types
Guido van Rossumccaf3b61996-12-06 21:19:16 +00002227echo $ac_n "checking size of int""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002228echo "configure:2229: checking size of int" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002229if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
Guido van Rossumccaf3b61996-12-06 21:19:16 +00002230 echo $ac_n "(cached) $ac_c" 1>&6
2231else
2232 if test "$cross_compiling" = yes; then
2233 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2234else
Guido van Rossumf78abae1997-01-21 22:02:36 +00002235 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002236#line 2237 "configure"
Guido van Rossumccaf3b61996-12-06 21:19:16 +00002237#include "confdefs.h"
2238#include <stdio.h>
2239main()
2240{
2241 FILE *f=fopen("conftestval", "w");
2242 if (!f) exit(1);
2243 fprintf(f, "%d\n", sizeof(int));
2244 exit(0);
2245}
2246EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002247if { (eval echo configure:2248: \"$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 +00002248then
Guido van Rossumccaf3b61996-12-06 21:19:16 +00002249 ac_cv_sizeof_int=`cat conftestval`
2250else
Guido van Rossumf78abae1997-01-21 22:02:36 +00002251 echo "configure: failed program was:" >&5
2252 cat conftest.$ac_ext >&5
2253 rm -fr conftest*
Guido van Rossumccaf3b61996-12-06 21:19:16 +00002254 ac_cv_sizeof_int=0
2255fi
Guido van Rossumccaf3b61996-12-06 21:19:16 +00002256rm -fr conftest*
2257fi
Guido van Rossumf78abae1997-01-21 22:02:36 +00002258
2259fi
Guido van Rossumccaf3b61996-12-06 21:19:16 +00002260echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2261cat >> confdefs.h <<EOF
2262#define SIZEOF_INT $ac_cv_sizeof_int
2263EOF
2264
2265
2266echo $ac_n "checking size of long""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002267echo "configure:2268: checking size of long" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002268if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
Guido van Rossumccaf3b61996-12-06 21:19:16 +00002269 echo $ac_n "(cached) $ac_c" 1>&6
2270else
2271 if test "$cross_compiling" = yes; then
2272 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2273else
Guido van Rossumf78abae1997-01-21 22:02:36 +00002274 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002275#line 2276 "configure"
Guido van Rossumccaf3b61996-12-06 21:19:16 +00002276#include "confdefs.h"
2277#include <stdio.h>
2278main()
2279{
2280 FILE *f=fopen("conftestval", "w");
2281 if (!f) exit(1);
2282 fprintf(f, "%d\n", sizeof(long));
2283 exit(0);
2284}
2285EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002286if { (eval echo configure:2287: \"$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 +00002287then
Guido van Rossumccaf3b61996-12-06 21:19:16 +00002288 ac_cv_sizeof_long=`cat conftestval`
2289else
Guido van Rossumf78abae1997-01-21 22:02:36 +00002290 echo "configure: failed program was:" >&5
2291 cat conftest.$ac_ext >&5
2292 rm -fr conftest*
Guido van Rossumccaf3b61996-12-06 21:19:16 +00002293 ac_cv_sizeof_long=0
2294fi
Guido van Rossumccaf3b61996-12-06 21:19:16 +00002295rm -fr conftest*
2296fi
Guido van Rossumf78abae1997-01-21 22:02:36 +00002297
2298fi
Guido van Rossumccaf3b61996-12-06 21:19:16 +00002299echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2300cat >> confdefs.h <<EOF
2301#define SIZEOF_LONG $ac_cv_sizeof_long
2302EOF
2303
2304
Guido van Rossumad678af1998-10-02 14:42:15 +00002305echo $ac_n "checking size of void *""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002306echo "configure:2307: checking size of void *" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002307if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
Guido van Rossumad678af1998-10-02 14:42:15 +00002308 echo $ac_n "(cached) $ac_c" 1>&6
2309else
2310 if test "$cross_compiling" = yes; then
2311 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2312else
2313 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002314#line 2315 "configure"
Guido van Rossumad678af1998-10-02 14:42:15 +00002315#include "confdefs.h"
2316#include <stdio.h>
2317main()
2318{
2319 FILE *f=fopen("conftestval", "w");
2320 if (!f) exit(1);
2321 fprintf(f, "%d\n", sizeof(void *));
2322 exit(0);
2323}
2324EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002325if { (eval echo configure:2326: \"$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 +00002326then
2327 ac_cv_sizeof_void_p=`cat conftestval`
2328else
2329 echo "configure: failed program was:" >&5
2330 cat conftest.$ac_ext >&5
2331 rm -fr conftest*
2332 ac_cv_sizeof_void_p=0
2333fi
2334rm -fr conftest*
2335fi
2336
2337fi
2338echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
2339cat >> confdefs.h <<EOF
2340#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
2341EOF
2342
2343
Guido van Rossumef2255b2000-03-10 22:30:29 +00002344echo $ac_n "checking size of char""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002345echo "configure:2346: checking size of char" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002346if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
Guido van Rossumef2255b2000-03-10 22:30:29 +00002347 echo $ac_n "(cached) $ac_c" 1>&6
2348else
2349 if test "$cross_compiling" = yes; then
2350 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2351else
2352 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002353#line 2354 "configure"
Guido van Rossumef2255b2000-03-10 22:30:29 +00002354#include "confdefs.h"
2355#include <stdio.h>
2356main()
2357{
2358 FILE *f=fopen("conftestval", "w");
2359 if (!f) exit(1);
2360 fprintf(f, "%d\n", sizeof(char));
2361 exit(0);
2362}
2363EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002364if { (eval echo configure:2365: \"$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 +00002365then
2366 ac_cv_sizeof_char=`cat conftestval`
2367else
2368 echo "configure: failed program was:" >&5
2369 cat conftest.$ac_ext >&5
2370 rm -fr conftest*
2371 ac_cv_sizeof_char=0
2372fi
2373rm -fr conftest*
2374fi
2375
2376fi
2377echo "$ac_t""$ac_cv_sizeof_char" 1>&6
2378cat >> confdefs.h <<EOF
2379#define SIZEOF_CHAR $ac_cv_sizeof_char
2380EOF
2381
2382
2383echo $ac_n "checking size of short""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002384echo "configure:2385: checking size of short" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002385if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
Guido van Rossumef2255b2000-03-10 22:30:29 +00002386 echo $ac_n "(cached) $ac_c" 1>&6
2387else
2388 if test "$cross_compiling" = yes; then
2389 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2390else
2391 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002392#line 2393 "configure"
Guido van Rossumef2255b2000-03-10 22:30:29 +00002393#include "confdefs.h"
2394#include <stdio.h>
2395main()
2396{
2397 FILE *f=fopen("conftestval", "w");
2398 if (!f) exit(1);
2399 fprintf(f, "%d\n", sizeof(short));
2400 exit(0);
2401}
2402EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002403if { (eval echo configure:2404: \"$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 +00002404then
2405 ac_cv_sizeof_short=`cat conftestval`
2406else
2407 echo "configure: failed program was:" >&5
2408 cat conftest.$ac_ext >&5
2409 rm -fr conftest*
2410 ac_cv_sizeof_short=0
2411fi
2412rm -fr conftest*
2413fi
2414
2415fi
2416echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2417cat >> confdefs.h <<EOF
2418#define SIZEOF_SHORT $ac_cv_sizeof_short
2419EOF
2420
2421
2422echo $ac_n "checking size of float""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002423echo "configure:2424: checking size of float" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002424if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
Guido van Rossumef2255b2000-03-10 22:30:29 +00002425 echo $ac_n "(cached) $ac_c" 1>&6
2426else
2427 if test "$cross_compiling" = yes; then
2428 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2429else
2430 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002431#line 2432 "configure"
Guido van Rossumef2255b2000-03-10 22:30:29 +00002432#include "confdefs.h"
2433#include <stdio.h>
2434main()
2435{
2436 FILE *f=fopen("conftestval", "w");
2437 if (!f) exit(1);
2438 fprintf(f, "%d\n", sizeof(float));
2439 exit(0);
2440}
2441EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002442if { (eval echo configure:2443: \"$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 +00002443then
2444 ac_cv_sizeof_float=`cat conftestval`
2445else
2446 echo "configure: failed program was:" >&5
2447 cat conftest.$ac_ext >&5
2448 rm -fr conftest*
2449 ac_cv_sizeof_float=0
2450fi
2451rm -fr conftest*
2452fi
2453
2454fi
2455echo "$ac_t""$ac_cv_sizeof_float" 1>&6
2456cat >> confdefs.h <<EOF
2457#define SIZEOF_FLOAT $ac_cv_sizeof_float
2458EOF
2459
2460
2461echo $ac_n "checking size of double""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002462echo "configure:2463: checking size of double" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002463if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
Guido van Rossumef2255b2000-03-10 22:30:29 +00002464 echo $ac_n "(cached) $ac_c" 1>&6
2465else
2466 if test "$cross_compiling" = yes; then
2467 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2468else
2469 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002470#line 2471 "configure"
Guido van Rossumef2255b2000-03-10 22:30:29 +00002471#include "confdefs.h"
2472#include <stdio.h>
2473main()
2474{
2475 FILE *f=fopen("conftestval", "w");
2476 if (!f) exit(1);
2477 fprintf(f, "%d\n", sizeof(double));
2478 exit(0);
2479}
2480EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002481if { (eval echo configure:2482: \"$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 +00002482then
2483 ac_cv_sizeof_double=`cat conftestval`
2484else
2485 echo "configure: failed program was:" >&5
2486 cat conftest.$ac_ext >&5
2487 rm -fr conftest*
2488 ac_cv_sizeof_double=0
2489fi
2490rm -fr conftest*
2491fi
2492
2493fi
2494echo "$ac_t""$ac_cv_sizeof_double" 1>&6
2495cat >> confdefs.h <<EOF
2496#define SIZEOF_DOUBLE $ac_cv_sizeof_double
2497EOF
2498
2499
Guido van Rossumb9a22a12000-06-30 02:48:53 +00002500echo $ac_n "checking size of fpos_t""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002501echo "configure:2502: checking size of fpos_t" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002502if eval "test \"`echo '$''{'ac_cv_sizeof_fpos_t'+set}'`\" = set"; then
Guido van Rossumb9a22a12000-06-30 02:48:53 +00002503 echo $ac_n "(cached) $ac_c" 1>&6
2504else
2505 if test "$cross_compiling" = yes; then
2506 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2507else
2508 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002509#line 2510 "configure"
Guido van Rossumb9a22a12000-06-30 02:48:53 +00002510#include "confdefs.h"
2511#include <stdio.h>
2512main()
2513{
2514 FILE *f=fopen("conftestval", "w");
2515 if (!f) exit(1);
2516 fprintf(f, "%d\n", sizeof(fpos_t));
2517 exit(0);
2518}
2519EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002520if { (eval echo configure:2521: \"$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 +00002521then
2522 ac_cv_sizeof_fpos_t=`cat conftestval`
2523else
2524 echo "configure: failed program was:" >&5
2525 cat conftest.$ac_ext >&5
2526 rm -fr conftest*
2527 ac_cv_sizeof_fpos_t=0
2528fi
2529rm -fr conftest*
2530fi
2531
2532fi
2533echo "$ac_t""$ac_cv_sizeof_fpos_t" 1>&6
2534cat >> confdefs.h <<EOF
2535#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
2536EOF
2537
2538
Guido van Rossum0a516c91994-09-12 10:58:40 +00002539
Guido van Rossumec95c7b1998-08-04 17:59:56 +00002540echo $ac_n "checking for long long support""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002541echo "configure:2542: checking for long long support" >&5
Guido van Rossumec95c7b1998-08-04 17:59:56 +00002542have_long_long=no
2543cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002544#line 2545 "configure"
Guido van Rossumec95c7b1998-08-04 17:59:56 +00002545#include "confdefs.h"
2546
2547int main() {
2548long long x; x = (long long)0;
2549; return 0; }
2550EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002551if { (eval echo configure:2552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossumec95c7b1998-08-04 17:59:56 +00002552 rm -rf conftest*
2553 cat >> confdefs.h <<\EOF
2554#define HAVE_LONG_LONG 1
2555EOF
2556 have_long_long=yes
2557else
2558 echo "configure: failed program was:" >&5
2559 cat conftest.$ac_ext >&5
2560fi
2561rm -f conftest*
2562echo "$ac_t""$have_long_long" 1>&6
Guido van Rossum96f2eb91999-04-10 16:02:18 +00002563if test "$have_long_long" = yes ; then
Guido van Rossumec95c7b1998-08-04 17:59:56 +00002564echo $ac_n "checking size of long long""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002565echo "configure:2566: checking size of long long" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002566if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
Guido van Rossumec95c7b1998-08-04 17:59:56 +00002567 echo $ac_n "(cached) $ac_c" 1>&6
2568else
2569 if test "$cross_compiling" = yes; then
2570 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2571else
2572 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002573#line 2574 "configure"
Guido van Rossumec95c7b1998-08-04 17:59:56 +00002574#include "confdefs.h"
2575#include <stdio.h>
2576main()
2577{
2578 FILE *f=fopen("conftestval", "w");
2579 if (!f) exit(1);
2580 fprintf(f, "%d\n", sizeof(long long));
2581 exit(0);
2582}
2583EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002584if { (eval echo configure:2585: \"$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 +00002585then
2586 ac_cv_sizeof_long_long=`cat conftestval`
2587else
2588 echo "configure: failed program was:" >&5
2589 cat conftest.$ac_ext >&5
2590 rm -fr conftest*
2591 ac_cv_sizeof_long_long=0
2592fi
2593rm -fr conftest*
2594fi
2595
2596fi
2597echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2598cat >> confdefs.h <<EOF
2599#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2600EOF
2601
2602
2603fi
2604
Barry Warsawbc7c7f92000-08-18 04:53:33 +00002605echo $ac_n "checking for uintptr_t support""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002606echo "configure:2607: checking for uintptr_t support" >&5
Barry Warsawbc7c7f92000-08-18 04:53:33 +00002607have_uintptr_t=no
2608cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002609#line 2610 "configure"
Barry Warsawbc7c7f92000-08-18 04:53:33 +00002610#include "confdefs.h"
2611
2612int main() {
2613uintptr_t x; x = (uintptr_t)0;
2614; return 0; }
2615EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002616if { (eval echo configure:2617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Barry Warsawbc7c7f92000-08-18 04:53:33 +00002617 rm -rf conftest*
2618 cat >> confdefs.h <<\EOF
2619#define HAVE_UINTPTR_T 1
2620EOF
2621 have_uintptr_t=yes
2622else
2623 echo "configure: failed program was:" >&5
2624 cat conftest.$ac_ext >&5
2625fi
2626rm -f conftest*
2627echo "$ac_t""$have_uintptr_t" 1>&6
2628if test "$have_uintptr_t" = yes ; then
2629echo $ac_n "checking size of uintptr_t""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002630echo "configure:2631: checking size of uintptr_t" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002631if eval "test \"`echo '$''{'ac_cv_sizeof_uintptr_t'+set}'`\" = set"; then
Barry Warsawbc7c7f92000-08-18 04:53:33 +00002632 echo $ac_n "(cached) $ac_c" 1>&6
2633else
2634 if test "$cross_compiling" = yes; then
2635 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2636else
2637 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002638#line 2639 "configure"
Barry Warsawbc7c7f92000-08-18 04:53:33 +00002639#include "confdefs.h"
2640#include <stdio.h>
2641main()
2642{
2643 FILE *f=fopen("conftestval", "w");
2644 if (!f) exit(1);
2645 fprintf(f, "%d\n", sizeof(uintptr_t));
2646 exit(0);
2647}
2648EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002649if { (eval echo configure:2650: \"$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 +00002650then
2651 ac_cv_sizeof_uintptr_t=`cat conftestval`
2652else
2653 echo "configure: failed program was:" >&5
2654 cat conftest.$ac_ext >&5
2655 rm -fr conftest*
2656 ac_cv_sizeof_uintptr_t=0
2657fi
2658rm -fr conftest*
2659fi
2660
2661fi
2662echo "$ac_t""$ac_cv_sizeof_uintptr_t" 1>&6
2663cat >> confdefs.h <<EOF
2664#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
2665EOF
2666
2667
2668fi
2669
Guido van Rossumf98e2a71999-01-06 18:53:34 +00002670# Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
2671echo $ac_n "checking size of off_t""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002672echo "configure:2673: checking size of off_t" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002673if eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then
Guido van Rossumf98e2a71999-01-06 18:53:34 +00002674 echo $ac_n "(cached) $ac_c" 1>&6
2675else
2676 if test "$cross_compiling" = yes; then
2677 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2678else
2679 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002680#line 2681 "configure"
Guido van Rossumf98e2a71999-01-06 18:53:34 +00002681#include "confdefs.h"
2682#include <stdio.h>
2683#include <sys/types.h>
2684main()
2685{
2686 FILE *f=fopen("conftestval", "w");
2687 if (!f) exit(1);
2688 fprintf(f, "%d\n", sizeof(off_t));
2689 exit(0);
2690}
2691EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002692if { (eval echo configure:2693: \"$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 +00002693then
2694 ac_cv_sizeof_off_t=`cat conftestval`
2695else
2696 echo "configure: failed program was:" >&5
2697 cat conftest.$ac_ext >&5
2698 rm -fr conftest*
2699 ac_cv_sizeof_off_t=0
2700fi
2701rm -fr conftest*
2702fi
2703
2704
2705fi
2706
2707echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6
2708cat >> confdefs.h <<EOF
2709#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
2710EOF
2711
2712
2713echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002714echo "configure:2715: checking whether to enable large file support" >&5
Guido van Rossum96f2eb91999-04-10 16:02:18 +00002715if test "$have_long_long" = yes -a \
2716 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
2717 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
Guido van Rossumf98e2a71999-01-06 18:53:34 +00002718 cat >> confdefs.h <<\EOF
2719#define HAVE_LARGEFILE_SUPPORT 1
2720EOF
2721
2722 echo "$ac_t""yes" 1>&6
2723else
2724 echo "$ac_t""no" 1>&6
2725fi
2726
Guido van Rossumb9a22a12000-06-30 02:48:53 +00002727# AC_CHECK_SIZEOF() doesn't include <time.h>.
2728echo $ac_n "checking size of time_t""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002729echo "configure:2730: checking size of time_t" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002730if eval "test \"`echo '$''{'ac_cv_sizeof_time_t'+set}'`\" = set"; then
Guido van Rossumb9a22a12000-06-30 02:48:53 +00002731 echo $ac_n "(cached) $ac_c" 1>&6
2732else
2733 if test "$cross_compiling" = yes; then
2734 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2735else
2736 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002737#line 2738 "configure"
Guido van Rossumb9a22a12000-06-30 02:48:53 +00002738#include "confdefs.h"
2739#include <stdio.h>
2740#include <time.h>
2741main()
2742{
2743 FILE *f=fopen("conftestval", "w");
2744 if (!f) exit(1);
2745 fprintf(f, "%d\n", sizeof(time_t));
2746 exit(0);
2747}
2748EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002749if { (eval echo configure:2750: \"$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 +00002750then
2751 ac_cv_sizeof_time_t=`cat conftestval`
2752else
2753 echo "configure: failed program was:" >&5
2754 cat conftest.$ac_ext >&5
2755 rm -fr conftest*
2756 ac_cv_sizeof_time_t=0
2757fi
2758rm -fr conftest*
2759fi
2760
2761
2762fi
2763
2764echo "$ac_t""$ac_cv_sizeof_time_t" 1>&6
2765cat >> confdefs.h <<EOF
2766#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
2767EOF
2768
2769
Guido van Rossumf98e2a71999-01-06 18:53:34 +00002770
Trent Mick635f6fb2000-08-23 21:33:05 +00002771# if have pthread_t then define SIZEOF_PTHREAD_T
2772echo $ac_n "checking for pthread_t""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002773echo "configure:2774: checking for pthread_t" >&5
Trent Mick635f6fb2000-08-23 21:33:05 +00002774have_pthread_t=no
2775cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002776#line 2777 "configure"
Trent Mick635f6fb2000-08-23 21:33:05 +00002777#include "confdefs.h"
2778#include <pthread.h>
2779int main() {
Guido van Rossum12580492000-09-24 16:47:19 +00002780pthread_t x; x = *(pthread_t*)0;
Trent Mick635f6fb2000-08-23 21:33:05 +00002781; return 0; }
2782EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002783if { (eval echo configure:2784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Trent Mick635f6fb2000-08-23 21:33:05 +00002784 rm -rf conftest*
2785 have_pthread_t=yes
2786else
2787 echo "configure: failed program was:" >&5
2788 cat conftest.$ac_ext >&5
2789fi
2790rm -f conftest*
2791echo "$ac_t""$have_pthread_t" 1>&6
2792if test "$have_pthread_t" = yes ; then
2793 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
2794 echo $ac_n "checking size of pthread_t""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002795echo "configure:2796: checking size of pthread_t" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00002796 if eval "test \"`echo '$''{'ac_cv_sizeof_pthread_t'+set}'`\" = set"; then
Trent Mick635f6fb2000-08-23 21:33:05 +00002797 echo $ac_n "(cached) $ac_c" 1>&6
2798else
2799 if test "$cross_compiling" = yes; then
2800 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2801else
2802 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002803#line 2804 "configure"
Trent Mick635f6fb2000-08-23 21:33:05 +00002804#include "confdefs.h"
2805#include <stdio.h>
2806 #include <pthread.h>
2807 main()
2808 {
2809 FILE *f=fopen("conftestval", "w");
2810 if (!f) exit(1);
2811 fprintf(f, "%d\n", sizeof(pthread_t));
2812 exit(0);
2813 }
2814EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002815if { (eval echo configure:2816: \"$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 +00002816then
2817 ac_cv_sizeof_pthread_t=`cat conftestval`
2818else
2819 echo "configure: failed program was:" >&5
2820 cat conftest.$ac_ext >&5
2821 rm -fr conftest*
2822 ac_cv_sizeof_pthread_t=0
2823fi
2824rm -fr conftest*
2825fi
2826
2827
2828fi
2829
2830 echo "$ac_t""$ac_cv_sizeof_pthread_t" 1>&6
2831 cat >> confdefs.h <<EOF
2832#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
2833EOF
2834
2835fi
2836
2837
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00002838# Minor variations in building a framework between NextStep versions 4 and 5
2839
2840case $ac_sys_system/$ac_sys_release in
Guido van Rossum5839e582000-10-09 19:52:35 +00002841 Darwin/*)
2842 ns_undef_sym='_environ'
2843 LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -U $ns_undef_sym" ;;
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00002844 next/4*)
2845 ns_undef_sym='__environ'
2846 LIBTOOL_CRUFT="-U $ns_undef_sym" ;;
2847 next/5*)
2848 ns_undef_sym='_environ'
2849 LIBTOOL_CRUFT="-lcc_dynamic -U $ns_undef_sym" ;;
2850esac
2851
2852echo $ac_n "checking for --with-next-framework""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002853echo "configure:2854: checking for --with-next-framework" >&5
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00002854if test "$with_next_framework"
2855then
2856 OPT="$OPT -fno-common"
2857 # -U __environ is needed since bundles don't have access
2858 # to crt0 when built but will always be linked against it
2859 LDFLAGS="$LDFLAGS -Wl,-U,$ns_undef_sym"
2860 cat >> confdefs.h <<\EOF
2861#define WITH_NEXT_FRAMEWORK 1
2862EOF
2863
2864 echo "$ac_t""yes" 1>&6
2865else
2866 echo "$ac_t""no" 1>&6
2867fi
2868
2869echo $ac_n "checking for --with-dyld""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002870echo "configure:2871: checking for --with-dyld" >&5
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00002871if test "$with_next_framework" -o "$with_dyld"
2872then
2873 if test "$with_dyld"
2874 then
2875 echo "$ac_t""yes" 1>&6
2876 else
2877 echo "$ac_t""required for framework build" 1>&6
2878 fi
2879 cat >> confdefs.h <<\EOF
2880#define WITH_DYLD 1
2881EOF
2882
2883 ns_dyld='set'
2884else
2885 echo "$ac_t""no" 1>&6
2886fi
2887
Guido van Rossum0a516c91994-09-12 10:58:40 +00002888# Set info about shared libraries.
Guido van Rossum0a516c91994-09-12 10:58:40 +00002889
2890
2891
2892
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +00002893
Guido van Rossum0a516c91994-09-12 10:58:40 +00002894# SO is the extension of shared libraries `(including the dot!)
Guido van Rossumaef734b2001-01-10 21:09:12 +00002895# -- usually .so, .sl on HP-UX, .dll on Cygwin
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002896echo $ac_n "checking SO""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002897echo "configure:2898: checking SO" >&5
Guido van Rossum0a516c91994-09-12 10:58:40 +00002898if test -z "$SO"
2899then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002900 case $ac_sys_system in
Guido van Rossum563e7081996-09-10 18:20:48 +00002901 hp*|HP*) SO=.sl;;
Guido van Rossumaef734b2001-01-10 21:09:12 +00002902 CYGWIN*) SO=.dll;;
Guido van Rossum563e7081996-09-10 18:20:48 +00002903 *) SO=.so;;
Guido van Rossum0a516c91994-09-12 10:58:40 +00002904 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +00002905fi
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002906echo "$ac_t""$SO" 1>&6
Guido van Rossum0a516c91994-09-12 10:58:40 +00002907# LDSHARED is the ld *command* used to create shared library
2908# -- "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 +00002909# (Shared libraries in this instance are shared modules to be loaded into
2910# Python, as opposed to building Python itself as a shared library.)
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002911echo $ac_n "checking LDSHARED""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002912echo "configure:2913: checking LDSHARED" >&5
Guido van Rossum0a516c91994-09-12 10:58:40 +00002913if test -z "$LDSHARED"
2914then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00002915 case $ac_sys_system/$ac_sys_release in
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +00002916 AIX*)
2917 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
2918 LDSHARED="\$(BINLIBDEST)/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/python.exp"
2919 ;;
2920 BeOS*)
2921 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
2922 LDSHARED="\$(BINLIBDEST)/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
2923 ;;
Guido van Rossum07397971997-04-29 21:49:50 +00002924 IRIX/5*) LDSHARED="ld -shared";;
Guido van Rossum91922671997-10-09 20:24:13 +00002925 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
Guido van Rossum0a516c91994-09-12 10:58:40 +00002926 SunOS/4*) LDSHARED="ld";;
Greg Ward57c9a6632000-05-26 12:22:54 +00002927 SunOS/5*)
2928 if test "$GCC" = "yes"
Neil Schemenauer8ba94452001-02-19 18:18:48 +00002929 then LDSHARED='$(CC) -shared'
Greg Ward57c9a6632000-05-26 12:22:54 +00002930 else LDSHARED="ld -G";
2931 fi ;;
Guido van Rossum0a516c91994-09-12 10:58:40 +00002932 hp*|HP*) LDSHARED="ld -b";;
Guido van Rossumda88dad1995-01-26 00:46:29 +00002933 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
2934 DYNIX/ptx*) LDSHARED="ld -G";;
Guido van Rossum3dc0a512000-10-05 18:00:06 +00002935 Darwin/*|next/*)
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00002936 if test "$ns_dyld"
Guido van Rossumacb14c72001-01-10 21:41:16 +00002937 then LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined suppress'
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00002938 else LDSHARED='$(CC) $(CFLAGS) -nostdlib -r';
2939 fi
Guido van Rossum3dc0a512000-10-05 18:00:06 +00002940 if test "$with_next_framework" ; then
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00002941 LDSHARED="$LDSHARED \$(LDLIBRARY)"
2942 fi ;;
Guido van Rossum81652ab1996-07-21 02:53:27 +00002943 Linux*) LDSHARED="gcc -shared";;
Guido van Rossum3c4bb801997-12-18 23:55:32 +00002944 dgux*) LDSHARED="ld -G";;
Guido van Rossum458e7fa1999-09-17 15:40:40 +00002945 BSD/OS*/4*) LDSHARED="gcc -shared";;
Guido van Rossum0286ae82000-08-29 15:06:49 +00002946 OpenBSD*) LDSHARED="ld -Bshareable";;
Guido van Rossumdf693651999-01-07 21:50:41 +00002947 NetBSD*)
2948 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
2949 then
2950 LDSHARED="cc -shared"
2951 else
2952 LDSHARED="ld -Bshareable"
2953 fi;;
Guido van Rossum0286ae82000-08-29 15:06:49 +00002954 FreeBSD*)
Jeremy Hylton4bcc7c52000-08-31 17:45:35 +00002955 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
Guido van Rossum0286ae82000-08-29 15:06:49 +00002956 then
2957 LDSHARED="cc -shared ${LDFLAGS}"
2958 else
2959 LDSHARED="ld -Bshareable ${LDFLAGS}"
2960 fi;;
Martin v. Löwisbec19582001-03-21 15:57:54 +00002961 UnixWare*)
2962 if test "$GCC" = "yes"
2963 then LDSHARED="$(CC) -shared"
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002964 else LDSHARED="ld -G -dy -Bdynamic"
Martin v. Löwisbec19582001-03-21 15:57:54 +00002965 fi;;
Guido van Rossum84e7b241996-08-19 21:59:00 +00002966 SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";;
Trent Mick635f6fb2000-08-23 21:33:05 +00002967 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
Guido van Rossumaef734b2001-01-10 21:09:12 +00002968 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
Guido van Rossum0a516c91994-09-12 10:58:40 +00002969 *) LDSHARED="ld";;
2970 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +00002971fi
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002972echo "$ac_t""$LDSHARED" 1>&6
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +00002973BLDSHARED=${BLDSHARED-$LDSHARED}
Guido van Rossum0a516c91994-09-12 10:58:40 +00002974# CCSHARED are the C *flags* used to create objects to go into a shared
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00002975# library (module) -- this is only needed for a few systems
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00002976echo $ac_n "checking CCSHARED""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002977echo "configure:2978: checking CCSHARED" >&5
Guido van Rossum0a516c91994-09-12 10:58:40 +00002978if test -z "$CCSHARED"
2979then
Guido van Rossum07397971997-04-29 21:49:50 +00002980 case $ac_sys_system/$ac_sys_release in
Neil Schemenauerc761fc82001-02-19 04:50:49 +00002981 SunOS*) if test "$GCC" = yes;
2982 then CCSHARED="-fPIC";
2983 fi;;
Guido van Rossumaf07a441995-02-13 19:45:27 +00002984 hp*|HP*) if test "$GCC" = yes;
2985 then CCSHARED="-fpic";
2986 else CCSHARED="+z";
2987 fi;;
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00002988 Linux*) CCSHARED="-fPIC";;
Guido van Rossumf5957ea1999-10-05 21:59:33 +00002989 BSD/OS*/4*) CCSHARED="-fpic";;
Guido van Rossum0286ae82000-08-29 15:06:49 +00002990 OpenBSD*) CCSHARED="-fpic";;
2991 FreeBSD*|NetBSD*) CCSHARED="-fPIC";;
Martin v. Löwisbec19582001-03-21 15:57:54 +00002992 UnixWare*)
2993 if test "$GCC" = "yes"
2994 then CCSHARED="-fPIC"
Guido van Rossum2242f2f2001-04-11 20:58:20 +00002995 else CCSHARED="-KPIC -G -dy -Bdynamic"
Martin v. Löwisbec19582001-03-21 15:57:54 +00002996 fi;;
Guido van Rossum84e7b241996-08-19 21:59:00 +00002997 SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";;
Trent Mick635f6fb2000-08-23 21:33:05 +00002998 Monterey*) CCSHARED="-G";;
Guido van Rossum2b5ca001998-03-05 15:41:09 +00002999 IRIX*/6*) case $CC in
3000 *gcc*) CCSHARED="-shared";;
Guido van Rossumee21f411998-04-20 18:51:54 +00003001 *) CCSHARED="";;
Guido van Rossum2b5ca001998-03-05 15:41:09 +00003002 esac;;
Guido van Rossumaef734b2001-01-10 21:09:12 +00003003 CYGWIN*) CCSHARED="-DUSE_DL_IMPORT";;
Guido van Rossum0a516c91994-09-12 10:58:40 +00003004 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +00003005fi
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003006echo "$ac_t""$CCSHARED" 1>&6
Guido van Rossum0a516c91994-09-12 10:58:40 +00003007# LINKFORSHARED are the flags passed to the $(CC) command that links
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003008# the python executable -- this is only needed for a few systems
3009echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003010echo "configure:3011: checking LINKFORSHARED" >&5
Guido van Rossum0a516c91994-09-12 10:58:40 +00003011if test -z "$LINKFORSHARED"
3012then
Guido van Rossum07397971997-04-29 21:49:50 +00003013 case $ac_sys_system/$ac_sys_release in
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +00003014 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
Guido van Rossumccaf3b61996-12-06 21:19:16 +00003015 hp*|HP*)
Guido van Rossum304dd2d1997-10-20 23:10:56 +00003016 LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
Guido van Rossumf5957ea1999-10-05 21:59:33 +00003017 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
Guido van Rossum2d9feed1997-11-24 17:36:21 +00003018 Linux*) LINKFORSHARED="-Xlinker -export-dynamic";;
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00003019 # -u libsys_s pulls in all symbols in libsys
3020 next/2*|next/3*) LINKFORSHARED="-u libsys_s";;
3021 # -u __dummy makes the linker aware of the objc runtime
3022 # in System.framework; otherwise, __objcInit (referenced in
3023 # crt1.o) gets erroneously defined as common, which breaks dynamic
3024 # loading of any modules which reference it in System.framework
3025 next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;;
Guido van Rossumacb14c72001-01-10 21:41:16 +00003026 Darwin/*) LINKFORSHARED="-u __dummy -framework System -framework Foundation" ;;
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003027 UnixWare*) LINKFORSHARED="-dy -Bdynamic -Wl,-Bexport";;
Guido van Rossum84e7b241996-08-19 21:59:00 +00003028 SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
Fred Drake02706f52000-09-25 15:08:46 +00003029 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
Guido van Rossum0286ae82000-08-29 15:06:49 +00003030 FreeBSD*|NetBSD*)
Guido van Rossumdf693651999-01-07 21:50:41 +00003031 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
3032 then
3033 LINKFORSHARED="-Wl,--export-dynamic"
3034 fi;;
Guido van Rossum2b5ca001998-03-05 15:41:09 +00003035 SunOS/5*) case $CC in
3036 *gcc*)
Guido van Rossumff484182000-02-03 13:50:24 +00003037 if $CC -Xlinker -V 2>&1 | grep BFD >/dev/null
Guido van Rossum8f4ceb11997-12-18 23:42:19 +00003038 then
3039 LINKFORSHARED="-Xlinker --export-dynamic"
Guido van Rossum2b5ca001998-03-05 15:41:09 +00003040 fi;;
3041 esac;;
Guido van Rossum0a516c91994-09-12 10:58:40 +00003042 esac
Guido van Rossum0a516c91994-09-12 10:58:40 +00003043fi
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003044echo "$ac_t""$LINKFORSHARED" 1>&6
Guido van Rossum0a516c91994-09-12 10:58:40 +00003045
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00003046
3047echo $ac_n "checking CFLAGSFORSHARED""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003048echo "configure:3049: checking CFLAGSFORSHARED" >&5
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00003049if test ! "$LIBRARY" = "$LDLIBRARY"
3050then
Neil Schemenauer0c6141f2001-01-27 21:40:54 +00003051 case $ac_sys_system in
3052 CYGWIN*)
3053 # Cygwin needs CCSHARED when building extension DLLs
3054 # but not when building the interpreter DLL.
3055 CFLAGSFORSHARED='';;
3056 *)
3057 CFLAGSFORSHARED='$(CCSHARED)'
3058 esac
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00003059fi
3060echo "$ac_t""$CFLAGSFORSHARED" 1>&6
3061
Guido van Rossum627b2d71993-12-24 10:39:16 +00003062# checks for libraries
Guido van Rossumf78abae1997-01-21 22:02:36 +00003063echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003064echo "configure:3065: checking for dlopen in -ldl" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00003065ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003066if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003067 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003068else
3069 ac_save_LIBS="$LIBS"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003070LIBS="-ldl $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003071cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003072#line 3073 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00003073#include "confdefs.h"
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003074/* Override any gcc2 internal prototype to avoid an error. */
3075/* We use char because int might match the return type of a gcc2
3076 builtin and then its argument prototype would still apply. */
3077char dlopen();
Guido van Rossum627b2d71993-12-24 10:39:16 +00003078
Guido van Rossumf78abae1997-01-21 22:02:36 +00003079int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003080dlopen()
3081; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00003082EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003083if { (eval echo configure:3084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00003084 rm -rf conftest*
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003085 eval "ac_cv_lib_$ac_lib_var=yes"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003086else
Guido van Rossumf78abae1997-01-21 22:02:36 +00003087 echo "configure: failed program was:" >&5
3088 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003089 rm -rf conftest*
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003090 eval "ac_cv_lib_$ac_lib_var=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00003091fi
3092rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003093LIBS="$ac_save_LIBS"
Guido van Rossum627b2d71993-12-24 10:39:16 +00003094
Guido van Rossum627b2d71993-12-24 10:39:16 +00003095fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003096if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003097 echo "$ac_t""yes" 1>&6
Guido van Rossumf78abae1997-01-21 22:02:36 +00003098 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3099 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003100 cat >> confdefs.h <<EOF
3101#define $ac_tr_lib 1
3102EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00003103
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003104 LIBS="-ldl $LIBS"
Guido van Rossum7f43da71994-08-01 12:15:30 +00003105
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003106else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003107 echo "$ac_t""no" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003108fi
3109 # Dynamic linking for SunOS/Solaris and SYSV
Guido van Rossumf78abae1997-01-21 22:02:36 +00003110echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003111echo "configure:3112: checking for shl_load in -ldld" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00003112ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003113if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003114 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003115else
3116 ac_save_LIBS="$LIBS"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003117LIBS="-ldld $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003118cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003119#line 3120 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00003120#include "confdefs.h"
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003121/* Override any gcc2 internal prototype to avoid an error. */
3122/* We use char because int might match the return type of a gcc2
3123 builtin and then its argument prototype would still apply. */
3124char shl_load();
Guido van Rossum627b2d71993-12-24 10:39:16 +00003125
Guido van Rossumf78abae1997-01-21 22:02:36 +00003126int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003127shl_load()
3128; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00003129EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003130if { (eval echo configure:3131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00003131 rm -rf conftest*
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003132 eval "ac_cv_lib_$ac_lib_var=yes"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003133else
Guido van Rossumf78abae1997-01-21 22:02:36 +00003134 echo "configure: failed program was:" >&5
3135 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003136 rm -rf conftest*
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003137 eval "ac_cv_lib_$ac_lib_var=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00003138fi
3139rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003140LIBS="$ac_save_LIBS"
Guido van Rossum627b2d71993-12-24 10:39:16 +00003141
Guido van Rossum627b2d71993-12-24 10:39:16 +00003142fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003143if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003144 echo "$ac_t""yes" 1>&6
Guido van Rossumf78abae1997-01-21 22:02:36 +00003145 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3146 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003147 cat >> confdefs.h <<EOF
3148#define $ac_tr_lib 1
3149EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00003150
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003151 LIBS="-ldld $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003152
3153else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003154 echo "$ac_t""no" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003155fi
3156 # Dynamic linking for HP-UX
Guido van Rossum0eefa3f1999-11-16 15:57:37 +00003157
Skip Montanarocb853262000-08-30 22:29:48 +00003158# Check for --with-pydebug
3159echo $ac_n "checking for --with-pydebug""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003160echo "configure:3161: checking for --with-pydebug" >&5
Skip Montanarocb853262000-08-30 22:29:48 +00003161# Check whether --with-pydebug or --without-pydebug was given.
3162if test "${with_pydebug+set}" = set; then
3163 withval="$with_pydebug"
3164
3165if test "$withval" != no
3166then cat >> confdefs.h <<\EOF
3167#define Py_DEBUG 1
3168EOF
3169 echo "$ac_t""yes" 1>&6
3170else echo "$ac_t""no" 1>&6
3171fi
3172else
3173 echo "$ac_t""no" 1>&6
3174fi
3175
3176
Guido van Rossum0eefa3f1999-11-16 15:57:37 +00003177# checks for system dependent C++ extensions support
3178case "$ac_sys_system" in
3179 AIX*) echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003180echo "configure:3181: checking for genuine AIX C++ extensions support" >&5
Guido van Rossum0eefa3f1999-11-16 15:57:37 +00003181 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003182#line 3183 "configure"
Guido van Rossum0eefa3f1999-11-16 15:57:37 +00003183#include "confdefs.h"
3184#include "/usr/lpp/xlC/include/load.h"
3185int main() {
3186loadAndInit("", 0, "")
3187; return 0; }
3188EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003189if { (eval echo configure:3190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum0eefa3f1999-11-16 15:57:37 +00003190 rm -rf conftest*
3191 cat >> confdefs.h <<\EOF
3192#define AIX_GENUINE_CPLUSPLUS 1
3193EOF
3194
3195 echo "$ac_t""yes" 1>&6
3196else
3197 echo "configure: failed program was:" >&5
3198 cat conftest.$ac_ext >&5
3199 rm -rf conftest*
3200 echo "$ac_t""no" 1>&6
3201fi
3202rm -f conftest*;;
3203 *) ;;
3204esac
3205
Guido van Rossum70c7f481998-03-26 18:44:10 +00003206# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
3207# However on SGI IRIX, these exist but are broken.
Guido van Rossumec95c7b1998-08-04 17:59:56 +00003208# BeOS' sockets are stashed in libnet.
3209case "$ac_sys_system" in
3210IRIX*) ;;
Guido van Rossumb93a8621998-05-07 13:27:32 +00003211*)
Guido van Rossumf78abae1997-01-21 22:02:36 +00003212echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003213echo "configure:3214: checking for t_open in -lnsl" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00003214ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003215if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003216 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum79dddcb1995-01-12 12:25:42 +00003217else
3218 ac_save_LIBS="$LIBS"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003219LIBS="-lnsl $LIBS"
Guido van Rossum79dddcb1995-01-12 12:25:42 +00003220cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003221#line 3222 "configure"
Guido van Rossum79dddcb1995-01-12 12:25:42 +00003222#include "confdefs.h"
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003223/* Override any gcc2 internal prototype to avoid an error. */
3224/* We use char because int might match the return type of a gcc2
3225 builtin and then its argument prototype would still apply. */
3226char t_open();
Guido van Rossum79dddcb1995-01-12 12:25:42 +00003227
Guido van Rossumf78abae1997-01-21 22:02:36 +00003228int main() {
Guido van Rossum0ddb0281995-01-17 16:46:14 +00003229t_open()
Guido van Rossum79dddcb1995-01-12 12:25:42 +00003230; return 0; }
3231EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003232if { (eval echo configure:3233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum79dddcb1995-01-12 12:25:42 +00003233 rm -rf conftest*
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003234 eval "ac_cv_lib_$ac_lib_var=yes"
Guido van Rossum79dddcb1995-01-12 12:25:42 +00003235else
Guido van Rossumf78abae1997-01-21 22:02:36 +00003236 echo "configure: failed program was:" >&5
3237 cat conftest.$ac_ext >&5
Guido van Rossum79dddcb1995-01-12 12:25:42 +00003238 rm -rf conftest*
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003239 eval "ac_cv_lib_$ac_lib_var=no"
Guido van Rossum79dddcb1995-01-12 12:25:42 +00003240fi
3241rm -f conftest*
3242LIBS="$ac_save_LIBS"
3243
3244fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003245if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003246 echo "$ac_t""yes" 1>&6
Guido van Rossum79dddcb1995-01-12 12:25:42 +00003247 LIBS="-lnsl $LIBS"
3248else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003249 echo "$ac_t""no" 1>&6
Guido van Rossum79dddcb1995-01-12 12:25:42 +00003250fi
Guido van Rossum0ddb0281995-01-17 16:46:14 +00003251 # SVR4
Guido van Rossumf78abae1997-01-21 22:02:36 +00003252echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003253echo "configure:3254: checking for socket in -lsocket" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00003254ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003255if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003256 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003257else
3258 ac_save_LIBS="$LIBS"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003259LIBS="-lsocket $LIBS $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003260cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003261#line 3262 "configure"
Guido van Rossumec95c7b1998-08-04 17:59:56 +00003262#include "confdefs.h"
3263/* Override any gcc2 internal prototype to avoid an error. */
3264/* We use char because int might match the return type of a gcc2
3265 builtin and then its argument prototype would still apply. */
3266char socket();
3267
3268int main() {
3269socket()
3270; return 0; }
3271EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003272if { (eval echo configure:3273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossumec95c7b1998-08-04 17:59:56 +00003273 rm -rf conftest*
3274 eval "ac_cv_lib_$ac_lib_var=yes"
3275else
3276 echo "configure: failed program was:" >&5
3277 cat conftest.$ac_ext >&5
3278 rm -rf conftest*
3279 eval "ac_cv_lib_$ac_lib_var=no"
3280fi
3281rm -f conftest*
3282LIBS="$ac_save_LIBS"
3283
3284fi
3285if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3286 echo "$ac_t""yes" 1>&6
Guido van Rossumad678af1998-10-02 14:42:15 +00003287 LIBS="-lsocket $LIBS"
3288else
3289 echo "$ac_t""no" 1>&6
3290fi
3291 # SVR4 sockets
Jeremy Hyltoncb25d5e2000-07-27 21:23:28 +00003292;;
3293esac
3294case "$ac_sys_system" in
3295BeOS*)
Guido van Rossumad678af1998-10-02 14:42:15 +00003296echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003297echo "configure:3298: checking for socket in -lnet" >&5
Guido van Rossumad678af1998-10-02 14:42:15 +00003298ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003299if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Guido van Rossumad678af1998-10-02 14:42:15 +00003300 echo $ac_n "(cached) $ac_c" 1>&6
3301else
3302 ac_save_LIBS="$LIBS"
3303LIBS="-lnet $LIBS $LIBS"
3304cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003305#line 3306 "configure"
Guido van Rossumad678af1998-10-02 14:42:15 +00003306#include "confdefs.h"
3307/* Override any gcc2 internal prototype to avoid an error. */
3308/* We use char because int might match the return type of a gcc2
3309 builtin and then its argument prototype would still apply. */
3310char socket();
3311
3312int main() {
3313socket()
3314; return 0; }
3315EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003316if { (eval echo configure:3317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossumad678af1998-10-02 14:42:15 +00003317 rm -rf conftest*
3318 eval "ac_cv_lib_$ac_lib_var=yes"
3319else
3320 echo "configure: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3322 rm -rf conftest*
3323 eval "ac_cv_lib_$ac_lib_var=no"
3324fi
3325rm -f conftest*
3326LIBS="$ac_save_LIBS"
3327
3328fi
3329if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3330 echo "$ac_t""yes" 1>&6
Guido van Rossumec95c7b1998-08-04 17:59:56 +00003331 LIBS="-lnet $LIBS"
3332else
3333 echo "$ac_t""no" 1>&6
3334fi
3335 # BeOS
3336;;
3337esac
Guido van Rossum70c7f481998-03-26 18:44:10 +00003338
Guido van Rossuma68acba1996-07-31 17:36:39 +00003339echo $ac_n "checking for --with-libs""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003340echo "configure:3341: checking for --with-libs" >&5
Guido van Rossuma68acba1996-07-31 17:36:39 +00003341# Check whether --with-libs or --without-libs was given.
3342if test "${with_libs+set}" = set; then
3343 withval="$with_libs"
3344
3345echo "$ac_t""$withval" 1>&6
3346LIBS="$withval $LIBS"
3347
3348else
3349 echo "$ac_t""no" 1>&6
3350fi
3351
Guido van Rossum7f43da71994-08-01 12:15:30 +00003352
Neil Schemenauerd32c2492001-01-24 17:25:28 +00003353# Determine if signalmodule should be used.
3354
3355
3356echo $ac_n "checking for --with-signal-module""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003357echo "configure:3358: checking for --with-signal-module" >&5
Neil Schemenauerd32c2492001-01-24 17:25:28 +00003358# Check whether --with-signal-module or --without-signal-module was given.
3359if test "${with_signal_module+set}" = set; then
3360 withval="$with_signal_module"
3361 :
3362fi
3363
3364
3365if test -z "$with_signal_module"
3366then with_signal_module="yes"
3367fi
3368echo "$ac_t""$with_signal_module" 1>&6
3369
3370if test "${with_signal_module}" = "yes"; then
3371 USE_SIGNAL_MODULE=""
3372 SIGNAL_OBJS=""
3373else
3374 USE_SIGNAL_MODULE="#"
3375 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
3376fi
3377
Guido van Rossum3d15bd82001-01-10 18:53:48 +00003378# This is used to generate Setup.config
Guido van Rossum009f7871997-12-04 00:51:42 +00003379
Barry Warsawc0d24d8b2000-06-29 16:12:00 +00003380USE_THREAD_MODULE=""
Guido van Rossum009f7871997-12-04 00:51:42 +00003381
Guido van Rossumec2f0731997-01-22 20:54:01 +00003382echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003383echo "configure:3384: checking for --with-dec-threads" >&5
Guido van Rossumec2f0731997-01-22 20:54:01 +00003384
3385# Check whether --with-dec-threads or --without-dec-threads was given.
3386if test "${with_dec_threads+set}" = set; then
3387 withval="$with_dec_threads"
Barry Warsawc0d24d8b2000-06-29 16:12:00 +00003388
3389echo "$ac_t""$withval" 1>&6
Guido van Rossumec2f0731997-01-22 20:54:01 +00003390LDLAST=-threads
Guido van Rossumf78abae1997-01-21 22:02:36 +00003391if test "${with_thread+set}" != set; then
Guido van Rossumec2f0731997-01-22 20:54:01 +00003392 with_thread="$withval";
Guido van Rossumf78abae1997-01-21 22:02:36 +00003393fi
Guido van Rossumec2f0731997-01-22 20:54:01 +00003394else
3395 echo "$ac_t""no" 1>&6
3396fi
3397
3398
3399echo $ac_n "checking for --with-threads""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003400echo "configure:3401: checking for --with-threads" >&5
Guido van Rossumec2f0731997-01-22 20:54:01 +00003401# Check whether --with-threads or --without-threads was given.
3402if test "${with_threads+set}" = set; then
3403 withval="$with_threads"
Barry Warsawc0d24d8b2000-06-29 16:12:00 +00003404 :
Guido van Rossumec2f0731997-01-22 20:54:01 +00003405fi
3406
3407
Barry Warsawc0d24d8b2000-06-29 16:12:00 +00003408# --with-thread is deprecated, but check for it anyway
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003409# Check whether --with-thread or --without-thread was given.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003410if test "${with_thread+set}" = set; then
3411 withval="$with_thread"
Barry Warsawa0f3c5c2000-06-30 16:39:35 +00003412
3413with_threads=$with_thread
Guido van Rossum7f43da71994-08-01 12:15:30 +00003414fi
Barry Warsawc0d24d8b2000-06-29 16:12:00 +00003415
3416
3417if test -z "$with_threads"
3418then with_threads="yes"
3419fi
3420echo "$ac_t""$with_threads" 1>&6
3421
3422if test "$with_threads" = "no"
3423then
3424 USE_THREAD_MODULE="#"
3425else
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003426 if test "$ac_sys_system" = "UnixWare"
3427 then
3428 CC="${CC} -Kthread"
3429 LIBOBJS="$LIBOBJS thread.o"
3430 cat >> confdefs.h <<\EOF
3431#define WITH_THREAD 1
3432EOF
3433
3434 cat >> confdefs.h <<\EOF
3435#define _POSIX_THREADS 1
3436EOF
3437
3438 USE_THREAD_MODULE=""
3439 else
3440 if test ! -z "$with_threads" -a -d "$with_threads"
3441 then LDFLAGS="$LDFLAGS -L$with_threads"
3442 fi
3443 if test ! -z "$withval" -a -d "$withval"
3444 then LDFLAGS="$LDFLAGS -L$withval"
3445 fi
3446 cat >> confdefs.h <<\EOF
Guido van Rossum9caf77a1996-08-01 00:52:26 +00003447#define _REENTRANT 1
3448EOF
3449
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003450 ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'`
Guido van Rossum7b3853f1996-07-30 18:09:35 +00003451echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003452echo "configure:3453: checking for mach/cthreads.h" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003453if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
Guido van Rossum7b3853f1996-07-30 18:09:35 +00003454 echo $ac_n "(cached) $ac_c" 1>&6
3455else
3456 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003457#line 3458 "configure"
Guido van Rossum7b3853f1996-07-30 18:09:35 +00003458#include "confdefs.h"
3459#include <mach/cthreads.h>
3460EOF
3461ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003462{ (eval echo configure:3463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Guido van Rossume6c2cf11999-01-08 21:08:33 +00003463ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Guido van Rossum7b3853f1996-07-30 18:09:35 +00003464if test -z "$ac_err"; then
3465 rm -rf conftest*
3466 eval "ac_cv_header_$ac_safe=yes"
3467else
3468 echo "$ac_err" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00003469 echo "configure: failed program was:" >&5
3470 cat conftest.$ac_ext >&5
Guido van Rossum7b3853f1996-07-30 18:09:35 +00003471 rm -rf conftest*
3472 eval "ac_cv_header_$ac_safe=no"
3473fi
3474rm -f conftest*
3475fi
3476if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3477 echo "$ac_t""yes" 1>&6
3478 cat >> confdefs.h <<\EOF
3479#define WITH_THREAD 1
3480EOF
3481
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003482 cat >> confdefs.h <<\EOF
Guido van Rossum7b3853f1996-07-30 18:09:35 +00003483#define C_THREADS 1
3484EOF
3485
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003486 LIBOBJS="$LIBOBJS thread.o"
Guido van Rossum7b3853f1996-07-30 18:09:35 +00003487else
3488 echo "$ac_t""no" 1>&6
3489
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003490 echo $ac_n "checking for --with-pth""... $ac_c" 1>&6
3491echo "configure:3492: checking for --with-pth" >&5
3492 # Check whether --with-pth or --without-pth was given.
Guido van Rossum9e8181b2000-09-19 00:46:46 +00003493if test "${with_pth+set}" = set; then
3494 withval="$with_pth"
3495
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003496 echo "$ac_t""$withval" 1>&6
3497 cat >> confdefs.h <<\EOF
Guido van Rossum9e8181b2000-09-19 00:46:46 +00003498#define WITH_THREAD 1
3499EOF
3500
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003501 cat >> confdefs.h <<\EOF
Guido van Rossum9e8181b2000-09-19 00:46:46 +00003502#define HAVE_PTH 1
3503EOF
3504
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003505 LIBS="-lpth $LIBS"
3506 LIBOBJS="$LIBOBJS thread.o"
Guido van Rossum9e8181b2000-09-19 00:46:46 +00003507else
3508
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003509 echo "$ac_t""no" 1>&6
3510 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
3511echo "configure:3512: checking for pthread_create in -lpthread" >&5
Guido van Rossum02a1c402000-02-25 19:26:31 +00003512ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003513if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Guido van Rossum02a1c402000-02-25 19:26:31 +00003514 echo $ac_n "(cached) $ac_c" 1>&6
3515else
3516 ac_save_LIBS="$LIBS"
3517LIBS="-lpthread $LIBS"
3518cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003519#line 3520 "configure"
Guido van Rossum02a1c402000-02-25 19:26:31 +00003520#include "confdefs.h"
3521/* Override any gcc2 internal prototype to avoid an error. */
3522/* We use char because int might match the return type of a gcc2
3523 builtin and then its argument prototype would still apply. */
3524char pthread_create();
3525
3526int main() {
3527pthread_create()
3528; return 0; }
3529EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003530if { (eval echo configure:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum02a1c402000-02-25 19:26:31 +00003531 rm -rf conftest*
3532 eval "ac_cv_lib_$ac_lib_var=yes"
3533else
3534 echo "configure: failed program was:" >&5
3535 cat conftest.$ac_ext >&5
3536 rm -rf conftest*
3537 eval "ac_cv_lib_$ac_lib_var=no"
3538fi
3539rm -f conftest*
3540LIBS="$ac_save_LIBS"
3541
3542fi
3543if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3544 echo "$ac_t""yes" 1>&6
3545 cat >> confdefs.h <<\EOF
3546#define WITH_THREAD 1
3547EOF
3548
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003549 cat >> confdefs.h <<\EOF
Guido van Rossum02a1c402000-02-25 19:26:31 +00003550#define _POSIX_THREADS 1
3551EOF
3552
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003553 LIBS="-lpthread $LIBS"
3554 LIBOBJS="$LIBOBJS thread.o"
Guido van Rossum02a1c402000-02-25 19:26:31 +00003555else
3556 echo "$ac_t""no" 1>&6
3557
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003558 echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6
3559echo "configure:3560: checking for pthread_detach" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003560if eval "test \"`echo '$''{'ac_cv_func_pthread_detach'+set}'`\" = set"; then
Guido van Rossumad678af1998-10-02 14:42:15 +00003561 echo $ac_n "(cached) $ac_c" 1>&6
3562else
3563 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003564#line 3565 "configure"
Guido van Rossumad678af1998-10-02 14:42:15 +00003565#include "confdefs.h"
3566/* System header to define __stub macros and hopefully few prototypes,
Guido van Rossumea516321998-12-17 18:08:55 +00003567 which can conflict with char pthread_detach(); below. */
Guido van Rossumad678af1998-10-02 14:42:15 +00003568#include <assert.h>
3569/* Override any gcc2 internal prototype to avoid an error. */
3570/* We use char because int might match the return type of a gcc2
3571 builtin and then its argument prototype would still apply. */
Guido van Rossumea516321998-12-17 18:08:55 +00003572char pthread_detach();
Guido van Rossumad678af1998-10-02 14:42:15 +00003573
3574int main() {
3575
3576/* The GNU C library defines this for functions which it implements
3577 to always fail with ENOSYS. Some functions are actually named
3578 something starting with __ and the normal name is an alias. */
Guido van Rossumea516321998-12-17 18:08:55 +00003579#if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
Guido van Rossumad678af1998-10-02 14:42:15 +00003580choke me
3581#else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003582pthread_detach();
Guido van Rossumad678af1998-10-02 14:42:15 +00003583#endif
3584
3585; return 0; }
3586EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003587if { (eval echo configure:3588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossumad678af1998-10-02 14:42:15 +00003588 rm -rf conftest*
Guido van Rossumea516321998-12-17 18:08:55 +00003589 eval "ac_cv_func_pthread_detach=yes"
Guido van Rossumad678af1998-10-02 14:42:15 +00003590else
3591 echo "configure: failed program was:" >&5
3592 cat conftest.$ac_ext >&5
3593 rm -rf conftest*
Guido van Rossumea516321998-12-17 18:08:55 +00003594 eval "ac_cv_func_pthread_detach=no"
Guido van Rossumad678af1998-10-02 14:42:15 +00003595fi
3596rm -f conftest*
3597fi
3598
Guido van Rossumea516321998-12-17 18:08:55 +00003599if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then
Guido van Rossumad678af1998-10-02 14:42:15 +00003600 echo "$ac_t""yes" 1>&6
3601 cat >> confdefs.h <<\EOF
3602#define WITH_THREAD 1
3603EOF
3604
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003605 case $ac_sys_system in
3606 Darwin*) ;;
3607 *) cat >> confdefs.h <<\EOF
Guido van Rossumad678af1998-10-02 14:42:15 +00003608#define _POSIX_THREADS 1
3609EOF
Guido van Rossum5839e582000-10-09 19:52:35 +00003610;;
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003611 esac
3612 LIBOBJS="$LIBOBJS thread.o"
Guido van Rossumad678af1998-10-02 14:42:15 +00003613else
3614 echo "$ac_t""no" 1>&6
3615
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003616 ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'`
Guido van Rossumec95c7b1998-08-04 17:59:56 +00003617echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003618echo "configure:3619: checking for kernel/OS.h" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003619if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
Guido van Rossumec95c7b1998-08-04 17:59:56 +00003620 echo $ac_n "(cached) $ac_c" 1>&6
3621else
3622 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003623#line 3624 "configure"
Guido van Rossumec95c7b1998-08-04 17:59:56 +00003624#include "confdefs.h"
3625#include <kernel/OS.h>
3626EOF
3627ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003628{ (eval echo configure:3629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Guido van Rossume6c2cf11999-01-08 21:08:33 +00003629ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Guido van Rossumec95c7b1998-08-04 17:59:56 +00003630if test -z "$ac_err"; then
3631 rm -rf conftest*
3632 eval "ac_cv_header_$ac_safe=yes"
3633else
3634 echo "$ac_err" >&5
3635 echo "configure: failed program was:" >&5
3636 cat conftest.$ac_ext >&5
3637 rm -rf conftest*
3638 eval "ac_cv_header_$ac_safe=no"
3639fi
3640rm -f conftest*
3641fi
3642if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3643 echo "$ac_t""yes" 1>&6
3644 cat >> confdefs.h <<\EOF
3645#define WITH_THREAD 1
3646EOF
3647
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003648 cat >> confdefs.h <<\EOF
Guido van Rossumec95c7b1998-08-04 17:59:56 +00003649#define BEOS_THREADS 1
3650EOF
3651
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003652 LIBOBJS="$LIBOBJS thread.o"
Guido van Rossumec95c7b1998-08-04 17:59:56 +00003653else
3654 echo "$ac_t""no" 1>&6
3655
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003656 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
3657echo "configure:3658: checking for pthread_create in -lpthreads" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00003658ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003659if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003660 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003661else
3662 ac_save_LIBS="$LIBS"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003663LIBS="-lpthreads $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003664cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003665#line 3666 "configure"
Greg Steinadf63d62000-07-05 10:38:09 +00003666#include "confdefs.h"
3667/* Override any gcc2 internal prototype to avoid an error. */
3668/* We use char because int might match the return type of a gcc2
3669 builtin and then its argument prototype would still apply. */
3670char pthread_create();
3671
3672int main() {
3673pthread_create()
3674; return 0; }
3675EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003676if { (eval echo configure:3677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Greg Steinadf63d62000-07-05 10:38:09 +00003677 rm -rf conftest*
3678 eval "ac_cv_lib_$ac_lib_var=yes"
3679else
3680 echo "configure: failed program was:" >&5
3681 cat conftest.$ac_ext >&5
3682 rm -rf conftest*
3683 eval "ac_cv_lib_$ac_lib_var=no"
3684fi
3685rm -f conftest*
3686LIBS="$ac_save_LIBS"
3687
3688fi
3689if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3690 echo "$ac_t""yes" 1>&6
3691 cat >> confdefs.h <<\EOF
3692#define WITH_THREAD 1
3693EOF
3694
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003695 cat >> confdefs.h <<\EOF
Greg Steinadf63d62000-07-05 10:38:09 +00003696#define _POSIX_THREADS 1
3697EOF
3698
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003699 LIBS="$LIBS -lpthreads"
3700 LIBOBJS="$LIBOBJS thread.o"
Greg Steinadf63d62000-07-05 10:38:09 +00003701else
3702 echo "$ac_t""no" 1>&6
3703
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003704 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
3705echo "configure:3706: checking for pthread_create in -lc_r" >&5
Greg Steinadf63d62000-07-05 10:38:09 +00003706ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003707if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Greg Steinadf63d62000-07-05 10:38:09 +00003708 echo $ac_n "(cached) $ac_c" 1>&6
3709else
3710 ac_save_LIBS="$LIBS"
3711LIBS="-lc_r $LIBS"
3712cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003713#line 3714 "configure"
Guido van Rossum49545951997-12-02 19:28:29 +00003714#include "confdefs.h"
3715/* Override any gcc2 internal prototype to avoid an error. */
3716/* We use char because int might match the return type of a gcc2
3717 builtin and then its argument prototype would still apply. */
3718char pthread_create();
3719
3720int main() {
3721pthread_create()
3722; return 0; }
3723EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003724if { (eval echo configure:3725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum49545951997-12-02 19:28:29 +00003725 rm -rf conftest*
3726 eval "ac_cv_lib_$ac_lib_var=yes"
3727else
3728 echo "configure: failed program was:" >&5
3729 cat conftest.$ac_ext >&5
3730 rm -rf conftest*
3731 eval "ac_cv_lib_$ac_lib_var=no"
3732fi
3733rm -f conftest*
3734LIBS="$ac_save_LIBS"
3735
3736fi
3737if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3738 echo "$ac_t""yes" 1>&6
3739 cat >> confdefs.h <<\EOF
3740#define WITH_THREAD 1
3741EOF
3742
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003743 cat >> confdefs.h <<\EOF
Guido van Rossum49545951997-12-02 19:28:29 +00003744#define _POSIX_THREADS 1
3745EOF
3746
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003747 LIBS="$LIBS -lc_r"
3748 LIBOBJS="$LIBOBJS thread.o"
Guido van Rossum07bd90e2000-05-08 13:41:38 +00003749else
3750 echo "$ac_t""no" 1>&6
3751
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003752 echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6
3753echo "configure:3754: checking for __d6_pthread_create in -lthread" >&5
Greg Steinadf63d62000-07-05 10:38:09 +00003754ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003755if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Guido van Rossum07bd90e2000-05-08 13:41:38 +00003756 echo $ac_n "(cached) $ac_c" 1>&6
3757else
3758 ac_save_LIBS="$LIBS"
Greg Steinadf63d62000-07-05 10:38:09 +00003759LIBS="-lthread $LIBS"
Guido van Rossum07bd90e2000-05-08 13:41:38 +00003760cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003761#line 3762 "configure"
Guido van Rossum07bd90e2000-05-08 13:41:38 +00003762#include "confdefs.h"
3763/* Override any gcc2 internal prototype to avoid an error. */
3764/* We use char because int might match the return type of a gcc2
3765 builtin and then its argument prototype would still apply. */
Greg Steinadf63d62000-07-05 10:38:09 +00003766char __d6_pthread_create();
Guido van Rossum07bd90e2000-05-08 13:41:38 +00003767
3768int main() {
Greg Steinadf63d62000-07-05 10:38:09 +00003769__d6_pthread_create()
Guido van Rossum07bd90e2000-05-08 13:41:38 +00003770; return 0; }
3771EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003772if { (eval echo configure:3773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum07bd90e2000-05-08 13:41:38 +00003773 rm -rf conftest*
3774 eval "ac_cv_lib_$ac_lib_var=yes"
3775else
3776 echo "configure: failed program was:" >&5
3777 cat conftest.$ac_ext >&5
3778 rm -rf conftest*
3779 eval "ac_cv_lib_$ac_lib_var=no"
3780fi
3781rm -f conftest*
3782LIBS="$ac_save_LIBS"
3783
3784fi
3785if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3786 echo "$ac_t""yes" 1>&6
3787 cat >> confdefs.h <<\EOF
3788#define WITH_THREAD 1
3789EOF
3790
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003791 cat >> confdefs.h <<\EOF
Guido van Rossum07bd90e2000-05-08 13:41:38 +00003792#define _POSIX_THREADS 1
3793EOF
3794
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003795 LIBS="$LIBS -lthread"
3796 LIBOBJS="$LIBOBJS thread.o"
Guido van Rossum49545951997-12-02 19:28:29 +00003797else
3798 echo "$ac_t""no" 1>&6
3799
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003800 echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6
3801echo "configure:3802: checking for __pthread_create_system in -lpthread" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003802ac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'`
3803if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3804 echo $ac_n "(cached) $ac_c" 1>&6
3805else
3806 ac_save_LIBS="$LIBS"
3807LIBS="-lpthread $LIBS"
3808cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003809#line 3810 "configure"
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003810#include "confdefs.h"
3811/* Override any gcc2 internal prototype to avoid an error. */
3812/* We use char because int might match the return type of a gcc2
3813 builtin and then its argument prototype would still apply. */
3814char __pthread_create_system();
3815
3816int main() {
3817__pthread_create_system()
3818; return 0; }
3819EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003820if { (eval echo configure:3821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003821 rm -rf conftest*
3822 eval "ac_cv_lib_$ac_lib_var=yes"
3823else
3824 echo "configure: failed program was:" >&5
3825 cat conftest.$ac_ext >&5
3826 rm -rf conftest*
3827 eval "ac_cv_lib_$ac_lib_var=no"
3828fi
3829rm -f conftest*
3830LIBS="$ac_save_LIBS"
3831
3832fi
3833if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3834 echo "$ac_t""yes" 1>&6
3835 cat >> confdefs.h <<\EOF
3836#define WITH_THREAD 1
3837EOF
3838
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003839 cat >> confdefs.h <<\EOF
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003840#define _POSIX_THREADS 1
3841EOF
3842
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003843 LIBS="$LIBS -lpthread"
3844 LIBOBJS="$LIBOBJS thread.o"
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003845else
3846 echo "$ac_t""no" 1>&6
3847
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003848 echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6
3849echo "configure:3850: checking for pthread_create in -lcma" >&5
Guido van Rossumb93a8621998-05-07 13:27:32 +00003850ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003851if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Guido van Rossumb93a8621998-05-07 13:27:32 +00003852 echo $ac_n "(cached) $ac_c" 1>&6
3853else
3854 ac_save_LIBS="$LIBS"
3855LIBS="-lcma $LIBS"
3856cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003857#line 3858 "configure"
Guido van Rossumb93a8621998-05-07 13:27:32 +00003858#include "confdefs.h"
3859/* Override any gcc2 internal prototype to avoid an error. */
3860/* We use char because int might match the return type of a gcc2
3861 builtin and then its argument prototype would still apply. */
3862char pthread_create();
3863
3864int main() {
3865pthread_create()
3866; return 0; }
3867EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003868if { (eval echo configure:3869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossumb93a8621998-05-07 13:27:32 +00003869 rm -rf conftest*
3870 eval "ac_cv_lib_$ac_lib_var=yes"
3871else
3872 echo "configure: failed program was:" >&5
3873 cat conftest.$ac_ext >&5
3874 rm -rf conftest*
3875 eval "ac_cv_lib_$ac_lib_var=no"
3876fi
3877rm -f conftest*
3878LIBS="$ac_save_LIBS"
3879
3880fi
3881if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3882 echo "$ac_t""yes" 1>&6
3883 cat >> confdefs.h <<\EOF
3884#define WITH_THREAD 1
3885EOF
3886
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003887 cat >> confdefs.h <<\EOF
Guido van Rossumb93a8621998-05-07 13:27:32 +00003888#define _POSIX_THREADS 1
3889EOF
3890
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003891 LIBS="$LIBS -lcma"
3892 LIBOBJS="$LIBOBJS thread.o"
Guido van Rossumb93a8621998-05-07 13:27:32 +00003893else
3894 echo "$ac_t""no" 1>&6
Thomas Wouters0db2b2b2000-08-26 11:33:43 +00003895
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003896 USE_THREAD_MODULE="#"
Guido van Rossum2d38f911996-06-26 19:47:01 +00003897fi
3898
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003899
Guido van Rossum627b2d71993-12-24 10:39:16 +00003900fi
3901
Guido van Rossum7b3853f1996-07-30 18:09:35 +00003902fi
3903
Guido van Rossum0be3e491997-05-22 20:33:33 +00003904fi
3905
Guido van Rossum49545951997-12-02 19:28:29 +00003906fi
3907
Guido van Rossumb93a8621998-05-07 13:27:32 +00003908fi
3909
Guido van Rossumec95c7b1998-08-04 17:59:56 +00003910fi
3911
Guido van Rossumad678af1998-10-02 14:42:15 +00003912fi
3913
Guido van Rossum07bd90e2000-05-08 13:41:38 +00003914fi
3915
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003916fi
3917
Guido van Rossum0be3e491997-05-22 20:33:33 +00003918
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003919 echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6
3920echo "configure:3921: checking for usconfig in -lmpc" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00003921ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003922if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003923 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003924else
3925 ac_save_LIBS="$LIBS"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003926LIBS="-lmpc $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003927cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003928#line 3929 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00003929#include "confdefs.h"
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003930/* Override any gcc2 internal prototype to avoid an error. */
3931/* We use char because int might match the return type of a gcc2
3932 builtin and then its argument prototype would still apply. */
3933char usconfig();
Guido van Rossum627b2d71993-12-24 10:39:16 +00003934
Guido van Rossumf78abae1997-01-21 22:02:36 +00003935int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003936usconfig()
3937; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00003938EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003939if { (eval echo configure:3940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00003940 rm -rf conftest*
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003941 eval "ac_cv_lib_$ac_lib_var=yes"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003942else
Guido van Rossumf78abae1997-01-21 22:02:36 +00003943 echo "configure: failed program was:" >&5
3944 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003945 rm -rf conftest*
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003946 eval "ac_cv_lib_$ac_lib_var=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00003947fi
3948rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003949LIBS="$ac_save_LIBS"
3950
3951fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003952if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003953 echo "$ac_t""yes" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003954 cat >> confdefs.h <<\EOF
3955#define WITH_THREAD 1
3956EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00003957
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003958 LIBS="$LIBS -lmpc"
3959 LIBOBJS="$LIBOBJS thread.o"
3960 USE_THREAD_MODULE=""
Guido van Rossum7f43da71994-08-01 12:15:30 +00003961else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003962 echo "$ac_t""no" 1>&6
Guido van Rossum627b2d71993-12-24 10:39:16 +00003963fi
3964
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003965 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
3966echo "configure:3967: checking for thr_create in -lthread" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00003967ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00003968if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003969 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003970else
3971 ac_save_LIBS="$LIBS"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003972LIBS="-lthread $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003973cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003974#line 3975 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00003975#include "confdefs.h"
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003976/* Override any gcc2 internal prototype to avoid an error. */
3977/* We use char because int might match the return type of a gcc2
3978 builtin and then its argument prototype would still apply. */
3979char thr_create();
Guido van Rossum627b2d71993-12-24 10:39:16 +00003980
Guido van Rossumf78abae1997-01-21 22:02:36 +00003981int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003982thr_create()
3983; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00003984EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00003985if { (eval echo configure:3986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00003986 rm -rf conftest*
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003987 eval "ac_cv_lib_$ac_lib_var=yes"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003988else
Guido van Rossumf78abae1997-01-21 22:02:36 +00003989 echo "configure: failed program was:" >&5
3990 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003991 rm -rf conftest*
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003992 eval "ac_cv_lib_$ac_lib_var=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00003993fi
3994rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00003995LIBS="$ac_save_LIBS"
3996
3997fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00003998if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00003999 echo "$ac_t""yes" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004000 cat >> confdefs.h <<\EOF
4001#define WITH_THREAD 1
4002EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00004003
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004004 LIBS="$LIBS -lthread"
4005 LIBOBJS="$LIBOBJS thread.o"
4006 USE_THREAD_MODULE=""
Guido van Rossum7f43da71994-08-01 12:15:30 +00004007else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004008 echo "$ac_t""no" 1>&6
Guido van Rossum627b2d71993-12-24 10:39:16 +00004009fi
4010
Jeremy Hylton1a2ca862000-10-16 16:59:12 +00004011
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004012 if test "$USE_THREAD_MODULE" != "#"
4013 then
4014 # If the above checks didn't disable threads, (at least) OSF1
4015 # needs this '-threads' argument during linking.
4016 case $ac_sys_system in
4017 OSF1) LDLAST=-threads;;
4018 esac
4019 fi
Jeremy Hylton1a2ca862000-10-16 16:59:12 +00004020 fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00004021fi
4022
Barry Warsawef82cd72000-06-30 16:21:01 +00004023# Check for GC support
4024
4025USE_GC_MODULE=""
4026echo $ac_n "checking for --with-cycle-gc""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004027echo "configure:4028: checking for --with-cycle-gc" >&5
Barry Warsawef82cd72000-06-30 16:21:01 +00004028# Check whether --with-cycle-gc or --without-cycle-gc was given.
4029if test "${with_cycle_gc+set}" = set; then
4030 withval="$with_cycle_gc"
4031 :
4032fi
4033
4034
4035if test -z "$with_cycle_gc"
4036then with_cycle_gc="yes"
4037fi
4038if test "$with_cycle_gc" = "no"
4039then
4040 USE_GC_MODULE="#"
4041else
4042 cat >> confdefs.h <<\EOF
4043#define WITH_CYCLE_GC 1
4044EOF
4045
4046fi
4047echo "$ac_t""$with_cycle_gc" 1>&6
4048
Neil Schemenauera35c6882001-02-27 04:45:05 +00004049# Check for Python-specific malloc support
4050echo $ac_n "checking for --with-pymalloc""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004051echo "configure:4052: checking for --with-pymalloc" >&5
Neil Schemenauera35c6882001-02-27 04:45:05 +00004052# Check whether --with-pymalloc or --without-pymalloc was given.
4053if test "${with_pymalloc+set}" = set; then
4054 withval="$with_pymalloc"
4055
4056if test "$withval" != no
4057then cat >> confdefs.h <<\EOF
4058#define WITH_PYMALLOC 1
4059EOF
4060 echo "$ac_t""yes" 1>&6
4061else echo "$ac_t""no" 1>&6
4062fi
4063else
4064 echo "$ac_t""no" 1>&6
4065fi
4066
4067
Barry Warsawef82cd72000-06-30 16:21:01 +00004068# Check for --with-wctype-functions
4069echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004070echo "configure:4071: checking for --with-wctype-functions" >&5
Barry Warsawef82cd72000-06-30 16:21:01 +00004071# Check whether --with-wctype-functions or --without-wctype-functions was given.
4072if test "${with_wctype_functions+set}" = set; then
4073 withval="$with_wctype_functions"
4074
4075if test "$withval" != no
4076then cat >> confdefs.h <<\EOF
4077#define WANT_WCTYPE_FUNCTIONS 1
4078EOF
4079 echo "$ac_t""yes" 1>&6
4080else echo "$ac_t""no" 1>&6
4081fi
4082else
4083 echo "$ac_t""no" 1>&6
4084fi
4085
4086
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004087# -I${DLINCLDIR} is added to the compile rule for importdl.o
Guido van Rossum7f43da71994-08-01 12:15:30 +00004088
4089DLINCLDIR=/
4090
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004091echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004092echo "configure:4093: checking for --with-sgi-dl" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004093# Check whether --with-sgi-dl or --without-sgi-dl was given.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004094if test "${with_sgi_dl+set}" = set; then
4095 withval="$with_sgi_dl"
Guido van Rossum7f43da71994-08-01 12:15:30 +00004096
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004097echo "$ac_t""$withval" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004098cat >> confdefs.h <<\EOF
4099#define WITH_SGI_DL 1
4100EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00004101
Guido van Rossume97ee181999-12-20 21:27:22 +00004102DYNLOADFILE="dynload_dl.o"
Guido van Rossum7f43da71994-08-01 12:15:30 +00004103dldir=$withval
Guido van Rossum40951012000-10-07 16:21:27 +00004104if test ! -z "$dldir" -a -d "$dldir"
Guido van Rossum84e7b241996-08-19 21:59:00 +00004105then LDFLAGS="$LDFLAGS -L$dldir"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004106else { echo "configure: error: proper usage is --with-sgi-dl=DIRECTORY" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00004107fi
4108DLINCLDIR=${dldir}
4109LIBS="$LIBS -ldl -lmld"
Guido van Rossumda88dad1995-01-26 00:46:29 +00004110else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004111 echo "$ac_t""no" 1>&6
Guido van Rossum7f43da71994-08-01 12:15:30 +00004112fi
4113
4114
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004115echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004116echo "configure:4117: checking for --with-dl-dld" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004117# Check whether --with-dl-dld or --without-dl-dld was given.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004118if test "${with_dl_dld+set}" = set; then
4119 withval="$with_dl_dld"
Guido van Rossum7f43da71994-08-01 12:15:30 +00004120
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004121echo "$ac_t""$withval" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004122cat >> confdefs.h <<\EOF
4123#define WITH_DL_DLD 1
4124EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00004125
Guido van Rossume97ee181999-12-20 21:27:22 +00004126DYNLOADFILE="dynload_dl.o"
Guido van Rossum7f43da71994-08-01 12:15:30 +00004127dldir=`echo "$withval" | sed 's/,.*//'`
4128dlddir=`echo "$withval" | sed 's/.*,//'`
Barry Warsaw7d1219d2000-10-05 18:45:53 +00004129if test ! -z "$dldir" -a -d "$dldir" -a ! -z "$dlddir" -a -d "$dlddir"
Guido van Rossum84e7b241996-08-19 21:59:00 +00004130then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004131else { echo "configure: error: proper usage is --with-dl-dld=DL_DIRECTORY" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00004132fi
4133DLINCLDIR=${dldir}
4134LIBS="$LIBS -ldl -ldld"
Guido van Rossumda88dad1995-01-26 00:46:29 +00004135else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004136 echo "$ac_t""no" 1>&6
Guido van Rossum7f43da71994-08-01 12:15:30 +00004137fi
4138
4139
Guido van Rossume97ee181999-12-20 21:27:22 +00004140# the dlopen() function means we might want to use dynload_shlib.o. some
4141# platforms, such as AIX, have dlopen(), but don't want to use it.
Thomas Wouters3a584202000-08-05 23:28:51 +00004142for ac_func in dlopen
4143do
4144echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004145echo "configure:4146: checking for $ac_func" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004146if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
Guido van Rossume97ee181999-12-20 21:27:22 +00004147 echo $ac_n "(cached) $ac_c" 1>&6
4148else
4149 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004150#line 4151 "configure"
Guido van Rossume97ee181999-12-20 21:27:22 +00004151#include "confdefs.h"
4152/* System header to define __stub macros and hopefully few prototypes,
Thomas Wouters3a584202000-08-05 23:28:51 +00004153 which can conflict with char $ac_func(); below. */
Guido van Rossume97ee181999-12-20 21:27:22 +00004154#include <assert.h>
4155/* Override any gcc2 internal prototype to avoid an error. */
4156/* We use char because int might match the return type of a gcc2
4157 builtin and then its argument prototype would still apply. */
Thomas Wouters3a584202000-08-05 23:28:51 +00004158char $ac_func();
Guido van Rossume97ee181999-12-20 21:27:22 +00004159
4160int main() {
4161
4162/* The GNU C library defines this for functions which it implements
4163 to always fail with ENOSYS. Some functions are actually named
4164 something starting with __ and the normal name is an alias. */
Thomas Wouters3a584202000-08-05 23:28:51 +00004165#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Guido van Rossume97ee181999-12-20 21:27:22 +00004166choke me
4167#else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004168$ac_func();
Guido van Rossume97ee181999-12-20 21:27:22 +00004169#endif
4170
4171; return 0; }
4172EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004173if { (eval echo configure:4174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossume97ee181999-12-20 21:27:22 +00004174 rm -rf conftest*
Thomas Wouters3a584202000-08-05 23:28:51 +00004175 eval "ac_cv_func_$ac_func=yes"
Guido van Rossume97ee181999-12-20 21:27:22 +00004176else
4177 echo "configure: failed program was:" >&5
4178 cat conftest.$ac_ext >&5
4179 rm -rf conftest*
Thomas Wouters3a584202000-08-05 23:28:51 +00004180 eval "ac_cv_func_$ac_func=no"
Guido van Rossume97ee181999-12-20 21:27:22 +00004181fi
4182rm -f conftest*
4183fi
4184
Thomas Wouters3a584202000-08-05 23:28:51 +00004185if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
Guido van Rossume97ee181999-12-20 21:27:22 +00004186 echo "$ac_t""yes" 1>&6
Thomas Wouters3a584202000-08-05 23:28:51 +00004187 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4188 cat >> confdefs.h <<EOF
4189#define $ac_tr_func 1
4190EOF
4191
Guido van Rossume97ee181999-12-20 21:27:22 +00004192else
4193 echo "$ac_t""no" 1>&6
4194fi
Thomas Wouters3a584202000-08-05 23:28:51 +00004195done
Guido van Rossume97ee181999-12-20 21:27:22 +00004196
4197
4198# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
4199# loading of modules.
4200
4201echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004202echo "configure:4203: checking DYNLOADFILE" >&5
Guido van Rossume97ee181999-12-20 21:27:22 +00004203if test -z "$DYNLOADFILE"
4204then
4205 case $ac_sys_system/$ac_sys_release in
4206 AIX*) DYNLOADFILE="dynload_aix.o";;
4207 BeOS*) DYNLOADFILE="dynload_beos.o";;
4208 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
Guido van Rossum5839e582000-10-09 19:52:35 +00004209 Darwin/*|next/*) DYNLOADFILE="dynload_next.o";;
Guido van Rossume97ee181999-12-20 21:27:22 +00004210 *)
4211 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
4212 # out any dynamic loading
4213 if test "$ac_cv_func_dlopen" = yes
4214 then DYNLOADFILE="dynload_shlib.o"
4215 else DYNLOADFILE="dynload_stub.o"
4216 fi
4217 ;;
4218 esac
4219fi
4220echo "$ac_t""$DYNLOADFILE" 1>&6
4221if test "$DYNLOADFILE" != "dynload_stub.o"
4222then
4223 cat >> confdefs.h <<\EOF
4224#define HAVE_DYNAMIC_LOADING 1
4225EOF
4226
4227fi
4228
Guido van Rossum627b2d71993-12-24 10:39:16 +00004229# checks for library functions
Thomas Wouters3a584202000-08-05 23:28:51 +00004230for ac_func in alarm chown clock confstr ctermid ctermid_r execv \
Fred Drake35a092f1999-12-13 16:23:35 +00004231 flock fork fsync fdatasync fpathconf ftime ftruncate \
Andrew M. Kuchlinga9586c72001-01-08 17:58:56 +00004232 getgroups getlogin getpeername getpid getpwent getwd \
Andrew M. Kuchling22c69342000-06-18 15:07:40 +00004233 kill link lstat mkfifo mktime mremap \
Andrew M. Kuchling5821b772000-08-25 01:14:08 +00004234 nice pathconf pause plock poll pthread_init \
Fred Drake35a092f1999-12-13 16:23:35 +00004235 putenv readlink \
Andrew M. Kuchling8d2f2b22000-07-13 01:26:58 +00004236 select setegid seteuid setgid \
Thomas Wouters3a584202000-08-05 23:28:51 +00004237 setlocale setregid setreuid setsid setpgid setuid setvbuf \
Fred Drake35a092f1999-12-13 16:23:35 +00004238 sigaction siginterrupt sigrelse strftime strptime symlink sysconf \
Fred Drake89143df1999-12-09 22:03:25 +00004239 tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
Thomas Wouters70c21a12000-07-14 14:28:33 +00004240 truncate uname waitpid _getpty
Guido van Rossum627b2d71993-12-24 10:39:16 +00004241do
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004242echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004243echo "configure:4244: checking for $ac_func" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004244if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004245 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004246else
4247 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004248#line 4249 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00004249#include "confdefs.h"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004250/* System header to define __stub macros and hopefully few prototypes,
4251 which can conflict with char $ac_func(); below. */
4252#include <assert.h>
4253/* Override any gcc2 internal prototype to avoid an error. */
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004254/* We use char because int might match the return type of a gcc2
4255 builtin and then its argument prototype would still apply. */
4256char $ac_func();
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004257
Guido van Rossumf78abae1997-01-21 22:02:36 +00004258int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004259
Guido van Rossum627b2d71993-12-24 10:39:16 +00004260/* The GNU C library defines this for functions which it implements
4261 to always fail with ENOSYS. Some functions are actually named
4262 something starting with __ and the normal name is an alias. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004263#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Guido van Rossum627b2d71993-12-24 10:39:16 +00004264choke me
4265#else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004266$ac_func();
Guido van Rossum627b2d71993-12-24 10:39:16 +00004267#endif
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004268
Guido van Rossum7f43da71994-08-01 12:15:30 +00004269; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00004270EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004271if { (eval echo configure:4272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00004272 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004273 eval "ac_cv_func_$ac_func=yes"
4274else
Guido van Rossumf78abae1997-01-21 22:02:36 +00004275 echo "configure: failed program was:" >&5
4276 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004277 rm -rf conftest*
4278 eval "ac_cv_func_$ac_func=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00004279fi
4280rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004281fi
Guido van Rossumf78abae1997-01-21 22:02:36 +00004282
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004283if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004284 echo "$ac_t""yes" 1>&6
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004285 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004286 cat >> confdefs.h <<EOF
4287#define $ac_tr_func 1
4288EOF
4289
4290else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004291 echo "$ac_t""no" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004292fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00004293done
Guido van Rossum7b3853f1996-07-30 18:09:35 +00004294
Guido van Rossumf98e2a71999-01-06 18:53:34 +00004295
Fred Drake8cef4cf2000-06-28 16:40:38 +00004296# check for openpty and forkpty
4297
4298for ac_func in openpty
Guido van Rossum627b2d71993-12-24 10:39:16 +00004299do
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004300echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004301echo "configure:4302: checking for $ac_func" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004302if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004303 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004304else
4305 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004306#line 4307 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00004307#include "confdefs.h"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004308/* System header to define __stub macros and hopefully few prototypes,
4309 which can conflict with char $ac_func(); below. */
4310#include <assert.h>
4311/* Override any gcc2 internal prototype to avoid an error. */
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004312/* We use char because int might match the return type of a gcc2
4313 builtin and then its argument prototype would still apply. */
4314char $ac_func();
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004315
Guido van Rossumf78abae1997-01-21 22:02:36 +00004316int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004317
Guido van Rossum627b2d71993-12-24 10:39:16 +00004318/* The GNU C library defines this for functions which it implements
4319 to always fail with ENOSYS. Some functions are actually named
4320 something starting with __ and the normal name is an alias. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004321#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Guido van Rossum627b2d71993-12-24 10:39:16 +00004322choke me
4323#else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004324$ac_func();
Guido van Rossum627b2d71993-12-24 10:39:16 +00004325#endif
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004326
Guido van Rossum7f43da71994-08-01 12:15:30 +00004327; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00004328EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004329if { (eval echo configure:4330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Fred Drake8cef4cf2000-06-28 16:40:38 +00004330 rm -rf conftest*
4331 eval "ac_cv_func_$ac_func=yes"
4332else
4333 echo "configure: failed program was:" >&5
4334 cat conftest.$ac_ext >&5
4335 rm -rf conftest*
4336 eval "ac_cv_func_$ac_func=no"
4337fi
4338rm -f conftest*
4339fi
4340
4341if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4342 echo "$ac_t""yes" 1>&6
4343 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4344 cat >> confdefs.h <<EOF
4345#define $ac_tr_func 1
4346EOF
4347
4348else
4349 echo "$ac_t""no" 1>&6
4350echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004351echo "configure:4352: checking for openpty in -lutil" >&5
Fred Drake8cef4cf2000-06-28 16:40:38 +00004352ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004353if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Fred Drake8cef4cf2000-06-28 16:40:38 +00004354 echo $ac_n "(cached) $ac_c" 1>&6
4355else
4356 ac_save_LIBS="$LIBS"
4357LIBS="-lutil $LIBS"
4358cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004359#line 4360 "configure"
Fred Drake8cef4cf2000-06-28 16:40:38 +00004360#include "confdefs.h"
4361/* Override any gcc2 internal prototype to avoid an error. */
4362/* We use char because int might match the return type of a gcc2
4363 builtin and then its argument prototype would still apply. */
4364char openpty();
4365
4366int main() {
4367openpty()
4368; return 0; }
4369EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004370if { (eval echo configure:4371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Fred Drake8cef4cf2000-06-28 16:40:38 +00004371 rm -rf conftest*
4372 eval "ac_cv_lib_$ac_lib_var=yes"
4373else
4374 echo "configure: failed program was:" >&5
4375 cat conftest.$ac_ext >&5
4376 rm -rf conftest*
4377 eval "ac_cv_lib_$ac_lib_var=no"
4378fi
4379rm -f conftest*
4380LIBS="$ac_save_LIBS"
4381
4382fi
4383if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4384 echo "$ac_t""yes" 1>&6
4385 cat >> confdefs.h <<\EOF
4386#define HAVE_OPENPTY 1
4387EOF
4388 LIBS="$LIBS -lutil"
4389else
4390 echo "$ac_t""no" 1>&6
4391fi
4392
4393fi
4394done
4395
4396for ac_func in forkpty
4397do
4398echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004399echo "configure:4400: checking for $ac_func" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004400if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
Fred Drake8cef4cf2000-06-28 16:40:38 +00004401 echo $ac_n "(cached) $ac_c" 1>&6
4402else
4403 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004404#line 4405 "configure"
Fred Drake8cef4cf2000-06-28 16:40:38 +00004405#include "confdefs.h"
4406/* System header to define __stub macros and hopefully few prototypes,
4407 which can conflict with char $ac_func(); below. */
4408#include <assert.h>
4409/* Override any gcc2 internal prototype to avoid an error. */
4410/* We use char because int might match the return type of a gcc2
4411 builtin and then its argument prototype would still apply. */
4412char $ac_func();
Fred Drake8cef4cf2000-06-28 16:40:38 +00004413
4414int main() {
4415
4416/* The GNU C library defines this for functions which it implements
4417 to always fail with ENOSYS. Some functions are actually named
4418 something starting with __ and the normal name is an alias. */
4419#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4420choke me
4421#else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004422$ac_func();
Fred Drake8cef4cf2000-06-28 16:40:38 +00004423#endif
4424
4425; return 0; }
4426EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004427if { (eval echo configure:4428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Fred Drake8cef4cf2000-06-28 16:40:38 +00004428 rm -rf conftest*
4429 eval "ac_cv_func_$ac_func=yes"
4430else
4431 echo "configure: failed program was:" >&5
4432 cat conftest.$ac_ext >&5
4433 rm -rf conftest*
4434 eval "ac_cv_func_$ac_func=no"
4435fi
4436rm -f conftest*
4437fi
4438
4439if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4440 echo "$ac_t""yes" 1>&6
4441 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4442 cat >> confdefs.h <<EOF
4443#define $ac_tr_func 1
4444EOF
4445
4446else
4447 echo "$ac_t""no" 1>&6
4448echo $ac_n "checking for forkpty in -lutil""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004449echo "configure:4450: checking for forkpty in -lutil" >&5
Fred Drake8cef4cf2000-06-28 16:40:38 +00004450ac_lib_var=`echo util'_'forkpty | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004451if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Fred Drake8cef4cf2000-06-28 16:40:38 +00004452 echo $ac_n "(cached) $ac_c" 1>&6
4453else
4454 ac_save_LIBS="$LIBS"
4455LIBS="-lutil $LIBS"
4456cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004457#line 4458 "configure"
Fred Drake8cef4cf2000-06-28 16:40:38 +00004458#include "confdefs.h"
4459/* Override any gcc2 internal prototype to avoid an error. */
4460/* We use char because int might match the return type of a gcc2
4461 builtin and then its argument prototype would still apply. */
4462char forkpty();
4463
4464int main() {
4465forkpty()
4466; return 0; }
4467EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004468if { (eval echo configure:4469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Fred Drake8cef4cf2000-06-28 16:40:38 +00004469 rm -rf conftest*
4470 eval "ac_cv_lib_$ac_lib_var=yes"
4471else
4472 echo "configure: failed program was:" >&5
4473 cat conftest.$ac_ext >&5
4474 rm -rf conftest*
4475 eval "ac_cv_lib_$ac_lib_var=no"
4476fi
4477rm -f conftest*
4478LIBS="$ac_save_LIBS"
4479
4480fi
4481if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4482 echo "$ac_t""yes" 1>&6
4483 cat >> confdefs.h <<\EOF
4484#define HAVE_FORKPTY 1
4485EOF
4486 LIBS="$LIBS -lutil"
4487else
4488 echo "$ac_t""no" 1>&6
4489fi
4490
4491fi
4492done
4493
4494
4495# check for long file support functions
4496for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
4497do
4498echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004499echo "configure:4500: checking for $ac_func" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004500if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
Fred Drake8cef4cf2000-06-28 16:40:38 +00004501 echo $ac_n "(cached) $ac_c" 1>&6
4502else
4503 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004504#line 4505 "configure"
Fred Drake8cef4cf2000-06-28 16:40:38 +00004505#include "confdefs.h"
4506/* System header to define __stub macros and hopefully few prototypes,
4507 which can conflict with char $ac_func(); below. */
4508#include <assert.h>
4509/* Override any gcc2 internal prototype to avoid an error. */
4510/* We use char because int might match the return type of a gcc2
4511 builtin and then its argument prototype would still apply. */
4512char $ac_func();
Fred Drake8cef4cf2000-06-28 16:40:38 +00004513
4514int main() {
4515
4516/* The GNU C library defines this for functions which it implements
4517 to always fail with ENOSYS. Some functions are actually named
4518 something starting with __ and the normal name is an alias. */
4519#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4520choke me
4521#else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004522$ac_func();
Fred Drake8cef4cf2000-06-28 16:40:38 +00004523#endif
4524
4525; return 0; }
4526EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004527if { (eval echo configure:4528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossumf98e2a71999-01-06 18:53:34 +00004528 rm -rf conftest*
4529 eval "ac_cv_func_$ac_func=yes"
4530else
4531 echo "configure: failed program was:" >&5
4532 cat conftest.$ac_ext >&5
4533 rm -rf conftest*
4534 eval "ac_cv_func_$ac_func=no"
4535fi
4536rm -f conftest*
4537fi
4538
4539if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4540 echo "$ac_t""yes" 1>&6
4541 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4542 cat >> confdefs.h <<EOF
4543#define $ac_tr_func 1
4544EOF
4545
4546else
4547 echo "$ac_t""no" 1>&6
4548fi
4549done
4550
4551
4552for ac_func in dup2 getcwd strdup strerror memmove
4553do
4554echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004555echo "configure:4556: checking for $ac_func" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004556if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
Guido van Rossumf98e2a71999-01-06 18:53:34 +00004557 echo $ac_n "(cached) $ac_c" 1>&6
4558else
4559 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004560#line 4561 "configure"
Guido van Rossumf98e2a71999-01-06 18:53:34 +00004561#include "confdefs.h"
4562/* System header to define __stub macros and hopefully few prototypes,
4563 which can conflict with char $ac_func(); below. */
4564#include <assert.h>
4565/* Override any gcc2 internal prototype to avoid an error. */
4566/* We use char because int might match the return type of a gcc2
4567 builtin and then its argument prototype would still apply. */
4568char $ac_func();
4569
4570int main() {
4571
4572/* The GNU C library defines this for functions which it implements
4573 to always fail with ENOSYS. Some functions are actually named
4574 something starting with __ and the normal name is an alias. */
4575#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4576choke me
4577#else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004578$ac_func();
Guido van Rossumf98e2a71999-01-06 18:53:34 +00004579#endif
4580
4581; return 0; }
4582EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004583if { (eval echo configure:4584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004584 rm -rf conftest*
4585 eval "ac_cv_func_$ac_func=yes"
Guido van Rossum627b2d71993-12-24 10:39:16 +00004586else
Guido van Rossumf78abae1997-01-21 22:02:36 +00004587 echo "configure: failed program was:" >&5
4588 cat conftest.$ac_ext >&5
Guido van Rossum627b2d71993-12-24 10:39:16 +00004589 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004590 eval "ac_cv_func_$ac_func=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00004591fi
4592rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004593fi
Guido van Rossumf78abae1997-01-21 22:02:36 +00004594
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004595if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004596 echo "$ac_t""yes" 1>&6
Guido van Rossumf78abae1997-01-21 22:02:36 +00004597 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4598 cat >> confdefs.h <<EOF
4599#define $ac_tr_func 1
4600EOF
4601
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004602else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004603 echo "$ac_t""no" 1>&6
Guido van Rossume6c2cf11999-01-08 21:08:33 +00004604LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004605fi
Guido van Rossum627b2d71993-12-24 10:39:16 +00004606done
4607
Guido van Rossumf78abae1997-01-21 22:02:36 +00004608
Thomas Wouters3a584202000-08-05 23:28:51 +00004609for ac_func in getpgrp
4610do
4611echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004612echo "configure:4613: checking for $ac_func" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004613if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004614 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004615else
4616 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004617#line 4618 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00004618#include "confdefs.h"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004619/* System header to define __stub macros and hopefully few prototypes,
Thomas Wouters3a584202000-08-05 23:28:51 +00004620 which can conflict with char $ac_func(); below. */
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004621#include <assert.h>
4622/* Override any gcc2 internal prototype to avoid an error. */
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004623/* We use char because int might match the return type of a gcc2
4624 builtin and then its argument prototype would still apply. */
Thomas Wouters3a584202000-08-05 23:28:51 +00004625char $ac_func();
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004626
Guido van Rossumf78abae1997-01-21 22:02:36 +00004627int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004628
Guido van Rossum627b2d71993-12-24 10:39:16 +00004629/* The GNU C library defines this for functions which it implements
4630 to always fail with ENOSYS. Some functions are actually named
4631 something starting with __ and the normal name is an alias. */
Thomas Wouters3a584202000-08-05 23:28:51 +00004632#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Guido van Rossum627b2d71993-12-24 10:39:16 +00004633choke me
4634#else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004635$ac_func();
Guido van Rossum627b2d71993-12-24 10:39:16 +00004636#endif
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004637
4638; return 0; }
4639EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004640if { (eval echo configure:4641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004641 rm -rf conftest*
Thomas Wouters3a584202000-08-05 23:28:51 +00004642 eval "ac_cv_func_$ac_func=yes"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004643else
Guido van Rossumf78abae1997-01-21 22:02:36 +00004644 echo "configure: failed program was:" >&5
4645 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004646 rm -rf conftest*
Thomas Wouters3a584202000-08-05 23:28:51 +00004647 eval "ac_cv_func_$ac_func=no"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004648fi
4649rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004650fi
Guido van Rossumf78abae1997-01-21 22:02:36 +00004651
Thomas Wouters3a584202000-08-05 23:28:51 +00004652if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004653 echo "$ac_t""yes" 1>&6
Thomas Wouters3a584202000-08-05 23:28:51 +00004654 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4655 cat >> confdefs.h <<EOF
4656#define $ac_tr_func 1
4657EOF
4658 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004659#line 4660 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004660#include "confdefs.h"
4661#include <unistd.h>
Guido van Rossumf78abae1997-01-21 22:02:36 +00004662int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004663getpgrp(0);
Guido van Rossum7f43da71994-08-01 12:15:30 +00004664; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00004665EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004666if { (eval echo configure:4667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00004667 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004668 cat >> confdefs.h <<\EOF
4669#define GETPGRP_HAVE_ARG 1
Guido van Rossum627b2d71993-12-24 10:39:16 +00004670EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00004671
Guido van Rossumf78abae1997-01-21 22:02:36 +00004672else
4673 echo "configure: failed program was:" >&5
4674 cat conftest.$ac_ext >&5
Guido van Rossum627b2d71993-12-24 10:39:16 +00004675fi
4676rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004677else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004678 echo "$ac_t""no" 1>&6
Guido van Rossum627b2d71993-12-24 10:39:16 +00004679fi
Thomas Wouters3a584202000-08-05 23:28:51 +00004680done
Guido van Rossum627b2d71993-12-24 10:39:16 +00004681
Thomas Wouters3a584202000-08-05 23:28:51 +00004682for ac_func in setpgrp
4683do
4684echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004685echo "configure:4686: checking for $ac_func" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004686if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004687 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004688else
4689 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004690#line 4691 "configure"
Guido van Rossum8eee56f1994-10-20 22:18:37 +00004691#include "confdefs.h"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004692/* System header to define __stub macros and hopefully few prototypes,
Thomas Wouters3a584202000-08-05 23:28:51 +00004693 which can conflict with char $ac_func(); below. */
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004694#include <assert.h>
4695/* Override any gcc2 internal prototype to avoid an error. */
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004696/* We use char because int might match the return type of a gcc2
4697 builtin and then its argument prototype would still apply. */
Thomas Wouters3a584202000-08-05 23:28:51 +00004698char $ac_func();
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004699
Guido van Rossumf78abae1997-01-21 22:02:36 +00004700int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004701
Guido van Rossum8eee56f1994-10-20 22:18:37 +00004702/* The GNU C library defines this for functions which it implements
4703 to always fail with ENOSYS. Some functions are actually named
4704 something starting with __ and the normal name is an alias. */
Thomas Wouters3a584202000-08-05 23:28:51 +00004705#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Guido van Rossum8eee56f1994-10-20 22:18:37 +00004706choke me
4707#else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004708$ac_func();
Guido van Rossum8eee56f1994-10-20 22:18:37 +00004709#endif
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004710
4711; return 0; }
4712EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004713if { (eval echo configure:4714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004714 rm -rf conftest*
Thomas Wouters3a584202000-08-05 23:28:51 +00004715 eval "ac_cv_func_$ac_func=yes"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004716else
Guido van Rossumf78abae1997-01-21 22:02:36 +00004717 echo "configure: failed program was:" >&5
4718 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004719 rm -rf conftest*
Thomas Wouters3a584202000-08-05 23:28:51 +00004720 eval "ac_cv_func_$ac_func=no"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004721fi
4722rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004723fi
Guido van Rossumf78abae1997-01-21 22:02:36 +00004724
Thomas Wouters3a584202000-08-05 23:28:51 +00004725if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004726 echo "$ac_t""yes" 1>&6
Thomas Wouters3a584202000-08-05 23:28:51 +00004727 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4728 cat >> confdefs.h <<EOF
4729#define $ac_tr_func 1
4730EOF
4731 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004732#line 4733 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004733#include "confdefs.h"
4734#include <unistd.h>
Guido van Rossumf78abae1997-01-21 22:02:36 +00004735int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004736setpgrp(0,0);
Guido van Rossum8eee56f1994-10-20 22:18:37 +00004737; return 0; }
4738EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004739if { (eval echo configure:4740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossum8eee56f1994-10-20 22:18:37 +00004740 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004741 cat >> confdefs.h <<\EOF
4742#define SETPGRP_HAVE_ARG 1
Guido van Rossum8eee56f1994-10-20 22:18:37 +00004743EOF
Guido van Rossum8eee56f1994-10-20 22:18:37 +00004744
Guido van Rossumf78abae1997-01-21 22:02:36 +00004745else
4746 echo "configure: failed program was:" >&5
4747 cat conftest.$ac_ext >&5
Guido van Rossum8eee56f1994-10-20 22:18:37 +00004748fi
4749rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004750else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004751 echo "$ac_t""no" 1>&6
Guido van Rossum8eee56f1994-10-20 22:18:37 +00004752fi
Thomas Wouters3a584202000-08-05 23:28:51 +00004753done
Guido van Rossum8eee56f1994-10-20 22:18:37 +00004754
Thomas Wouters3a584202000-08-05 23:28:51 +00004755for ac_func in gettimeofday
4756do
4757echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004758echo "configure:4759: checking for $ac_func" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004759if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004760 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004761else
4762 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004763#line 4764 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00004764#include "confdefs.h"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004765/* System header to define __stub macros and hopefully few prototypes,
Thomas Wouters3a584202000-08-05 23:28:51 +00004766 which can conflict with char $ac_func(); below. */
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004767#include <assert.h>
4768/* Override any gcc2 internal prototype to avoid an error. */
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004769/* We use char because int might match the return type of a gcc2
4770 builtin and then its argument prototype would still apply. */
Thomas Wouters3a584202000-08-05 23:28:51 +00004771char $ac_func();
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004772
Guido van Rossumf78abae1997-01-21 22:02:36 +00004773int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004774
4775/* The GNU C library defines this for functions which it implements
4776 to always fail with ENOSYS. Some functions are actually named
4777 something starting with __ and the normal name is an alias. */
Thomas Wouters3a584202000-08-05 23:28:51 +00004778#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004779choke me
4780#else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004781$ac_func();
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004782#endif
4783
4784; return 0; }
4785EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004786if { (eval echo configure:4787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004787 rm -rf conftest*
Thomas Wouters3a584202000-08-05 23:28:51 +00004788 eval "ac_cv_func_$ac_func=yes"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004789else
Guido van Rossumf78abae1997-01-21 22:02:36 +00004790 echo "configure: failed program was:" >&5
4791 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004792 rm -rf conftest*
Thomas Wouters3a584202000-08-05 23:28:51 +00004793 eval "ac_cv_func_$ac_func=no"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004794fi
4795rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004796fi
Guido van Rossumf78abae1997-01-21 22:02:36 +00004797
Thomas Wouters3a584202000-08-05 23:28:51 +00004798if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004799 echo "$ac_t""yes" 1>&6
Thomas Wouters3a584202000-08-05 23:28:51 +00004800 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4801 cat >> confdefs.h <<EOF
4802#define $ac_tr_func 1
4803EOF
4804 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004805#line 4806 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004806#include "confdefs.h"
Guido van Rossum627b2d71993-12-24 10:39:16 +00004807#include <sys/time.h>
Guido van Rossumf78abae1997-01-21 22:02:36 +00004808int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004809gettimeofday((struct timeval*)0,(struct timezone*)0);
4810; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00004811EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004812if { (eval echo configure:4813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00004813 :
4814else
Guido van Rossumf78abae1997-01-21 22:02:36 +00004815 echo "configure: failed program was:" >&5
4816 cat conftest.$ac_ext >&5
Guido van Rossum627b2d71993-12-24 10:39:16 +00004817 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004818 cat >> confdefs.h <<\EOF
4819#define GETTIMEOFDAY_NO_TZ 1
4820EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00004821
4822fi
4823rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004824else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004825 echo "$ac_t""no" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004826fi
Thomas Wouters3a584202000-08-05 23:28:51 +00004827done
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004828
4829
4830# checks for structures
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004831echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004832echo "configure:4833: checking whether time.h and sys/time.h may both be included" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004833if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004834 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004835else
4836 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004837#line 4838 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00004838#include "confdefs.h"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004839#include <sys/types.h>
4840#include <sys/time.h>
4841#include <time.h>
Guido van Rossumf78abae1997-01-21 22:02:36 +00004842int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004843struct tm *tp;
4844; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00004845EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004846if { (eval echo configure:4847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00004847 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004848 ac_cv_header_time=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00004849else
Guido van Rossumf78abae1997-01-21 22:02:36 +00004850 echo "configure: failed program was:" >&5
4851 cat conftest.$ac_ext >&5
Guido van Rossum627b2d71993-12-24 10:39:16 +00004852 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004853 ac_cv_header_time=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00004854fi
4855rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004856fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004857
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004858echo "$ac_t""$ac_cv_header_time" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004859if test $ac_cv_header_time = yes; then
4860 cat >> confdefs.h <<\EOF
4861#define TIME_WITH_SYS_TIME 1
4862EOF
4863
4864fi
4865
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004866echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004867echo "configure:4868: checking whether struct tm is in sys/time.h or time.h" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004868if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004869 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004870else
4871 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004872#line 4873 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004873#include "confdefs.h"
4874#include <sys/types.h>
4875#include <time.h>
Guido van Rossumf78abae1997-01-21 22:02:36 +00004876int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004877struct tm *tp; tp->tm_sec;
4878; return 0; }
4879EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004880if { (eval echo configure:4881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004881 rm -rf conftest*
4882 ac_cv_struct_tm=time.h
4883else
Guido van Rossumf78abae1997-01-21 22:02:36 +00004884 echo "configure: failed program was:" >&5
4885 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004886 rm -rf conftest*
4887 ac_cv_struct_tm=sys/time.h
4888fi
4889rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004890fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004891
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004892echo "$ac_t""$ac_cv_struct_tm" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004893if test $ac_cv_struct_tm = sys/time.h; then
4894 cat >> confdefs.h <<\EOF
4895#define TM_IN_SYS_TIME 1
4896EOF
4897
4898fi
4899
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004900echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004901echo "configure:4902: checking for tm_zone in struct tm" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004902if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004903 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004904else
4905 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004906#line 4907 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004907#include "confdefs.h"
4908#include <sys/types.h>
4909#include <$ac_cv_struct_tm>
Guido van Rossumf78abae1997-01-21 22:02:36 +00004910int main() {
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004911struct tm tm; tm.tm_zone;
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004912; return 0; }
4913EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004914if { (eval echo configure:4915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004915 rm -rf conftest*
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004916 ac_cv_struct_tm_zone=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004917else
Guido van Rossumf78abae1997-01-21 22:02:36 +00004918 echo "configure: failed program was:" >&5
4919 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004920 rm -rf conftest*
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004921 ac_cv_struct_tm_zone=no
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004922fi
4923rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004924fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004925
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004926echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4927if test "$ac_cv_struct_tm_zone" = yes; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004928 cat >> confdefs.h <<\EOF
4929#define HAVE_TM_ZONE 1
4930EOF
4931
4932else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004933 echo $ac_n "checking for tzname""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004934echo "configure:4935: checking for tzname" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004935if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004936 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004937else
4938 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004939#line 4940 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00004940#include "confdefs.h"
4941#include <time.h>
4942#ifndef tzname /* For SGI. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004943extern char *tzname[]; /* RS6000 and others reject char **tzname. */
Guido van Rossum627b2d71993-12-24 10:39:16 +00004944#endif
Guido van Rossumf78abae1997-01-21 22:02:36 +00004945int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004946atoi(*tzname);
4947; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00004948EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004949if { (eval echo configure:4950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00004950 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004951 ac_cv_var_tzname=yes
4952else
Guido van Rossumf78abae1997-01-21 22:02:36 +00004953 echo "configure: failed program was:" >&5
4954 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004955 rm -rf conftest*
4956 ac_cv_var_tzname=no
Guido van Rossum627b2d71993-12-24 10:39:16 +00004957fi
4958rm -f conftest*
Guido van Rossum627b2d71993-12-24 10:39:16 +00004959fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00004960
4961echo "$ac_t""$ac_cv_var_tzname" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004962 if test $ac_cv_var_tzname = yes; then
4963 cat >> confdefs.h <<\EOF
4964#define HAVE_TZNAME 1
4965EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00004966
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004967 fi
4968fi
4969
4970
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004971echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004972echo "configure:4973: checking for time.h that defines altzone" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00004973if eval "test \"`echo '$''{'ac_cv_header_time_altzone'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004974 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004975else
4976 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004977#line 4978 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00004978#include "confdefs.h"
4979#include <time.h>
Guido van Rossumf78abae1997-01-21 22:02:36 +00004980int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004981return altzone;
4982; return 0; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00004983EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00004984if { (eval echo configure:4985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossum7f43da71994-08-01 12:15:30 +00004985 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004986 ac_cv_header_time_altzone=yes
4987else
Guido van Rossumf78abae1997-01-21 22:02:36 +00004988 echo "configure: failed program was:" >&5
4989 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004990 rm -rf conftest*
4991 ac_cv_header_time_altzone=no
Guido van Rossum7f43da71994-08-01 12:15:30 +00004992fi
4993rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004994fi
4995
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00004996echo "$ac_t""$ac_cv_header_time_altzone" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00004997if test $ac_cv_header_time_altzone = yes; then
4998 cat >> confdefs.h <<\EOF
4999#define HAVE_ALTZONE 1
5000EOF
5001
5002fi
5003
Guido van Rossumda88dad1995-01-26 00:46:29 +00005004was_it_defined=no
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005005echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005006echo "configure:5007: checking whether sys/select.h and sys/time.h may both be included" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005007cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005008#line 5009 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00005009#include "confdefs.h"
5010
5011#include <sys/types.h>
5012#include <sys/select.h>
5013#include <sys/time.h>
5014
Guido van Rossumf78abae1997-01-21 22:02:36 +00005015int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005016;
5017; return 0; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00005018EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005019if { (eval echo configure:5020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossum7f43da71994-08-01 12:15:30 +00005020 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005021 cat >> confdefs.h <<\EOF
5022#define SYS_SELECT_WITH_SYS_TIME 1
5023EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00005024 was_it_defined=yes
Guido van Rossumf78abae1997-01-21 22:02:36 +00005025else
5026 echo "configure: failed program was:" >&5
5027 cat conftest.$ac_ext >&5
Guido van Rossum7f43da71994-08-01 12:15:30 +00005028fi
5029rm -f conftest*
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005030echo "$ac_t""$was_it_defined" 1>&6
Guido van Rossum627b2d71993-12-24 10:39:16 +00005031
5032# checks for compiler characteristics
Guido van Rossum7f43da71994-08-01 12:15:30 +00005033
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005034echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005035echo "configure:5036: checking whether char is unsigned" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00005036if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005037 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005038else
5039 if test "$GCC" = yes; then
5040 # GCC predefines this symbol on systems where it applies.
5041cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005042#line 5043 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005043#include "confdefs.h"
5044#ifdef __CHAR_UNSIGNED__
5045 yes
5046#endif
5047
5048EOF
5049if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5050 egrep "yes" >/dev/null 2>&1; then
5051 rm -rf conftest*
5052 ac_cv_c_char_unsigned=yes
5053else
5054 rm -rf conftest*
5055 ac_cv_c_char_unsigned=no
5056fi
5057rm -f conftest*
5058
5059else
5060if test "$cross_compiling" = yes; then
5061 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5062else
Guido van Rossumf78abae1997-01-21 22:02:36 +00005063 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005064#line 5065 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00005065#include "confdefs.h"
5066/* volatile prevents gcc2 from optimizing the test away on sparcs. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005067#if !defined(__STDC__) || __STDC__ != 1
Guido van Rossum7f43da71994-08-01 12:15:30 +00005068#define volatile
5069#endif
5070main() {
Guido van Rossum7f43da71994-08-01 12:15:30 +00005071 volatile char c = 255; exit(c < 0);
Guido van Rossum7f43da71994-08-01 12:15:30 +00005072}
5073EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005074if { (eval echo configure:5075: \"$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 +00005075then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005076 ac_cv_c_char_unsigned=yes
5077else
Guido van Rossumf78abae1997-01-21 22:02:36 +00005078 echo "configure: failed program was:" >&5
5079 cat conftest.$ac_ext >&5
5080 rm -fr conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005081 ac_cv_c_char_unsigned=no
5082fi
Guido van Rossum7f43da71994-08-01 12:15:30 +00005083rm -fr conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005084fi
Guido van Rossumf78abae1997-01-21 22:02:36 +00005085
5086fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005087fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00005088
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005089echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005090if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
5091 cat >> confdefs.h <<\EOF
5092#define __CHAR_UNSIGNED__ 1
5093EOF
5094
5095fi
Guido van Rossum7f43da71994-08-01 12:15:30 +00005096
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005097echo $ac_n "checking for working const""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005098echo "configure:5099: checking for working const" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00005099if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005100 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005101else
5102 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005103#line 5104 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005104#include "confdefs.h"
5105
Guido van Rossumf78abae1997-01-21 22:02:36 +00005106int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005107
5108/* Ultrix mips cc rejects this. */
Neil Schemenauerf8b71c52001-04-21 17:41:16 +00005109typedef int charset[2]; const charset x = {0,0};
Guido van Rossum627b2d71993-12-24 10:39:16 +00005110/* SunOS 4.1.1 cc rejects this. */
5111char const *const *ccp;
5112char **p;
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005113/* NEC SVR4.0.2 mips cc rejects this. */
5114struct point {int x, y;};
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00005115static struct point const zero = {0,0};
Guido van Rossum627b2d71993-12-24 10:39:16 +00005116/* AIX XL C 1.02.0.0 rejects this.
5117 It does not let you subtract one const X* pointer from another in an arm
5118 of an if-expression whose if-part is not a constant expression */
5119const char *g = "string";
5120ccp = &g + (g ? g-g : 0);
5121/* HPUX 7.0 cc rejects these. */
5122++ccp;
5123p = (char**) ccp;
5124ccp = (char const *const *) p;
5125{ /* SCO 3.2v4 cc rejects this. */
5126 char *t;
5127 char const *s = 0 ? (char *) 0 : (char const *) 0;
5128
5129 *t++ = 0;
5130}
5131{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005132 int x[] = {25, 17};
Guido van Rossum627b2d71993-12-24 10:39:16 +00005133 const int *foo = &x[0];
5134 ++foo;
5135}
5136{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5137 typedef const int *iptr;
5138 iptr p = 0;
5139 ++p;
5140}
5141{ /* AIX XL C 1.02.0.0 rejects this saying
5142 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5143 struct s { int j; const int *ap[3]; };
5144 struct s *b; b->j = 5;
5145}
5146{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5147 const int foo = 10;
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005148}
5149
5150; return 0; }
5151EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005152if { (eval echo configure:5153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005153 rm -rf conftest*
5154 ac_cv_c_const=yes
5155else
Guido van Rossumf78abae1997-01-21 22:02:36 +00005156 echo "configure: failed program was:" >&5
5157 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005158 rm -rf conftest*
5159 ac_cv_c_const=no
5160fi
5161rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005162fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00005163
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005164echo "$ac_t""$ac_cv_c_const" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005165if test $ac_cv_c_const = no; then
5166 cat >> confdefs.h <<\EOF
5167#define const
5168EOF
5169
5170fi
5171
5172
Guido van Rossumda88dad1995-01-26 00:46:29 +00005173works=no
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005174echo $ac_n "checking for working volatile""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005175echo "configure:5176: checking for working volatile" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005176cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005177#line 5178 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00005178#include "confdefs.h"
5179
Guido van Rossumf78abae1997-01-21 22:02:36 +00005180int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005181volatile int x; x = 0;
5182; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00005183EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005184if { (eval echo configure:5185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossumda88dad1995-01-26 00:46:29 +00005185 rm -rf conftest*
5186 works=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00005187else
Guido van Rossumf78abae1997-01-21 22:02:36 +00005188 echo "configure: failed program was:" >&5
5189 cat conftest.$ac_ext >&5
Guido van Rossum627b2d71993-12-24 10:39:16 +00005190 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005191 cat >> confdefs.h <<\EOF
5192#define volatile
5193EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00005194
5195fi
5196rm -f conftest*
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005197echo "$ac_t""$works" 1>&6
Guido van Rossum7f43da71994-08-01 12:15:30 +00005198
Guido van Rossumda88dad1995-01-26 00:46:29 +00005199works=no
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005200echo $ac_n "checking for working signed char""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005201echo "configure:5202: checking for working signed char" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005202cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005203#line 5204 "configure"
Guido van Rossumdabb11b1994-10-11 15:04:27 +00005204#include "confdefs.h"
5205
Guido van Rossumf78abae1997-01-21 22:02:36 +00005206int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005207signed char c;
5208; return 0; }
Guido van Rossumdabb11b1994-10-11 15:04:27 +00005209EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005210if { (eval echo configure:5211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossumda88dad1995-01-26 00:46:29 +00005211 rm -rf conftest*
5212 works=yes
Guido van Rossumdabb11b1994-10-11 15:04:27 +00005213else
Guido van Rossumf78abae1997-01-21 22:02:36 +00005214 echo "configure: failed program was:" >&5
5215 cat conftest.$ac_ext >&5
Guido van Rossumdabb11b1994-10-11 15:04:27 +00005216 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005217 cat >> confdefs.h <<\EOF
5218#define signed
Guido van Rossum627b2d71993-12-24 10:39:16 +00005219EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00005220
5221fi
5222rm -f conftest*
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005223echo "$ac_t""$works" 1>&6
Guido van Rossum7f43da71994-08-01 12:15:30 +00005224
Guido van Rossumda88dad1995-01-26 00:46:29 +00005225have_prototypes=no
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005226echo $ac_n "checking for prototypes""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005227echo "configure:5228: checking for prototypes" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005228cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005229#line 5230 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00005230#include "confdefs.h"
Guido van Rossum7f43da71994-08-01 12:15:30 +00005231int foo(int x) { return 0; }
Guido van Rossumf78abae1997-01-21 22:02:36 +00005232int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005233return foo(10);
5234; return 0; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00005235EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005236if { (eval echo configure:5237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005237 rm -rf conftest*
5238 cat >> confdefs.h <<\EOF
5239#define HAVE_PROTOTYPES 1
5240EOF
5241 have_prototypes=yes
Guido van Rossumf78abae1997-01-21 22:02:36 +00005242else
5243 echo "configure: failed program was:" >&5
5244 cat conftest.$ac_ext >&5
Guido van Rossum7f43da71994-08-01 12:15:30 +00005245fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005246rm -f conftest*
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005247echo "$ac_t""$have_prototypes" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005248
Guido van Rossumda88dad1995-01-26 00:46:29 +00005249works=no
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005250echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005251echo "configure:5252: checking for variable length prototypes and stdarg.h" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005252cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005253#line 5254 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00005254#include "confdefs.h"
5255
5256#include <stdarg.h>
Guido van Rossum90eea071996-08-30 20:58:57 +00005257int foo(int x, ...) {
5258 va_list va;
5259 va_start(va, x);
5260 va_arg(va, int);
5261 va_arg(va, char *);
5262 va_arg(va, double);
5263 return 0;
5264}
Guido van Rossum7f43da71994-08-01 12:15:30 +00005265
Guido van Rossumf78abae1997-01-21 22:02:36 +00005266int main() {
Guido van Rossum90eea071996-08-30 20:58:57 +00005267return foo(10, "", 3.14);
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005268; return 0; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00005269EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005270if { (eval echo configure:5271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005271 rm -rf conftest*
5272 cat >> confdefs.h <<\EOF
5273#define HAVE_STDARG_PROTOTYPES 1
5274EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00005275 works=yes
Guido van Rossumf78abae1997-01-21 22:02:36 +00005276else
5277 echo "configure: failed program was:" >&5
5278 cat conftest.$ac_ext >&5
Guido van Rossum627b2d71993-12-24 10:39:16 +00005279fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005280rm -f conftest*
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005281echo "$ac_t""$works" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005282
Guido van Rossumda88dad1995-01-26 00:46:29 +00005283if test "$have_prototypes" = yes; then
5284bad_prototypes=no
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005285echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005286echo "configure:5287: checking for bad exec* prototypes" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005287cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005288#line 5289 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00005289#include "confdefs.h"
5290#include <unistd.h>
Guido van Rossumf78abae1997-01-21 22:02:36 +00005291int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005292char **t;execve("@",t,t);
5293; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00005294EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005295if { (eval echo configure:5296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00005296 :
5297else
Guido van Rossumf78abae1997-01-21 22:02:36 +00005298 echo "configure: failed program was:" >&5
5299 cat conftest.$ac_ext >&5
Guido van Rossum627b2d71993-12-24 10:39:16 +00005300 rm -rf conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005301 cat >> confdefs.h <<\EOF
5302#define BAD_EXEC_PROTOTYPES 1
5303EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00005304 bad_prototypes=yes
Guido van Rossum627b2d71993-12-24 10:39:16 +00005305fi
5306rm -f conftest*
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005307echo "$ac_t""$bad_prototypes" 1>&6
Guido van Rossum627b2d71993-12-24 10:39:16 +00005308fi
5309
Guido van Rossumda88dad1995-01-26 00:46:29 +00005310bad_forward=no
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005311echo $ac_n "checking for bad static forward""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005312echo "configure:5313: checking for bad static forward" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005313if test "$cross_compiling" = yes; then
5314 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5315else
Guido van Rossumf78abae1997-01-21 22:02:36 +00005316 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005317#line 5318 "configure"
Guido van Rossum7f43da71994-08-01 12:15:30 +00005318#include "confdefs.h"
5319
5320struct s { int a; int b; };
5321static struct s foo;
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005322int foobar() {
5323 static int random;
5324 random = (int) &foo;
5325 return random;
5326}
Guido van Rossum7f43da71994-08-01 12:15:30 +00005327static struct s foo = { 1, 2 };
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005328main() {
5329 exit(!((int)&foo == foobar()));
5330}
Guido van Rossum7f43da71994-08-01 12:15:30 +00005331
5332EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005333if { (eval echo configure:5334: \"$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 +00005334then
Guido van Rossum7f43da71994-08-01 12:15:30 +00005335 :
5336else
Guido van Rossumf78abae1997-01-21 22:02:36 +00005337 echo "configure: failed program was:" >&5
5338 cat conftest.$ac_ext >&5
5339 rm -fr conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005340 cat >> confdefs.h <<\EOF
5341#define BAD_STATIC_FORWARD 1
5342EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00005343 bad_forward=yes
Guido van Rossum7f43da71994-08-01 12:15:30 +00005344fi
5345rm -fr conftest*
Guido van Rossumf78abae1997-01-21 22:02:36 +00005346fi
5347
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005348echo "$ac_t""$bad_forward" 1>&6
Guido van Rossum7f43da71994-08-01 12:15:30 +00005349
Guido van Rossumda88dad1995-01-26 00:46:29 +00005350va_list_is_array=no
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005351echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005352echo "configure:5353: checking whether va_list is an array" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005353cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005354#line 5355 "configure"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005355#include "confdefs.h"
5356
5357#ifdef HAVE_STDARG_PROTOTYPES
5358#include <stdarg.h>
5359#else
5360#include <varargs.h>
5361#endif
5362
Guido van Rossumf78abae1997-01-21 22:02:36 +00005363int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005364va_list list1, list2; list1 = list2;
5365; return 0; }
5366EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005367if { (eval echo configure:5368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005368 :
5369else
Guido van Rossumf78abae1997-01-21 22:02:36 +00005370 echo "configure: failed program was:" >&5
5371 cat conftest.$ac_ext >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005372 rm -rf conftest*
5373 cat >> confdefs.h <<\EOF
5374#define VA_LIST_IS_ARRAY 1
5375EOF
Guido van Rossumda88dad1995-01-26 00:46:29 +00005376 va_list_is_array=yes
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005377fi
5378rm -f conftest*
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005379echo "$ac_t""$va_list_is_array" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005380
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005381# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
5382echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005383echo "configure:5384: checking for gethostbyname_r" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00005384if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005385 echo $ac_n "(cached) $ac_c" 1>&6
5386else
5387 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005388#line 5389 "configure"
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005389#include "confdefs.h"
5390/* System header to define __stub macros and hopefully few prototypes,
5391 which can conflict with char gethostbyname_r(); below. */
5392#include <assert.h>
5393/* Override any gcc2 internal prototype to avoid an error. */
5394/* We use char because int might match the return type of a gcc2
5395 builtin and then its argument prototype would still apply. */
5396char gethostbyname_r();
5397
5398int main() {
5399
5400/* The GNU C library defines this for functions which it implements
5401 to always fail with ENOSYS. Some functions are actually named
5402 something starting with __ and the normal name is an alias. */
5403#if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
5404choke me
5405#else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00005406gethostbyname_r();
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005407#endif
5408
5409; return 0; }
5410EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005411if { (eval echo configure:5412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005412 rm -rf conftest*
5413 eval "ac_cv_func_gethostbyname_r=yes"
5414else
5415 echo "configure: failed program was:" >&5
5416 cat conftest.$ac_ext >&5
5417 rm -rf conftest*
5418 eval "ac_cv_func_gethostbyname_r=no"
5419fi
5420rm -f conftest*
5421fi
5422
5423if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
5424 echo "$ac_t""yes" 1>&6
5425
5426 cat >> confdefs.h <<\EOF
5427#define HAVE_GETHOSTBYNAME_R 1
5428EOF
5429
5430 echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005431echo "configure:5432: checking gethostbyname_r with 6 args" >&5
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005432 OLD_CFLAGS=$CFLAGS
5433 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
5434 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005435#line 5436 "configure"
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005436#include "confdefs.h"
5437
5438# include <netdb.h>
5439
5440int main() {
5441
5442 char *name;
5443 struct hostent *he, *res;
5444 char buffer[2048];
5445 int buflen = 2048;
5446 int h_errnop;
5447
5448 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
5449
5450; return 0; }
5451EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005452if { (eval echo configure:5453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005453 rm -rf conftest*
5454
5455 cat >> confdefs.h <<\EOF
Guido van Rossum8db7d8b1999-03-23 16:40:33 +00005456#define HAVE_GETHOSTBYNAME_R 1
5457EOF
5458
5459 cat >> confdefs.h <<\EOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005460#define HAVE_GETHOSTBYNAME_R_6_ARG 1
5461EOF
5462
5463 echo "$ac_t""yes" 1>&6
5464
5465else
5466 echo "configure: failed program was:" >&5
5467 cat conftest.$ac_ext >&5
5468 rm -rf conftest*
5469
5470 echo "$ac_t""no" 1>&6
5471 echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005472echo "configure:5473: checking gethostbyname_r with 5 args" >&5
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005473 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005474#line 5475 "configure"
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005475#include "confdefs.h"
5476
5477# include <netdb.h>
5478
5479int main() {
5480
5481 char *name;
5482 struct hostent *he;
5483 char buffer[2048];
5484 int buflen = 2048;
5485 int h_errnop;
5486
5487 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
5488
5489; return 0; }
5490EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005491if { (eval echo configure:5492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005492 rm -rf conftest*
5493
5494 cat >> confdefs.h <<\EOF
Guido van Rossum8db7d8b1999-03-23 16:40:33 +00005495#define HAVE_GETHOSTBYNAME_R 1
5496EOF
5497
5498 cat >> confdefs.h <<\EOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005499#define HAVE_GETHOSTBYNAME_R_5_ARG 1
5500EOF
5501
5502 echo "$ac_t""yes" 1>&6
5503
5504else
5505 echo "configure: failed program was:" >&5
5506 cat conftest.$ac_ext >&5
5507 rm -rf conftest*
5508
5509 echo "$ac_t""no" 1>&6
5510 echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005511echo "configure:5512: checking gethostbyname_r with 3 args" >&5
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005512 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005513#line 5514 "configure"
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005514#include "confdefs.h"
5515
5516# include <netdb.h>
5517
5518int main() {
5519
5520 char *name;
5521 struct hostent *he;
5522 struct hostent_data data;
5523
5524 (void) gethostbyname_r(name, he, &data);
5525
5526; return 0; }
5527EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005528if { (eval echo configure:5529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005529 rm -rf conftest*
5530
5531 cat >> confdefs.h <<\EOF
Guido van Rossum8db7d8b1999-03-23 16:40:33 +00005532#define HAVE_GETHOSTBYNAME_R 1
5533EOF
5534
5535 cat >> confdefs.h <<\EOF
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005536#define HAVE_GETHOSTBYNAME_R_3_ARG 1
5537EOF
5538
5539 echo "$ac_t""yes" 1>&6
5540
5541else
5542 echo "configure: failed program was:" >&5
5543 cat conftest.$ac_ext >&5
5544 rm -rf conftest*
5545
5546 echo "$ac_t""no" 1>&6
5547
5548fi
5549rm -f conftest*
5550
5551fi
5552rm -f conftest*
5553
5554fi
5555rm -f conftest*
5556 CFLAGS=$OLD_CFLAGS
5557
5558else
5559 echo "$ac_t""no" 1>&6
5560
Thomas Wouters3a584202000-08-05 23:28:51 +00005561 for ac_func in gethostbyname
5562do
5563echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005564echo "configure:5565: checking for $ac_func" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00005565if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005566 echo $ac_n "(cached) $ac_c" 1>&6
5567else
5568 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005569#line 5570 "configure"
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005570#include "confdefs.h"
5571/* System header to define __stub macros and hopefully few prototypes,
Thomas Wouters3a584202000-08-05 23:28:51 +00005572 which can conflict with char $ac_func(); below. */
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005573#include <assert.h>
5574/* Override any gcc2 internal prototype to avoid an error. */
5575/* We use char because int might match the return type of a gcc2
5576 builtin and then its argument prototype would still apply. */
Thomas Wouters3a584202000-08-05 23:28:51 +00005577char $ac_func();
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005578
5579int main() {
5580
5581/* The GNU C library defines this for functions which it implements
5582 to always fail with ENOSYS. Some functions are actually named
5583 something starting with __ and the normal name is an alias. */
Thomas Wouters3a584202000-08-05 23:28:51 +00005584#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005585choke me
5586#else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00005587$ac_func();
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005588#endif
5589
5590; return 0; }
5591EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005592if { (eval echo configure:5593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005593 rm -rf conftest*
Thomas Wouters3a584202000-08-05 23:28:51 +00005594 eval "ac_cv_func_$ac_func=yes"
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005595else
5596 echo "configure: failed program was:" >&5
5597 cat conftest.$ac_ext >&5
5598 rm -rf conftest*
Thomas Wouters3a584202000-08-05 23:28:51 +00005599 eval "ac_cv_func_$ac_func=no"
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005600fi
5601rm -f conftest*
5602fi
5603
Thomas Wouters3a584202000-08-05 23:28:51 +00005604if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005605 echo "$ac_t""yes" 1>&6
Thomas Wouters3a584202000-08-05 23:28:51 +00005606 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5607 cat >> confdefs.h <<EOF
5608#define $ac_tr_func 1
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005609EOF
Thomas Wouters3a584202000-08-05 23:28:51 +00005610
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005611else
5612 echo "$ac_t""no" 1>&6
5613fi
Thomas Wouters3a584202000-08-05 23:28:51 +00005614done
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00005615
5616
5617fi
5618
5619
5620
5621
5622
5623
Guido van Rossum8db7d8b1999-03-23 16:40:33 +00005624
Guido van Rossum627b2d71993-12-24 10:39:16 +00005625# checks for system services
5626# (none yet)
5627
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005628# Linux requires this for correct f.p. operations
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +00005629echo $ac_n "checking for __fpu_control""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005630echo "configure:5631: checking for __fpu_control" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00005631if eval "test \"`echo '$''{'ac_cv_func___fpu_control'+set}'`\" = set"; then
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +00005632 echo $ac_n "(cached) $ac_c" 1>&6
5633else
5634 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005635#line 5636 "configure"
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +00005636#include "confdefs.h"
5637/* System header to define __stub macros and hopefully few prototypes,
5638 which can conflict with char __fpu_control(); below. */
5639#include <assert.h>
5640/* Override any gcc2 internal prototype to avoid an error. */
5641/* We use char because int might match the return type of a gcc2
5642 builtin and then its argument prototype would still apply. */
5643char __fpu_control();
5644
5645int main() {
5646
5647/* The GNU C library defines this for functions which it implements
5648 to always fail with ENOSYS. Some functions are actually named
5649 something starting with __ and the normal name is an alias. */
5650#if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
5651choke me
5652#else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00005653__fpu_control();
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +00005654#endif
5655
5656; return 0; }
5657EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005658if { (eval echo configure:5659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +00005659 rm -rf conftest*
5660 eval "ac_cv_func___fpu_control=yes"
5661else
5662 echo "configure: failed program was:" >&5
5663 cat conftest.$ac_ext >&5
5664 rm -rf conftest*
5665 eval "ac_cv_func___fpu_control=no"
5666fi
5667rm -f conftest*
5668fi
5669
5670if eval "test \"`echo '$ac_cv_func_'__fpu_control`\" = yes"; then
5671 echo "$ac_t""yes" 1>&6
5672 :
5673else
5674 echo "$ac_t""no" 1>&6
Guido van Rossumf78abae1997-01-21 22:02:36 +00005675echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005676echo "configure:5677: checking for __fpu_control in -lieee" >&5
Guido van Rossumf78abae1997-01-21 22:02:36 +00005677ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'`
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00005678if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005679 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005680else
5681 ac_save_LIBS="$LIBS"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005682LIBS="-lieee $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005683cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005684#line 5685 "configure"
Guido van Rossum627b2d71993-12-24 10:39:16 +00005685#include "confdefs.h"
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00005686/* Override any gcc2 internal prototype to avoid an error. */
5687/* We use char because int might match the return type of a gcc2
5688 builtin and then its argument prototype would still apply. */
5689char __fpu_control();
Guido van Rossum627b2d71993-12-24 10:39:16 +00005690
Guido van Rossumf78abae1997-01-21 22:02:36 +00005691int main() {
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005692__fpu_control()
5693; return 0; }
Guido van Rossum627b2d71993-12-24 10:39:16 +00005694EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005695if { (eval echo configure:5696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum627b2d71993-12-24 10:39:16 +00005696 rm -rf conftest*
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00005697 eval "ac_cv_lib_$ac_lib_var=yes"
Guido van Rossum627b2d71993-12-24 10:39:16 +00005698else
Guido van Rossumf78abae1997-01-21 22:02:36 +00005699 echo "configure: failed program was:" >&5
5700 cat conftest.$ac_ext >&5
Guido van Rossum627b2d71993-12-24 10:39:16 +00005701 rm -rf conftest*
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00005702 eval "ac_cv_lib_$ac_lib_var=no"
Guido van Rossum627b2d71993-12-24 10:39:16 +00005703fi
5704rm -f conftest*
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005705LIBS="$ac_save_LIBS"
Guido van Rossum627b2d71993-12-24 10:39:16 +00005706
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005707fi
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00005708if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005709 echo "$ac_t""yes" 1>&6
Guido van Rossumf78abae1997-01-21 22:02:36 +00005710 ac_tr_lib=HAVE_LIB`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5711 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005712 cat >> confdefs.h <<EOF
5713#define $ac_tr_lib 1
5714EOF
5715
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005716 LIBS="-lieee $LIBS"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005717
5718else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005719 echo "$ac_t""no" 1>&6
Guido van Rossum627b2d71993-12-24 10:39:16 +00005720fi
5721
5722
Jeremy Hyltonbe28f5b2000-07-27 21:03:04 +00005723fi
5724
5725
Guido van Rossum7f253911997-05-09 02:42:48 +00005726# Check for --with-fpectl
Guido van Rossum7f253911997-05-09 02:42:48 +00005727echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005728echo "configure:5729: checking for --with-fpectl" >&5
Guido van Rossum7f253911997-05-09 02:42:48 +00005729# Check whether --with-fpectl or --without-fpectl was given.
5730if test "${with_fpectl+set}" = set; then
5731 withval="$with_fpectl"
5732
5733if test "$withval" != no
5734then cat >> confdefs.h <<\EOF
5735#define WANT_SIGFPE_HANDLER 1
5736EOF
5737 echo "$ac_t""yes" 1>&6
5738else echo "$ac_t""no" 1>&6
5739fi
Guido van Rossumef2255b2000-03-10 22:30:29 +00005740else
5741 echo "$ac_t""no" 1>&6
Guido van Rossum7f253911997-05-09 02:42:48 +00005742fi
5743
5744
Guido van Rossum7f43da71994-08-01 12:15:30 +00005745# check for --with-libm=...
5746
Guido van Rossum563e7081996-09-10 18:20:48 +00005747case $ac_sys_system in
Guido van Rossum3dc0a512000-10-05 18:00:06 +00005748Darwin) ;;
Guido van Rossum563e7081996-09-10 18:20:48 +00005749next) ;;
Guido van Rossumec95c7b1998-08-04 17:59:56 +00005750BeOS) ;;
Guido van Rossum563e7081996-09-10 18:20:48 +00005751*) LIBM=-lm
5752esac
Guido van Rossum7f253911997-05-09 02:42:48 +00005753echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005754echo "configure:5755: checking for --with-libm=STRING" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005755# Check whether --with-libm or --without-libm was given.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00005756if test "${with_libm+set}" = set; then
5757 withval="$with_libm"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005758
Guido van Rossum7f253911997-05-09 02:42:48 +00005759if test "$withval" = no
5760then LIBM=
5761 echo "$ac_t""force LIBM empty" 1>&6
5762elif test "$withval" != yes
Guido van Rossum7f43da71994-08-01 12:15:30 +00005763then LIBM=$withval
Guido van Rossum7f253911997-05-09 02:42:48 +00005764 echo "$ac_t""set LIBM=\"$withval\"" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005765else { echo "configure: error: proper usage is --with-libm=STRING" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00005766fi
Guido van Rossum7f253911997-05-09 02:42:48 +00005767else
5768 echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6
Guido van Rossum7f43da71994-08-01 12:15:30 +00005769fi
5770
5771
5772# check for --with-libc=...
5773
Guido van Rossum7f253911997-05-09 02:42:48 +00005774echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005775echo "configure:5776: checking for --with-libc=STRING" >&5
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005776# Check whether --with-libc or --without-libc was given.
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00005777if test "${with_libc+set}" = set; then
5778 withval="$with_libc"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005779
Guido van Rossum7f253911997-05-09 02:42:48 +00005780if test "$withval" = no
5781then LIBC=
5782 echo "$ac_t""force LIBC empty" 1>&6
5783elif test "$withval" != yes
Guido van Rossum7f43da71994-08-01 12:15:30 +00005784then LIBC=$withval
Guido van Rossum7f253911997-05-09 02:42:48 +00005785 echo "$ac_t""set LIBC=\"$withval\"" 1>&6
Guido van Rossum76be6ed1995-01-02 18:33:54 +00005786else { echo "configure: error: proper usage is --with-libc=STRING" 1>&2; exit 1; }
Guido van Rossum7f43da71994-08-01 12:15:30 +00005787fi
Guido van Rossum7f253911997-05-09 02:42:48 +00005788else
5789 echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6
Guido van Rossum7f43da71994-08-01 12:15:30 +00005790fi
5791
5792
Guido van Rossumaf5b83e1995-01-04 19:02:35 +00005793# check for hypot() in math library
5794LIBS_SAVE=$LIBS
5795LIBS="$LIBS $LIBM"
5796for ac_func in hypot
5797do
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005798echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005799echo "configure:5800: checking for $ac_func" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00005800if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005801 echo $ac_n "(cached) $ac_c" 1>&6
Guido van Rossumaf5b83e1995-01-04 19:02:35 +00005802else
5803 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005804#line 5805 "configure"
Guido van Rossumaf5b83e1995-01-04 19:02:35 +00005805#include "confdefs.h"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005806/* System header to define __stub macros and hopefully few prototypes,
5807 which can conflict with char $ac_func(); below. */
5808#include <assert.h>
5809/* Override any gcc2 internal prototype to avoid an error. */
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00005810/* We use char because int might match the return type of a gcc2
5811 builtin and then its argument prototype would still apply. */
5812char $ac_func();
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00005813
Guido van Rossumf78abae1997-01-21 22:02:36 +00005814int main() {
Guido van Rossumaf5b83e1995-01-04 19:02:35 +00005815
5816/* The GNU C library defines this for functions which it implements
5817 to always fail with ENOSYS. Some functions are actually named
5818 something starting with __ and the normal name is an alias. */
5819#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5820choke me
5821#else
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00005822$ac_func();
Guido van Rossumaf5b83e1995-01-04 19:02:35 +00005823#endif
5824
5825; return 0; }
5826EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005827if { (eval echo configure:5828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossum2b3ac691996-08-30 15:18:41 +00005828 rm -rf conftest*
5829 eval "ac_cv_func_$ac_func=yes"
5830else
Guido van Rossumf78abae1997-01-21 22:02:36 +00005831 echo "configure: failed program was:" >&5
5832 cat conftest.$ac_ext >&5
Guido van Rossum2b3ac691996-08-30 15:18:41 +00005833 rm -rf conftest*
5834 eval "ac_cv_func_$ac_func=no"
5835fi
5836rm -f conftest*
Guido van Rossum2b3ac691996-08-30 15:18:41 +00005837fi
Guido van Rossumf78abae1997-01-21 22:02:36 +00005838
Guido van Rossum2b3ac691996-08-30 15:18:41 +00005839if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5840 echo "$ac_t""yes" 1>&6
Guido van Rossumf78abae1997-01-21 22:02:36 +00005841 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5842 cat >> confdefs.h <<EOF
5843#define $ac_tr_func 1
5844EOF
5845
Guido van Rossum2b3ac691996-08-30 15:18:41 +00005846else
5847 echo "$ac_t""no" 1>&6
Guido van Rossume6c2cf11999-01-08 21:08:33 +00005848LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
Guido van Rossum2b3ac691996-08-30 15:18:41 +00005849fi
Guido van Rossum2b3ac691996-08-30 15:18:41 +00005850done
5851
Guido van Rossumf78abae1997-01-21 22:02:36 +00005852
Guido van Rossumaf5b83e1995-01-04 19:02:35 +00005853LIBS=$LIBS_SAVE
5854
Guido van Rossumad713701997-07-10 22:42:38 +00005855# check whether malloc(0) returns NULL or not
Guido van Rossumad713701997-07-10 22:42:38 +00005856echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005857echo "configure:5858: checking what malloc(0) returns" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00005858if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then
Guido van Rossumad713701997-07-10 22:42:38 +00005859 echo $ac_n "(cached) $ac_c" 1>&6
5860else
5861 if test "$cross_compiling" = yes; then
5862 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5863else
5864 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005865#line 5866 "configure"
Guido van Rossumad713701997-07-10 22:42:38 +00005866#include "confdefs.h"
5867#include <stdio.h>
5868#ifdef HAVE_STDLIB
5869#include <stdlib.h>
5870#else
5871char *malloc(), *realloc();
5872int *free();
5873#endif
5874main() {
5875 char *p;
5876 p = malloc(0);
5877 if (p == NULL) exit(1);
5878 p = realloc(p, 0);
5879 if (p == NULL) exit(1);
5880 free(p);
5881 exit(0);
5882}
5883EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005884if { (eval echo configure:5885: \"$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 +00005885then
5886 ac_cv_malloc_zero=nonnull
5887else
5888 echo "configure: failed program was:" >&5
5889 cat conftest.$ac_ext >&5
5890 rm -fr conftest*
5891 ac_cv_malloc_zero=null
5892fi
5893rm -fr conftest*
5894fi
5895
5896fi
5897
5898echo "$ac_t""$ac_cv_malloc_zero" 1>&6
5899if test "$ac_cv_malloc_zero" = null
5900then
5901 cat >> confdefs.h <<\EOF
5902#define MALLOC_ZERO_RETURNS_NULL 1
5903EOF
5904
5905fi
5906
Guido van Rossumef2255b2000-03-10 22:30:29 +00005907# check for wchar.h
5908ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'`
5909echo $ac_n "checking for wchar.h""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005910echo "configure:5911: checking for wchar.h" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00005911if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
Guido van Rossumef2255b2000-03-10 22:30:29 +00005912 echo $ac_n "(cached) $ac_c" 1>&6
5913else
5914 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005915#line 5916 "configure"
Guido van Rossumef2255b2000-03-10 22:30:29 +00005916#include "confdefs.h"
5917#include <wchar.h>
5918EOF
5919ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005920{ (eval echo configure:5921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Guido van Rossumef2255b2000-03-10 22:30:29 +00005921ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5922if test -z "$ac_err"; then
5923 rm -rf conftest*
5924 eval "ac_cv_header_$ac_safe=yes"
5925else
5926 echo "$ac_err" >&5
5927 echo "configure: failed program was:" >&5
5928 cat conftest.$ac_ext >&5
5929 rm -rf conftest*
5930 eval "ac_cv_header_$ac_safe=no"
5931fi
5932rm -f conftest*
5933fi
5934if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5935 echo "$ac_t""yes" 1>&6
5936 cat >> confdefs.h <<\EOF
5937#define HAVE_WCHAR_H 1
5938EOF
5939 wchar_h="yes"
5940else
5941 echo "$ac_t""no" 1>&6
5942wchar_h="no"
5943
5944fi
5945
5946
5947# check for usable wchar_t
5948usable_wchar_t="unkown"
5949echo $ac_n "checking for usable wchar_t""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005950echo "configure:5951: checking for usable wchar_t" >&5
Guido van Rossumef2255b2000-03-10 22:30:29 +00005951if test "$cross_compiling" = yes; then
5952 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5953else
5954 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005955#line 5956 "configure"
Guido van Rossumef2255b2000-03-10 22:30:29 +00005956#include "confdefs.h"
5957
5958#include "wchar.h"
5959#include "wctype.h"
5960main() {
5961 wchar_t s;
5962 if (sizeof(s) == 2)
5963 exit(0);
5964 else
5965 exit(1);
5966}
5967
5968EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005969if { (eval echo configure:5970: \"$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 +00005970then
5971 cat >> confdefs.h <<\EOF
5972#define HAVE_USABLE_WCHAR_T 1
5973EOF
5974 usable_wchar_t="yes"
5975else
5976 echo "configure: failed program was:" >&5
5977 cat conftest.$ac_ext >&5
5978 rm -fr conftest*
5979 usable_wchar_t="no"
5980fi
5981rm -fr conftest*
5982fi
5983
5984echo "$ac_t""$usable_wchar_t" 1>&6
5985
5986# check for endianness
5987echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005988echo "configure:5989: checking whether byte ordering is bigendian" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00005989if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
Guido van Rossumef2255b2000-03-10 22:30:29 +00005990 echo $ac_n "(cached) $ac_c" 1>&6
5991else
5992 ac_cv_c_bigendian=unknown
5993# See if sys/param.h defines the BYTE_ORDER macro.
5994cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00005995#line 5996 "configure"
Guido van Rossumef2255b2000-03-10 22:30:29 +00005996#include "confdefs.h"
5997#include <sys/types.h>
5998#include <sys/param.h>
5999int main() {
6000
6001#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6002 bogus endian macros
6003#endif
6004; return 0; }
6005EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00006006if { (eval echo configure:6007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossumef2255b2000-03-10 22:30:29 +00006007 rm -rf conftest*
6008 # It does; now see whether it defined to BIG_ENDIAN or not.
6009cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00006010#line 6011 "configure"
Guido van Rossumef2255b2000-03-10 22:30:29 +00006011#include "confdefs.h"
6012#include <sys/types.h>
6013#include <sys/param.h>
6014int main() {
6015
6016#if BYTE_ORDER != BIG_ENDIAN
6017 not big endian
6018#endif
6019; return 0; }
6020EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00006021if { (eval echo configure:6022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Guido van Rossumef2255b2000-03-10 22:30:29 +00006022 rm -rf conftest*
6023 ac_cv_c_bigendian=yes
6024else
6025 echo "configure: failed program was:" >&5
6026 cat conftest.$ac_ext >&5
6027 rm -rf conftest*
6028 ac_cv_c_bigendian=no
6029fi
6030rm -f conftest*
6031else
6032 echo "configure: failed program was:" >&5
6033 cat conftest.$ac_ext >&5
6034fi
6035rm -f conftest*
6036if test $ac_cv_c_bigendian = unknown; then
6037if test "$cross_compiling" = yes; then
6038 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
6039else
6040 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00006041#line 6042 "configure"
Guido van Rossumef2255b2000-03-10 22:30:29 +00006042#include "confdefs.h"
6043main () {
6044 /* Are we little or big endian? From Harbison&Steele. */
6045 union
6046 {
6047 long l;
6048 char c[sizeof (long)];
6049 } u;
6050 u.l = 1;
6051 exit (u.c[sizeof (long) - 1] == 1);
6052}
6053EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00006054if { (eval echo configure:6055: \"$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 +00006055then
6056 ac_cv_c_bigendian=no
6057else
6058 echo "configure: failed program was:" >&5
6059 cat conftest.$ac_ext >&5
6060 rm -fr conftest*
6061 ac_cv_c_bigendian=yes
6062fi
6063rm -fr conftest*
6064fi
6065
6066fi
6067fi
6068
6069echo "$ac_t""$ac_cv_c_bigendian" 1>&6
6070if test $ac_cv_c_bigendian = yes; then
6071 cat >> confdefs.h <<\EOF
6072#define WORDS_BIGENDIAN 1
6073EOF
6074
6075fi
6076
6077
Vladimir Marangozov676aa882000-07-12 03:02:43 +00006078# Check whether right shifting a negative integer extends the sign bit
6079# or fills with zeros (like the Cray J90, according to Tim Peters).
6080echo $ac_n "checking whether right shift extends the sign bit""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00006081echo "configure:6082: checking whether right shift extends the sign bit" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00006082if eval "test \"`echo '$''{'ac_cv_rshift_extends_sign'+set}'`\" = set"; then
Vladimir Marangozova6180282000-07-12 05:05:06 +00006083 echo $ac_n "(cached) $ac_c" 1>&6
6084else
6085
Vladimir Marangozov676aa882000-07-12 03:02:43 +00006086if test "$cross_compiling" = yes; then
6087 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
6088else
6089 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00006090#line 6091 "configure"
Vladimir Marangozov676aa882000-07-12 03:02:43 +00006091#include "confdefs.h"
6092
6093int main()
6094{
Vladimir Marangozova6180282000-07-12 05:05:06 +00006095 exit(((-1)>>3 == -1) ? 0 : 1);
Vladimir Marangozov676aa882000-07-12 03:02:43 +00006096}
6097
6098EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00006099if { (eval echo configure:6100: \"$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 +00006100then
6101 ac_cv_rshift_extends_sign=yes
6102else
6103 echo "configure: failed program was:" >&5
6104 cat conftest.$ac_ext >&5
6105 rm -fr conftest*
6106 ac_cv_rshift_extends_sign=no
6107fi
6108rm -fr conftest*
6109fi
6110
6111fi
6112
6113echo "$ac_t""$ac_cv_rshift_extends_sign" 1>&6
6114if test "$ac_cv_rshift_extends_sign" = no
Vladimir Marangozov676aa882000-07-12 03:02:43 +00006115then
6116 cat >> confdefs.h <<\EOF
6117#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
6118EOF
6119
Vladimir Marangozov676aa882000-07-12 03:02:43 +00006120fi
6121
Guido van Rossumcadfaec2001-01-05 14:45:49 +00006122# check for getc_unlocked and related locking functions
6123echo $ac_n "checking for getc_unlocked() and friends""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00006124echo "configure:6125: checking for getc_unlocked() and friends" >&5
Guido van Rossumcadfaec2001-01-05 14:45:49 +00006125if eval "test \"`echo '$''{'ac_cv_have_getc_unlocked'+set}'`\" = set"; then
6126 echo $ac_n "(cached) $ac_c" 1>&6
6127else
6128
6129cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00006130#line 6131 "configure"
Guido van Rossumcadfaec2001-01-05 14:45:49 +00006131#include "confdefs.h"
6132#include <stdio.h>
6133int main() {
6134
6135 FILE *f = fopen("/dev/null", "r");
6136 flockfile(f);
6137 getc_unlocked(f);
6138 funlockfile(f);
6139
6140; return 0; }
6141EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00006142if { (eval echo configure:6143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Guido van Rossumcadfaec2001-01-05 14:45:49 +00006143 rm -rf conftest*
6144 ac_cv_have_getc_unlocked=yes
6145else
6146 echo "configure: failed program was:" >&5
6147 cat conftest.$ac_ext >&5
6148 rm -rf conftest*
6149 ac_cv_have_getc_unlocked=no
6150fi
6151rm -f conftest*
6152fi
6153
6154echo "$ac_t""$ac_cv_have_getc_unlocked" 1>&6
6155if test "$ac_cv_have_getc_unlocked" = yes
6156then
6157 cat >> confdefs.h <<\EOF
6158#define HAVE_GETC_UNLOCKED 1
6159EOF
6160
6161fi
Vladimir Marangozov676aa882000-07-12 03:02:43 +00006162
Guido van Rossum95713eb2000-05-18 20:53:31 +00006163# THIS MUST BE LAST, IT CAN BREAK OTHER TESTS!
6164# Add sys/socket.h to confdefs.h
6165cat >> confdefs.h <<\EOF
6166#ifdef HAVE_SYS_SOCKET_H
6167#include <sys/socket.h>
6168#endif
6169EOF
6170echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00006171echo "configure:6172: checking for socklen_t" >&5
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00006172if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
Guido van Rossum95713eb2000-05-18 20:53:31 +00006173 echo $ac_n "(cached) $ac_c" 1>&6
6174else
6175 cat > conftest.$ac_ext <<EOF
Guido van Rossum2242f2f2001-04-11 20:58:20 +00006176#line 6177 "configure"
Guido van Rossum95713eb2000-05-18 20:53:31 +00006177#include "confdefs.h"
6178#include <sys/types.h>
6179#if STDC_HEADERS
6180#include <stdlib.h>
6181#include <stddef.h>
6182#endif
6183EOF
6184if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6185 egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6186 rm -rf conftest*
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00006187 ac_cv_type_socklen_t=yes
Guido van Rossum95713eb2000-05-18 20:53:31 +00006188else
6189 rm -rf conftest*
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00006190 ac_cv_type_socklen_t=no
Guido van Rossum95713eb2000-05-18 20:53:31 +00006191fi
6192rm -f conftest*
6193
6194fi
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00006195echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
6196if test $ac_cv_type_socklen_t = no; then
6197 cat >> confdefs.h <<\EOF
Guido van Rossum95713eb2000-05-18 20:53:31 +00006198#define socklen_t int
6199EOF
6200
6201fi
6202
6203
Neil Schemenauerf25cf6c2001-03-04 06:39:33 +00006204# Add Python/ prefix to LIBOBJS
6205libobjs=$LIBOBJS
6206LIBOBJS=
6207for obj in $libobjs; do
6208 LIBOBJS="$LIBOBJS Python/$obj"
6209done
6210
Neil Schemenauerd32c2492001-01-24 17:25:28 +00006211#AC_MSG_CHECKING(for Modules/Setup)
6212#if test ! -f Modules/Setup ; then
6213# if test ! -d Modules ; then
6214# mkdir Modules
6215# fi
6216# cp "$srcdir/Modules/Setup.dist" Modules/Setup
6217# AC_MSG_RESULT(creating)
6218#else
6219# AC_MSG_RESULT(already exists)
6220#fi
6221
6222
Neil Schemenaueracbf9ef2001-02-27 02:15:14 +00006223SRCDIRS="Parser Grammar Objects Python Modules"
Andrew M. Kuchling8abedde2001-01-26 22:55:24 +00006224echo $ac_n "checking for build directories""... $ac_c" 1>&6
Guido van Rossum2242f2f2001-04-11 20:58:20 +00006225echo "configure:6226: checking for build directories" >&5
Neil Schemenauerd32c2492001-01-24 17:25:28 +00006226for dir in $SRCDIRS; do
6227 if test ! -d $dir; then
6228 mkdir $dir
Guido van Rossum262cf202000-11-02 19:33:53 +00006229 fi
Neil Schemenauerd32c2492001-01-24 17:25:28 +00006230done
6231echo "$ac_t""done" 1>&6
Fred Drake036144d2000-10-26 17:09:35 +00006232
Guido van Rossum627b2d71993-12-24 10:39:16 +00006233# generate output files
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006234trap '' 1 2 15
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00006235cat > confcache <<\EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006236# This file is a shell script that caches the results of configure
6237# tests run on this system so they can be shared between configure
6238# scripts and configure runs. It is not useful on other systems.
6239# If it contains results you don't want to keep, you may remove or edit it.
6240#
6241# By default, configure uses ./config.cache as the cache file,
6242# creating it if it does not exist already. You can give configure
6243# the --cache-file=FILE option to use a different cache file; that is
6244# what configure does when it calls configure scripts in
6245# subdirectories, so they share the cache.
6246# Giving --cache-file=/dev/null disables caching, for debugging configure.
6247# config.status only pays attention to the cache file if you give it the
6248# --recheck option to rerun configure.
6249#
6250EOF
Guido van Rossumf78abae1997-01-21 22:02:36 +00006251# The following way of writing the cache mishandles newlines in values,
6252# but we know of no workaround that is simple, portable, and efficient.
6253# So, don't put newlines in cache variables' values.
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00006254# Ultrix sh set writes to stderr and can't be redirected directly,
6255# and sets the high bit in the cache file unless we assign to the vars.
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006256(set) 2>&1 |
Guido van Rossume6c2cf11999-01-08 21:08:33 +00006257 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Guido van Rossumf78abae1997-01-21 22:02:36 +00006258 *ac_space=\ *)
6259 # `set' does not quote correctly, so add quotes (double-quote substitution
6260 # turns \\\\ into \\, and sed turns \\ into \).
6261 sed -n \
6262 -e "s/'/'\\\\''/g" \
6263 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6264 ;;
6265 *)
6266 # `set' quotes correctly as required by POSIX, so do not add quotes.
6267 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6268 ;;
6269 esac >> confcache
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00006270if cmp -s $cache_file confcache; then
6271 :
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006272else
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00006273 if test -w $cache_file; then
6274 echo "updating cache $cache_file"
6275 cat confcache > $cache_file
6276 else
6277 echo "not updating unwritable cache $cache_file"
6278 fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006279fi
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00006280rm -f confcache
Guido van Rossum0a516c91994-09-12 10:58:40 +00006281
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00006282trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006283
6284test "x$prefix" = xNONE && prefix=$ac_default_prefix
6285# Let make expand exec_prefix.
6286test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
Guido van Rossum0a516c91994-09-12 10:58:40 +00006287
Guido van Rossum7f43da71994-08-01 12:15:30 +00006288# Any assignment to VPATH causes Sun make to only execute
6289# the first set of double-colon rules, so remove it if not needed.
6290# If there is a colon in the path, we need to keep it.
6291if test "x$srcdir" = x.; then
6292 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6293fi
6294
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006295trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
Guido van Rossum627b2d71993-12-24 10:39:16 +00006296
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006297DEFS=-DHAVE_CONFIG_H
6298
6299# Without the "./", some shells look in PATH for config.status.
6300: ${CONFIG_STATUS=./config.status}
6301
6302echo creating $CONFIG_STATUS
6303rm -f $CONFIG_STATUS
6304cat > $CONFIG_STATUS <<EOF
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00006305#! /bin/sh
Guido van Rossum627b2d71993-12-24 10:39:16 +00006306# Generated automatically by configure.
6307# Run this file to recreate the current configuration.
6308# This directory was configured as follows,
6309# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6310#
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006311# $0 $ac_configure_args
6312#
6313# Compiler output produced by configure, useful for debugging
6314# configure, is in ./config.log if it exists.
Guido van Rossum627b2d71993-12-24 10:39:16 +00006315
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006316ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
Guido van Rossum7f43da71994-08-01 12:15:30 +00006317for ac_option
Guido van Rossum627b2d71993-12-24 10:39:16 +00006318do
Guido van Rossum7f43da71994-08-01 12:15:30 +00006319 case "\$ac_option" in
6320 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006321 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6322 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
Guido van Rossum7f43da71994-08-01 12:15:30 +00006323 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00006324 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Guido van Rossum7f43da71994-08-01 12:15:30 +00006325 exit 0 ;;
6326 -help | --help | --hel | --he | --h)
6327 echo "\$ac_cs_usage"; exit 0 ;;
6328 *) echo "\$ac_cs_usage"; exit 1 ;;
Guido van Rossum627b2d71993-12-24 10:39:16 +00006329 esac
6330done
6331
Guido van Rossum7f43da71994-08-01 12:15:30 +00006332ac_given_srcdir=$srcdir
Neil Schemenauerd32c2492001-01-24 17:25:28 +00006333ac_given_INSTALL="$INSTALL"
Guido van Rossum627b2d71993-12-24 10:39:16 +00006334
Andrew M. Kuchling8abedde2001-01-26 22:55:24 +00006335trap '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 +00006336EOF
6337cat >> $CONFIG_STATUS <<EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00006338
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00006339# Protect against being on the right side of a sed subst in config.status.
6340sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6341 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00006342$ac_vpsub
Guido van Rossum627b2d71993-12-24 10:39:16 +00006343$extrasub
Guido van Rossume6c2cf11999-01-08 21:08:33 +00006344s%@SHELL@%$SHELL%g
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006345s%@CFLAGS@%$CFLAGS%g
6346s%@CPPFLAGS@%$CPPFLAGS%g
6347s%@CXXFLAGS@%$CXXFLAGS%g
Guido van Rossume6c2cf11999-01-08 21:08:33 +00006348s%@FFLAGS@%$FFLAGS%g
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006349s%@DEFS@%$DEFS%g
6350s%@LDFLAGS@%$LDFLAGS%g
6351s%@LIBS@%$LIBS%g
6352s%@exec_prefix@%$exec_prefix%g
6353s%@prefix@%$prefix%g
6354s%@program_transform_name@%$program_transform_name%g
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00006355s%@bindir@%$bindir%g
6356s%@sbindir@%$sbindir%g
6357s%@libexecdir@%$libexecdir%g
6358s%@datadir@%$datadir%g
6359s%@sysconfdir@%$sysconfdir%g
6360s%@sharedstatedir@%$sharedstatedir%g
6361s%@localstatedir@%$localstatedir%g
6362s%@libdir@%$libdir%g
6363s%@includedir@%$includedir%g
6364s%@oldincludedir@%$oldincludedir%g
6365s%@infodir@%$infodir%g
6366s%@mandir@%$mandir%g
Guido van Rossum1fd74a71997-07-19 19:36:02 +00006367s%@VERSION@%$VERSION%g
Neil Schemenauer4edbc2a2001-03-22 00:34:03 +00006368s%@CONFIG_ARGS@%$CONFIG_ARGS%g
Guido van Rossum7b3853f1996-07-30 18:09:35 +00006369s%@MACHDEP@%$MACHDEP%g
Guido van Rossum91922671997-10-09 20:24:13 +00006370s%@SGI_ABI@%$SGI_ABI%g
Martin v. Löwis22352952000-12-13 17:37:02 +00006371s%@CXX@%$CXX%g
Guido van Rossumca563f22001-01-23 01:52:44 +00006372s%@MAINOBJ@%$MAINOBJ%g
Guido van Rossum627b2d71993-12-24 10:39:16 +00006373s%@CC@%$CC%g
Neil Schemenauerd32c2492001-01-24 17:25:28 +00006374s%@EXEEXT@%$EXEEXT%g
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00006375s%@LIBRARY@%$LIBRARY%g
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00006376s%@LDLIBRARY@%$LDLIBRARY%g
Guido van Rossumca563f22001-01-23 01:52:44 +00006377s%@DLLLIBRARY@%$DLLLIBRARY%g
Guido van Rossum76c5fe21997-08-14 19:45:07 +00006378s%@LINKCC@%$LINKCC%g
Guido van Rossum627b2d71993-12-24 10:39:16 +00006379s%@RANLIB@%$RANLIB%g
Guido van Rossum7f43da71994-08-01 12:15:30 +00006380s%@AR@%$AR%g
Guido van Rossumda88dad1995-01-26 00:46:29 +00006381s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
Neil Schemenauerd32c2492001-01-24 17:25:28 +00006382s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
Guido van Rossumda88dad1995-01-26 00:46:29 +00006383s%@INSTALL_DATA@%$INSTALL_DATA%g
Guido van Rossumec95c7b1998-08-04 17:59:56 +00006384s%@LN@%$LN%g
Guido van Rossumb1ba03f1994-08-19 15:34:50 +00006385s%@OPT@%$OPT%g
Guido van Rossum627b2d71993-12-24 10:39:16 +00006386s%@CPP@%$CPP%g
Guido van Rossum54ecc3d1999-01-27 17:53:11 +00006387s%@LIBTOOL_CRUFT@%$LIBTOOL_CRUFT%g
Guido van Rossum0a516c91994-09-12 10:58:40 +00006388s%@SO@%$SO%g
6389s%@LDSHARED@%$LDSHARED%g
Neil Schemenauer4a7bbcb2001-02-16 03:37:54 +00006390s%@BLDSHARED@%$BLDSHARED%g
Guido van Rossum0a516c91994-09-12 10:58:40 +00006391s%@CCSHARED@%$CCSHARED%g
6392s%@LINKFORSHARED@%$LINKFORSHARED%g
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00006393s%@CFLAGSFORSHARED@%$CFLAGSFORSHARED%g
Neil Schemenauerd32c2492001-01-24 17:25:28 +00006394s%@USE_SIGNAL_MODULE@%$USE_SIGNAL_MODULE%g
6395s%@SIGNAL_OBJS@%$SIGNAL_OBJS%g
Guido van Rossum009f7871997-12-04 00:51:42 +00006396s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g
Guido van Rossumec2f0731997-01-22 20:54:01 +00006397s%@LDLAST@%$LDLAST%g
Barry Warsawef82cd72000-06-30 16:21:01 +00006398s%@USE_GC_MODULE@%$USE_GC_MODULE%g
Guido van Rossum7f43da71994-08-01 12:15:30 +00006399s%@DLINCLDIR@%$DLINCLDIR%g
Guido van Rossume97ee181999-12-20 21:27:22 +00006400s%@DYNLOADFILE@%$DYNLOADFILE%g
Guido van Rossum627b2d71993-12-24 10:39:16 +00006401s%@LIBOBJS@%$LIBOBJS%g
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00006402s%@HAVE_GETHOSTBYNAME_R_6_ARG@%$HAVE_GETHOSTBYNAME_R_6_ARG%g
6403s%@HAVE_GETHOSTBYNAME_R_5_ARG@%$HAVE_GETHOSTBYNAME_R_5_ARG%g
6404s%@HAVE_GETHOSTBYNAME_R_3_ARG@%$HAVE_GETHOSTBYNAME_R_3_ARG%g
Guido van Rossum8db7d8b1999-03-23 16:40:33 +00006405s%@HAVE_GETHOSTBYNAME_R@%$HAVE_GETHOSTBYNAME_R%g
Guido van Rossuma96f0ba1999-03-22 21:49:51 +00006406s%@HAVE_GETHOSTBYNAME@%$HAVE_GETHOSTBYNAME%g
Guido van Rossum7f43da71994-08-01 12:15:30 +00006407s%@LIBM@%$LIBM%g
6408s%@LIBC@%$LIBC%g
Neil Schemenauerd32c2492001-01-24 17:25:28 +00006409s%@SRCDIRS@%$SRCDIRS%g
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006410
6411CEOF
6412EOF
Guido van Rossumf78abae1997-01-21 22:02:36 +00006413
6414cat >> $CONFIG_STATUS <<\EOF
6415
6416# Split the substitutions into bite-sized pieces for seds with
6417# small command number limits, like on Digital OSF/1 and HP-UX.
6418ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6419ac_file=1 # Number of current file.
6420ac_beg=1 # First line for current file.
6421ac_end=$ac_max_sed_cmds # Line after last line for current file.
6422ac_more_lines=:
6423ac_sed_cmds=""
6424while $ac_more_lines; do
6425 if test $ac_beg -gt 1; then
6426 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6427 else
6428 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6429 fi
6430 if test ! -s conftest.s$ac_file; then
6431 ac_more_lines=false
6432 rm -f conftest.s$ac_file
6433 else
6434 if test -z "$ac_sed_cmds"; then
6435 ac_sed_cmds="sed -f conftest.s$ac_file"
6436 else
6437 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6438 fi
6439 ac_file=`expr $ac_file + 1`
6440 ac_beg=$ac_end
6441 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6442 fi
6443done
6444if test -z "$ac_sed_cmds"; then
6445 ac_sed_cmds=cat
6446fi
6447EOF
6448
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006449cat >> $CONFIG_STATUS <<EOF
6450
Andrew M. Kuchling8abedde2001-01-26 22:55:24 +00006451CONFIG_FILES=\${CONFIG_FILES-"Makefile.pre Modules/Setup.config"}
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006452EOF
6453cat >> $CONFIG_STATUS <<\EOF
6454for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Guido van Rossumf78abae1997-01-21 22:02:36 +00006455 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006456 case "$ac_file" in
Guido van Rossumf78abae1997-01-21 22:02:36 +00006457 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006458 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6459 *) ac_file_in="${ac_file}.in" ;;
6460 esac
6461
Guido van Rossumf78abae1997-01-21 22:02:36 +00006462 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006463
6464 # Remove last slash and all that follows it. Not all systems have dirname.
6465 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6466 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6467 # The file is in a subdirectory.
6468 test ! -d "$ac_dir" && mkdir "$ac_dir"
Guido van Rossum8ddd0ad1995-06-14 23:10:28 +00006469 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006470 # A "../" for each directory in $ac_dir_suffix.
6471 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6472 else
6473 ac_dir_suffix= ac_dots=
6474 fi
6475
6476 case "$ac_given_srcdir" in
6477 .) srcdir=.
6478 if test -z "$ac_dots"; then top_srcdir=.
6479 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6480 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6481 *) # Relative path.
6482 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6483 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6484 esac
6485
Neil Schemenauerd32c2492001-01-24 17:25:28 +00006486 case "$ac_given_INSTALL" in
6487 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6488 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6489 esac
Guido van Rossumf78abae1997-01-21 22:02:36 +00006490
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006491 echo creating "$ac_file"
6492 rm -f "$ac_file"
6493 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6494 case "$ac_file" in
6495 *Makefile*) ac_comsub="1i\\
6496# $configure_input" ;;
6497 *) ac_comsub= ;;
6498 esac
Guido van Rossumf78abae1997-01-21 22:02:36 +00006499
6500 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 +00006501 sed -e "$ac_comsub
6502s%@configure_input@%$configure_input%g
Guido van Rossum627b2d71993-12-24 10:39:16 +00006503s%@srcdir@%$srcdir%g
Guido van Rossum7f43da71994-08-01 12:15:30 +00006504s%@top_srcdir@%$top_srcdir%g
Neil Schemenauerd32c2492001-01-24 17:25:28 +00006505s%@INSTALL@%$INSTALL%g
Guido van Rossumf78abae1997-01-21 22:02:36 +00006506" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Guido van Rossum627b2d71993-12-24 10:39:16 +00006507fi; done
Guido van Rossumf78abae1997-01-21 22:02:36 +00006508rm -f conftest.s*
Guido van Rossum627b2d71993-12-24 10:39:16 +00006509
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006510# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6511# NAME is the cpp macro being defined and VALUE is the value it is being given.
Guido van Rossum7f43da71994-08-01 12:15:30 +00006512#
6513# ac_d sets the value in "#define NAME VALUE" lines.
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006514ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6515ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
Guido van Rossum7f43da71994-08-01 12:15:30 +00006516ac_dC='\3'
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006517ac_dD='%g'
Guido van Rossum7f43da71994-08-01 12:15:30 +00006518# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006519ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6520ac_uB='\([ ]\)%\1#\2define\3'
Guido van Rossum7f43da71994-08-01 12:15:30 +00006521ac_uC=' '
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006522ac_uD='\4%g'
Guido van Rossum7f43da71994-08-01 12:15:30 +00006523# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006524ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6525ac_eB='$%\1#\2define\3'
Guido van Rossum7f43da71994-08-01 12:15:30 +00006526ac_eC=' '
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006527ac_eD='%g'
Guido van Rossum7f43da71994-08-01 12:15:30 +00006528
Guido van Rossumf78abae1997-01-21 22:02:36 +00006529if test "${CONFIG_HEADERS+set}" != set; then
6530EOF
6531cat >> $CONFIG_STATUS <<EOF
6532 CONFIG_HEADERS="config.h"
6533EOF
6534cat >> $CONFIG_STATUS <<\EOF
6535fi
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006536for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
Guido van Rossumf78abae1997-01-21 22:02:36 +00006537 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006538 case "$ac_file" in
Guido van Rossumf78abae1997-01-21 22:02:36 +00006539 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006540 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6541 *) ac_file_in="${ac_file}.in" ;;
6542 esac
6543
Guido van Rossum7f43da71994-08-01 12:15:30 +00006544 echo creating $ac_file
6545
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006546 rm -f conftest.frag conftest.in conftest.out
Guido van Rossumf78abae1997-01-21 22:02:36 +00006547 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6548 cat $ac_file_inputs > conftest.in
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006549
6550EOF
6551
6552# Transform confdefs.h into a sed script conftest.vals that substitutes
6553# the proper values into config.h.in to produce config.h. And first:
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00006554# Protect against being on the right side of a sed subst in config.status.
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006555# Protect against being in an unquoted here document in config.status.
6556rm -f conftest.vals
6557cat > conftest.hdr <<\EOF
6558s/[\\&%]/\\&/g
6559s%[\\$`]%\\&%g
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00006560s%#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 +00006561s%ac_d%ac_u%gp
6562s%ac_u%ac_e%gp
6563EOF
6564sed -n -f conftest.hdr confdefs.h > conftest.vals
6565rm -f conftest.hdr
6566
6567# This sed command replaces #undef with comments. This is necessary, for
6568# example, in the case of _POSIX_SOURCE, which is predefined and required
6569# on some systems where configure will not decide to define it.
6570cat >> conftest.vals <<\EOF
6571s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6572EOF
6573
6574# Break up conftest.vals because some shells have a limit on
6575# the size of here documents, and old seds have small limits too.
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006576
6577rm -f conftest.tail
6578while :
6579do
6580 ac_lines=`grep -c . conftest.vals`
6581 # grep -c gives empty output for an empty file on some AIX systems.
6582 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6583 # Write a limited-size here document to conftest.frag.
6584 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6585 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6586 echo 'CEOF
6587 sed -f conftest.frag conftest.in > conftest.out
6588 rm -f conftest.in
6589 mv conftest.out conftest.in
6590' >> $CONFIG_STATUS
6591 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6592 rm -f conftest.vals
6593 mv conftest.tail conftest.vals
6594done
6595rm -f conftest.vals
6596
6597cat >> $CONFIG_STATUS <<\EOF
6598 rm -f conftest.frag conftest.h
Guido van Rossum7f43da71994-08-01 12:15:30 +00006599 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006600 cat conftest.in >> conftest.h
6601 rm -f conftest.in
Guido van Rossum7f43da71994-08-01 12:15:30 +00006602 if cmp -s $ac_file conftest.h 2>/dev/null; then
Guido van Rossum7f43da71994-08-01 12:15:30 +00006603 echo "$ac_file is unchanged"
6604 rm -f conftest.h
6605 else
Guido van Rossum48bdbfc1996-05-28 22:53:48 +00006606 # Remove last slash and all that follows it. Not all systems have dirname.
6607 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6608 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6609 # The file is in a subdirectory.
6610 test ! -d "$ac_dir" && mkdir "$ac_dir"
6611 fi
Guido van Rossum7f43da71994-08-01 12:15:30 +00006612 rm -f $ac_file
6613 mv conftest.h $ac_file
6614 fi
6615fi; done
6616
Guido van Rossumf78abae1997-01-21 22:02:36 +00006617EOF
6618cat >> $CONFIG_STATUS <<EOF
Guido van Rossum7f43da71994-08-01 12:15:30 +00006619
Guido van Rossumf78abae1997-01-21 22:02:36 +00006620EOF
6621cat >> $CONFIG_STATUS <<\EOF
Guido van Rossum627b2d71993-12-24 10:39:16 +00006622
6623exit 0
6624EOF
Guido van Rossum76be6ed1995-01-02 18:33:54 +00006625chmod +x $CONFIG_STATUS
6626rm -fr confdefs* $ac_clean_files
Guido van Rossum8d6e8af2000-10-30 17:45:07 +00006627test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
Guido van Rossum627b2d71993-12-24 10:39:16 +00006628
Neil Schemenauer3ecf0aa2001-01-26 16:15:20 +00006629
6630echo "creating Setup"
6631if test ! -f Modules/Setup
6632then
6633 cp $srcdir/Modules/Setup.dist Modules/Setup
6634fi
6635
6636echo "creating Setup.local"
6637if test ! -f Modules/Setup.local
6638then
6639 echo "# Edit this file for local setup changes" >Modules/Setup.local
6640fi
6641
6642echo "creating Makefile"
6643$SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
6644 -s Modules Modules/Setup.config \
Neil Schemenauerf8b71c52001-04-21 17:41:16 +00006645 Modules/Setup.local Modules/Setup
Neil Schemenauerc761fc82001-02-19 04:50:49 +00006646mv config.c Modules