3 # From configure.in Revision: 1.260
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.
14 ac_default_prefix
=/usr
/local
15 # Any additions from configure.in:
17 --enable-framework[=INSTALLDIR] Build (MacOSX|Darwin) framework"
19 --without-gcc never use gcc"
21 --with-cxx=<compiler> enable C++ support"
23 --with-suffix=.exe set executable suffix"
25 --with-pydebug build with Py_DEBUG defined"
27 --enable-toolbox-glue disable/enable MacOSX glue code for extensions"
29 --with-libs='lib1 ...' link against additional libs"
31 --with-signal-module disable/enable signal module"
33 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries"
35 --with(out)-threads[=DIRECTORY] disable/enable thread support"
37 --with(out)-thread[=DIRECTORY] deprecated; use --with(out)-threads"
39 --with-pth use GNU pth threading libraries"
41 --enable-ipv6 Enable ipv6 (with ipv4) support
42 --disable-ipv6 Disable ipv6 support"
44 --with(out)-cycle-gc disable/enable garbage collection"
46 --with(out)-pymalloc disable/enable specialized mallocs"
48 --with-wctype-functions use wctype.h functions"
50 --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking"
52 --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking"
54 --with-fpectl enable SIGFPE catching"
56 --with-libm=STRING math library"
58 --with-libc=STRING C library"
60 --enable-unicode[=ucs2,ucs4] Enable Unicode strings (default is yes)"
62 # Initialize some variables set by options.
63 # The variables have the same names as the options, with
64 # dashes changed to underlines.
66 cache_file
=.
/config.cache
75 program_transform_name
=s
,x
,x
,
83 bindir
='${exec_prefix}/bin'
84 sbindir
='${exec_prefix}/sbin'
85 libexecdir
='${exec_prefix}/libexec'
86 datadir
='${prefix}/share'
87 sysconfdir
='${prefix}/etc'
88 sharedstatedir
='${prefix}/com'
89 localstatedir
='${prefix}/var'
90 libdir
='${exec_prefix}/lib'
91 includedir
='${prefix}/include'
92 oldincludedir
='/usr/include'
93 infodir
='${prefix}/info'
94 mandir
='${prefix}/man'
96 # Initialize some other variables.
99 SHELL
=${CONFIG_SHELL-/bin/sh}
100 # Maximum number of lines to put in a shell here document.
107 # If the previous option needs an argument, assign it.
108 if test -n "$ac_prev"; then
109 eval "$ac_prev=\$ac_option"
115 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
119 # Accept the important Cygnus configure options, so we can diagnose typos.
123 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
125 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
126 bindir
="$ac_optarg" ;;
128 -build |
--build |
--buil |
--bui |
--bu)
130 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
131 build
="$ac_optarg" ;;
133 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
134 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
135 ac_prev
=cache_file
;;
136 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
137 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
138 cache_file
="$ac_optarg" ;;
140 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
142 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
144 datadir
="$ac_optarg" ;;
146 -disable-* |
--disable-*)
147 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
148 # Reject names that are not valid shell variable names.
149 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
150 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
152 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
153 eval "enable_${ac_feature}=no" ;;
155 -enable-* |
--enable-*)
156 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
157 # Reject names that are not valid shell variable names.
158 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
159 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
161 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
166 eval "enable_${ac_feature}='$ac_optarg'" ;;
168 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
169 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
170 |
--exec |
--exe |
--ex)
171 ac_prev
=exec_prefix
;;
172 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
173 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
174 |
--exec=* |
--exe=* |
--ex=*)
175 exec_prefix
="$ac_optarg" ;;
177 -gas |
--gas |
--ga |
--g)
178 # Obsolete; use --with-gas.
181 -help |
--help |
--hel |
--he)
182 # Omit some internal or obsolete options to make the list less imposing.
183 # This message is too long to be a string in the A/UX 3.1 sh.
185 Usage: configure [options] [host]
186 Options: [defaults in brackets after descriptions]
188 --cache-file=FILE cache test results in FILE
189 --help print this message
190 --no-create do not create output files
191 --quiet, --silent do not print \`checking...' messages
192 --version print the version of autoconf that created configure
193 Directory and file names:
194 --prefix=PREFIX install architecture-independent files in PREFIX
196 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
198 --bindir=DIR user executables in DIR [EPREFIX/bin]
199 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
200 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
201 --datadir=DIR read-only architecture-independent data in DIR
203 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
204 --sharedstatedir=DIR modifiable architecture-independent data in DIR
206 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
207 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
208 --includedir=DIR C header files in DIR [PREFIX/include]
209 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
210 --infodir=DIR info documentation in DIR [PREFIX/info]
211 --mandir=DIR man documentation in DIR [PREFIX/man]
212 --srcdir=DIR find the sources in DIR [configure dir or ..]
213 --program-prefix=PREFIX prepend PREFIX to installed program names
214 --program-suffix=SUFFIX append SUFFIX to installed program names
215 --program-transform-name=PROGRAM
216 run sed PROGRAM on installed program names
220 --build=BUILD configure for building on BUILD [BUILD=HOST]
221 --host=HOST configure for HOST [guessed]
222 --target=TARGET configure for TARGET [TARGET=HOST]
223 Features and packages:
224 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
225 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
226 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
227 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
228 --x-includes=DIR X include files are in DIR
229 --x-libraries=DIR X library files are in DIR
231 if test -n "$ac_help"; then
232 echo "--enable and --with options recognized:$ac_help"
236 -host |
--host |
--hos |
--ho)
238 -host=* |
--host=* |
--hos=* |
--ho=*)
241 -includedir |
--includedir |
--includedi |
--included |
--include \
242 |
--includ |
--inclu |
--incl |
--inc)
243 ac_prev
=includedir
;;
244 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
245 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
246 includedir
="$ac_optarg" ;;
248 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
250 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
251 infodir
="$ac_optarg" ;;
253 -libdir |
--libdir |
--libdi |
--libd)
255 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
256 libdir
="$ac_optarg" ;;
258 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
259 |
--libexe |
--libex |
--libe)
260 ac_prev
=libexecdir
;;
261 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
262 |
--libexe=* |
--libex=* |
--libe=*)
263 libexecdir
="$ac_optarg" ;;
265 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
266 |
--localstate |
--localstat |
--localsta |
--localst \
267 |
--locals |
--local |
--loca |
--loc |
--lo)
268 ac_prev
=localstatedir
;;
269 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
270 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
271 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
272 localstatedir
="$ac_optarg" ;;
274 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
276 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
277 mandir
="$ac_optarg" ;;
280 # Obsolete; use --without-fp.
283 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
287 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
288 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
291 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
292 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
293 |
--oldin |
--oldi |
--old |
--ol |
--o)
294 ac_prev
=oldincludedir
;;
295 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
296 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
297 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
298 oldincludedir
="$ac_optarg" ;;
300 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
302 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
303 prefix
="$ac_optarg" ;;
305 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
306 |
--program-pre |
--program-pr |
--program-p)
307 ac_prev
=program_prefix
;;
308 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
309 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
310 program_prefix
="$ac_optarg" ;;
312 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
313 |
--program-suf |
--program-su |
--program-s)
314 ac_prev
=program_suffix
;;
315 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
316 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
317 program_suffix
="$ac_optarg" ;;
319 -program-transform-name |
--program-transform-name \
320 |
--program-transform-nam |
--program-transform-na \
321 |
--program-transform-n |
--program-transform- \
322 |
--program-transform |
--program-transfor \
323 |
--program-transfo |
--program-transf \
324 |
--program-trans |
--program-tran \
325 |
--progr-tra |
--program-tr |
--program-t)
326 ac_prev
=program_transform_name
;;
327 -program-transform-name=* |
--program-transform-name=* \
328 |
--program-transform-nam=* |
--program-transform-na=* \
329 |
--program-transform-n=* |
--program-transform-=* \
330 |
--program-transform=* |
--program-transfor=* \
331 |
--program-transfo=* |
--program-transf=* \
332 |
--program-trans=* |
--program-tran=* \
333 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
334 program_transform_name
="$ac_optarg" ;;
336 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
337 |
-silent |
--silent |
--silen |
--sile |
--sil)
340 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
342 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
344 sbindir
="$ac_optarg" ;;
346 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
347 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
348 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
350 ac_prev
=sharedstatedir
;;
351 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
352 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
353 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
355 sharedstatedir
="$ac_optarg" ;;
357 -site |
--site |
--sit)
359 -site=* |
--site=* |
--sit=*)
362 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
364 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
365 srcdir
="$ac_optarg" ;;
367 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
368 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
369 ac_prev
=sysconfdir
;;
370 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
371 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
372 sysconfdir
="$ac_optarg" ;;
374 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
376 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
377 target
="$ac_optarg" ;;
379 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
382 -version |
--version |
--versio |
--versi |
--vers)
383 echo "configure generated by autoconf version 2.13"
387 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
388 # Reject names that are not valid shell variable names.
389 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
390 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
392 ac_package
=`echo $ac_package| sed 's/-/_/g'`
397 eval "with_${ac_package}='$ac_optarg'" ;;
399 -without-* |
--without-*)
400 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 ac_package
=`echo $ac_package| sed 's/-/_/g'`
406 eval "with_${ac_package}=no" ;;
409 # Obsolete; use --with-x.
412 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
413 |
--x-incl |
--x-inc |
--x-in |
--x-i)
414 ac_prev
=x_includes
;;
415 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
416 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
417 x_includes
="$ac_optarg" ;;
419 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
420 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
421 ac_prev
=x_libraries
;;
422 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
423 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
424 x_libraries
="$ac_optarg" ;;
426 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
430 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
431 echo "configure: warning: $ac_option: invalid host type" 1>&2
433 if test "x$nonopt" != xNONE
; then
434 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
442 if test -n "$ac_prev"; then
443 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
446 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
448 # File descriptor usage:
451 # 2 errors and warnings
452 # 3 some systems may open it to /dev/tty
453 # 4 used on the Kubota Titan
454 # 6 checking for... messages and results
455 # 5 compiler messages saved in config.log
456 if test "$silent" = yes; then
464 This file contains any messages produced by compilers while
465 running configure, to aid debugging if configure makes a mistake.
468 # Strip out --no-create and --no-recursion so they do not pile up.
469 # Also quote any args containing shell metacharacters.
474 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
475 |
--no-cr |
--no-c) ;;
476 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
477 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
478 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
479 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
480 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
485 # Only set these to C if already set. These must not be set unconditionally
486 # because not all systems understand e.g. LANG=C (notably SCO).
487 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
488 # Non-C LC_CTYPE values break the ctype check.
489 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
490 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
491 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
492 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
494 # confdefs.h avoids OS command line length limits that DEFS can exceed.
495 rm -rf conftest
* confdefs.h
496 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
499 # A filename unique to this package, relative to the directory that
500 # configure is in, which we can look for to find out if srcdir is correct.
501 ac_unique_file
=Include
/object.h
503 # Find the source files, if location was not specified.
504 if test -z "$srcdir"; then
505 ac_srcdir_defaulted
=yes
506 # Try the directory containing this script, then its parent.
508 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
509 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
511 if test ! -r $srcdir/$ac_unique_file; then
515 ac_srcdir_defaulted
=no
517 if test ! -r $srcdir/$ac_unique_file; then
518 if test "$ac_srcdir_defaulted" = yes; then
519 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
521 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
524 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
526 # Prefer explicitly selected file to automatically selected ones.
527 if test -z "$CONFIG_SITE"; then
528 if test "x$prefix" != xNONE
; then
529 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
531 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
534 for ac_site_file
in $CONFIG_SITE; do
535 if test -r "$ac_site_file"; then
536 echo "loading site script $ac_site_file"
541 if test -r "$cache_file"; then
542 echo "loading cache $cache_file"
545 echo "creating cache $cache_file"
550 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
551 ac_cpp
='$CPP $CPPFLAGS'
552 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
553 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
554 cross_compiling
=$ac_cv_prog_cc_cross
558 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
559 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
560 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
567 ac_n
= ac_c
='\c' ac_t
=
573 # Set VERSION so we only need to edit in one place (i.e., here)
577 # Arguments passed to configure.
579 CONFIG_ARGS
="$ac_configure_args"
582 # Check whether --enable-framework or --disable-framework was given.
583 if test "${enable_framework+set}" = set; then
584 enableval
="$enable_framework"
588 enableval
=/Library
/Frameworks
593 PYTHONFRAMEWORKDIR
=no-framework
594 PYTHONFRAMEWORKPREFIX
=
595 PYTHONFRAMEWORKINSTALLDIR
=
599 PYTHONFRAMEWORK
=Python
600 PYTHONFRAMEWORKDIR
=Python.framework
601 PYTHONFRAMEWORKPREFIX
=$enableval
602 PYTHONFRAMEWORKINSTALLDIR
=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
603 prefix
=$PYTHONFRAMEWORKINSTALLDIR/Versions
/$VERSION
609 PYTHONFRAMEWORKDIR
=no-framework
610 PYTHONFRAMEWORKPREFIX
=
611 PYTHONFRAMEWORKINSTALLDIR
=
622 ##[ --with-dyld Use (OpenStep|Rhapsody) dynamic linker],,)
624 # Set name for machine-dependent library files
626 echo $ac_n "checking MACHDEP""... $ac_c" 1>&6
627 echo "configure:628: checking MACHDEP" >&5
628 if test -z "$MACHDEP"
630 ac_sys_system
=`uname -s`
631 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64"; then
632 ac_sys_release
=`uname -v`
634 ac_sys_release
=`uname -r`
636 ac_md_system
=`echo $ac_sys_system |
637 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
638 ac_md_release
=`echo $ac_sys_release |
639 tr -d '/ ' | sed 's/\..*//'`
640 MACHDEP
="$ac_md_system$ac_md_release"
643 cygwin
*) MACHDEP
="cygwin";;
644 '') MACHDEP
="unknown";;
649 # SGI compilers allow the specification of the both the ABI and the
650 # ISA on the command line. Depending on the values of these switches,
651 # different and often incompatable code will be generated.
653 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
654 # thus supply support for various ABI/ISA combinations. The MACHDEP
655 # variable is also adjusted.
658 if test ! -z "$SGI_ABI"
661 LDFLAGS
="$SGI_ABI $LDFLAGS"
662 MACHDEP
=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
664 echo "$ac_t""$MACHDEP" 1>&6
666 # checks for alternative programs
667 echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6
668 echo "configure:669: checking for --without-gcc" >&5
669 # Check whether --with-gcc or --without-gcc was given.
670 if test "${with_gcc+set}" = set; then
679 without_gcc
=$withval;;
683 case $ac_sys_system in
691 OPT
="-O -D'DL_EXPORT(RTYPE)=__declspec(dllexport) RTYPE' -D'DL_IMPORT(RTYPE)=__declspec(dllexport) RTYPE' -export pragma"
692 CCSHARED
="-UDL_IMPORT -D'DL_IMPORT(RTYPE)=__declspec(dllimport) RTYPE'"
693 LDFLAGS
="$LDFLAGS -nodup"
701 { echo "configure: error: Unknown BeOS platform \"$BE_HOST_CPU\"" 1>&2; exit 1; }
704 AR
="\$(srcdir)/Modules/ar_beos"
714 echo "$ac_t""$without_gcc" 1>&6
719 echo $ac_n "checking for --with-cxx=<compiler>""... $ac_c" 1>&6
720 echo "configure:721: checking for --with-cxx=<compiler>" >&5
721 # Check whether --with-cxx or --without-cxx was given.
722 if test "${with_cxx+set}" = set; then
740 echo "$ac_t""$with_cxx" 1>&6
743 if test "$check_cxx" = "yes"
745 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
747 # Extract the first word of "$ac_prog", so it can be a program name with args.
748 set dummy
$ac_prog; ac_word
=$2
749 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
750 echo "configure:751: checking for $ac_word" >&5
751 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
754 if test -n "$CXX"; then
755 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
757 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
759 for ac_dir
in $ac_dummy; do
760 test -z "$ac_dir" && ac_dir
=.
761 if test -f $ac_dir/$ac_word; then
762 ac_cv_prog_CXX
="$ac_prog"
769 CXX
="$ac_cv_prog_CXX"
770 if test -n "$CXX"; then
771 echo "$ac_t""$CXX" 1>&6
773 echo "$ac_t""no" 1>&6
776 test -n "$CXX" && break
778 test -n "$CXX" || CXX
="notfound"
780 if test "$CXX" = "notfound"
784 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
785 echo "configure:786: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
788 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
789 ac_cpp
='$CXXCPP $CPPFLAGS'
790 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
791 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
792 cross_compiling
=$ac_cv_prog_cxx_cross
794 cat > conftest.
$ac_ext << EOF
796 #line 797 "configure"
797 #include "confdefs.h"
799 int main(){return(0);}
801 if { (eval echo configure
:802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
802 ac_cv_prog_cxx_works
=yes
803 # If we can't run a trivial program, we are probably using a cross compiler.
804 if (.
/conftest
; exit) 2>/dev
/null
; then
805 ac_cv_prog_cxx_cross
=no
807 ac_cv_prog_cxx_cross
=yes
810 echo "configure: failed program was:" >&5
811 cat conftest.
$ac_ext >&5
812 ac_cv_prog_cxx_works
=no
816 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
817 ac_cpp
='$CPP $CPPFLAGS'
818 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
819 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
820 cross_compiling
=$ac_cv_prog_cc_cross
822 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
823 if test $ac_cv_prog_cxx_works = no
; then
824 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
826 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
827 echo "configure:828: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
828 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
829 cross_compiling
=$ac_cv_prog_cxx_cross
834 # If the user switches compilers, we can't believe the cache
835 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
837 { echo "configure: error: cached CC is different -- throw away $cache_file
838 (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; }
841 # Extract the first word of "gcc", so it can be a program name with args.
842 set dummy gcc
; ac_word
=$2
843 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
844 echo "configure:845: checking for $ac_word" >&5
845 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
846 echo $ac_n "(cached) $ac_c" 1>&6
848 if test -n "$CC"; then
849 ac_cv_prog_CC
="$CC" # Let the user override the test.
851 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
853 for ac_dir
in $ac_dummy; do
854 test -z "$ac_dir" && ac_dir
=.
855 if test -f $ac_dir/$ac_word; then
864 if test -n "$CC"; then
865 echo "$ac_t""$CC" 1>&6
867 echo "$ac_t""no" 1>&6
870 if test -z "$CC"; then
871 # Extract the first word of "cc", so it can be a program name with args.
872 set dummy cc
; ac_word
=$2
873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
874 echo "configure:875: checking for $ac_word" >&5
875 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
876 echo $ac_n "(cached) $ac_c" 1>&6
878 if test -n "$CC"; then
879 ac_cv_prog_CC
="$CC" # Let the user override the test.
881 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
884 for ac_dir
in $ac_dummy; do
885 test -z "$ac_dir" && ac_dir
=.
886 if test -f $ac_dir/$ac_word; then
887 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
896 if test $ac_prog_rejected = yes; then
897 # We found a bogon in the path, so make sure we never use it.
898 set dummy
$ac_cv_prog_CC
900 if test $# -gt 0; then
901 # We chose a different compiler from the bogus one.
902 # However, it has the same basename, so the bogon will be chosen
903 # first if we set CC to just the basename; use the full file name.
905 set dummy
"$ac_dir/$ac_word" "$@"
913 if test -n "$CC"; then
914 echo "$ac_t""$CC" 1>&6
916 echo "$ac_t""no" 1>&6
919 if test -z "$CC"; then
922 # Extract the first word of "cl", so it can be a program name with args.
923 set dummy cl
; ac_word
=$2
924 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
925 echo "configure:926: checking for $ac_word" >&5
926 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
927 echo $ac_n "(cached) $ac_c" 1>&6
929 if test -n "$CC"; then
930 ac_cv_prog_CC
="$CC" # Let the user override the test.
932 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
934 for ac_dir
in $ac_dummy; do
935 test -z "$ac_dir" && ac_dir
=.
936 if test -f $ac_dir/$ac_word; then
945 if test -n "$CC"; then
946 echo "$ac_t""$CC" 1>&6
948 echo "$ac_t""no" 1>&6
953 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
956 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
957 echo "configure:958: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
960 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
961 ac_cpp
='$CPP $CPPFLAGS'
962 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
963 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
964 cross_compiling
=$ac_cv_prog_cc_cross
966 cat > conftest.
$ac_ext << EOF
968 #line 969 "configure"
969 #include "confdefs.h"
973 if { (eval echo configure
:974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
974 ac_cv_prog_cc_works
=yes
975 # If we can't run a trivial program, we are probably using a cross compiler.
976 if (.
/conftest
; exit) 2>/dev
/null
; then
977 ac_cv_prog_cc_cross
=no
979 ac_cv_prog_cc_cross
=yes
982 echo "configure: failed program was:" >&5
983 cat conftest.
$ac_ext >&5
984 ac_cv_prog_cc_works
=no
988 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
989 ac_cpp
='$CPP $CPPFLAGS'
990 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
991 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
992 cross_compiling
=$ac_cv_prog_cc_cross
994 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
995 if test $ac_cv_prog_cc_works = no
; then
996 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
998 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
999 echo "configure:1000: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1000 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1001 cross_compiling
=$ac_cv_prog_cc_cross
1003 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1004 echo "configure:1005: checking whether we are using GNU C" >&5
1005 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1006 echo $ac_n "(cached) $ac_c" 1>&6
1008 cat > conftest.c
<<EOF
1013 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1020 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1022 if test $ac_cv_prog_gcc = yes; then
1028 ac_test_CFLAGS
="${CFLAGS+set}"
1029 ac_save_CFLAGS
="$CFLAGS"
1031 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1032 echo "configure:1033: checking whether ${CC-cc} accepts -g" >&5
1033 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1034 echo $ac_n "(cached) $ac_c" 1>&6
1036 echo 'void f(){}' > conftest.c
1037 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1046 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1047 if test "$ac_test_CFLAGS" = set; then
1048 CFLAGS
="$ac_save_CFLAGS"
1049 elif test $ac_cv_prog_cc_g = yes; then
1050 if test "$GCC" = yes; then
1056 if test "$GCC" = yes; then
1064 # checks for UNIX variants that set C preprocessor variables
1065 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1066 echo "configure:1067: checking how to run the C preprocessor" >&5
1067 # On Suns, sometimes $CPP names a directory.
1068 if test -n "$CPP" && test -d "$CPP"; then
1071 if test -z "$CPP"; then
1072 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1073 echo $ac_n "(cached) $ac_c" 1>&6
1075 # This must be in double quotes, not single quotes, because CPP may get
1076 # substituted into the Makefile and "${CC-cc}" will confuse make.
1078 # On the NeXT, cc -E runs the code through the compiler's parser,
1079 # not just through cpp.
1080 cat > conftest.
$ac_ext <<EOF
1081 #line 1082 "configure"
1082 #include "confdefs.h"
1086 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1087 { (eval echo configure
:1088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1088 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1089 if test -z "$ac_err"; then
1093 echo "configure: failed program was:" >&5
1094 cat conftest.
$ac_ext >&5
1096 CPP
="${CC-cc} -E -traditional-cpp"
1097 cat > conftest.
$ac_ext <<EOF
1098 #line 1099 "configure"
1099 #include "confdefs.h"
1103 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1104 { (eval echo configure
:1105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1105 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1106 if test -z "$ac_err"; then
1110 echo "configure: failed program was:" >&5
1111 cat conftest.
$ac_ext >&5
1113 CPP
="${CC-cc} -nologo -E"
1114 cat > conftest.
$ac_ext <<EOF
1115 #line 1116 "configure"
1116 #include "confdefs.h"
1120 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1121 { (eval echo configure
:1122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1122 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1123 if test -z "$ac_err"; then
1127 echo "configure: failed program was:" >&5
1128 cat conftest.
$ac_ext >&5
1137 ac_cv_prog_CPP
="$CPP"
1139 CPP
="$ac_cv_prog_CPP"
1141 ac_cv_prog_CPP
="$CPP"
1143 echo "$ac_t""$CPP" 1>&6
1145 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1146 echo "configure:1147: checking for AIX" >&5
1147 cat > conftest.
$ac_ext <<EOF
1148 #line 1149 "configure"
1149 #include "confdefs.h"
1155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1156 egrep "yes" >/dev
/null
2>&1; then
1158 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
1159 #define _ALL_SOURCE 1
1164 echo "$ac_t""no" 1>&6
1169 ac_safe
=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1170 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1171 echo "configure:1172: checking for minix/config.h" >&5
1172 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1173 echo $ac_n "(cached) $ac_c" 1>&6
1175 cat > conftest.
$ac_ext <<EOF
1176 #line 1177 "configure"
1177 #include "confdefs.h"
1178 #include <minix/config.h>
1180 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1181 { (eval echo configure
:1182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1182 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1183 if test -z "$ac_err"; then
1185 eval "ac_cv_header_$ac_safe=yes"
1188 echo "configure: failed program was:" >&5
1189 cat conftest.
$ac_ext >&5
1191 eval "ac_cv_header_$ac_safe=no"
1195 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1196 echo "$ac_t""yes" 1>&6
1199 echo "$ac_t""no" 1>&6
1203 if test "$MINIX" = yes; then
1204 cat >> confdefs.h
<<\EOF
1205 #define _POSIX_SOURCE 1
1208 cat >> confdefs.h
<<\EOF
1209 #define _POSIX_1_SOURCE 2
1212 cat >> confdefs.h
<<\EOF
1219 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1220 echo "configure:1221: checking for Cygwin environment" >&5
1221 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1222 echo $ac_n "(cached) $ac_c" 1>&6
1224 cat > conftest.
$ac_ext <<EOF
1225 #line 1226 "configure"
1226 #include "confdefs.h"
1231 #define __CYGWIN__ __CYGWIN32__
1236 if { (eval echo configure
:1237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1240 echo "configure: failed program was:" >&5
1241 cat conftest.
$ac_ext >&5
1249 echo "$ac_t""$ac_cv_cygwin" 1>&6
1251 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1252 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1253 echo "configure:1254: checking for mingw32 environment" >&5
1254 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1255 echo $ac_n "(cached) $ac_c" 1>&6
1257 cat > conftest.
$ac_ext <<EOF
1258 #line 1259 "configure"
1259 #include "confdefs.h"
1265 if { (eval echo configure
:1266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1269 echo "configure: failed program was:" >&5
1270 cat conftest.
$ac_ext >&5
1278 echo "$ac_t""$ac_cv_mingw32" 1>&6
1280 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1283 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1284 echo "configure:1285: checking for executable suffix" >&5
1285 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1286 echo $ac_n "(cached) $ac_c" 1>&6
1288 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1292 echo 'int main () { return 0; }' > conftest.
$ac_ext
1294 if { (eval echo configure
:1295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1295 for file in conftest.
*; do
1297 *.c |
*.o |
*.obj
) ;;
1298 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1302 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1305 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1310 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1311 echo "$ac_t""${ac_cv_exeext}" 1>&6
1314 echo $ac_n "checking for --with-suffix""... $ac_c" 1>&6
1315 echo "configure:1316: checking for --with-suffix" >&5
1316 # Check whether --with-suffix or --without-suffix was given.
1317 if test "${with_suffix+set}" = set; then
1318 withval
="$with_suffix"
1323 *) EXEEXT
=$withval;;
1327 echo "$ac_t""$EXEEXT" 1>&6
1328 # Test whether we're running on a non-case-sensitive system, in which
1329 # case we give a warning if no ext is given
1330 if test -d "python" -a -z "$EXEEXT"
1332 echo "configure: warning: This filesystem is not case-sensitive so you should probably use --with-suffix" 1>&2
1338 gcc
) CC
="$CC -D_HAVE_BSDI";;
1342 case $ac_sys_system in
1345 cc|
*/cc
) CC
="$CC -Ae";;
1349 cc
) CC
="$CC -Wl,-Bexport";;
1352 # Some functions have a prototype only with that define, e.g. confstr
1353 cat >> confdefs.h
<<\EOF
1354 #define __EXTENSIONS__ 1
1362 echo $ac_n "checking LIBRARY""... $ac_c" 1>&6
1363 echo "configure:1364: checking LIBRARY" >&5
1364 if test -z "$LIBRARY"
1366 LIBRARY
='libpython$(VERSION).a'
1368 echo "$ac_t""$LIBRARY" 1>&6
1370 # LDLIBRARY is the name of the library to link against (as opposed to the
1371 # name of the library into which to insert object files). BLDLIBRARY is also
1372 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
1373 # is blank as the main program is not linked directly against LDLIBRARY.
1374 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
1375 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
1376 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
1377 # DLLLIBRARY is the shared (i.e., DLL) library.
1383 LDLIBRARY
="$LIBRARY"
1384 BLDLIBRARY
='$(LDLIBRARY)'
1388 # LINKCC is the command that links the python executable -- default is $(CC).
1389 # This is altered for AIX in order to build the export list before
1392 echo $ac_n "checking LINKCC""... $ac_c" 1>&6
1393 echo "configure:1394: checking LINKCC" >&5
1394 if test -z "$LINKCC"
1396 case $ac_sys_system in
1398 LINKCC
="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); \$(PURIFY) \$(CC)";;
1400 LINKCC
="LD_RUN_PATH=$libdir \$(PURIFY) \$(CC)";;
1402 LINKCC
="\$(PURIFY) \$(CC) -L/usr/lib/ia64l64";;
1403 *) LINKCC
="\$(PURIFY) \$(CC)";;
1406 echo "$ac_t""$LINKCC" 1>&6
1408 echo $ac_n "checking LDLIBRARY""... $ac_c" 1>&6
1409 echo "configure:1410: checking LDLIBRARY" >&5
1411 # DG/UX requires some fancy ld contortions to produce a .so from an .a
1414 LDLIBRARY
='libpython$(VERSION).so'
1418 LDLIBRARY
='libpython$(VERSION).so'
1421 LDLIBRARY
='libpython$(VERSION).dll.a'
1422 DLLLIBRARY
='libpython$(VERSION).dll'
1426 # MacOSX framework builds need more magic. LDLIBRARY is the dynamic
1427 # library that we build, but we do not want to link against it (we
1428 # will find it with a -framework option). For this reason there is an
1429 # extra variable BLDLIBRARY against which Python and the extension
1430 # modules are linked, BLDLIBRARY. This is normally the same as
1431 # LDLIBRARY, but empty for MacOSX framework builds.
1432 if test "$enable_framework"
1434 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
1435 LDLIBRARYDIR
='$(PYTHONFRAMEWORKDIR)'
1438 BLDLIBRARY
='$(LDLIBRARY)'
1441 echo "$ac_t""$LDLIBRARY" 1>&6
1443 # Extract the first word of "ranlib", so it can be a program name with args.
1444 set dummy ranlib
; ac_word
=$2
1445 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1446 echo "configure:1447: checking for $ac_word" >&5
1447 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1448 echo $ac_n "(cached) $ac_c" 1>&6
1450 if test -n "$RANLIB"; then
1451 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1453 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1455 for ac_dir
in $ac_dummy; do
1456 test -z "$ac_dir" && ac_dir
=.
1457 if test -f $ac_dir/$ac_word; then
1458 ac_cv_prog_RANLIB
="ranlib"
1463 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1466 RANLIB
="$ac_cv_prog_RANLIB"
1467 if test -n "$RANLIB"; then
1468 echo "$ac_t""$RANLIB" 1>&6
1470 echo "$ac_t""no" 1>&6
1474 for ac_prog
in ar aal
1476 # Extract the first word of "$ac_prog", so it can be a program name with args.
1477 set dummy
$ac_prog; ac_word
=$2
1478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1479 echo "configure:1480: checking for $ac_word" >&5
1480 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1481 echo $ac_n "(cached) $ac_c" 1>&6
1483 if test -n "$AR"; then
1484 ac_cv_prog_AR
="$AR" # Let the user override the test.
1486 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1488 for ac_dir
in $ac_dummy; do
1489 test -z "$ac_dir" && ac_dir
=.
1490 if test -f $ac_dir/$ac_word; then
1491 ac_cv_prog_AR
="$ac_prog"
1499 if test -n "$AR"; then
1500 echo "$ac_t""$AR" 1>&6
1502 echo "$ac_t""no" 1>&6
1505 test -n "$AR" && break
1507 test -n "$AR" || AR
="ar"
1512 # install -d does not work on BSDI
1513 if test -z "$INSTALL"
1515 INSTALL
="${srcdir}/install-sh -c"
1519 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1520 if test -f $ac_dir/install-sh
; then
1522 ac_install_sh
="$ac_aux_dir/install-sh -c"
1524 elif test -f $ac_dir/install.sh
; then
1526 ac_install_sh
="$ac_aux_dir/install.sh -c"
1530 if test -z "$ac_aux_dir"; then
1531 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1533 ac_config_guess
=$ac_aux_dir/config.guess
1534 ac_config_sub
=$ac_aux_dir/config.sub
1535 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1537 # Find a good install program. We prefer a C program (faster),
1538 # so one script is as good as another. But avoid the broken or
1539 # incompatible versions:
1540 # SysV /etc/install, /usr/sbin/install
1541 # SunOS /usr/etc/install
1542 # IRIX /sbin/install
1544 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1545 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1546 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1547 # ./install, which can be erroneously created by make from ./install.sh.
1548 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1549 echo "configure:1550: checking for a BSD compatible install" >&5
1550 if test -z "$INSTALL"; then
1551 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1554 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1555 for ac_dir
in $PATH; do
1556 # Account for people who put trailing slashes in PATH elements.
1558 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1560 # OSF1 and SCO ODT 3.0 have their own names for install.
1561 # Don't use installbsd from OSF since it installs stuff as root
1563 for ac_prog
in ginstall scoinst
install; do
1564 if test -f $ac_dir/$ac_prog; then
1565 if test $ac_prog = install &&
1566 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1567 # AIX install. It has an incompatible calling convention.
1570 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1581 if test "${ac_cv_path_install+set}" = set; then
1582 INSTALL
="$ac_cv_path_install"
1584 # As a last resort, use the slow shell script. We don't cache a
1585 # path for INSTALL within a source directory, because that will
1586 # break other packages using the cache if that directory is
1587 # removed, or if the path is relative.
1588 INSTALL
="$ac_install_sh"
1591 echo "$ac_t""$INSTALL" 1>&6
1593 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1594 # It thinks the first close brace ends the variable substitution.
1595 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1597 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1599 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1602 # Not every filesystem supports hard links
1604 if test -z "$LN" ; then
1605 case $ac_sys_system in
1607 CYGWIN
*) LN
="ln -s";;
1612 # Check for --with-pydebug
1613 echo $ac_n "checking for --with-pydebug""... $ac_c" 1>&6
1614 echo "configure:1615: checking for --with-pydebug" >&5
1615 # Check whether --with-pydebug or --without-pydebug was given.
1616 if test "${with_pydebug+set}" = set; then
1617 withval
="$with_pydebug"
1619 if test "$withval" != no
1620 then cat >> confdefs.h
<<\EOF
1623 echo "$ac_t""yes" 1>&6; Py_DEBUG
='true'
1624 else echo "$ac_t""no" 1>&6; Py_DEBUG
='false'
1627 echo "$ac_t""no" 1>&6
1631 # Optimizer/debugger flags
1637 case $ac_cv_prog_cc_g in
1639 if test "$Py_DEBUG" = 'true' ; then
1640 # Optimization messes up debuggers, so turn it off for
1642 OPT
="-g -Wall -Wstrict-prototypes"
1644 OPT
="-g -O3 -Wall -Wstrict-prototypes"
1647 OPT
="-O3 -Wall -Wstrict-prototypes";;
1651 case $ac_sys_system in
1653 OPT
="-O -K pentium,host,inline,loop_unroll,alloca ";;
1658 case $ac_sys_system in
1660 OPT
="$OPT -no-cpp-precomp";;
1664 # The current (beta) Monterey compiler dies with optimizations
1665 case $ac_sys_system in
1669 if test "$ac_arch_flags"
1671 OPT
="$OPT $ac_arch_flags"
1674 echo $ac_n "checking whether $CC accepts -OPT:Olimit=0""... $ac_c" 1>&6
1675 echo "configure:1676: checking whether $CC accepts -OPT:Olimit=0" >&5
1676 if eval "test \"`echo '$''{'ac_cv_opt_olimit_ok'+set}'`\" = set"; then
1677 echo $ac_n "(cached) $ac_c" 1>&6
1680 CC
="$CC -OPT:Olimit=0"
1681 if test "$cross_compiling" = yes; then
1682 ac_cv_opt_olimit_ok
=no
1684 cat > conftest.
$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1687 int main() { return 0; }
1689 if { (eval echo configure
:1690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1691 ac_cv_opt_olimit_ok
=yes
1693 echo "configure: failed program was:" >&5
1694 cat conftest.
$ac_ext >&5
1696 ac_cv_opt_olimit_ok
=no
1704 echo "$ac_t""$ac_cv_opt_olimit_ok" 1>&6
1705 if test $ac_cv_opt_olimit_ok = yes; then
1706 case $ac_sys_system in
1707 Darwin
*) OPT
="$OPT" ;;
1708 *) OPT
="$OPT -OPT:Olimit=0";;
1711 echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6
1712 echo "configure:1713: checking whether $CC accepts -Olimit 1500" >&5
1713 if eval "test \"`echo '$''{'ac_cv_olimit_ok'+set}'`\" = set"; then
1714 echo $ac_n "(cached) $ac_c" 1>&6
1717 CC
="$CC -Olimit 1500"
1718 if test "$cross_compiling" = yes; then
1721 cat > conftest.
$ac_ext <<EOF
1722 #line 1723 "configure"
1723 #include "confdefs.h"
1724 int main() { return 0; }
1726 if { (eval echo configure
:1727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1730 echo "configure: failed program was:" >&5
1731 cat conftest.
$ac_ext >&5
1741 echo "$ac_t""$ac_cv_olimit_ok" 1>&6
1742 if test $ac_cv_olimit_ok = yes; then
1743 OPT
="$OPT -Olimit 1500"
1747 # -Kpthread, if available, provides the right #defines
1748 # and linker options to make pthread_create available
1749 echo $ac_n "checking whether $CC accepts -Kpthread""... $ac_c" 1>&6
1750 echo "configure:1751: checking whether $CC accepts -Kpthread" >&5
1751 if eval "test \"`echo '$''{'ac_cv_kpthread'+set}'`\" = set"; then
1752 echo $ac_n "(cached) $ac_c" 1>&6
1756 cat > conftest.
$ac_ext <<EOF
1757 #line 1758 "configure"
1758 #include "confdefs.h"
1759 #include <pthread.h>
1761 pthread_create(0,0,0,0)
1764 if { (eval echo configure
:1765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1768 echo "configure: failed program was:" >&5
1769 cat conftest.
$ac_ext >&5
1778 # GCC does not reject -Kpthread as an illegal option, it merely complains that
1779 # it is unrecognized
1780 if test "$GCC" = "yes"
1781 then ac_cv_kpthread
="no, we have gcc"
1783 echo "$ac_t""$ac_cv_kpthread" 1>&6
1786 # checks for header files
1787 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1788 echo "configure:1789: checking for ANSI C header files" >&5
1789 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1790 echo $ac_n "(cached) $ac_c" 1>&6
1792 cat > conftest.
$ac_ext <<EOF
1793 #line 1794 "configure"
1794 #include "confdefs.h"
1800 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1801 { (eval echo configure
:1802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1802 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1803 if test -z "$ac_err"; then
1805 ac_cv_header_stdc
=yes
1808 echo "configure: failed program was:" >&5
1809 cat conftest.
$ac_ext >&5
1811 ac_cv_header_stdc
=no
1815 if test $ac_cv_header_stdc = yes; then
1816 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1817 cat > conftest.
$ac_ext <<EOF
1818 #line 1819 "configure"
1819 #include "confdefs.h"
1822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1823 egrep "memchr" >/dev
/null
2>&1; then
1827 ac_cv_header_stdc
=no
1833 if test $ac_cv_header_stdc = yes; then
1834 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1835 cat > conftest.
$ac_ext <<EOF
1836 #line 1837 "configure"
1837 #include "confdefs.h"
1840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1841 egrep "free" >/dev
/null
2>&1; then
1845 ac_cv_header_stdc
=no
1851 if test $ac_cv_header_stdc = yes; then
1852 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1853 if test "$cross_compiling" = yes; then
1856 cat > conftest.
$ac_ext <<EOF
1857 #line 1858 "configure"
1858 #include "confdefs.h"
1860 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1861 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1862 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1863 int main () { int i; for (i = 0; i < 256; i++)
1864 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1868 if { (eval echo configure
:1869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1872 echo "configure: failed program was:" >&5
1873 cat conftest.
$ac_ext >&5
1875 ac_cv_header_stdc
=no
1883 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1884 if test $ac_cv_header_stdc = yes; then
1885 cat >> confdefs.h
<<\EOF
1886 #define STDC_HEADERS 1
1891 for ac_hdr
in dlfcn.h fcntl.h limits.h langinfo.h locale.h \
1892 ncurses.h poll.h pthread.h \
1893 signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h termios.h \
1894 sys
/audioio.h sys
/file.h sys
/lock.h sys
/modem.h db_185.h db.h \
1895 sys
/param.h sys
/poll.h sys
/select.h sys
/socket.h sys
/time.h sys
/times.h \
1896 sys
/un.h sys
/utsname.h sys
/wait.h pty.h libutil.h \
1897 ndbm.h db
1/ndbm.h gdbm
/ndbm.h sys
/resource.h netpacket
/packet.h
1899 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1900 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1901 echo "configure:1902: checking for $ac_hdr" >&5
1902 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1903 echo $ac_n "(cached) $ac_c" 1>&6
1905 cat > conftest.
$ac_ext <<EOF
1906 #line 1907 "configure"
1907 #include "confdefs.h"
1910 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1911 { (eval echo configure
:1912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1912 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1913 if test -z "$ac_err"; then
1915 eval "ac_cv_header_$ac_safe=yes"
1918 echo "configure: failed program was:" >&5
1919 cat conftest.
$ac_ext >&5
1921 eval "ac_cv_header_$ac_safe=no"
1925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1926 echo "$ac_t""yes" 1>&6
1927 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1928 cat >> confdefs.h
<<EOF
1929 #define $ac_tr_hdr 1
1933 echo "$ac_t""no" 1>&6
1938 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1940 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1941 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1942 echo "configure:1943: checking for $ac_hdr that defines DIR" >&5
1943 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1944 echo $ac_n "(cached) $ac_c" 1>&6
1946 cat > conftest.
$ac_ext <<EOF
1947 #line 1948 "configure"
1948 #include "confdefs.h"
1949 #include <sys/types.h>
1955 if { (eval echo configure
:1956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1957 eval "ac_cv_header_dirent_$ac_safe=yes"
1959 echo "configure: failed program was:" >&5
1960 cat conftest.
$ac_ext >&5
1962 eval "ac_cv_header_dirent_$ac_safe=no"
1966 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1967 echo "$ac_t""yes" 1>&6
1968 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1969 cat >> confdefs.h
<<EOF
1970 #define $ac_tr_hdr 1
1972 ac_header_dirent
=$ac_hdr; break
1974 echo "$ac_t""no" 1>&6
1977 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1978 if test $ac_header_dirent = dirent.h
; then
1979 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1980 echo "configure:1981: checking for opendir in -ldir" >&5
1981 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1982 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1983 echo $ac_n "(cached) $ac_c" 1>&6
1985 ac_save_LIBS
="$LIBS"
1987 cat > conftest.
$ac_ext <<EOF
1988 #line 1989 "configure"
1989 #include "confdefs.h"
1990 /* Override any gcc2 internal prototype to avoid an error. */
1991 /* We use char because int might match the return type of a gcc2
1992 builtin and then its argument prototype would still apply. */
1999 if { (eval echo configure
:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2001 eval "ac_cv_lib_$ac_lib_var=yes"
2003 echo "configure: failed program was:" >&5
2004 cat conftest.
$ac_ext >&5
2006 eval "ac_cv_lib_$ac_lib_var=no"
2009 LIBS
="$ac_save_LIBS"
2012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2013 echo "$ac_t""yes" 1>&6
2016 echo "$ac_t""no" 1>&6
2020 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2021 echo "configure:2022: checking for opendir in -lx" >&5
2022 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2023 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2024 echo $ac_n "(cached) $ac_c" 1>&6
2026 ac_save_LIBS
="$LIBS"
2028 cat > conftest.
$ac_ext <<EOF
2029 #line 2030 "configure"
2030 #include "confdefs.h"
2031 /* Override any gcc2 internal prototype to avoid an error. */
2032 /* We use char because int might match the return type of a gcc2
2033 builtin and then its argument prototype would still apply. */
2040 if { (eval echo configure
:2041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2042 eval "ac_cv_lib_$ac_lib_var=yes"
2044 echo "configure: failed program was:" >&5
2045 cat conftest.
$ac_ext >&5
2047 eval "ac_cv_lib_$ac_lib_var=no"
2050 LIBS
="$ac_save_LIBS"
2053 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2054 echo "$ac_t""yes" 1>&6
2057 echo "$ac_t""no" 1>&6
2063 # checks for typedefs
2065 echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6
2066 echo "configure:2067: checking for clock_t in time.h" >&5
2067 cat > conftest.
$ac_ext <<EOF
2068 #line 2069 "configure"
2069 #include "confdefs.h"
2072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2073 egrep "clock_t" >/dev
/null
2>&1; then
2078 cat >> confdefs.h
<<\EOF
2079 #define clock_t long
2085 echo "$ac_t""$was_it_defined" 1>&6
2087 # Two defines needed to enable largefile support on various platforms
2088 # These may affect some typedefs
2089 cat >> confdefs.h
<<\EOF
2090 #define _LARGEFILE_SOURCE 1
2093 cat >> confdefs.h
<<\EOF
2094 #define _FILE_OFFSET_BITS 64
2098 # Add some code to confdefs.h so that the test for off_t works on SCO
2099 cat >> confdefs.h
<<\EOF
2105 # Type availability checks
2106 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2107 echo "configure:2108: checking for mode_t" >&5
2108 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2109 echo $ac_n "(cached) $ac_c" 1>&6
2111 cat > conftest.
$ac_ext <<EOF
2112 #line 2113 "configure"
2113 #include "confdefs.h"
2114 #include <sys/types.h>
2120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2121 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2123 ac_cv_type_mode_t
=yes
2126 ac_cv_type_mode_t
=no
2131 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2132 if test $ac_cv_type_mode_t = no
; then
2133 cat >> confdefs.h
<<\EOF
2139 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2140 echo "configure:2141: checking for off_t" >&5
2141 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2144 cat > conftest.
$ac_ext <<EOF
2145 #line 2146 "configure"
2146 #include "confdefs.h"
2147 #include <sys/types.h>
2153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2154 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2156 ac_cv_type_off_t
=yes
2164 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2165 if test $ac_cv_type_off_t = no
; then
2166 cat >> confdefs.h
<<\EOF
2172 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2173 echo "configure:2174: checking for pid_t" >&5
2174 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2175 echo $ac_n "(cached) $ac_c" 1>&6
2177 cat > conftest.
$ac_ext <<EOF
2178 #line 2179 "configure"
2179 #include "confdefs.h"
2180 #include <sys/types.h>
2186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2187 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2189 ac_cv_type_pid_t
=yes
2197 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2198 if test $ac_cv_type_pid_t = no
; then
2199 cat >> confdefs.h
<<\EOF
2205 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2206 echo "configure:2207: checking return type of signal handlers" >&5
2207 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2208 echo $ac_n "(cached) $ac_c" 1>&6
2210 cat > conftest.
$ac_ext <<EOF
2211 #line 2212 "configure"
2212 #include "confdefs.h"
2213 #include <sys/types.h>
2219 extern "C" void (*signal (int, void (*)(int)))(int);
2221 void (*signal ()) ();
2228 if { (eval echo configure
:2229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2230 ac_cv_type_signal
=void
2232 echo "configure: failed program was:" >&5
2233 cat conftest.
$ac_ext >&5
2235 ac_cv_type_signal
=int
2240 echo "$ac_t""$ac_cv_type_signal" 1>&6
2241 cat >> confdefs.h
<<EOF
2242 #define RETSIGTYPE $ac_cv_type_signal
2246 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2247 echo "configure:2248: checking for size_t" >&5
2248 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2249 echo $ac_n "(cached) $ac_c" 1>&6
2251 cat > conftest.
$ac_ext <<EOF
2252 #line 2253 "configure"
2253 #include "confdefs.h"
2254 #include <sys/types.h>
2260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2261 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2263 ac_cv_type_size_t
=yes
2266 ac_cv_type_size_t
=no
2271 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2272 if test $ac_cv_type_size_t = no
; then
2273 cat >> confdefs.h
<<\EOF
2274 #define size_t unsigned
2279 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2280 echo "configure:2281: checking for uid_t in sys/types.h" >&5
2281 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2282 echo $ac_n "(cached) $ac_c" 1>&6
2284 cat > conftest.
$ac_ext <<EOF
2285 #line 2286 "configure"
2286 #include "confdefs.h"
2287 #include <sys/types.h>
2289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2290 egrep "uid_t" >/dev
/null
2>&1; then
2292 ac_cv_type_uid_t
=yes
2301 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2302 if test $ac_cv_type_uid_t = no
; then
2303 cat >> confdefs.h
<<\EOF
2307 cat >> confdefs.h
<<\EOF
2314 # Sizes of various common basic types
2315 echo $ac_n "checking size of int""... $ac_c" 1>&6
2316 echo "configure:2317: checking size of int" >&5
2317 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2320 if test "$cross_compiling" = yes; then
2323 cat > conftest.
$ac_ext <<EOF
2324 #line 2325 "configure"
2325 #include "confdefs.h"
2329 FILE *f=fopen("conftestval", "w");
2331 fprintf(f, "%d\n", sizeof(int));
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
2337 ac_cv_sizeof_int
=`cat conftestval`
2339 echo "configure: failed program was:" >&5
2340 cat conftest.
$ac_ext >&5
2348 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2349 cat >> confdefs.h
<<EOF
2350 #define SIZEOF_INT $ac_cv_sizeof_int
2354 echo $ac_n "checking size of long""... $ac_c" 1>&6
2355 echo "configure:2356: checking size of long" >&5
2356 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2357 echo $ac_n "(cached) $ac_c" 1>&6
2359 if test "$cross_compiling" = yes; then
2362 cat > conftest.
$ac_ext <<EOF
2363 #line 2364 "configure"
2364 #include "confdefs.h"
2368 FILE *f=fopen("conftestval", "w");
2370 fprintf(f, "%d\n", sizeof(long));
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
2376 ac_cv_sizeof_long
=`cat conftestval`
2378 echo "configure: failed program was:" >&5
2379 cat conftest.
$ac_ext >&5
2387 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2388 cat >> confdefs.h
<<EOF
2389 #define SIZEOF_LONG $ac_cv_sizeof_long
2393 echo $ac_n "checking size of void *""... $ac_c" 1>&6
2394 echo "configure:2395: checking size of void *" >&5
2395 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2398 if test "$cross_compiling" = yes; then
2399 ac_cv_sizeof_void_p
=4
2401 cat > conftest.
$ac_ext <<EOF
2402 #line 2403 "configure"
2403 #include "confdefs.h"
2407 FILE *f=fopen("conftestval", "w");
2409 fprintf(f, "%d\n", sizeof(void *));
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
2415 ac_cv_sizeof_void_p
=`cat conftestval`
2417 echo "configure: failed program was:" >&5
2418 cat conftest.
$ac_ext >&5
2420 ac_cv_sizeof_void_p
=0
2426 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
2427 cat >> confdefs.h
<<EOF
2428 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
2432 echo $ac_n "checking size of char""... $ac_c" 1>&6
2433 echo "configure:2434: checking size of char" >&5
2434 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
2435 echo $ac_n "(cached) $ac_c" 1>&6
2437 if test "$cross_compiling" = yes; then
2440 cat > conftest.
$ac_ext <<EOF
2441 #line 2442 "configure"
2442 #include "confdefs.h"
2446 FILE *f=fopen("conftestval", "w");
2448 fprintf(f, "%d\n", sizeof(char));
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
2454 ac_cv_sizeof_char
=`cat conftestval`
2456 echo "configure: failed program was:" >&5
2457 cat conftest.
$ac_ext >&5
2465 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
2466 cat >> confdefs.h
<<EOF
2467 #define SIZEOF_CHAR $ac_cv_sizeof_char
2471 echo $ac_n "checking size of short""... $ac_c" 1>&6
2472 echo "configure:2473: checking size of short" >&5
2473 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2474 echo $ac_n "(cached) $ac_c" 1>&6
2476 if test "$cross_compiling" = yes; then
2477 ac_cv_sizeof_short
=2
2479 cat > conftest.
$ac_ext <<EOF
2480 #line 2481 "configure"
2481 #include "confdefs.h"
2485 FILE *f=fopen("conftestval", "w");
2487 fprintf(f, "%d\n", sizeof(short));
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
2493 ac_cv_sizeof_short
=`cat conftestval`
2495 echo "configure: failed program was:" >&5
2496 cat conftest.
$ac_ext >&5
2498 ac_cv_sizeof_short
=0
2504 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2505 cat >> confdefs.h
<<EOF
2506 #define SIZEOF_SHORT $ac_cv_sizeof_short
2510 echo $ac_n "checking size of float""... $ac_c" 1>&6
2511 echo "configure:2512: checking size of float" >&5
2512 if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
2513 echo $ac_n "(cached) $ac_c" 1>&6
2515 if test "$cross_compiling" = yes; then
2516 ac_cv_sizeof_float
=4
2518 cat > conftest.
$ac_ext <<EOF
2519 #line 2520 "configure"
2520 #include "confdefs.h"
2524 FILE *f=fopen("conftestval", "w");
2526 fprintf(f, "%d\n", sizeof(float));
2530 if { (eval echo configure
:2531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2532 ac_cv_sizeof_float
=`cat conftestval`
2534 echo "configure: failed program was:" >&5
2535 cat conftest.
$ac_ext >&5
2537 ac_cv_sizeof_float
=0
2543 echo "$ac_t""$ac_cv_sizeof_float" 1>&6
2544 cat >> confdefs.h
<<EOF
2545 #define SIZEOF_FLOAT $ac_cv_sizeof_float
2549 echo $ac_n "checking size of double""... $ac_c" 1>&6
2550 echo "configure:2551: checking size of double" >&5
2551 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2554 if test "$cross_compiling" = yes; then
2555 ac_cv_sizeof_double
=8
2557 cat > conftest.
$ac_ext <<EOF
2558 #line 2559 "configure"
2559 #include "confdefs.h"
2563 FILE *f=fopen("conftestval", "w");
2565 fprintf(f, "%d\n", sizeof(double));
2569 if { (eval echo configure
:2570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2571 ac_cv_sizeof_double
=`cat conftestval`
2573 echo "configure: failed program was:" >&5
2574 cat conftest.
$ac_ext >&5
2576 ac_cv_sizeof_double
=0
2582 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
2583 cat >> confdefs.h
<<EOF
2584 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
2588 echo $ac_n "checking size of fpos_t""... $ac_c" 1>&6
2589 echo "configure:2590: checking size of fpos_t" >&5
2590 if eval "test \"`echo '$''{'ac_cv_sizeof_fpos_t'+set}'`\" = set"; then
2591 echo $ac_n "(cached) $ac_c" 1>&6
2593 if test "$cross_compiling" = yes; then
2594 ac_cv_sizeof_fpos_t
=4
2596 cat > conftest.
$ac_ext <<EOF
2597 #line 2598 "configure"
2598 #include "confdefs.h"
2602 FILE *f=fopen("conftestval", "w");
2604 fprintf(f, "%d\n", sizeof(fpos_t));
2608 if { (eval echo configure
:2609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2610 ac_cv_sizeof_fpos_t
=`cat conftestval`
2612 echo "configure: failed program was:" >&5
2613 cat conftest.
$ac_ext >&5
2615 ac_cv_sizeof_fpos_t
=0
2621 echo "$ac_t""$ac_cv_sizeof_fpos_t" 1>&6
2622 cat >> confdefs.h
<<EOF
2623 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
2628 echo $ac_n "checking for long long support""... $ac_c" 1>&6
2629 echo "configure:2630: checking for long long support" >&5
2631 cat > conftest.
$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2636 long long x; x = (long long)0;
2639 if { (eval echo configure
:2640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2641 cat >> confdefs.h
<<\EOF
2642 #define HAVE_LONG_LONG 1
2646 echo "configure: failed program was:" >&5
2647 cat conftest.
$ac_ext >&5
2650 echo "$ac_t""$have_long_long" 1>&6
2651 if test "$have_long_long" = yes ; then
2652 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2653 echo "configure:2654: checking size of long long" >&5
2654 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2655 echo $ac_n "(cached) $ac_c" 1>&6
2657 if test "$cross_compiling" = yes; then
2658 ac_cv_sizeof_long_long
=8
2660 cat > conftest.
$ac_ext <<EOF
2661 #line 2662 "configure"
2662 #include "confdefs.h"
2666 FILE *f=fopen("conftestval", "w");
2668 fprintf(f, "%d\n", sizeof(long long));
2672 if { (eval echo configure
:2673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2674 ac_cv_sizeof_long_long
=`cat conftestval`
2676 echo "configure: failed program was:" >&5
2677 cat conftest.
$ac_ext >&5
2679 ac_cv_sizeof_long_long
=0
2685 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2686 cat >> confdefs.h
<<EOF
2687 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2693 echo $ac_n "checking for uintptr_t support""... $ac_c" 1>&6
2694 echo "configure:2695: checking for uintptr_t support" >&5
2696 cat > conftest.
$ac_ext <<EOF
2697 #line 2698 "configure"
2698 #include "confdefs.h"
2701 uintptr_t x; x = (uintptr_t)0;
2704 if { (eval echo configure
:2705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2706 cat >> confdefs.h
<<\EOF
2707 #define HAVE_UINTPTR_T 1
2711 echo "configure: failed program was:" >&5
2712 cat conftest.
$ac_ext >&5
2715 echo "$ac_t""$have_uintptr_t" 1>&6
2716 if test "$have_uintptr_t" = yes ; then
2717 echo $ac_n "checking size of uintptr_t""... $ac_c" 1>&6
2718 echo "configure:2719: checking size of uintptr_t" >&5
2719 if eval "test \"`echo '$''{'ac_cv_sizeof_uintptr_t'+set}'`\" = set"; then
2720 echo $ac_n "(cached) $ac_c" 1>&6
2722 if test "$cross_compiling" = yes; then
2723 ac_cv_sizeof_uintptr_t
=4
2725 cat > conftest.
$ac_ext <<EOF
2726 #line 2727 "configure"
2727 #include "confdefs.h"
2731 FILE *f=fopen("conftestval", "w");
2733 fprintf(f, "%d\n", sizeof(uintptr_t));
2737 if { (eval echo configure
:2738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2739 ac_cv_sizeof_uintptr_t
=`cat conftestval`
2741 echo "configure: failed program was:" >&5
2742 cat conftest.
$ac_ext >&5
2744 ac_cv_sizeof_uintptr_t
=0
2750 echo "$ac_t""$ac_cv_sizeof_uintptr_t" 1>&6
2751 cat >> confdefs.h
<<EOF
2752 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
2758 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
2759 echo $ac_n "checking size of off_t""... $ac_c" 1>&6
2760 echo "configure:2761: checking size of off_t" >&5
2761 if eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then
2762 echo $ac_n "(cached) $ac_c" 1>&6
2764 if test "$cross_compiling" = yes; then
2765 ac_cv_sizeof_off_t
=4
2767 cat > conftest.
$ac_ext <<EOF
2768 #line 2769 "configure"
2769 #include "confdefs.h"
2771 #include <sys/types.h>
2774 FILE *f=fopen("conftestval", "w");
2776 fprintf(f, "%d\n", sizeof(off_t));
2780 if { (eval echo configure
:2781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2782 ac_cv_sizeof_off_t
=`cat conftestval`
2784 echo "configure: failed program was:" >&5
2785 cat conftest.
$ac_ext >&5
2787 ac_cv_sizeof_off_t
=0
2795 echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6
2796 cat >> confdefs.h
<<EOF
2797 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
2801 echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6
2802 echo "configure:2803: checking whether to enable large file support" >&5
2803 if test "$have_long_long" = yes -a \
2804 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
2805 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
2806 cat >> confdefs.h
<<\EOF
2807 #define HAVE_LARGEFILE_SUPPORT 1
2810 echo "$ac_t""yes" 1>&6
2812 echo "$ac_t""no" 1>&6
2815 # AC_CHECK_SIZEOF() doesn't include <time.h>.
2816 echo $ac_n "checking size of time_t""... $ac_c" 1>&6
2817 echo "configure:2818: checking size of time_t" >&5
2818 if eval "test \"`echo '$''{'ac_cv_sizeof_time_t'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2821 if test "$cross_compiling" = yes; then
2822 ac_cv_sizeof_time_t
=4
2824 cat > conftest.
$ac_ext <<EOF
2825 #line 2826 "configure"
2826 #include "confdefs.h"
2831 FILE *f=fopen("conftestval", "w");
2833 fprintf(f, "%d\n", sizeof(time_t));
2837 if { (eval echo configure
:2838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2839 ac_cv_sizeof_time_t
=`cat conftestval`
2841 echo "configure: failed program was:" >&5
2842 cat conftest.
$ac_ext >&5
2844 ac_cv_sizeof_time_t
=0
2852 echo "$ac_t""$ac_cv_sizeof_time_t" 1>&6
2853 cat >> confdefs.h
<<EOF
2854 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
2859 # if have pthread_t then define SIZEOF_PTHREAD_T
2861 if test "$ac_cv_kpthread" = "yes"
2862 then CC
="$CC -Kpthread"
2864 echo $ac_n "checking for pthread_t""... $ac_c" 1>&6
2865 echo "configure:2866: checking for pthread_t" >&5
2867 cat > conftest.
$ac_ext <<EOF
2868 #line 2869 "configure"
2869 #include "confdefs.h"
2870 #include <pthread.h>
2872 pthread_t x; x = *(pthread_t*)0;
2875 if { (eval echo configure
:2876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2879 echo "configure: failed program was:" >&5
2880 cat conftest.
$ac_ext >&5
2883 echo "$ac_t""$have_pthread_t" 1>&6
2884 if test "$have_pthread_t" = yes ; then
2885 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
2886 echo $ac_n "checking size of pthread_t""... $ac_c" 1>&6
2887 echo "configure:2888: checking size of pthread_t" >&5
2888 if eval "test \"`echo '$''{'ac_cv_sizeof_pthread_t'+set}'`\" = set"; then
2889 echo $ac_n "(cached) $ac_c" 1>&6
2891 if test "$cross_compiling" = yes; then
2892 ac_cv_sizeof_pthread_t
=4
2894 cat > conftest.
$ac_ext <<EOF
2895 #line 2896 "configure"
2896 #include "confdefs.h"
2898 #include <pthread.h>
2901 FILE *f=fopen("conftestval", "w");
2903 fprintf(f, "%d\n", sizeof(pthread_t));
2907 if { (eval echo configure
:2908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2909 ac_cv_sizeof_pthread_t
=`cat conftestval`
2911 echo "configure: failed program was:" >&5
2912 cat conftest.
$ac_ext >&5
2914 ac_cv_sizeof_pthread_t
=0
2922 echo "$ac_t""$ac_cv_sizeof_pthread_t" 1>&6
2923 cat >> confdefs.h
<<EOF
2924 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
2930 echo $ac_n "checking for --enable-toolbox-glue""... $ac_c" 1>&6
2931 echo "configure:2932: checking for --enable-toolbox-glue" >&5
2932 # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given.
2933 if test "${enable_toolbox_glue+set}" = set; then
2934 enableval
="$enable_toolbox_glue"
2939 if test -z "$enable_toolbox_glue"
2941 case $ac_sys_system/$ac_sys_release in
2943 enable_toolbox_glue
="yes";;
2945 enable_toolbox_glue
="no";;
2948 case "$enable_toolbox_glue" in
2950 extra_frameworks
="-framework Carbon -framework Foundation"
2951 extra_machdep_objs
="Python/mactoolboxglue.o"
2952 extra_undefs
="-u __dummy -u _PyMac_Error"
2953 cat >> confdefs.h
<<\EOF
2954 #define USE_TOOLBOX_OBJECT_GLUE 1
2960 extra_machdep_objs
=""
2964 echo "$ac_t""$enable_toolbox_glue" 1>&6
2967 case $ac_sys_system/$ac_sys_release in
2969 ns_undef_sym
='_environ'
2970 LIBTOOL_CRUFT
="-lcc_dynamic -arch_only ppc -flat_namespace -U $ns_undef_sym"
2971 LIBTOOL_CRUFT
="$LIBTOOL_CRUFT $extra_frameworks"
2972 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python'
2973 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
2975 ns_undef_sym
='_environ'
2976 LIBTOOL_CRUFT
="-lcc_dynamic -arch_only ppc -U $ns_undef_sym"
2977 LIBTOOL_CRUFT
="$LIBTOOL_CRUFT $extra_frameworks"
2978 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python'
2979 LIBTOOL_CRUFT
=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
2982 echo $ac_n "checking for --enable-framework""... $ac_c" 1>&6
2983 echo "configure:2984: checking for --enable-framework" >&5
2984 if test "$enable_framework"
2986 OPT
="$OPT -fno-common -dynamic"
2987 # -U __environ is needed since bundles don't have access
2988 # to crt0 when built but will always be linked against it
2989 # -F. is needed to allow linking to the framework while
2990 # in the build location.
2992 case $ac_sys_system/$ac_sys_release in
2993 Darwin
/1.4*)LDFLAGS
="$LDFLAGS -Wl,-F. -Wl,-flat_namespace,-U,$ns_undef_sym";;
2994 Darwin
/*)LDFLAGS
="$LDFLAGS -Wl,-F. -Wl,-U,$ns_undef_sym";;
2996 cat >> confdefs.h
<<\EOF
2997 #define WITH_NEXT_FRAMEWORK 1
3000 echo "$ac_t""yes" 1>&6
3002 echo "$ac_t""no" 1>&6
3005 echo $ac_n "checking for dyld""... $ac_c" 1>&6
3006 echo "configure:3007: checking for dyld" >&5
3007 case $ac_sys_system/$ac_sys_release in
3009 cat >> confdefs.h
<<\EOF
3013 echo "$ac_t""always on for Darwin" 1>&6
3016 echo "$ac_t""no" 1>&6
3020 # Set info about shared libraries.
3026 # SO is the extension of shared libraries `(including the dot!)
3027 # -- usually .so, .sl on HP-UX, .dll on Cygwin
3028 echo $ac_n "checking SO""... $ac_c" 1>&6
3029 echo "configure:3030: checking SO" >&5
3032 case $ac_sys_system in
3038 echo "$ac_t""$SO" 1>&6
3039 # LDSHARED is the ld *command* used to create shared library
3040 # -- "ld" on SunOS 4.x.x, "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
3041 # (Shared libraries in this instance are shared modules to be loaded into
3042 # Python, as opposed to building Python itself as a shared library.)
3043 echo $ac_n "checking LDSHARED""... $ac_c" 1>&6
3044 echo "configure:3045: checking LDSHARED" >&5
3045 if test -z "$LDSHARED"
3047 case $ac_sys_system/$ac_sys_release in
3049 BLDSHARED
="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
3050 LDSHARED
="\$(BINLIBDEST)/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/python.exp"
3053 BLDSHARED
="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY"
3054 LDSHARED
="\$(BINLIBDEST)/ld_so_beos \$(LIBDIR)/$LDLIBRARY"
3056 IRIX
/5*) LDSHARED
="ld -shared";;
3057 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
3058 SunOS
/4*) LDSHARED
="ld";;
3060 if test "$GCC" = "yes"
3061 then LDSHARED
='$(CC) -shared'
3062 else LDSHARED
="$(CC) -G";
3064 hp
*|HP
*) LDSHARED
="ld -b";;
3065 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
3066 DYNIX
/ptx*) LDSHARED
="ld -G";;
3068 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
3069 if test "$enable_framework" ; then
3070 # Link against the framework. All externals should be defined.
3071 LDSHARED
="$LDSHARED "'-framework $(PYTHONFRAMEWORK)'
3073 # No framework. Ignore undefined symbols, assuming they come from Python
3074 LDSHARED
="$LDSHARED -flat_namespace -undefined suppress"
3077 LDSHARED
='$(CC) $(LDFLAGS) -bundle'
3078 if test "$enable_framework" ; then
3079 # Link against the framework. All externals should be defined.
3080 LDSHARED
="$LDSHARED "'-framework $(PYTHONFRAMEWORK)'
3082 # No framework. Ignore undefined symbols, assuming they come from Python
3083 LDSHARED
="$LDSHARED -undefined suppress"
3085 Linux
*) LDSHARED
="gcc -shared";;
3086 dgux
*) LDSHARED
="ld -G";;
3087 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
3088 OpenBSD
*|NetBSD
*|FreeBSD
*)
3089 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
3091 LDSHARED
="cc -shared ${LDFLAGS}"
3093 LDSHARED
="ld -Bshareable ${LDFLAGS}"
3096 if test "$GCC" = "yes"
3097 then LDSHARED
="$(CC) -shared"
3098 else LDSHARED
="$(CC) -G"
3100 SCO_SV
*) LDSHARED
="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";;
3101 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
3102 CYGWIN
*) LDSHARED
="gcc -shared -Wl,--enable-auto-image-base";;
3106 echo "$ac_t""$LDSHARED" 1>&6
3107 BLDSHARED
=${BLDSHARED-$LDSHARED}
3108 # CCSHARED are the C *flags* used to create objects to go into a shared
3109 # library (module) -- this is only needed for a few systems
3110 echo $ac_n "checking CCSHARED""... $ac_c" 1>&6
3111 echo "configure:3112: checking CCSHARED" >&5
3112 if test -z "$CCSHARED"
3114 case $ac_sys_system/$ac_sys_release in
3115 SunOS
*) if test "$GCC" = yes;
3116 then CCSHARED
="-fPIC";
3118 hp
*|HP
*) if test "$GCC" = yes;
3119 then CCSHARED
="-fPIC";
3122 Linux
*) CCSHARED
="-fPIC";;
3123 BSD
/OS
*/4*) CCSHARED
="-fpic";;
3124 FreeBSD
*|NetBSD
*|OpenBSD
*) CCSHARED
="-fPIC";;
3126 if test "$GCC" = "yes"
3127 then CCSHARED
="-fPIC"
3128 else CCSHARED
="-KPIC"
3130 SCO_SV
*) CCSHARED
="-KPIC -dy -Bdynamic";;
3131 Monterey
*) CCSHARED
="-G";;
3132 IRIX
*/6*) case $CC in
3133 *gcc
*) CCSHARED
="-shared";;
3136 CYGWIN
*) CCSHARED
="-DUSE_DL_IMPORT";;
3139 echo "$ac_t""$CCSHARED" 1>&6
3140 # LINKFORSHARED are the flags passed to the $(CC) command that links
3141 # the python executable -- this is only needed for a few systems
3142 echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6
3143 echo "configure:3144: checking LINKFORSHARED" >&5
3144 if test -z "$LINKFORSHARED"
3146 case $ac_sys_system/$ac_sys_release in
3147 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
3149 LINKFORSHARED
="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
3150 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
3151 Linux
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
3152 # -u libsys_s pulls in all symbols in libsys
3154 # -u __dummy makes the linker aware of the objc runtime
3155 # in System.framework; otherwise, __objcInit (referenced in
3156 # crt1.o) gets erroneously defined as common, which breaks dynamic
3157 # loading of any modules which reference it in System.framework.
3158 # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is
3159 # not used by the core itself but which needs to be in the core so
3160 # that dynamically loaded extension modules have access to it.
3161 LINKFORSHARED
="$extra_undefs -framework System"
3162 if test "$enable_framework"
3164 LINKFORSHARED
="$LINKFORSHARED -framework Python"
3166 LINKFORSHARED
="$LINKFORSHARED $extra_frameworks";;
3167 UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
3168 SCO_SV
*) LINKFORSHARED
="-Bdynamic -dy -Wl,-Bexport";;
3169 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
3170 FreeBSD
*|NetBSD
*|OpenBSD
*)
3171 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
3173 LINKFORSHARED
="-Wl,--export-dynamic"
3175 SunOS
/5*) case $CC in
3177 if $CC -Xlinker -V 2>&1 |
grep BFD
>/dev
/null
3179 LINKFORSHARED
="-Xlinker --export-dynamic"
3184 echo "$ac_t""$LINKFORSHARED" 1>&6
3187 echo $ac_n "checking CFLAGSFORSHARED""... $ac_c" 1>&6
3188 echo "configure:3189: checking CFLAGSFORSHARED" >&5
3189 if test ! "$LIBRARY" = "$LDLIBRARY"
3191 case $ac_sys_system in
3193 # Cygwin needs CCSHARED when building extension DLLs
3194 # but not when building the interpreter DLL.
3195 CFLAGSFORSHARED
='';;
3197 CFLAGSFORSHARED
='$(CCSHARED)'
3200 echo "$ac_t""$CFLAGSFORSHARED" 1>&6
3202 # checks for libraries
3203 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3204 echo "configure:3205: checking for dlopen in -ldl" >&5
3205 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3206 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3207 echo $ac_n "(cached) $ac_c" 1>&6
3209 ac_save_LIBS
="$LIBS"
3211 cat > conftest.
$ac_ext <<EOF
3212 #line 3213 "configure"
3213 #include "confdefs.h"
3214 /* Override any gcc2 internal prototype to avoid an error. */
3215 /* We use char because int might match the return type of a gcc2
3216 builtin and then its argument prototype would still apply. */
3223 if { (eval echo configure
:3224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3225 eval "ac_cv_lib_$ac_lib_var=yes"
3227 echo "configure: failed program was:" >&5
3228 cat conftest.
$ac_ext >&5
3230 eval "ac_cv_lib_$ac_lib_var=no"
3233 LIBS
="$ac_save_LIBS"
3236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3237 echo "$ac_t""yes" 1>&6
3238 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3239 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3240 cat >> confdefs.h
<<EOF
3241 #define $ac_tr_lib 1
3247 echo "$ac_t""no" 1>&6
3249 # Dynamic linking for SunOS/Solaris and SYSV
3250 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
3251 echo "configure:3252: checking for shl_load in -ldld" >&5
3252 ac_lib_var
=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
3253 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3254 echo $ac_n "(cached) $ac_c" 1>&6
3256 ac_save_LIBS
="$LIBS"
3258 cat > conftest.
$ac_ext <<EOF
3259 #line 3260 "configure"
3260 #include "confdefs.h"
3261 /* Override any gcc2 internal prototype to avoid an error. */
3262 /* We use char because int might match the return type of a gcc2
3263 builtin and then its argument prototype would still apply. */
3270 if { (eval echo configure
:3271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3272 eval "ac_cv_lib_$ac_lib_var=yes"
3274 echo "configure: failed program was:" >&5
3275 cat conftest.
$ac_ext >&5
3277 eval "ac_cv_lib_$ac_lib_var=no"
3280 LIBS
="$ac_save_LIBS"
3283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3284 echo "$ac_t""yes" 1>&6
3285 ac_tr_lib
=HAVE_LIB
`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3286 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3287 cat >> confdefs.h
<<EOF
3288 #define $ac_tr_lib 1
3294 echo "$ac_t""no" 1>&6
3296 # Dynamic linking for HP-UX
3298 # checks for system dependent C++ extensions support
3299 case "$ac_sys_system" in
3300 AIX
*) echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6
3301 echo "configure:3302: checking for genuine AIX C++ extensions support" >&5
3302 cat > conftest.
$ac_ext <<EOF
3303 #line 3304 "configure"
3304 #include "confdefs.h"
3305 #include "/usr/lpp/xlC/include/load.h"
3307 loadAndInit("", 0, "")
3310 if { (eval echo configure
:3311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3312 cat >> confdefs.h
<<\EOF
3313 #define AIX_GENUINE_CPLUSPLUS 1
3316 echo "$ac_t""yes" 1>&6
3318 echo "configure: failed program was:" >&5
3319 cat conftest.
$ac_ext >&5
3321 echo "$ac_t""no" 1>&6
3327 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
3328 # However on SGI IRIX, these exist but are broken.
3329 # BeOS' sockets are stashed in libnet.
3330 case "$ac_sys_system" in
3333 echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6
3334 echo "configure:3335: checking for t_open in -lnsl" >&5
3335 ac_lib_var
=`echo nsl'_'t_open | sed 'y%./+-%__p_%'`
3336 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3337 echo $ac_n "(cached) $ac_c" 1>&6
3339 ac_save_LIBS
="$LIBS"
3341 cat > conftest.
$ac_ext <<EOF
3342 #line 3343 "configure"
3343 #include "confdefs.h"
3344 /* Override any gcc2 internal prototype to avoid an error. */
3345 /* We use char because int might match the return type of a gcc2
3346 builtin and then its argument prototype would still apply. */
3353 if { (eval echo configure
:3354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3355 eval "ac_cv_lib_$ac_lib_var=yes"
3357 echo "configure: failed program was:" >&5
3358 cat conftest.
$ac_ext >&5
3360 eval "ac_cv_lib_$ac_lib_var=no"
3363 LIBS
="$ac_save_LIBS"
3366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3367 echo "$ac_t""yes" 1>&6
3370 echo "$ac_t""no" 1>&6
3373 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3374 echo "configure:3375: checking for socket in -lsocket" >&5
3375 ac_lib_var
=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3376 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3377 echo $ac_n "(cached) $ac_c" 1>&6
3379 ac_save_LIBS
="$LIBS"
3380 LIBS
="-lsocket $LIBS $LIBS"
3381 cat > conftest.
$ac_ext <<EOF
3382 #line 3383 "configure"
3383 #include "confdefs.h"
3384 /* Override any gcc2 internal prototype to avoid an error. */
3385 /* We use char because int might match the return type of a gcc2
3386 builtin and then its argument prototype would still apply. */
3393 if { (eval echo configure
:3394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3395 eval "ac_cv_lib_$ac_lib_var=yes"
3397 echo "configure: failed program was:" >&5
3398 cat conftest.
$ac_ext >&5
3400 eval "ac_cv_lib_$ac_lib_var=no"
3403 LIBS
="$ac_save_LIBS"
3406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3407 echo "$ac_t""yes" 1>&6
3408 LIBS
="-lsocket $LIBS"
3410 echo "$ac_t""no" 1>&6
3415 case "$ac_sys_system" in
3417 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
3418 echo "configure:3419: checking for socket in -lnet" >&5
3419 ac_lib_var
=`echo net'_'socket | sed 'y%./+-%__p_%'`
3420 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3421 echo $ac_n "(cached) $ac_c" 1>&6
3423 ac_save_LIBS
="$LIBS"
3424 LIBS
="-lnet $LIBS $LIBS"
3425 cat > conftest.
$ac_ext <<EOF
3426 #line 3427 "configure"
3427 #include "confdefs.h"
3428 /* Override any gcc2 internal prototype to avoid an error. */
3429 /* We use char because int might match the return type of a gcc2
3430 builtin and then its argument prototype would still apply. */
3437 if { (eval echo configure
:3438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3439 eval "ac_cv_lib_$ac_lib_var=yes"
3441 echo "configure: failed program was:" >&5
3442 cat conftest.
$ac_ext >&5
3444 eval "ac_cv_lib_$ac_lib_var=no"
3447 LIBS
="$ac_save_LIBS"
3450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3451 echo "$ac_t""yes" 1>&6
3454 echo "$ac_t""no" 1>&6
3460 echo $ac_n "checking for --with-libs""... $ac_c" 1>&6
3461 echo "configure:3462: checking for --with-libs" >&5
3462 # Check whether --with-libs or --without-libs was given.
3463 if test "${with_libs+set}" = set; then
3464 withval
="$with_libs"
3466 echo "$ac_t""$withval" 1>&6
3467 LIBS
="$withval $LIBS"
3470 echo "$ac_t""no" 1>&6
3474 # Determine if signalmodule should be used.
3477 echo $ac_n "checking for --with-signal-module""... $ac_c" 1>&6
3478 echo "configure:3479: checking for --with-signal-module" >&5
3479 # Check whether --with-signal-module or --without-signal-module was given.
3480 if test "${with_signal_module+set}" = set; then
3481 withval
="$with_signal_module"
3486 if test -z "$with_signal_module"
3487 then with_signal_module
="yes"
3489 echo "$ac_t""$with_signal_module" 1>&6
3491 if test "${with_signal_module}" = "yes"; then
3492 USE_SIGNAL_MODULE
=""
3495 USE_SIGNAL_MODULE
="#"
3496 SIGNAL_OBJS
="Parser/intrcheck.o Python/sigcheck.o"
3499 # This is used to generate Setup.config
3501 USE_THREAD_MODULE
=""
3503 echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6
3504 echo "configure:3505: checking for --with-dec-threads" >&5
3506 # Check whether --with-dec-threads or --without-dec-threads was given.
3507 if test "${with_dec_threads+set}" = set; then
3508 withval
="$with_dec_threads"
3510 echo "$ac_t""$withval" 1>&6
3512 if test "${with_thread+set}" != set; then
3513 with_thread
="$withval";
3516 echo "$ac_t""no" 1>&6
3520 echo $ac_n "checking for --with-threads""... $ac_c" 1>&6
3521 echo "configure:3522: checking for --with-threads" >&5
3522 # Check whether --with-threads or --without-threads was given.
3523 if test "${with_threads+set}" = set; then
3524 withval
="$with_threads"
3529 # --with-thread is deprecated, but check for it anyway
3530 # Check whether --with-thread or --without-thread was given.
3531 if test "${with_thread+set}" = set; then
3532 withval
="$with_thread"
3534 with_threads
=$with_thread
3538 if test -z "$with_threads"
3539 then with_threads
="yes"
3541 echo "$ac_t""$with_threads" 1>&6
3543 if test "$with_threads" = "no"
3545 USE_THREAD_MODULE
="#"
3546 elif test "$ac_cv_kpthread" = "yes"
3549 cat >> confdefs.h
<<\EOF
3550 #define WITH_THREAD 1
3553 cat >> confdefs.h
<<\EOF
3554 #define _POSIX_THREADS 1
3558 LIBOBJS
="$LIBOBJS thread.o"
3560 if test ! -z "$with_threads" -a -d "$with_threads"
3561 then LDFLAGS
="$LDFLAGS -L$with_threads"
3563 if test ! -z "$withval" -a -d "$withval"
3564 then LDFLAGS
="$LDFLAGS -L$withval"
3566 cat >> confdefs.h
<<\EOF
3567 #define _REENTRANT 1
3570 ac_safe
=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'`
3571 echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6
3572 echo "configure:3573: checking for mach/cthreads.h" >&5
3573 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3574 echo $ac_n "(cached) $ac_c" 1>&6
3576 cat > conftest.
$ac_ext <<EOF
3577 #line 3578 "configure"
3578 #include "confdefs.h"
3579 #include <mach/cthreads.h>
3581 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3582 { (eval echo configure
:3583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3583 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3584 if test -z "$ac_err"; then
3586 eval "ac_cv_header_$ac_safe=yes"
3589 echo "configure: failed program was:" >&5
3590 cat conftest.
$ac_ext >&5
3592 eval "ac_cv_header_$ac_safe=no"
3596 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3597 echo "$ac_t""yes" 1>&6
3598 cat >> confdefs.h
<<\EOF
3599 #define WITH_THREAD 1
3602 cat >> confdefs.h
<<\EOF
3606 LIBOBJS
="$LIBOBJS thread.o"
3608 echo "$ac_t""no" 1>&6
3610 echo $ac_n "checking for --with-pth""... $ac_c" 1>&6
3611 echo "configure:3612: checking for --with-pth" >&5
3612 # Check whether --with-pth or --without-pth was given.
3613 if test "${with_pth+set}" = set; then
3616 echo "$ac_t""$withval" 1>&6
3617 cat >> confdefs.h
<<\EOF
3618 #define WITH_THREAD 1
3621 cat >> confdefs.h
<<\EOF
3626 LIBOBJS
="$LIBOBJS thread.o"
3629 echo "$ac_t""no" 1>&6
3630 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
3631 echo "configure:3632: checking for pthread_create in -lpthread" >&5
3632 ac_lib_var
=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
3633 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3634 echo $ac_n "(cached) $ac_c" 1>&6
3636 ac_save_LIBS
="$LIBS"
3637 LIBS
="-lpthread $LIBS"
3638 cat > conftest.
$ac_ext <<EOF
3639 #line 3640 "configure"
3640 #include "confdefs.h"
3641 /* Override any gcc2 internal prototype to avoid an error. */
3642 /* We use char because int might match the return type of a gcc2
3643 builtin and then its argument prototype would still apply. */
3644 char pthread_create();
3650 if { (eval echo configure
:3651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3652 eval "ac_cv_lib_$ac_lib_var=yes"
3654 echo "configure: failed program was:" >&5
3655 cat conftest.
$ac_ext >&5
3657 eval "ac_cv_lib_$ac_lib_var=no"
3660 LIBS
="$ac_save_LIBS"
3663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3664 echo "$ac_t""yes" 1>&6
3665 cat >> confdefs.h
<<\EOF
3666 #define WITH_THREAD 1
3669 case $ac_sys_system in
3671 *) cat >> confdefs.h
<<\EOF
3672 #define _POSIX_THREADS 1
3678 LIBS
="-lpthread $LIBS"
3679 LIBOBJS
="$LIBOBJS thread.o"
3681 echo "$ac_t""no" 1>&6
3683 echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6
3684 echo "configure:3685: checking for pthread_detach" >&5
3685 if eval "test \"`echo '$''{'ac_cv_func_pthread_detach'+set}'`\" = set"; then
3686 echo $ac_n "(cached) $ac_c" 1>&6
3688 cat > conftest.
$ac_ext <<EOF
3689 #line 3690 "configure"
3690 #include "confdefs.h"
3691 /* System header to define __stub macros and hopefully few prototypes,
3692 which can conflict with char pthread_detach(); below. */
3694 /* Override any gcc2 internal prototype to avoid an error. */
3695 /* We use char because int might match the return type of a gcc2
3696 builtin and then its argument prototype would still apply. */
3697 char pthread_detach();
3701 /* The GNU C library defines this for functions which it implements
3702 to always fail with ENOSYS. Some functions are actually named
3703 something starting with __ and the normal name is an alias. */
3704 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
3712 if { (eval echo configure
:3713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3714 eval "ac_cv_func_pthread_detach=yes"
3716 echo "configure: failed program was:" >&5
3717 cat conftest.
$ac_ext >&5
3719 eval "ac_cv_func_pthread_detach=no"
3724 if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then
3725 echo "$ac_t""yes" 1>&6
3726 cat >> confdefs.h
<<\EOF
3727 #define WITH_THREAD 1
3730 case $ac_sys_system in
3732 *) cat >> confdefs.h
<<\EOF
3733 #define _POSIX_THREADS 1
3739 LIBOBJS
="$LIBOBJS thread.o"
3741 echo "$ac_t""no" 1>&6
3743 ac_safe
=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'`
3744 echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6
3745 echo "configure:3746: checking for kernel/OS.h" >&5
3746 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3747 echo $ac_n "(cached) $ac_c" 1>&6
3749 cat > conftest.
$ac_ext <<EOF
3750 #line 3751 "configure"
3751 #include "confdefs.h"
3752 #include <kernel/OS.h>
3754 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3755 { (eval echo configure
:3756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3756 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3757 if test -z "$ac_err"; then
3759 eval "ac_cv_header_$ac_safe=yes"
3762 echo "configure: failed program was:" >&5
3763 cat conftest.
$ac_ext >&5
3765 eval "ac_cv_header_$ac_safe=no"
3769 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3770 echo "$ac_t""yes" 1>&6
3771 cat >> confdefs.h
<<\EOF
3772 #define WITH_THREAD 1
3775 cat >> confdefs.h
<<\EOF
3776 #define BEOS_THREADS 1
3779 LIBOBJS
="$LIBOBJS thread.o"
3781 echo "$ac_t""no" 1>&6
3783 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
3784 echo "configure:3785: checking for pthread_create in -lpthreads" >&5
3785 ac_lib_var
=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
3786 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3787 echo $ac_n "(cached) $ac_c" 1>&6
3789 ac_save_LIBS
="$LIBS"
3790 LIBS
="-lpthreads $LIBS"
3791 cat > conftest.
$ac_ext <<EOF
3792 #line 3793 "configure"
3793 #include "confdefs.h"
3794 /* Override any gcc2 internal prototype to avoid an error. */
3795 /* We use char because int might match the return type of a gcc2
3796 builtin and then its argument prototype would still apply. */
3797 char pthread_create();
3803 if { (eval echo configure
:3804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3805 eval "ac_cv_lib_$ac_lib_var=yes"
3807 echo "configure: failed program was:" >&5
3808 cat conftest.
$ac_ext >&5
3810 eval "ac_cv_lib_$ac_lib_var=no"
3813 LIBS
="$ac_save_LIBS"
3816 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3817 echo "$ac_t""yes" 1>&6
3818 cat >> confdefs.h
<<\EOF
3819 #define WITH_THREAD 1
3822 cat >> confdefs.h
<<\EOF
3823 #define _POSIX_THREADS 1
3827 LIBS
="$LIBS -lpthreads"
3828 LIBOBJS
="$LIBOBJS thread.o"
3830 echo "$ac_t""no" 1>&6
3832 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
3833 echo "configure:3834: checking for pthread_create in -lc_r" >&5
3834 ac_lib_var
=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
3835 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3836 echo $ac_n "(cached) $ac_c" 1>&6
3838 ac_save_LIBS
="$LIBS"
3840 cat > conftest.
$ac_ext <<EOF
3841 #line 3842 "configure"
3842 #include "confdefs.h"
3843 /* Override any gcc2 internal prototype to avoid an error. */
3844 /* We use char because int might match the return type of a gcc2
3845 builtin and then its argument prototype would still apply. */
3846 char pthread_create();
3852 if { (eval echo configure
:3853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3854 eval "ac_cv_lib_$ac_lib_var=yes"
3856 echo "configure: failed program was:" >&5
3857 cat conftest.
$ac_ext >&5
3859 eval "ac_cv_lib_$ac_lib_var=no"
3862 LIBS
="$ac_save_LIBS"
3865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3866 echo "$ac_t""yes" 1>&6
3867 cat >> confdefs.h
<<\EOF
3868 #define WITH_THREAD 1
3871 cat >> confdefs.h
<<\EOF
3872 #define _POSIX_THREADS 1
3877 LIBOBJS
="$LIBOBJS thread.o"
3879 echo "$ac_t""no" 1>&6
3881 echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6
3882 echo "configure:3883: checking for __d6_pthread_create in -lthread" >&5
3883 ac_lib_var
=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'`
3884 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3885 echo $ac_n "(cached) $ac_c" 1>&6
3887 ac_save_LIBS
="$LIBS"
3888 LIBS
="-lthread $LIBS"
3889 cat > conftest.
$ac_ext <<EOF
3890 #line 3891 "configure"
3891 #include "confdefs.h"
3892 /* Override any gcc2 internal prototype to avoid an error. */
3893 /* We use char because int might match the return type of a gcc2
3894 builtin and then its argument prototype would still apply. */
3895 char __d6_pthread_create();
3898 __d6_pthread_create()
3901 if { (eval echo configure
:3902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3903 eval "ac_cv_lib_$ac_lib_var=yes"
3905 echo "configure: failed program was:" >&5
3906 cat conftest.
$ac_ext >&5
3908 eval "ac_cv_lib_$ac_lib_var=no"
3911 LIBS
="$ac_save_LIBS"
3914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3915 echo "$ac_t""yes" 1>&6
3916 cat >> confdefs.h
<<\EOF
3917 #define WITH_THREAD 1
3920 cat >> confdefs.h
<<\EOF
3921 #define _POSIX_THREADS 1
3925 LIBS
="$LIBS -lthread"
3926 LIBOBJS
="$LIBOBJS thread.o"
3928 echo "$ac_t""no" 1>&6
3930 echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6
3931 echo "configure:3932: checking for __pthread_create_system in -lpthread" >&5
3932 ac_lib_var
=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'`
3933 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3934 echo $ac_n "(cached) $ac_c" 1>&6
3936 ac_save_LIBS
="$LIBS"
3937 LIBS
="-lpthread $LIBS"
3938 cat > conftest.
$ac_ext <<EOF
3939 #line 3940 "configure"
3940 #include "confdefs.h"
3941 /* Override any gcc2 internal prototype to avoid an error. */
3942 /* We use char because int might match the return type of a gcc2
3943 builtin and then its argument prototype would still apply. */
3944 char __pthread_create_system();
3947 __pthread_create_system()
3950 if { (eval echo configure
:3951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3952 eval "ac_cv_lib_$ac_lib_var=yes"
3954 echo "configure: failed program was:" >&5
3955 cat conftest.
$ac_ext >&5
3957 eval "ac_cv_lib_$ac_lib_var=no"
3960 LIBS
="$ac_save_LIBS"
3963 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3964 echo "$ac_t""yes" 1>&6
3965 cat >> confdefs.h
<<\EOF
3966 #define WITH_THREAD 1
3969 cat >> confdefs.h
<<\EOF
3970 #define _POSIX_THREADS 1
3974 LIBS
="$LIBS -lpthread"
3975 LIBOBJS
="$LIBOBJS thread.o"
3977 echo "$ac_t""no" 1>&6
3979 echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6
3980 echo "configure:3981: checking for pthread_create in -lcma" >&5
3981 ac_lib_var
=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'`
3982 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3983 echo $ac_n "(cached) $ac_c" 1>&6
3985 ac_save_LIBS
="$LIBS"
3987 cat > conftest.
$ac_ext <<EOF
3988 #line 3989 "configure"
3989 #include "confdefs.h"
3990 /* Override any gcc2 internal prototype to avoid an error. */
3991 /* We use char because int might match the return type of a gcc2
3992 builtin and then its argument prototype would still apply. */
3993 char pthread_create();
3999 if { (eval echo configure
:4000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4001 eval "ac_cv_lib_$ac_lib_var=yes"
4003 echo "configure: failed program was:" >&5
4004 cat conftest.
$ac_ext >&5
4006 eval "ac_cv_lib_$ac_lib_var=no"
4009 LIBS
="$ac_save_LIBS"
4012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4013 echo "$ac_t""yes" 1>&6
4014 cat >> confdefs.h
<<\EOF
4015 #define WITH_THREAD 1
4018 cat >> confdefs.h
<<\EOF
4019 #define _POSIX_THREADS 1
4024 LIBOBJS
="$LIBOBJS thread.o"
4026 echo "$ac_t""no" 1>&6
4028 USE_THREAD_MODULE
="#"
4051 if test "$posix_threads" = "yes"; then
4052 echo $ac_n "checking if PTHREAD_SCOPE_SYSTEM is supported""... $ac_c" 1>&6
4053 echo "configure:4054: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
4054 if eval "test \"`echo '$''{'ac_cv_pthread_system_supported'+set}'`\" = set"; then
4055 echo $ac_n "(cached) $ac_c" 1>&6
4057 if test "$cross_compiling" = yes; then
4058 ac_cv_pthread_system_supported
=no
4060 cat > conftest.
$ac_ext <<EOF
4061 #line 4062 "configure"
4062 #include "confdefs.h"
4063 #include <pthread.h>
4064 void *foo(void *parm) {
4068 pthread_attr_t attr;
4069 if (pthread_attr_init(&attr)) exit(-1);
4070 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
4071 if (pthread_create(NULL, &attr, foo, NULL)) exit(-1);
4075 if { (eval echo configure
:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4077 ac_cv_pthread_system_supported
=yes
4079 echo "configure: failed program was:" >&5
4080 cat conftest.
$ac_ext >&5
4082 ac_cv_pthread_system_supported
=no
4090 echo "$ac_t""$ac_cv_pthread_system_supported" 1>&6
4091 if test "$ac_cv_pthread_system_supported" = "yes"; then
4092 cat >> confdefs.h
<<\EOF
4093 #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1
4099 echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6
4100 echo "configure:4101: checking for usconfig in -lmpc" >&5
4101 ac_lib_var
=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'`
4102 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4103 echo $ac_n "(cached) $ac_c" 1>&6
4105 ac_save_LIBS
="$LIBS"
4107 cat > conftest.
$ac_ext <<EOF
4108 #line 4109 "configure"
4109 #include "confdefs.h"
4110 /* Override any gcc2 internal prototype to avoid an error. */
4111 /* We use char because int might match the return type of a gcc2
4112 builtin and then its argument prototype would still apply. */
4119 if { (eval echo configure
:4120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4121 eval "ac_cv_lib_$ac_lib_var=yes"
4123 echo "configure: failed program was:" >&5
4124 cat conftest.
$ac_ext >&5
4126 eval "ac_cv_lib_$ac_lib_var=no"
4129 LIBS
="$ac_save_LIBS"
4132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4133 echo "$ac_t""yes" 1>&6
4134 cat >> confdefs.h
<<\EOF
4135 #define WITH_THREAD 1
4139 LIBOBJS
="$LIBOBJS thread.o"
4140 USE_THREAD_MODULE
=""
4142 echo "$ac_t""no" 1>&6
4145 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
4146 echo "configure:4147: checking for thr_create in -lthread" >&5
4147 ac_lib_var
=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
4148 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4149 echo $ac_n "(cached) $ac_c" 1>&6
4151 ac_save_LIBS
="$LIBS"
4152 LIBS
="-lthread $LIBS"
4153 cat > conftest.
$ac_ext <<EOF
4154 #line 4155 "configure"
4155 #include "confdefs.h"
4156 /* Override any gcc2 internal prototype to avoid an error. */
4157 /* We use char because int might match the return type of a gcc2
4158 builtin and then its argument prototype would still apply. */
4165 if { (eval echo configure
:4166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4167 eval "ac_cv_lib_$ac_lib_var=yes"
4169 echo "configure: failed program was:" >&5
4170 cat conftest.
$ac_ext >&5
4172 eval "ac_cv_lib_$ac_lib_var=no"
4175 LIBS
="$ac_save_LIBS"
4178 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4179 echo "$ac_t""yes" 1>&6
4180 cat >> confdefs.h
<<\EOF
4181 #define WITH_THREAD 1
4184 LIBS
="$LIBS -lthread"
4185 LIBOBJS
="$LIBOBJS thread.o"
4186 USE_THREAD_MODULE
=""
4188 echo "$ac_t""no" 1>&6
4192 if test "$USE_THREAD_MODULE" != "#"
4194 # If the above checks didn't disable threads, (at least) OSF1
4195 # needs this '-threads' argument during linking.
4196 case $ac_sys_system in
4197 OSF1
) LDLAST
=-threads;;
4202 # Check for enable-ipv6
4203 echo $ac_n "checking if --enable-ipv6 is specified""... $ac_c" 1>&6
4204 echo "configure:4205: checking if --enable-ipv6 is specified" >&5
4205 # Check whether --enable-ipv6 or --disable-ipv6 was given.
4206 if test "${enable_ipv6+set}" = set; then
4207 enableval
="$enable_ipv6"
4208 case "$enableval" in
4210 echo "$ac_t""no" 1>&6
4213 *) echo "$ac_t""yes" 1>&6
4214 cat >> confdefs.h
<<\EOF
4215 #define ENABLE_IPV6 1
4223 if test "$cross_compiling" = yes; then
4224 echo "$ac_t""no" 1>&6
4228 cat > conftest.
$ac_ext <<EOF
4229 #line 4230 "configure"
4230 #include "confdefs.h"
4231 /* AF_INET6 available check */
4232 #include <sys/types.h>
4233 #include <sys/socket.h>
4236 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4243 if { (eval echo configure
:4244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4245 echo "$ac_t""yes" 1>&6
4248 echo "configure: failed program was:" >&5
4249 cat conftest.
$ac_ext >&5
4251 echo "$ac_t""no" 1>&6
4258 if test "$ipv6" = "yes"; then
4259 echo $ac_n "checking if RFC2553 API is available""... $ac_c" 1>&6
4260 echo "configure:4261: checking if RFC2553 API is available" >&5
4261 cat > conftest.
$ac_ext <<EOF
4262 #line 4263 "configure"
4263 #include "confdefs.h"
4264 #include <sys/types.h>
4265 #include <netinet/in.h>
4267 struct sockaddr_in6 x;
4271 if { (eval echo configure
:4272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4273 echo "$ac_t""yes" 1>&6
4276 echo "configure: failed program was:" >&5
4277 cat conftest.
$ac_ext >&5
4279 echo "$ac_t""no" 1>&6
4285 if test "$ipv6" = "yes"; then
4286 cat >> confdefs.h
<<\EOF
4287 #define ENABLE_IPV6 1
4299 if test "$ipv6" = "yes"; then
4300 echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6
4301 echo "configure:4302: checking ipv6 stack type" >&5
4302 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
4306 cat > conftest.
$ac_ext <<EOF
4307 #line 4308 "configure"
4308 #include "confdefs.h"
4310 #include <netinet/in.h>
4311 #ifdef IPV6_INRIA_VERSION
4315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4316 egrep "yes" >/dev
/null
2>&1; then
4325 cat > conftest.
$ac_ext <<EOF
4326 #line 4327 "configure"
4327 #include "confdefs.h"
4329 #include <netinet/in.h>
4334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4335 egrep "yes" >/dev
/null
2>&1; then
4339 ipv6libdir
=/usr
/local
/v
6/lib
4347 cat > conftest.
$ac_ext <<EOF
4348 #line 4349 "configure"
4349 #include "confdefs.h"
4351 #include <features.h>
4352 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2))
4356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4357 egrep "yes" >/dev
/null
2>&1; then
4367 if test -d /usr
/inet6
; then
4370 ipv6libdir
=/usr
/inet
6/lib
4371 OPT
="-DINET6 -I/usr/inet6/include $OPT"
4375 if test -f /etc
/netconfig
; then
4376 if /usr
/xpg
4/bin
/grep -q tcp6
/etc
/netconfig
; then
4384 cat > conftest.
$ac_ext <<EOF
4385 #line 4386 "configure"
4386 #include "confdefs.h"
4388 #include <sys/param.h>
4389 #ifdef _TOSHIBA_INET6
4393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4394 egrep "yes" >/dev
/null
2>&1; then
4398 ipv6libdir
=/usr
/local
/v
6/lib
;
4405 cat > conftest.
$ac_ext <<EOF
4406 #line 4407 "configure"
4407 #include "confdefs.h"
4409 #include </usr/local/v6/include/sys/v6config.h>
4414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4415 egrep "yes" >/dev
/null
2>&1; then
4419 ipv6libdir
=/usr
/local
/v
6/lib
;
4420 OPT
="-I/usr/local/v6/include $OPT"
4426 cat > conftest.
$ac_ext <<EOF
4427 #line 4428 "configure"
4428 #include "confdefs.h"
4430 #include <sys/param.h>
4431 #ifdef _ZETA_MINAMI_INET6
4435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4436 egrep "yes" >/dev
/null
2>&1; then
4440 ipv6libdir
=/usr
/local
/v
6/lib
;
4447 if test "$ipv6type" != "unknown"; then
4451 echo "$ac_t""$ipv6type" 1>&6
4454 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4455 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
4456 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
4457 echo "using lib$ipv6lib"
4459 if test $ipv6trylibc = "yes"; then
4462 echo 'Fatal: no $ipv6lib library found. cannot continue.'
4463 echo "You need to fetch lib$ipv6lib.a from appropriate"
4464 echo 'ipv6 kit and compile beforehand.'
4470 # Check for GC support
4471 echo $ac_n "checking for --with-cycle-gc""... $ac_c" 1>&6
4472 echo "configure:4473: checking for --with-cycle-gc" >&5
4473 # Check whether --with-cycle-gc or --without-cycle-gc was given.
4474 if test "${with_cycle_gc+set}" = set; then
4475 withval
="$with_cycle_gc"
4480 if test -z "$with_cycle_gc"
4481 then with_cycle_gc
="yes"
4483 if test "$with_cycle_gc" != "no"
4485 cat >> confdefs.h
<<\EOF
4486 #define WITH_CYCLE_GC 1
4490 echo "$ac_t""$with_cycle_gc" 1>&6
4492 # Check for Python-specific malloc support
4493 echo $ac_n "checking for --with-pymalloc""... $ac_c" 1>&6
4494 echo "configure:4495: checking for --with-pymalloc" >&5
4495 # Check whether --with-pymalloc or --without-pymalloc was given.
4496 if test "${with_pymalloc+set}" = set; then
4497 withval
="$with_pymalloc"
4499 if test "$withval" != no
4500 then cat >> confdefs.h
<<\EOF
4501 #define WITH_PYMALLOC 1
4503 echo "$ac_t""yes" 1>&6
4504 else echo "$ac_t""no" 1>&6
4507 echo "$ac_t""no" 1>&6
4511 # Check for --with-wctype-functions
4512 echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6
4513 echo "configure:4514: checking for --with-wctype-functions" >&5
4514 # Check whether --with-wctype-functions or --without-wctype-functions was given.
4515 if test "${with_wctype_functions+set}" = set; then
4516 withval
="$with_wctype_functions"
4518 if test "$withval" != no
4519 then cat >> confdefs.h
<<\EOF
4520 #define WANT_WCTYPE_FUNCTIONS 1
4522 echo "$ac_t""yes" 1>&6
4523 else echo "$ac_t""no" 1>&6
4526 echo "$ac_t""no" 1>&6
4530 # -I${DLINCLDIR} is added to the compile rule for importdl.o
4534 echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6
4535 echo "configure:4536: checking for --with-sgi-dl" >&5
4536 # Check whether --with-sgi-dl or --without-sgi-dl was given.
4537 if test "${with_sgi_dl+set}" = set; then
4538 withval
="$with_sgi_dl"
4540 echo "$ac_t""$withval" 1>&6
4541 cat >> confdefs.h
<<\EOF
4542 #define WITH_SGI_DL 1
4545 DYNLOADFILE
="dynload_dl.o"
4547 if test ! -z "$dldir" -a -d "$dldir"
4548 then LDFLAGS
="$LDFLAGS -L$dldir"
4549 else { echo "configure: error: proper usage is --with-sgi-dl=DIRECTORY" 1>&2; exit 1; }
4552 LIBS
="$LIBS -ldl -lmld"
4554 echo "$ac_t""no" 1>&6
4558 echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6
4559 echo "configure:4560: checking for --with-dl-dld" >&5
4560 # Check whether --with-dl-dld or --without-dl-dld was given.
4561 if test "${with_dl_dld+set}" = set; then
4562 withval
="$with_dl_dld"
4564 echo "$ac_t""$withval" 1>&6
4565 cat >> confdefs.h
<<\EOF
4566 #define WITH_DL_DLD 1
4569 DYNLOADFILE
="dynload_dl.o"
4570 dldir
=`echo "$withval" | sed 's/,.*//'`
4571 dlddir
=`echo "$withval" | sed 's/.*,//'`
4572 if test ! -z "$dldir" -a -d "$dldir" -a ! -z "$dlddir" -a -d "$dlddir"
4573 then LDFLAGS
="$LDFLAGS -L$dldir -L$dlddir"
4574 else { echo "configure: error: proper usage is --with-dl-dld=DL_DIRECTORY" 1>&2; exit 1; }
4577 LIBS
="$LIBS -ldl -ldld"
4579 echo "$ac_t""no" 1>&6
4583 # the dlopen() function means we might want to use dynload_shlib.o. some
4584 # platforms, such as AIX, have dlopen(), but don't want to use it.
4585 for ac_func
in dlopen
4587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4588 echo "configure:4589: checking for $ac_func" >&5
4589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4590 echo $ac_n "(cached) $ac_c" 1>&6
4592 cat > conftest.
$ac_ext <<EOF
4593 #line 4594 "configure"
4594 #include "confdefs.h"
4595 /* System header to define __stub macros and hopefully few prototypes,
4596 which can conflict with char $ac_func(); below. */
4598 /* Override any gcc2 internal prototype to avoid an error. */
4599 /* We use char because int might match the return type of a gcc2
4600 builtin and then its argument prototype would still apply. */
4605 /* The GNU C library defines this for functions which it implements
4606 to always fail with ENOSYS. Some functions are actually named
4607 something starting with __ and the normal name is an alias. */
4608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4616 if { (eval echo configure
:4617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4618 eval "ac_cv_func_$ac_func=yes"
4620 echo "configure: failed program was:" >&5
4621 cat conftest.
$ac_ext >&5
4623 eval "ac_cv_func_$ac_func=no"
4628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4629 echo "$ac_t""yes" 1>&6
4630 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4631 cat >> confdefs.h
<<EOF
4632 #define $ac_tr_func 1
4636 echo "$ac_t""no" 1>&6
4641 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
4642 # loading of modules.
4644 echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6
4645 echo "configure:4646: checking DYNLOADFILE" >&5
4646 if test -z "$DYNLOADFILE"
4648 case $ac_sys_system/$ac_sys_release in
4649 AIX
*) DYNLOADFILE
="dynload_aix.o";;
4650 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
4651 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
4652 Darwin
/*) DYNLOADFILE
="dynload_next.o";;
4654 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
4655 # out any dynamic loading
4656 if test "$ac_cv_func_dlopen" = yes
4657 then DYNLOADFILE
="dynload_shlib.o"
4658 else DYNLOADFILE
="dynload_stub.o"
4663 echo "$ac_t""$DYNLOADFILE" 1>&6
4664 if test "$DYNLOADFILE" != "dynload_stub.o"
4666 cat >> confdefs.h
<<\EOF
4667 #define HAVE_DYNAMIC_LOADING 1
4672 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
4675 echo $ac_n "checking MACHDEP_OBJS""... $ac_c" 1>&6
4676 echo "configure:4677: checking MACHDEP_OBJS" >&5
4677 if test -z "$MACHDEP_OBJS"
4679 MACHDEP_OBJS
=$extra_machdep_objs
4681 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
4683 echo "$ac_t""MACHDEP_OBJS" 1>&6
4685 # checks for library functions
4686 for ac_func
in alarm chown
clock confstr ctermid ctermid_r execv \
4687 flock fork fsync fdatasync fpathconf ftime ftruncate \
4688 gai_strerror getgroups getlogin getpeername getpid getpwent getwd \
4689 hstrerror inet_pton
kill link lstat
mkfifo mktime mremap \
4690 nice pathconf pause plock poll pthread_init \
4692 select setegid seteuid setgid \
4693 setlocale setregid setreuid setsid setpgid setuid setvbuf snprintf \
4694 sigaction siginterrupt sigrelse strftime strptime symlink sysconf \
4695 tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
4696 truncate uname waitpid _getpty getpriority
4698 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4699 echo "configure:4700: checking for $ac_func" >&5
4700 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4701 echo $ac_n "(cached) $ac_c" 1>&6
4703 cat > conftest.
$ac_ext <<EOF
4704 #line 4705 "configure"
4705 #include "confdefs.h"
4706 /* System header to define __stub macros and hopefully few prototypes,
4707 which can conflict with char $ac_func(); below. */
4709 /* Override any gcc2 internal prototype to avoid an error. */
4710 /* We use char because int might match the return type of a gcc2
4711 builtin and then its argument prototype would still apply. */
4716 /* The GNU C library defines this for functions which it implements
4717 to always fail with ENOSYS. Some functions are actually named
4718 something starting with __ and the normal name is an alias. */
4719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4727 if { (eval echo configure
:4728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4729 eval "ac_cv_func_$ac_func=yes"
4731 echo "configure: failed program was:" >&5
4732 cat conftest.
$ac_ext >&5
4734 eval "ac_cv_func_$ac_func=no"
4739 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4740 echo "$ac_t""yes" 1>&6
4741 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4742 cat >> confdefs.h
<<EOF
4743 #define $ac_tr_func 1
4747 echo "$ac_t""no" 1>&6
4752 # check for openpty and forkpty
4754 for ac_func
in openpty
4756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4757 echo "configure:4758: checking for $ac_func" >&5
4758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4759 echo $ac_n "(cached) $ac_c" 1>&6
4761 cat > conftest.
$ac_ext <<EOF
4762 #line 4763 "configure"
4763 #include "confdefs.h"
4764 /* System header to define __stub macros and hopefully few prototypes,
4765 which can conflict with char $ac_func(); below. */
4767 /* Override any gcc2 internal prototype to avoid an error. */
4768 /* We use char because int might match the return type of a gcc2
4769 builtin and then its argument prototype would still apply. */
4774 /* The GNU C library defines this for functions which it implements
4775 to always fail with ENOSYS. Some functions are actually named
4776 something starting with __ and the normal name is an alias. */
4777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4785 if { (eval echo configure
:4786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4787 eval "ac_cv_func_$ac_func=yes"
4789 echo "configure: failed program was:" >&5
4790 cat conftest.
$ac_ext >&5
4792 eval "ac_cv_func_$ac_func=no"
4797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4798 echo "$ac_t""yes" 1>&6
4799 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4800 cat >> confdefs.h
<<EOF
4801 #define $ac_tr_func 1
4805 echo "$ac_t""no" 1>&6
4806 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
4807 echo "configure:4808: checking for openpty in -lutil" >&5
4808 ac_lib_var
=`echo util'_'openpty | sed 'y%./+-%__p_%'`
4809 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4810 echo $ac_n "(cached) $ac_c" 1>&6
4812 ac_save_LIBS
="$LIBS"
4814 cat > conftest.
$ac_ext <<EOF
4815 #line 4816 "configure"
4816 #include "confdefs.h"
4817 /* Override any gcc2 internal prototype to avoid an error. */
4818 /* We use char because int might match the return type of a gcc2
4819 builtin and then its argument prototype would still apply. */
4826 if { (eval echo configure
:4827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4828 eval "ac_cv_lib_$ac_lib_var=yes"
4830 echo "configure: failed program was:" >&5
4831 cat conftest.
$ac_ext >&5
4833 eval "ac_cv_lib_$ac_lib_var=no"
4836 LIBS
="$ac_save_LIBS"
4839 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4840 echo "$ac_t""yes" 1>&6
4841 cat >> confdefs.h
<<\EOF
4842 #define HAVE_OPENPTY 1
4846 echo "$ac_t""no" 1>&6
4852 for ac_func
in forkpty
4854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4855 echo "configure:4856: checking for $ac_func" >&5
4856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4857 echo $ac_n "(cached) $ac_c" 1>&6
4859 cat > conftest.
$ac_ext <<EOF
4860 #line 4861 "configure"
4861 #include "confdefs.h"
4862 /* System header to define __stub macros and hopefully few prototypes,
4863 which can conflict with char $ac_func(); below. */
4865 /* Override any gcc2 internal prototype to avoid an error. */
4866 /* We use char because int might match the return type of a gcc2
4867 builtin and then its argument prototype would still apply. */
4872 /* The GNU C library defines this for functions which it implements
4873 to always fail with ENOSYS. Some functions are actually named
4874 something starting with __ and the normal name is an alias. */
4875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4883 if { (eval echo configure
:4884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4885 eval "ac_cv_func_$ac_func=yes"
4887 echo "configure: failed program was:" >&5
4888 cat conftest.
$ac_ext >&5
4890 eval "ac_cv_func_$ac_func=no"
4895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4896 echo "$ac_t""yes" 1>&6
4897 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4898 cat >> confdefs.h
<<EOF
4899 #define $ac_tr_func 1
4903 echo "$ac_t""no" 1>&6
4904 echo $ac_n "checking for forkpty in -lutil""... $ac_c" 1>&6
4905 echo "configure:4906: checking for forkpty in -lutil" >&5
4906 ac_lib_var
=`echo util'_'forkpty | sed 'y%./+-%__p_%'`
4907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4908 echo $ac_n "(cached) $ac_c" 1>&6
4910 ac_save_LIBS
="$LIBS"
4912 cat > conftest.
$ac_ext <<EOF
4913 #line 4914 "configure"
4914 #include "confdefs.h"
4915 /* Override any gcc2 internal prototype to avoid an error. */
4916 /* We use char because int might match the return type of a gcc2
4917 builtin and then its argument prototype would still apply. */
4924 if { (eval echo configure
:4925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4926 eval "ac_cv_lib_$ac_lib_var=yes"
4928 echo "configure: failed program was:" >&5
4929 cat conftest.
$ac_ext >&5
4931 eval "ac_cv_lib_$ac_lib_var=no"
4934 LIBS
="$ac_save_LIBS"
4937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4938 echo "$ac_t""yes" 1>&6
4939 cat >> confdefs.h
<<\EOF
4940 #define HAVE_FORKPTY 1
4944 echo "$ac_t""no" 1>&6
4951 # check for long file support functions
4952 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
4954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4955 echo "configure:4956: checking for $ac_func" >&5
4956 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4957 echo $ac_n "(cached) $ac_c" 1>&6
4959 cat > conftest.
$ac_ext <<EOF
4960 #line 4961 "configure"
4961 #include "confdefs.h"
4962 /* System header to define __stub macros and hopefully few prototypes,
4963 which can conflict with char $ac_func(); below. */
4965 /* Override any gcc2 internal prototype to avoid an error. */
4966 /* We use char because int might match the return type of a gcc2
4967 builtin and then its argument prototype would still apply. */
4972 /* The GNU C library defines this for functions which it implements
4973 to always fail with ENOSYS. Some functions are actually named
4974 something starting with __ and the normal name is an alias. */
4975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4983 if { (eval echo configure
:4984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4985 eval "ac_cv_func_$ac_func=yes"
4987 echo "configure: failed program was:" >&5
4988 cat conftest.
$ac_ext >&5
4990 eval "ac_cv_func_$ac_func=no"
4995 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4996 echo "$ac_t""yes" 1>&6
4997 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4998 cat >> confdefs.h
<<EOF
4999 #define $ac_tr_func 1
5003 echo "$ac_t""no" 1>&6
5008 for ac_func
in dup2 getcwd strdup strerror memmove
5010 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5011 echo "configure:5012: checking for $ac_func" >&5
5012 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5013 echo $ac_n "(cached) $ac_c" 1>&6
5015 cat > conftest.
$ac_ext <<EOF
5016 #line 5017 "configure"
5017 #include "confdefs.h"
5018 /* System header to define __stub macros and hopefully few prototypes,
5019 which can conflict with char $ac_func(); below. */
5021 /* Override any gcc2 internal prototype to avoid an error. */
5022 /* We use char because int might match the return type of a gcc2
5023 builtin and then its argument prototype would still apply. */
5028 /* The GNU C library defines this for functions which it implements
5029 to always fail with ENOSYS. Some functions are actually named
5030 something starting with __ and the normal name is an alias. */
5031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5039 if { (eval echo configure
:5040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5041 eval "ac_cv_func_$ac_func=yes"
5043 echo "configure: failed program was:" >&5
5044 cat conftest.
$ac_ext >&5
5046 eval "ac_cv_func_$ac_func=no"
5051 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5052 echo "$ac_t""yes" 1>&6
5053 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5054 cat >> confdefs.h
<<EOF
5055 #define $ac_tr_func 1
5059 echo "$ac_t""no" 1>&6
5060 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
5065 for ac_func
in getpgrp
5067 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5068 echo "configure:5069: checking for $ac_func" >&5
5069 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5070 echo $ac_n "(cached) $ac_c" 1>&6
5072 cat > conftest.
$ac_ext <<EOF
5073 #line 5074 "configure"
5074 #include "confdefs.h"
5075 /* System header to define __stub macros and hopefully few prototypes,
5076 which can conflict with char $ac_func(); below. */
5078 /* Override any gcc2 internal prototype to avoid an error. */
5079 /* We use char because int might match the return type of a gcc2
5080 builtin and then its argument prototype would still apply. */
5085 /* The GNU C library defines this for functions which it implements
5086 to always fail with ENOSYS. Some functions are actually named
5087 something starting with __ and the normal name is an alias. */
5088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5096 if { (eval echo configure
:5097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5098 eval "ac_cv_func_$ac_func=yes"
5100 echo "configure: failed program was:" >&5
5101 cat conftest.
$ac_ext >&5
5103 eval "ac_cv_func_$ac_func=no"
5108 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5109 echo "$ac_t""yes" 1>&6
5110 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5111 cat >> confdefs.h
<<EOF
5112 #define $ac_tr_func 1
5114 cat > conftest.
$ac_ext <<EOF
5115 #line 5116 "configure"
5116 #include "confdefs.h"
5122 if { (eval echo configure
:5123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5124 cat >> confdefs.h
<<\EOF
5125 #define GETPGRP_HAVE_ARG 1
5129 echo "configure: failed program was:" >&5
5130 cat conftest.
$ac_ext >&5
5134 echo "$ac_t""no" 1>&6
5138 for ac_func
in setpgrp
5140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5141 echo "configure:5142: checking for $ac_func" >&5
5142 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5143 echo $ac_n "(cached) $ac_c" 1>&6
5145 cat > conftest.
$ac_ext <<EOF
5146 #line 5147 "configure"
5147 #include "confdefs.h"
5148 /* System header to define __stub macros and hopefully few prototypes,
5149 which can conflict with char $ac_func(); below. */
5151 /* Override any gcc2 internal prototype to avoid an error. */
5152 /* We use char because int might match the return type of a gcc2
5153 builtin and then its argument prototype would still apply. */
5158 /* The GNU C library defines this for functions which it implements
5159 to always fail with ENOSYS. Some functions are actually named
5160 something starting with __ and the normal name is an alias. */
5161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5169 if { (eval echo configure
:5170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5171 eval "ac_cv_func_$ac_func=yes"
5173 echo "configure: failed program was:" >&5
5174 cat conftest.
$ac_ext >&5
5176 eval "ac_cv_func_$ac_func=no"
5181 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5182 echo "$ac_t""yes" 1>&6
5183 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5184 cat >> confdefs.h
<<EOF
5185 #define $ac_tr_func 1
5187 cat > conftest.
$ac_ext <<EOF
5188 #line 5189 "configure"
5189 #include "confdefs.h"
5195 if { (eval echo configure
:5196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5197 cat >> confdefs.h
<<\EOF
5198 #define SETPGRP_HAVE_ARG 1
5202 echo "configure: failed program was:" >&5
5203 cat conftest.
$ac_ext >&5
5207 echo "$ac_t""no" 1>&6
5211 for ac_func
in gettimeofday
5213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5214 echo "configure:5215: checking for $ac_func" >&5
5215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5216 echo $ac_n "(cached) $ac_c" 1>&6
5218 cat > conftest.
$ac_ext <<EOF
5219 #line 5220 "configure"
5220 #include "confdefs.h"
5221 /* System header to define __stub macros and hopefully few prototypes,
5222 which can conflict with char $ac_func(); below. */
5224 /* Override any gcc2 internal prototype to avoid an error. */
5225 /* We use char because int might match the return type of a gcc2
5226 builtin and then its argument prototype would still apply. */
5231 /* The GNU C library defines this for functions which it implements
5232 to always fail with ENOSYS. Some functions are actually named
5233 something starting with __ and the normal name is an alias. */
5234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5242 if { (eval echo configure
:5243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5244 eval "ac_cv_func_$ac_func=yes"
5246 echo "configure: failed program was:" >&5
5247 cat conftest.
$ac_ext >&5
5249 eval "ac_cv_func_$ac_func=no"
5254 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5255 echo "$ac_t""yes" 1>&6
5256 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5257 cat >> confdefs.h
<<EOF
5258 #define $ac_tr_func 1
5260 cat > conftest.
$ac_ext <<EOF
5261 #line 5262 "configure"
5262 #include "confdefs.h"
5263 #include <sys/time.h>
5265 gettimeofday((struct timeval*)0,(struct timezone*)0);
5268 if { (eval echo configure
:5269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5271 echo "configure: failed program was:" >&5
5272 cat conftest.
$ac_ext >&5
5274 cat >> confdefs.h
<<\EOF
5275 #define GETTIMEOFDAY_NO_TZ 1
5281 echo "$ac_t""no" 1>&6
5286 for ac_func
in getaddrinfo
5288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5289 echo "configure:5290: checking for $ac_func" >&5
5290 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5291 echo $ac_n "(cached) $ac_c" 1>&6
5293 cat > conftest.
$ac_ext <<EOF
5294 #line 5295 "configure"
5295 #include "confdefs.h"
5296 /* System header to define __stub macros and hopefully few prototypes,
5297 which can conflict with char $ac_func(); below. */
5299 /* Override any gcc2 internal prototype to avoid an error. */
5300 /* We use char because int might match the return type of a gcc2
5301 builtin and then its argument prototype would still apply. */
5306 /* The GNU C library defines this for functions which it implements
5307 to always fail with ENOSYS. Some functions are actually named
5308 something starting with __ and the normal name is an alias. */
5309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5317 if { (eval echo configure
:5318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5319 eval "ac_cv_func_$ac_func=yes"
5321 echo "configure: failed program was:" >&5
5322 cat conftest.
$ac_ext >&5
5324 eval "ac_cv_func_$ac_func=no"
5329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5330 echo "$ac_t""yes" 1>&6
5331 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5332 cat >> confdefs.h
<<EOF
5333 #define $ac_tr_func 1
5335 echo $ac_n "checking getaddrinfo bug""... $ac_c" 1>&6
5336 echo "configure:5337: checking getaddrinfo bug" >&5
5337 if test "$cross_compiling" = yes; then
5338 echo "$ac_t""buggy" 1>&6
5339 buggygetaddrinfo
=yes
5341 cat > conftest.
$ac_ext <<EOF
5342 #line 5343 "configure"
5343 #include "confdefs.h"
5345 #include <sys/types.h>
5348 #include <sys/socket.h>
5349 #include <netinet/in.h>
5353 int passive, gaierr, inet4 = 0, inet6 = 0;
5354 struct addrinfo hints, *ai, *aitop;
5355 char straddr[INET6_ADDRSTRLEN], strport[16];
5357 for (passive = 0; passive <= 1; passive++) {
5358 memset(&hints, 0, sizeof(hints));
5359 hints.ai_family = AF_UNSPEC;
5360 hints.ai_flags = passive ? AI_PASSIVE : 0;
5361 hints.ai_socktype = SOCK_STREAM;
5362 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
5363 (void)gai_strerror(gaierr);
5366 for (ai = aitop; ai; ai = ai->ai_next) {
5367 if (ai->ai_addr == NULL ||
5368 ai->ai_addrlen == 0 ||
5369 getnameinfo(ai->ai_addr, ai->ai_addrlen,
5370 straddr, sizeof(straddr), strport, sizeof(strport),
5371 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
5374 switch (ai->ai_family) {
5376 if (strcmp(strport, "54321") != 0) {
5380 if (strcmp(straddr, "0.0.0.0") != 0) {
5384 if (strcmp(straddr, "127.0.0.1") != 0) {
5391 if (strcmp(strport, "54321") != 0) {
5395 if (strcmp(straddr, "::") != 0) {
5399 if (strcmp(straddr, "::1") != 0) {
5409 /* another family support? */
5415 if (!(inet4 == 0 || inet4 == 2))
5417 if (!(inet6 == 0 || inet6 == 2))
5421 freeaddrinfo(aitop);
5426 freeaddrinfo(aitop);
5431 if { (eval echo configure
:5432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5433 echo "$ac_t""good" 1>&6
5436 echo "configure: failed program was:" >&5
5437 cat conftest.
$ac_ext >&5
5439 echo "$ac_t""buggy" 1>&6
5440 buggygetaddrinfo
=yes
5446 echo "$ac_t""no" 1>&6
5447 buggygetaddrinfo
=yes
5452 if test "$buggygetaddrinfo" = "yes"; then
5453 if test "$ipv6" = "yes"; then
5454 echo 'Fatal: You must get working getaddrinfo() function.'
5455 echo ' or you can specify "--disable-ipv6"'.
5459 for ac_func
in getnameinfo
5461 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5462 echo "configure:5463: checking for $ac_func" >&5
5463 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5464 echo $ac_n "(cached) $ac_c" 1>&6
5466 cat > conftest.
$ac_ext <<EOF
5467 #line 5468 "configure"
5468 #include "confdefs.h"
5469 /* System header to define __stub macros and hopefully few prototypes,
5470 which can conflict with char $ac_func(); below. */
5472 /* Override any gcc2 internal prototype to avoid an error. */
5473 /* We use char because int might match the return type of a gcc2
5474 builtin and then its argument prototype would still apply. */
5479 /* The GNU C library defines this for functions which it implements
5480 to always fail with ENOSYS. Some functions are actually named
5481 something starting with __ and the normal name is an alias. */
5482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5490 if { (eval echo configure
:5491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5492 eval "ac_cv_func_$ac_func=yes"
5494 echo "configure: failed program was:" >&5
5495 cat conftest.
$ac_ext >&5
5497 eval "ac_cv_func_$ac_func=no"
5502 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5503 echo "$ac_t""yes" 1>&6
5504 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5505 cat >> confdefs.h
<<EOF
5506 #define $ac_tr_func 1
5510 echo "$ac_t""no" 1>&6
5515 # checks for structures
5516 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
5517 echo "configure:5518: checking whether time.h and sys/time.h may both be included" >&5
5518 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
5519 echo $ac_n "(cached) $ac_c" 1>&6
5521 cat > conftest.
$ac_ext <<EOF
5522 #line 5523 "configure"
5523 #include "confdefs.h"
5524 #include <sys/types.h>
5525 #include <sys/time.h>
5531 if { (eval echo configure
:5532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5533 ac_cv_header_time
=yes
5535 echo "configure: failed program was:" >&5
5536 cat conftest.
$ac_ext >&5
5538 ac_cv_header_time
=no
5543 echo "$ac_t""$ac_cv_header_time" 1>&6
5544 if test $ac_cv_header_time = yes; then
5545 cat >> confdefs.h
<<\EOF
5546 #define TIME_WITH_SYS_TIME 1
5551 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
5552 echo "configure:5553: checking whether struct tm is in sys/time.h or time.h" >&5
5553 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5554 echo $ac_n "(cached) $ac_c" 1>&6
5556 cat > conftest.
$ac_ext <<EOF
5557 #line 5558 "configure"
5558 #include "confdefs.h"
5559 #include <sys/types.h>
5562 struct tm *tp; tp->tm_sec;
5565 if { (eval echo configure
:5566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5567 ac_cv_struct_tm
=time.h
5569 echo "configure: failed program was:" >&5
5570 cat conftest.
$ac_ext >&5
5572 ac_cv_struct_tm
=sys
/time.h
5577 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5578 if test $ac_cv_struct_tm = sys
/time.h
; then
5579 cat >> confdefs.h
<<\EOF
5580 #define TM_IN_SYS_TIME 1
5585 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
5586 echo "configure:5587: checking for tm_zone in struct tm" >&5
5587 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5588 echo $ac_n "(cached) $ac_c" 1>&6
5590 cat > conftest.
$ac_ext <<EOF
5591 #line 5592 "configure"
5592 #include "confdefs.h"
5593 #include <sys/types.h>
5594 #include <$ac_cv_struct_tm>
5596 struct tm tm; tm.tm_zone;
5599 if { (eval echo configure
:5600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5601 ac_cv_struct_tm_zone
=yes
5603 echo "configure: failed program was:" >&5
5604 cat conftest.
$ac_ext >&5
5606 ac_cv_struct_tm_zone
=no
5611 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5612 if test "$ac_cv_struct_tm_zone" = yes; then
5613 cat >> confdefs.h
<<\EOF
5614 #define HAVE_TM_ZONE 1
5618 echo $ac_n "checking for tzname""... $ac_c" 1>&6
5619 echo "configure:5620: checking for tzname" >&5
5620 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5621 echo $ac_n "(cached) $ac_c" 1>&6
5623 cat > conftest.
$ac_ext <<EOF
5624 #line 5625 "configure"
5625 #include "confdefs.h"
5627 #ifndef tzname /* For SGI. */
5628 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5634 if { (eval echo configure
:5635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5636 ac_cv_var_tzname
=yes
5638 echo "configure: failed program was:" >&5
5639 cat conftest.
$ac_ext >&5
5646 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5647 if test $ac_cv_var_tzname = yes; then
5648 cat >> confdefs.h
<<\EOF
5649 #define HAVE_TZNAME 1
5656 echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6
5657 echo "configure:5658: checking for time.h that defines altzone" >&5
5658 if eval "test \"`echo '$''{'ac_cv_header_time_altzone'+set}'`\" = set"; then
5659 echo $ac_n "(cached) $ac_c" 1>&6
5661 cat > conftest.
$ac_ext <<EOF
5662 #line 5663 "configure"
5663 #include "confdefs.h"
5669 if { (eval echo configure
:5670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5671 ac_cv_header_time_altzone
=yes
5673 echo "configure: failed program was:" >&5
5674 cat conftest.
$ac_ext >&5
5676 ac_cv_header_time_altzone
=no
5681 echo "$ac_t""$ac_cv_header_time_altzone" 1>&6
5682 if test $ac_cv_header_time_altzone = yes; then
5683 cat >> confdefs.h
<<\EOF
5684 #define HAVE_ALTZONE 1
5690 echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6
5691 echo "configure:5692: checking whether sys/select.h and sys/time.h may both be included" >&5
5692 cat > conftest.
$ac_ext <<EOF
5693 #line 5694 "configure"
5694 #include "confdefs.h"
5696 #include <sys/types.h>
5697 #include <sys/select.h>
5698 #include <sys/time.h>
5704 if { (eval echo configure
:5705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5706 cat >> confdefs.h
<<\EOF
5707 #define SYS_SELECT_WITH_SYS_TIME 1
5711 echo "configure: failed program was:" >&5
5712 cat conftest.
$ac_ext >&5
5715 echo "$ac_t""$was_it_defined" 1>&6
5717 echo $ac_n "checking for addrinfo""... $ac_c" 1>&6
5718 echo "configure:5719: checking for addrinfo" >&5
5719 if eval "test \"`echo '$''{'ac_cv_struct_addrinfo'+set}'`\" = set"; then
5720 echo $ac_n "(cached) $ac_c" 1>&6
5722 cat > conftest.
$ac_ext <<EOF
5723 #line 5724 "configure"
5724 #include "confdefs.h"
5731 if { (eval echo configure
:5732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5733 ac_cv_struct_addrinfo
=yes
5735 echo "configure: failed program was:" >&5
5736 cat conftest.
$ac_ext >&5
5738 ac_cv_struct_addrinfo
=no
5743 echo "$ac_t""$ac_cv_struct_addrinfo" 1>&6
5744 if test $ac_cv_struct_addrinfo = yes; then
5745 cat >> confdefs.h
<<\EOF
5746 #define HAVE_ADDRINFO 1
5751 echo $ac_n "checking for sockaddr_storage""... $ac_c" 1>&6
5752 echo "configure:5753: checking for sockaddr_storage" >&5
5753 if eval "test \"`echo '$''{'ac_cv_struct_sockaddr_storage'+set}'`\" = set"; then
5754 echo $ac_n "(cached) $ac_c" 1>&6
5756 cat > conftest.
$ac_ext <<EOF
5757 #line 5758 "configure"
5758 #include "confdefs.h"
5760 # include <sys/types.h>
5761 # include <sys/socket.h>
5763 struct sockaddr_storage s
5766 if { (eval echo configure
:5767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5768 ac_cv_struct_sockaddr_storage
=yes
5770 echo "configure: failed program was:" >&5
5771 cat conftest.
$ac_ext >&5
5773 ac_cv_struct_sockaddr_storage
=no
5778 echo "$ac_t""$ac_cv_struct_sockaddr_storage" 1>&6
5779 if test $ac_cv_struct_sockaddr_storage = yes; then
5780 cat >> confdefs.h
<<\EOF
5781 #define HAVE_SOCKADDR_STORAGE 1
5786 # checks for compiler characteristics
5788 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
5789 echo "configure:5790: checking whether char is unsigned" >&5
5790 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
5791 echo $ac_n "(cached) $ac_c" 1>&6
5793 if test "$GCC" = yes; then
5794 # GCC predefines this symbol on systems where it applies.
5795 cat > conftest.
$ac_ext <<EOF
5796 #line 5797 "configure"
5797 #include "confdefs.h"
5798 #ifdef __CHAR_UNSIGNED__
5803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5804 egrep "yes" >/dev
/null
2>&1; then
5806 ac_cv_c_char_unsigned
=yes
5809 ac_cv_c_char_unsigned
=no
5814 if test "$cross_compiling" = yes; then
5815 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5817 cat > conftest.
$ac_ext <<EOF
5818 #line 5819 "configure"
5819 #include "confdefs.h"
5820 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
5821 #if !defined(__STDC__) || __STDC__ != 1
5825 volatile char c = 255; exit(c < 0);
5828 if { (eval echo configure
:5829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5830 ac_cv_c_char_unsigned
=yes
5832 echo "configure: failed program was:" >&5
5833 cat conftest.
$ac_ext >&5
5835 ac_cv_c_char_unsigned
=no
5843 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
5844 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
5845 cat >> confdefs.h
<<\EOF
5846 #define __CHAR_UNSIGNED__ 1
5851 echo $ac_n "checking for working const""... $ac_c" 1>&6
5852 echo "configure:5853: checking for working const" >&5
5853 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5854 echo $ac_n "(cached) $ac_c" 1>&6
5856 cat > conftest.
$ac_ext <<EOF
5857 #line 5858 "configure"
5858 #include "confdefs.h"
5862 /* Ultrix mips cc rejects this. */
5863 typedef int charset[2]; const charset x;
5864 /* SunOS 4.1.1 cc rejects this. */
5865 char const *const *ccp;
5867 /* NEC SVR4.0.2 mips cc rejects this. */
5868 struct point {int x, y;};
5869 static struct point const zero = {0,0};
5870 /* AIX XL C 1.02.0.0 rejects this.
5871 It does not let you subtract one const X* pointer from another in an arm
5872 of an if-expression whose if-part is not a constant expression */
5873 const char *g = "string";
5874 ccp = &g + (g ? g-g : 0);
5875 /* HPUX 7.0 cc rejects these. */
5878 ccp = (char const *const *) p;
5879 { /* SCO 3.2v4 cc rejects this. */
5881 char const *s = 0 ? (char *) 0 : (char const *) 0;
5885 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5887 const int *foo = &x[0];
5890 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5891 typedef const int *iptr;
5895 { /* AIX XL C 1.02.0.0 rejects this saying
5896 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5897 struct s { int j; const int *ap[3]; };
5898 struct s *b; b->j = 5;
5900 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5906 if { (eval echo configure
:5907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5910 echo "configure: failed program was:" >&5
5911 cat conftest.
$ac_ext >&5
5918 echo "$ac_t""$ac_cv_c_const" 1>&6
5919 if test $ac_cv_c_const = no
; then
5920 cat >> confdefs.h
<<\EOF
5928 echo $ac_n "checking for working volatile""... $ac_c" 1>&6
5929 echo "configure:5930: checking for working volatile" >&5
5930 cat > conftest.
$ac_ext <<EOF
5931 #line 5932 "configure"
5932 #include "confdefs.h"
5935 volatile int x; x = 0;
5938 if { (eval echo configure
:5939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5942 echo "configure: failed program was:" >&5
5943 cat conftest.
$ac_ext >&5
5945 cat >> confdefs.h
<<\EOF
5951 echo "$ac_t""$works" 1>&6
5954 echo $ac_n "checking for working signed char""... $ac_c" 1>&6
5955 echo "configure:5956: checking for working signed char" >&5
5956 cat > conftest.
$ac_ext <<EOF
5957 #line 5958 "configure"
5958 #include "confdefs.h"
5964 if { (eval echo configure
:5965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5968 echo "configure: failed program was:" >&5
5969 cat conftest.
$ac_ext >&5
5971 cat >> confdefs.h
<<\EOF
5977 echo "$ac_t""$works" 1>&6
5980 echo $ac_n "checking for prototypes""... $ac_c" 1>&6
5981 echo "configure:5982: checking for prototypes" >&5
5982 cat > conftest.
$ac_ext <<EOF
5983 #line 5984 "configure"
5984 #include "confdefs.h"
5985 int foo(int x) { return 0; }
5990 if { (eval echo configure
:5991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5992 cat >> confdefs.h
<<\EOF
5993 #define HAVE_PROTOTYPES 1
5997 echo "configure: failed program was:" >&5
5998 cat conftest.
$ac_ext >&5
6001 echo "$ac_t""$have_prototypes" 1>&6
6004 echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6
6005 echo "configure:6006: checking for variable length prototypes and stdarg.h" >&5
6006 cat > conftest.
$ac_ext <<EOF
6007 #line 6008 "configure"
6008 #include "confdefs.h"
6011 int foo(int x, ...) {
6021 return foo(10, "", 3.14);
6024 if { (eval echo configure
:6025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6026 cat >> confdefs.h
<<\EOF
6027 #define HAVE_STDARG_PROTOTYPES 1
6031 echo "configure: failed program was:" >&5
6032 cat conftest.
$ac_ext >&5
6035 echo "$ac_t""$works" 1>&6
6037 if test "$have_prototypes" = yes; then
6039 echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6
6040 echo "configure:6041: checking for bad exec* prototypes" >&5
6041 cat > conftest.
$ac_ext <<EOF
6042 #line 6043 "configure"
6043 #include "confdefs.h"
6046 char **t;execve("@",t,t);
6049 if { (eval echo configure
:6050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6052 echo "configure: failed program was:" >&5
6053 cat conftest.
$ac_ext >&5
6055 cat >> confdefs.h
<<\EOF
6056 #define BAD_EXEC_PROTOTYPES 1
6061 echo "$ac_t""$bad_prototypes" 1>&6
6064 # check if sockaddr has sa_len member
6065 echo $ac_n "checking if sockaddr has sa_len member""... $ac_c" 1>&6
6066 echo "configure:6067: checking if sockaddr has sa_len member" >&5
6067 cat > conftest.
$ac_ext <<EOF
6068 #line 6069 "configure"
6069 #include "confdefs.h"
6070 #include <sys/types.h>
6071 #include <sys/socket.h>
6077 if { (eval echo configure
:6078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6079 echo "$ac_t""yes" 1>&6
6080 cat >> confdefs.h
<<\EOF
6081 #define HAVE_SOCKADDR_SA_LEN 1
6085 echo "configure: failed program was:" >&5
6086 cat conftest.
$ac_ext >&5
6088 echo "$ac_t""no" 1>&6
6092 echo $ac_n "checking for bad static forward""... $ac_c" 1>&6
6093 echo "configure:6094: checking for bad static forward" >&5
6094 if eval "test \"`echo '$''{'ac_cv_bad_static_forward'+set}'`\" = set"; then
6095 echo $ac_n "(cached) $ac_c" 1>&6
6097 if test "$cross_compiling" = yes; then
6098 ac_cv_bad_static_forward
=no
6100 cat > conftest.
$ac_ext <<EOF
6101 #line 6102 "configure"
6102 #include "confdefs.h"
6104 struct s { int a; int b; };
6105 static struct s foo;
6108 random = (int) &foo;
6111 static struct s foo = { 1, 2 };
6113 exit(!((int)&foo == foobar()));
6116 if { (eval echo configure
:6117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6118 ac_cv_bad_static_forward
=no
6120 echo "configure: failed program was:" >&5
6121 cat conftest.
$ac_ext >&5
6123 ac_cv_bad_static_forward
=yes
6130 echo "$ac_t""$ac_cv_bad_static_forward" 1>&6
6131 if test "$ac_cv_bad_static_forward" = yes
6133 cat >> confdefs.h
<<\EOF
6134 #define BAD_STATIC_FORWARD 1
6140 echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6
6141 echo "configure:6142: checking whether va_list is an array" >&5
6142 cat > conftest.
$ac_ext <<EOF
6143 #line 6144 "configure"
6144 #include "confdefs.h"
6146 #ifdef HAVE_STDARG_PROTOTYPES
6149 #include <varargs.h>
6153 va_list list1, list2; list1 = list2;
6156 if { (eval echo configure
:6157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6159 echo "configure: failed program was:" >&5
6160 cat conftest.
$ac_ext >&5
6162 cat >> confdefs.h
<<\EOF
6163 #define VA_LIST_IS_ARRAY 1
6165 va_list_is_array
=yes
6168 echo "$ac_t""$va_list_is_array" 1>&6
6170 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
6171 echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
6172 echo "configure:6173: checking for gethostbyname_r" >&5
6173 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then
6174 echo $ac_n "(cached) $ac_c" 1>&6
6176 cat > conftest.
$ac_ext <<EOF
6177 #line 6178 "configure"
6178 #include "confdefs.h"
6179 /* System header to define __stub macros and hopefully few prototypes,
6180 which can conflict with char gethostbyname_r(); below. */
6182 /* Override any gcc2 internal prototype to avoid an error. */
6183 /* We use char because int might match the return type of a gcc2
6184 builtin and then its argument prototype would still apply. */
6185 char gethostbyname_r();
6189 /* The GNU C library defines this for functions which it implements
6190 to always fail with ENOSYS. Some functions are actually named
6191 something starting with __ and the normal name is an alias. */
6192 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
6200 if { (eval echo configure
:6201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6202 eval "ac_cv_func_gethostbyname_r=yes"
6204 echo "configure: failed program was:" >&5
6205 cat conftest.
$ac_ext >&5
6207 eval "ac_cv_func_gethostbyname_r=no"
6212 if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
6213 echo "$ac_t""yes" 1>&6
6215 cat >> confdefs.h
<<\EOF
6216 #define HAVE_GETHOSTBYNAME_R 1
6219 echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6
6220 echo "configure:6221: checking gethostbyname_r with 6 args" >&5
6222 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
6223 cat > conftest.
$ac_ext <<EOF
6224 #line 6225 "configure"
6225 #include "confdefs.h"
6232 struct hostent *he, *res;
6237 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
6241 if { (eval echo configure
:6242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6244 cat >> confdefs.h
<<\EOF
6245 #define HAVE_GETHOSTBYNAME_R 1
6248 cat >> confdefs.h
<<\EOF
6249 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
6252 echo "$ac_t""yes" 1>&6
6255 echo "configure: failed program was:" >&5
6256 cat conftest.
$ac_ext >&5
6259 echo "$ac_t""no" 1>&6
6260 echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6
6261 echo "configure:6262: checking gethostbyname_r with 5 args" >&5
6262 cat > conftest.
$ac_ext <<EOF
6263 #line 6264 "configure"
6264 #include "confdefs.h"
6276 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
6280 if { (eval echo configure
:6281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6283 cat >> confdefs.h
<<\EOF
6284 #define HAVE_GETHOSTBYNAME_R 1
6287 cat >> confdefs.h
<<\EOF
6288 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
6291 echo "$ac_t""yes" 1>&6
6294 echo "configure: failed program was:" >&5
6295 cat conftest.
$ac_ext >&5
6298 echo "$ac_t""no" 1>&6
6299 echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6
6300 echo "configure:6301: checking gethostbyname_r with 3 args" >&5
6301 cat > conftest.
$ac_ext <<EOF
6302 #line 6303 "configure"
6303 #include "confdefs.h"
6311 struct hostent_data data;
6313 (void) gethostbyname_r(name, he, &data);
6317 if { (eval echo configure
:6318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6320 cat >> confdefs.h
<<\EOF
6321 #define HAVE_GETHOSTBYNAME_R 1
6324 cat >> confdefs.h
<<\EOF
6325 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
6328 echo "$ac_t""yes" 1>&6
6331 echo "configure: failed program was:" >&5
6332 cat conftest.
$ac_ext >&5
6335 echo "$ac_t""no" 1>&6
6348 echo "$ac_t""no" 1>&6
6350 for ac_func
in gethostbyname
6352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6353 echo "configure:6354: checking for $ac_func" >&5
6354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6355 echo $ac_n "(cached) $ac_c" 1>&6
6357 cat > conftest.
$ac_ext <<EOF
6358 #line 6359 "configure"
6359 #include "confdefs.h"
6360 /* System header to define __stub macros and hopefully few prototypes,
6361 which can conflict with char $ac_func(); below. */
6363 /* Override any gcc2 internal prototype to avoid an error. */
6364 /* We use char because int might match the return type of a gcc2
6365 builtin and then its argument prototype would still apply. */
6370 /* The GNU C library defines this for functions which it implements
6371 to always fail with ENOSYS. Some functions are actually named
6372 something starting with __ and the normal name is an alias. */
6373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6381 if { (eval echo configure
:6382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6383 eval "ac_cv_func_$ac_func=yes"
6385 echo "configure: failed program was:" >&5
6386 cat conftest.
$ac_ext >&5
6388 eval "ac_cv_func_$ac_func=no"
6393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6394 echo "$ac_t""yes" 1>&6
6395 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6396 cat >> confdefs.h
<<EOF
6397 #define $ac_tr_func 1
6401 echo "$ac_t""no" 1>&6
6414 # checks for system services
6417 # Linux requires this for correct f.p. operations
6418 echo $ac_n "checking for __fpu_control""... $ac_c" 1>&6
6419 echo "configure:6420: checking for __fpu_control" >&5
6420 if eval "test \"`echo '$''{'ac_cv_func___fpu_control'+set}'`\" = set"; then
6421 echo $ac_n "(cached) $ac_c" 1>&6
6423 cat > conftest.
$ac_ext <<EOF
6424 #line 6425 "configure"
6425 #include "confdefs.h"
6426 /* System header to define __stub macros and hopefully few prototypes,
6427 which can conflict with char __fpu_control(); below. */
6429 /* Override any gcc2 internal prototype to avoid an error. */
6430 /* We use char because int might match the return type of a gcc2
6431 builtin and then its argument prototype would still apply. */
6432 char __fpu_control();
6436 /* The GNU C library defines this for functions which it implements
6437 to always fail with ENOSYS. Some functions are actually named
6438 something starting with __ and the normal name is an alias. */
6439 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
6447 if { (eval echo configure
:6448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6449 eval "ac_cv_func___fpu_control=yes"
6451 echo "configure: failed program was:" >&5
6452 cat conftest.
$ac_ext >&5
6454 eval "ac_cv_func___fpu_control=no"
6459 if eval "test \"`echo '$ac_cv_func_'__fpu_control`\" = yes"; then
6460 echo "$ac_t""yes" 1>&6
6463 echo "$ac_t""no" 1>&6
6464 echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6
6465 echo "configure:6466: checking for __fpu_control in -lieee" >&5
6466 ac_lib_var
=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'`
6467 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6468 echo $ac_n "(cached) $ac_c" 1>&6
6470 ac_save_LIBS
="$LIBS"
6472 cat > conftest.
$ac_ext <<EOF
6473 #line 6474 "configure"
6474 #include "confdefs.h"
6475 /* Override any gcc2 internal prototype to avoid an error. */
6476 /* We use char because int might match the return type of a gcc2
6477 builtin and then its argument prototype would still apply. */
6478 char __fpu_control();
6484 if { (eval echo configure
:6485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6486 eval "ac_cv_lib_$ac_lib_var=yes"
6488 echo "configure: failed program was:" >&5
6489 cat conftest.
$ac_ext >&5
6491 eval "ac_cv_lib_$ac_lib_var=no"
6494 LIBS
="$ac_save_LIBS"
6497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6498 echo "$ac_t""yes" 1>&6
6499 ac_tr_lib
=HAVE_LIB
`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6500 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6501 cat >> confdefs.h
<<EOF
6502 #define $ac_tr_lib 1
6508 echo "$ac_t""no" 1>&6
6515 # Check for --with-fpectl
6516 echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6
6517 echo "configure:6518: checking for --with-fpectl" >&5
6518 # Check whether --with-fpectl or --without-fpectl was given.
6519 if test "${with_fpectl+set}" = set; then
6520 withval
="$with_fpectl"
6522 if test "$withval" != no
6523 then cat >> confdefs.h
<<\EOF
6524 #define WANT_SIGFPE_HANDLER 1
6526 echo "$ac_t""yes" 1>&6
6527 else echo "$ac_t""no" 1>&6
6530 echo "$ac_t""no" 1>&6
6534 # check for --with-libm=...
6536 case $ac_sys_system in
6541 echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6
6542 echo "configure:6543: checking for --with-libm=STRING" >&5
6543 # Check whether --with-libm or --without-libm was given.
6544 if test "${with_libm+set}" = set; then
6545 withval
="$with_libm"
6547 if test "$withval" = no
6549 echo "$ac_t""force LIBM empty" 1>&6
6550 elif test "$withval" != yes
6552 echo "$ac_t""set LIBM=\"$withval\"" 1>&6
6553 else { echo "configure: error: proper usage is --with-libm=STRING" 1>&2; exit 1; }
6556 echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6
6560 # check for --with-libc=...
6562 echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6
6563 echo "configure:6564: checking for --with-libc=STRING" >&5
6564 # Check whether --with-libc or --without-libc was given.
6565 if test "${with_libc+set}" = set; then
6566 withval
="$with_libc"
6568 if test "$withval" = no
6570 echo "$ac_t""force LIBC empty" 1>&6
6571 elif test "$withval" != yes
6573 echo "$ac_t""set LIBC=\"$withval\"" 1>&6
6574 else { echo "configure: error: proper usage is --with-libc=STRING" 1>&2; exit 1; }
6577 echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6
6581 # check for hypot() in math library
6584 for ac_func
in hypot
6586 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6587 echo "configure:6588: checking for $ac_func" >&5
6588 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6589 echo $ac_n "(cached) $ac_c" 1>&6
6591 cat > conftest.
$ac_ext <<EOF
6592 #line 6593 "configure"
6593 #include "confdefs.h"
6594 /* System header to define __stub macros and hopefully few prototypes,
6595 which can conflict with char $ac_func(); below. */
6597 /* Override any gcc2 internal prototype to avoid an error. */
6598 /* We use char because int might match the return type of a gcc2
6599 builtin and then its argument prototype would still apply. */
6604 /* The GNU C library defines this for functions which it implements
6605 to always fail with ENOSYS. Some functions are actually named
6606 something starting with __ and the normal name is an alias. */
6607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6615 if { (eval echo configure
:6616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6617 eval "ac_cv_func_$ac_func=yes"
6619 echo "configure: failed program was:" >&5
6620 cat conftest.
$ac_ext >&5
6622 eval "ac_cv_func_$ac_func=no"
6627 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6628 echo "$ac_t""yes" 1>&6
6629 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6630 cat >> confdefs.h
<<EOF
6631 #define $ac_tr_func 1
6635 echo "$ac_t""no" 1>&6
6636 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
6643 # check whether malloc(0) returns NULL or not
6644 echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6
6645 echo "configure:6646: checking what malloc(0) returns" >&5
6646 if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then
6647 echo $ac_n "(cached) $ac_c" 1>&6
6649 if test "$cross_compiling" = yes; then
6650 ac_cv_malloc_zero
=nonnull
6652 cat > conftest.
$ac_ext <<EOF
6653 #line 6654 "configure"
6654 #include "confdefs.h"
6659 char *malloc(), *realloc();
6665 if (p == NULL) exit(1);
6667 if (p == NULL) exit(1);
6672 if { (eval echo configure
:6673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6674 ac_cv_malloc_zero
=nonnull
6676 echo "configure: failed program was:" >&5
6677 cat conftest.
$ac_ext >&5
6679 ac_cv_malloc_zero
=null
6685 # XXX arm cross-compile?
6686 echo "$ac_t""$ac_cv_malloc_zero" 1>&6
6687 if test "$ac_cv_malloc_zero" = null
6689 cat >> confdefs.h
<<\EOF
6690 #define MALLOC_ZERO_RETURNS_NULL 1
6696 ac_safe
=`echo "wchar.h" | sed 'y%./+-%__p_%'`
6697 echo $ac_n "checking for wchar.h""... $ac_c" 1>&6
6698 echo "configure:6699: checking for wchar.h" >&5
6699 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6700 echo $ac_n "(cached) $ac_c" 1>&6
6702 cat > conftest.
$ac_ext <<EOF
6703 #line 6704 "configure"
6704 #include "confdefs.h"
6707 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6708 { (eval echo configure
:6709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6709 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6710 if test -z "$ac_err"; then
6712 eval "ac_cv_header_$ac_safe=yes"
6715 echo "configure: failed program was:" >&5
6716 cat conftest.
$ac_ext >&5
6718 eval "ac_cv_header_$ac_safe=no"
6722 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6723 echo "$ac_t""yes" 1>&6
6724 cat >> confdefs.h
<<\EOF
6725 #define HAVE_WCHAR_H 1
6729 echo "$ac_t""no" 1>&6
6735 # determine wchar_t size
6736 if test "$wchar_h" = yes
6738 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
6739 echo "configure:6740: checking size of wchar_t" >&5
6740 if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then
6741 echo $ac_n "(cached) $ac_c" 1>&6
6743 if test "$cross_compiling" = yes; then
6744 ac_cv_sizeof_wchar_t
=4
6746 cat > conftest.
$ac_ext <<EOF
6747 #line 6748 "configure"
6748 #include "confdefs.h"
6752 FILE *f=fopen("conftestval", "w");
6754 fprintf(f, "%d\n", sizeof(wchar_t));
6758 if { (eval echo configure
:6759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6760 ac_cv_sizeof_wchar_t
=`cat conftestval`
6762 echo "configure: failed program was:" >&5
6763 cat conftest.
$ac_ext >&5
6765 ac_cv_sizeof_wchar_t
=0
6771 echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
6772 cat >> confdefs.h
<<EOF
6773 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
6779 echo $ac_n "checking what type to use for unicode""... $ac_c" 1>&6
6780 echo "configure:6781: checking what type to use for unicode" >&5
6781 # Check whether --enable-unicode or --disable-unicode was given.
6782 if test "${enable_unicode+set}" = set; then
6783 enableval
="$enable_unicode"
6790 if test $enable_unicode = yes
6792 # Without any arguments, Py_UNICODE defaults to two-byte mode
6793 enable_unicode
="ucs2"
6796 case "$enable_unicode" in
6797 ucs2
) unicode_size
="2"
6798 cat >> confdefs.h
<<\EOF
6799 #define Py_UNICODE_SIZE 2
6803 ucs4
) unicode_size
="4"
6804 cat >> confdefs.h
<<\EOF
6805 #define Py_UNICODE_SIZE 4
6812 if test "$enable_unicode" = "no"
6815 echo "$ac_t""not used" 1>&6
6817 UNICODE_OBJS
="Objects/unicodeobject.o Objects/unicodectype.o"
6818 cat >> confdefs.h
<<\EOF
6819 #define Py_USING_UNICODE 1
6822 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t"
6824 PY_UNICODE_TYPE
="wchar_t"
6825 cat >> confdefs.h
<<\EOF
6826 #define HAVE_USABLE_WCHAR_T 1
6829 cat >> confdefs.h
<<\EOF
6830 #define PY_UNICODE_TYPE wchar_t
6833 elif test "$ac_cv_sizeof_short" = "$unicode_size"
6835 PY_UNICODE_TYPE
="unsigned short"
6836 cat >> confdefs.h
<<\EOF
6837 #define PY_UNICODE_TYPE unsigned short
6840 elif test "$ac_cv_sizeof_long" = "$unicode_size"
6842 PY_UNICODE_TYPE
="unsigned long"
6843 cat >> confdefs.h
<<\EOF
6844 #define PY_UNICODE_TYPE unsigned long
6848 PY_UNICODE_TYPE
="no type found"
6850 echo "$ac_t""$PY_UNICODE_TYPE" 1>&6
6853 # check for endianness
6854 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
6855 echo "configure:6856: checking whether byte ordering is bigendian" >&5
6856 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
6857 echo $ac_n "(cached) $ac_c" 1>&6
6859 ac_cv_c_bigendian
=unknown
6860 # See if sys/param.h defines the BYTE_ORDER macro.
6861 cat > conftest.
$ac_ext <<EOF
6862 #line 6863 "configure"
6863 #include "confdefs.h"
6864 #include <sys/types.h>
6865 #include <sys/param.h>
6868 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
6873 if { (eval echo configure
:6874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6875 # It does; now see whether it defined to BIG_ENDIAN or not.
6876 cat > conftest.
$ac_ext <<EOF
6877 #line 6878 "configure"
6878 #include "confdefs.h"
6879 #include <sys/types.h>
6880 #include <sys/param.h>
6883 #if BYTE_ORDER != BIG_ENDIAN
6888 if { (eval echo configure
:6889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6890 ac_cv_c_bigendian
=yes
6892 echo "configure: failed program was:" >&5
6893 cat conftest.
$ac_ext >&5
6895 ac_cv_c_bigendian
=no
6899 echo "configure: failed program was:" >&5
6900 cat conftest.
$ac_ext >&5
6903 if test $ac_cv_c_bigendian = unknown
; then
6904 if test "$cross_compiling" = yes; then
6905 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
6907 cat > conftest.
$ac_ext <<EOF
6908 #line 6909 "configure"
6909 #include "confdefs.h"
6911 /* Are we little or big endian? From Harbison&Steele. */
6915 char c[sizeof (long)];
6918 exit (u.c[sizeof (long) - 1] == 1);
6921 if { (eval echo configure
:6922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6923 ac_cv_c_bigendian
=no
6925 echo "configure: failed program was:" >&5
6926 cat conftest.
$ac_ext >&5
6928 ac_cv_c_bigendian
=yes
6936 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
6937 if test $ac_cv_c_bigendian = yes; then
6938 cat >> confdefs.h
<<\EOF
6939 #define WORDS_BIGENDIAN 1
6945 # Check whether right shifting a negative integer extends the sign bit
6946 # or fills with zeros (like the Cray J90, according to Tim Peters).
6947 echo $ac_n "checking whether right shift extends the sign bit""... $ac_c" 1>&6
6948 echo "configure:6949: checking whether right shift extends the sign bit" >&5
6949 if eval "test \"`echo '$''{'ac_cv_rshift_extends_sign'+set}'`\" = set"; then
6950 echo $ac_n "(cached) $ac_c" 1>&6
6953 if test "$cross_compiling" = yes; then
6954 ac_cv_rshift_extends_sign
=yes
6956 cat > conftest.
$ac_ext <<EOF
6957 #line 6958 "configure"
6958 #include "confdefs.h"
6962 exit(((-1)>>3 == -1) ? 0 : 1);
6966 if { (eval echo configure
:6967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6968 ac_cv_rshift_extends_sign
=yes
6970 echo "configure: failed program was:" >&5
6971 cat conftest.
$ac_ext >&5
6973 ac_cv_rshift_extends_sign
=no
6980 echo "$ac_t""$ac_cv_rshift_extends_sign" 1>&6
6981 if test "$ac_cv_rshift_extends_sign" = no
6983 cat >> confdefs.h
<<\EOF
6984 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
6989 # check for getc_unlocked and related locking functions
6990 echo $ac_n "checking for getc_unlocked() and friends""... $ac_c" 1>&6
6991 echo "configure:6992: checking for getc_unlocked() and friends" >&5
6992 if eval "test \"`echo '$''{'ac_cv_have_getc_unlocked'+set}'`\" = set"; then
6993 echo $ac_n "(cached) $ac_c" 1>&6
6996 cat > conftest.
$ac_ext <<EOF
6997 #line 6998 "configure"
6998 #include "confdefs.h"
7002 FILE *f = fopen("/dev/null", "r");
7009 if { (eval echo configure
:7010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7011 ac_cv_have_getc_unlocked
=yes
7013 echo "configure: failed program was:" >&5
7014 cat conftest.
$ac_ext >&5
7016 ac_cv_have_getc_unlocked
=no
7021 echo "$ac_t""$ac_cv_have_getc_unlocked" 1>&6
7022 if test "$ac_cv_have_getc_unlocked" = yes
7024 cat >> confdefs.h
<<\EOF
7025 #define HAVE_GETC_UNLOCKED 1
7030 # check for readline 4.2
7031 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
7032 echo "configure:7033: checking for rl_completion_matches in -lreadline" >&5
7033 ac_lib_var
=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
7034 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7035 echo $ac_n "(cached) $ac_c" 1>&6
7037 ac_save_LIBS
="$LIBS"
7038 LIBS
="-lreadline -ltermcap $LIBS"
7039 cat > conftest.
$ac_ext <<EOF
7040 #line 7041 "configure"
7041 #include "confdefs.h"
7042 /* Override any gcc2 internal prototype to avoid an error. */
7043 /* We use char because int might match the return type of a gcc2
7044 builtin and then its argument prototype would still apply. */
7045 char rl_completion_matches();
7048 rl_completion_matches()
7051 if { (eval echo configure
:7052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7053 eval "ac_cv_lib_$ac_lib_var=yes"
7055 echo "configure: failed program was:" >&5
7056 cat conftest.
$ac_ext >&5
7058 eval "ac_cv_lib_$ac_lib_var=no"
7061 LIBS
="$ac_save_LIBS"
7064 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7065 echo "$ac_t""yes" 1>&6
7066 cat >> confdefs.h
<<\EOF
7067 #define HAVE_RL_COMPLETION_MATCHES 1
7071 echo "$ac_t""no" 1>&6
7075 echo $ac_n "checking for broken nice()""... $ac_c" 1>&6
7076 echo "configure:7077: checking for broken nice()" >&5
7077 if eval "test \"`echo '$''{'ac_cv_broken_nice'+set}'`\" = set"; then
7078 echo $ac_n "(cached) $ac_c" 1>&6
7081 if test "$cross_compiling" = yes; then
7082 ac_cv_broken_nice
=no
7084 cat > conftest.
$ac_ext <<EOF
7085 #line 7086 "configure"
7086 #include "confdefs.h"
7091 if (val1 != -1 && val1 == nice(2))
7097 if { (eval echo configure
:7098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7099 ac_cv_broken_nice
=yes
7101 echo "configure: failed program was:" >&5
7102 cat conftest.
$ac_ext >&5
7104 ac_cv_broken_nice
=no
7111 echo "$ac_t""$ac_cv_broken_nice" 1>&6
7112 if test "$ac_cv_broken_nice" = yes
7114 cat >> confdefs.h
<<\EOF
7115 #define HAVE_BROKEN_NICE 1
7120 # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS!
7121 # Add sys/socket.h to confdefs.h
7122 cat >> confdefs.h
<<\EOF
7123 #ifdef HAVE_SYS_SOCKET_H
7124 #include <sys/socket.h>
7127 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
7128 echo "configure:7129: checking for socklen_t" >&5
7129 if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
7130 echo $ac_n "(cached) $ac_c" 1>&6
7132 cat > conftest.
$ac_ext <<EOF
7133 #line 7134 "configure"
7134 #include "confdefs.h"
7135 #include <sys/types.h>
7141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7142 egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
7144 ac_cv_type_socklen_t
=yes
7147 ac_cv_type_socklen_t
=no
7152 echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
7153 if test $ac_cv_type_socklen_t = no
; then
7154 cat >> confdefs.h
<<\EOF
7155 #define socklen_t int
7161 # Add Python/ prefix to LIBOBJS
7164 for obj
in $libobjs; do
7165 LIBOBJS
="$LIBOBJS Python/$obj"
7168 #AC_MSG_CHECKING(for Modules/Setup)
7169 #if test ! -f Modules/Setup ; then
7170 # if test ! -d Modules ; then
7173 # cp "$srcdir/Modules/Setup.dist" Modules/Setup
7174 # AC_MSG_RESULT(creating)
7176 # AC_MSG_RESULT(already exists)
7180 SRCDIRS
="Parser Grammar Objects Python Modules"
7181 echo $ac_n "checking for build directories""... $ac_c" 1>&6
7182 echo "configure:7183: checking for build directories" >&5
7183 for dir
in $SRCDIRS; do
7184 if test ! -d $dir; then
7188 echo "$ac_t""done" 1>&6
7190 # generate output files
7192 cat > confcache
<<\EOF
7193 # This file is a shell script that caches the results of configure
7194 # tests run on this system so they can be shared between configure
7195 # scripts and configure runs. It is not useful on other systems.
7196 # If it contains results you don't want to keep, you may remove or edit it.
7198 # By default, configure uses ./config.cache as the cache file,
7199 # creating it if it does not exist already. You can give configure
7200 # the --cache-file=FILE option to use a different cache file; that is
7201 # what configure does when it calls configure scripts in
7202 # subdirectories, so they share the cache.
7203 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7204 # config.status only pays attention to the cache file if you give it the
7205 # --recheck option to rerun configure.
7208 # The following way of writing the cache mishandles newlines in values,
7209 # but we know of no workaround that is simple, portable, and efficient.
7210 # So, don't put newlines in cache variables' values.
7211 # Ultrix sh set writes to stderr and can't be redirected directly,
7212 # and sets the high bit in the cache file unless we assign to the vars.
7214 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7216 # `set' does not quote correctly, so add quotes (double-quote substitution
7217 # turns \\\\ into \\, and sed turns \\ into \).
7219 -e "s/'/'\\\\''/g" \
7220 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7223 # `set' quotes correctly as required by POSIX, so do not add quotes.
7224 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7227 if cmp -s $cache_file confcache
; then
7230 if test -w $cache_file; then
7231 echo "updating cache $cache_file"
7232 cat confcache
> $cache_file
7234 echo "not updating unwritable cache $cache_file"
7239 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7241 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7242 # Let make expand exec_prefix.
7243 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7245 # Any assignment to VPATH causes Sun make to only execute
7246 # the first set of double-colon rules, so remove it if not needed.
7247 # If there is a colon in the path, we need to keep it.
7248 if test "x$srcdir" = x.
; then
7249 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7252 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7254 DEFS
=-DHAVE_CONFIG_H
7256 # Without the "./", some shells look in PATH for config.status.
7257 : ${CONFIG_STATUS=./config.status}
7259 echo creating
$CONFIG_STATUS
7260 rm -f $CONFIG_STATUS
7261 cat > $CONFIG_STATUS <<EOF
7263 # Generated automatically by configure.
7264 # Run this file to recreate the current configuration.
7265 # This directory was configured as follows,
7266 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7268 # $0 $ac_configure_args
7270 # Compiler output produced by configure, useful for debugging
7271 # configure, is in ./config.log if it exists.
7273 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7276 case "\$ac_option" in
7277 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7278 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7279 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7280 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7281 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7283 -help | --help | --hel | --he | --h)
7284 echo "\$ac_cs_usage"; exit 0 ;;
7285 *) echo "\$ac_cs_usage"; exit 1 ;;
7289 ac_given_srcdir=$srcdir
7290 ac_given_INSTALL="$INSTALL"
7292 trap 'rm -fr `echo "Makefile.pre Modules/Setup.config pyconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7294 cat >> $CONFIG_STATUS <<EOF
7296 # Protect against being on the right side of a sed subst in config.status.
7297 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7298 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7302 s%@CFLAGS@%$CFLAGS%g
7303 s%@CPPFLAGS@%$CPPFLAGS%g
7304 s%@CXXFLAGS@%$CXXFLAGS%g
7305 s%@FFLAGS@%$FFLAGS%g
7307 s%@LDFLAGS@%$LDFLAGS%g
7309 s%@exec_prefix@%$exec_prefix%g
7310 s%@prefix@%$prefix%g
7311 s%@program_transform_name@%$program_transform_name%g
7312 s%@bindir@%$bindir%g
7313 s%@sbindir@%$sbindir%g
7314 s%@libexecdir@%$libexecdir%g
7315 s%@datadir@%$datadir%g
7316 s%@sysconfdir@%$sysconfdir%g
7317 s%@sharedstatedir@%$sharedstatedir%g
7318 s%@localstatedir@%$localstatedir%g
7319 s%@libdir@%$libdir%g
7320 s%@includedir@%$includedir%g
7321 s%@oldincludedir@%$oldincludedir%g
7322 s%@infodir@%$infodir%g
7323 s%@mandir@%$mandir%g
7324 s%@VERSION@%$VERSION%g
7325 s%@CONFIG_ARGS@%$CONFIG_ARGS%g
7326 s%@PYTHONFRAMEWORK@%$PYTHONFRAMEWORK%g
7327 s%@PYTHONFRAMEWORKDIR@%$PYTHONFRAMEWORKDIR%g
7328 s%@PYTHONFRAMEWORKPREFIX@%$PYTHONFRAMEWORKPREFIX%g
7329 s%@PYTHONFRAMEWORKINSTALLDIR@%$PYTHONFRAMEWORKINSTALLDIR%g
7330 s%@MACHDEP@%$MACHDEP%g
7331 s%@SGI_ABI@%$SGI_ABI%g
7333 s%@MAINOBJ@%$MAINOBJ%g
7336 s%@EXEEXT@%$EXEEXT%g
7337 s%@LIBRARY@%$LIBRARY%g
7338 s%@LDLIBRARY@%$LDLIBRARY%g
7339 s%@DLLLIBRARY@%$DLLLIBRARY%g
7340 s%@BLDLIBRARY@%$BLDLIBRARY%g
7341 s%@LDLIBRARYDIR@%$LDLIBRARYDIR%g
7342 s%@LINKCC@%$LINKCC%g
7343 s%@RANLIB@%$RANLIB%g
7345 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7346 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7347 s%@INSTALL_DATA@%$INSTALL_DATA%g
7350 s%@LIBTOOL_CRUFT@%$LIBTOOL_CRUFT%g
7352 s%@LDSHARED@%$LDSHARED%g
7353 s%@BLDSHARED@%$BLDSHARED%g
7354 s%@CCSHARED@%$CCSHARED%g
7355 s%@LINKFORSHARED@%$LINKFORSHARED%g
7356 s%@CFLAGSFORSHARED@%$CFLAGSFORSHARED%g
7357 s%@USE_SIGNAL_MODULE@%$USE_SIGNAL_MODULE%g
7358 s%@SIGNAL_OBJS@%$SIGNAL_OBJS%g
7359 s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g
7360 s%@LDLAST@%$LDLAST%g
7361 s%@DLINCLDIR@%$DLINCLDIR%g
7362 s%@DYNLOADFILE@%$DYNLOADFILE%g
7363 s%@MACHDEP_OBJS@%$MACHDEP_OBJS%g
7364 s%@LIBOBJS@%$LIBOBJS%g
7365 s%@HAVE_GETHOSTBYNAME_R_6_ARG@%$HAVE_GETHOSTBYNAME_R_6_ARG%g
7366 s%@HAVE_GETHOSTBYNAME_R_5_ARG@%$HAVE_GETHOSTBYNAME_R_5_ARG%g
7367 s%@HAVE_GETHOSTBYNAME_R_3_ARG@%$HAVE_GETHOSTBYNAME_R_3_ARG%g
7368 s%@HAVE_GETHOSTBYNAME_R@%$HAVE_GETHOSTBYNAME_R%g
7369 s%@HAVE_GETHOSTBYNAME@%$HAVE_GETHOSTBYNAME%g
7372 s%@UNICODE_OBJS@%$UNICODE_OBJS%g
7373 s%@SRCDIRS@%$SRCDIRS%g
7378 cat >> $CONFIG_STATUS <<\EOF
7380 # Split the substitutions into bite-sized pieces for seds with
7381 # small command number limits, like on Digital OSF/1 and HP-UX.
7382 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
7383 ac_file
=1 # Number of current file.
7384 ac_beg
=1 # First line for current file.
7385 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
7388 while $ac_more_lines; do
7389 if test $ac_beg -gt 1; then
7390 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
7392 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
7394 if test ! -s conftest.s
$ac_file; then
7396 rm -f conftest.s
$ac_file
7398 if test -z "$ac_sed_cmds"; then
7399 ac_sed_cmds
="sed -f conftest.s$ac_file"
7401 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
7403 ac_file
=`expr $ac_file + 1`
7405 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
7408 if test -z "$ac_sed_cmds"; then
7413 cat >> $CONFIG_STATUS <<EOF
7415 CONFIG_FILES=\${CONFIG_FILES-"Makefile.pre Modules/Setup.config"}
7417 cat >> $CONFIG_STATUS <<\EOF
7418 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
7419 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7421 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7422 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7423 *) ac_file_in
="${ac_file}.in" ;;
7426 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7428 # Remove last slash and all that follows it. Not all systems have dirname.
7429 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7430 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7431 # The file is in a subdirectory.
7432 test ! -d "$ac_dir" && mkdir
"$ac_dir"
7433 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
7434 # A "../" for each directory in $ac_dir_suffix.
7435 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7437 ac_dir_suffix
= ac_dots
=
7440 case "$ac_given_srcdir" in
7442 if test -z "$ac_dots"; then top_srcdir
=.
7443 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7444 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
7446 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7447 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7450 case "$ac_given_INSTALL" in
7451 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
7452 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
7455 echo creating
"$ac_file"
7457 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7459 *Makefile
*) ac_comsub
="1i\\
7460 # $configure_input" ;;
7464 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7466 s%@configure_input@%$configure_input%g
7467 s%@srcdir@%$srcdir%g
7468 s%@top_srcdir@%$top_srcdir%g
7469 s%@INSTALL@%$INSTALL%g
7470 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7474 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7475 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7477 # ac_d sets the value in "#define NAME VALUE" lines.
7478 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7479 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7482 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7483 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7484 ac_uB
='\([ ]\)%\1#\2define\3'
7487 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7488 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7489 ac_eB
='$%\1#\2define\3'
7493 if test "${CONFIG_HEADERS+set}" != set; then
7495 cat >> $CONFIG_STATUS <<EOF
7496 CONFIG_HEADERS="pyconfig.h"
7498 cat >> $CONFIG_STATUS <<\EOF
7500 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7501 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7503 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7504 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7505 *) ac_file_in
="${ac_file}.in" ;;
7508 echo creating
$ac_file
7510 rm -f conftest.frag conftest.
in conftest.out
7511 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7512 cat $ac_file_inputs > conftest.
in
7516 # Transform confdefs.h into a sed script conftest.vals that substitutes
7517 # the proper values into config.h.in to produce config.h. And first:
7518 # Protect against being on the right side of a sed subst in config.status.
7519 # Protect against being in an unquoted here document in config.status.
7521 cat > conftest.hdr
<<\EOF
7524 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7528 sed -n -f conftest.hdr confdefs.h > conftest.vals
7531 # This sed command replaces #undef with comments. This is necessary, for
7532 # example, in the case of _POSIX_SOURCE, which is predefined and required
7533 # on some systems where configure will not decide to define it.
7534 cat >> conftest.vals <<\EOF
7535 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7538 # Break up conftest.vals because some shells have a limit on
7539 # the size of here documents, and old seds have small limits too.
7544 ac_lines=`grep -c . conftest.vals
`
7545 # grep -c gives empty output for an empty file on some AIX systems.
7546 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7547 # Write a limited-size here document to conftest.frag.
7548 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7549 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7551 sed -f conftest.frag conftest.in > conftest.out
7553 mv conftest.out conftest.in
7555 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7557 mv conftest.tail conftest.vals
7561 cat >> $CONFIG_STATUS <<\EOF
7562 rm -f conftest.frag conftest.h
7563 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7564 cat conftest.in >> conftest.h
7566 if cmp -s $ac_file conftest.h 2>/dev/null; then
7567 echo "$ac_file is unchanged"
7570 # Remove last slash and all that follows it. Not all systems have dirname.
7571 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7572 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7573 # The file is in a subdirectory.
7574 test ! -d "$ac_dir" && mkdir "$ac_dir"
7577 mv conftest.h $ac_file
7582 cat >> $CONFIG_STATUS <<EOF
7585 cat >> $CONFIG_STATUS <<\EOF
7589 chmod +x $CONFIG_STATUS
7590 rm -fr confdefs* $ac_clean_files
7591 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7594 echo "creating Setup"
7595 if test ! -f Modules/Setup
7597 cp $srcdir/Modules/Setup.dist Modules/Setup
7600 echo "creating Setup.local"
7601 if test ! -f Modules/Setup.local
7603 echo "# Edit this file for local setup changes" >Modules/Setup.local
7606 echo "creating Makefile"
7607 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
7608 -s Modules Modules/Setup.config \
7609 Modules/Setup.local Modules/Setup