Updated for 2.1b2 distribution.
[python/dscho.git] / configure
blobdef0e900ebc26a9dd544e3fda7247106d5c97e23
1 #! /bin/sh
3 # From configure.in Revision: 1.213
5 # Guess values for system-dependent variables and create Makefiles.
6 # Generated automatically using autoconf version 2.13
7 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Defaults:
13 ac_help=
14 ac_default_prefix=/usr/local
15 # Any additions from configure.in:
16 ac_help="$ac_help
17 --with-next-archs='arch1 arch2 ..' build MAB binary"
18 ac_help="$ac_help
19 --with-next-framework Build (OpenStep|Rhapsody|MacOSX|Darwin) framework"
20 ac_help="$ac_help
21 --with-dyld Use (OpenStep|Rhapsody|MacOSX|Darwin) dynamic linker"
22 ac_help="$ac_help
23 --without-gcc never use gcc"
24 ac_help="$ac_help
25 --with-cxx=<compiler> enable C++ support"
26 ac_help="$ac_help
27 --with-suffix=.exe set executable suffix"
28 ac_help="$ac_help
29 --with-pydebug build with Py_DEBUG defined"
30 ac_help="$ac_help
31 --with-libs='lib1 ...' link against additional libs"
32 ac_help="$ac_help
33 --with-signal-module disable/enable signal module"
34 ac_help="$ac_help
35 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries"
36 ac_help="$ac_help
37 --with(out)-threads[=DIRECTORY] disable/enable thread support"
38 ac_help="$ac_help
39 --with(out)-thread[=DIRECTORY] deprecated; use --with(out)-threads"
40 ac_help="$ac_help
41 --with-pth use GNU pth threading libraries"
42 ac_help="$ac_help
43 --with(out)-cycle-gc disable/enable garbage collection"
44 ac_help="$ac_help
45 --with(out)-pymalloc disable/enable specialized mallocs"
46 ac_help="$ac_help
47 --with-wctype-functions use wctype.h functions"
48 ac_help="$ac_help
49 --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking"
50 ac_help="$ac_help
51 --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking"
52 ac_help="$ac_help
53 --with-fpectl enable SIGFPE catching"
54 ac_help="$ac_help
55 --with-libm=STRING math library"
56 ac_help="$ac_help
57 --with-libc=STRING C library"
59 # Initialize some variables set by options.
60 # The variables have the same names as the options, with
61 # dashes changed to underlines.
62 build=NONE
63 cache_file=./config.cache
64 exec_prefix=NONE
65 host=NONE
66 no_create=
67 nonopt=NONE
68 no_recursion=
69 prefix=NONE
70 program_prefix=NONE
71 program_suffix=NONE
72 program_transform_name=s,x,x,
73 silent=
74 site=
75 srcdir=
76 target=NONE
77 verbose=
78 x_includes=NONE
79 x_libraries=NONE
80 bindir='${exec_prefix}/bin'
81 sbindir='${exec_prefix}/sbin'
82 libexecdir='${exec_prefix}/libexec'
83 datadir='${prefix}/share'
84 sysconfdir='${prefix}/etc'
85 sharedstatedir='${prefix}/com'
86 localstatedir='${prefix}/var'
87 libdir='${exec_prefix}/lib'
88 includedir='${prefix}/include'
89 oldincludedir='/usr/include'
90 infodir='${prefix}/info'
91 mandir='${prefix}/man'
93 # Initialize some other variables.
94 subdirs=
95 MFLAGS= MAKEFLAGS=
96 SHELL=${CONFIG_SHELL-/bin/sh}
97 # Maximum number of lines to put in a shell here document.
98 ac_max_here_lines=12
100 ac_prev=
101 for ac_option
104 # 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
111 case "$ac_option" in
112 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
113 *) ac_optarg= ;;
114 esac
116 # Accept the important Cygnus configure options, so we can diagnose typos.
118 case "$ac_option" in
120 -bindir | --bindir | --bindi | --bind | --bin | --bi)
121 ac_prev=bindir ;;
122 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
123 bindir="$ac_optarg" ;;
125 -build | --build | --buil | --bui | --bu)
126 ac_prev=build ;;
127 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
128 build="$ac_optarg" ;;
130 -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" ;;
137 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
138 ac_prev=datadir ;;
139 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
140 | --da=*)
141 datadir="$ac_optarg" ;;
143 -disable-* | --disable-*)
144 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
145 # Reject names that are not valid shell variable names.
146 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
147 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
149 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
150 eval "enable_${ac_feature}=no" ;;
152 -enable-* | --enable-*)
153 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
154 # Reject names that are not valid shell variable names.
155 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
156 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
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'" ;;
165 -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" ;;
174 -gas | --gas | --ga | --g)
175 # Obsolete; use --with-gas.
176 with_gas=yes ;;
178 -help | --help | --hel | --he)
179 # 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.
181 cat << EOF
182 Usage: configure [options] [host]
183 Options: [defaults in brackets after descriptions]
184 Configuration:
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
190 Directory and file names:
191 --prefix=PREFIX install architecture-independent files in PREFIX
192 [$ac_default_prefix]
193 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
194 [same as prefix]
195 --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]
209 --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
212 --program-transform-name=PROGRAM
213 run sed PROGRAM on installed program names
215 cat << EOF
216 Host 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]
220 Features 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
228 if test -n "$ac_help"; then
229 echo "--enable and --with options recognized:$ac_help"
231 exit 0 ;;
233 -host | --host | --hos | --ho)
234 ac_prev=host ;;
235 -host=* | --host=* | --hos=* | --ho=*)
236 host="$ac_optarg" ;;
238 -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" ;;
245 -infodir | --infodir | --infodi | --infod | --info | --inf)
246 ac_prev=infodir ;;
247 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
248 infodir="$ac_optarg" ;;
250 -libdir | --libdir | --libdi | --libd)
251 ac_prev=libdir ;;
252 -libdir=* | --libdir=* | --libdi=* | --libd=*)
253 libdir="$ac_optarg" ;;
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" ;;
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" ;;
271 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
272 ac_prev=mandir ;;
273 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
274 mandir="$ac_optarg" ;;
276 -nfp | --nfp | --nf)
277 # Obsolete; use --without-fp.
278 with_fp=no ;;
280 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
281 | --no-cr | --no-c)
282 no_create=yes ;;
284 -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 ;;
288 -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" ;;
297 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
298 ac_prev=prefix ;;
299 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
300 prefix="$ac_optarg" ;;
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" ;;
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" ;;
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" ;;
333 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
334 | -silent | --silent | --silen | --sile | --sil)
335 silent=yes ;;
337 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
338 ac_prev=sbindir ;;
339 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
340 | --sbi=* | --sb=*)
341 sbindir="$ac_optarg" ;;
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" ;;
354 -site | --site | --sit)
355 ac_prev=site ;;
356 -site=* | --site=* | --sit=*)
357 site="$ac_optarg" ;;
359 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
360 ac_prev=srcdir ;;
361 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
362 srcdir="$ac_optarg" ;;
364 -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" ;;
371 -target | --target | --targe | --targ | --tar | --ta | --t)
372 ac_prev=target ;;
373 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
374 target="$ac_optarg" ;;
376 -v | -verbose | --verbose | --verbos | --verbo | --verb)
377 verbose=yes ;;
379 -version | --version | --versio | --versi | --vers)
380 echo "configure generated by autoconf version 2.13"
381 exit 0 ;;
383 -with-* | --with-*)
384 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
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'" ;;
396 -without-* | --without-*)
397 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
400 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 eval "with_${ac_package}=no" ;;
405 --x)
406 # Obsolete; use --with-x.
407 with_x=yes ;;
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" ;;
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" ;;
423 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
427 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
428 echo "configure: warning: $ac_option: invalid host type" 1>&2
430 if test "x$nonopt" != xNONE; then
431 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
433 nonopt="$ac_option"
436 esac
437 done
439 if test -n "$ac_prev"; then
440 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
443 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
445 # File descriptor usage:
446 # 0 standard input
447 # 1 file creation
448 # 2 errors and warnings
449 # 3 some systems may open it to /dev/tty
450 # 4 used on the Kubota Titan
451 # 6 checking for... messages and results
452 # 5 compiler messages saved in config.log
453 if test "$silent" = yes; then
454 exec 6>/dev/null
455 else
456 exec 6>&1
458 exec 5>./config.log
460 echo "\
461 This file contains any messages produced by compilers while
462 running configure, to aid debugging if configure makes a mistake.
463 " 1>&5
465 # Strip out --no-create and --no-recursion so they do not pile up.
466 # Also quote any args containing shell metacharacters.
467 ac_configure_args=
468 for ac_arg
470 case "$ac_arg" in
471 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
472 | --no-cr | --no-c) ;;
473 -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" ;;
478 esac
479 done
481 # NLS nuisances.
482 # 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.
486 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
487 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
488 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
489 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
491 # confdefs.h avoids OS command line length limits that DEFS can exceed.
492 rm -rf conftest* confdefs.h
493 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
494 echo > confdefs.h
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.
498 ac_unique_file=Include/object.h
500 # Find the source files, if location was not specified.
501 if test -z "$srcdir"; then
502 ac_srcdir_defaulted=yes
503 # Try the directory containing this script, then its parent.
504 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
509 srcdir=..
511 else
512 ac_srcdir_defaulted=no
514 if test ! -r $srcdir/$ac_unique_file; then
515 if test "$ac_srcdir_defaulted" = yes; then
516 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
517 else
518 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
521 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
523 # Prefer explicitly selected file to automatically selected ones.
524 if 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"
531 for 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"
536 done
538 if test -r "$cache_file"; then
539 echo "loading cache $cache_file"
540 . $cache_file
541 else
542 echo "creating cache $cache_file"
543 > $cache_file
546 ac_ext=c
547 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
548 ac_cpp='$CPP $CPPFLAGS'
549 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
550 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
551 cross_compiling=$ac_cv_prog_cc_cross
553 ac_exeext=
554 ac_objext=o
555 if (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=
563 else
564 ac_n= ac_c='\c' ac_t=
570 # Set VERSION so we only need to edit in one place (i.e., here)
572 VERSION=2.1
574 # Arguments passed to configure.
576 CONFIG_ARGS="$ac_configure_args"
578 # NEXTSTEP|MacOSX|Darwin stuff
579 if test -f /usr/lib/NextStep/software_version -o -f /System/Library/CoreServices/software_version ; then
581 echo $ac_n "checking for --with-next-archs""... $ac_c" 1>&6
582 echo "configure:583: checking for --with-next-archs" >&5
583 # Check whether --with-next-archs or --without-next-archs was given.
584 if test "${with_next_archs+set}" = set; then
585 withval="$with_next_archs"
587 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
592 echo "$ac_t""$with_next_archs" 1>&6
594 else
595 echo "$ac_t""none: using `arch`" 1>&6
599 if test -z "$MACHDEP"
600 then
601 ac_sys_system=`uname -s`
602 if test "$ac_sys_system" = "Darwin" ; then
603 ac_sys_release=`uname -r`
604 else
605 set X `hostinfo | egrep '(NeXT Mach|Kernel Release).*:' | \
606 sed -e 's/://' -e 's/\./_/'` && \
607 ac_sys_system=next && ac_sys_release=$4
610 MACHDEP="$ac_sys_system$ac_sys_release"
614 # Check whether --with-next-framework or --without-next-framework was given.
615 if test "${with_next_framework+set}" = set; then
616 withval="$with_next_framework"
620 # Check whether --with-dyld or --without-dyld was given.
621 if test "${with_dyld+set}" = set; then
622 withval="$with_dyld"
627 # Set name for machine-dependent library files
629 echo $ac_n "checking MACHDEP""... $ac_c" 1>&6
630 echo "configure:631: checking MACHDEP" >&5
631 if test -z "$MACHDEP"
632 then
633 ac_sys_system=`uname -s`
634 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64"; then
635 ac_sys_release=`uname -v`
636 else
637 ac_sys_release=`uname -r`
639 ac_md_system=`echo $ac_sys_system |
640 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
641 ac_md_release=`echo $ac_sys_release |
642 tr -d '/ ' | sed 's/\..*//'`
643 MACHDEP="$ac_md_system$ac_md_release"
645 case $MACHDEP in
646 '') MACHDEP="unknown";;
647 esac
651 # SGI compilers allow the specification of the both the ABI and the
652 # ISA on the command line. Depending on the values of these switches,
653 # different and often incompatable code will be generated.
655 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
656 # thus supply support for various ABI/ISA combinations. The MACHDEP
657 # variable is also adjusted.
660 if test ! -z "$SGI_ABI"
661 then
662 CC="cc $SGI_ABI"
663 LDFLAGS="$SGI_ABI $LDFLAGS"
664 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
666 echo "$ac_t""$MACHDEP" 1>&6
668 # checks for alternative programs
669 echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6
670 echo "configure:671: checking for --without-gcc" >&5
671 # Check whether --with-gcc or --without-gcc was given.
672 if test "${with_gcc+set}" = set; then
673 withval="$with_gcc"
675 case $withval in
676 no) CC=cc
677 without_gcc=yes;;
678 yes) CC=gcc
679 without_gcc=no;;
680 *) CC=$withval
681 without_gcc=$withval;;
682 esac
683 else
685 case $ac_sys_system in
686 OSF1) CC=cc
687 without_gcc=;;
688 AIX*) CC=cc_r
689 without_gcc=;;
690 BeOS*)
691 case $BE_HOST_CPU in
692 ppc)
693 CC=mwcc
694 without_gcc=yes
695 OPT="-O -D'DL_EXPORT(RTYPE)=__declspec(dllexport) RTYPE' -D'DL_IMPORT(RTYPE)=__declspec(dllexport) RTYPE' -export pragma"
696 CCSHARED="-UDL_IMPORT -D'DL_IMPORT(RTYPE)=__declspec(dllimport) RTYPE'"
697 LDFLAGS="$LDFLAGS -nodup"
699 x86)
700 CC=gcc
701 without_gcc=no
702 OPT=-O
705 { echo "configure: error: Unknown BeOS platform \"$BE_HOST_CPU\"" 1>&2; exit 1; }
707 esac
708 AR="\$(srcdir)/Modules/ar_beos"
709 RANLIB=:
711 Monterey*)
712 RANLIB=:
713 without_gcc=;;
714 *) without_gcc=no;;
715 esac
718 echo "$ac_t""$without_gcc" 1>&6
722 MAINOBJ=python.o
723 echo $ac_n "checking for --with-cxx=<compiler>""... $ac_c" 1>&6
724 echo "configure:725: checking for --with-cxx=<compiler>" >&5
725 # Check whether --with-cxx or --without-cxx was given.
726 if test "${with_cxx+set}" = set; then
727 withval="$with_cxx"
729 check_cxx=no
730 case $withval in
731 no) CXX=
732 with_cxx=no;;
733 *) CXX=$withval
734 MAINOBJ=ccpython.o
735 with_cxx=$withval;;
736 esac
737 else
739 with_cxx=no
740 check_cxx=yes
744 echo "$ac_t""$with_cxx" 1>&6
747 if test "$check_cxx" = "yes"
748 then
749 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
751 # Extract the first word of "$ac_prog", so it can be a program name with args.
752 set dummy $ac_prog; ac_word=$2
753 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
754 echo "configure:755: checking for $ac_word" >&5
755 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
756 echo $ac_n "(cached) $ac_c" 1>&6
757 else
758 if test -n "$CXX"; then
759 ac_cv_prog_CXX="$CXX" # Let the user override the test.
760 else
761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
762 ac_dummy="$PATH"
763 for ac_dir in $ac_dummy; do
764 test -z "$ac_dir" && ac_dir=.
765 if test -f $ac_dir/$ac_word; then
766 ac_cv_prog_CXX="$ac_prog"
767 break
769 done
770 IFS="$ac_save_ifs"
773 CXX="$ac_cv_prog_CXX"
774 if test -n "$CXX"; then
775 echo "$ac_t""$CXX" 1>&6
776 else
777 echo "$ac_t""no" 1>&6
780 test -n "$CXX" && break
781 done
782 test -n "$CXX" || CXX="notfound"
784 if test "$CXX" = "notfound"
785 then
786 CXX=
787 else
788 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
789 echo "configure:790: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
791 ac_ext=C
792 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
793 ac_cpp='$CXXCPP $CPPFLAGS'
794 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
795 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
796 cross_compiling=$ac_cv_prog_cxx_cross
798 cat > conftest.$ac_ext << EOF
800 #line 801 "configure"
801 #include "confdefs.h"
803 int main(){return(0);}
805 if { (eval echo configure:806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
806 ac_cv_prog_cxx_works=yes
807 # If we can't run a trivial program, we are probably using a cross compiler.
808 if (./conftest; exit) 2>/dev/null; then
809 ac_cv_prog_cxx_cross=no
810 else
811 ac_cv_prog_cxx_cross=yes
813 else
814 echo "configure: failed program was:" >&5
815 cat conftest.$ac_ext >&5
816 ac_cv_prog_cxx_works=no
818 rm -fr conftest*
819 ac_ext=c
820 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
821 ac_cpp='$CPP $CPPFLAGS'
822 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
823 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
824 cross_compiling=$ac_cv_prog_cc_cross
826 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
827 if test $ac_cv_prog_cxx_works = no; then
828 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
830 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
831 echo "configure:832: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
832 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
833 cross_compiling=$ac_cv_prog_cxx_cross
838 # If the user switches compilers, we can't believe the cache
839 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
840 then
841 { echo "configure: error: cached CC is different -- throw away $cache_file
842 (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; }
845 # Extract the first word of "gcc", so it can be a program name with args.
846 set dummy gcc; ac_word=$2
847 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
848 echo "configure:849: checking for $ac_word" >&5
849 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
851 else
852 if test -n "$CC"; then
853 ac_cv_prog_CC="$CC" # Let the user override the test.
854 else
855 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
856 ac_dummy="$PATH"
857 for ac_dir in $ac_dummy; do
858 test -z "$ac_dir" && ac_dir=.
859 if test -f $ac_dir/$ac_word; then
860 ac_cv_prog_CC="gcc"
861 break
863 done
864 IFS="$ac_save_ifs"
867 CC="$ac_cv_prog_CC"
868 if test -n "$CC"; then
869 echo "$ac_t""$CC" 1>&6
870 else
871 echo "$ac_t""no" 1>&6
874 if test -z "$CC"; then
875 # Extract the first word of "cc", so it can be a program name with args.
876 set dummy cc; ac_word=$2
877 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
878 echo "configure:879: checking for $ac_word" >&5
879 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
880 echo $ac_n "(cached) $ac_c" 1>&6
881 else
882 if test -n "$CC"; then
883 ac_cv_prog_CC="$CC" # Let the user override the test.
884 else
885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
886 ac_prog_rejected=no
887 ac_dummy="$PATH"
888 for ac_dir in $ac_dummy; do
889 test -z "$ac_dir" && ac_dir=.
890 if test -f $ac_dir/$ac_word; then
891 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
892 ac_prog_rejected=yes
893 continue
895 ac_cv_prog_CC="cc"
896 break
898 done
899 IFS="$ac_save_ifs"
900 if test $ac_prog_rejected = yes; then
901 # We found a bogon in the path, so make sure we never use it.
902 set dummy $ac_cv_prog_CC
903 shift
904 if test $# -gt 0; then
905 # We chose a different compiler from the bogus one.
906 # However, it has the same basename, so the bogon will be chosen
907 # first if we set CC to just the basename; use the full file name.
908 shift
909 set dummy "$ac_dir/$ac_word" "$@"
910 shift
911 ac_cv_prog_CC="$@"
916 CC="$ac_cv_prog_CC"
917 if test -n "$CC"; then
918 echo "$ac_t""$CC" 1>&6
919 else
920 echo "$ac_t""no" 1>&6
923 if test -z "$CC"; then
924 case "`uname -s`" in
925 *win32* | *WIN32*)
926 # Extract the first word of "cl", so it can be a program name with args.
927 set dummy cl; ac_word=$2
928 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
929 echo "configure:930: checking for $ac_word" >&5
930 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
931 echo $ac_n "(cached) $ac_c" 1>&6
932 else
933 if test -n "$CC"; then
934 ac_cv_prog_CC="$CC" # Let the user override the test.
935 else
936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
937 ac_dummy="$PATH"
938 for ac_dir in $ac_dummy; do
939 test -z "$ac_dir" && ac_dir=.
940 if test -f $ac_dir/$ac_word; then
941 ac_cv_prog_CC="cl"
942 break
944 done
945 IFS="$ac_save_ifs"
948 CC="$ac_cv_prog_CC"
949 if test -n "$CC"; then
950 echo "$ac_t""$CC" 1>&6
951 else
952 echo "$ac_t""no" 1>&6
955 esac
957 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
960 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
961 echo "configure:962: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
963 ac_ext=c
964 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
965 ac_cpp='$CPP $CPPFLAGS'
966 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
967 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
968 cross_compiling=$ac_cv_prog_cc_cross
970 cat > conftest.$ac_ext << EOF
972 #line 973 "configure"
973 #include "confdefs.h"
975 main(){return(0);}
977 if { (eval echo configure:978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
978 ac_cv_prog_cc_works=yes
979 # If we can't run a trivial program, we are probably using a cross compiler.
980 if (./conftest; exit) 2>/dev/null; then
981 ac_cv_prog_cc_cross=no
982 else
983 ac_cv_prog_cc_cross=yes
985 else
986 echo "configure: failed program was:" >&5
987 cat conftest.$ac_ext >&5
988 ac_cv_prog_cc_works=no
990 rm -fr conftest*
991 ac_ext=c
992 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
993 ac_cpp='$CPP $CPPFLAGS'
994 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
995 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
996 cross_compiling=$ac_cv_prog_cc_cross
998 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
999 if test $ac_cv_prog_cc_works = no; then
1000 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1002 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1003 echo "configure:1004: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1004 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1005 cross_compiling=$ac_cv_prog_cc_cross
1007 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1008 echo "configure:1009: checking whether we are using GNU C" >&5
1009 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&6
1011 else
1012 cat > conftest.c <<EOF
1013 #ifdef __GNUC__
1014 yes;
1015 #endif
1017 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1018 ac_cv_prog_gcc=yes
1019 else
1020 ac_cv_prog_gcc=no
1024 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1026 if test $ac_cv_prog_gcc = yes; then
1027 GCC=yes
1028 else
1029 GCC=
1032 ac_test_CFLAGS="${CFLAGS+set}"
1033 ac_save_CFLAGS="$CFLAGS"
1034 CFLAGS=
1035 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1036 echo "configure:1037: checking whether ${CC-cc} accepts -g" >&5
1037 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1038 echo $ac_n "(cached) $ac_c" 1>&6
1039 else
1040 echo 'void f(){}' > conftest.c
1041 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1042 ac_cv_prog_cc_g=yes
1043 else
1044 ac_cv_prog_cc_g=no
1046 rm -f conftest*
1050 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1051 if test "$ac_test_CFLAGS" = set; then
1052 CFLAGS="$ac_save_CFLAGS"
1053 elif test $ac_cv_prog_cc_g = yes; then
1054 if test "$GCC" = yes; then
1055 CFLAGS="-g -O2"
1056 else
1057 CFLAGS="-g"
1059 else
1060 if test "$GCC" = yes; then
1061 CFLAGS="-O2"
1062 else
1063 CFLAGS=
1067 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1068 echo "configure:1069: checking for Cygwin environment" >&5
1069 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1070 echo $ac_n "(cached) $ac_c" 1>&6
1071 else
1072 cat > conftest.$ac_ext <<EOF
1073 #line 1074 "configure"
1074 #include "confdefs.h"
1076 int main() {
1078 #ifndef __CYGWIN__
1079 #define __CYGWIN__ __CYGWIN32__
1080 #endif
1081 return __CYGWIN__;
1082 ; return 0; }
1084 if { (eval echo configure:1085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1085 rm -rf conftest*
1086 ac_cv_cygwin=yes
1087 else
1088 echo "configure: failed program was:" >&5
1089 cat conftest.$ac_ext >&5
1090 rm -rf conftest*
1091 ac_cv_cygwin=no
1093 rm -f conftest*
1094 rm -f conftest*
1097 echo "$ac_t""$ac_cv_cygwin" 1>&6
1098 CYGWIN=
1099 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1100 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1101 echo "configure:1102: checking for mingw32 environment" >&5
1102 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1103 echo $ac_n "(cached) $ac_c" 1>&6
1104 else
1105 cat > conftest.$ac_ext <<EOF
1106 #line 1107 "configure"
1107 #include "confdefs.h"
1109 int main() {
1110 return __MINGW32__;
1111 ; return 0; }
1113 if { (eval echo configure:1114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1114 rm -rf conftest*
1115 ac_cv_mingw32=yes
1116 else
1117 echo "configure: failed program was:" >&5
1118 cat conftest.$ac_ext >&5
1119 rm -rf conftest*
1120 ac_cv_mingw32=no
1122 rm -f conftest*
1123 rm -f conftest*
1126 echo "$ac_t""$ac_cv_mingw32" 1>&6
1127 MINGW32=
1128 test "$ac_cv_mingw32" = yes && MINGW32=yes
1131 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1132 echo "configure:1133: checking for executable suffix" >&5
1133 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1134 echo $ac_n "(cached) $ac_c" 1>&6
1135 else
1136 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1137 ac_cv_exeext=.exe
1138 else
1139 rm -f conftest*
1140 echo 'int main () { return 0; }' > conftest.$ac_ext
1141 ac_cv_exeext=
1142 if { (eval echo configure:1143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1143 for file in conftest.*; do
1144 case $file in
1145 *.c | *.o | *.obj) ;;
1146 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1147 esac
1148 done
1149 else
1150 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1152 rm -f conftest*
1153 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1157 EXEEXT=""
1158 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1159 echo "$ac_t""${ac_cv_exeext}" 1>&6
1160 ac_exeext=$EXEEXT
1162 echo $ac_n "checking for --with-suffix""... $ac_c" 1>&6
1163 echo "configure:1164: checking for --with-suffix" >&5
1164 # Check whether --with-suffix or --without-suffix was given.
1165 if test "${with_suffix+set}" = set; then
1166 withval="$with_suffix"
1168 case $withval in
1169 no) EXEEXT=;;
1170 yes) EXEEXT=.exe;;
1171 *) EXEEXT=$withval;;
1172 esac
1175 echo "$ac_t""$EXEEXT" 1>&6
1177 case $MACHDEP in
1178 bsdos*)
1179 case $CC in
1180 gcc) CC="$CC -D_HAVE_BSDI";;
1181 esac;;
1182 esac
1184 case $ac_sys_system in
1185 hp*|HP*)
1186 case $CC in
1187 cc|*/cc) CC="$CC -Ae";;
1188 esac;;
1189 Monterey*)
1190 case $CC in
1191 cc) CC="$CC -Wl,-Bexport";;
1192 esac;;
1193 SunOS*)
1194 # Some functions have a prototype only with that define, e.g. confstr
1195 cat >> confdefs.h <<\EOF
1196 #define __EXTENSIONS__ 1
1200 esac
1204 echo $ac_n "checking LIBRARY""... $ac_c" 1>&6
1205 echo "configure:1206: checking LIBRARY" >&5
1206 if test -z "$LIBRARY"
1207 then
1208 LIBRARY='libpython$(VERSION).a'
1210 echo "$ac_t""$LIBRARY" 1>&6
1212 # LDLIBRARY is the name of the library to link against (as opposed to the
1213 # name of the library into which to insert object files). On systems
1214 # without shared libraries, LDLIBRARY is the same as LIBRARY (defined in
1215 # the Makefiles). On Cygwin LDLIBRARY is the import library, DLLLIBRARY is the
1216 # shared (i.e., DLL) library.
1219 LDLIBRARY="$LIBRARY"
1220 DLLLIBRARY=''
1222 # LINKCC is the command that links the python executable -- default is $(CC).
1223 # This is altered for AIX in order to build the export list before
1224 # linking.
1226 echo $ac_n "checking LINKCC""... $ac_c" 1>&6
1227 echo "configure:1228: checking LINKCC" >&5
1228 if test -z "$LINKCC"
1229 then
1230 case $ac_sys_system in
1231 AIX*)
1232 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); \$(PURIFY) \$(CC)";;
1233 dgux*)
1234 LINKCC="LD_RUN_PATH=$libdir \$(PURIFY) \$(CC)";;
1235 Monterey64*)
1236 LINKCC="\$(PURIFY) \$(CC) -L/usr/lib/ia64l64";;
1237 *) LINKCC="\$(PURIFY) \$(CC)";;
1238 esac
1240 echo "$ac_t""$LINKCC" 1>&6
1242 echo $ac_n "checking LDLIBRARY""... $ac_c" 1>&6
1243 echo "configure:1244: checking LDLIBRARY" >&5
1245 # NeXT framework builds require that the 'ar' library be converted into
1246 # a bundle using libtool.
1247 if test "$with_next_framework"
1248 then
1249 LDLIBRARY='libpython$(VERSION).dylib'
1252 # DG/UX requires some fancy ld contortions to produce a .so from an .a
1253 case $MACHDEP in
1254 dguxR4)
1255 LDLIBRARY='libpython$(VERSION).so'
1256 OPT="$OPT -pic"
1258 beos*)
1259 LDLIBRARY='libpython$(VERSION).so'
1261 cygwin*)
1262 LDLIBRARY='libpython$(VERSION).dll.a'
1263 DLLLIBRARY='libpython$(VERSION).dll'
1265 esac
1266 echo "$ac_t""$LDLIBRARY" 1>&6
1268 # Extract the first word of "ranlib", so it can be a program name with args.
1269 set dummy ranlib; ac_word=$2
1270 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1271 echo "configure:1272: checking for $ac_word" >&5
1272 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1273 echo $ac_n "(cached) $ac_c" 1>&6
1274 else
1275 if test -n "$RANLIB"; then
1276 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1277 else
1278 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1279 ac_dummy="$PATH"
1280 for ac_dir in $ac_dummy; do
1281 test -z "$ac_dir" && ac_dir=.
1282 if test -f $ac_dir/$ac_word; then
1283 ac_cv_prog_RANLIB="ranlib"
1284 break
1286 done
1287 IFS="$ac_save_ifs"
1288 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1291 RANLIB="$ac_cv_prog_RANLIB"
1292 if test -n "$RANLIB"; then
1293 echo "$ac_t""$RANLIB" 1>&6
1294 else
1295 echo "$ac_t""no" 1>&6
1299 for ac_prog in ar aal
1301 # Extract the first word of "$ac_prog", so it can be a program name with args.
1302 set dummy $ac_prog; ac_word=$2
1303 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1304 echo "configure:1305: checking for $ac_word" >&5
1305 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1307 else
1308 if test -n "$AR"; then
1309 ac_cv_prog_AR="$AR" # Let the user override the test.
1310 else
1311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1312 ac_dummy="$PATH"
1313 for ac_dir in $ac_dummy; do
1314 test -z "$ac_dir" && ac_dir=.
1315 if test -f $ac_dir/$ac_word; then
1316 ac_cv_prog_AR="$ac_prog"
1317 break
1319 done
1320 IFS="$ac_save_ifs"
1323 AR="$ac_cv_prog_AR"
1324 if test -n "$AR"; then
1325 echo "$ac_t""$AR" 1>&6
1326 else
1327 echo "$ac_t""no" 1>&6
1330 test -n "$AR" && break
1331 done
1332 test -n "$AR" || AR="ar"
1334 ac_aux_dir=
1335 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1336 if test -f $ac_dir/install-sh; then
1337 ac_aux_dir=$ac_dir
1338 ac_install_sh="$ac_aux_dir/install-sh -c"
1339 break
1340 elif test -f $ac_dir/install.sh; then
1341 ac_aux_dir=$ac_dir
1342 ac_install_sh="$ac_aux_dir/install.sh -c"
1343 break
1345 done
1346 if test -z "$ac_aux_dir"; then
1347 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1349 ac_config_guess=$ac_aux_dir/config.guess
1350 ac_config_sub=$ac_aux_dir/config.sub
1351 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1353 # Find a good install program. We prefer a C program (faster),
1354 # so one script is as good as another. But avoid the broken or
1355 # incompatible versions:
1356 # SysV /etc/install, /usr/sbin/install
1357 # SunOS /usr/etc/install
1358 # IRIX /sbin/install
1359 # AIX /bin/install
1360 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1361 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1362 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1363 # ./install, which can be erroneously created by make from ./install.sh.
1364 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1365 echo "configure:1366: checking for a BSD compatible install" >&5
1366 if test -z "$INSTALL"; then
1367 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1368 echo $ac_n "(cached) $ac_c" 1>&6
1369 else
1370 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1371 for ac_dir in $PATH; do
1372 # Account for people who put trailing slashes in PATH elements.
1373 case "$ac_dir/" in
1374 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1376 # OSF1 and SCO ODT 3.0 have their own names for install.
1377 # Don't use installbsd from OSF since it installs stuff as root
1378 # by default.
1379 for ac_prog in ginstall scoinst install; do
1380 if test -f $ac_dir/$ac_prog; then
1381 if test $ac_prog = install &&
1382 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1383 # AIX install. It has an incompatible calling convention.
1385 else
1386 ac_cv_path_install="$ac_dir/$ac_prog -c"
1387 break 2
1390 done
1392 esac
1393 done
1394 IFS="$ac_save_IFS"
1397 if test "${ac_cv_path_install+set}" = set; then
1398 INSTALL="$ac_cv_path_install"
1399 else
1400 # As a last resort, use the slow shell script. We don't cache a
1401 # path for INSTALL within a source directory, because that will
1402 # break other packages using the cache if that directory is
1403 # removed, or if the path is relative.
1404 INSTALL="$ac_install_sh"
1407 echo "$ac_t""$INSTALL" 1>&6
1409 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1410 # It thinks the first close brace ends the variable substitution.
1411 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1413 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1415 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1418 # Not every filesystem supports hard links
1420 if test -z "$LN" ; then
1421 case $ac_sys_system in
1422 BeOS*) LN="ln -s";;
1423 CYGWIN*) LN="ln -s";;
1424 *) LN=ln;;
1425 esac
1428 # Optimizer/debugger flags
1430 if test -z "$OPT"
1431 then
1432 case $GCC in
1433 yes)
1434 case $ac_cv_prog_cc_g in
1435 yes) OPT="-g -O2 -Wall -Wstrict-prototypes";;
1436 *) OPT="-O2 -Wall -Wstrict-prototypes";;
1437 esac
1439 *) OPT="-O";;
1440 esac
1443 # The current (beta) Monterey compiler dies with optimizations
1444 case $ac_sys_system in
1445 Monterey*) OPT="";;
1446 esac
1448 if test "$ac_arch_flags"
1449 then
1450 OPT="$OPT $ac_arch_flags"
1452 # checks for UNIX variants that set C preprocessor variables
1453 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1454 echo "configure:1455: checking how to run the C preprocessor" >&5
1455 # On Suns, sometimes $CPP names a directory.
1456 if test -n "$CPP" && test -d "$CPP"; then
1457 CPP=
1459 if test -z "$CPP"; then
1460 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1461 echo $ac_n "(cached) $ac_c" 1>&6
1462 else
1463 # This must be in double quotes, not single quotes, because CPP may get
1464 # substituted into the Makefile and "${CC-cc}" will confuse make.
1465 CPP="${CC-cc} -E"
1466 # On the NeXT, cc -E runs the code through the compiler's parser,
1467 # not just through cpp.
1468 cat > conftest.$ac_ext <<EOF
1469 #line 1470 "configure"
1470 #include "confdefs.h"
1471 #include <assert.h>
1472 Syntax Error
1474 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1475 { (eval echo configure:1476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1476 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1477 if test -z "$ac_err"; then
1479 else
1480 echo "$ac_err" >&5
1481 echo "configure: failed program was:" >&5
1482 cat conftest.$ac_ext >&5
1483 rm -rf conftest*
1484 CPP="${CC-cc} -E -traditional-cpp"
1485 cat > conftest.$ac_ext <<EOF
1486 #line 1487 "configure"
1487 #include "confdefs.h"
1488 #include <assert.h>
1489 Syntax Error
1491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1492 { (eval echo configure:1493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1493 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1494 if test -z "$ac_err"; then
1496 else
1497 echo "$ac_err" >&5
1498 echo "configure: failed program was:" >&5
1499 cat conftest.$ac_ext >&5
1500 rm -rf conftest*
1501 CPP="${CC-cc} -nologo -E"
1502 cat > conftest.$ac_ext <<EOF
1503 #line 1504 "configure"
1504 #include "confdefs.h"
1505 #include <assert.h>
1506 Syntax Error
1508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1509 { (eval echo configure:1510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1510 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1511 if test -z "$ac_err"; then
1513 else
1514 echo "$ac_err" >&5
1515 echo "configure: failed program was:" >&5
1516 cat conftest.$ac_ext >&5
1517 rm -rf conftest*
1518 CPP=/lib/cpp
1520 rm -f conftest*
1522 rm -f conftest*
1524 rm -f conftest*
1525 ac_cv_prog_CPP="$CPP"
1527 CPP="$ac_cv_prog_CPP"
1528 else
1529 ac_cv_prog_CPP="$CPP"
1531 echo "$ac_t""$CPP" 1>&6
1533 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1534 echo "configure:1535: checking for AIX" >&5
1535 cat > conftest.$ac_ext <<EOF
1536 #line 1537 "configure"
1537 #include "confdefs.h"
1538 #ifdef _AIX
1540 #endif
1543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1544 egrep "yes" >/dev/null 2>&1; then
1545 rm -rf conftest*
1546 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1547 #define _ALL_SOURCE 1
1550 else
1551 rm -rf conftest*
1552 echo "$ac_t""no" 1>&6
1554 rm -f conftest*
1557 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1558 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1559 echo "configure:1560: checking for minix/config.h" >&5
1560 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1561 echo $ac_n "(cached) $ac_c" 1>&6
1562 else
1563 cat > conftest.$ac_ext <<EOF
1564 #line 1565 "configure"
1565 #include "confdefs.h"
1566 #include <minix/config.h>
1568 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1569 { (eval echo configure:1570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1570 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1571 if test -z "$ac_err"; then
1572 rm -rf conftest*
1573 eval "ac_cv_header_$ac_safe=yes"
1574 else
1575 echo "$ac_err" >&5
1576 echo "configure: failed program was:" >&5
1577 cat conftest.$ac_ext >&5
1578 rm -rf conftest*
1579 eval "ac_cv_header_$ac_safe=no"
1581 rm -f conftest*
1583 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1584 echo "$ac_t""yes" 1>&6
1585 MINIX=yes
1586 else
1587 echo "$ac_t""no" 1>&6
1588 MINIX=
1591 if test "$MINIX" = yes; then
1592 cat >> confdefs.h <<\EOF
1593 #define _POSIX_SOURCE 1
1596 cat >> confdefs.h <<\EOF
1597 #define _POSIX_1_SOURCE 2
1600 cat >> confdefs.h <<\EOF
1601 #define _MINIX 1
1607 echo $ac_n "checking whether $CC accepts -OPT:Olimit=0""... $ac_c" 1>&6
1608 echo "configure:1609: checking whether $CC accepts -OPT:Olimit=0" >&5
1609 if eval "test \"`echo '$''{'ac_cv_opt_olimit_ok'+set}'`\" = set"; then
1610 echo $ac_n "(cached) $ac_c" 1>&6
1611 else
1612 ac_save_cc="$CC"
1613 CC="$CC -OPT:Olimit=0"
1614 if test "$cross_compiling" = yes; then
1615 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1616 else
1617 cat > conftest.$ac_ext <<EOF
1618 #line 1619 "configure"
1619 #include "confdefs.h"
1620 int main() { return 0; }
1622 if { (eval echo configure:1623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1623 then
1624 ac_cv_opt_olimit_ok=yes
1625 else
1626 echo "configure: failed program was:" >&5
1627 cat conftest.$ac_ext >&5
1628 rm -fr conftest*
1629 ac_cv_opt_olimit_ok=no
1631 rm -fr conftest*
1634 CC="$ac_save_cc"
1637 echo "$ac_t""$ac_cv_opt_olimit_ok" 1>&6
1638 if test $ac_cv_opt_olimit_ok = yes; then
1639 case $ac_sys_system in
1640 Darwin*) OPT="$OPT" ;;
1641 *) OPT="$OPT -OPT:Olimit=0";;
1642 esac
1643 else
1644 echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6
1645 echo "configure:1646: checking whether $CC accepts -Olimit 1500" >&5
1646 if eval "test \"`echo '$''{'ac_cv_olimit_ok'+set}'`\" = set"; then
1647 echo $ac_n "(cached) $ac_c" 1>&6
1648 else
1649 ac_save_cc="$CC"
1650 CC="$CC -Olimit 1500"
1651 if test "$cross_compiling" = yes; then
1652 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1653 else
1654 cat > conftest.$ac_ext <<EOF
1655 #line 1656 "configure"
1656 #include "confdefs.h"
1657 int main() { return 0; }
1659 if { (eval echo configure:1660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1660 then
1661 ac_cv_olimit_ok=yes
1662 else
1663 echo "configure: failed program was:" >&5
1664 cat conftest.$ac_ext >&5
1665 rm -fr conftest*
1666 ac_cv_olimit_ok=no
1668 rm -fr conftest*
1671 CC="$ac_save_cc"
1674 echo "$ac_t""$ac_cv_olimit_ok" 1>&6
1675 if test $ac_cv_olimit_ok = yes; then
1676 OPT="$OPT -Olimit 1500"
1681 # checks for header files
1682 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1683 echo "configure:1684: checking for ANSI C header files" >&5
1684 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1685 echo $ac_n "(cached) $ac_c" 1>&6
1686 else
1687 cat > conftest.$ac_ext <<EOF
1688 #line 1689 "configure"
1689 #include "confdefs.h"
1690 #include <stdlib.h>
1691 #include <stdarg.h>
1692 #include <string.h>
1693 #include <float.h>
1695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1696 { (eval echo configure:1697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1697 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1698 if test -z "$ac_err"; then
1699 rm -rf conftest*
1700 ac_cv_header_stdc=yes
1701 else
1702 echo "$ac_err" >&5
1703 echo "configure: failed program was:" >&5
1704 cat conftest.$ac_ext >&5
1705 rm -rf conftest*
1706 ac_cv_header_stdc=no
1708 rm -f conftest*
1710 if test $ac_cv_header_stdc = yes; then
1711 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1712 cat > conftest.$ac_ext <<EOF
1713 #line 1714 "configure"
1714 #include "confdefs.h"
1715 #include <string.h>
1717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1718 egrep "memchr" >/dev/null 2>&1; then
1720 else
1721 rm -rf conftest*
1722 ac_cv_header_stdc=no
1724 rm -f conftest*
1728 if test $ac_cv_header_stdc = yes; then
1729 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1730 cat > conftest.$ac_ext <<EOF
1731 #line 1732 "configure"
1732 #include "confdefs.h"
1733 #include <stdlib.h>
1735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1736 egrep "free" >/dev/null 2>&1; then
1738 else
1739 rm -rf conftest*
1740 ac_cv_header_stdc=no
1742 rm -f conftest*
1746 if test $ac_cv_header_stdc = yes; then
1747 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1748 if test "$cross_compiling" = yes; then
1750 else
1751 cat > conftest.$ac_ext <<EOF
1752 #line 1753 "configure"
1753 #include "confdefs.h"
1754 #include <ctype.h>
1755 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1756 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1757 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1758 int main () { int i; for (i = 0; i < 256; i++)
1759 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1760 exit (0); }
1763 if { (eval echo configure:1764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1764 then
1766 else
1767 echo "configure: failed program was:" >&5
1768 cat conftest.$ac_ext >&5
1769 rm -fr conftest*
1770 ac_cv_header_stdc=no
1772 rm -fr conftest*
1778 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1779 if test $ac_cv_header_stdc = yes; then
1780 cat >> confdefs.h <<\EOF
1781 #define STDC_HEADERS 1
1786 for ac_hdr in dlfcn.h fcntl.h limits.h locale.h ncurses.h poll.h pthread.h \
1787 signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h termios.h \
1788 sys/audioio.h sys/file.h sys/lock.h db_185.h db.h \
1789 sys/param.h sys/select.h sys/socket.h sys/time.h sys/times.h \
1790 sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \
1791 ndbm.h db1/ndbm.h gdbm/ndbm.h
1793 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1794 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1795 echo "configure:1796: checking for $ac_hdr" >&5
1796 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1797 echo $ac_n "(cached) $ac_c" 1>&6
1798 else
1799 cat > conftest.$ac_ext <<EOF
1800 #line 1801 "configure"
1801 #include "confdefs.h"
1802 #include <$ac_hdr>
1804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1805 { (eval echo configure:1806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1807 if test -z "$ac_err"; then
1808 rm -rf conftest*
1809 eval "ac_cv_header_$ac_safe=yes"
1810 else
1811 echo "$ac_err" >&5
1812 echo "configure: failed program was:" >&5
1813 cat conftest.$ac_ext >&5
1814 rm -rf conftest*
1815 eval "ac_cv_header_$ac_safe=no"
1817 rm -f conftest*
1819 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1820 echo "$ac_t""yes" 1>&6
1821 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1822 cat >> confdefs.h <<EOF
1823 #define $ac_tr_hdr 1
1826 else
1827 echo "$ac_t""no" 1>&6
1829 done
1831 ac_header_dirent=no
1832 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1834 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1835 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1836 echo "configure:1837: checking for $ac_hdr that defines DIR" >&5
1837 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1839 else
1840 cat > conftest.$ac_ext <<EOF
1841 #line 1842 "configure"
1842 #include "confdefs.h"
1843 #include <sys/types.h>
1844 #include <$ac_hdr>
1845 int main() {
1846 DIR *dirp = 0;
1847 ; return 0; }
1849 if { (eval echo configure:1850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1850 rm -rf conftest*
1851 eval "ac_cv_header_dirent_$ac_safe=yes"
1852 else
1853 echo "configure: failed program was:" >&5
1854 cat conftest.$ac_ext >&5
1855 rm -rf conftest*
1856 eval "ac_cv_header_dirent_$ac_safe=no"
1858 rm -f conftest*
1860 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1861 echo "$ac_t""yes" 1>&6
1862 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1863 cat >> confdefs.h <<EOF
1864 #define $ac_tr_hdr 1
1866 ac_header_dirent=$ac_hdr; break
1867 else
1868 echo "$ac_t""no" 1>&6
1870 done
1871 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1872 if test $ac_header_dirent = dirent.h; then
1873 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1874 echo "configure:1875: checking for opendir in -ldir" >&5
1875 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1876 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1878 else
1879 ac_save_LIBS="$LIBS"
1880 LIBS="-ldir $LIBS"
1881 cat > conftest.$ac_ext <<EOF
1882 #line 1883 "configure"
1883 #include "confdefs.h"
1884 /* Override any gcc2 internal prototype to avoid an error. */
1885 /* We use char because int might match the return type of a gcc2
1886 builtin and then its argument prototype would still apply. */
1887 char opendir();
1889 int main() {
1890 opendir()
1891 ; return 0; }
1893 if { (eval echo configure:1894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1894 rm -rf conftest*
1895 eval "ac_cv_lib_$ac_lib_var=yes"
1896 else
1897 echo "configure: failed program was:" >&5
1898 cat conftest.$ac_ext >&5
1899 rm -rf conftest*
1900 eval "ac_cv_lib_$ac_lib_var=no"
1902 rm -f conftest*
1903 LIBS="$ac_save_LIBS"
1906 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1907 echo "$ac_t""yes" 1>&6
1908 LIBS="$LIBS -ldir"
1909 else
1910 echo "$ac_t""no" 1>&6
1913 else
1914 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1915 echo "configure:1916: checking for opendir in -lx" >&5
1916 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1917 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1918 echo $ac_n "(cached) $ac_c" 1>&6
1919 else
1920 ac_save_LIBS="$LIBS"
1921 LIBS="-lx $LIBS"
1922 cat > conftest.$ac_ext <<EOF
1923 #line 1924 "configure"
1924 #include "confdefs.h"
1925 /* Override any gcc2 internal prototype to avoid an error. */
1926 /* We use char because int might match the return type of a gcc2
1927 builtin and then its argument prototype would still apply. */
1928 char opendir();
1930 int main() {
1931 opendir()
1932 ; return 0; }
1934 if { (eval echo configure:1935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1935 rm -rf conftest*
1936 eval "ac_cv_lib_$ac_lib_var=yes"
1937 else
1938 echo "configure: failed program was:" >&5
1939 cat conftest.$ac_ext >&5
1940 rm -rf conftest*
1941 eval "ac_cv_lib_$ac_lib_var=no"
1943 rm -f conftest*
1944 LIBS="$ac_save_LIBS"
1947 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1948 echo "$ac_t""yes" 1>&6
1949 LIBS="$LIBS -lx"
1950 else
1951 echo "$ac_t""no" 1>&6
1957 # checks for typedefs
1958 was_it_defined=no
1959 echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6
1960 echo "configure:1961: checking for clock_t in time.h" >&5
1961 cat > conftest.$ac_ext <<EOF
1962 #line 1963 "configure"
1963 #include "confdefs.h"
1964 #include <time.h>
1966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1967 egrep "clock_t" >/dev/null 2>&1; then
1968 rm -rf conftest*
1969 was_it_defined=yes
1970 else
1971 rm -rf conftest*
1972 cat >> confdefs.h <<\EOF
1973 #define clock_t long
1977 rm -f conftest*
1979 echo "$ac_t""$was_it_defined" 1>&6
1981 # Add some code to confdefs.h so that the test for off_t works on SCO
1982 cat >> confdefs.h <<\EOF
1983 #if defined(SCO_DS)
1984 #undef _OFF_T
1985 #endif
1988 # Type availability checks
1989 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1990 echo "configure:1991: checking for mode_t" >&5
1991 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
1992 echo $ac_n "(cached) $ac_c" 1>&6
1993 else
1994 cat > conftest.$ac_ext <<EOF
1995 #line 1996 "configure"
1996 #include "confdefs.h"
1997 #include <sys/types.h>
1998 #if STDC_HEADERS
1999 #include <stdlib.h>
2000 #include <stddef.h>
2001 #endif
2003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2004 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2005 rm -rf conftest*
2006 ac_cv_type_mode_t=yes
2007 else
2008 rm -rf conftest*
2009 ac_cv_type_mode_t=no
2011 rm -f conftest*
2014 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2015 if test $ac_cv_type_mode_t = no; then
2016 cat >> confdefs.h <<\EOF
2017 #define mode_t int
2022 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2023 echo "configure:2024: checking for off_t" >&5
2024 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2025 echo $ac_n "(cached) $ac_c" 1>&6
2026 else
2027 cat > conftest.$ac_ext <<EOF
2028 #line 2029 "configure"
2029 #include "confdefs.h"
2030 #include <sys/types.h>
2031 #if STDC_HEADERS
2032 #include <stdlib.h>
2033 #include <stddef.h>
2034 #endif
2036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2037 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2038 rm -rf conftest*
2039 ac_cv_type_off_t=yes
2040 else
2041 rm -rf conftest*
2042 ac_cv_type_off_t=no
2044 rm -f conftest*
2047 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2048 if test $ac_cv_type_off_t = no; then
2049 cat >> confdefs.h <<\EOF
2050 #define off_t long
2055 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2056 echo "configure:2057: checking for pid_t" >&5
2057 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2058 echo $ac_n "(cached) $ac_c" 1>&6
2059 else
2060 cat > conftest.$ac_ext <<EOF
2061 #line 2062 "configure"
2062 #include "confdefs.h"
2063 #include <sys/types.h>
2064 #if STDC_HEADERS
2065 #include <stdlib.h>
2066 #include <stddef.h>
2067 #endif
2069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2070 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2071 rm -rf conftest*
2072 ac_cv_type_pid_t=yes
2073 else
2074 rm -rf conftest*
2075 ac_cv_type_pid_t=no
2077 rm -f conftest*
2080 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2081 if test $ac_cv_type_pid_t = no; then
2082 cat >> confdefs.h <<\EOF
2083 #define pid_t int
2088 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2089 echo "configure:2090: checking return type of signal handlers" >&5
2090 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2091 echo $ac_n "(cached) $ac_c" 1>&6
2092 else
2093 cat > conftest.$ac_ext <<EOF
2094 #line 2095 "configure"
2095 #include "confdefs.h"
2096 #include <sys/types.h>
2097 #include <signal.h>
2098 #ifdef signal
2099 #undef signal
2100 #endif
2101 #ifdef __cplusplus
2102 extern "C" void (*signal (int, void (*)(int)))(int);
2103 #else
2104 void (*signal ()) ();
2105 #endif
2107 int main() {
2108 int i;
2109 ; return 0; }
2111 if { (eval echo configure:2112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2112 rm -rf conftest*
2113 ac_cv_type_signal=void
2114 else
2115 echo "configure: failed program was:" >&5
2116 cat conftest.$ac_ext >&5
2117 rm -rf conftest*
2118 ac_cv_type_signal=int
2120 rm -f conftest*
2123 echo "$ac_t""$ac_cv_type_signal" 1>&6
2124 cat >> confdefs.h <<EOF
2125 #define RETSIGTYPE $ac_cv_type_signal
2129 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2130 echo "configure:2131: checking for size_t" >&5
2131 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2132 echo $ac_n "(cached) $ac_c" 1>&6
2133 else
2134 cat > conftest.$ac_ext <<EOF
2135 #line 2136 "configure"
2136 #include "confdefs.h"
2137 #include <sys/types.h>
2138 #if STDC_HEADERS
2139 #include <stdlib.h>
2140 #include <stddef.h>
2141 #endif
2143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2144 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2145 rm -rf conftest*
2146 ac_cv_type_size_t=yes
2147 else
2148 rm -rf conftest*
2149 ac_cv_type_size_t=no
2151 rm -f conftest*
2154 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2155 if test $ac_cv_type_size_t = no; then
2156 cat >> confdefs.h <<\EOF
2157 #define size_t unsigned
2162 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2163 echo "configure:2164: checking for uid_t in sys/types.h" >&5
2164 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2165 echo $ac_n "(cached) $ac_c" 1>&6
2166 else
2167 cat > conftest.$ac_ext <<EOF
2168 #line 2169 "configure"
2169 #include "confdefs.h"
2170 #include <sys/types.h>
2172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2173 egrep "uid_t" >/dev/null 2>&1; then
2174 rm -rf conftest*
2175 ac_cv_type_uid_t=yes
2176 else
2177 rm -rf conftest*
2178 ac_cv_type_uid_t=no
2180 rm -f conftest*
2184 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2185 if test $ac_cv_type_uid_t = no; then
2186 cat >> confdefs.h <<\EOF
2187 #define uid_t int
2190 cat >> confdefs.h <<\EOF
2191 #define gid_t int
2197 # Sizes of various common basic types
2198 echo $ac_n "checking size of int""... $ac_c" 1>&6
2199 echo "configure:2200: checking size of int" >&5
2200 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2201 echo $ac_n "(cached) $ac_c" 1>&6
2202 else
2203 if test "$cross_compiling" = yes; then
2204 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2205 else
2206 cat > conftest.$ac_ext <<EOF
2207 #line 2208 "configure"
2208 #include "confdefs.h"
2209 #include <stdio.h>
2210 main()
2212 FILE *f=fopen("conftestval", "w");
2213 if (!f) exit(1);
2214 fprintf(f, "%d\n", sizeof(int));
2215 exit(0);
2218 if { (eval echo configure:2219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2219 then
2220 ac_cv_sizeof_int=`cat conftestval`
2221 else
2222 echo "configure: failed program was:" >&5
2223 cat conftest.$ac_ext >&5
2224 rm -fr conftest*
2225 ac_cv_sizeof_int=0
2227 rm -fr conftest*
2231 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2232 cat >> confdefs.h <<EOF
2233 #define SIZEOF_INT $ac_cv_sizeof_int
2237 echo $ac_n "checking size of long""... $ac_c" 1>&6
2238 echo "configure:2239: checking size of long" >&5
2239 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2240 echo $ac_n "(cached) $ac_c" 1>&6
2241 else
2242 if test "$cross_compiling" = yes; then
2243 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2244 else
2245 cat > conftest.$ac_ext <<EOF
2246 #line 2247 "configure"
2247 #include "confdefs.h"
2248 #include <stdio.h>
2249 main()
2251 FILE *f=fopen("conftestval", "w");
2252 if (!f) exit(1);
2253 fprintf(f, "%d\n", sizeof(long));
2254 exit(0);
2257 if { (eval echo configure:2258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2258 then
2259 ac_cv_sizeof_long=`cat conftestval`
2260 else
2261 echo "configure: failed program was:" >&5
2262 cat conftest.$ac_ext >&5
2263 rm -fr conftest*
2264 ac_cv_sizeof_long=0
2266 rm -fr conftest*
2270 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2271 cat >> confdefs.h <<EOF
2272 #define SIZEOF_LONG $ac_cv_sizeof_long
2276 echo $ac_n "checking size of void *""... $ac_c" 1>&6
2277 echo "configure:2278: checking size of void *" >&5
2278 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
2279 echo $ac_n "(cached) $ac_c" 1>&6
2280 else
2281 if test "$cross_compiling" = yes; then
2282 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2283 else
2284 cat > conftest.$ac_ext <<EOF
2285 #line 2286 "configure"
2286 #include "confdefs.h"
2287 #include <stdio.h>
2288 main()
2290 FILE *f=fopen("conftestval", "w");
2291 if (!f) exit(1);
2292 fprintf(f, "%d\n", sizeof(void *));
2293 exit(0);
2296 if { (eval echo configure:2297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2297 then
2298 ac_cv_sizeof_void_p=`cat conftestval`
2299 else
2300 echo "configure: failed program was:" >&5
2301 cat conftest.$ac_ext >&5
2302 rm -fr conftest*
2303 ac_cv_sizeof_void_p=0
2305 rm -fr conftest*
2309 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
2310 cat >> confdefs.h <<EOF
2311 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
2315 echo $ac_n "checking size of char""... $ac_c" 1>&6
2316 echo "configure:2317: checking size of char" >&5
2317 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2319 else
2320 if test "$cross_compiling" = yes; then
2321 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2322 else
2323 cat > conftest.$ac_ext <<EOF
2324 #line 2325 "configure"
2325 #include "confdefs.h"
2326 #include <stdio.h>
2327 main()
2329 FILE *f=fopen("conftestval", "w");
2330 if (!f) exit(1);
2331 fprintf(f, "%d\n", sizeof(char));
2332 exit(0);
2335 if { (eval echo configure:2336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2336 then
2337 ac_cv_sizeof_char=`cat conftestval`
2338 else
2339 echo "configure: failed program was:" >&5
2340 cat conftest.$ac_ext >&5
2341 rm -fr conftest*
2342 ac_cv_sizeof_char=0
2344 rm -fr conftest*
2348 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
2349 cat >> confdefs.h <<EOF
2350 #define SIZEOF_CHAR $ac_cv_sizeof_char
2354 echo $ac_n "checking size of short""... $ac_c" 1>&6
2355 echo "configure:2356: checking size of short" >&5
2356 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2357 echo $ac_n "(cached) $ac_c" 1>&6
2358 else
2359 if test "$cross_compiling" = yes; then
2360 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2361 else
2362 cat > conftest.$ac_ext <<EOF
2363 #line 2364 "configure"
2364 #include "confdefs.h"
2365 #include <stdio.h>
2366 main()
2368 FILE *f=fopen("conftestval", "w");
2369 if (!f) exit(1);
2370 fprintf(f, "%d\n", sizeof(short));
2371 exit(0);
2374 if { (eval echo configure:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2375 then
2376 ac_cv_sizeof_short=`cat conftestval`
2377 else
2378 echo "configure: failed program was:" >&5
2379 cat conftest.$ac_ext >&5
2380 rm -fr conftest*
2381 ac_cv_sizeof_short=0
2383 rm -fr conftest*
2387 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2388 cat >> confdefs.h <<EOF
2389 #define SIZEOF_SHORT $ac_cv_sizeof_short
2393 echo $ac_n "checking size of float""... $ac_c" 1>&6
2394 echo "configure:2395: checking size of float" >&5
2395 if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2397 else
2398 if test "$cross_compiling" = yes; then
2399 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2400 else
2401 cat > conftest.$ac_ext <<EOF
2402 #line 2403 "configure"
2403 #include "confdefs.h"
2404 #include <stdio.h>
2405 main()
2407 FILE *f=fopen("conftestval", "w");
2408 if (!f) exit(1);
2409 fprintf(f, "%d\n", sizeof(float));
2410 exit(0);
2413 if { (eval echo configure:2414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2414 then
2415 ac_cv_sizeof_float=`cat conftestval`
2416 else
2417 echo "configure: failed program was:" >&5
2418 cat conftest.$ac_ext >&5
2419 rm -fr conftest*
2420 ac_cv_sizeof_float=0
2422 rm -fr conftest*
2426 echo "$ac_t""$ac_cv_sizeof_float" 1>&6
2427 cat >> confdefs.h <<EOF
2428 #define SIZEOF_FLOAT $ac_cv_sizeof_float
2432 echo $ac_n "checking size of double""... $ac_c" 1>&6
2433 echo "configure:2434: checking size of double" >&5
2434 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
2435 echo $ac_n "(cached) $ac_c" 1>&6
2436 else
2437 if test "$cross_compiling" = yes; then
2438 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2439 else
2440 cat > conftest.$ac_ext <<EOF
2441 #line 2442 "configure"
2442 #include "confdefs.h"
2443 #include <stdio.h>
2444 main()
2446 FILE *f=fopen("conftestval", "w");
2447 if (!f) exit(1);
2448 fprintf(f, "%d\n", sizeof(double));
2449 exit(0);
2452 if { (eval echo configure:2453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2453 then
2454 ac_cv_sizeof_double=`cat conftestval`
2455 else
2456 echo "configure: failed program was:" >&5
2457 cat conftest.$ac_ext >&5
2458 rm -fr conftest*
2459 ac_cv_sizeof_double=0
2461 rm -fr conftest*
2465 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
2466 cat >> confdefs.h <<EOF
2467 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
2471 echo $ac_n "checking size of fpos_t""... $ac_c" 1>&6
2472 echo "configure:2473: checking size of fpos_t" >&5
2473 if eval "test \"`echo '$''{'ac_cv_sizeof_fpos_t'+set}'`\" = set"; then
2474 echo $ac_n "(cached) $ac_c" 1>&6
2475 else
2476 if test "$cross_compiling" = yes; then
2477 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2478 else
2479 cat > conftest.$ac_ext <<EOF
2480 #line 2481 "configure"
2481 #include "confdefs.h"
2482 #include <stdio.h>
2483 main()
2485 FILE *f=fopen("conftestval", "w");
2486 if (!f) exit(1);
2487 fprintf(f, "%d\n", sizeof(fpos_t));
2488 exit(0);
2491 if { (eval echo configure:2492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2492 then
2493 ac_cv_sizeof_fpos_t=`cat conftestval`
2494 else
2495 echo "configure: failed program was:" >&5
2496 cat conftest.$ac_ext >&5
2497 rm -fr conftest*
2498 ac_cv_sizeof_fpos_t=0
2500 rm -fr conftest*
2504 echo "$ac_t""$ac_cv_sizeof_fpos_t" 1>&6
2505 cat >> confdefs.h <<EOF
2506 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
2511 echo $ac_n "checking for long long support""... $ac_c" 1>&6
2512 echo "configure:2513: checking for long long support" >&5
2513 have_long_long=no
2514 cat > conftest.$ac_ext <<EOF
2515 #line 2516 "configure"
2516 #include "confdefs.h"
2518 int main() {
2519 long long x; x = (long long)0;
2520 ; return 0; }
2522 if { (eval echo configure:2523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2523 rm -rf conftest*
2524 cat >> confdefs.h <<\EOF
2525 #define HAVE_LONG_LONG 1
2527 have_long_long=yes
2528 else
2529 echo "configure: failed program was:" >&5
2530 cat conftest.$ac_ext >&5
2532 rm -f conftest*
2533 echo "$ac_t""$have_long_long" 1>&6
2534 if test "$have_long_long" = yes ; then
2535 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2536 echo "configure:2537: checking size of long long" >&5
2537 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2538 echo $ac_n "(cached) $ac_c" 1>&6
2539 else
2540 if test "$cross_compiling" = yes; then
2541 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2542 else
2543 cat > conftest.$ac_ext <<EOF
2544 #line 2545 "configure"
2545 #include "confdefs.h"
2546 #include <stdio.h>
2547 main()
2549 FILE *f=fopen("conftestval", "w");
2550 if (!f) exit(1);
2551 fprintf(f, "%d\n", sizeof(long long));
2552 exit(0);
2555 if { (eval echo configure:2556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2556 then
2557 ac_cv_sizeof_long_long=`cat conftestval`
2558 else
2559 echo "configure: failed program was:" >&5
2560 cat conftest.$ac_ext >&5
2561 rm -fr conftest*
2562 ac_cv_sizeof_long_long=0
2564 rm -fr conftest*
2568 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2569 cat >> confdefs.h <<EOF
2570 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2576 echo $ac_n "checking for uintptr_t support""... $ac_c" 1>&6
2577 echo "configure:2578: checking for uintptr_t support" >&5
2578 have_uintptr_t=no
2579 cat > conftest.$ac_ext <<EOF
2580 #line 2581 "configure"
2581 #include "confdefs.h"
2583 int main() {
2584 uintptr_t x; x = (uintptr_t)0;
2585 ; return 0; }
2587 if { (eval echo configure:2588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2588 rm -rf conftest*
2589 cat >> confdefs.h <<\EOF
2590 #define HAVE_UINTPTR_T 1
2592 have_uintptr_t=yes
2593 else
2594 echo "configure: failed program was:" >&5
2595 cat conftest.$ac_ext >&5
2597 rm -f conftest*
2598 echo "$ac_t""$have_uintptr_t" 1>&6
2599 if test "$have_uintptr_t" = yes ; then
2600 echo $ac_n "checking size of uintptr_t""... $ac_c" 1>&6
2601 echo "configure:2602: checking size of uintptr_t" >&5
2602 if eval "test \"`echo '$''{'ac_cv_sizeof_uintptr_t'+set}'`\" = set"; then
2603 echo $ac_n "(cached) $ac_c" 1>&6
2604 else
2605 if test "$cross_compiling" = yes; then
2606 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2607 else
2608 cat > conftest.$ac_ext <<EOF
2609 #line 2610 "configure"
2610 #include "confdefs.h"
2611 #include <stdio.h>
2612 main()
2614 FILE *f=fopen("conftestval", "w");
2615 if (!f) exit(1);
2616 fprintf(f, "%d\n", sizeof(uintptr_t));
2617 exit(0);
2620 if { (eval echo configure:2621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2621 then
2622 ac_cv_sizeof_uintptr_t=`cat conftestval`
2623 else
2624 echo "configure: failed program was:" >&5
2625 cat conftest.$ac_ext >&5
2626 rm -fr conftest*
2627 ac_cv_sizeof_uintptr_t=0
2629 rm -fr conftest*
2633 echo "$ac_t""$ac_cv_sizeof_uintptr_t" 1>&6
2634 cat >> confdefs.h <<EOF
2635 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
2641 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
2642 echo $ac_n "checking size of off_t""... $ac_c" 1>&6
2643 echo "configure:2644: checking size of off_t" >&5
2644 if eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then
2645 echo $ac_n "(cached) $ac_c" 1>&6
2646 else
2647 if test "$cross_compiling" = yes; then
2648 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2649 else
2650 cat > conftest.$ac_ext <<EOF
2651 #line 2652 "configure"
2652 #include "confdefs.h"
2653 #include <stdio.h>
2654 #include <sys/types.h>
2655 main()
2657 FILE *f=fopen("conftestval", "w");
2658 if (!f) exit(1);
2659 fprintf(f, "%d\n", sizeof(off_t));
2660 exit(0);
2663 if { (eval echo configure:2664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2664 then
2665 ac_cv_sizeof_off_t=`cat conftestval`
2666 else
2667 echo "configure: failed program was:" >&5
2668 cat conftest.$ac_ext >&5
2669 rm -fr conftest*
2670 ac_cv_sizeof_off_t=0
2672 rm -fr conftest*
2678 echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6
2679 cat >> confdefs.h <<EOF
2680 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
2684 echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6
2685 echo "configure:2686: checking whether to enable large file support" >&5
2686 if test "$have_long_long" = yes -a \
2687 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
2688 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
2689 cat >> confdefs.h <<\EOF
2690 #define HAVE_LARGEFILE_SUPPORT 1
2693 echo "$ac_t""yes" 1>&6
2694 else
2695 echo "$ac_t""no" 1>&6
2698 # AC_CHECK_SIZEOF() doesn't include <time.h>.
2699 echo $ac_n "checking size of time_t""... $ac_c" 1>&6
2700 echo "configure:2701: checking size of time_t" >&5
2701 if eval "test \"`echo '$''{'ac_cv_sizeof_time_t'+set}'`\" = set"; then
2702 echo $ac_n "(cached) $ac_c" 1>&6
2703 else
2704 if test "$cross_compiling" = yes; then
2705 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2706 else
2707 cat > conftest.$ac_ext <<EOF
2708 #line 2709 "configure"
2709 #include "confdefs.h"
2710 #include <stdio.h>
2711 #include <time.h>
2712 main()
2714 FILE *f=fopen("conftestval", "w");
2715 if (!f) exit(1);
2716 fprintf(f, "%d\n", sizeof(time_t));
2717 exit(0);
2720 if { (eval echo configure:2721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2721 then
2722 ac_cv_sizeof_time_t=`cat conftestval`
2723 else
2724 echo "configure: failed program was:" >&5
2725 cat conftest.$ac_ext >&5
2726 rm -fr conftest*
2727 ac_cv_sizeof_time_t=0
2729 rm -fr conftest*
2735 echo "$ac_t""$ac_cv_sizeof_time_t" 1>&6
2736 cat >> confdefs.h <<EOF
2737 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
2742 # if have pthread_t then define SIZEOF_PTHREAD_T
2743 echo $ac_n "checking for pthread_t""... $ac_c" 1>&6
2744 echo "configure:2745: checking for pthread_t" >&5
2745 have_pthread_t=no
2746 cat > conftest.$ac_ext <<EOF
2747 #line 2748 "configure"
2748 #include "confdefs.h"
2749 #include <pthread.h>
2750 int main() {
2751 pthread_t x; x = *(pthread_t*)0;
2752 ; return 0; }
2754 if { (eval echo configure:2755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2755 rm -rf conftest*
2756 have_pthread_t=yes
2757 else
2758 echo "configure: failed program was:" >&5
2759 cat conftest.$ac_ext >&5
2761 rm -f conftest*
2762 echo "$ac_t""$have_pthread_t" 1>&6
2763 if test "$have_pthread_t" = yes ; then
2764 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
2765 echo $ac_n "checking size of pthread_t""... $ac_c" 1>&6
2766 echo "configure:2767: checking size of pthread_t" >&5
2767 if eval "test \"`echo '$''{'ac_cv_sizeof_pthread_t'+set}'`\" = set"; then
2768 echo $ac_n "(cached) $ac_c" 1>&6
2769 else
2770 if test "$cross_compiling" = yes; then
2771 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2772 else
2773 cat > conftest.$ac_ext <<EOF
2774 #line 2775 "configure"
2775 #include "confdefs.h"
2776 #include <stdio.h>
2777 #include <pthread.h>
2778 main()
2780 FILE *f=fopen("conftestval", "w");
2781 if (!f) exit(1);
2782 fprintf(f, "%d\n", sizeof(pthread_t));
2783 exit(0);
2786 if { (eval echo configure:2787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2787 then
2788 ac_cv_sizeof_pthread_t=`cat conftestval`
2789 else
2790 echo "configure: failed program was:" >&5
2791 cat conftest.$ac_ext >&5
2792 rm -fr conftest*
2793 ac_cv_sizeof_pthread_t=0
2795 rm -fr conftest*
2801 echo "$ac_t""$ac_cv_sizeof_pthread_t" 1>&6
2802 cat >> confdefs.h <<EOF
2803 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
2809 # Minor variations in building a framework between NextStep versions 4 and 5
2811 case $ac_sys_system/$ac_sys_release in
2812 Darwin/*)
2813 ns_undef_sym='_environ'
2814 LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -U $ns_undef_sym" ;;
2815 next/4*)
2816 ns_undef_sym='__environ'
2817 LIBTOOL_CRUFT="-U $ns_undef_sym" ;;
2818 next/5*)
2819 ns_undef_sym='_environ'
2820 LIBTOOL_CRUFT="-lcc_dynamic -U $ns_undef_sym" ;;
2821 esac
2823 echo $ac_n "checking for --with-next-framework""... $ac_c" 1>&6
2824 echo "configure:2825: checking for --with-next-framework" >&5
2825 if test "$with_next_framework"
2826 then
2827 OPT="$OPT -fno-common"
2828 # -U __environ is needed since bundles don't have access
2829 # to crt0 when built but will always be linked against it
2830 LDFLAGS="$LDFLAGS -Wl,-U,$ns_undef_sym"
2831 cat >> confdefs.h <<\EOF
2832 #define WITH_NEXT_FRAMEWORK 1
2835 echo "$ac_t""yes" 1>&6
2836 else
2837 echo "$ac_t""no" 1>&6
2840 echo $ac_n "checking for --with-dyld""... $ac_c" 1>&6
2841 echo "configure:2842: checking for --with-dyld" >&5
2842 if test "$with_next_framework" -o "$with_dyld"
2843 then
2844 if test "$with_dyld"
2845 then
2846 echo "$ac_t""yes" 1>&6
2847 else
2848 echo "$ac_t""required for framework build" 1>&6
2850 cat >> confdefs.h <<\EOF
2851 #define WITH_DYLD 1
2854 ns_dyld='set'
2855 else
2856 echo "$ac_t""no" 1>&6
2859 # Set info about shared libraries.
2865 # SO is the extension of shared libraries `(including the dot!)
2866 # -- usually .so, .sl on HP-UX, .dll on Cygwin
2867 echo $ac_n "checking SO""... $ac_c" 1>&6
2868 echo "configure:2869: checking SO" >&5
2869 if test -z "$SO"
2870 then
2871 case $ac_sys_system in
2872 hp*|HP*) SO=.sl;;
2873 CYGWIN*) SO=.dll;;
2874 *) SO=.so;;
2875 esac
2877 echo "$ac_t""$SO" 1>&6
2878 # LDSHARED is the ld *command* used to create shared library
2879 # -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5
2880 # (Shared libraries in this instance are shared modules to be loaded into
2881 # Python, as opposed to building Python itself as a shared library.)
2882 echo $ac_n "checking LDSHARED""... $ac_c" 1>&6
2883 echo "configure:2884: checking LDSHARED" >&5
2884 if test -z "$LDSHARED"
2885 then
2886 case $ac_sys_system/$ac_sys_release in
2887 AIX*)
2888 BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
2889 LDSHARED="\$(BINLIBDEST)/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/python.exp"
2891 BeOS*)
2892 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
2893 LDSHARED="\$(BINLIBDEST)/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
2895 IRIX/5*) LDSHARED="ld -shared";;
2896 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
2897 SunOS/4*) LDSHARED="ld";;
2898 SunOS/5*)
2899 if test "$GCC" = "yes"
2900 then LDSHARED='$(CC) -shared'
2901 else LDSHARED="ld -G";
2902 fi ;;
2903 hp*|HP*) LDSHARED="ld -b";;
2904 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
2905 DYNIX/ptx*) LDSHARED="ld -G";;
2906 Darwin/*|next/*)
2907 if test "$ns_dyld"
2908 then LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined suppress'
2909 else LDSHARED='$(CC) $(CFLAGS) -nostdlib -r';
2911 if test "$with_next_framework" ; then
2912 LDSHARED="$LDSHARED \$(LDLIBRARY)"
2913 fi ;;
2914 Linux*) LDSHARED="gcc -shared";;
2915 dgux*) LDSHARED="ld -G";;
2916 BSD/OS*/4*) LDSHARED="gcc -shared";;
2917 OpenBSD*) LDSHARED="ld -Bshareable";;
2918 NetBSD*)
2919 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
2920 then
2921 LDSHARED="cc -shared"
2922 else
2923 LDSHARED="ld -Bshareable"
2924 fi;;
2925 FreeBSD*)
2926 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
2927 then
2928 LDSHARED="cc -shared ${LDFLAGS}"
2929 else
2930 LDSHARED="ld -Bshareable ${LDFLAGS}"
2931 fi;;
2932 UnixWare*)
2933 if test "$GCC" = "yes"
2934 then LDSHARED="$(CC) -shared"
2935 else LDSHARED="$(CC) -G"
2936 fi;;
2937 SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";;
2938 Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
2939 CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
2940 *) LDSHARED="ld";;
2941 esac
2943 echo "$ac_t""$LDSHARED" 1>&6
2944 BLDSHARED=${BLDSHARED-$LDSHARED}
2945 # CCSHARED are the C *flags* used to create objects to go into a shared
2946 # library (module) -- this is only needed for a few systems
2947 echo $ac_n "checking CCSHARED""... $ac_c" 1>&6
2948 echo "configure:2949: checking CCSHARED" >&5
2949 if test -z "$CCSHARED"
2950 then
2951 case $ac_sys_system/$ac_sys_release in
2952 SunOS*) if test "$GCC" = yes;
2953 then CCSHARED="-fPIC";
2954 fi;;
2955 hp*|HP*) if test "$GCC" = yes;
2956 then CCSHARED="-fpic";
2957 else CCSHARED="+z";
2958 fi;;
2959 Linux*) CCSHARED="-fPIC";;
2960 BSD/OS*/4*) CCSHARED="-fpic";;
2961 OpenBSD*) CCSHARED="-fpic";;
2962 FreeBSD*|NetBSD*) CCSHARED="-fPIC";;
2963 UnixWare*)
2964 if test "$GCC" = "yes"
2965 then CCSHARED="-fPIC"
2966 else CCSHARED="-KPIC"
2967 fi;;
2968 SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";;
2969 Monterey*) CCSHARED="-G";;
2970 IRIX*/6*) case $CC in
2971 *gcc*) CCSHARED="-shared";;
2972 *) CCSHARED="";;
2973 esac;;
2974 CYGWIN*) CCSHARED="-DUSE_DL_IMPORT";;
2975 esac
2977 echo "$ac_t""$CCSHARED" 1>&6
2978 # LINKFORSHARED are the flags passed to the $(CC) command that links
2979 # the python executable -- this is only needed for a few systems
2980 echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6
2981 echo "configure:2982: checking LINKFORSHARED" >&5
2982 if test -z "$LINKFORSHARED"
2983 then
2984 case $ac_sys_system/$ac_sys_release in
2985 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
2986 hp*|HP*)
2987 LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
2988 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
2989 Linux*) LINKFORSHARED="-Xlinker -export-dynamic";;
2990 # -u libsys_s pulls in all symbols in libsys
2991 next/2*|next/3*) LINKFORSHARED="-u libsys_s";;
2992 # -u __dummy makes the linker aware of the objc runtime
2993 # in System.framework; otherwise, __objcInit (referenced in
2994 # crt1.o) gets erroneously defined as common, which breaks dynamic
2995 # loading of any modules which reference it in System.framework
2996 next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;;
2997 Darwin/*) LINKFORSHARED="-u __dummy -framework System -framework Foundation" ;;
2998 UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
2999 SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
3000 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
3001 FreeBSD*|NetBSD*)
3002 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
3003 then
3004 LINKFORSHARED="-Wl,--export-dynamic"
3005 fi;;
3006 SunOS/5*) case $CC in
3007 *gcc*)
3008 if $CC -Xlinker -V 2>&1 | grep BFD >/dev/null
3009 then
3010 LINKFORSHARED="-Xlinker --export-dynamic"
3011 fi;;
3012 esac;;
3013 esac
3015 echo "$ac_t""$LINKFORSHARED" 1>&6
3018 echo $ac_n "checking CFLAGSFORSHARED""... $ac_c" 1>&6
3019 echo "configure:3020: checking CFLAGSFORSHARED" >&5
3020 if test ! "$LIBRARY" = "$LDLIBRARY"
3021 then
3022 case $ac_sys_system in
3023 CYGWIN*)
3024 # Cygwin needs CCSHARED when building extension DLLs
3025 # but not when building the interpreter DLL.
3026 CFLAGSFORSHARED='';;
3028 CFLAGSFORSHARED='$(CCSHARED)'
3029 esac
3031 echo "$ac_t""$CFLAGSFORSHARED" 1>&6
3033 # checks for libraries
3034 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3035 echo "configure:3036: checking for dlopen in -ldl" >&5
3036 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3038 echo $ac_n "(cached) $ac_c" 1>&6
3039 else
3040 ac_save_LIBS="$LIBS"
3041 LIBS="-ldl $LIBS"
3042 cat > conftest.$ac_ext <<EOF
3043 #line 3044 "configure"
3044 #include "confdefs.h"
3045 /* Override any gcc2 internal prototype to avoid an error. */
3046 /* We use char because int might match the return type of a gcc2
3047 builtin and then its argument prototype would still apply. */
3048 char dlopen();
3050 int main() {
3051 dlopen()
3052 ; return 0; }
3054 if { (eval echo configure:3055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3055 rm -rf conftest*
3056 eval "ac_cv_lib_$ac_lib_var=yes"
3057 else
3058 echo "configure: failed program was:" >&5
3059 cat conftest.$ac_ext >&5
3060 rm -rf conftest*
3061 eval "ac_cv_lib_$ac_lib_var=no"
3063 rm -f conftest*
3064 LIBS="$ac_save_LIBS"
3067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3068 echo "$ac_t""yes" 1>&6
3069 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3070 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3071 cat >> confdefs.h <<EOF
3072 #define $ac_tr_lib 1
3075 LIBS="-ldl $LIBS"
3077 else
3078 echo "$ac_t""no" 1>&6
3080 # Dynamic linking for SunOS/Solaris and SYSV
3081 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
3082 echo "configure:3083: checking for shl_load in -ldld" >&5
3083 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
3084 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3086 else
3087 ac_save_LIBS="$LIBS"
3088 LIBS="-ldld $LIBS"
3089 cat > conftest.$ac_ext <<EOF
3090 #line 3091 "configure"
3091 #include "confdefs.h"
3092 /* Override any gcc2 internal prototype to avoid an error. */
3093 /* We use char because int might match the return type of a gcc2
3094 builtin and then its argument prototype would still apply. */
3095 char shl_load();
3097 int main() {
3098 shl_load()
3099 ; return 0; }
3101 if { (eval echo configure:3102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3102 rm -rf conftest*
3103 eval "ac_cv_lib_$ac_lib_var=yes"
3104 else
3105 echo "configure: failed program was:" >&5
3106 cat conftest.$ac_ext >&5
3107 rm -rf conftest*
3108 eval "ac_cv_lib_$ac_lib_var=no"
3110 rm -f conftest*
3111 LIBS="$ac_save_LIBS"
3114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3115 echo "$ac_t""yes" 1>&6
3116 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3117 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3118 cat >> confdefs.h <<EOF
3119 #define $ac_tr_lib 1
3122 LIBS="-ldld $LIBS"
3124 else
3125 echo "$ac_t""no" 1>&6
3127 # Dynamic linking for HP-UX
3129 # Check for --with-pydebug
3130 echo $ac_n "checking for --with-pydebug""... $ac_c" 1>&6
3131 echo "configure:3132: checking for --with-pydebug" >&5
3132 # Check whether --with-pydebug or --without-pydebug was given.
3133 if test "${with_pydebug+set}" = set; then
3134 withval="$with_pydebug"
3136 if test "$withval" != no
3137 then cat >> confdefs.h <<\EOF
3138 #define Py_DEBUG 1
3140 echo "$ac_t""yes" 1>&6
3141 else echo "$ac_t""no" 1>&6
3143 else
3144 echo "$ac_t""no" 1>&6
3148 # checks for system dependent C++ extensions support
3149 case "$ac_sys_system" in
3150 AIX*) echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6
3151 echo "configure:3152: checking for genuine AIX C++ extensions support" >&5
3152 cat > conftest.$ac_ext <<EOF
3153 #line 3154 "configure"
3154 #include "confdefs.h"
3155 #include "/usr/lpp/xlC/include/load.h"
3156 int main() {
3157 loadAndInit("", 0, "")
3158 ; return 0; }
3160 if { (eval echo configure:3161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3161 rm -rf conftest*
3162 cat >> confdefs.h <<\EOF
3163 #define AIX_GENUINE_CPLUSPLUS 1
3166 echo "$ac_t""yes" 1>&6
3167 else
3168 echo "configure: failed program was:" >&5
3169 cat conftest.$ac_ext >&5
3170 rm -rf conftest*
3171 echo "$ac_t""no" 1>&6
3173 rm -f conftest*;;
3174 *) ;;
3175 esac
3177 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
3178 # However on SGI IRIX, these exist but are broken.
3179 # BeOS' sockets are stashed in libnet.
3180 case "$ac_sys_system" in
3181 IRIX*) ;;
3183 echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6
3184 echo "configure:3185: checking for t_open in -lnsl" >&5
3185 ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'`
3186 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3188 else
3189 ac_save_LIBS="$LIBS"
3190 LIBS="-lnsl $LIBS"
3191 cat > conftest.$ac_ext <<EOF
3192 #line 3193 "configure"
3193 #include "confdefs.h"
3194 /* Override any gcc2 internal prototype to avoid an error. */
3195 /* We use char because int might match the return type of a gcc2
3196 builtin and then its argument prototype would still apply. */
3197 char t_open();
3199 int main() {
3200 t_open()
3201 ; return 0; }
3203 if { (eval echo configure:3204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3204 rm -rf conftest*
3205 eval "ac_cv_lib_$ac_lib_var=yes"
3206 else
3207 echo "configure: failed program was:" >&5
3208 cat conftest.$ac_ext >&5
3209 rm -rf conftest*
3210 eval "ac_cv_lib_$ac_lib_var=no"
3212 rm -f conftest*
3213 LIBS="$ac_save_LIBS"
3216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3217 echo "$ac_t""yes" 1>&6
3218 LIBS="-lnsl $LIBS"
3219 else
3220 echo "$ac_t""no" 1>&6
3222 # SVR4
3223 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3224 echo "configure:3225: checking for socket in -lsocket" >&5
3225 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3226 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3227 echo $ac_n "(cached) $ac_c" 1>&6
3228 else
3229 ac_save_LIBS="$LIBS"
3230 LIBS="-lsocket $LIBS $LIBS"
3231 cat > conftest.$ac_ext <<EOF
3232 #line 3233 "configure"
3233 #include "confdefs.h"
3234 /* Override any gcc2 internal prototype to avoid an error. */
3235 /* We use char because int might match the return type of a gcc2
3236 builtin and then its argument prototype would still apply. */
3237 char socket();
3239 int main() {
3240 socket()
3241 ; return 0; }
3243 if { (eval echo configure:3244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3244 rm -rf conftest*
3245 eval "ac_cv_lib_$ac_lib_var=yes"
3246 else
3247 echo "configure: failed program was:" >&5
3248 cat conftest.$ac_ext >&5
3249 rm -rf conftest*
3250 eval "ac_cv_lib_$ac_lib_var=no"
3252 rm -f conftest*
3253 LIBS="$ac_save_LIBS"
3256 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3257 echo "$ac_t""yes" 1>&6
3258 LIBS="-lsocket $LIBS"
3259 else
3260 echo "$ac_t""no" 1>&6
3262 # SVR4 sockets
3264 esac
3265 case "$ac_sys_system" in
3266 BeOS*)
3267 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
3268 echo "configure:3269: checking for socket in -lnet" >&5
3269 ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'`
3270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3271 echo $ac_n "(cached) $ac_c" 1>&6
3272 else
3273 ac_save_LIBS="$LIBS"
3274 LIBS="-lnet $LIBS $LIBS"
3275 cat > conftest.$ac_ext <<EOF
3276 #line 3277 "configure"
3277 #include "confdefs.h"
3278 /* Override any gcc2 internal prototype to avoid an error. */
3279 /* We use char because int might match the return type of a gcc2
3280 builtin and then its argument prototype would still apply. */
3281 char socket();
3283 int main() {
3284 socket()
3285 ; return 0; }
3287 if { (eval echo configure:3288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3288 rm -rf conftest*
3289 eval "ac_cv_lib_$ac_lib_var=yes"
3290 else
3291 echo "configure: failed program was:" >&5
3292 cat conftest.$ac_ext >&5
3293 rm -rf conftest*
3294 eval "ac_cv_lib_$ac_lib_var=no"
3296 rm -f conftest*
3297 LIBS="$ac_save_LIBS"
3300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3301 echo "$ac_t""yes" 1>&6
3302 LIBS="-lnet $LIBS"
3303 else
3304 echo "$ac_t""no" 1>&6
3306 # BeOS
3308 esac
3310 echo $ac_n "checking for --with-libs""... $ac_c" 1>&6
3311 echo "configure:3312: checking for --with-libs" >&5
3312 # Check whether --with-libs or --without-libs was given.
3313 if test "${with_libs+set}" = set; then
3314 withval="$with_libs"
3316 echo "$ac_t""$withval" 1>&6
3317 LIBS="$withval $LIBS"
3319 else
3320 echo "$ac_t""no" 1>&6
3324 # Determine if signalmodule should be used.
3327 echo $ac_n "checking for --with-signal-module""... $ac_c" 1>&6
3328 echo "configure:3329: checking for --with-signal-module" >&5
3329 # Check whether --with-signal-module or --without-signal-module was given.
3330 if test "${with_signal_module+set}" = set; then
3331 withval="$with_signal_module"
3336 if test -z "$with_signal_module"
3337 then with_signal_module="yes"
3339 echo "$ac_t""$with_signal_module" 1>&6
3341 if test "${with_signal_module}" = "yes"; then
3342 USE_SIGNAL_MODULE=""
3343 SIGNAL_OBJS=""
3344 else
3345 USE_SIGNAL_MODULE="#"
3346 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o"
3349 # This is used to generate Setup.config
3351 USE_THREAD_MODULE=""
3353 echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6
3354 echo "configure:3355: checking for --with-dec-threads" >&5
3356 # Check whether --with-dec-threads or --without-dec-threads was given.
3357 if test "${with_dec_threads+set}" = set; then
3358 withval="$with_dec_threads"
3360 echo "$ac_t""$withval" 1>&6
3361 LDLAST=-threads
3362 if test "${with_thread+set}" != set; then
3363 with_thread="$withval";
3365 else
3366 echo "$ac_t""no" 1>&6
3370 echo $ac_n "checking for --with-threads""... $ac_c" 1>&6
3371 echo "configure:3372: checking for --with-threads" >&5
3372 # Check whether --with-threads or --without-threads was given.
3373 if test "${with_threads+set}" = set; then
3374 withval="$with_threads"
3379 # --with-thread is deprecated, but check for it anyway
3380 # Check whether --with-thread or --without-thread was given.
3381 if test "${with_thread+set}" = set; then
3382 withval="$with_thread"
3384 with_threads=$with_thread
3388 if test -z "$with_threads"
3389 then with_threads="yes"
3391 echo "$ac_t""$with_threads" 1>&6
3393 if test "$with_threads" = "no"
3394 then
3395 USE_THREAD_MODULE="#"
3396 else
3397 if test ! -z "$with_threads" -a -d "$with_threads"
3398 then LDFLAGS="$LDFLAGS -L$with_threads"
3400 if test ! -z "$withval" -a -d "$withval"
3401 then LDFLAGS="$LDFLAGS -L$withval"
3403 cat >> confdefs.h <<\EOF
3404 #define _REENTRANT 1
3407 ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'`
3408 echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6
3409 echo "configure:3410: checking for mach/cthreads.h" >&5
3410 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3411 echo $ac_n "(cached) $ac_c" 1>&6
3412 else
3413 cat > conftest.$ac_ext <<EOF
3414 #line 3415 "configure"
3415 #include "confdefs.h"
3416 #include <mach/cthreads.h>
3418 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3419 { (eval echo configure:3420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3420 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3421 if test -z "$ac_err"; then
3422 rm -rf conftest*
3423 eval "ac_cv_header_$ac_safe=yes"
3424 else
3425 echo "$ac_err" >&5
3426 echo "configure: failed program was:" >&5
3427 cat conftest.$ac_ext >&5
3428 rm -rf conftest*
3429 eval "ac_cv_header_$ac_safe=no"
3431 rm -f conftest*
3433 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3434 echo "$ac_t""yes" 1>&6
3435 cat >> confdefs.h <<\EOF
3436 #define WITH_THREAD 1
3439 cat >> confdefs.h <<\EOF
3440 #define C_THREADS 1
3443 LIBOBJS="$LIBOBJS thread.o"
3444 else
3445 echo "$ac_t""no" 1>&6
3447 echo $ac_n "checking for --with-pth""... $ac_c" 1>&6
3448 echo "configure:3449: checking for --with-pth" >&5
3449 # Check whether --with-pth or --without-pth was given.
3450 if test "${with_pth+set}" = set; then
3451 withval="$with_pth"
3453 echo "$ac_t""$withval" 1>&6
3454 cat >> confdefs.h <<\EOF
3455 #define WITH_THREAD 1
3458 cat >> confdefs.h <<\EOF
3459 #define HAVE_PTH 1
3462 LIBS="-lpth $LIBS"
3463 LIBOBJS="$LIBOBJS thread.o"
3464 else
3466 echo "$ac_t""no" 1>&6
3467 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
3468 echo "configure:3469: checking for pthread_create in -lpthread" >&5
3469 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
3470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3471 echo $ac_n "(cached) $ac_c" 1>&6
3472 else
3473 ac_save_LIBS="$LIBS"
3474 LIBS="-lpthread $LIBS"
3475 cat > conftest.$ac_ext <<EOF
3476 #line 3477 "configure"
3477 #include "confdefs.h"
3478 /* Override any gcc2 internal prototype to avoid an error. */
3479 /* We use char because int might match the return type of a gcc2
3480 builtin and then its argument prototype would still apply. */
3481 char pthread_create();
3483 int main() {
3484 pthread_create()
3485 ; return 0; }
3487 if { (eval echo configure:3488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3488 rm -rf conftest*
3489 eval "ac_cv_lib_$ac_lib_var=yes"
3490 else
3491 echo "configure: failed program was:" >&5
3492 cat conftest.$ac_ext >&5
3493 rm -rf conftest*
3494 eval "ac_cv_lib_$ac_lib_var=no"
3496 rm -f conftest*
3497 LIBS="$ac_save_LIBS"
3500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3501 echo "$ac_t""yes" 1>&6
3502 cat >> confdefs.h <<\EOF
3503 #define WITH_THREAD 1
3506 cat >> confdefs.h <<\EOF
3507 #define _POSIX_THREADS 1
3510 LIBS="-lpthread $LIBS"
3511 LIBOBJS="$LIBOBJS thread.o"
3512 else
3513 echo "$ac_t""no" 1>&6
3515 echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6
3516 echo "configure:3517: checking for pthread_detach" >&5
3517 if eval "test \"`echo '$''{'ac_cv_func_pthread_detach'+set}'`\" = set"; then
3518 echo $ac_n "(cached) $ac_c" 1>&6
3519 else
3520 cat > conftest.$ac_ext <<EOF
3521 #line 3522 "configure"
3522 #include "confdefs.h"
3523 /* System header to define __stub macros and hopefully few prototypes,
3524 which can conflict with char pthread_detach(); below. */
3525 #include <assert.h>
3526 /* Override any gcc2 internal prototype to avoid an error. */
3527 /* We use char because int might match the return type of a gcc2
3528 builtin and then its argument prototype would still apply. */
3529 char pthread_detach();
3531 int main() {
3533 /* The GNU C library defines this for functions which it implements
3534 to always fail with ENOSYS. Some functions are actually named
3535 something starting with __ and the normal name is an alias. */
3536 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
3537 choke me
3538 #else
3539 pthread_detach();
3540 #endif
3542 ; return 0; }
3544 if { (eval echo configure:3545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3545 rm -rf conftest*
3546 eval "ac_cv_func_pthread_detach=yes"
3547 else
3548 echo "configure: failed program was:" >&5
3549 cat conftest.$ac_ext >&5
3550 rm -rf conftest*
3551 eval "ac_cv_func_pthread_detach=no"
3553 rm -f conftest*
3556 if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then
3557 echo "$ac_t""yes" 1>&6
3558 cat >> confdefs.h <<\EOF
3559 #define WITH_THREAD 1
3562 case $ac_sys_system in
3563 Darwin*) ;;
3564 *) cat >> confdefs.h <<\EOF
3565 #define _POSIX_THREADS 1
3568 esac
3569 LIBOBJS="$LIBOBJS thread.o"
3570 else
3571 echo "$ac_t""no" 1>&6
3573 ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'`
3574 echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6
3575 echo "configure:3576: checking for kernel/OS.h" >&5
3576 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3577 echo $ac_n "(cached) $ac_c" 1>&6
3578 else
3579 cat > conftest.$ac_ext <<EOF
3580 #line 3581 "configure"
3581 #include "confdefs.h"
3582 #include <kernel/OS.h>
3584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3585 { (eval echo configure:3586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3587 if test -z "$ac_err"; then
3588 rm -rf conftest*
3589 eval "ac_cv_header_$ac_safe=yes"
3590 else
3591 echo "$ac_err" >&5
3592 echo "configure: failed program was:" >&5
3593 cat conftest.$ac_ext >&5
3594 rm -rf conftest*
3595 eval "ac_cv_header_$ac_safe=no"
3597 rm -f conftest*
3599 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3600 echo "$ac_t""yes" 1>&6
3601 cat >> confdefs.h <<\EOF
3602 #define WITH_THREAD 1
3605 cat >> confdefs.h <<\EOF
3606 #define BEOS_THREADS 1
3609 LIBOBJS="$LIBOBJS thread.o"
3610 else
3611 echo "$ac_t""no" 1>&6
3613 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
3614 echo "configure:3615: checking for pthread_create in -lpthreads" >&5
3615 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
3616 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3617 echo $ac_n "(cached) $ac_c" 1>&6
3618 else
3619 ac_save_LIBS="$LIBS"
3620 LIBS="-lpthreads $LIBS"
3621 cat > conftest.$ac_ext <<EOF
3622 #line 3623 "configure"
3623 #include "confdefs.h"
3624 /* Override any gcc2 internal prototype to avoid an error. */
3625 /* We use char because int might match the return type of a gcc2
3626 builtin and then its argument prototype would still apply. */
3627 char pthread_create();
3629 int main() {
3630 pthread_create()
3631 ; return 0; }
3633 if { (eval echo configure:3634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3634 rm -rf conftest*
3635 eval "ac_cv_lib_$ac_lib_var=yes"
3636 else
3637 echo "configure: failed program was:" >&5
3638 cat conftest.$ac_ext >&5
3639 rm -rf conftest*
3640 eval "ac_cv_lib_$ac_lib_var=no"
3642 rm -f conftest*
3643 LIBS="$ac_save_LIBS"
3646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3647 echo "$ac_t""yes" 1>&6
3648 cat >> confdefs.h <<\EOF
3649 #define WITH_THREAD 1
3652 cat >> confdefs.h <<\EOF
3653 #define _POSIX_THREADS 1
3656 LIBS="$LIBS -lpthreads"
3657 LIBOBJS="$LIBOBJS thread.o"
3658 else
3659 echo "$ac_t""no" 1>&6
3661 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
3662 echo "configure:3663: checking for pthread_create in -lc_r" >&5
3663 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
3664 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3665 echo $ac_n "(cached) $ac_c" 1>&6
3666 else
3667 ac_save_LIBS="$LIBS"
3668 LIBS="-lc_r $LIBS"
3669 cat > conftest.$ac_ext <<EOF
3670 #line 3671 "configure"
3671 #include "confdefs.h"
3672 /* Override any gcc2 internal prototype to avoid an error. */
3673 /* We use char because int might match the return type of a gcc2
3674 builtin and then its argument prototype would still apply. */
3675 char pthread_create();
3677 int main() {
3678 pthread_create()
3679 ; return 0; }
3681 if { (eval echo configure:3682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3682 rm -rf conftest*
3683 eval "ac_cv_lib_$ac_lib_var=yes"
3684 else
3685 echo "configure: failed program was:" >&5
3686 cat conftest.$ac_ext >&5
3687 rm -rf conftest*
3688 eval "ac_cv_lib_$ac_lib_var=no"
3690 rm -f conftest*
3691 LIBS="$ac_save_LIBS"
3694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3695 echo "$ac_t""yes" 1>&6
3696 cat >> confdefs.h <<\EOF
3697 #define WITH_THREAD 1
3700 cat >> confdefs.h <<\EOF
3701 #define _POSIX_THREADS 1
3704 LIBS="$LIBS -lc_r"
3705 LIBOBJS="$LIBOBJS thread.o"
3706 else
3707 echo "$ac_t""no" 1>&6
3709 echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6
3710 echo "configure:3711: checking for __d6_pthread_create in -lthread" >&5
3711 ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'`
3712 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3713 echo $ac_n "(cached) $ac_c" 1>&6
3714 else
3715 ac_save_LIBS="$LIBS"
3716 LIBS="-lthread $LIBS"
3717 cat > conftest.$ac_ext <<EOF
3718 #line 3719 "configure"
3719 #include "confdefs.h"
3720 /* Override any gcc2 internal prototype to avoid an error. */
3721 /* We use char because int might match the return type of a gcc2
3722 builtin and then its argument prototype would still apply. */
3723 char __d6_pthread_create();
3725 int main() {
3726 __d6_pthread_create()
3727 ; return 0; }
3729 if { (eval echo configure:3730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3730 rm -rf conftest*
3731 eval "ac_cv_lib_$ac_lib_var=yes"
3732 else
3733 echo "configure: failed program was:" >&5
3734 cat conftest.$ac_ext >&5
3735 rm -rf conftest*
3736 eval "ac_cv_lib_$ac_lib_var=no"
3738 rm -f conftest*
3739 LIBS="$ac_save_LIBS"
3742 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3743 echo "$ac_t""yes" 1>&6
3744 cat >> confdefs.h <<\EOF
3745 #define WITH_THREAD 1
3748 cat >> confdefs.h <<\EOF
3749 #define _POSIX_THREADS 1
3752 LIBS="$LIBS -lthread"
3753 LIBOBJS="$LIBOBJS thread.o"
3754 else
3755 echo "$ac_t""no" 1>&6
3757 echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6
3758 echo "configure:3759: checking for __pthread_create_system in -lpthread" >&5
3759 ac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'`
3760 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3761 echo $ac_n "(cached) $ac_c" 1>&6
3762 else
3763 ac_save_LIBS="$LIBS"
3764 LIBS="-lpthread $LIBS"
3765 cat > conftest.$ac_ext <<EOF
3766 #line 3767 "configure"
3767 #include "confdefs.h"
3768 /* Override any gcc2 internal prototype to avoid an error. */
3769 /* We use char because int might match the return type of a gcc2
3770 builtin and then its argument prototype would still apply. */
3771 char __pthread_create_system();
3773 int main() {
3774 __pthread_create_system()
3775 ; return 0; }
3777 if { (eval echo configure:3778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3778 rm -rf conftest*
3779 eval "ac_cv_lib_$ac_lib_var=yes"
3780 else
3781 echo "configure: failed program was:" >&5
3782 cat conftest.$ac_ext >&5
3783 rm -rf conftest*
3784 eval "ac_cv_lib_$ac_lib_var=no"
3786 rm -f conftest*
3787 LIBS="$ac_save_LIBS"
3790 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3791 echo "$ac_t""yes" 1>&6
3792 cat >> confdefs.h <<\EOF
3793 #define WITH_THREAD 1
3796 cat >> confdefs.h <<\EOF
3797 #define _POSIX_THREADS 1
3800 LIBS="$LIBS -lpthread"
3801 LIBOBJS="$LIBOBJS thread.o"
3802 else
3803 echo "$ac_t""no" 1>&6
3805 echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6
3806 echo "configure:3807: checking for pthread_create in -lcma" >&5
3807 ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'`
3808 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3809 echo $ac_n "(cached) $ac_c" 1>&6
3810 else
3811 ac_save_LIBS="$LIBS"
3812 LIBS="-lcma $LIBS"
3813 cat > conftest.$ac_ext <<EOF
3814 #line 3815 "configure"
3815 #include "confdefs.h"
3816 /* Override any gcc2 internal prototype to avoid an error. */
3817 /* We use char because int might match the return type of a gcc2
3818 builtin and then its argument prototype would still apply. */
3819 char pthread_create();
3821 int main() {
3822 pthread_create()
3823 ; return 0; }
3825 if { (eval echo configure:3826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3826 rm -rf conftest*
3827 eval "ac_cv_lib_$ac_lib_var=yes"
3828 else
3829 echo "configure: failed program was:" >&5
3830 cat conftest.$ac_ext >&5
3831 rm -rf conftest*
3832 eval "ac_cv_lib_$ac_lib_var=no"
3834 rm -f conftest*
3835 LIBS="$ac_save_LIBS"
3838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3839 echo "$ac_t""yes" 1>&6
3840 cat >> confdefs.h <<\EOF
3841 #define WITH_THREAD 1
3844 cat >> confdefs.h <<\EOF
3845 #define _POSIX_THREADS 1
3848 LIBS="$LIBS -lcma"
3849 LIBOBJS="$LIBOBJS thread.o"
3850 else
3851 echo "$ac_t""no" 1>&6
3853 USE_THREAD_MODULE="#"
3876 echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6
3877 echo "configure:3878: checking for usconfig in -lmpc" >&5
3878 ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'`
3879 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3880 echo $ac_n "(cached) $ac_c" 1>&6
3881 else
3882 ac_save_LIBS="$LIBS"
3883 LIBS="-lmpc $LIBS"
3884 cat > conftest.$ac_ext <<EOF
3885 #line 3886 "configure"
3886 #include "confdefs.h"
3887 /* Override any gcc2 internal prototype to avoid an error. */
3888 /* We use char because int might match the return type of a gcc2
3889 builtin and then its argument prototype would still apply. */
3890 char usconfig();
3892 int main() {
3893 usconfig()
3894 ; return 0; }
3896 if { (eval echo configure:3897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3897 rm -rf conftest*
3898 eval "ac_cv_lib_$ac_lib_var=yes"
3899 else
3900 echo "configure: failed program was:" >&5
3901 cat conftest.$ac_ext >&5
3902 rm -rf conftest*
3903 eval "ac_cv_lib_$ac_lib_var=no"
3905 rm -f conftest*
3906 LIBS="$ac_save_LIBS"
3909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3910 echo "$ac_t""yes" 1>&6
3911 cat >> confdefs.h <<\EOF
3912 #define WITH_THREAD 1
3915 LIBS="$LIBS -lmpc"
3916 LIBOBJS="$LIBOBJS thread.o"
3917 USE_THREAD_MODULE=""
3918 else
3919 echo "$ac_t""no" 1>&6
3922 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
3923 echo "configure:3924: checking for thr_create in -lthread" >&5
3924 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
3925 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3926 echo $ac_n "(cached) $ac_c" 1>&6
3927 else
3928 ac_save_LIBS="$LIBS"
3929 LIBS="-lthread $LIBS"
3930 cat > conftest.$ac_ext <<EOF
3931 #line 3932 "configure"
3932 #include "confdefs.h"
3933 /* Override any gcc2 internal prototype to avoid an error. */
3934 /* We use char because int might match the return type of a gcc2
3935 builtin and then its argument prototype would still apply. */
3936 char thr_create();
3938 int main() {
3939 thr_create()
3940 ; return 0; }
3942 if { (eval echo configure:3943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3943 rm -rf conftest*
3944 eval "ac_cv_lib_$ac_lib_var=yes"
3945 else
3946 echo "configure: failed program was:" >&5
3947 cat conftest.$ac_ext >&5
3948 rm -rf conftest*
3949 eval "ac_cv_lib_$ac_lib_var=no"
3951 rm -f conftest*
3952 LIBS="$ac_save_LIBS"
3955 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3956 echo "$ac_t""yes" 1>&6
3957 cat >> confdefs.h <<\EOF
3958 #define WITH_THREAD 1
3961 LIBS="$LIBS -lthread"
3962 LIBOBJS="$LIBOBJS thread.o"
3963 USE_THREAD_MODULE=""
3964 else
3965 echo "$ac_t""no" 1>&6
3969 if test "$USE_THREAD_MODULE" != "#"
3970 then
3971 # If the above checks didn't disable threads, (at least) OSF1
3972 # needs this '-threads' argument during linking.
3973 case $ac_sys_system in
3974 OSF1) LDLAST=-threads;;
3975 esac
3979 # Check for GC support
3981 USE_GC_MODULE=""
3982 echo $ac_n "checking for --with-cycle-gc""... $ac_c" 1>&6
3983 echo "configure:3984: checking for --with-cycle-gc" >&5
3984 # Check whether --with-cycle-gc or --without-cycle-gc was given.
3985 if test "${with_cycle_gc+set}" = set; then
3986 withval="$with_cycle_gc"
3991 if test -z "$with_cycle_gc"
3992 then with_cycle_gc="yes"
3994 if test "$with_cycle_gc" = "no"
3995 then
3996 USE_GC_MODULE="#"
3997 else
3998 cat >> confdefs.h <<\EOF
3999 #define WITH_CYCLE_GC 1
4003 echo "$ac_t""$with_cycle_gc" 1>&6
4005 # Check for Python-specific malloc support
4006 echo $ac_n "checking for --with-pymalloc""... $ac_c" 1>&6
4007 echo "configure:4008: checking for --with-pymalloc" >&5
4008 # Check whether --with-pymalloc or --without-pymalloc was given.
4009 if test "${with_pymalloc+set}" = set; then
4010 withval="$with_pymalloc"
4012 if test "$withval" != no
4013 then cat >> confdefs.h <<\EOF
4014 #define WITH_PYMALLOC 1
4016 echo "$ac_t""yes" 1>&6
4017 else echo "$ac_t""no" 1>&6
4019 else
4020 echo "$ac_t""no" 1>&6
4024 # Check for --with-wctype-functions
4025 echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6
4026 echo "configure:4027: checking for --with-wctype-functions" >&5
4027 # Check whether --with-wctype-functions or --without-wctype-functions was given.
4028 if test "${with_wctype_functions+set}" = set; then
4029 withval="$with_wctype_functions"
4031 if test "$withval" != no
4032 then cat >> confdefs.h <<\EOF
4033 #define WANT_WCTYPE_FUNCTIONS 1
4035 echo "$ac_t""yes" 1>&6
4036 else echo "$ac_t""no" 1>&6
4038 else
4039 echo "$ac_t""no" 1>&6
4043 # -I${DLINCLDIR} is added to the compile rule for importdl.o
4045 DLINCLDIR=/
4047 echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6
4048 echo "configure:4049: checking for --with-sgi-dl" >&5
4049 # Check whether --with-sgi-dl or --without-sgi-dl was given.
4050 if test "${with_sgi_dl+set}" = set; then
4051 withval="$with_sgi_dl"
4053 echo "$ac_t""$withval" 1>&6
4054 cat >> confdefs.h <<\EOF
4055 #define WITH_SGI_DL 1
4058 DYNLOADFILE="dynload_dl.o"
4059 dldir=$withval
4060 if test ! -z "$dldir" -a -d "$dldir"
4061 then LDFLAGS="$LDFLAGS -L$dldir"
4062 else { echo "configure: error: proper usage is --with-sgi-dl=DIRECTORY" 1>&2; exit 1; }
4064 DLINCLDIR=${dldir}
4065 LIBS="$LIBS -ldl -lmld"
4066 else
4067 echo "$ac_t""no" 1>&6
4071 echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6
4072 echo "configure:4073: checking for --with-dl-dld" >&5
4073 # Check whether --with-dl-dld or --without-dl-dld was given.
4074 if test "${with_dl_dld+set}" = set; then
4075 withval="$with_dl_dld"
4077 echo "$ac_t""$withval" 1>&6
4078 cat >> confdefs.h <<\EOF
4079 #define WITH_DL_DLD 1
4082 DYNLOADFILE="dynload_dl.o"
4083 dldir=`echo "$withval" | sed 's/,.*//'`
4084 dlddir=`echo "$withval" | sed 's/.*,//'`
4085 if test ! -z "$dldir" -a -d "$dldir" -a ! -z "$dlddir" -a -d "$dlddir"
4086 then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir"
4087 else { echo "configure: error: proper usage is --with-dl-dld=DL_DIRECTORY" 1>&2; exit 1; }
4089 DLINCLDIR=${dldir}
4090 LIBS="$LIBS -ldl -ldld"
4091 else
4092 echo "$ac_t""no" 1>&6
4096 # the dlopen() function means we might want to use dynload_shlib.o. some
4097 # platforms, such as AIX, have dlopen(), but don't want to use it.
4098 for ac_func in dlopen
4100 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4101 echo "configure:4102: checking for $ac_func" >&5
4102 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4103 echo $ac_n "(cached) $ac_c" 1>&6
4104 else
4105 cat > conftest.$ac_ext <<EOF
4106 #line 4107 "configure"
4107 #include "confdefs.h"
4108 /* System header to define __stub macros and hopefully few prototypes,
4109 which can conflict with char $ac_func(); below. */
4110 #include <assert.h>
4111 /* Override any gcc2 internal prototype to avoid an error. */
4112 /* We use char because int might match the return type of a gcc2
4113 builtin and then its argument prototype would still apply. */
4114 char $ac_func();
4116 int main() {
4118 /* The GNU C library defines this for functions which it implements
4119 to always fail with ENOSYS. Some functions are actually named
4120 something starting with __ and the normal name is an alias. */
4121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4122 choke me
4123 #else
4124 $ac_func();
4125 #endif
4127 ; return 0; }
4129 if { (eval echo configure:4130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4130 rm -rf conftest*
4131 eval "ac_cv_func_$ac_func=yes"
4132 else
4133 echo "configure: failed program was:" >&5
4134 cat conftest.$ac_ext >&5
4135 rm -rf conftest*
4136 eval "ac_cv_func_$ac_func=no"
4138 rm -f conftest*
4141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4142 echo "$ac_t""yes" 1>&6
4143 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4144 cat >> confdefs.h <<EOF
4145 #define $ac_tr_func 1
4148 else
4149 echo "$ac_t""no" 1>&6
4151 done
4154 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
4155 # loading of modules.
4157 echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6
4158 echo "configure:4159: checking DYNLOADFILE" >&5
4159 if test -z "$DYNLOADFILE"
4160 then
4161 case $ac_sys_system/$ac_sys_release in
4162 AIX*) DYNLOADFILE="dynload_aix.o";;
4163 BeOS*) DYNLOADFILE="dynload_beos.o";;
4164 hp*|HP*) DYNLOADFILE="dynload_hpux.o";;
4165 Darwin/*|next/*) DYNLOADFILE="dynload_next.o";;
4167 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
4168 # out any dynamic loading
4169 if test "$ac_cv_func_dlopen" = yes
4170 then DYNLOADFILE="dynload_shlib.o"
4171 else DYNLOADFILE="dynload_stub.o"
4174 esac
4176 echo "$ac_t""$DYNLOADFILE" 1>&6
4177 if test "$DYNLOADFILE" != "dynload_stub.o"
4178 then
4179 cat >> confdefs.h <<\EOF
4180 #define HAVE_DYNAMIC_LOADING 1
4185 # checks for library functions
4186 for ac_func in alarm chown clock confstr ctermid ctermid_r execv \
4187 flock fork fsync fdatasync fpathconf ftime ftruncate \
4188 getgroups getlogin getpeername getpid getpwent getwd \
4189 kill link lstat mkfifo mktime mremap \
4190 nice pathconf pause plock poll pthread_init \
4191 putenv readlink \
4192 select setegid seteuid setgid \
4193 setlocale setregid setreuid setsid setpgid setuid setvbuf \
4194 sigaction siginterrupt sigrelse strftime strptime symlink sysconf \
4195 tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
4196 truncate uname waitpid _getpty
4198 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4199 echo "configure:4200: checking for $ac_func" >&5
4200 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4201 echo $ac_n "(cached) $ac_c" 1>&6
4202 else
4203 cat > conftest.$ac_ext <<EOF
4204 #line 4205 "configure"
4205 #include "confdefs.h"
4206 /* System header to define __stub macros and hopefully few prototypes,
4207 which can conflict with char $ac_func(); below. */
4208 #include <assert.h>
4209 /* Override any gcc2 internal prototype to avoid an error. */
4210 /* We use char because int might match the return type of a gcc2
4211 builtin and then its argument prototype would still apply. */
4212 char $ac_func();
4214 int main() {
4216 /* The GNU C library defines this for functions which it implements
4217 to always fail with ENOSYS. Some functions are actually named
4218 something starting with __ and the normal name is an alias. */
4219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4220 choke me
4221 #else
4222 $ac_func();
4223 #endif
4225 ; return 0; }
4227 if { (eval echo configure:4228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4228 rm -rf conftest*
4229 eval "ac_cv_func_$ac_func=yes"
4230 else
4231 echo "configure: failed program was:" >&5
4232 cat conftest.$ac_ext >&5
4233 rm -rf conftest*
4234 eval "ac_cv_func_$ac_func=no"
4236 rm -f conftest*
4239 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4240 echo "$ac_t""yes" 1>&6
4241 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4242 cat >> confdefs.h <<EOF
4243 #define $ac_tr_func 1
4246 else
4247 echo "$ac_t""no" 1>&6
4249 done
4252 # check for openpty and forkpty
4254 for ac_func in openpty
4256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4257 echo "configure:4258: checking for $ac_func" >&5
4258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4259 echo $ac_n "(cached) $ac_c" 1>&6
4260 else
4261 cat > conftest.$ac_ext <<EOF
4262 #line 4263 "configure"
4263 #include "confdefs.h"
4264 /* System header to define __stub macros and hopefully few prototypes,
4265 which can conflict with char $ac_func(); below. */
4266 #include <assert.h>
4267 /* Override any gcc2 internal prototype to avoid an error. */
4268 /* We use char because int might match the return type of a gcc2
4269 builtin and then its argument prototype would still apply. */
4270 char $ac_func();
4272 int main() {
4274 /* The GNU C library defines this for functions which it implements
4275 to always fail with ENOSYS. Some functions are actually named
4276 something starting with __ and the normal name is an alias. */
4277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4278 choke me
4279 #else
4280 $ac_func();
4281 #endif
4283 ; return 0; }
4285 if { (eval echo configure:4286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4286 rm -rf conftest*
4287 eval "ac_cv_func_$ac_func=yes"
4288 else
4289 echo "configure: failed program was:" >&5
4290 cat conftest.$ac_ext >&5
4291 rm -rf conftest*
4292 eval "ac_cv_func_$ac_func=no"
4294 rm -f conftest*
4297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4298 echo "$ac_t""yes" 1>&6
4299 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4300 cat >> confdefs.h <<EOF
4301 #define $ac_tr_func 1
4304 else
4305 echo "$ac_t""no" 1>&6
4306 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
4307 echo "configure:4308: checking for openpty in -lutil" >&5
4308 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
4309 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4310 echo $ac_n "(cached) $ac_c" 1>&6
4311 else
4312 ac_save_LIBS="$LIBS"
4313 LIBS="-lutil $LIBS"
4314 cat > conftest.$ac_ext <<EOF
4315 #line 4316 "configure"
4316 #include "confdefs.h"
4317 /* Override any gcc2 internal prototype to avoid an error. */
4318 /* We use char because int might match the return type of a gcc2
4319 builtin and then its argument prototype would still apply. */
4320 char openpty();
4322 int main() {
4323 openpty()
4324 ; return 0; }
4326 if { (eval echo configure:4327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4327 rm -rf conftest*
4328 eval "ac_cv_lib_$ac_lib_var=yes"
4329 else
4330 echo "configure: failed program was:" >&5
4331 cat conftest.$ac_ext >&5
4332 rm -rf conftest*
4333 eval "ac_cv_lib_$ac_lib_var=no"
4335 rm -f conftest*
4336 LIBS="$ac_save_LIBS"
4339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4340 echo "$ac_t""yes" 1>&6
4341 cat >> confdefs.h <<\EOF
4342 #define HAVE_OPENPTY 1
4344 LIBS="$LIBS -lutil"
4345 else
4346 echo "$ac_t""no" 1>&6
4350 done
4352 for ac_func in forkpty
4354 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4355 echo "configure:4356: checking for $ac_func" >&5
4356 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4357 echo $ac_n "(cached) $ac_c" 1>&6
4358 else
4359 cat > conftest.$ac_ext <<EOF
4360 #line 4361 "configure"
4361 #include "confdefs.h"
4362 /* System header to define __stub macros and hopefully few prototypes,
4363 which can conflict with char $ac_func(); below. */
4364 #include <assert.h>
4365 /* Override any gcc2 internal prototype to avoid an error. */
4366 /* We use char because int might match the return type of a gcc2
4367 builtin and then its argument prototype would still apply. */
4368 char $ac_func();
4370 int main() {
4372 /* The GNU C library defines this for functions which it implements
4373 to always fail with ENOSYS. Some functions are actually named
4374 something starting with __ and the normal name is an alias. */
4375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4376 choke me
4377 #else
4378 $ac_func();
4379 #endif
4381 ; return 0; }
4383 if { (eval echo configure:4384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4384 rm -rf conftest*
4385 eval "ac_cv_func_$ac_func=yes"
4386 else
4387 echo "configure: failed program was:" >&5
4388 cat conftest.$ac_ext >&5
4389 rm -rf conftest*
4390 eval "ac_cv_func_$ac_func=no"
4392 rm -f conftest*
4395 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4396 echo "$ac_t""yes" 1>&6
4397 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4398 cat >> confdefs.h <<EOF
4399 #define $ac_tr_func 1
4402 else
4403 echo "$ac_t""no" 1>&6
4404 echo $ac_n "checking for forkpty in -lutil""... $ac_c" 1>&6
4405 echo "configure:4406: checking for forkpty in -lutil" >&5
4406 ac_lib_var=`echo util'_'forkpty | sed 'y%./+-%__p_%'`
4407 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4408 echo $ac_n "(cached) $ac_c" 1>&6
4409 else
4410 ac_save_LIBS="$LIBS"
4411 LIBS="-lutil $LIBS"
4412 cat > conftest.$ac_ext <<EOF
4413 #line 4414 "configure"
4414 #include "confdefs.h"
4415 /* Override any gcc2 internal prototype to avoid an error. */
4416 /* We use char because int might match the return type of a gcc2
4417 builtin and then its argument prototype would still apply. */
4418 char forkpty();
4420 int main() {
4421 forkpty()
4422 ; return 0; }
4424 if { (eval echo configure:4425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4425 rm -rf conftest*
4426 eval "ac_cv_lib_$ac_lib_var=yes"
4427 else
4428 echo "configure: failed program was:" >&5
4429 cat conftest.$ac_ext >&5
4430 rm -rf conftest*
4431 eval "ac_cv_lib_$ac_lib_var=no"
4433 rm -f conftest*
4434 LIBS="$ac_save_LIBS"
4437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4438 echo "$ac_t""yes" 1>&6
4439 cat >> confdefs.h <<\EOF
4440 #define HAVE_FORKPTY 1
4442 LIBS="$LIBS -lutil"
4443 else
4444 echo "$ac_t""no" 1>&6
4448 done
4451 # check for long file support functions
4452 for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs
4454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4455 echo "configure:4456: checking for $ac_func" >&5
4456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4457 echo $ac_n "(cached) $ac_c" 1>&6
4458 else
4459 cat > conftest.$ac_ext <<EOF
4460 #line 4461 "configure"
4461 #include "confdefs.h"
4462 /* System header to define __stub macros and hopefully few prototypes,
4463 which can conflict with char $ac_func(); below. */
4464 #include <assert.h>
4465 /* Override any gcc2 internal prototype to avoid an error. */
4466 /* We use char because int might match the return type of a gcc2
4467 builtin and then its argument prototype would still apply. */
4468 char $ac_func();
4470 int main() {
4472 /* The GNU C library defines this for functions which it implements
4473 to always fail with ENOSYS. Some functions are actually named
4474 something starting with __ and the normal name is an alias. */
4475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4476 choke me
4477 #else
4478 $ac_func();
4479 #endif
4481 ; return 0; }
4483 if { (eval echo configure:4484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4484 rm -rf conftest*
4485 eval "ac_cv_func_$ac_func=yes"
4486 else
4487 echo "configure: failed program was:" >&5
4488 cat conftest.$ac_ext >&5
4489 rm -rf conftest*
4490 eval "ac_cv_func_$ac_func=no"
4492 rm -f conftest*
4495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4496 echo "$ac_t""yes" 1>&6
4497 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4498 cat >> confdefs.h <<EOF
4499 #define $ac_tr_func 1
4502 else
4503 echo "$ac_t""no" 1>&6
4505 done
4508 for ac_func in dup2 getcwd strdup strerror memmove
4510 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4511 echo "configure:4512: checking for $ac_func" >&5
4512 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4513 echo $ac_n "(cached) $ac_c" 1>&6
4514 else
4515 cat > conftest.$ac_ext <<EOF
4516 #line 4517 "configure"
4517 #include "confdefs.h"
4518 /* System header to define __stub macros and hopefully few prototypes,
4519 which can conflict with char $ac_func(); below. */
4520 #include <assert.h>
4521 /* Override any gcc2 internal prototype to avoid an error. */
4522 /* We use char because int might match the return type of a gcc2
4523 builtin and then its argument prototype would still apply. */
4524 char $ac_func();
4526 int main() {
4528 /* The GNU C library defines this for functions which it implements
4529 to always fail with ENOSYS. Some functions are actually named
4530 something starting with __ and the normal name is an alias. */
4531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4532 choke me
4533 #else
4534 $ac_func();
4535 #endif
4537 ; return 0; }
4539 if { (eval echo configure:4540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4540 rm -rf conftest*
4541 eval "ac_cv_func_$ac_func=yes"
4542 else
4543 echo "configure: failed program was:" >&5
4544 cat conftest.$ac_ext >&5
4545 rm -rf conftest*
4546 eval "ac_cv_func_$ac_func=no"
4548 rm -f conftest*
4551 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4552 echo "$ac_t""yes" 1>&6
4553 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4554 cat >> confdefs.h <<EOF
4555 #define $ac_tr_func 1
4558 else
4559 echo "$ac_t""no" 1>&6
4560 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
4562 done
4565 for ac_func in getpgrp
4567 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4568 echo "configure:4569: checking for $ac_func" >&5
4569 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4570 echo $ac_n "(cached) $ac_c" 1>&6
4571 else
4572 cat > conftest.$ac_ext <<EOF
4573 #line 4574 "configure"
4574 #include "confdefs.h"
4575 /* System header to define __stub macros and hopefully few prototypes,
4576 which can conflict with char $ac_func(); below. */
4577 #include <assert.h>
4578 /* Override any gcc2 internal prototype to avoid an error. */
4579 /* We use char because int might match the return type of a gcc2
4580 builtin and then its argument prototype would still apply. */
4581 char $ac_func();
4583 int main() {
4585 /* The GNU C library defines this for functions which it implements
4586 to always fail with ENOSYS. Some functions are actually named
4587 something starting with __ and the normal name is an alias. */
4588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4589 choke me
4590 #else
4591 $ac_func();
4592 #endif
4594 ; return 0; }
4596 if { (eval echo configure:4597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4597 rm -rf conftest*
4598 eval "ac_cv_func_$ac_func=yes"
4599 else
4600 echo "configure: failed program was:" >&5
4601 cat conftest.$ac_ext >&5
4602 rm -rf conftest*
4603 eval "ac_cv_func_$ac_func=no"
4605 rm -f conftest*
4608 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4609 echo "$ac_t""yes" 1>&6
4610 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4611 cat >> confdefs.h <<EOF
4612 #define $ac_tr_func 1
4614 cat > conftest.$ac_ext <<EOF
4615 #line 4616 "configure"
4616 #include "confdefs.h"
4617 #include <unistd.h>
4618 int main() {
4619 getpgrp(0);
4620 ; return 0; }
4622 if { (eval echo configure:4623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4623 rm -rf conftest*
4624 cat >> confdefs.h <<\EOF
4625 #define GETPGRP_HAVE_ARG 1
4628 else
4629 echo "configure: failed program was:" >&5
4630 cat conftest.$ac_ext >&5
4632 rm -f conftest*
4633 else
4634 echo "$ac_t""no" 1>&6
4636 done
4638 for ac_func in setpgrp
4640 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4641 echo "configure:4642: checking for $ac_func" >&5
4642 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4643 echo $ac_n "(cached) $ac_c" 1>&6
4644 else
4645 cat > conftest.$ac_ext <<EOF
4646 #line 4647 "configure"
4647 #include "confdefs.h"
4648 /* System header to define __stub macros and hopefully few prototypes,
4649 which can conflict with char $ac_func(); below. */
4650 #include <assert.h>
4651 /* Override any gcc2 internal prototype to avoid an error. */
4652 /* We use char because int might match the return type of a gcc2
4653 builtin and then its argument prototype would still apply. */
4654 char $ac_func();
4656 int main() {
4658 /* The GNU C library defines this for functions which it implements
4659 to always fail with ENOSYS. Some functions are actually named
4660 something starting with __ and the normal name is an alias. */
4661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4662 choke me
4663 #else
4664 $ac_func();
4665 #endif
4667 ; return 0; }
4669 if { (eval echo configure:4670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4670 rm -rf conftest*
4671 eval "ac_cv_func_$ac_func=yes"
4672 else
4673 echo "configure: failed program was:" >&5
4674 cat conftest.$ac_ext >&5
4675 rm -rf conftest*
4676 eval "ac_cv_func_$ac_func=no"
4678 rm -f conftest*
4681 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4682 echo "$ac_t""yes" 1>&6
4683 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4684 cat >> confdefs.h <<EOF
4685 #define $ac_tr_func 1
4687 cat > conftest.$ac_ext <<EOF
4688 #line 4689 "configure"
4689 #include "confdefs.h"
4690 #include <unistd.h>
4691 int main() {
4692 setpgrp(0,0);
4693 ; return 0; }
4695 if { (eval echo configure:4696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4696 rm -rf conftest*
4697 cat >> confdefs.h <<\EOF
4698 #define SETPGRP_HAVE_ARG 1
4701 else
4702 echo "configure: failed program was:" >&5
4703 cat conftest.$ac_ext >&5
4705 rm -f conftest*
4706 else
4707 echo "$ac_t""no" 1>&6
4709 done
4711 for ac_func in gettimeofday
4713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4714 echo "configure:4715: checking for $ac_func" >&5
4715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4716 echo $ac_n "(cached) $ac_c" 1>&6
4717 else
4718 cat > conftest.$ac_ext <<EOF
4719 #line 4720 "configure"
4720 #include "confdefs.h"
4721 /* System header to define __stub macros and hopefully few prototypes,
4722 which can conflict with char $ac_func(); below. */
4723 #include <assert.h>
4724 /* Override any gcc2 internal prototype to avoid an error. */
4725 /* We use char because int might match the return type of a gcc2
4726 builtin and then its argument prototype would still apply. */
4727 char $ac_func();
4729 int main() {
4731 /* The GNU C library defines this for functions which it implements
4732 to always fail with ENOSYS. Some functions are actually named
4733 something starting with __ and the normal name is an alias. */
4734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4735 choke me
4736 #else
4737 $ac_func();
4738 #endif
4740 ; return 0; }
4742 if { (eval echo configure:4743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4743 rm -rf conftest*
4744 eval "ac_cv_func_$ac_func=yes"
4745 else
4746 echo "configure: failed program was:" >&5
4747 cat conftest.$ac_ext >&5
4748 rm -rf conftest*
4749 eval "ac_cv_func_$ac_func=no"
4751 rm -f conftest*
4754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4755 echo "$ac_t""yes" 1>&6
4756 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4757 cat >> confdefs.h <<EOF
4758 #define $ac_tr_func 1
4760 cat > conftest.$ac_ext <<EOF
4761 #line 4762 "configure"
4762 #include "confdefs.h"
4763 #include <sys/time.h>
4764 int main() {
4765 gettimeofday((struct timeval*)0,(struct timezone*)0);
4766 ; return 0; }
4768 if { (eval echo configure:4769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4770 else
4771 echo "configure: failed program was:" >&5
4772 cat conftest.$ac_ext >&5
4773 rm -rf conftest*
4774 cat >> confdefs.h <<\EOF
4775 #define GETTIMEOFDAY_NO_TZ 1
4779 rm -f conftest*
4780 else
4781 echo "$ac_t""no" 1>&6
4783 done
4786 # checks for structures
4787 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4788 echo "configure:4789: checking whether time.h and sys/time.h may both be included" >&5
4789 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4790 echo $ac_n "(cached) $ac_c" 1>&6
4791 else
4792 cat > conftest.$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4795 #include <sys/types.h>
4796 #include <sys/time.h>
4797 #include <time.h>
4798 int main() {
4799 struct tm *tp;
4800 ; return 0; }
4802 if { (eval echo configure:4803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4803 rm -rf conftest*
4804 ac_cv_header_time=yes
4805 else
4806 echo "configure: failed program was:" >&5
4807 cat conftest.$ac_ext >&5
4808 rm -rf conftest*
4809 ac_cv_header_time=no
4811 rm -f conftest*
4814 echo "$ac_t""$ac_cv_header_time" 1>&6
4815 if test $ac_cv_header_time = yes; then
4816 cat >> confdefs.h <<\EOF
4817 #define TIME_WITH_SYS_TIME 1
4822 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4823 echo "configure:4824: checking whether struct tm is in sys/time.h or time.h" >&5
4824 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4825 echo $ac_n "(cached) $ac_c" 1>&6
4826 else
4827 cat > conftest.$ac_ext <<EOF
4828 #line 4829 "configure"
4829 #include "confdefs.h"
4830 #include <sys/types.h>
4831 #include <time.h>
4832 int main() {
4833 struct tm *tp; tp->tm_sec;
4834 ; return 0; }
4836 if { (eval echo configure:4837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4837 rm -rf conftest*
4838 ac_cv_struct_tm=time.h
4839 else
4840 echo "configure: failed program was:" >&5
4841 cat conftest.$ac_ext >&5
4842 rm -rf conftest*
4843 ac_cv_struct_tm=sys/time.h
4845 rm -f conftest*
4848 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4849 if test $ac_cv_struct_tm = sys/time.h; then
4850 cat >> confdefs.h <<\EOF
4851 #define TM_IN_SYS_TIME 1
4856 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4857 echo "configure:4858: checking for tm_zone in struct tm" >&5
4858 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4859 echo $ac_n "(cached) $ac_c" 1>&6
4860 else
4861 cat > conftest.$ac_ext <<EOF
4862 #line 4863 "configure"
4863 #include "confdefs.h"
4864 #include <sys/types.h>
4865 #include <$ac_cv_struct_tm>
4866 int main() {
4867 struct tm tm; tm.tm_zone;
4868 ; return 0; }
4870 if { (eval echo configure:4871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4871 rm -rf conftest*
4872 ac_cv_struct_tm_zone=yes
4873 else
4874 echo "configure: failed program was:" >&5
4875 cat conftest.$ac_ext >&5
4876 rm -rf conftest*
4877 ac_cv_struct_tm_zone=no
4879 rm -f conftest*
4882 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4883 if test "$ac_cv_struct_tm_zone" = yes; then
4884 cat >> confdefs.h <<\EOF
4885 #define HAVE_TM_ZONE 1
4888 else
4889 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4890 echo "configure:4891: checking for tzname" >&5
4891 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
4892 echo $ac_n "(cached) $ac_c" 1>&6
4893 else
4894 cat > conftest.$ac_ext <<EOF
4895 #line 4896 "configure"
4896 #include "confdefs.h"
4897 #include <time.h>
4898 #ifndef tzname /* For SGI. */
4899 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4900 #endif
4901 int main() {
4902 atoi(*tzname);
4903 ; return 0; }
4905 if { (eval echo configure:4906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4906 rm -rf conftest*
4907 ac_cv_var_tzname=yes
4908 else
4909 echo "configure: failed program was:" >&5
4910 cat conftest.$ac_ext >&5
4911 rm -rf conftest*
4912 ac_cv_var_tzname=no
4914 rm -f conftest*
4917 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4918 if test $ac_cv_var_tzname = yes; then
4919 cat >> confdefs.h <<\EOF
4920 #define HAVE_TZNAME 1
4927 echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6
4928 echo "configure:4929: checking for time.h that defines altzone" >&5
4929 if eval "test \"`echo '$''{'ac_cv_header_time_altzone'+set}'`\" = set"; then
4930 echo $ac_n "(cached) $ac_c" 1>&6
4931 else
4932 cat > conftest.$ac_ext <<EOF
4933 #line 4934 "configure"
4934 #include "confdefs.h"
4935 #include <time.h>
4936 int main() {
4937 return altzone;
4938 ; return 0; }
4940 if { (eval echo configure:4941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4941 rm -rf conftest*
4942 ac_cv_header_time_altzone=yes
4943 else
4944 echo "configure: failed program was:" >&5
4945 cat conftest.$ac_ext >&5
4946 rm -rf conftest*
4947 ac_cv_header_time_altzone=no
4949 rm -f conftest*
4952 echo "$ac_t""$ac_cv_header_time_altzone" 1>&6
4953 if test $ac_cv_header_time_altzone = yes; then
4954 cat >> confdefs.h <<\EOF
4955 #define HAVE_ALTZONE 1
4960 was_it_defined=no
4961 echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6
4962 echo "configure:4963: checking whether sys/select.h and sys/time.h may both be included" >&5
4963 cat > conftest.$ac_ext <<EOF
4964 #line 4965 "configure"
4965 #include "confdefs.h"
4967 #include <sys/types.h>
4968 #include <sys/select.h>
4969 #include <sys/time.h>
4971 int main() {
4973 ; return 0; }
4975 if { (eval echo configure:4976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4976 rm -rf conftest*
4977 cat >> confdefs.h <<\EOF
4978 #define SYS_SELECT_WITH_SYS_TIME 1
4980 was_it_defined=yes
4981 else
4982 echo "configure: failed program was:" >&5
4983 cat conftest.$ac_ext >&5
4985 rm -f conftest*
4986 echo "$ac_t""$was_it_defined" 1>&6
4988 # checks for compiler characteristics
4990 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
4991 echo "configure:4992: checking whether char is unsigned" >&5
4992 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
4993 echo $ac_n "(cached) $ac_c" 1>&6
4994 else
4995 if test "$GCC" = yes; then
4996 # GCC predefines this symbol on systems where it applies.
4997 cat > conftest.$ac_ext <<EOF
4998 #line 4999 "configure"
4999 #include "confdefs.h"
5000 #ifdef __CHAR_UNSIGNED__
5002 #endif
5005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5006 egrep "yes" >/dev/null 2>&1; then
5007 rm -rf conftest*
5008 ac_cv_c_char_unsigned=yes
5009 else
5010 rm -rf conftest*
5011 ac_cv_c_char_unsigned=no
5013 rm -f conftest*
5015 else
5016 if test "$cross_compiling" = yes; then
5017 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5018 else
5019 cat > conftest.$ac_ext <<EOF
5020 #line 5021 "configure"
5021 #include "confdefs.h"
5022 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
5023 #if !defined(__STDC__) || __STDC__ != 1
5024 #define volatile
5025 #endif
5026 main() {
5027 volatile char c = 255; exit(c < 0);
5030 if { (eval echo configure:5031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5031 then
5032 ac_cv_c_char_unsigned=yes
5033 else
5034 echo "configure: failed program was:" >&5
5035 cat conftest.$ac_ext >&5
5036 rm -fr conftest*
5037 ac_cv_c_char_unsigned=no
5039 rm -fr conftest*
5045 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
5046 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
5047 cat >> confdefs.h <<\EOF
5048 #define __CHAR_UNSIGNED__ 1
5053 echo $ac_n "checking for working const""... $ac_c" 1>&6
5054 echo "configure:5055: checking for working const" >&5
5055 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5056 echo $ac_n "(cached) $ac_c" 1>&6
5057 else
5058 cat > conftest.$ac_ext <<EOF
5059 #line 5060 "configure"
5060 #include "confdefs.h"
5062 int main() {
5064 /* Ultrix mips cc rejects this. */
5065 typedef int charset[2]; const charset x = {0,0};
5066 /* SunOS 4.1.1 cc rejects this. */
5067 char const *const *ccp;
5068 char **p;
5069 /* NEC SVR4.0.2 mips cc rejects this. */
5070 struct point {int x, y;};
5071 static struct point const zero = {0,0};
5072 /* AIX XL C 1.02.0.0 rejects this.
5073 It does not let you subtract one const X* pointer from another in an arm
5074 of an if-expression whose if-part is not a constant expression */
5075 const char *g = "string";
5076 ccp = &g + (g ? g-g : 0);
5077 /* HPUX 7.0 cc rejects these. */
5078 ++ccp;
5079 p = (char**) ccp;
5080 ccp = (char const *const *) p;
5081 { /* SCO 3.2v4 cc rejects this. */
5082 char *t;
5083 char const *s = 0 ? (char *) 0 : (char const *) 0;
5085 *t++ = 0;
5087 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5088 int x[] = {25, 17};
5089 const int *foo = &x[0];
5090 ++foo;
5092 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5093 typedef const int *iptr;
5094 iptr p = 0;
5095 ++p;
5097 { /* AIX XL C 1.02.0.0 rejects this saying
5098 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5099 struct s { int j; const int *ap[3]; };
5100 struct s *b; b->j = 5;
5102 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5103 const int foo = 10;
5106 ; return 0; }
5108 if { (eval echo configure:5109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5109 rm -rf conftest*
5110 ac_cv_c_const=yes
5111 else
5112 echo "configure: failed program was:" >&5
5113 cat conftest.$ac_ext >&5
5114 rm -rf conftest*
5115 ac_cv_c_const=no
5117 rm -f conftest*
5120 echo "$ac_t""$ac_cv_c_const" 1>&6
5121 if test $ac_cv_c_const = no; then
5122 cat >> confdefs.h <<\EOF
5123 #define const
5129 works=no
5130 echo $ac_n "checking for working volatile""... $ac_c" 1>&6
5131 echo "configure:5132: checking for working volatile" >&5
5132 cat > conftest.$ac_ext <<EOF
5133 #line 5134 "configure"
5134 #include "confdefs.h"
5136 int main() {
5137 volatile int x; x = 0;
5138 ; return 0; }
5140 if { (eval echo configure:5141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5141 rm -rf conftest*
5142 works=yes
5143 else
5144 echo "configure: failed program was:" >&5
5145 cat conftest.$ac_ext >&5
5146 rm -rf conftest*
5147 cat >> confdefs.h <<\EOF
5148 #define volatile
5152 rm -f conftest*
5153 echo "$ac_t""$works" 1>&6
5155 works=no
5156 echo $ac_n "checking for working signed char""... $ac_c" 1>&6
5157 echo "configure:5158: checking for working signed char" >&5
5158 cat > conftest.$ac_ext <<EOF
5159 #line 5160 "configure"
5160 #include "confdefs.h"
5162 int main() {
5163 signed char c;
5164 ; return 0; }
5166 if { (eval echo configure:5167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5167 rm -rf conftest*
5168 works=yes
5169 else
5170 echo "configure: failed program was:" >&5
5171 cat conftest.$ac_ext >&5
5172 rm -rf conftest*
5173 cat >> confdefs.h <<\EOF
5174 #define signed
5178 rm -f conftest*
5179 echo "$ac_t""$works" 1>&6
5181 have_prototypes=no
5182 echo $ac_n "checking for prototypes""... $ac_c" 1>&6
5183 echo "configure:5184: checking for prototypes" >&5
5184 cat > conftest.$ac_ext <<EOF
5185 #line 5186 "configure"
5186 #include "confdefs.h"
5187 int foo(int x) { return 0; }
5188 int main() {
5189 return foo(10);
5190 ; return 0; }
5192 if { (eval echo configure:5193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5193 rm -rf conftest*
5194 cat >> confdefs.h <<\EOF
5195 #define HAVE_PROTOTYPES 1
5197 have_prototypes=yes
5198 else
5199 echo "configure: failed program was:" >&5
5200 cat conftest.$ac_ext >&5
5202 rm -f conftest*
5203 echo "$ac_t""$have_prototypes" 1>&6
5205 works=no
5206 echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6
5207 echo "configure:5208: checking for variable length prototypes and stdarg.h" >&5
5208 cat > conftest.$ac_ext <<EOF
5209 #line 5210 "configure"
5210 #include "confdefs.h"
5212 #include <stdarg.h>
5213 int foo(int x, ...) {
5214 va_list va;
5215 va_start(va, x);
5216 va_arg(va, int);
5217 va_arg(va, char *);
5218 va_arg(va, double);
5219 return 0;
5222 int main() {
5223 return foo(10, "", 3.14);
5224 ; return 0; }
5226 if { (eval echo configure:5227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5227 rm -rf conftest*
5228 cat >> confdefs.h <<\EOF
5229 #define HAVE_STDARG_PROTOTYPES 1
5231 works=yes
5232 else
5233 echo "configure: failed program was:" >&5
5234 cat conftest.$ac_ext >&5
5236 rm -f conftest*
5237 echo "$ac_t""$works" 1>&6
5239 if test "$have_prototypes" = yes; then
5240 bad_prototypes=no
5241 echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6
5242 echo "configure:5243: checking for bad exec* prototypes" >&5
5243 cat > conftest.$ac_ext <<EOF
5244 #line 5245 "configure"
5245 #include "confdefs.h"
5246 #include <unistd.h>
5247 int main() {
5248 char **t;execve("@",t,t);
5249 ; return 0; }
5251 if { (eval echo configure:5252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5253 else
5254 echo "configure: failed program was:" >&5
5255 cat conftest.$ac_ext >&5
5256 rm -rf conftest*
5257 cat >> confdefs.h <<\EOF
5258 #define BAD_EXEC_PROTOTYPES 1
5260 bad_prototypes=yes
5262 rm -f conftest*
5263 echo "$ac_t""$bad_prototypes" 1>&6
5266 bad_forward=no
5267 echo $ac_n "checking for bad static forward""... $ac_c" 1>&6
5268 echo "configure:5269: checking for bad static forward" >&5
5269 if test "$cross_compiling" = yes; then
5270 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5271 else
5272 cat > conftest.$ac_ext <<EOF
5273 #line 5274 "configure"
5274 #include "confdefs.h"
5276 struct s { int a; int b; };
5277 static struct s foo;
5278 int foobar() {
5279 static int random;
5280 random = (int) &foo;
5281 return random;
5283 static struct s foo = { 1, 2 };
5284 main() {
5285 exit(!((int)&foo == foobar()));
5289 if { (eval echo configure:5290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5290 then
5292 else
5293 echo "configure: failed program was:" >&5
5294 cat conftest.$ac_ext >&5
5295 rm -fr conftest*
5296 cat >> confdefs.h <<\EOF
5297 #define BAD_STATIC_FORWARD 1
5299 bad_forward=yes
5301 rm -fr conftest*
5304 echo "$ac_t""$bad_forward" 1>&6
5306 va_list_is_array=no
5307 echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6
5308 echo "configure:5309: checking whether va_list is an array" >&5
5309 cat > conftest.$ac_ext <<EOF
5310 #line 5311 "configure"
5311 #include "confdefs.h"
5313 #ifdef HAVE_STDARG_PROTOTYPES
5314 #include <stdarg.h>
5315 #else
5316 #include <varargs.h>
5317 #endif
5319 int main() {
5320 va_list list1, list2; list1 = list2;
5321 ; return 0; }
5323 if { (eval echo configure:5324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5325 else
5326 echo "configure: failed program was:" >&5
5327 cat conftest.$ac_ext >&5
5328 rm -rf conftest*
5329 cat >> confdefs.h <<\EOF
5330 #define VA_LIST_IS_ARRAY 1
5332 va_list_is_array=yes
5334 rm -f conftest*
5335 echo "$ac_t""$va_list_is_array" 1>&6
5337 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
5338 echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
5339 echo "configure:5340: checking for gethostbyname_r" >&5
5340 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
5341 echo $ac_n "(cached) $ac_c" 1>&6
5342 else
5343 cat > conftest.$ac_ext <<EOF
5344 #line 5345 "configure"
5345 #include "confdefs.h"
5346 /* System header to define __stub macros and hopefully few prototypes,
5347 which can conflict with char gethostbyname_r(); below. */
5348 #include <assert.h>
5349 /* Override any gcc2 internal prototype to avoid an error. */
5350 /* We use char because int might match the return type of a gcc2
5351 builtin and then its argument prototype would still apply. */
5352 char gethostbyname_r();
5354 int main() {
5356 /* The GNU C library defines this for functions which it implements
5357 to always fail with ENOSYS. Some functions are actually named
5358 something starting with __ and the normal name is an alias. */
5359 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
5360 choke me
5361 #else
5362 gethostbyname_r();
5363 #endif
5365 ; return 0; }
5367 if { (eval echo configure:5368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5368 rm -rf conftest*
5369 eval "ac_cv_func_gethostbyname_r=yes"
5370 else
5371 echo "configure: failed program was:" >&5
5372 cat conftest.$ac_ext >&5
5373 rm -rf conftest*
5374 eval "ac_cv_func_gethostbyname_r=no"
5376 rm -f conftest*
5379 if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
5380 echo "$ac_t""yes" 1>&6
5382 cat >> confdefs.h <<\EOF
5383 #define HAVE_GETHOSTBYNAME_R 1
5386 echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6
5387 echo "configure:5388: checking gethostbyname_r with 6 args" >&5
5388 OLD_CFLAGS=$CFLAGS
5389 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
5390 cat > conftest.$ac_ext <<EOF
5391 #line 5392 "configure"
5392 #include "confdefs.h"
5394 # include <netdb.h>
5396 int main() {
5398 char *name;
5399 struct hostent *he, *res;
5400 char buffer[2048];
5401 int buflen = 2048;
5402 int h_errnop;
5404 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
5406 ; return 0; }
5408 if { (eval echo configure:5409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5409 rm -rf conftest*
5411 cat >> confdefs.h <<\EOF
5412 #define HAVE_GETHOSTBYNAME_R 1
5415 cat >> confdefs.h <<\EOF
5416 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
5419 echo "$ac_t""yes" 1>&6
5421 else
5422 echo "configure: failed program was:" >&5
5423 cat conftest.$ac_ext >&5
5424 rm -rf conftest*
5426 echo "$ac_t""no" 1>&6
5427 echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6
5428 echo "configure:5429: checking gethostbyname_r with 5 args" >&5
5429 cat > conftest.$ac_ext <<EOF
5430 #line 5431 "configure"
5431 #include "confdefs.h"
5433 # include <netdb.h>
5435 int main() {
5437 char *name;
5438 struct hostent *he;
5439 char buffer[2048];
5440 int buflen = 2048;
5441 int h_errnop;
5443 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
5445 ; return 0; }
5447 if { (eval echo configure:5448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5448 rm -rf conftest*
5450 cat >> confdefs.h <<\EOF
5451 #define HAVE_GETHOSTBYNAME_R 1
5454 cat >> confdefs.h <<\EOF
5455 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
5458 echo "$ac_t""yes" 1>&6
5460 else
5461 echo "configure: failed program was:" >&5
5462 cat conftest.$ac_ext >&5
5463 rm -rf conftest*
5465 echo "$ac_t""no" 1>&6
5466 echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6
5467 echo "configure:5468: checking gethostbyname_r with 3 args" >&5
5468 cat > conftest.$ac_ext <<EOF
5469 #line 5470 "configure"
5470 #include "confdefs.h"
5472 # include <netdb.h>
5474 int main() {
5476 char *name;
5477 struct hostent *he;
5478 struct hostent_data data;
5480 (void) gethostbyname_r(name, he, &data);
5482 ; return 0; }
5484 if { (eval echo configure:5485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5485 rm -rf conftest*
5487 cat >> confdefs.h <<\EOF
5488 #define HAVE_GETHOSTBYNAME_R 1
5491 cat >> confdefs.h <<\EOF
5492 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
5495 echo "$ac_t""yes" 1>&6
5497 else
5498 echo "configure: failed program was:" >&5
5499 cat conftest.$ac_ext >&5
5500 rm -rf conftest*
5502 echo "$ac_t""no" 1>&6
5505 rm -f conftest*
5508 rm -f conftest*
5511 rm -f conftest*
5512 CFLAGS=$OLD_CFLAGS
5514 else
5515 echo "$ac_t""no" 1>&6
5517 for ac_func in gethostbyname
5519 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5520 echo "configure:5521: checking for $ac_func" >&5
5521 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5522 echo $ac_n "(cached) $ac_c" 1>&6
5523 else
5524 cat > conftest.$ac_ext <<EOF
5525 #line 5526 "configure"
5526 #include "confdefs.h"
5527 /* System header to define __stub macros and hopefully few prototypes,
5528 which can conflict with char $ac_func(); below. */
5529 #include <assert.h>
5530 /* Override any gcc2 internal prototype to avoid an error. */
5531 /* We use char because int might match the return type of a gcc2
5532 builtin and then its argument prototype would still apply. */
5533 char $ac_func();
5535 int main() {
5537 /* The GNU C library defines this for functions which it implements
5538 to always fail with ENOSYS. Some functions are actually named
5539 something starting with __ and the normal name is an alias. */
5540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5541 choke me
5542 #else
5543 $ac_func();
5544 #endif
5546 ; return 0; }
5548 if { (eval echo configure:5549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5549 rm -rf conftest*
5550 eval "ac_cv_func_$ac_func=yes"
5551 else
5552 echo "configure: failed program was:" >&5
5553 cat conftest.$ac_ext >&5
5554 rm -rf conftest*
5555 eval "ac_cv_func_$ac_func=no"
5557 rm -f conftest*
5560 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5561 echo "$ac_t""yes" 1>&6
5562 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5563 cat >> confdefs.h <<EOF
5564 #define $ac_tr_func 1
5567 else
5568 echo "$ac_t""no" 1>&6
5570 done
5581 # checks for system services
5582 # (none yet)
5584 # Linux requires this for correct f.p. operations
5585 echo $ac_n "checking for __fpu_control""... $ac_c" 1>&6
5586 echo "configure:5587: checking for __fpu_control" >&5
5587 if eval "test \"`echo '$''{'ac_cv_func___fpu_control'+set}'`\" = set"; then
5588 echo $ac_n "(cached) $ac_c" 1>&6
5589 else
5590 cat > conftest.$ac_ext <<EOF
5591 #line 5592 "configure"
5592 #include "confdefs.h"
5593 /* System header to define __stub macros and hopefully few prototypes,
5594 which can conflict with char __fpu_control(); below. */
5595 #include <assert.h>
5596 /* Override any gcc2 internal prototype to avoid an error. */
5597 /* We use char because int might match the return type of a gcc2
5598 builtin and then its argument prototype would still apply. */
5599 char __fpu_control();
5601 int main() {
5603 /* The GNU C library defines this for functions which it implements
5604 to always fail with ENOSYS. Some functions are actually named
5605 something starting with __ and the normal name is an alias. */
5606 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
5607 choke me
5608 #else
5609 __fpu_control();
5610 #endif
5612 ; return 0; }
5614 if { (eval echo configure:5615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5615 rm -rf conftest*
5616 eval "ac_cv_func___fpu_control=yes"
5617 else
5618 echo "configure: failed program was:" >&5
5619 cat conftest.$ac_ext >&5
5620 rm -rf conftest*
5621 eval "ac_cv_func___fpu_control=no"
5623 rm -f conftest*
5626 if eval "test \"`echo '$ac_cv_func_'__fpu_control`\" = yes"; then
5627 echo "$ac_t""yes" 1>&6
5629 else
5630 echo "$ac_t""no" 1>&6
5631 echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6
5632 echo "configure:5633: checking for __fpu_control in -lieee" >&5
5633 ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'`
5634 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5635 echo $ac_n "(cached) $ac_c" 1>&6
5636 else
5637 ac_save_LIBS="$LIBS"
5638 LIBS="-lieee $LIBS"
5639 cat > conftest.$ac_ext <<EOF
5640 #line 5641 "configure"
5641 #include "confdefs.h"
5642 /* Override any gcc2 internal prototype to avoid an error. */
5643 /* We use char because int might match the return type of a gcc2
5644 builtin and then its argument prototype would still apply. */
5645 char __fpu_control();
5647 int main() {
5648 __fpu_control()
5649 ; return 0; }
5651 if { (eval echo configure:5652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5652 rm -rf conftest*
5653 eval "ac_cv_lib_$ac_lib_var=yes"
5654 else
5655 echo "configure: failed program was:" >&5
5656 cat conftest.$ac_ext >&5
5657 rm -rf conftest*
5658 eval "ac_cv_lib_$ac_lib_var=no"
5660 rm -f conftest*
5661 LIBS="$ac_save_LIBS"
5664 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5665 echo "$ac_t""yes" 1>&6
5666 ac_tr_lib=HAVE_LIB`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5667 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5668 cat >> confdefs.h <<EOF
5669 #define $ac_tr_lib 1
5672 LIBS="-lieee $LIBS"
5674 else
5675 echo "$ac_t""no" 1>&6
5682 # Check for --with-fpectl
5683 echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6
5684 echo "configure:5685: checking for --with-fpectl" >&5
5685 # Check whether --with-fpectl or --without-fpectl was given.
5686 if test "${with_fpectl+set}" = set; then
5687 withval="$with_fpectl"
5689 if test "$withval" != no
5690 then cat >> confdefs.h <<\EOF
5691 #define WANT_SIGFPE_HANDLER 1
5693 echo "$ac_t""yes" 1>&6
5694 else echo "$ac_t""no" 1>&6
5696 else
5697 echo "$ac_t""no" 1>&6
5701 # check for --with-libm=...
5703 case $ac_sys_system in
5704 Darwin) ;;
5705 next) ;;
5706 BeOS) ;;
5707 *) LIBM=-lm
5708 esac
5709 echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6
5710 echo "configure:5711: checking for --with-libm=STRING" >&5
5711 # Check whether --with-libm or --without-libm was given.
5712 if test "${with_libm+set}" = set; then
5713 withval="$with_libm"
5715 if test "$withval" = no
5716 then LIBM=
5717 echo "$ac_t""force LIBM empty" 1>&6
5718 elif test "$withval" != yes
5719 then LIBM=$withval
5720 echo "$ac_t""set LIBM=\"$withval\"" 1>&6
5721 else { echo "configure: error: proper usage is --with-libm=STRING" 1>&2; exit 1; }
5723 else
5724 echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6
5728 # check for --with-libc=...
5730 echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6
5731 echo "configure:5732: checking for --with-libc=STRING" >&5
5732 # Check whether --with-libc or --without-libc was given.
5733 if test "${with_libc+set}" = set; then
5734 withval="$with_libc"
5736 if test "$withval" = no
5737 then LIBC=
5738 echo "$ac_t""force LIBC empty" 1>&6
5739 elif test "$withval" != yes
5740 then LIBC=$withval
5741 echo "$ac_t""set LIBC=\"$withval\"" 1>&6
5742 else { echo "configure: error: proper usage is --with-libc=STRING" 1>&2; exit 1; }
5744 else
5745 echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6
5749 # check for hypot() in math library
5750 LIBS_SAVE=$LIBS
5751 LIBS="$LIBS $LIBM"
5752 for ac_func in hypot
5754 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5755 echo "configure:5756: checking for $ac_func" >&5
5756 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5757 echo $ac_n "(cached) $ac_c" 1>&6
5758 else
5759 cat > conftest.$ac_ext <<EOF
5760 #line 5761 "configure"
5761 #include "confdefs.h"
5762 /* System header to define __stub macros and hopefully few prototypes,
5763 which can conflict with char $ac_func(); below. */
5764 #include <assert.h>
5765 /* Override any gcc2 internal prototype to avoid an error. */
5766 /* We use char because int might match the return type of a gcc2
5767 builtin and then its argument prototype would still apply. */
5768 char $ac_func();
5770 int main() {
5772 /* The GNU C library defines this for functions which it implements
5773 to always fail with ENOSYS. Some functions are actually named
5774 something starting with __ and the normal name is an alias. */
5775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5776 choke me
5777 #else
5778 $ac_func();
5779 #endif
5781 ; return 0; }
5783 if { (eval echo configure:5784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5784 rm -rf conftest*
5785 eval "ac_cv_func_$ac_func=yes"
5786 else
5787 echo "configure: failed program was:" >&5
5788 cat conftest.$ac_ext >&5
5789 rm -rf conftest*
5790 eval "ac_cv_func_$ac_func=no"
5792 rm -f conftest*
5795 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5796 echo "$ac_t""yes" 1>&6
5797 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5798 cat >> confdefs.h <<EOF
5799 #define $ac_tr_func 1
5802 else
5803 echo "$ac_t""no" 1>&6
5804 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
5806 done
5809 LIBS=$LIBS_SAVE
5811 # check whether malloc(0) returns NULL or not
5812 echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6
5813 echo "configure:5814: checking what malloc(0) returns" >&5
5814 if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then
5815 echo $ac_n "(cached) $ac_c" 1>&6
5816 else
5817 if test "$cross_compiling" = yes; then
5818 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5819 else
5820 cat > conftest.$ac_ext <<EOF
5821 #line 5822 "configure"
5822 #include "confdefs.h"
5823 #include <stdio.h>
5824 #ifdef HAVE_STDLIB
5825 #include <stdlib.h>
5826 #else
5827 char *malloc(), *realloc();
5828 int *free();
5829 #endif
5830 main() {
5831 char *p;
5832 p = malloc(0);
5833 if (p == NULL) exit(1);
5834 p = realloc(p, 0);
5835 if (p == NULL) exit(1);
5836 free(p);
5837 exit(0);
5840 if { (eval echo configure:5841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5841 then
5842 ac_cv_malloc_zero=nonnull
5843 else
5844 echo "configure: failed program was:" >&5
5845 cat conftest.$ac_ext >&5
5846 rm -fr conftest*
5847 ac_cv_malloc_zero=null
5849 rm -fr conftest*
5854 echo "$ac_t""$ac_cv_malloc_zero" 1>&6
5855 if test "$ac_cv_malloc_zero" = null
5856 then
5857 cat >> confdefs.h <<\EOF
5858 #define MALLOC_ZERO_RETURNS_NULL 1
5863 # check for wchar.h
5864 ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'`
5865 echo $ac_n "checking for wchar.h""... $ac_c" 1>&6
5866 echo "configure:5867: checking for wchar.h" >&5
5867 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5868 echo $ac_n "(cached) $ac_c" 1>&6
5869 else
5870 cat > conftest.$ac_ext <<EOF
5871 #line 5872 "configure"
5872 #include "confdefs.h"
5873 #include <wchar.h>
5875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5876 { (eval echo configure:5877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5878 if test -z "$ac_err"; then
5879 rm -rf conftest*
5880 eval "ac_cv_header_$ac_safe=yes"
5881 else
5882 echo "$ac_err" >&5
5883 echo "configure: failed program was:" >&5
5884 cat conftest.$ac_ext >&5
5885 rm -rf conftest*
5886 eval "ac_cv_header_$ac_safe=no"
5888 rm -f conftest*
5890 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5891 echo "$ac_t""yes" 1>&6
5892 cat >> confdefs.h <<\EOF
5893 #define HAVE_WCHAR_H 1
5895 wchar_h="yes"
5896 else
5897 echo "$ac_t""no" 1>&6
5898 wchar_h="no"
5903 # check for usable wchar_t
5904 usable_wchar_t="unkown"
5905 echo $ac_n "checking for usable wchar_t""... $ac_c" 1>&6
5906 echo "configure:5907: checking for usable wchar_t" >&5
5907 if test "$cross_compiling" = yes; then
5908 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5909 else
5910 cat > conftest.$ac_ext <<EOF
5911 #line 5912 "configure"
5912 #include "confdefs.h"
5914 #include "wchar.h"
5915 #include "wctype.h"
5916 main() {
5917 wchar_t s;
5918 if (sizeof(s) == 2)
5919 exit(0);
5920 else
5921 exit(1);
5925 if { (eval echo configure:5926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5926 then
5927 cat >> confdefs.h <<\EOF
5928 #define HAVE_USABLE_WCHAR_T 1
5930 usable_wchar_t="yes"
5931 else
5932 echo "configure: failed program was:" >&5
5933 cat conftest.$ac_ext >&5
5934 rm -fr conftest*
5935 usable_wchar_t="no"
5937 rm -fr conftest*
5940 echo "$ac_t""$usable_wchar_t" 1>&6
5942 # check for endianness
5943 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
5944 echo "configure:5945: checking whether byte ordering is bigendian" >&5
5945 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
5946 echo $ac_n "(cached) $ac_c" 1>&6
5947 else
5948 ac_cv_c_bigendian=unknown
5949 # See if sys/param.h defines the BYTE_ORDER macro.
5950 cat > conftest.$ac_ext <<EOF
5951 #line 5952 "configure"
5952 #include "confdefs.h"
5953 #include <sys/types.h>
5954 #include <sys/param.h>
5955 int main() {
5957 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5958 bogus endian macros
5959 #endif
5960 ; return 0; }
5962 if { (eval echo configure:5963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5963 rm -rf conftest*
5964 # It does; now see whether it defined to BIG_ENDIAN or not.
5965 cat > conftest.$ac_ext <<EOF
5966 #line 5967 "configure"
5967 #include "confdefs.h"
5968 #include <sys/types.h>
5969 #include <sys/param.h>
5970 int main() {
5972 #if BYTE_ORDER != BIG_ENDIAN
5973 not big endian
5974 #endif
5975 ; return 0; }
5977 if { (eval echo configure:5978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5978 rm -rf conftest*
5979 ac_cv_c_bigendian=yes
5980 else
5981 echo "configure: failed program was:" >&5
5982 cat conftest.$ac_ext >&5
5983 rm -rf conftest*
5984 ac_cv_c_bigendian=no
5986 rm -f conftest*
5987 else
5988 echo "configure: failed program was:" >&5
5989 cat conftest.$ac_ext >&5
5991 rm -f conftest*
5992 if test $ac_cv_c_bigendian = unknown; then
5993 if test "$cross_compiling" = yes; then
5994 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5995 else
5996 cat > conftest.$ac_ext <<EOF
5997 #line 5998 "configure"
5998 #include "confdefs.h"
5999 main () {
6000 /* Are we little or big endian? From Harbison&Steele. */
6001 union
6003 long l;
6004 char c[sizeof (long)];
6005 } u;
6006 u.l = 1;
6007 exit (u.c[sizeof (long) - 1] == 1);
6010 if { (eval echo configure:6011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6011 then
6012 ac_cv_c_bigendian=no
6013 else
6014 echo "configure: failed program was:" >&5
6015 cat conftest.$ac_ext >&5
6016 rm -fr conftest*
6017 ac_cv_c_bigendian=yes
6019 rm -fr conftest*
6025 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
6026 if test $ac_cv_c_bigendian = yes; then
6027 cat >> confdefs.h <<\EOF
6028 #define WORDS_BIGENDIAN 1
6034 # Check whether right shifting a negative integer extends the sign bit
6035 # or fills with zeros (like the Cray J90, according to Tim Peters).
6036 echo $ac_n "checking whether right shift extends the sign bit""... $ac_c" 1>&6
6037 echo "configure:6038: checking whether right shift extends the sign bit" >&5
6038 if eval "test \"`echo '$''{'ac_cv_rshift_extends_sign'+set}'`\" = set"; then
6039 echo $ac_n "(cached) $ac_c" 1>&6
6040 else
6042 if test "$cross_compiling" = yes; then
6043 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
6044 else
6045 cat > conftest.$ac_ext <<EOF
6046 #line 6047 "configure"
6047 #include "confdefs.h"
6049 int main()
6051 exit(((-1)>>3 == -1) ? 0 : 1);
6055 if { (eval echo configure:6056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6056 then
6057 ac_cv_rshift_extends_sign=yes
6058 else
6059 echo "configure: failed program was:" >&5
6060 cat conftest.$ac_ext >&5
6061 rm -fr conftest*
6062 ac_cv_rshift_extends_sign=no
6064 rm -fr conftest*
6069 echo "$ac_t""$ac_cv_rshift_extends_sign" 1>&6
6070 if test "$ac_cv_rshift_extends_sign" = no
6071 then
6072 cat >> confdefs.h <<\EOF
6073 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
6078 # check for getc_unlocked and related locking functions
6079 echo $ac_n "checking for getc_unlocked() and friends""... $ac_c" 1>&6
6080 echo "configure:6081: checking for getc_unlocked() and friends" >&5
6081 if eval "test \"`echo '$''{'ac_cv_have_getc_unlocked'+set}'`\" = set"; then
6082 echo $ac_n "(cached) $ac_c" 1>&6
6083 else
6085 cat > conftest.$ac_ext <<EOF
6086 #line 6087 "configure"
6087 #include "confdefs.h"
6088 #include <stdio.h>
6089 int main() {
6091 FILE *f = fopen("/dev/null", "r");
6092 flockfile(f);
6093 getc_unlocked(f);
6094 funlockfile(f);
6096 ; return 0; }
6098 if { (eval echo configure:6099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6099 rm -rf conftest*
6100 ac_cv_have_getc_unlocked=yes
6101 else
6102 echo "configure: failed program was:" >&5
6103 cat conftest.$ac_ext >&5
6104 rm -rf conftest*
6105 ac_cv_have_getc_unlocked=no
6107 rm -f conftest*
6110 echo "$ac_t""$ac_cv_have_getc_unlocked" 1>&6
6111 if test "$ac_cv_have_getc_unlocked" = yes
6112 then
6113 cat >> confdefs.h <<\EOF
6114 #define HAVE_GETC_UNLOCKED 1
6119 # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS!
6120 # Add sys/socket.h to confdefs.h
6121 cat >> confdefs.h <<\EOF
6122 #ifdef HAVE_SYS_SOCKET_H
6123 #include <sys/socket.h>
6124 #endif
6126 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
6127 echo "configure:6128: checking for socklen_t" >&5
6128 if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
6129 echo $ac_n "(cached) $ac_c" 1>&6
6130 else
6131 cat > conftest.$ac_ext <<EOF
6132 #line 6133 "configure"
6133 #include "confdefs.h"
6134 #include <sys/types.h>
6135 #if STDC_HEADERS
6136 #include <stdlib.h>
6137 #include <stddef.h>
6138 #endif
6140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6141 egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6142 rm -rf conftest*
6143 ac_cv_type_socklen_t=yes
6144 else
6145 rm -rf conftest*
6146 ac_cv_type_socklen_t=no
6148 rm -f conftest*
6151 echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
6152 if test $ac_cv_type_socklen_t = no; then
6153 cat >> confdefs.h <<\EOF
6154 #define socklen_t int
6160 # Add Python/ prefix to LIBOBJS
6161 libobjs=$LIBOBJS
6162 LIBOBJS=
6163 for obj in $libobjs; do
6164 LIBOBJS="$LIBOBJS Python/$obj"
6165 done
6167 #AC_MSG_CHECKING(for Modules/Setup)
6168 #if test ! -f Modules/Setup ; then
6169 # if test ! -d Modules ; then
6170 # mkdir Modules
6171 # fi
6172 # cp "$srcdir/Modules/Setup.dist" Modules/Setup
6173 # AC_MSG_RESULT(creating)
6174 #else
6175 # AC_MSG_RESULT(already exists)
6179 SRCDIRS="Parser Grammar Objects Python Modules"
6180 echo $ac_n "checking for build directories""... $ac_c" 1>&6
6181 echo "configure:6182: checking for build directories" >&5
6182 for dir in $SRCDIRS; do
6183 if test ! -d $dir; then
6184 mkdir $dir
6186 done
6187 echo "$ac_t""done" 1>&6
6189 # generate output files
6190 trap '' 1 2 15
6191 cat > confcache <<\EOF
6192 # This file is a shell script that caches the results of configure
6193 # tests run on this system so they can be shared between configure
6194 # scripts and configure runs. It is not useful on other systems.
6195 # If it contains results you don't want to keep, you may remove or edit it.
6197 # By default, configure uses ./config.cache as the cache file,
6198 # creating it if it does not exist already. You can give configure
6199 # the --cache-file=FILE option to use a different cache file; that is
6200 # what configure does when it calls configure scripts in
6201 # subdirectories, so they share the cache.
6202 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6203 # config.status only pays attention to the cache file if you give it the
6204 # --recheck option to rerun configure.
6207 # The following way of writing the cache mishandles newlines in values,
6208 # but we know of no workaround that is simple, portable, and efficient.
6209 # So, don't put newlines in cache variables' values.
6210 # Ultrix sh set writes to stderr and can't be redirected directly,
6211 # and sets the high bit in the cache file unless we assign to the vars.
6212 (set) 2>&1 |
6213 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6214 *ac_space=\ *)
6215 # `set' does not quote correctly, so add quotes (double-quote substitution
6216 # turns \\\\ into \\, and sed turns \\ into \).
6217 sed -n \
6218 -e "s/'/'\\\\''/g" \
6219 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6222 # `set' quotes correctly as required by POSIX, so do not add quotes.
6223 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6225 esac >> confcache
6226 if cmp -s $cache_file confcache; then
6228 else
6229 if test -w $cache_file; then
6230 echo "updating cache $cache_file"
6231 cat confcache > $cache_file
6232 else
6233 echo "not updating unwritable cache $cache_file"
6236 rm -f confcache
6238 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6240 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6241 # Let make expand exec_prefix.
6242 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6244 # Any assignment to VPATH causes Sun make to only execute
6245 # the first set of double-colon rules, so remove it if not needed.
6246 # If there is a colon in the path, we need to keep it.
6247 if test "x$srcdir" = x.; then
6248 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6251 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6253 DEFS=-DHAVE_CONFIG_H
6255 # Without the "./", some shells look in PATH for config.status.
6256 : ${CONFIG_STATUS=./config.status}
6258 echo creating $CONFIG_STATUS
6259 rm -f $CONFIG_STATUS
6260 cat > $CONFIG_STATUS <<EOF
6261 #! /bin/sh
6262 # Generated automatically by configure.
6263 # Run this file to recreate the current configuration.
6264 # This directory was configured as follows,
6265 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6267 # $0 $ac_configure_args
6269 # Compiler output produced by configure, useful for debugging
6270 # configure, is in ./config.log if it exists.
6272 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6273 for ac_option
6275 case "\$ac_option" in
6276 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6277 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6278 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6279 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6280 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6281 exit 0 ;;
6282 -help | --help | --hel | --he | --h)
6283 echo "\$ac_cs_usage"; exit 0 ;;
6284 *) echo "\$ac_cs_usage"; exit 1 ;;
6285 esac
6286 done
6288 ac_given_srcdir=$srcdir
6289 ac_given_INSTALL="$INSTALL"
6291 trap 'rm -fr `echo "Makefile.pre Modules/Setup.config config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6293 cat >> $CONFIG_STATUS <<EOF
6295 # Protect against being on the right side of a sed subst in config.status.
6296 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6297 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6298 $ac_vpsub
6299 $extrasub
6300 s%@SHELL@%$SHELL%g
6301 s%@CFLAGS@%$CFLAGS%g
6302 s%@CPPFLAGS@%$CPPFLAGS%g
6303 s%@CXXFLAGS@%$CXXFLAGS%g
6304 s%@FFLAGS@%$FFLAGS%g
6305 s%@DEFS@%$DEFS%g
6306 s%@LDFLAGS@%$LDFLAGS%g
6307 s%@LIBS@%$LIBS%g
6308 s%@exec_prefix@%$exec_prefix%g
6309 s%@prefix@%$prefix%g
6310 s%@program_transform_name@%$program_transform_name%g
6311 s%@bindir@%$bindir%g
6312 s%@sbindir@%$sbindir%g
6313 s%@libexecdir@%$libexecdir%g
6314 s%@datadir@%$datadir%g
6315 s%@sysconfdir@%$sysconfdir%g
6316 s%@sharedstatedir@%$sharedstatedir%g
6317 s%@localstatedir@%$localstatedir%g
6318 s%@libdir@%$libdir%g
6319 s%@includedir@%$includedir%g
6320 s%@oldincludedir@%$oldincludedir%g
6321 s%@infodir@%$infodir%g
6322 s%@mandir@%$mandir%g
6323 s%@VERSION@%$VERSION%g
6324 s%@CONFIG_ARGS@%$CONFIG_ARGS%g
6325 s%@MACHDEP@%$MACHDEP%g
6326 s%@SGI_ABI@%$SGI_ABI%g
6327 s%@CXX@%$CXX%g
6328 s%@MAINOBJ@%$MAINOBJ%g
6329 s%@CC@%$CC%g
6330 s%@EXEEXT@%$EXEEXT%g
6331 s%@LIBRARY@%$LIBRARY%g
6332 s%@LDLIBRARY@%$LDLIBRARY%g
6333 s%@DLLLIBRARY@%$DLLLIBRARY%g
6334 s%@LINKCC@%$LINKCC%g
6335 s%@RANLIB@%$RANLIB%g
6336 s%@AR@%$AR%g
6337 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6338 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6339 s%@INSTALL_DATA@%$INSTALL_DATA%g
6340 s%@LN@%$LN%g
6341 s%@OPT@%$OPT%g
6342 s%@CPP@%$CPP%g
6343 s%@LIBTOOL_CRUFT@%$LIBTOOL_CRUFT%g
6344 s%@SO@%$SO%g
6345 s%@LDSHARED@%$LDSHARED%g
6346 s%@BLDSHARED@%$BLDSHARED%g
6347 s%@CCSHARED@%$CCSHARED%g
6348 s%@LINKFORSHARED@%$LINKFORSHARED%g
6349 s%@CFLAGSFORSHARED@%$CFLAGSFORSHARED%g
6350 s%@USE_SIGNAL_MODULE@%$USE_SIGNAL_MODULE%g
6351 s%@SIGNAL_OBJS@%$SIGNAL_OBJS%g
6352 s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g
6353 s%@LDLAST@%$LDLAST%g
6354 s%@USE_GC_MODULE@%$USE_GC_MODULE%g
6355 s%@DLINCLDIR@%$DLINCLDIR%g
6356 s%@DYNLOADFILE@%$DYNLOADFILE%g
6357 s%@LIBOBJS@%$LIBOBJS%g
6358 s%@HAVE_GETHOSTBYNAME_R_6_ARG@%$HAVE_GETHOSTBYNAME_R_6_ARG%g
6359 s%@HAVE_GETHOSTBYNAME_R_5_ARG@%$HAVE_GETHOSTBYNAME_R_5_ARG%g
6360 s%@HAVE_GETHOSTBYNAME_R_3_ARG@%$HAVE_GETHOSTBYNAME_R_3_ARG%g
6361 s%@HAVE_GETHOSTBYNAME_R@%$HAVE_GETHOSTBYNAME_R%g
6362 s%@HAVE_GETHOSTBYNAME@%$HAVE_GETHOSTBYNAME%g
6363 s%@LIBM@%$LIBM%g
6364 s%@LIBC@%$LIBC%g
6365 s%@SRCDIRS@%$SRCDIRS%g
6367 CEOF
6370 cat >> $CONFIG_STATUS <<\EOF
6372 # Split the substitutions into bite-sized pieces for seds with
6373 # small command number limits, like on Digital OSF/1 and HP-UX.
6374 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6375 ac_file=1 # Number of current file.
6376 ac_beg=1 # First line for current file.
6377 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6378 ac_more_lines=:
6379 ac_sed_cmds=""
6380 while $ac_more_lines; do
6381 if test $ac_beg -gt 1; then
6382 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6383 else
6384 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6386 if test ! -s conftest.s$ac_file; then
6387 ac_more_lines=false
6388 rm -f conftest.s$ac_file
6389 else
6390 if test -z "$ac_sed_cmds"; then
6391 ac_sed_cmds="sed -f conftest.s$ac_file"
6392 else
6393 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6395 ac_file=`expr $ac_file + 1`
6396 ac_beg=$ac_end
6397 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6399 done
6400 if test -z "$ac_sed_cmds"; then
6401 ac_sed_cmds=cat
6405 cat >> $CONFIG_STATUS <<EOF
6407 CONFIG_FILES=\${CONFIG_FILES-"Makefile.pre Modules/Setup.config"}
6409 cat >> $CONFIG_STATUS <<\EOF
6410 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6411 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6412 case "$ac_file" in
6413 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6414 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6415 *) ac_file_in="${ac_file}.in" ;;
6416 esac
6418 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6420 # Remove last slash and all that follows it. Not all systems have dirname.
6421 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6422 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6423 # The file is in a subdirectory.
6424 test ! -d "$ac_dir" && mkdir "$ac_dir"
6425 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6426 # A "../" for each directory in $ac_dir_suffix.
6427 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6428 else
6429 ac_dir_suffix= ac_dots=
6432 case "$ac_given_srcdir" in
6433 .) srcdir=.
6434 if test -z "$ac_dots"; then top_srcdir=.
6435 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6436 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6437 *) # Relative path.
6438 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6439 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6440 esac
6442 case "$ac_given_INSTALL" in
6443 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6444 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6445 esac
6447 echo creating "$ac_file"
6448 rm -f "$ac_file"
6449 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6450 case "$ac_file" in
6451 *Makefile*) ac_comsub="1i\\
6452 # $configure_input" ;;
6453 *) ac_comsub= ;;
6454 esac
6456 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6457 sed -e "$ac_comsub
6458 s%@configure_input@%$configure_input%g
6459 s%@srcdir@%$srcdir%g
6460 s%@top_srcdir@%$top_srcdir%g
6461 s%@INSTALL@%$INSTALL%g
6462 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6463 fi; done
6464 rm -f conftest.s*
6466 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6467 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6469 # ac_d sets the value in "#define NAME VALUE" lines.
6470 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6471 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6472 ac_dC='\3'
6473 ac_dD='%g'
6474 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6475 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6476 ac_uB='\([ ]\)%\1#\2define\3'
6477 ac_uC=' '
6478 ac_uD='\4%g'
6479 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6480 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6481 ac_eB='$%\1#\2define\3'
6482 ac_eC=' '
6483 ac_eD='%g'
6485 if test "${CONFIG_HEADERS+set}" != set; then
6487 cat >> $CONFIG_STATUS <<EOF
6488 CONFIG_HEADERS="config.h"
6490 cat >> $CONFIG_STATUS <<\EOF
6492 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6493 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6494 case "$ac_file" in
6495 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6496 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6497 *) ac_file_in="${ac_file}.in" ;;
6498 esac
6500 echo creating $ac_file
6502 rm -f conftest.frag conftest.in conftest.out
6503 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6504 cat $ac_file_inputs > conftest.in
6508 # Transform confdefs.h into a sed script conftest.vals that substitutes
6509 # the proper values into config.h.in to produce config.h. And first:
6510 # Protect against being on the right side of a sed subst in config.status.
6511 # Protect against being in an unquoted here document in config.status.
6512 rm -f conftest.vals
6513 cat > conftest.hdr <<\EOF
6514 s/[\\&%]/\\&/g
6515 s%[\\$`]%\\&%g
6516 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6517 s%ac_d%ac_u%gp
6518 s%ac_u%ac_e%gp
6520 sed -n -f conftest.hdr confdefs.h > conftest.vals
6521 rm -f conftest.hdr
6523 # This sed command replaces #undef with comments. This is necessary, for
6524 # example, in the case of _POSIX_SOURCE, which is predefined and required
6525 # on some systems where configure will not decide to define it.
6526 cat >> conftest.vals <<\EOF
6527 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6530 # Break up conftest.vals because some shells have a limit on
6531 # the size of here documents, and old seds have small limits too.
6533 rm -f conftest.tail
6534 while :
6536 ac_lines=`grep -c . conftest.vals`
6537 # grep -c gives empty output for an empty file on some AIX systems.
6538 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6539 # Write a limited-size here document to conftest.frag.
6540 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6541 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6542 echo 'CEOF
6543 sed -f conftest.frag conftest.in > conftest.out
6544 rm -f conftest.in
6545 mv conftest.out conftest.in
6546 ' >> $CONFIG_STATUS
6547 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6548 rm -f conftest.vals
6549 mv conftest.tail conftest.vals
6550 done
6551 rm -f conftest.vals
6553 cat >> $CONFIG_STATUS <<\EOF
6554 rm -f conftest.frag conftest.h
6555 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6556 cat conftest.in >> conftest.h
6557 rm -f conftest.in
6558 if cmp -s $ac_file conftest.h 2>/dev/null; then
6559 echo "$ac_file is unchanged"
6560 rm -f conftest.h
6561 else
6562 # Remove last slash and all that follows it. Not all systems have dirname.
6563 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6564 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6565 # The file is in a subdirectory.
6566 test ! -d "$ac_dir" && mkdir "$ac_dir"
6568 rm -f $ac_file
6569 mv conftest.h $ac_file
6571 fi; done
6574 cat >> $CONFIG_STATUS <<EOF
6577 cat >> $CONFIG_STATUS <<\EOF
6579 exit 0
6581 chmod +x $CONFIG_STATUS
6582 rm -fr confdefs* $ac_clean_files
6583 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6586 echo "creating Setup"
6587 if test ! -f Modules/Setup
6588 then
6589 cp $srcdir/Modules/Setup.dist Modules/Setup
6592 echo "creating Setup.local"
6593 if test ! -f Modules/Setup.local
6594 then
6595 echo "# Edit this file for local setup changes" >Modules/Setup.local
6598 echo "creating Makefile"
6599 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
6600 -s Modules Modules/Setup.config \
6601 Modules/Setup Modules/Setup.local
6602 mv config.c Modules