3 # From configure.in Revision: 1.164
5 # Guess values for system-dependent variables and create Makefiles.
6 # Generated automatically using autoconf version 2.14.1
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 --with-next-archs='arch1 arch2 ..' build MAB binary"
19 --with-next-framework Build (OpenStep|Rhapsody|MacOSX) framework"
21 --with-dyld Use (OpenStep|Rhapsody|MacOSX) dynamic linker"
23 --without-gcc never use gcc"
25 --with-cxx=<compiler> enable C++ support"
27 --with-suffix=.exe set executable suffix"
29 --with-pydebug build with Py_DEBUG defined"
31 --with-libs='lib1 ...' link against additional libs"
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 --with(out)-cycle-gc disable/enable garbage collection"
43 --with(out)-libdb disable/enable bsddb module"
45 --with-wctype-functions use wctype.h functions"
47 --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking"
49 --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking"
51 --with-fpectl enable SIGFPE catching"
53 --with-libm=STRING math library"
55 --with-libc=STRING C library"
57 # Initialize some variables set by options.
58 # The variables have the same names as the options, with
59 # dashes changed to underlines.
61 cache_file
=.
/config.cache
70 program_transform_name
=s
,x
,x
,
78 bindir
='${exec_prefix}/bin'
79 sbindir
='${exec_prefix}/sbin'
80 libexecdir
='${exec_prefix}/libexec'
81 datadir
='${prefix}/share'
82 sysconfdir
='${prefix}/etc'
83 sharedstatedir
='${prefix}/com'
84 localstatedir
='${prefix}/var'
85 libdir
='${exec_prefix}/lib'
86 includedir
='${prefix}/include'
87 oldincludedir
='/usr/include'
88 infodir
='${prefix}/info'
89 mandir
='${prefix}/man'
91 # Initialize some other variables.
94 SHELL
=${CONFIG_SHELL-/bin/sh}
95 # Maximum number of lines to put in a shell here document.
102 # If the previous option needs an argument, assign it.
103 if test -n "$ac_prev"; then
104 eval "$ac_prev=\$ac_option"
110 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
114 # Accept the important Cygnus configure options, so we can diagnose typos.
118 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
120 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
121 bindir
="$ac_optarg" ;;
123 -build |
--build |
--buil |
--bui |
--bu)
125 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
126 build
="$ac_optarg" ;;
128 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
129 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
130 ac_prev
=cache_file
;;
131 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
132 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
133 cache_file
="$ac_optarg" ;;
135 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
137 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
139 datadir
="$ac_optarg" ;;
141 -disable-* |
--disable-*)
142 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
143 # Reject names that are not valid shell variable names.
144 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
145 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
147 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
148 eval "enable_${ac_feature}=no" ;;
150 -enable-* |
--enable-*)
151 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
152 # Reject names that are not valid shell variable names.
153 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
154 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
156 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
161 eval "enable_${ac_feature}='$ac_optarg'" ;;
163 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
164 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
165 |
--exec |
--exe |
--ex)
166 ac_prev
=exec_prefix
;;
167 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
168 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
169 |
--exec=* |
--exe=* |
--ex=*)
170 exec_prefix
="$ac_optarg" ;;
172 -gas |
--gas |
--ga |
--g)
173 # Obsolete; use --with-gas.
176 -help |
--help |
--hel |
--he)
177 # Omit some internal or obsolete options to make the list less imposing.
178 # This message is too long to be a string in the A/UX 3.1 sh.
180 Usage: configure [options] [host]
181 Options: [defaults in brackets after descriptions]
183 --cache-file=FILE cache test results in FILE
184 --help print this message
185 --no-create do not create output files
186 --quiet, --silent do not print \`checking...' messages
187 --version print the version of autoconf that created configure
188 Directory and file names:
189 --prefix=PREFIX install architecture-independent files in PREFIX
191 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
193 --bindir=DIR user executables in DIR [EPREFIX/bin]
194 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
195 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
196 --datadir=DIR read-only architecture-independent data in DIR
198 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
199 --sharedstatedir=DIR modifiable architecture-independent data in DIR
201 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
202 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
203 --includedir=DIR C header files in DIR [PREFIX/include]
204 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
205 --infodir=DIR info documentation in DIR [PREFIX/info]
206 --mandir=DIR man documentation in DIR [PREFIX/man]
207 --srcdir=DIR find the sources in DIR [configure dir or ..]
208 --program-prefix=PREFIX prepend PREFIX to installed program names
209 --program-suffix=SUFFIX append SUFFIX to installed program names
210 --program-transform-name=PROGRAM
211 run sed PROGRAM on installed program names
215 --build=BUILD configure for building on BUILD [BUILD=HOST]
216 --host=HOST configure for HOST [guessed]
217 --target=TARGET configure for TARGET [TARGET=HOST]
218 Features and packages:
219 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
220 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
221 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
222 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
223 --x-includes=DIR X include files are in DIR
224 --x-libraries=DIR X library files are in DIR
226 if test -n "$ac_help"; then
227 echo "--enable and --with options recognized:$ac_help"
231 -host |
--host |
--hos |
--ho)
233 -host=* |
--host=* |
--hos=* |
--ho=*)
236 -includedir |
--includedir |
--includedi |
--included |
--include \
237 |
--includ |
--inclu |
--incl |
--inc)
238 ac_prev
=includedir
;;
239 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
240 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
241 includedir
="$ac_optarg" ;;
243 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
245 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
246 infodir
="$ac_optarg" ;;
248 -libdir |
--libdir |
--libdi |
--libd)
250 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
251 libdir
="$ac_optarg" ;;
253 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
254 |
--libexe |
--libex |
--libe)
255 ac_prev
=libexecdir
;;
256 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
257 |
--libexe=* |
--libex=* |
--libe=*)
258 libexecdir
="$ac_optarg" ;;
260 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
261 |
--localstate |
--localstat |
--localsta |
--localst \
262 |
--locals |
--local |
--loca |
--loc |
--lo)
263 ac_prev
=localstatedir
;;
264 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
265 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
266 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
267 localstatedir
="$ac_optarg" ;;
269 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
271 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
272 mandir
="$ac_optarg" ;;
275 # Obsolete; use --without-fp.
278 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
282 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
283 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
286 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
287 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
288 |
--oldin |
--oldi |
--old |
--ol |
--o)
289 ac_prev
=oldincludedir
;;
290 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
291 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
292 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
293 oldincludedir
="$ac_optarg" ;;
295 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
297 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
298 prefix
="$ac_optarg" ;;
300 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
301 |
--program-pre |
--program-pr |
--program-p)
302 ac_prev
=program_prefix
;;
303 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
304 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
305 program_prefix
="$ac_optarg" ;;
307 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
308 |
--program-suf |
--program-su |
--program-s)
309 ac_prev
=program_suffix
;;
310 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
311 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
312 program_suffix
="$ac_optarg" ;;
314 -program-transform-name |
--program-transform-name \
315 |
--program-transform-nam |
--program-transform-na \
316 |
--program-transform-n |
--program-transform- \
317 |
--program-transform |
--program-transfor \
318 |
--program-transfo |
--program-transf \
319 |
--program-trans |
--program-tran \
320 |
--progr-tra |
--program-tr |
--program-t)
321 ac_prev
=program_transform_name
;;
322 -program-transform-name=* |
--program-transform-name=* \
323 |
--program-transform-nam=* |
--program-transform-na=* \
324 |
--program-transform-n=* |
--program-transform-=* \
325 |
--program-transform=* |
--program-transfor=* \
326 |
--program-transfo=* |
--program-transf=* \
327 |
--program-trans=* |
--program-tran=* \
328 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
329 program_transform_name
="$ac_optarg" ;;
331 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
332 |
-silent |
--silent |
--silen |
--sile |
--sil)
335 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
337 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
339 sbindir
="$ac_optarg" ;;
341 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
342 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
343 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
345 ac_prev
=sharedstatedir
;;
346 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
347 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
348 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
350 sharedstatedir
="$ac_optarg" ;;
352 -site |
--site |
--sit)
354 -site=* |
--site=* |
--sit=*)
357 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
359 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
360 srcdir
="$ac_optarg" ;;
362 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
363 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
364 ac_prev
=sysconfdir
;;
365 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
366 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
367 sysconfdir
="$ac_optarg" ;;
369 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
371 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
372 target
="$ac_optarg" ;;
374 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
377 -version |
--version |
--versio |
--versi |
--vers)
378 echo "configure generated by autoconf version 2.14.1"
382 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
383 # Reject names that are not valid shell variable names.
384 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
385 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
387 ac_package
=`echo $ac_package| sed 's/-/_/g'`
392 eval "with_${ac_package}='$ac_optarg'" ;;
394 -without-* |
--without-*)
395 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
396 # Reject names that are not valid shell variable names.
397 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
398 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
400 ac_package
=`echo $ac_package| sed 's/-/_/g'`
401 eval "with_${ac_package}=no" ;;
404 # Obsolete; use --with-x.
407 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
408 |
--x-incl |
--x-inc |
--x-in |
--x-i)
409 ac_prev
=x_includes
;;
410 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
411 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
412 x_includes
="$ac_optarg" ;;
414 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
415 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
416 ac_prev
=x_libraries
;;
417 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
418 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
419 x_libraries
="$ac_optarg" ;;
421 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
425 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
426 echo "configure: warning: $ac_option: invalid host type" 1>&2
428 if test "x$nonopt" != xNONE
; then
429 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
437 if test -n "$ac_prev"; then
438 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
441 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
443 # File descriptor usage:
446 # 2 errors and warnings
447 # 3 some systems may open it to /dev/tty
448 # 4 used on the Kubota Titan
449 # 6 checking for... messages and results
450 # 5 compiler messages saved in config.log
451 if test "$silent" = yes; then
459 This file contains any messages produced by compilers while
460 running configure, to aid debugging if configure makes a mistake.
463 # Strip out --no-create and --no-recursion so they do not pile up.
464 # Also quote any args containing shell metacharacters.
469 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
470 |
--no-cr |
--no-c) ;;
471 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
472 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
473 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
474 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
475 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
480 # Only set these to C if already set. These must not be set unconditionally
481 # because not all systems understand e.g. LANG=C (notably SCO).
482 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
483 # Non-C LC_CTYPE values break the ctype check.
484 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
485 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
486 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
487 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
489 # confdefs.h avoids OS command line length limits that DEFS can exceed.
490 rm -rf conftest
* confdefs.h
491 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
494 # A filename unique to this package, relative to the directory that
495 # configure is in, which we can look for to find out if srcdir is correct.
496 ac_unique_file
=Include
/object.h
498 # Find the source files, if location was not specified.
499 if test -z "$srcdir"; then
500 ac_srcdir_defaulted
=yes
501 # Try the directory containing this script, then its parent.
503 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
504 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
506 if test ! -r $srcdir/$ac_unique_file; then
510 ac_srcdir_defaulted
=no
512 if test ! -r $srcdir/$ac_unique_file; then
513 if test "$ac_srcdir_defaulted" = yes; then
514 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
516 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
519 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
521 # Prefer explicitly selected file to automatically selected ones.
522 if test -z "$CONFIG_SITE"; then
523 if test "x$prefix" != xNONE
; then
524 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
526 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
529 for ac_site_file
in $CONFIG_SITE; do
530 if test -r "$ac_site_file"; then
531 echo "loading site script $ac_site_file"
536 if test -r "$cache_file"; then
537 echo "loading cache $cache_file"
538 test -f "$cache_file" && .
$cache_file
540 echo "creating cache $cache_file"
545 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
546 ac_cpp
='$CPP $CPPFLAGS'
547 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
548 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
549 cross_compiling
=$ac_cv_prog_cc_cross
553 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
554 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
555 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
562 ac_n
= ac_c
='\c' ac_t
=
568 # Set VERSION so we only need to edit in one place (i.e., here)
573 if test -f /usr
/lib
/NextStep
/software_version
-o -f /System
/Library
/CoreServices
/software_version
; then
575 echo $ac_n "checking for --with-next-archs""... $ac_c" 1>&6
576 echo "configure:577: checking for --with-next-archs" >&5
577 # Check whether --with-next-archs or --without-next-archs was given.
578 if test "${with_next_archs+set}" = set; then
579 withval
="$with_next_archs"
581 if test -n "$withval"; then
582 ac_arch_flags
=`/usr/lib/arch_tool -archify_list $withval`
583 # GCC does not currently support multi archs on the NeXT
586 echo "$ac_t""$with_next_archs" 1>&6
589 echo "$ac_t""none: using `arch`" 1>&6
593 if test -z "$MACHDEP"
595 set X
`hostinfo | egrep '(NeXT Mach|Kernel Release).*:' | \
596 sed -e 's/://' -e 's/\./_/'` && \
597 ac_sys_system
=next
&& ac_sys_release
=$4
599 MACHDEP
="$ac_sys_system$ac_sys_release"
603 # Check whether --with-next-framework or --without-next-framework was given.
604 if test "${with_next_framework+set}" = set; then
605 withval
="$with_next_framework"
609 # Check whether --with-dyld or --without-dyld was given.
610 if test "${with_dyld+set}" = set; then
616 # Set name for machine-dependent library files
618 echo $ac_n "checking MACHDEP""... $ac_c" 1>&6
619 echo "configure:620: checking MACHDEP" >&5
620 if test -z "$MACHDEP"
622 ac_sys_system
=`uname -s`
623 if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64"; then
624 ac_sys_release
=`uname -v`
626 ac_sys_release
=`uname -r`
628 ac_md_system
=`echo $ac_sys_system |
629 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
630 ac_md_release
=`echo $ac_sys_release |
631 tr -d '/ ' | sed 's/\..*//'`
632 MACHDEP
="$ac_md_system$ac_md_release"
635 '') MACHDEP
="unknown";;
640 # SGI compilers allow the specification of the both the ABI and the
641 # ISA on the command line. Depending on the values of these switches,
642 # different and often incompatable code will be generated.
644 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
645 # thus supply support for various ABI/ISA combinations. The MACHDEP
646 # variable is also adjusted.
649 if test ! -z "$SGI_ABI"
652 LDFLAGS
="$SGI_ABI $LDFLAGS"
653 MACHDEP
=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'`
655 echo "$ac_t""$MACHDEP" 1>&6
658 # CCC is the command that compiles C++ programs
660 # Not all make programs have this predefined.
663 #AC_MSG_CHECKING(CCC)
666 # case $ac_sys_system in
667 # IRIX*) SET_CCC="CCC= CC ${SGI_ABI}";;
668 # Linux*) SET_CCC="CCC= g++";;
672 # SET_CCC="CCC= ${CCC}"
674 #AC_MSG_RESULT($SET_CCC)
677 # checks for alternative programs
678 echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6
679 echo "configure:680: checking for --without-gcc" >&5
680 # Check whether --with-gcc or --without-gcc was given.
681 if test "${with_gcc+set}" = set; then
690 without_gcc
=$withval;;
694 case $ac_sys_system in
698 # Dunno if it's a good idea to get this over with all at once, or
699 # to handle it in with the other goodies.
704 CC
="mwcc -I$PWD/BeOS -nodup"
707 4.0*) OPT
="-DUSE_DL_EXPORT -O7 -opt schedule604 -export pragma" ;;
708 *) OPT
="-DUSE_DL_EXPORT -O2 -proc 604e -export pragma" ;;
710 CCSHARED
=-UUSE_DL_EXPORT
711 LDFLAGS
="$LDFLAGS -nodup"
713 AR
="$PWD/BeOS/ar-fake"
716 cat >> confdefs.h
<<\EOF
717 #define DL_EXPORT_HEADER "dl_export.h"
724 OPT
="-DUSE_DL_EXPORT -O"
725 CCSHARED
=-UUSE_DL_EXPORT
727 AR
="$PWD/BeOS/ar-fake"
730 cat >> confdefs.h
<<\EOF
731 #define DL_EXPORT_HEADER "dl_export.h"
736 { echo "configure: error: Your BeOS system isn't PowerPC or x86... neat" 1>&2; exit 1; }
747 echo "$ac_t""$without_gcc" 1>&6
752 echo $ac_n "checking for --with-cxx=<compiler>""... $ac_c" 1>&6
753 echo "configure:754: checking for --with-cxx=<compiler>" >&5
754 # Check whether --with-cxx or --without-cxx was given.
755 if test "${with_cxx+set}" = set; then
771 echo "$ac_t""$with_cxx" 1>&6
774 #AC_MSG_CHECKING(CCC)
777 # case $ac_sys_system in
778 # IRIX*) SET_CCC="CCC= CC ${SGI_ABI}";;
779 # Linux*) SET_CCC="CCC= g++";;
783 # SET_CCC="CCC= ${CCC}"
785 #AC_MSG_RESULT($SET_CCC)
787 # If the user switches compilers, we can't believe the cache
788 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
790 { echo "configure: error: cached CC is different -- throw away $cache_file
791 (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; }
794 # Extract the first word of "gcc", so it can be a program name with args.
795 set dummy gcc
; ac_word
=$2
796 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
797 echo "configure:798: checking for $ac_word" >&5
798 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
799 echo $ac_n "(cached) $ac_c" 1>&6
801 if test -n "$CC"; then
802 ac_cv_prog_CC
="$CC" # Let the user override the test.
804 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
806 for ac_dir
in $ac_dummy; do
807 test -z "$ac_dir" && ac_dir
=.
808 if test -f $ac_dir/$ac_word; then
817 if test -n "$CC"; then
818 echo "$ac_t""$CC" 1>&6
820 echo "$ac_t""no" 1>&6
823 if test -z "$CC"; then
824 # Extract the first word of "cc", so it can be a program name with args.
825 set dummy cc
; ac_word
=$2
826 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
827 echo "configure:828: checking for $ac_word" >&5
828 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
829 echo $ac_n "(cached) $ac_c" 1>&6
831 if test -n "$CC"; then
832 ac_cv_prog_CC
="$CC" # Let the user override the test.
834 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
837 for ac_dir
in $ac_dummy; do
838 test -z "$ac_dir" && ac_dir
=.
839 if test -f $ac_dir/$ac_word; then
840 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
849 if test $ac_prog_rejected = yes; then
850 # We found a bogon in the path, so make sure we never use it.
851 set dummy
$ac_cv_prog_CC
853 if test $# -gt 0; then
854 # We chose a different compiler from the bogus one.
855 # However, it has the same basename, so the bogon will be chosen
856 # first if we set CC to just the basename; use the full file name.
858 set dummy
"$ac_dir/$ac_word" "$@"
866 if test -n "$CC"; then
867 echo "$ac_t""$CC" 1>&6
869 echo "$ac_t""no" 1>&6
872 if test -z "$CC"; then
874 *win32
* |
*WIN32
* |
*CYGWIN
*)
875 # Extract the first word of "cl", so it can be a program name with args.
876 set dummy cl
; ac_word
=$2
877 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
878 echo "configure:879: checking for $ac_word" >&5
879 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
880 echo $ac_n "(cached) $ac_c" 1>&6
882 if test -n "$CC"; then
883 ac_cv_prog_CC
="$CC" # Let the user override the test.
885 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
887 for ac_dir
in $ac_dummy; do
888 test -z "$ac_dir" && ac_dir
=.
889 if test -f $ac_dir/$ac_word; then
898 if test -n "$CC"; then
899 echo "$ac_t""$CC" 1>&6
901 echo "$ac_t""no" 1>&6
906 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
909 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
910 echo "configure:911: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
913 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
914 ac_cpp
='$CPP $CPPFLAGS'
915 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
916 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
917 cross_compiling
=$ac_cv_prog_cc_cross
919 cat > conftest.
$ac_ext << EOF
921 #line 922 "configure"
922 #include "confdefs.h"
926 if { (eval echo configure
:927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
927 ac_cv_prog_cc_works
=yes
928 # If we can't run a trivial program, we are probably using a cross compiler.
929 if (.
/conftest
; exit) 2>/dev
/null
; then
930 ac_cv_prog_cc_cross
=no
932 ac_cv_prog_cc_cross
=yes
935 echo "configure: failed program was:" >&5
936 cat conftest.
$ac_ext >&5
937 ac_cv_prog_cc_works
=no
941 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
942 ac_cpp
='$CPP $CPPFLAGS'
943 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
944 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
945 cross_compiling
=$ac_cv_prog_cc_cross
947 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
948 if test $ac_cv_prog_cc_works = no
; then
949 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
951 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
952 echo "configure:953: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
953 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
954 cross_compiling
=$ac_cv_prog_cc_cross
956 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
957 echo "configure:958: checking whether we are using GNU C" >&5
958 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
961 cat > conftest.c
<<EOF
966 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
973 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
975 if test $ac_cv_prog_gcc = yes; then
981 ac_test_CFLAGS
="${CFLAGS+set}"
982 ac_save_CFLAGS
="$CFLAGS"
984 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
985 echo "configure:986: checking whether ${CC-cc} accepts -g" >&5
986 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
987 echo $ac_n "(cached) $ac_c" 1>&6
989 echo 'void f(){}' > conftest.c
990 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
999 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1000 if test "$ac_test_CFLAGS" = set; then
1001 CFLAGS
="$ac_save_CFLAGS"
1002 elif test $ac_cv_prog_cc_g = yes; then
1003 if test "$GCC" = yes; then
1009 if test "$GCC" = yes; then
1017 echo $ac_n "checking for --with-suffix""... $ac_c" 1>&6
1018 echo "configure:1019: checking for --with-suffix" >&5
1019 # Check whether --with-suffix or --without-suffix was given.
1020 if test "${with_suffix+set}" = set; then
1021 withval
="$with_suffix"
1030 echo "$ac_t""$EXE" 1>&6
1035 gcc
) CC
="$CC -D_HAVE_BSDI";;
1039 case $ac_sys_system in
1042 cc|
*/cc
) CC
="$CC -Ae";;
1050 cc
) CC
="$CC -Wl,-Bexport";;
1054 # LDLIBRARY is the name of the library to link against (as opposed to the
1055 # name of the library into which to insert object files). On systems
1056 # without shared libraries, LDLIBRARY is the same as LIBRARY (defined in
1062 # LINKCC is the command that links the python executable -- default is $(CC).
1063 # This is altered for AIX and BeOS in order to build the export list before
1066 echo $ac_n "checking LINKCC""... $ac_c" 1>&6
1067 echo "configure:1068: checking LINKCC" >&5
1068 if test -z "$LINKCC" -a ! -z "$CXX"
1072 if test -z "$LINKCC"
1074 case $ac_sys_system in
1076 LINKCC
="\$(srcdir)/makexp_aix python.exp \"\" \$(LIBRARY); \$(PURIFY) \$(CC)";;
1078 LINKCC
="\$(srcdir)/../BeOS/linkcc \$(LIBRARY) \$(PURIFY) \$(CC) \$(OPT)"
1079 LDLIBRARY
='libpython$(VERSION).so';;
1081 LINKCC
="LD_RUN_PATH=$libdir \$(PURIFY) \$(CC)";;
1083 LINKCC
="\$(PURIFY) \$(CC) -L/usr/lib/ia64l64";;
1084 *) LINKCC
="\$(PURIFY) \$(CC)";;
1087 echo "$ac_t""$LINKCC" 1>&6
1089 echo $ac_n "checking LDLIBRARY""... $ac_c" 1>&6
1090 echo "configure:1091: checking LDLIBRARY" >&5
1092 # NeXT framework builds require that the 'ar' library be converted into
1093 # a bundle using libtool.
1094 if test "$with_next_framework"
1096 LDLIBRARY
='libpython$(VERSION).dylib'
1099 # DG/UX requires some fancy ld contortions to produce a .so from an .a
1100 if test "$MACHDEP" = "dguxR4"
1102 LDLIBRARY
='libpython$(VERSION).so'
1105 echo "$ac_t""$LDLIBRARY" 1>&6
1107 # If LDLIBRARY is different from LIBRARY, emit a rule to build it.
1108 if test -z "$LDLIBRARY"
1110 LDLIBRARY
='libpython$(VERSION).a'
1111 MAKE_LDLIBRARY
="true"
1113 MAKE_LDLIBRARY
='$(MAKE) $(LDLIBRARY)'
1116 # Extract the first word of "ranlib", so it can be a program name with args.
1117 set dummy ranlib
; ac_word
=$2
1118 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1119 echo "configure:1120: checking for $ac_word" >&5
1120 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
1121 echo $ac_n "(cached) $ac_c" 1>&6
1123 if test -n "$RANLIB"; then
1124 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1126 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1128 for ac_dir
in $ac_dummy; do
1129 test -z "$ac_dir" && ac_dir
=.
1130 if test -f $ac_dir/$ac_word; then
1131 ac_cv_prog_RANLIB
="ranlib"
1136 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1139 RANLIB
="$ac_cv_prog_RANLIB"
1140 if test -n "$RANLIB"; then
1141 echo "$ac_t""$RANLIB" 1>&6
1143 echo "$ac_t""no" 1>&6
1147 for ac_prog
in ar aal
1149 # Extract the first word of "$ac_prog", so it can be a program name with args.
1150 set dummy
$ac_prog; ac_word
=$2
1151 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1152 echo "configure:1153: checking for $ac_word" >&5
1153 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1156 if test -n "$AR"; then
1157 ac_cv_prog_AR
="$AR" # Let the user override the test.
1159 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1161 for ac_dir
in $ac_dummy; do
1162 test -z "$ac_dir" && ac_dir
=.
1163 if test -f $ac_dir/$ac_word; then
1164 ac_cv_prog_AR
="$ac_prog"
1172 if test -n "$AR"; then
1173 echo "$ac_t""$AR" 1>&6
1175 echo "$ac_t""no" 1>&6
1178 test -n "$AR" && break
1180 test -n "$AR" || AR
="ar"
1185 # Install just never works :-(
1186 if test -z "$INSTALL"
1192 INSTALL_PROGRAM
="$INSTALL"
1193 INSTALL_DATA
="$INSTALL -m 644"
1196 # Not every filesystem supports hard links
1198 if test -z "$LN" ; then
1199 case $ac_sys_system in
1205 # Optimizer/debugger flags passed between Makefiles
1211 case $ac_cv_prog_cc_g in
1220 # The current (beta) Monterey compiler dies with optimizations
1221 case $ac_sys_system in
1225 if test "$ac_arch_flags"
1227 OPT
="$OPT $ac_arch_flags"
1229 # checks for UNIX variants that set C preprocessor variables
1230 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1231 echo "configure:1232: checking how to run the C preprocessor" >&5
1232 # On Suns, sometimes $CPP names a directory.
1233 if test -n "$CPP" && test -d "$CPP"; then
1236 if test -z "$CPP"; then
1237 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
1238 echo $ac_n "(cached) $ac_c" 1>&6
1240 # This must be in double quotes, not single quotes, because CPP may get
1241 # substituted into the Makefile and "${CC-cc}" will confuse make.
1243 # On the NeXT, cc -E runs the code through the compiler's parser,
1244 # not just through cpp.
1245 cat > conftest.
$ac_ext <<EOF
1246 #line 1247 "configure"
1247 #include "confdefs.h"
1251 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1252 { (eval echo configure
:1253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1253 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1254 if test -z "$ac_err"; then
1258 echo "configure: failed program was:" >&5
1259 cat conftest.
$ac_ext >&5
1261 CPP
="${CC-cc} -E -traditional-cpp"
1262 cat > conftest.
$ac_ext <<EOF
1263 #line 1264 "configure"
1264 #include "confdefs.h"
1268 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1269 { (eval echo configure
:1270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1270 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1271 if test -z "$ac_err"; then
1275 echo "configure: failed program was:" >&5
1276 cat conftest.
$ac_ext >&5
1278 CPP
="${CC-cc} -nologo -E"
1279 cat > conftest.
$ac_ext <<EOF
1280 #line 1281 "configure"
1281 #include "confdefs.h"
1285 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1286 { (eval echo configure
:1287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1287 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1288 if test -z "$ac_err"; then
1292 echo "configure: failed program was:" >&5
1293 cat conftest.
$ac_ext >&5
1302 ac_cv_prog_CPP
="$CPP"
1304 CPP
="$ac_cv_prog_CPP"
1306 ac_cv_prog_CPP
="$CPP"
1308 echo "$ac_t""$CPP" 1>&6
1310 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1311 echo "configure:1312: checking for AIX" >&5
1312 cat > conftest.
$ac_ext <<EOF
1313 #line 1314 "configure"
1314 #include "confdefs.h"
1320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1321 egrep "yes" >/dev
/null
2>&1; then
1323 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
1324 #define _ALL_SOURCE 1
1329 echo "$ac_t""no" 1>&6
1334 ac_safe
=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1335 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1336 echo "configure:1337: checking for minix/config.h" >&5
1337 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
1338 echo $ac_n "(cached) $ac_c" 1>&6
1340 cat > conftest.
$ac_ext <<EOF
1341 #line 1342 "configure"
1342 #include "confdefs.h"
1343 #include <minix/config.h>
1345 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1346 { (eval echo configure
:1347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1347 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1348 if test -z "$ac_err"; then
1350 eval "ac_cv_header_$ac_safe=yes"
1353 echo "configure: failed program was:" >&5
1354 cat conftest.
$ac_ext >&5
1356 eval "ac_cv_header_$ac_safe=no"
1360 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1361 echo "$ac_t""yes" 1>&6
1364 echo "$ac_t""no" 1>&6
1368 if test "$MINIX" = yes; then
1369 cat >> confdefs.h
<<\EOF
1370 #define _POSIX_SOURCE 1
1373 cat >> confdefs.h
<<\EOF
1374 #define _POSIX_1_SOURCE 2
1377 cat >> confdefs.h
<<\EOF
1384 echo $ac_n "checking whether $CC accepts -OPT:Olimit=0""... $ac_c" 1>&6
1385 echo "configure:1386: checking whether $CC accepts -OPT:Olimit=0" >&5
1386 if eval "test \"\${ac_cv_opt_olimit_ok+set}\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1390 CC
="$CC -OPT:Olimit=0"
1391 if test "$cross_compiling" = yes; then
1392 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1394 cat > conftest.
$ac_ext <<EOF
1395 #line 1396 "configure"
1396 #include "confdefs.h"
1397 int main() { return 0; }
1399 if { (eval echo configure
:1400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1401 ac_cv_opt_olimit_ok
=yes
1403 echo "configure: failed program was:" >&5
1404 cat conftest.
$ac_ext >&5
1406 ac_cv_opt_olimit_ok
=no
1414 echo "$ac_t""$ac_cv_opt_olimit_ok" 1>&6
1415 if test $ac_cv_opt_olimit_ok = yes; then
1416 OPT
="$OPT -OPT:Olimit=0"
1418 echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6
1419 echo "configure:1420: checking whether $CC accepts -Olimit 1500" >&5
1420 if eval "test \"\${ac_cv_olimit_ok+set}\" = set"; then
1421 echo $ac_n "(cached) $ac_c" 1>&6
1424 CC
="$CC -Olimit 1500"
1425 if test "$cross_compiling" = yes; then
1426 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1428 cat > conftest.
$ac_ext <<EOF
1429 #line 1430 "configure"
1430 #include "confdefs.h"
1431 int main() { return 0; }
1433 if { (eval echo configure
:1434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1437 echo "configure: failed program was:" >&5
1438 cat conftest.
$ac_ext >&5
1448 echo "$ac_t""$ac_cv_olimit_ok" 1>&6
1449 if test $ac_cv_olimit_ok = yes; then
1450 OPT
="$OPT -Olimit 1500"
1455 # checks for header files
1456 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1457 echo "configure:1458: checking for ANSI C header files" >&5
1458 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
1459 echo $ac_n "(cached) $ac_c" 1>&6
1461 cat > conftest.
$ac_ext <<EOF
1462 #line 1463 "configure"
1463 #include "confdefs.h"
1469 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1470 { (eval echo configure
:1471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1471 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1472 if test -z "$ac_err"; then
1474 ac_cv_header_stdc
=yes
1477 echo "configure: failed program was:" >&5
1478 cat conftest.
$ac_ext >&5
1480 ac_cv_header_stdc
=no
1484 if test $ac_cv_header_stdc = yes; then
1485 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1486 cat > conftest.
$ac_ext <<EOF
1487 #line 1488 "configure"
1488 #include "confdefs.h"
1491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1492 egrep "memchr" >/dev
/null
2>&1; then
1496 ac_cv_header_stdc
=no
1502 if test $ac_cv_header_stdc = yes; then
1503 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1504 cat > conftest.
$ac_ext <<EOF
1505 #line 1506 "configure"
1506 #include "confdefs.h"
1509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1510 egrep "free" >/dev
/null
2>&1; then
1514 ac_cv_header_stdc
=no
1520 if test $ac_cv_header_stdc = yes; then
1521 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1522 if test "$cross_compiling" = yes; then
1525 cat > conftest.
$ac_ext <<EOF
1526 #line 1527 "configure"
1527 #include "confdefs.h"
1529 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1530 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1531 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1532 int main () { int i; for (i = 0; i < 256; i++)
1533 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1537 if { (eval echo configure
:1538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1541 echo "configure: failed program was:" >&5
1542 cat conftest.
$ac_ext >&5
1544 ac_cv_header_stdc
=no
1552 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1553 if test $ac_cv_header_stdc = yes; then
1554 cat >> confdefs.h
<<\EOF
1555 #define STDC_HEADERS 1
1560 for ac_hdr
in dlfcn.h fcntl.h limits.h locale.h ncurses.h poll.h pthread.h \
1561 signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h \
1562 sys
/audioio.h sys
/file.h sys
/lock.h db_185.h db.h \
1563 sys
/param.h sys
/select.h sys
/socket.h sys
/time.h sys
/times.h \
1564 sys
/un.h sys
/utsname.h sys
/wait.h pty.h libutil.h \
1565 ndbm.h db
1/ndbm.h gdbm
/ndbm.h
1567 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1568 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1569 echo "configure:1570: checking for $ac_hdr" >&5
1570 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
1571 echo $ac_n "(cached) $ac_c" 1>&6
1573 cat > conftest.
$ac_ext <<EOF
1574 #line 1575 "configure"
1575 #include "confdefs.h"
1578 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1579 { (eval echo configure
:1580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1580 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1581 if test -z "$ac_err"; then
1583 eval "ac_cv_header_$ac_safe=yes"
1586 echo "configure: failed program was:" >&5
1587 cat conftest.
$ac_ext >&5
1589 eval "ac_cv_header_$ac_safe=no"
1593 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1594 echo "$ac_t""yes" 1>&6
1595 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1596 cat >> confdefs.h
<<EOF
1597 #define $ac_tr_hdr 1
1601 echo "$ac_t""no" 1>&6
1606 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1608 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1609 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1610 echo "configure:1611: checking for $ac_hdr that defines DIR" >&5
1611 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1614 cat > conftest.
$ac_ext <<EOF
1615 #line 1616 "configure"
1616 #include "confdefs.h"
1617 #include <sys/types.h>
1623 if { (eval echo configure
:1624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1625 eval "ac_cv_header_dirent_$ac_safe=yes"
1627 echo "configure: failed program was:" >&5
1628 cat conftest.
$ac_ext >&5
1630 eval "ac_cv_header_dirent_$ac_safe=no"
1634 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1635 echo "$ac_t""yes" 1>&6
1636 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1637 cat >> confdefs.h
<<EOF
1638 #define $ac_tr_hdr 1
1640 ac_header_dirent
=$ac_hdr; break
1642 echo "$ac_t""no" 1>&6
1645 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1646 if test $ac_header_dirent = dirent.h
; then
1647 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1648 echo "configure:1649: checking for opendir in -ldir" >&5
1649 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1650 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
1651 echo $ac_n "(cached) $ac_c" 1>&6
1653 ac_save_LIBS
="$LIBS"
1655 cat > conftest.
$ac_ext <<EOF
1656 #line 1657 "configure"
1657 #include "confdefs.h"
1658 /* Override any gcc2 internal prototype to avoid an error. */
1659 /* We use char because int might match the return type of a gcc2
1660 builtin and then its argument prototype would still apply. */
1667 if { (eval echo configure
:1668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1669 eval "ac_cv_lib_$ac_lib_var=yes"
1671 echo "configure: failed program was:" >&5
1672 cat conftest.
$ac_ext >&5
1674 eval "ac_cv_lib_$ac_lib_var=no"
1677 LIBS
="$ac_save_LIBS"
1680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1681 echo "$ac_t""yes" 1>&6
1684 echo "$ac_t""no" 1>&6
1688 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1689 echo "configure:1690: checking for opendir in -lx" >&5
1690 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1691 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
1692 echo $ac_n "(cached) $ac_c" 1>&6
1694 ac_save_LIBS
="$LIBS"
1696 cat > conftest.
$ac_ext <<EOF
1697 #line 1698 "configure"
1698 #include "confdefs.h"
1699 /* Override any gcc2 internal prototype to avoid an error. */
1700 /* We use char because int might match the return type of a gcc2
1701 builtin and then its argument prototype would still apply. */
1708 if { (eval echo configure
:1709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1710 eval "ac_cv_lib_$ac_lib_var=yes"
1712 echo "configure: failed program was:" >&5
1713 cat conftest.
$ac_ext >&5
1715 eval "ac_cv_lib_$ac_lib_var=no"
1718 LIBS
="$ac_save_LIBS"
1721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1722 echo "$ac_t""yes" 1>&6
1725 echo "$ac_t""no" 1>&6
1731 # checks for typedefs
1733 echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6
1734 echo "configure:1735: checking for clock_t in time.h" >&5
1735 cat > conftest.
$ac_ext <<EOF
1736 #line 1737 "configure"
1737 #include "confdefs.h"
1740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1741 egrep "clock_t" >/dev
/null
2>&1; then
1746 cat >> confdefs.h
<<\EOF
1747 #define clock_t long
1753 echo "$ac_t""$was_it_defined" 1>&6
1755 # Add some code to confdefs.h so that the test for off_t works on SCO
1756 cat >> confdefs.h
<<\EOF
1762 # Type availability checks
1763 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1764 echo "configure:1765: checking for mode_t" >&5
1765 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
1766 echo $ac_n "(cached) $ac_c" 1>&6
1768 cat > conftest.
$ac_ext <<EOF
1769 #line 1770 "configure"
1770 #include "confdefs.h"
1771 #include <sys/types.h>
1777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1778 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1780 eval "ac_cv_type_mode_t=yes"
1783 eval "ac_cv_type_mode_t=no"
1788 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
1789 echo "$ac_t""yes" 1>&6
1791 echo "$ac_t""no" 1>&6
1792 cat >> confdefs.h
<<EOF
1798 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1799 echo "configure:1800: checking for off_t" >&5
1800 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1803 cat > conftest.
$ac_ext <<EOF
1804 #line 1805 "configure"
1805 #include "confdefs.h"
1806 #include <sys/types.h>
1812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1813 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1815 eval "ac_cv_type_off_t=yes"
1818 eval "ac_cv_type_off_t=no"
1823 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
1824 echo "$ac_t""yes" 1>&6
1826 echo "$ac_t""no" 1>&6
1827 cat >> confdefs.h
<<EOF
1833 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1834 echo "configure:1835: checking for pid_t" >&5
1835 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
1836 echo $ac_n "(cached) $ac_c" 1>&6
1838 cat > conftest.
$ac_ext <<EOF
1839 #line 1840 "configure"
1840 #include "confdefs.h"
1841 #include <sys/types.h>
1847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1848 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1850 eval "ac_cv_type_pid_t=yes"
1853 eval "ac_cv_type_pid_t=no"
1858 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
1859 echo "$ac_t""yes" 1>&6
1861 echo "$ac_t""no" 1>&6
1862 cat >> confdefs.h
<<EOF
1868 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1869 echo "configure:1870: checking return type of signal handlers" >&5
1870 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
1871 echo $ac_n "(cached) $ac_c" 1>&6
1873 cat > conftest.
$ac_ext <<EOF
1874 #line 1875 "configure"
1875 #include "confdefs.h"
1876 #include <sys/types.h>
1882 extern "C" void (*signal (int, void (*)(int)))(int);
1884 void (*signal ()) ();
1891 if { (eval echo configure
:1892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1893 ac_cv_type_signal
=void
1895 echo "configure: failed program was:" >&5
1896 cat conftest.
$ac_ext >&5
1898 ac_cv_type_signal
=int
1903 echo "$ac_t""$ac_cv_type_signal" 1>&6
1904 cat >> confdefs.h
<<EOF
1905 #define RETSIGTYPE $ac_cv_type_signal
1909 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1910 echo "configure:1911: checking for size_t" >&5
1911 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1914 cat > conftest.
$ac_ext <<EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1917 #include <sys/types.h>
1923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1924 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
1926 eval "ac_cv_type_size_t=yes"
1929 eval "ac_cv_type_size_t=no"
1934 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
1935 echo "$ac_t""yes" 1>&6
1937 echo "$ac_t""no" 1>&6
1938 cat >> confdefs.h
<<EOF
1939 #define size_t unsigned
1944 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1945 echo "configure:1946: checking for uid_t in sys/types.h" >&5
1946 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
1947 echo $ac_n "(cached) $ac_c" 1>&6
1949 cat > conftest.
$ac_ext <<EOF
1950 #line 1951 "configure"
1951 #include "confdefs.h"
1952 #include <sys/types.h>
1954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1955 egrep "uid_t" >/dev
/null
2>&1; then
1957 ac_cv_type_uid_t
=yes
1966 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
1967 if test $ac_cv_type_uid_t = no
; then
1968 cat >> confdefs.h
<<\EOF
1972 cat >> confdefs.h
<<\EOF
1979 # Sizes of various common basic types
1980 echo $ac_n "checking size of int""... $ac_c" 1>&6
1981 echo "configure:1982: checking size of int" >&5
1982 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
1983 echo $ac_n "(cached) $ac_c" 1>&6
1985 if test "$cross_compiling" = yes; then
1986 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1988 cat > conftest.
$ac_ext <<EOF
1989 #line 1990 "configure"
1990 #include "confdefs.h"
1994 FILE *f=fopen("conftestval", "w");
1996 fprintf(f, "%d\n", sizeof(int));
2000 if { (eval echo configure
:2001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2002 ac_cv_sizeof_int
=`cat conftestval`
2004 echo "configure: failed program was:" >&5
2005 cat conftest.
$ac_ext >&5
2013 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2014 cat >> confdefs.h
<<EOF
2015 #define SIZEOF_INT $ac_cv_sizeof_int
2019 echo $ac_n "checking size of long""... $ac_c" 1>&6
2020 echo "configure:2021: checking size of long" >&5
2021 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
2022 echo $ac_n "(cached) $ac_c" 1>&6
2024 if test "$cross_compiling" = yes; then
2025 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2027 cat > conftest.
$ac_ext <<EOF
2028 #line 2029 "configure"
2029 #include "confdefs.h"
2033 FILE *f=fopen("conftestval", "w");
2035 fprintf(f, "%d\n", sizeof(long));
2039 if { (eval echo configure
:2040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2041 ac_cv_sizeof_long
=`cat conftestval`
2043 echo "configure: failed program was:" >&5
2044 cat conftest.
$ac_ext >&5
2052 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2053 cat >> confdefs.h
<<EOF
2054 #define SIZEOF_LONG $ac_cv_sizeof_long
2058 echo $ac_n "checking size of void *""... $ac_c" 1>&6
2059 echo "configure:2060: checking size of void *" >&5
2060 if eval "test \"\${ac_cv_sizeof_void_p+set}\" = set"; then
2061 echo $ac_n "(cached) $ac_c" 1>&6
2063 if test "$cross_compiling" = yes; then
2064 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2066 cat > conftest.
$ac_ext <<EOF
2067 #line 2068 "configure"
2068 #include "confdefs.h"
2072 FILE *f=fopen("conftestval", "w");
2074 fprintf(f, "%d\n", sizeof(void *));
2078 if { (eval echo configure
:2079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2080 ac_cv_sizeof_void_p
=`cat conftestval`
2082 echo "configure: failed program was:" >&5
2083 cat conftest.
$ac_ext >&5
2085 ac_cv_sizeof_void_p
=0
2091 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
2092 cat >> confdefs.h
<<EOF
2093 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
2097 echo $ac_n "checking size of char""... $ac_c" 1>&6
2098 echo "configure:2099: checking size of char" >&5
2099 if eval "test \"\${ac_cv_sizeof_char+set}\" = set"; then
2100 echo $ac_n "(cached) $ac_c" 1>&6
2102 if test "$cross_compiling" = yes; then
2103 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2105 cat > conftest.
$ac_ext <<EOF
2106 #line 2107 "configure"
2107 #include "confdefs.h"
2111 FILE *f=fopen("conftestval", "w");
2113 fprintf(f, "%d\n", sizeof(char));
2117 if { (eval echo configure
:2118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2119 ac_cv_sizeof_char
=`cat conftestval`
2121 echo "configure: failed program was:" >&5
2122 cat conftest.
$ac_ext >&5
2130 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
2131 cat >> confdefs.h
<<EOF
2132 #define SIZEOF_CHAR $ac_cv_sizeof_char
2136 echo $ac_n "checking size of short""... $ac_c" 1>&6
2137 echo "configure:2138: checking size of short" >&5
2138 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
2139 echo $ac_n "(cached) $ac_c" 1>&6
2141 if test "$cross_compiling" = yes; then
2142 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2144 cat > conftest.
$ac_ext <<EOF
2145 #line 2146 "configure"
2146 #include "confdefs.h"
2150 FILE *f=fopen("conftestval", "w");
2152 fprintf(f, "%d\n", sizeof(short));
2156 if { (eval echo configure
:2157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2158 ac_cv_sizeof_short
=`cat conftestval`
2160 echo "configure: failed program was:" >&5
2161 cat conftest.
$ac_ext >&5
2163 ac_cv_sizeof_short
=0
2169 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2170 cat >> confdefs.h
<<EOF
2171 #define SIZEOF_SHORT $ac_cv_sizeof_short
2175 echo $ac_n "checking size of float""... $ac_c" 1>&6
2176 echo "configure:2177: checking size of float" >&5
2177 if eval "test \"\${ac_cv_sizeof_float+set}\" = set"; then
2178 echo $ac_n "(cached) $ac_c" 1>&6
2180 if test "$cross_compiling" = yes; then
2181 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2183 cat > conftest.
$ac_ext <<EOF
2184 #line 2185 "configure"
2185 #include "confdefs.h"
2189 FILE *f=fopen("conftestval", "w");
2191 fprintf(f, "%d\n", sizeof(float));
2195 if { (eval echo configure
:2196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2197 ac_cv_sizeof_float
=`cat conftestval`
2199 echo "configure: failed program was:" >&5
2200 cat conftest.
$ac_ext >&5
2202 ac_cv_sizeof_float
=0
2208 echo "$ac_t""$ac_cv_sizeof_float" 1>&6
2209 cat >> confdefs.h
<<EOF
2210 #define SIZEOF_FLOAT $ac_cv_sizeof_float
2214 echo $ac_n "checking size of double""... $ac_c" 1>&6
2215 echo "configure:2216: checking size of double" >&5
2216 if eval "test \"\${ac_cv_sizeof_double+set}\" = set"; then
2217 echo $ac_n "(cached) $ac_c" 1>&6
2219 if test "$cross_compiling" = yes; then
2220 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2222 cat > conftest.
$ac_ext <<EOF
2223 #line 2224 "configure"
2224 #include "confdefs.h"
2228 FILE *f=fopen("conftestval", "w");
2230 fprintf(f, "%d\n", sizeof(double));
2234 if { (eval echo configure
:2235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2236 ac_cv_sizeof_double
=`cat conftestval`
2238 echo "configure: failed program was:" >&5
2239 cat conftest.
$ac_ext >&5
2241 ac_cv_sizeof_double
=0
2247 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
2248 cat >> confdefs.h
<<EOF
2249 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
2253 echo $ac_n "checking size of fpos_t""... $ac_c" 1>&6
2254 echo "configure:2255: checking size of fpos_t" >&5
2255 if eval "test \"\${ac_cv_sizeof_fpos_t+set}\" = set"; then
2256 echo $ac_n "(cached) $ac_c" 1>&6
2258 if test "$cross_compiling" = yes; then
2259 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2261 cat > conftest.
$ac_ext <<EOF
2262 #line 2263 "configure"
2263 #include "confdefs.h"
2267 FILE *f=fopen("conftestval", "w");
2269 fprintf(f, "%d\n", sizeof(fpos_t));
2273 if { (eval echo configure
:2274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2275 ac_cv_sizeof_fpos_t
=`cat conftestval`
2277 echo "configure: failed program was:" >&5
2278 cat conftest.
$ac_ext >&5
2280 ac_cv_sizeof_fpos_t
=0
2286 echo "$ac_t""$ac_cv_sizeof_fpos_t" 1>&6
2287 cat >> confdefs.h
<<EOF
2288 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
2293 echo $ac_n "checking for long long support""... $ac_c" 1>&6
2294 echo "configure:2295: checking for long long support" >&5
2296 cat > conftest.
$ac_ext <<EOF
2297 #line 2298 "configure"
2298 #include "confdefs.h"
2301 long long x; x = (long long)0;
2304 if { (eval echo configure
:2305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2306 cat >> confdefs.h
<<\EOF
2307 #define HAVE_LONG_LONG 1
2311 echo "configure: failed program was:" >&5
2312 cat conftest.
$ac_ext >&5
2315 echo "$ac_t""$have_long_long" 1>&6
2316 if test "$have_long_long" = yes ; then
2317 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2318 echo "configure:2319: checking size of long long" >&5
2319 if eval "test \"\${ac_cv_sizeof_long_long+set}\" = set"; then
2320 echo $ac_n "(cached) $ac_c" 1>&6
2322 if test "$cross_compiling" = yes; then
2323 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2325 cat > conftest.
$ac_ext <<EOF
2326 #line 2327 "configure"
2327 #include "confdefs.h"
2331 FILE *f=fopen("conftestval", "w");
2333 fprintf(f, "%d\n", sizeof(long long));
2337 if { (eval echo configure
:2338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2339 ac_cv_sizeof_long_long
=`cat conftestval`
2341 echo "configure: failed program was:" >&5
2342 cat conftest.
$ac_ext >&5
2344 ac_cv_sizeof_long_long
=0
2350 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2351 cat >> confdefs.h
<<EOF
2352 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2358 echo $ac_n "checking for uintptr_t support""... $ac_c" 1>&6
2359 echo "configure:2360: checking for uintptr_t support" >&5
2361 cat > conftest.
$ac_ext <<EOF
2362 #line 2363 "configure"
2363 #include "confdefs.h"
2366 uintptr_t x; x = (uintptr_t)0;
2369 if { (eval echo configure
:2370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2371 cat >> confdefs.h
<<\EOF
2372 #define HAVE_UINTPTR_T 1
2376 echo "configure: failed program was:" >&5
2377 cat conftest.
$ac_ext >&5
2380 echo "$ac_t""$have_uintptr_t" 1>&6
2381 if test "$have_uintptr_t" = yes ; then
2382 echo $ac_n "checking size of uintptr_t""... $ac_c" 1>&6
2383 echo "configure:2384: checking size of uintptr_t" >&5
2384 if eval "test \"\${ac_cv_sizeof_uintptr_t+set}\" = set"; then
2385 echo $ac_n "(cached) $ac_c" 1>&6
2387 if test "$cross_compiling" = yes; then
2388 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2390 cat > conftest.
$ac_ext <<EOF
2391 #line 2392 "configure"
2392 #include "confdefs.h"
2396 FILE *f=fopen("conftestval", "w");
2398 fprintf(f, "%d\n", sizeof(uintptr_t));
2402 if { (eval echo configure
:2403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2404 ac_cv_sizeof_uintptr_t
=`cat conftestval`
2406 echo "configure: failed program was:" >&5
2407 cat conftest.
$ac_ext >&5
2409 ac_cv_sizeof_uintptr_t
=0
2415 echo "$ac_t""$ac_cv_sizeof_uintptr_t" 1>&6
2416 cat >> confdefs.h
<<EOF
2417 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
2423 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
2424 echo $ac_n "checking size of off_t""... $ac_c" 1>&6
2425 echo "configure:2426: checking size of off_t" >&5
2426 if eval "test \"\${ac_cv_sizeof_off_t+set}\" = set"; then
2427 echo $ac_n "(cached) $ac_c" 1>&6
2429 if test "$cross_compiling" = yes; then
2430 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2432 cat > conftest.
$ac_ext <<EOF
2433 #line 2434 "configure"
2434 #include "confdefs.h"
2436 #include <sys/types.h>
2439 FILE *f=fopen("conftestval", "w");
2441 fprintf(f, "%d\n", sizeof(off_t));
2445 if { (eval echo configure
:2446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2447 ac_cv_sizeof_off_t
=`cat conftestval`
2449 echo "configure: failed program was:" >&5
2450 cat conftest.
$ac_ext >&5
2452 ac_cv_sizeof_off_t
=0
2460 echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6
2461 cat >> confdefs.h
<<EOF
2462 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
2466 echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6
2467 echo "configure:2468: checking whether to enable large file support" >&5
2468 if test "$have_long_long" = yes -a \
2469 "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
2470 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
2471 cat >> confdefs.h
<<\EOF
2472 #define HAVE_LARGEFILE_SUPPORT 1
2475 echo "$ac_t""yes" 1>&6
2477 echo "$ac_t""no" 1>&6
2480 # AC_CHECK_SIZEOF() doesn't include <time.h>.
2481 echo $ac_n "checking size of time_t""... $ac_c" 1>&6
2482 echo "configure:2483: checking size of time_t" >&5
2483 if eval "test \"\${ac_cv_sizeof_time_t+set}\" = set"; then
2484 echo $ac_n "(cached) $ac_c" 1>&6
2486 if test "$cross_compiling" = yes; then
2487 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2489 cat > conftest.
$ac_ext <<EOF
2490 #line 2491 "configure"
2491 #include "confdefs.h"
2496 FILE *f=fopen("conftestval", "w");
2498 fprintf(f, "%d\n", sizeof(time_t));
2502 if { (eval echo configure
:2503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2504 ac_cv_sizeof_time_t
=`cat conftestval`
2506 echo "configure: failed program was:" >&5
2507 cat conftest.
$ac_ext >&5
2509 ac_cv_sizeof_time_t
=0
2517 echo "$ac_t""$ac_cv_sizeof_time_t" 1>&6
2518 cat >> confdefs.h
<<EOF
2519 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
2524 # if have pthread_t then define SIZEOF_PTHREAD_T
2525 echo $ac_n "checking for pthread_t""... $ac_c" 1>&6
2526 echo "configure:2527: checking for pthread_t" >&5
2528 cat > conftest.
$ac_ext <<EOF
2529 #line 2530 "configure"
2530 #include "confdefs.h"
2531 #include <pthread.h>
2533 pthread_t x; x = *(pthread_t*)0;
2536 if { (eval echo configure
:2537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2540 echo "configure: failed program was:" >&5
2541 cat conftest.
$ac_ext >&5
2544 echo "$ac_t""$have_pthread_t" 1>&6
2545 if test "$have_pthread_t" = yes ; then
2546 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
2547 echo $ac_n "checking size of pthread_t""... $ac_c" 1>&6
2548 echo "configure:2549: checking size of pthread_t" >&5
2549 if eval "test \"\${ac_cv_sizeof_pthread_t+set}\" = set"; then
2550 echo $ac_n "(cached) $ac_c" 1>&6
2552 if test "$cross_compiling" = yes; then
2553 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2555 cat > conftest.
$ac_ext <<EOF
2556 #line 2557 "configure"
2557 #include "confdefs.h"
2559 #include <pthread.h>
2562 FILE *f=fopen("conftestval", "w");
2564 fprintf(f, "%d\n", sizeof(pthread_t));
2568 if { (eval echo configure
:2569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2570 ac_cv_sizeof_pthread_t
=`cat conftestval`
2572 echo "configure: failed program was:" >&5
2573 cat conftest.
$ac_ext >&5
2575 ac_cv_sizeof_pthread_t
=0
2583 echo "$ac_t""$ac_cv_sizeof_pthread_t" 1>&6
2584 cat >> confdefs.h
<<EOF
2585 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
2591 # Minor variations in building a framework between NextStep versions 4 and 5
2593 case $ac_sys_system/$ac_sys_release in
2595 ns_undef_sym
='__environ'
2596 LIBTOOL_CRUFT
="-U $ns_undef_sym" ;;
2598 ns_undef_sym
='_environ'
2599 LIBTOOL_CRUFT
="-lcc_dynamic -U $ns_undef_sym" ;;
2602 echo $ac_n "checking for --with-next-framework""... $ac_c" 1>&6
2603 echo "configure:2604: checking for --with-next-framework" >&5
2604 if test "$with_next_framework"
2606 OPT
="$OPT -fno-common"
2607 # -U __environ is needed since bundles don't have access
2608 # to crt0 when built but will always be linked against it
2609 LDFLAGS
="$LDFLAGS -Wl,-U,$ns_undef_sym"
2610 cat >> confdefs.h
<<\EOF
2611 #define WITH_NEXT_FRAMEWORK 1
2614 echo "$ac_t""yes" 1>&6
2616 echo "$ac_t""no" 1>&6
2619 echo $ac_n "checking for --with-dyld""... $ac_c" 1>&6
2620 echo "configure:2621: checking for --with-dyld" >&5
2621 if test "$with_next_framework" -o "$with_dyld"
2623 if test "$with_dyld"
2625 echo "$ac_t""yes" 1>&6
2627 echo "$ac_t""required for framework build" 1>&6
2629 cat >> confdefs.h
<<\EOF
2635 echo "$ac_t""no" 1>&6
2638 # Set info about shared libraries.
2643 # SO is the extension of shared libraries `(including the dot!)
2644 # -- usually .so, .sl on HP-UX
2645 echo $ac_n "checking SO""... $ac_c" 1>&6
2646 echo "configure:2647: checking SO" >&5
2649 case $ac_sys_system in
2654 echo "$ac_t""$SO" 1>&6
2655 # LDSHARED is the ld *command* used to create shared library
2656 # -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5
2657 # (Shared libraries in this instance are shared modules to be loaded into
2658 # Python, as opposed to building Python itself as a shared library.)
2659 echo $ac_n "checking LDSHARED""... $ac_c" 1>&6
2660 echo "configure:2661: checking LDSHARED" >&5
2661 if test -z "$LDSHARED"
2663 case $ac_sys_system/$ac_sys_release in
2664 AIX
*) LDSHARED
="\$(srcdir)/ld_so_aix \$(CC)";;
2665 BeOS
*) LDSHARED
="\$(srcdir)/../BeOS/linkmodule -L.. -lpython\$(VERSION)";;
2666 IRIX
/5*) LDSHARED
="ld -shared";;
2667 IRIX
*/6*) LDSHARED
="ld ${SGI_ABI} -shared -all";;
2668 SunOS
/4*) LDSHARED
="ld";;
2670 if test "$GCC" = "yes"
2671 then LDSHARED
='$(CC) -G'
2672 else LDSHARED
="ld -G";
2674 hp
*|HP
*) LDSHARED
="ld -b";;
2675 OSF
*) LDSHARED
="ld -shared -expect_unresolved \"*\"";;
2676 DYNIX
/ptx*) LDSHARED
="ld -G";;
2679 then LDSHARED
='$(CC) $(LDFLAGS) -bundle -prebind'
2680 else LDSHARED
='$(CC) $(CFLAGS) -nostdlib -r';
2682 if test "$with_next_framework" ; then
2683 LDSHARED
="$LDSHARED \$(LDLIBRARY)"
2685 Linux
*) LDSHARED
="gcc -shared";;
2686 dgux
*) LDSHARED
="ld -G";;
2687 BSD
/OS
*/4*) LDSHARED
="gcc -shared";;
2688 OpenBSD
*) LDSHARED
="ld -Bshareable";;
2690 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
2692 LDSHARED
="cc -shared"
2694 LDSHARED
="ld -Bshareable"
2697 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
2699 LDSHARED
="cc -shared ${LDFLAGS}"
2701 LDSHARED
="ld -Bshareable ${LDFLAGS}"
2703 SCO_SV
*) LDSHARED
="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";;
2704 Monterey
*) LDSHARED
="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
2708 echo "$ac_t""$LDSHARED" 1>&6
2709 # CCSHARED are the C *flags* used to create objects to go into a shared
2710 # library (module) -- this is only needed for a few systems
2711 echo $ac_n "checking CCSHARED""... $ac_c" 1>&6
2712 echo "configure:2713: checking CCSHARED" >&5
2713 if test -z "$CCSHARED"
2715 case $ac_sys_system/$ac_sys_release in
2716 hp
*|HP
*) if test "$GCC" = yes;
2717 then CCSHARED
="-fpic";
2720 Linux
*) CCSHARED
="-fpic";;
2721 BSD
/OS
*/4*) CCSHARED
="-fpic";;
2722 OpenBSD
*) CCSHARED
="-fpic";;
2723 FreeBSD
*|NetBSD
*) CCSHARED
="-fPIC";;
2724 SCO_SV
*) CCSHARED
="-KPIC -dy -Bdynamic";;
2725 Monterey
*) CCSHARED
="-G";;
2726 IRIX
*/6*) case $CC in
2727 *gcc
*) CCSHARED
="-shared";;
2732 echo "$ac_t""$CCSHARED" 1>&6
2733 # LINKFORSHARED are the flags passed to the $(CC) command that links
2734 # the python executable -- this is only needed for a few systems
2735 echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6
2736 echo "configure:2737: checking LINKFORSHARED" >&5
2737 if test -z "$LINKFORSHARED"
2739 case $ac_sys_system/$ac_sys_release in
2740 AIX
*) LINKFORSHARED
='-Wl,-bE:python.exp -lld';;
2742 LINKFORSHARED
="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
2743 BSD
/OS
/4*) LINKFORSHARED
="-Xlinker -export-dynamic";;
2744 Linux
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
2745 # -u libsys_s pulls in all symbols in libsys
2746 next
/2*|next
/3*) LINKFORSHARED
="-u libsys_s";;
2747 # -u __dummy makes the linker aware of the objc runtime
2748 # in System.framework; otherwise, __objcInit (referenced in
2749 # crt1.o) gets erroneously defined as common, which breaks dynamic
2750 # loading of any modules which reference it in System.framework
2751 next
/4*|next
/5*) LINKFORSHARED
="-u __dummy -framework System" ;;
2752 SCO_SV
*) LINKFORSHARED
="-Bdynamic -dy -Wl,-Bexport";;
2753 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
2755 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
2757 LINKFORSHARED
="-Wl,--export-dynamic"
2759 SunOS
/5*) case $CC in
2761 if $CC -Xlinker -V 2>&1 |
grep BFD
>/dev
/null
2763 LINKFORSHARED
="-Xlinker --export-dynamic"
2768 echo "$ac_t""$LINKFORSHARED" 1>&6
2770 # checks for libraries
2771 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2772 echo "configure:2773: checking for dlopen in -ldl" >&5
2773 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2774 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2775 echo $ac_n "(cached) $ac_c" 1>&6
2777 ac_save_LIBS
="$LIBS"
2779 cat > conftest.
$ac_ext <<EOF
2780 #line 2781 "configure"
2781 #include "confdefs.h"
2782 /* Override any gcc2 internal prototype to avoid an error. */
2783 /* We use char because int might match the return type of a gcc2
2784 builtin and then its argument prototype would still apply. */
2791 if { (eval echo configure
:2792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2793 eval "ac_cv_lib_$ac_lib_var=yes"
2795 echo "configure: failed program was:" >&5
2796 cat conftest.
$ac_ext >&5
2798 eval "ac_cv_lib_$ac_lib_var=no"
2801 LIBS
="$ac_save_LIBS"
2804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2805 echo "$ac_t""yes" 1>&6
2806 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2807 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2808 cat >> confdefs.h
<<EOF
2809 #define $ac_tr_lib 1
2815 echo "$ac_t""no" 1>&6
2817 # Dynamic linking for SunOS/Solaris and SYSV
2818 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
2819 echo "configure:2820: checking for shl_load in -ldld" >&5
2820 ac_lib_var
=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
2821 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2822 echo $ac_n "(cached) $ac_c" 1>&6
2824 ac_save_LIBS
="$LIBS"
2826 cat > conftest.
$ac_ext <<EOF
2827 #line 2828 "configure"
2828 #include "confdefs.h"
2829 /* Override any gcc2 internal prototype to avoid an error. */
2830 /* We use char because int might match the return type of a gcc2
2831 builtin and then its argument prototype would still apply. */
2838 if { (eval echo configure
:2839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2840 eval "ac_cv_lib_$ac_lib_var=yes"
2842 echo "configure: failed program was:" >&5
2843 cat conftest.
$ac_ext >&5
2845 eval "ac_cv_lib_$ac_lib_var=no"
2848 LIBS
="$ac_save_LIBS"
2851 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2852 echo "$ac_t""yes" 1>&6
2853 ac_tr_lib
=HAVE_LIB
`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2854 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2855 cat >> confdefs.h
<<EOF
2856 #define $ac_tr_lib 1
2862 echo "$ac_t""no" 1>&6
2864 # Dynamic linking for HP-UX
2866 # Check for --with-pydebug
2867 echo $ac_n "checking for --with-pydebug""... $ac_c" 1>&6
2868 echo "configure:2869: checking for --with-pydebug" >&5
2869 # Check whether --with-pydebug or --without-pydebug was given.
2870 if test "${with_pydebug+set}" = set; then
2871 withval
="$with_pydebug"
2873 if test "$withval" != no
2874 then cat >> confdefs.h
<<\EOF
2877 echo "$ac_t""yes" 1>&6
2878 else echo "$ac_t""no" 1>&6
2881 echo "$ac_t""no" 1>&6
2885 # checks for system dependent C++ extensions support
2886 case "$ac_sys_system" in
2887 AIX
*) echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6
2888 echo "configure:2889: checking for genuine AIX C++ extensions support" >&5
2889 cat > conftest.
$ac_ext <<EOF
2890 #line 2891 "configure"
2891 #include "confdefs.h"
2892 #include "/usr/lpp/xlC/include/load.h"
2894 loadAndInit("", 0, "")
2897 if { (eval echo configure
:2898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2899 cat >> confdefs.h
<<\EOF
2900 #define AIX_GENUINE_CPLUSPLUS 1
2903 echo "$ac_t""yes" 1>&6
2905 echo "configure: failed program was:" >&5
2906 cat conftest.
$ac_ext >&5
2908 echo "$ac_t""no" 1>&6
2914 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
2915 # However on SGI IRIX, these exist but are broken.
2916 # BeOS' sockets are stashed in libnet.
2917 case "$ac_sys_system" in
2920 echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6
2921 echo "configure:2922: checking for t_open in -lnsl" >&5
2922 ac_lib_var
=`echo nsl'_'t_open | sed 'y%./+-%__p_%'`
2923 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2924 echo $ac_n "(cached) $ac_c" 1>&6
2926 ac_save_LIBS
="$LIBS"
2928 cat > conftest.
$ac_ext <<EOF
2929 #line 2930 "configure"
2930 #include "confdefs.h"
2931 /* Override any gcc2 internal prototype to avoid an error. */
2932 /* We use char because int might match the return type of a gcc2
2933 builtin and then its argument prototype would still apply. */
2940 if { (eval echo configure
:2941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2942 eval "ac_cv_lib_$ac_lib_var=yes"
2944 echo "configure: failed program was:" >&5
2945 cat conftest.
$ac_ext >&5
2947 eval "ac_cv_lib_$ac_lib_var=no"
2950 LIBS
="$ac_save_LIBS"
2953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2954 echo "$ac_t""yes" 1>&6
2957 echo "$ac_t""no" 1>&6
2960 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2961 echo "configure:2962: checking for socket in -lsocket" >&5
2962 ac_lib_var
=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2963 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2964 echo $ac_n "(cached) $ac_c" 1>&6
2966 ac_save_LIBS
="$LIBS"
2967 LIBS
="-lsocket $LIBS $LIBS"
2968 cat > conftest.
$ac_ext <<EOF
2969 #line 2970 "configure"
2970 #include "confdefs.h"
2971 /* Override any gcc2 internal prototype to avoid an error. */
2972 /* We use char because int might match the return type of a gcc2
2973 builtin and then its argument prototype would still apply. */
2980 if { (eval echo configure
:2981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2982 eval "ac_cv_lib_$ac_lib_var=yes"
2984 echo "configure: failed program was:" >&5
2985 cat conftest.
$ac_ext >&5
2987 eval "ac_cv_lib_$ac_lib_var=no"
2990 LIBS
="$ac_save_LIBS"
2993 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2994 echo "$ac_t""yes" 1>&6
2995 LIBS
="-lsocket $LIBS"
2997 echo "$ac_t""no" 1>&6
3002 case "$ac_sys_system" in
3004 echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6
3005 echo "configure:3006: checking for socket in -lnet" >&5
3006 ac_lib_var
=`echo net'_'socket | sed 'y%./+-%__p_%'`
3007 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3008 echo $ac_n "(cached) $ac_c" 1>&6
3010 ac_save_LIBS
="$LIBS"
3011 LIBS
="-lnet $LIBS $LIBS"
3012 cat > conftest.
$ac_ext <<EOF
3013 #line 3014 "configure"
3014 #include "confdefs.h"
3015 /* Override any gcc2 internal prototype to avoid an error. */
3016 /* We use char because int might match the return type of a gcc2
3017 builtin and then its argument prototype would still apply. */
3024 if { (eval echo configure
:3025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3026 eval "ac_cv_lib_$ac_lib_var=yes"
3028 echo "configure: failed program was:" >&5
3029 cat conftest.
$ac_ext >&5
3031 eval "ac_cv_lib_$ac_lib_var=no"
3034 LIBS
="$ac_save_LIBS"
3037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3038 echo "$ac_t""yes" 1>&6
3041 echo "$ac_t""no" 1>&6
3047 echo $ac_n "checking for --with-libs""... $ac_c" 1>&6
3048 echo "configure:3049: checking for --with-libs" >&5
3049 # Check whether --with-libs or --without-libs was given.
3050 if test "${with_libs+set}" = set; then
3051 withval
="$with_libs"
3053 echo "$ac_t""$withval" 1>&6
3054 LIBS
="$withval $LIBS"
3057 echo "$ac_t""no" 1>&6
3062 USE_THREAD_MODULE
=""
3064 echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6
3065 echo "configure:3066: checking for --with-dec-threads" >&5
3067 # Check whether --with-dec-threads or --without-dec-threads was given.
3068 if test "${with_dec_threads+set}" = set; then
3069 withval
="$with_dec_threads"
3071 echo "$ac_t""$withval" 1>&6
3073 if test "${with_thread+set}" != set; then
3074 with_thread
="$withval";
3077 echo "$ac_t""no" 1>&6
3081 echo $ac_n "checking for --with-threads""... $ac_c" 1>&6
3082 echo "configure:3083: checking for --with-threads" >&5
3083 # Check whether --with-threads or --without-threads was given.
3084 if test "${with_threads+set}" = set; then
3085 withval
="$with_threads"
3090 # --with-thread is deprecated, but check for it anyway
3091 # Check whether --with-thread or --without-thread was given.
3092 if test "${with_thread+set}" = set; then
3093 withval
="$with_thread"
3095 with_threads
=$with_thread
3099 if test -z "$with_threads"
3100 then with_threads
="yes"
3102 echo "$ac_t""$with_threads" 1>&6
3104 if test "$with_threads" = "no"
3106 USE_THREAD_MODULE
="#"
3108 if test -d "$with_threads"
3109 then LDFLAGS
="$LDFLAGS -L$with_threads"
3111 if test -d "$withval"
3112 then LDFLAGS
="$LDFLAGS -L$withval"
3114 cat >> confdefs.h
<<\EOF
3115 #define _REENTRANT 1
3118 ac_safe
=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'`
3119 echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6
3120 echo "configure:3121: checking for mach/cthreads.h" >&5
3121 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3122 echo $ac_n "(cached) $ac_c" 1>&6
3124 cat > conftest.
$ac_ext <<EOF
3125 #line 3126 "configure"
3126 #include "confdefs.h"
3127 #include <mach/cthreads.h>
3129 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3130 { (eval echo configure
:3131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3131 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3132 if test -z "$ac_err"; then
3134 eval "ac_cv_header_$ac_safe=yes"
3137 echo "configure: failed program was:" >&5
3138 cat conftest.
$ac_ext >&5
3140 eval "ac_cv_header_$ac_safe=no"
3144 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3145 echo "$ac_t""yes" 1>&6
3146 cat >> confdefs.h
<<\EOF
3147 #define WITH_THREAD 1
3150 cat >> confdefs.h
<<\EOF
3154 LIBOBJS
="$LIBOBJS thread.o"
3156 echo "$ac_t""no" 1>&6
3158 echo $ac_n "checking for --with-pth""... $ac_c" 1>&6
3159 echo "configure:3160: checking for --with-pth" >&5
3160 # Check whether --with-pth or --without-pth was given.
3161 if test "${with_pth+set}" = set; then
3164 echo "$ac_t""$withval" 1>&6
3165 cat >> confdefs.h
<<\EOF
3166 #define WITH_THREAD 1
3169 cat >> confdefs.h
<<\EOF
3174 LIBOBJS
="$LIBOBJS thread.o"
3177 echo "$ac_t""no" 1>&6
3178 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
3179 echo "configure:3180: checking for pthread_create in -lpthread" >&5
3180 ac_lib_var
=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
3181 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3182 echo $ac_n "(cached) $ac_c" 1>&6
3184 ac_save_LIBS
="$LIBS"
3185 LIBS
="-lpthread $LIBS"
3186 cat > conftest.
$ac_ext <<EOF
3187 #line 3188 "configure"
3188 #include "confdefs.h"
3189 /* Override any gcc2 internal prototype to avoid an error. */
3190 /* We use char because int might match the return type of a gcc2
3191 builtin and then its argument prototype would still apply. */
3192 char pthread_create();
3198 if { (eval echo configure
:3199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3200 eval "ac_cv_lib_$ac_lib_var=yes"
3202 echo "configure: failed program was:" >&5
3203 cat conftest.
$ac_ext >&5
3205 eval "ac_cv_lib_$ac_lib_var=no"
3208 LIBS
="$ac_save_LIBS"
3211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3212 echo "$ac_t""yes" 1>&6
3213 cat >> confdefs.h
<<\EOF
3214 #define WITH_THREAD 1
3217 cat >> confdefs.h
<<\EOF
3218 #define _POSIX_THREADS 1
3221 LIBS
="-lpthread $LIBS"
3222 LIBOBJS
="$LIBOBJS thread.o"
3224 echo "$ac_t""no" 1>&6
3226 echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6
3227 echo "configure:3228: checking for pthread_detach" >&5
3228 if eval "test \"\${ac_cv_func_pthread_detach+set}\" = set"; then
3229 echo $ac_n "(cached) $ac_c" 1>&6
3231 cat > conftest.
$ac_ext <<EOF
3232 #line 3233 "configure"
3233 #include "confdefs.h"
3234 /* System header to define __stub macros and hopefully few prototypes,
3235 which can conflict with char pthread_detach(); below. */
3237 /* Override any gcc2 internal prototype to avoid an error. */
3238 /* We use char because int might match the return type of a gcc2
3239 builtin and then its argument prototype would still apply. */
3240 char pthread_detach();
3245 /* The GNU C library defines this for functions which it implements
3246 to always fail with ENOSYS. Some functions are actually named
3247 something starting with __ and the normal name is an alias. */
3248 #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach)
3256 if { (eval echo configure
:3257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3258 eval "ac_cv_func_pthread_detach=yes"
3260 echo "configure: failed program was:" >&5
3261 cat conftest.
$ac_ext >&5
3263 eval "ac_cv_func_pthread_detach=no"
3268 if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then
3269 echo "$ac_t""yes" 1>&6
3270 cat >> confdefs.h
<<\EOF
3271 #define WITH_THREAD 1
3274 cat >> confdefs.h
<<\EOF
3275 #define _POSIX_THREADS 1
3278 LIBOBJS
="$LIBOBJS thread.o"
3280 echo "$ac_t""no" 1>&6
3282 ac_safe
=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'`
3283 echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6
3284 echo "configure:3285: checking for kernel/OS.h" >&5
3285 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3286 echo $ac_n "(cached) $ac_c" 1>&6
3288 cat > conftest.
$ac_ext <<EOF
3289 #line 3290 "configure"
3290 #include "confdefs.h"
3291 #include <kernel/OS.h>
3293 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3294 { (eval echo configure
:3295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3295 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3296 if test -z "$ac_err"; then
3298 eval "ac_cv_header_$ac_safe=yes"
3301 echo "configure: failed program was:" >&5
3302 cat conftest.
$ac_ext >&5
3304 eval "ac_cv_header_$ac_safe=no"
3308 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3309 echo "$ac_t""yes" 1>&6
3310 cat >> confdefs.h
<<\EOF
3311 #define WITH_THREAD 1
3314 cat >> confdefs.h
<<\EOF
3315 #define BEOS_THREADS 1
3318 LIBOBJS
="$LIBOBJS thread.o"
3320 echo "$ac_t""no" 1>&6
3322 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
3323 echo "configure:3324: checking for pthread_create in -lpthreads" >&5
3324 ac_lib_var
=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
3325 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3326 echo $ac_n "(cached) $ac_c" 1>&6
3328 ac_save_LIBS
="$LIBS"
3329 LIBS
="-lpthreads $LIBS"
3330 cat > conftest.
$ac_ext <<EOF
3331 #line 3332 "configure"
3332 #include "confdefs.h"
3333 /* Override any gcc2 internal prototype to avoid an error. */
3334 /* We use char because int might match the return type of a gcc2
3335 builtin and then its argument prototype would still apply. */
3336 char pthread_create();
3342 if { (eval echo configure
:3343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3344 eval "ac_cv_lib_$ac_lib_var=yes"
3346 echo "configure: failed program was:" >&5
3347 cat conftest.
$ac_ext >&5
3349 eval "ac_cv_lib_$ac_lib_var=no"
3352 LIBS
="$ac_save_LIBS"
3355 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3356 echo "$ac_t""yes" 1>&6
3357 cat >> confdefs.h
<<\EOF
3358 #define WITH_THREAD 1
3361 cat >> confdefs.h
<<\EOF
3362 #define _POSIX_THREADS 1
3365 LIBS
="$LIBS -lpthreads"
3366 LIBOBJS
="$LIBOBJS thread.o"
3368 echo "$ac_t""no" 1>&6
3370 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
3371 echo "configure:3372: checking for pthread_create in -lc_r" >&5
3372 ac_lib_var
=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
3373 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3374 echo $ac_n "(cached) $ac_c" 1>&6
3376 ac_save_LIBS
="$LIBS"
3378 cat > conftest.
$ac_ext <<EOF
3379 #line 3380 "configure"
3380 #include "confdefs.h"
3381 /* Override any gcc2 internal prototype to avoid an error. */
3382 /* We use char because int might match the return type of a gcc2
3383 builtin and then its argument prototype would still apply. */
3384 char pthread_create();
3390 if { (eval echo configure
:3391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3392 eval "ac_cv_lib_$ac_lib_var=yes"
3394 echo "configure: failed program was:" >&5
3395 cat conftest.
$ac_ext >&5
3397 eval "ac_cv_lib_$ac_lib_var=no"
3400 LIBS
="$ac_save_LIBS"
3403 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3404 echo "$ac_t""yes" 1>&6
3405 cat >> confdefs.h
<<\EOF
3406 #define WITH_THREAD 1
3409 cat >> confdefs.h
<<\EOF
3410 #define _POSIX_THREADS 1
3414 LIBOBJS
="$LIBOBJS thread.o"
3416 echo "$ac_t""no" 1>&6
3418 echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6
3419 echo "configure:3420: checking for __d6_pthread_create in -lthread" >&5
3420 ac_lib_var
=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'`
3421 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3422 echo $ac_n "(cached) $ac_c" 1>&6
3424 ac_save_LIBS
="$LIBS"
3425 LIBS
="-lthread $LIBS"
3426 cat > conftest.
$ac_ext <<EOF
3427 #line 3428 "configure"
3428 #include "confdefs.h"
3429 /* Override any gcc2 internal prototype to avoid an error. */
3430 /* We use char because int might match the return type of a gcc2
3431 builtin and then its argument prototype would still apply. */
3432 char __d6_pthread_create();
3435 __d6_pthread_create()
3438 if { (eval echo configure
:3439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3440 eval "ac_cv_lib_$ac_lib_var=yes"
3442 echo "configure: failed program was:" >&5
3443 cat conftest.
$ac_ext >&5
3445 eval "ac_cv_lib_$ac_lib_var=no"
3448 LIBS
="$ac_save_LIBS"
3451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3452 echo "$ac_t""yes" 1>&6
3453 cat >> confdefs.h
<<\EOF
3454 #define WITH_THREAD 1
3457 cat >> confdefs.h
<<\EOF
3458 #define _POSIX_THREADS 1
3461 LIBS
="$LIBS -lthread"
3462 LIBOBJS
="$LIBOBJS thread.o"
3464 echo "$ac_t""no" 1>&6
3466 echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6
3467 echo "configure:3468: checking for pthread_create in -lcma" >&5
3468 ac_lib_var
=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'`
3469 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3470 echo $ac_n "(cached) $ac_c" 1>&6
3472 ac_save_LIBS
="$LIBS"
3474 cat > conftest.
$ac_ext <<EOF
3475 #line 3476 "configure"
3476 #include "confdefs.h"
3477 /* Override any gcc2 internal prototype to avoid an error. */
3478 /* We use char because int might match the return type of a gcc2
3479 builtin and then its argument prototype would still apply. */
3480 char pthread_create();
3486 if { (eval echo configure
:3487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3488 eval "ac_cv_lib_$ac_lib_var=yes"
3490 echo "configure: failed program was:" >&5
3491 cat conftest.
$ac_ext >&5
3493 eval "ac_cv_lib_$ac_lib_var=no"
3496 LIBS
="$ac_save_LIBS"
3499 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3500 echo "$ac_t""yes" 1>&6
3501 cat >> confdefs.h
<<\EOF
3502 #define WITH_THREAD 1
3505 cat >> confdefs.h
<<\EOF
3506 #define _POSIX_THREADS 1
3510 LIBOBJS
="$LIBOBJS thread.o"
3512 echo "$ac_t""no" 1>&6
3514 USE_THREAD_MODULE
="#"
3535 echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6
3536 echo "configure:3537: checking for usconfig in -lmpc" >&5
3537 ac_lib_var
=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'`
3538 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3539 echo $ac_n "(cached) $ac_c" 1>&6
3541 ac_save_LIBS
="$LIBS"
3543 cat > conftest.
$ac_ext <<EOF
3544 #line 3545 "configure"
3545 #include "confdefs.h"
3546 /* Override any gcc2 internal prototype to avoid an error. */
3547 /* We use char because int might match the return type of a gcc2
3548 builtin and then its argument prototype would still apply. */
3555 if { (eval echo configure
:3556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3557 eval "ac_cv_lib_$ac_lib_var=yes"
3559 echo "configure: failed program was:" >&5
3560 cat conftest.
$ac_ext >&5
3562 eval "ac_cv_lib_$ac_lib_var=no"
3565 LIBS
="$ac_save_LIBS"
3568 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3569 echo "$ac_t""yes" 1>&6
3570 cat >> confdefs.h
<<\EOF
3571 #define WITH_THREAD 1
3575 LIBOBJS
="$LIBOBJS thread.o"
3576 USE_THREAD_MODULE
=""
3578 echo "$ac_t""no" 1>&6
3581 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
3582 echo "configure:3583: checking for thr_create in -lthread" >&5
3583 ac_lib_var
=`echo thread'_'thr_create | sed 'y%./+-%__p_%'`
3584 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3585 echo $ac_n "(cached) $ac_c" 1>&6
3587 ac_save_LIBS
="$LIBS"
3588 LIBS
="-lthread $LIBS"
3589 cat > conftest.
$ac_ext <<EOF
3590 #line 3591 "configure"
3591 #include "confdefs.h"
3592 /* Override any gcc2 internal prototype to avoid an error. */
3593 /* We use char because int might match the return type of a gcc2
3594 builtin and then its argument prototype would still apply. */
3601 if { (eval echo configure
:3602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3603 eval "ac_cv_lib_$ac_lib_var=yes"
3605 echo "configure: failed program was:" >&5
3606 cat conftest.
$ac_ext >&5
3608 eval "ac_cv_lib_$ac_lib_var=no"
3611 LIBS
="$ac_save_LIBS"
3614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3615 echo "$ac_t""yes" 1>&6
3616 cat >> confdefs.h
<<\EOF
3617 #define WITH_THREAD 1
3620 LIBS
="$LIBS -lthread"
3621 LIBOBJS
="$LIBOBJS thread.o"
3622 USE_THREAD_MODULE
=""
3624 echo "$ac_t""no" 1>&6
3629 # Check for GC support
3632 echo $ac_n "checking for --with-cycle-gc""... $ac_c" 1>&6
3633 echo "configure:3634: checking for --with-cycle-gc" >&5
3634 # Check whether --with-cycle-gc or --without-cycle-gc was given.
3635 if test "${with_cycle_gc+set}" = set; then
3636 withval
="$with_cycle_gc"
3641 if test -z "$with_cycle_gc"
3642 then with_cycle_gc
="yes"
3644 if test "$with_cycle_gc" = "no"
3648 cat >> confdefs.h
<<\EOF
3649 #define WITH_CYCLE_GC 1
3653 echo "$ac_t""$with_cycle_gc" 1>&6
3655 # Check for LIBDB support
3656 # either --with-libdb or, in its absence, the presence of db.h
3659 echo $ac_n "checking for --with-libdb""... $ac_c" 1>&6
3660 echo "configure:3661: checking for --with-libdb" >&5
3661 # Check whether --with-libdb or --without-libdb was given.
3662 if test "${with_libdb+set}" = set; then
3663 withval
="$with_libdb"
3668 # enabled by default, but db.h must be found
3669 if test "$ac_cv_header_db_h" = "yes"
3671 if test "$with_libdb" != "no"
3672 then with_libdb
="yes"
3675 # make sure user knows why bsddb support wasn't enabled event
3676 # though s/he requested it
3677 if test "$with_libdb" = "yes"
3678 then echo $ac_n "(requested, but db.h was not found) $ac_c"
3683 if test "$with_libdb" = "no"
3685 USE_BSDDB_MODULE
="#"
3687 cat >> confdefs.h
<<\EOF
3688 #define WITH_LIBDB 1
3692 echo "$ac_t""$with_libdb" 1>&6
3694 if test "$with_libdb" = "yes"
3696 # check for libdb; BSD systems have the DB routines in libc --tg
3698 # If dbopen is not in libc, then checking whether it is in libdb
3699 # is difficult: db_185.h may #define it as __db185_open
3700 # Instead, we just trust it is in libdb; linking will fail if it
3702 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
3703 echo "configure:3704: checking for dbopen" >&5
3704 if eval "test \"\${ac_cv_func_dbopen+set}\" = set"; then
3705 echo $ac_n "(cached) $ac_c" 1>&6
3707 cat > conftest.
$ac_ext <<EOF
3708 #line 3709 "configure"
3709 #include "confdefs.h"
3710 /* System header to define __stub macros and hopefully few prototypes,
3711 which can conflict with char dbopen(); below. */
3713 /* Override any gcc2 internal prototype to avoid an error. */
3714 /* We use char because int might match the return type of a gcc2
3715 builtin and then its argument prototype would still apply. */
3721 /* The GNU C library defines this for functions which it implements
3722 to always fail with ENOSYS. Some functions are actually named
3723 something starting with __ and the normal name is an alias. */
3724 #if defined (__stub_dbopen) || defined (__stub___dbopen)
3732 if { (eval echo configure
:3733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3734 eval "ac_cv_func_dbopen=yes"
3736 echo "configure: failed program was:" >&5
3737 cat conftest.
$ac_ext >&5
3739 eval "ac_cv_func_dbopen=no"
3744 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
3745 echo "$ac_t""yes" 1>&6
3748 echo "$ac_t""no" 1>&6
3754 # Check for --with-wctype-functions
3755 echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6
3756 echo "configure:3757: checking for --with-wctype-functions" >&5
3757 # Check whether --with-wctype-functions or --without-wctype-functions was given.
3758 if test "${with_wctype_functions+set}" = set; then
3759 withval
="$with_wctype_functions"
3761 if test "$withval" != no
3762 then cat >> confdefs.h
<<\EOF
3763 #define WANT_WCTYPE_FUNCTIONS 1
3765 echo "$ac_t""yes" 1>&6
3766 else echo "$ac_t""no" 1>&6
3769 echo "$ac_t""no" 1>&6
3773 # -I${DLINCLDIR} is added to the compile rule for importdl.o
3777 echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6
3778 echo "configure:3779: checking for --with-sgi-dl" >&5
3779 # Check whether --with-sgi-dl or --without-sgi-dl was given.
3780 if test "${with_sgi_dl+set}" = set; then
3781 withval
="$with_sgi_dl"
3783 echo "$ac_t""$withval" 1>&6
3784 cat >> confdefs.h
<<\EOF
3785 #define WITH_SGI_DL 1
3788 DYNLOADFILE
="dynload_dl.o"
3791 then LDFLAGS
="$LDFLAGS -L$dldir"
3792 else { echo "configure: error: proper usage is --with-sgi-dl=DIRECTORY" 1>&2; exit 1; }
3795 LIBS
="$LIBS -ldl -lmld"
3797 echo "$ac_t""no" 1>&6
3801 echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6
3802 echo "configure:3803: checking for --with-dl-dld" >&5
3803 # Check whether --with-dl-dld or --without-dl-dld was given.
3804 if test "${with_dl_dld+set}" = set; then
3805 withval
="$with_dl_dld"
3807 echo "$ac_t""$withval" 1>&6
3808 cat >> confdefs.h
<<\EOF
3809 #define WITH_DL_DLD 1
3812 DYNLOADFILE
="dynload_dl.o"
3813 dldir
=`echo "$withval" | sed 's/,.*//'`
3814 dlddir
=`echo "$withval" | sed 's/.*,//'`
3815 if test -d "$dldir" -a -d "$dlddir"
3816 then LDFLAGS
="$LDFLAGS -L$dldir -L$dlddir"
3817 else { echo "configure: error: proper usage is --with-dl-dld=DL_DIRECTORY" 1>&2; exit 1; }
3820 LIBS
="$LIBS -ldl -ldld"
3822 echo "$ac_t""no" 1>&6
3826 # the dlopen() function means we might want to use dynload_shlib.o. some
3827 # platforms, such as AIX, have dlopen(), but don't want to use it.
3828 for ac_func
in dlopen
3830 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3831 echo "configure:3832: checking for $ac_func" >&5
3832 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
3833 echo $ac_n "(cached) $ac_c" 1>&6
3835 cat > conftest.
$ac_ext <<EOF
3836 #line 3837 "configure"
3837 #include "confdefs.h"
3838 /* System header to define __stub macros and hopefully few prototypes,
3839 which can conflict with char $ac_func(); below. */
3841 /* Override any gcc2 internal prototype to avoid an error. */
3842 /* We use char because int might match the return type of a gcc2
3843 builtin and then its argument prototype would still apply. */
3849 /* The GNU C library defines this for functions which it implements
3850 to always fail with ENOSYS. Some functions are actually named
3851 something starting with __ and the normal name is an alias. */
3852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3860 if { (eval echo configure
:3861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3862 eval "ac_cv_func_$ac_func=yes"
3864 echo "configure: failed program was:" >&5
3865 cat conftest.
$ac_ext >&5
3867 eval "ac_cv_func_$ac_func=no"
3872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3873 echo "$ac_t""yes" 1>&6
3874 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3875 cat >> confdefs.h
<<EOF
3876 #define $ac_tr_func 1
3880 echo "$ac_t""no" 1>&6
3885 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
3886 # loading of modules.
3888 echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6
3889 echo "configure:3890: checking DYNLOADFILE" >&5
3890 if test -z "$DYNLOADFILE"
3892 case $ac_sys_system/$ac_sys_release in
3893 AIX
*) DYNLOADFILE
="dynload_aix.o";;
3894 BeOS
*) DYNLOADFILE
="dynload_beos.o";;
3895 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
3896 next
/*) DYNLOADFILE
="dynload_next.o";;
3898 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
3899 # out any dynamic loading
3900 if test "$ac_cv_func_dlopen" = yes
3901 then DYNLOADFILE
="dynload_shlib.o"
3902 else DYNLOADFILE
="dynload_stub.o"
3907 echo "$ac_t""$DYNLOADFILE" 1>&6
3908 if test "$DYNLOADFILE" != "dynload_stub.o"
3910 cat >> confdefs.h
<<\EOF
3911 #define HAVE_DYNAMIC_LOADING 1
3916 # checks for library functions
3917 for ac_func
in alarm chown
clock confstr ctermid ctermid_r execv \
3918 flock fork fsync fdatasync fpathconf ftime ftruncate \
3919 getgroups getlogin getpeername getpid getpwent getwd \
3920 kill link lstat
mkfifo mktime mremap \
3921 nice pathconf pause plock poll pthread_init \
3923 select setegid seteuid setgid \
3924 setlocale setregid setreuid setsid setpgid setuid setvbuf \
3925 sigaction siginterrupt sigrelse strftime strptime symlink sysconf \
3926 tcgetpgrp tcsetpgrp tempnam timegm
times tmpfile tmpnam tmpnam_r \
3927 truncate uname waitpid _getpty
3929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3930 echo "configure:3931: checking for $ac_func" >&5
3931 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
3932 echo $ac_n "(cached) $ac_c" 1>&6
3934 cat > conftest.
$ac_ext <<EOF
3935 #line 3936 "configure"
3936 #include "confdefs.h"
3937 /* System header to define __stub macros and hopefully few prototypes,
3938 which can conflict with char $ac_func(); below. */
3940 /* Override any gcc2 internal prototype to avoid an error. */
3941 /* We use char because int might match the return type of a gcc2
3942 builtin and then its argument prototype would still apply. */
3948 /* The GNU C library defines this for functions which it implements
3949 to always fail with ENOSYS. Some functions are actually named
3950 something starting with __ and the normal name is an alias. */
3951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3959 if { (eval echo configure
:3960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3961 eval "ac_cv_func_$ac_func=yes"
3963 echo "configure: failed program was:" >&5
3964 cat conftest.
$ac_ext >&5
3966 eval "ac_cv_func_$ac_func=no"
3971 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3972 echo "$ac_t""yes" 1>&6
3973 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3974 cat >> confdefs.h
<<EOF
3975 #define $ac_tr_func 1
3979 echo "$ac_t""no" 1>&6
3984 # check for openpty and forkpty
3986 for ac_func
in openpty
3988 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3989 echo "configure:3990: checking for $ac_func" >&5
3990 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
3991 echo $ac_n "(cached) $ac_c" 1>&6
3993 cat > conftest.
$ac_ext <<EOF
3994 #line 3995 "configure"
3995 #include "confdefs.h"
3996 /* System header to define __stub macros and hopefully few prototypes,
3997 which can conflict with char $ac_func(); below. */
3999 /* Override any gcc2 internal prototype to avoid an error. */
4000 /* We use char because int might match the return type of a gcc2
4001 builtin and then its argument prototype would still apply. */
4007 /* The GNU C library defines this for functions which it implements
4008 to always fail with ENOSYS. Some functions are actually named
4009 something starting with __ and the normal name is an alias. */
4010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4018 if { (eval echo configure
:4019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4020 eval "ac_cv_func_$ac_func=yes"
4022 echo "configure: failed program was:" >&5
4023 cat conftest.
$ac_ext >&5
4025 eval "ac_cv_func_$ac_func=no"
4030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4031 echo "$ac_t""yes" 1>&6
4032 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4033 cat >> confdefs.h
<<EOF
4034 #define $ac_tr_func 1
4038 echo "$ac_t""no" 1>&6
4039 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
4040 echo "configure:4041: checking for openpty in -lutil" >&5
4041 ac_lib_var
=`echo util'_'openpty | sed 'y%./+-%__p_%'`
4042 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4043 echo $ac_n "(cached) $ac_c" 1>&6
4045 ac_save_LIBS
="$LIBS"
4047 cat > conftest.
$ac_ext <<EOF
4048 #line 4049 "configure"
4049 #include "confdefs.h"
4050 /* Override any gcc2 internal prototype to avoid an error. */
4051 /* We use char because int might match the return type of a gcc2
4052 builtin and then its argument prototype would still apply. */
4059 if { (eval echo configure
:4060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4061 eval "ac_cv_lib_$ac_lib_var=yes"
4063 echo "configure: failed program was:" >&5
4064 cat conftest.
$ac_ext >&5
4066 eval "ac_cv_lib_$ac_lib_var=no"
4069 LIBS
="$ac_save_LIBS"
4072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4073 echo "$ac_t""yes" 1>&6
4074 cat >> confdefs.h
<<\EOF
4075 #define HAVE_OPENPTY 1
4079 echo "$ac_t""no" 1>&6
4085 for ac_func
in forkpty
4087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4088 echo "configure:4089: checking for $ac_func" >&5
4089 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4090 echo $ac_n "(cached) $ac_c" 1>&6
4092 cat > conftest.
$ac_ext <<EOF
4093 #line 4094 "configure"
4094 #include "confdefs.h"
4095 /* System header to define __stub macros and hopefully few prototypes,
4096 which can conflict with char $ac_func(); below. */
4098 /* Override any gcc2 internal prototype to avoid an error. */
4099 /* We use char because int might match the return type of a gcc2
4100 builtin and then its argument prototype would still apply. */
4106 /* The GNU C library defines this for functions which it implements
4107 to always fail with ENOSYS. Some functions are actually named
4108 something starting with __ and the normal name is an alias. */
4109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4117 if { (eval echo configure
:4118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4119 eval "ac_cv_func_$ac_func=yes"
4121 echo "configure: failed program was:" >&5
4122 cat conftest.
$ac_ext >&5
4124 eval "ac_cv_func_$ac_func=no"
4129 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4130 echo "$ac_t""yes" 1>&6
4131 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4132 cat >> confdefs.h
<<EOF
4133 #define $ac_tr_func 1
4137 echo "$ac_t""no" 1>&6
4138 echo $ac_n "checking for forkpty in -lutil""... $ac_c" 1>&6
4139 echo "configure:4140: checking for forkpty in -lutil" >&5
4140 ac_lib_var
=`echo util'_'forkpty | sed 'y%./+-%__p_%'`
4141 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4142 echo $ac_n "(cached) $ac_c" 1>&6
4144 ac_save_LIBS
="$LIBS"
4146 cat > conftest.
$ac_ext <<EOF
4147 #line 4148 "configure"
4148 #include "confdefs.h"
4149 /* Override any gcc2 internal prototype to avoid an error. */
4150 /* We use char because int might match the return type of a gcc2
4151 builtin and then its argument prototype would still apply. */
4158 if { (eval echo configure
:4159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4160 eval "ac_cv_lib_$ac_lib_var=yes"
4162 echo "configure: failed program was:" >&5
4163 cat conftest.
$ac_ext >&5
4165 eval "ac_cv_lib_$ac_lib_var=no"
4168 LIBS
="$ac_save_LIBS"
4171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4172 echo "$ac_t""yes" 1>&6
4173 cat >> confdefs.h
<<\EOF
4174 #define HAVE_FORKPTY 1
4178 echo "$ac_t""no" 1>&6
4185 # check for long file support functions
4186 for ac_func
in fseek64 fseeko fstatvfs ftell64 ftello statvfs
4188 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4189 echo "configure:4190: checking for $ac_func" >&5
4190 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4191 echo $ac_n "(cached) $ac_c" 1>&6
4193 cat > conftest.
$ac_ext <<EOF
4194 #line 4195 "configure"
4195 #include "confdefs.h"
4196 /* System header to define __stub macros and hopefully few prototypes,
4197 which can conflict with char $ac_func(); below. */
4199 /* Override any gcc2 internal prototype to avoid an error. */
4200 /* We use char because int might match the return type of a gcc2
4201 builtin and then its argument prototype would still apply. */
4207 /* The GNU C library defines this for functions which it implements
4208 to always fail with ENOSYS. Some functions are actually named
4209 something starting with __ and the normal name is an alias. */
4210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4218 if { (eval echo configure
:4219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4220 eval "ac_cv_func_$ac_func=yes"
4222 echo "configure: failed program was:" >&5
4223 cat conftest.
$ac_ext >&5
4225 eval "ac_cv_func_$ac_func=no"
4230 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4231 echo "$ac_t""yes" 1>&6
4232 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4233 cat >> confdefs.h
<<EOF
4234 #define $ac_tr_func 1
4238 echo "$ac_t""no" 1>&6
4243 for ac_func
in dup2 getcwd strdup strerror memmove
4245 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4246 echo "configure:4247: checking for $ac_func" >&5
4247 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4248 echo $ac_n "(cached) $ac_c" 1>&6
4250 cat > conftest.
$ac_ext <<EOF
4251 #line 4252 "configure"
4252 #include "confdefs.h"
4253 /* System header to define __stub macros and hopefully few prototypes,
4254 which can conflict with char $ac_func(); below. */
4256 /* Override any gcc2 internal prototype to avoid an error. */
4257 /* We use char because int might match the return type of a gcc2
4258 builtin and then its argument prototype would still apply. */
4264 /* The GNU C library defines this for functions which it implements
4265 to always fail with ENOSYS. Some functions are actually named
4266 something starting with __ and the normal name is an alias. */
4267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4275 if { (eval echo configure
:4276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4277 eval "ac_cv_func_$ac_func=yes"
4279 echo "configure: failed program was:" >&5
4280 cat conftest.
$ac_ext >&5
4282 eval "ac_cv_func_$ac_func=no"
4287 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4288 echo "$ac_t""yes" 1>&6
4289 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4290 cat >> confdefs.h
<<EOF
4291 #define $ac_tr_func 1
4295 echo "$ac_t""no" 1>&6
4296 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
4301 for ac_func
in getpgrp
4303 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4304 echo "configure:4305: checking for $ac_func" >&5
4305 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4306 echo $ac_n "(cached) $ac_c" 1>&6
4308 cat > conftest.
$ac_ext <<EOF
4309 #line 4310 "configure"
4310 #include "confdefs.h"
4311 /* System header to define __stub macros and hopefully few prototypes,
4312 which can conflict with char $ac_func(); below. */
4314 /* Override any gcc2 internal prototype to avoid an error. */
4315 /* We use char because int might match the return type of a gcc2
4316 builtin and then its argument prototype would still apply. */
4322 /* The GNU C library defines this for functions which it implements
4323 to always fail with ENOSYS. Some functions are actually named
4324 something starting with __ and the normal name is an alias. */
4325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4333 if { (eval echo configure
:4334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4335 eval "ac_cv_func_$ac_func=yes"
4337 echo "configure: failed program was:" >&5
4338 cat conftest.
$ac_ext >&5
4340 eval "ac_cv_func_$ac_func=no"
4345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4346 echo "$ac_t""yes" 1>&6
4347 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4348 cat >> confdefs.h
<<EOF
4349 #define $ac_tr_func 1
4351 cat > conftest.
$ac_ext <<EOF
4352 #line 4353 "configure"
4353 #include "confdefs.h"
4359 if { (eval echo configure
:4360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4361 cat >> confdefs.h
<<\EOF
4362 #define GETPGRP_HAVE_ARG 1
4366 echo "configure: failed program was:" >&5
4367 cat conftest.
$ac_ext >&5
4371 echo "$ac_t""no" 1>&6
4375 for ac_func
in setpgrp
4377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4378 echo "configure:4379: checking for $ac_func" >&5
4379 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4380 echo $ac_n "(cached) $ac_c" 1>&6
4382 cat > conftest.
$ac_ext <<EOF
4383 #line 4384 "configure"
4384 #include "confdefs.h"
4385 /* System header to define __stub macros and hopefully few prototypes,
4386 which can conflict with char $ac_func(); below. */
4388 /* Override any gcc2 internal prototype to avoid an error. */
4389 /* We use char because int might match the return type of a gcc2
4390 builtin and then its argument prototype would still apply. */
4396 /* The GNU C library defines this for functions which it implements
4397 to always fail with ENOSYS. Some functions are actually named
4398 something starting with __ and the normal name is an alias. */
4399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4407 if { (eval echo configure
:4408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4409 eval "ac_cv_func_$ac_func=yes"
4411 echo "configure: failed program was:" >&5
4412 cat conftest.
$ac_ext >&5
4414 eval "ac_cv_func_$ac_func=no"
4419 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4420 echo "$ac_t""yes" 1>&6
4421 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4422 cat >> confdefs.h
<<EOF
4423 #define $ac_tr_func 1
4425 cat > conftest.
$ac_ext <<EOF
4426 #line 4427 "configure"
4427 #include "confdefs.h"
4433 if { (eval echo configure
:4434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4435 cat >> confdefs.h
<<\EOF
4436 #define SETPGRP_HAVE_ARG 1
4440 echo "configure: failed program was:" >&5
4441 cat conftest.
$ac_ext >&5
4445 echo "$ac_t""no" 1>&6
4449 for ac_func
in gettimeofday
4451 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4452 echo "configure:4453: checking for $ac_func" >&5
4453 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4454 echo $ac_n "(cached) $ac_c" 1>&6
4456 cat > conftest.
$ac_ext <<EOF
4457 #line 4458 "configure"
4458 #include "confdefs.h"
4459 /* System header to define __stub macros and hopefully few prototypes,
4460 which can conflict with char $ac_func(); below. */
4462 /* Override any gcc2 internal prototype to avoid an error. */
4463 /* We use char because int might match the return type of a gcc2
4464 builtin and then its argument prototype would still apply. */
4470 /* The GNU C library defines this for functions which it implements
4471 to always fail with ENOSYS. Some functions are actually named
4472 something starting with __ and the normal name is an alias. */
4473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4481 if { (eval echo configure
:4482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4483 eval "ac_cv_func_$ac_func=yes"
4485 echo "configure: failed program was:" >&5
4486 cat conftest.
$ac_ext >&5
4488 eval "ac_cv_func_$ac_func=no"
4493 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4494 echo "$ac_t""yes" 1>&6
4495 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4496 cat >> confdefs.h
<<EOF
4497 #define $ac_tr_func 1
4499 cat > conftest.
$ac_ext <<EOF
4500 #line 4501 "configure"
4501 #include "confdefs.h"
4502 #include <sys/time.h>
4504 gettimeofday((struct timeval*)0,(struct timezone*)0);
4507 if { (eval echo configure
:4508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4510 echo "configure: failed program was:" >&5
4511 cat conftest.
$ac_ext >&5
4513 cat >> confdefs.h
<<\EOF
4514 #define GETTIMEOFDAY_NO_TZ 1
4520 echo "$ac_t""no" 1>&6
4525 # checks for structures
4526 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4527 echo "configure:4528: checking whether time.h and sys/time.h may both be included" >&5
4528 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
4529 echo $ac_n "(cached) $ac_c" 1>&6
4531 cat > conftest.
$ac_ext <<EOF
4532 #line 4533 "configure"
4533 #include "confdefs.h"
4534 #include <sys/types.h>
4535 #include <sys/time.h>
4541 if { (eval echo configure
:4542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4543 ac_cv_header_time
=yes
4545 echo "configure: failed program was:" >&5
4546 cat conftest.
$ac_ext >&5
4548 ac_cv_header_time
=no
4553 echo "$ac_t""$ac_cv_header_time" 1>&6
4554 if test $ac_cv_header_time = yes; then
4555 cat >> confdefs.h
<<\EOF
4556 #define TIME_WITH_SYS_TIME 1
4561 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4562 echo "configure:4563: checking whether struct tm is in sys/time.h or time.h" >&5
4563 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
4564 echo $ac_n "(cached) $ac_c" 1>&6
4566 cat > conftest.
$ac_ext <<EOF
4567 #line 4568 "configure"
4568 #include "confdefs.h"
4569 #include <sys/types.h>
4572 struct tm *tp; tp->tm_sec;
4575 if { (eval echo configure
:4576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4577 ac_cv_struct_tm
=time.h
4579 echo "configure: failed program was:" >&5
4580 cat conftest.
$ac_ext >&5
4582 ac_cv_struct_tm
=sys
/time.h
4587 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4588 if test $ac_cv_struct_tm = sys
/time.h
; then
4589 cat >> confdefs.h
<<\EOF
4590 #define TM_IN_SYS_TIME 1
4595 echo $ac_n "checking for member tm_zone in aggregate type struct tm""... $ac_c" 1>&6
4596 echo "configure:4597: checking for member tm_zone in aggregate type struct tm" >&5
4597 if eval "test \"\${ac_cv_c_struct_member_tm_zone+set}\" = set"; then
4598 echo $ac_n "(cached) $ac_c" 1>&6
4600 cat > conftest.
$ac_ext <<EOF
4601 #line 4602 "configure"
4602 #include "confdefs.h"
4603 #include <sys/types.h>
4604 #include <$ac_cv_struct_tm>
4606 struct tm foo; foo.tm_zone;
4609 if { (eval echo configure
:4610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4611 ac_cv_c_struct_member_tm_zone
=yes
4613 echo "configure: failed program was:" >&5
4614 cat conftest.
$ac_ext >&5
4616 ac_cv_c_struct_member_tm_zone
=no
4621 echo "$ac_t""$ac_cv_c_struct_member_tm_zone" 1>&6
4622 tm_zone
="$ac_cv_c_struct_member_tm_zone"
4623 if test "$ac_cv_c_struct_member_tm_zone" = yes; then
4624 cat >> confdefs.h
<<\EOF
4625 #define HAVE_TM_ZONE 1
4629 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4630 echo "configure:4631: checking for tzname" >&5
4631 if eval "test \"\${ac_cv_var_tzname+set}\" = set"; then
4632 echo $ac_n "(cached) $ac_c" 1>&6
4634 cat > conftest.
$ac_ext <<EOF
4635 #line 4636 "configure"
4636 #include "confdefs.h"
4638 #ifndef tzname /* For SGI. */
4639 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4645 if { (eval echo configure
:4646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4647 ac_cv_var_tzname
=yes
4649 echo "configure: failed program was:" >&5
4650 cat conftest.
$ac_ext >&5
4657 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4658 if test $ac_cv_var_tzname = yes; then
4659 cat >> confdefs.h
<<\EOF
4660 #define HAVE_TZNAME 1
4667 echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6
4668 echo "configure:4669: checking for time.h that defines altzone" >&5
4669 if eval "test \"\${ac_cv_header_time_altzone+set}\" = set"; then
4670 echo $ac_n "(cached) $ac_c" 1>&6
4672 cat > conftest.
$ac_ext <<EOF
4673 #line 4674 "configure"
4674 #include "confdefs.h"
4680 if { (eval echo configure
:4681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4682 ac_cv_header_time_altzone
=yes
4684 echo "configure: failed program was:" >&5
4685 cat conftest.
$ac_ext >&5
4687 ac_cv_header_time_altzone
=no
4692 echo "$ac_t""$ac_cv_header_time_altzone" 1>&6
4693 if test $ac_cv_header_time_altzone = yes; then
4694 cat >> confdefs.h
<<\EOF
4695 #define HAVE_ALTZONE 1
4701 echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6
4702 echo "configure:4703: checking whether sys/select.h and sys/time.h may both be included" >&5
4703 cat > conftest.
$ac_ext <<EOF
4704 #line 4705 "configure"
4705 #include "confdefs.h"
4707 #include <sys/types.h>
4708 #include <sys/select.h>
4709 #include <sys/time.h>
4715 if { (eval echo configure
:4716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4717 cat >> confdefs.h
<<\EOF
4718 #define SYS_SELECT_WITH_SYS_TIME 1
4722 echo "configure: failed program was:" >&5
4723 cat conftest.
$ac_ext >&5
4726 echo "$ac_t""$was_it_defined" 1>&6
4728 # checks for compiler characteristics
4730 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
4731 echo "configure:4732: checking whether char is unsigned" >&5
4732 if eval "test \"\${ac_cv_c_char_unsigned+set}\" = set"; then
4733 echo $ac_n "(cached) $ac_c" 1>&6
4735 if test "$GCC" = yes; then
4736 # GCC predefines this symbol on systems where it applies.
4737 cat > conftest.
$ac_ext <<EOF
4738 #line 4739 "configure"
4739 #include "confdefs.h"
4740 #ifdef __CHAR_UNSIGNED__
4745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4746 egrep "yes" >/dev
/null
2>&1; then
4748 ac_cv_c_char_unsigned
=yes
4751 ac_cv_c_char_unsigned
=no
4756 if test "$cross_compiling" = yes; then
4757 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4759 cat > conftest.
$ac_ext <<EOF
4760 #line 4761 "configure"
4761 #include "confdefs.h"
4762 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
4763 #if !defined(__STDC__) || __STDC__ != 1
4767 volatile char c = 255; exit(c < 0);
4770 if { (eval echo configure
:4771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4772 ac_cv_c_char_unsigned
=yes
4774 echo "configure: failed program was:" >&5
4775 cat conftest.
$ac_ext >&5
4777 ac_cv_c_char_unsigned
=no
4785 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
4786 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
4787 cat >> confdefs.h
<<\EOF
4788 #define __CHAR_UNSIGNED__ 1
4793 echo $ac_n "checking for working const""... $ac_c" 1>&6
4794 echo "configure:4795: checking for working const" >&5
4795 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
4796 echo $ac_n "(cached) $ac_c" 1>&6
4798 cat > conftest.
$ac_ext <<EOF
4799 #line 4800 "configure"
4800 #include "confdefs.h"
4804 /* Ultrix mips cc rejects this. */
4805 typedef int charset[2]; const charset x;
4806 /* SunOS 4.1.1 cc rejects this. */
4807 char const *const *ccp;
4809 /* NEC SVR4.0.2 mips cc rejects this. */
4810 struct point {int x, y;};
4811 static struct point const zero = {0,0};
4812 /* AIX XL C 1.02.0.0 rejects this.
4813 It does not let you subtract one const X* pointer from another in an arm
4814 of an if-expression whose if-part is not a constant expression */
4815 const char *g = "string";
4816 ccp = &g + (g ? g-g : 0);
4817 /* HPUX 7.0 cc rejects these. */
4820 ccp = (char const *const *) p;
4821 { /* SCO 3.2v4 cc rejects this. */
4823 char const *s = 0 ? (char *) 0 : (char const *) 0;
4827 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4829 const int *foo = &x[0];
4832 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4833 typedef const int *iptr;
4837 { /* AIX XL C 1.02.0.0 rejects this saying
4838 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4839 struct s { int j; const int *ap[3]; };
4840 struct s *b; b->j = 5;
4842 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4848 if { (eval echo configure
:4849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4852 echo "configure: failed program was:" >&5
4853 cat conftest.
$ac_ext >&5
4860 echo "$ac_t""$ac_cv_c_const" 1>&6
4861 if test $ac_cv_c_const = no
; then
4862 cat >> confdefs.h
<<\EOF
4868 echo $ac_n "checking for inline""... $ac_c" 1>&6
4869 echo "configure:4870: checking for inline" >&5
4870 if eval "test \"\${ac_cv_c_inline+set}\" = set"; then
4871 echo $ac_n "(cached) $ac_c" 1>&6
4874 for ac_kw
in inline __inline__ __inline
; do
4875 cat > conftest.
$ac_ext <<EOF
4876 #line 4877 "configure"
4877 #include "confdefs.h"
4883 if { (eval echo configure
:4884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4885 ac_cv_c_inline
=$ac_kw; break
4887 echo "configure: failed program was:" >&5
4888 cat conftest.
$ac_ext >&5
4895 echo "$ac_t""$ac_cv_c_inline" 1>&6
4896 case "$ac_cv_c_inline" in
4898 no
) cat >> confdefs.h
<<\EOF
4902 *) cat >> confdefs.h
<<EOF
4903 #define inline $ac_cv_c_inline
4910 echo $ac_n "checking for working volatile""... $ac_c" 1>&6
4911 echo "configure:4912: checking for working volatile" >&5
4912 cat > conftest.
$ac_ext <<EOF
4913 #line 4914 "configure"
4914 #include "confdefs.h"
4917 volatile int x; x = 0;
4920 if { (eval echo configure
:4921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4924 echo "configure: failed program was:" >&5
4925 cat conftest.
$ac_ext >&5
4927 cat >> confdefs.h
<<\EOF
4933 echo "$ac_t""$works" 1>&6
4936 echo $ac_n "checking for working signed char""... $ac_c" 1>&6
4937 echo "configure:4938: checking for working signed char" >&5
4938 cat > conftest.
$ac_ext <<EOF
4939 #line 4940 "configure"
4940 #include "confdefs.h"
4946 if { (eval echo configure
:4947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4950 echo "configure: failed program was:" >&5
4951 cat conftest.
$ac_ext >&5
4953 cat >> confdefs.h
<<\EOF
4959 echo "$ac_t""$works" 1>&6
4962 echo $ac_n "checking for prototypes""... $ac_c" 1>&6
4963 echo "configure:4964: checking for prototypes" >&5
4964 cat > conftest.
$ac_ext <<EOF
4965 #line 4966 "configure"
4966 #include "confdefs.h"
4967 int foo(int x) { return 0; }
4972 if { (eval echo configure
:4973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4974 cat >> confdefs.h
<<\EOF
4975 #define HAVE_PROTOTYPES 1
4979 echo "configure: failed program was:" >&5
4980 cat conftest.
$ac_ext >&5
4983 echo "$ac_t""$have_prototypes" 1>&6
4986 echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6
4987 echo "configure:4988: checking for variable length prototypes and stdarg.h" >&5
4988 cat > conftest.
$ac_ext <<EOF
4989 #line 4990 "configure"
4990 #include "confdefs.h"
4993 int foo(int x, ...) {
5003 return foo(10, "", 3.14);
5006 if { (eval echo configure
:5007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5008 cat >> confdefs.h
<<\EOF
5009 #define HAVE_STDARG_PROTOTYPES 1
5013 echo "configure: failed program was:" >&5
5014 cat conftest.
$ac_ext >&5
5017 echo "$ac_t""$works" 1>&6
5019 if test "$have_prototypes" = yes; then
5021 echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6
5022 echo "configure:5023: checking for bad exec* prototypes" >&5
5023 cat > conftest.
$ac_ext <<EOF
5024 #line 5025 "configure"
5025 #include "confdefs.h"
5028 char **t;execve("@",t,t);
5031 if { (eval echo configure
:5032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5034 echo "configure: failed program was:" >&5
5035 cat conftest.
$ac_ext >&5
5037 cat >> confdefs.h
<<\EOF
5038 #define BAD_EXEC_PROTOTYPES 1
5043 echo "$ac_t""$bad_prototypes" 1>&6
5047 echo $ac_n "checking for bad static forward""... $ac_c" 1>&6
5048 echo "configure:5049: checking for bad static forward" >&5
5049 if test "$cross_compiling" = yes; then
5050 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5052 cat > conftest.
$ac_ext <<EOF
5053 #line 5054 "configure"
5054 #include "confdefs.h"
5056 struct s { int a; int b; };
5057 static struct s foo;
5060 random = (int) &foo;
5063 static struct s foo = { 1, 2 };
5065 exit(!((int)&foo == foobar()));
5069 if { (eval echo configure
:5070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5073 echo "configure: failed program was:" >&5
5074 cat conftest.
$ac_ext >&5
5076 cat >> confdefs.h
<<\EOF
5077 #define BAD_STATIC_FORWARD 1
5084 echo "$ac_t""$bad_forward" 1>&6
5087 echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6
5088 echo "configure:5089: checking whether va_list is an array" >&5
5089 cat > conftest.
$ac_ext <<EOF
5090 #line 5091 "configure"
5091 #include "confdefs.h"
5093 #ifdef HAVE_STDARG_PROTOTYPES
5096 #include <varargs.h>
5100 va_list list1, list2; list1 = list2;
5103 if { (eval echo configure
:5104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5106 echo "configure: failed program was:" >&5
5107 cat conftest.
$ac_ext >&5
5109 cat >> confdefs.h
<<\EOF
5110 #define VA_LIST_IS_ARRAY 1
5112 va_list_is_array
=yes
5115 echo "$ac_t""$va_list_is_array" 1>&6
5117 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
5118 echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
5119 echo "configure:5120: checking for gethostbyname_r" >&5
5120 if eval "test \"\${ac_cv_func_gethostbyname_r+set}\" = set"; then
5121 echo $ac_n "(cached) $ac_c" 1>&6
5123 cat > conftest.
$ac_ext <<EOF
5124 #line 5125 "configure"
5125 #include "confdefs.h"
5126 /* System header to define __stub macros and hopefully few prototypes,
5127 which can conflict with char gethostbyname_r(); below. */
5129 /* Override any gcc2 internal prototype to avoid an error. */
5130 /* We use char because int might match the return type of a gcc2
5131 builtin and then its argument prototype would still apply. */
5132 char gethostbyname_r();
5137 /* The GNU C library defines this for functions which it implements
5138 to always fail with ENOSYS. Some functions are actually named
5139 something starting with __ and the normal name is an alias. */
5140 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
5143 f = gethostbyname_r;
5148 if { (eval echo configure
:5149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5150 eval "ac_cv_func_gethostbyname_r=yes"
5152 echo "configure: failed program was:" >&5
5153 cat conftest.
$ac_ext >&5
5155 eval "ac_cv_func_gethostbyname_r=no"
5160 if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then
5161 echo "$ac_t""yes" 1>&6
5163 cat >> confdefs.h
<<\EOF
5164 #define HAVE_GETHOSTBYNAME_R 1
5167 echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6
5168 echo "configure:5169: checking gethostbyname_r with 6 args" >&5
5170 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
5171 cat > conftest.
$ac_ext <<EOF
5172 #line 5173 "configure"
5173 #include "confdefs.h"
5180 struct hostent *he, *res;
5185 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
5189 if { (eval echo configure
:5190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5192 cat >> confdefs.h
<<\EOF
5193 #define HAVE_GETHOSTBYNAME_R 1
5196 cat >> confdefs.h
<<\EOF
5197 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
5200 echo "$ac_t""yes" 1>&6
5203 echo "configure: failed program was:" >&5
5204 cat conftest.
$ac_ext >&5
5207 echo "$ac_t""no" 1>&6
5208 echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6
5209 echo "configure:5210: checking gethostbyname_r with 5 args" >&5
5210 cat > conftest.
$ac_ext <<EOF
5211 #line 5212 "configure"
5212 #include "confdefs.h"
5224 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
5228 if { (eval echo configure
:5229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5231 cat >> confdefs.h
<<\EOF
5232 #define HAVE_GETHOSTBYNAME_R 1
5235 cat >> confdefs.h
<<\EOF
5236 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
5239 echo "$ac_t""yes" 1>&6
5242 echo "configure: failed program was:" >&5
5243 cat conftest.
$ac_ext >&5
5246 echo "$ac_t""no" 1>&6
5247 echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6
5248 echo "configure:5249: checking gethostbyname_r with 3 args" >&5
5249 cat > conftest.
$ac_ext <<EOF
5250 #line 5251 "configure"
5251 #include "confdefs.h"
5259 struct hostent_data data;
5261 (void) gethostbyname_r(name, he, &data);
5265 if { (eval echo configure
:5266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5268 cat >> confdefs.h
<<\EOF
5269 #define HAVE_GETHOSTBYNAME_R 1
5272 cat >> confdefs.h
<<\EOF
5273 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
5276 echo "$ac_t""yes" 1>&6
5279 echo "configure: failed program was:" >&5
5280 cat conftest.
$ac_ext >&5
5283 echo "$ac_t""no" 1>&6
5296 echo "$ac_t""no" 1>&6
5298 for ac_func
in gethostbyname
5300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5301 echo "configure:5302: checking for $ac_func" >&5
5302 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5303 echo $ac_n "(cached) $ac_c" 1>&6
5305 cat > conftest.
$ac_ext <<EOF
5306 #line 5307 "configure"
5307 #include "confdefs.h"
5308 /* System header to define __stub macros and hopefully few prototypes,
5309 which can conflict with char $ac_func(); below. */
5311 /* Override any gcc2 internal prototype to avoid an error. */
5312 /* We use char because int might match the return type of a gcc2
5313 builtin and then its argument prototype would still apply. */
5319 /* The GNU C library defines this for functions which it implements
5320 to always fail with ENOSYS. Some functions are actually named
5321 something starting with __ and the normal name is an alias. */
5322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5330 if { (eval echo configure
:5331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5332 eval "ac_cv_func_$ac_func=yes"
5334 echo "configure: failed program was:" >&5
5335 cat conftest.
$ac_ext >&5
5337 eval "ac_cv_func_$ac_func=no"
5342 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5343 echo "$ac_t""yes" 1>&6
5344 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5345 cat >> confdefs.h
<<EOF
5346 #define $ac_tr_func 1
5350 echo "$ac_t""no" 1>&6
5363 # checks for system services
5366 # Linux requires this for correct f.p. operations
5367 echo $ac_n "checking for __fpu_control""... $ac_c" 1>&6
5368 echo "configure:5369: checking for __fpu_control" >&5
5369 if eval "test \"\${ac_cv_func___fpu_control+set}\" = set"; then
5370 echo $ac_n "(cached) $ac_c" 1>&6
5372 cat > conftest.
$ac_ext <<EOF
5373 #line 5374 "configure"
5374 #include "confdefs.h"
5375 /* System header to define __stub macros and hopefully few prototypes,
5376 which can conflict with char __fpu_control(); below. */
5378 /* Override any gcc2 internal prototype to avoid an error. */
5379 /* We use char because int might match the return type of a gcc2
5380 builtin and then its argument prototype would still apply. */
5381 char __fpu_control();
5386 /* The GNU C library defines this for functions which it implements
5387 to always fail with ENOSYS. Some functions are actually named
5388 something starting with __ and the normal name is an alias. */
5389 #if defined (__stub___fpu_control) || defined (__stub_____fpu_control)
5397 if { (eval echo configure
:5398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5399 eval "ac_cv_func___fpu_control=yes"
5401 echo "configure: failed program was:" >&5
5402 cat conftest.
$ac_ext >&5
5404 eval "ac_cv_func___fpu_control=no"
5409 if eval "test \"`echo '$ac_cv_func_'__fpu_control`\" = yes"; then
5410 echo "$ac_t""yes" 1>&6
5413 echo "$ac_t""no" 1>&6
5414 echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6
5415 echo "configure:5416: checking for __fpu_control in -lieee" >&5
5416 ac_lib_var
=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'`
5417 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5418 echo $ac_n "(cached) $ac_c" 1>&6
5420 ac_save_LIBS
="$LIBS"
5422 cat > conftest.
$ac_ext <<EOF
5423 #line 5424 "configure"
5424 #include "confdefs.h"
5425 /* Override any gcc2 internal prototype to avoid an error. */
5426 /* We use char because int might match the return type of a gcc2
5427 builtin and then its argument prototype would still apply. */
5428 char __fpu_control();
5434 if { (eval echo configure
:5435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5436 eval "ac_cv_lib_$ac_lib_var=yes"
5438 echo "configure: failed program was:" >&5
5439 cat conftest.
$ac_ext >&5
5441 eval "ac_cv_lib_$ac_lib_var=no"
5444 LIBS
="$ac_save_LIBS"
5447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5448 echo "$ac_t""yes" 1>&6
5449 ac_tr_lib
=HAVE_LIB
`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5450 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5451 cat >> confdefs.h
<<EOF
5452 #define $ac_tr_lib 1
5458 echo "$ac_t""no" 1>&6
5465 # Check for --with-fpectl
5466 echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6
5467 echo "configure:5468: checking for --with-fpectl" >&5
5468 # Check whether --with-fpectl or --without-fpectl was given.
5469 if test "${with_fpectl+set}" = set; then
5470 withval
="$with_fpectl"
5472 if test "$withval" != no
5473 then cat >> confdefs.h
<<\EOF
5474 #define WANT_SIGFPE_HANDLER 1
5476 echo "$ac_t""yes" 1>&6
5477 else echo "$ac_t""no" 1>&6
5480 echo "$ac_t""no" 1>&6
5484 # check for --with-libm=...
5486 case $ac_sys_system in
5491 echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6
5492 echo "configure:5493: checking for --with-libm=STRING" >&5
5493 # Check whether --with-libm or --without-libm was given.
5494 if test "${with_libm+set}" = set; then
5495 withval
="$with_libm"
5497 if test "$withval" = no
5499 echo "$ac_t""force LIBM empty" 1>&6
5500 elif test "$withval" != yes
5502 echo "$ac_t""set LIBM=\"$withval\"" 1>&6
5503 else { echo "configure: error: proper usage is --with-libm=STRING" 1>&2; exit 1; }
5506 echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6
5510 # check for --with-libc=...
5512 echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6
5513 echo "configure:5514: checking for --with-libc=STRING" >&5
5514 # Check whether --with-libc or --without-libc was given.
5515 if test "${with_libc+set}" = set; then
5516 withval
="$with_libc"
5518 if test "$withval" = no
5520 echo "$ac_t""force LIBC empty" 1>&6
5521 elif test "$withval" != yes
5523 echo "$ac_t""set LIBC=\"$withval\"" 1>&6
5524 else { echo "configure: error: proper usage is --with-libc=STRING" 1>&2; exit 1; }
5527 echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6
5531 # check for hypot() in math library
5534 for ac_func
in hypot
5536 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5537 echo "configure:5538: checking for $ac_func" >&5
5538 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5539 echo $ac_n "(cached) $ac_c" 1>&6
5541 cat > conftest.
$ac_ext <<EOF
5542 #line 5543 "configure"
5543 #include "confdefs.h"
5544 /* System header to define __stub macros and hopefully few prototypes,
5545 which can conflict with char $ac_func(); below. */
5547 /* Override any gcc2 internal prototype to avoid an error. */
5548 /* We use char because int might match the return type of a gcc2
5549 builtin and then its argument prototype would still apply. */
5555 /* The GNU C library defines this for functions which it implements
5556 to always fail with ENOSYS. Some functions are actually named
5557 something starting with __ and the normal name is an alias. */
5558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5566 if { (eval echo configure
:5567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5568 eval "ac_cv_func_$ac_func=yes"
5570 echo "configure: failed program was:" >&5
5571 cat conftest.
$ac_ext >&5
5573 eval "ac_cv_func_$ac_func=no"
5578 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5579 echo "$ac_t""yes" 1>&6
5580 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5581 cat >> confdefs.h
<<EOF
5582 #define $ac_tr_func 1
5586 echo "$ac_t""no" 1>&6
5587 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
5595 echo $ac_n "checking for genuine getopt""... $ac_c" 1>&6
5596 echo "configure:5597: checking for genuine getopt" >&5
5597 if eval "test \"\${ac_cv_func_getopt+set}\" = set"; then
5598 echo $ac_n "(cached) $ac_c" 1>&6
5600 if test "$cross_compiling" = yes; then
5601 ac_cv_func_getopt
=no
5603 cat > conftest.
$ac_ext <<EOF
5604 #line 5605 "configure"
5605 #include "confdefs.h"
5607 extern int optind, opterr, getopt();
5608 extern char* optarg;
5610 char* av[] = { "testprog", "parameter", "-fFlag", NULL };
5612 if (getopt(3, av, "f:") == 'f') { exit(1); }
5616 if { (eval echo configure
:5617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5618 ac_cv_func_getopt
=yes
5620 echo "configure: failed program was:" >&5
5621 cat conftest.
$ac_ext >&5
5623 ac_cv_func_getopt
=no
5629 echo "$ac_t""$ac_cv_func_getopt" 1>&6
5630 test $ac_cv_func_getopt = no
&& LIBOBJS
="$LIBOBJS getopt.o"
5632 # check whether malloc(0) returns NULL or not
5633 echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6
5634 echo "configure:5635: checking what malloc(0) returns" >&5
5635 if eval "test \"\${ac_cv_malloc_zero+set}\" = set"; then
5636 echo $ac_n "(cached) $ac_c" 1>&6
5638 if test "$cross_compiling" = yes; then
5639 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5641 cat > conftest.
$ac_ext <<EOF
5642 #line 5643 "configure"
5643 #include "confdefs.h"
5648 char *malloc(), *realloc();
5654 if (p == NULL) exit(1);
5656 if (p == NULL) exit(1);
5661 if { (eval echo configure
:5662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5663 ac_cv_malloc_zero
=nonnull
5665 echo "configure: failed program was:" >&5
5666 cat conftest.
$ac_ext >&5
5668 ac_cv_malloc_zero
=null
5675 echo "$ac_t""$ac_cv_malloc_zero" 1>&6
5676 if test "$ac_cv_malloc_zero" = null
5678 cat >> confdefs.h
<<\EOF
5679 #define MALLOC_ZERO_RETURNS_NULL 1
5685 ac_safe
=`echo "wchar.h" | sed 'y%./+-%__p_%'`
5686 echo $ac_n "checking for wchar.h""... $ac_c" 1>&6
5687 echo "configure:5688: checking for wchar.h" >&5
5688 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5689 echo $ac_n "(cached) $ac_c" 1>&6
5691 cat > conftest.
$ac_ext <<EOF
5692 #line 5693 "configure"
5693 #include "confdefs.h"
5696 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5697 { (eval echo configure
:5698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5698 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5699 if test -z "$ac_err"; then
5701 eval "ac_cv_header_$ac_safe=yes"
5704 echo "configure: failed program was:" >&5
5705 cat conftest.
$ac_ext >&5
5707 eval "ac_cv_header_$ac_safe=no"
5711 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5712 echo "$ac_t""yes" 1>&6
5713 cat >> confdefs.h
<<\EOF
5714 #define HAVE_WCHAR_H 1
5718 echo "$ac_t""no" 1>&6
5724 # check for usable wchar_t
5725 usable_wchar_t
="unkown"
5726 echo $ac_n "checking for usable wchar_t""... $ac_c" 1>&6
5727 echo "configure:5728: checking for usable wchar_t" >&5
5728 if test "$cross_compiling" = yes; then
5729 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5731 cat > conftest.
$ac_ext <<EOF
5732 #line 5733 "configure"
5733 #include "confdefs.h"
5746 if { (eval echo configure
:5747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5748 cat >> confdefs.h
<<\EOF
5749 #define HAVE_USABLE_WCHAR_T 1
5751 usable_wchar_t
="yes"
5753 echo "configure: failed program was:" >&5
5754 cat conftest.
$ac_ext >&5
5761 echo "$ac_t""$usable_wchar_t" 1>&6
5763 # check for endianness
5764 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
5765 echo "configure:5766: checking whether byte ordering is bigendian" >&5
5766 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
5767 echo $ac_n "(cached) $ac_c" 1>&6
5769 ac_cv_c_bigendian
=unknown
5770 # See if sys/param.h defines the BYTE_ORDER macro.
5771 cat > conftest.
$ac_ext <<EOF
5772 #line 5773 "configure"
5773 #include "confdefs.h"
5774 #include <sys/types.h>
5775 #include <sys/param.h>
5778 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5783 if { (eval echo configure
:5784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5785 # It does; now see whether it defined to BIG_ENDIAN or not.
5786 cat > conftest.
$ac_ext <<EOF
5787 #line 5788 "configure"
5788 #include "confdefs.h"
5789 #include <sys/types.h>
5790 #include <sys/param.h>
5793 #if BYTE_ORDER != BIG_ENDIAN
5798 if { (eval echo configure
:5799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5800 ac_cv_c_bigendian
=yes
5802 echo "configure: failed program was:" >&5
5803 cat conftest.
$ac_ext >&5
5805 ac_cv_c_bigendian
=no
5809 echo "configure: failed program was:" >&5
5810 cat conftest.
$ac_ext >&5
5813 if test $ac_cv_c_bigendian = unknown
; then
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"
5821 /* Are we little or big endian? From Harbison&Steele. */
5825 char c[sizeof (long)];
5828 exit (u.c[sizeof (long) - 1] == 1);
5831 if { (eval echo configure
:5832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5833 ac_cv_c_bigendian
=no
5835 echo "configure: failed program was:" >&5
5836 cat conftest.
$ac_ext >&5
5838 ac_cv_c_bigendian
=yes
5846 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
5847 if test $ac_cv_c_bigendian = yes; then
5848 cat >> confdefs.h
<<\EOF
5849 #define WORDS_BIGENDIAN 1
5855 # Check whether right shifting a negative integer extends the sign bit
5856 # or fills with zeros (like the Cray J90, according to Tim Peters).
5857 echo $ac_n "checking whether right shift extends the sign bit""... $ac_c" 1>&6
5858 echo "configure:5859: checking whether right shift extends the sign bit" >&5
5859 if eval "test \"\${ac_cv_rshift_extends_sign+set}\" = set"; then
5860 echo $ac_n "(cached) $ac_c" 1>&6
5863 if test "$cross_compiling" = yes; then
5864 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5866 cat > conftest.
$ac_ext <<EOF
5867 #line 5868 "configure"
5868 #include "confdefs.h"
5872 exit(((-1)>>3 == -1) ? 0 : 1);
5876 if { (eval echo configure
:5877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5878 ac_cv_rshift_extends_sign
=yes
5880 echo "configure: failed program was:" >&5
5881 cat conftest.
$ac_ext >&5
5883 ac_cv_rshift_extends_sign
=no
5890 echo "$ac_t""$ac_cv_rshift_extends_sign" 1>&6
5891 if test "$ac_cv_rshift_extends_sign" = no
5893 cat >> confdefs.h
<<\EOF
5894 #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
5900 # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS!
5901 # Add sys/socket.h to confdefs.h
5902 cat >> confdefs.h
<<\EOF
5903 #ifdef HAVE_SYS_SOCKET_H
5904 #include <sys/socket.h>
5907 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
5908 echo "configure:5909: checking for socklen_t" >&5
5909 if eval "test \"\${ac_cv_type_socklen_t+set}\" = set"; then
5910 echo $ac_n "(cached) $ac_c" 1>&6
5912 cat > conftest.
$ac_ext <<EOF
5913 #line 5914 "configure"
5914 #include "confdefs.h"
5915 #include <sys/types.h>
5921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5922 egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5924 eval "ac_cv_type_socklen_t=yes"
5927 eval "ac_cv_type_socklen_t=no"
5932 if eval "test \"`echo '$ac_cv_type_'socklen_t`\" = yes"; then
5933 echo "$ac_t""yes" 1>&6
5935 echo "$ac_t""no" 1>&6
5936 cat >> confdefs.h
<<EOF
5937 #define socklen_t int
5943 # generate output files
5945 cat > confcache
<<\EOF
5946 # This file is a shell script that caches the results of configure
5947 # tests run on this system so they can be shared between configure
5948 # scripts and configure runs. It is not useful on other systems.
5949 # If it contains results you don't want to keep, you may remove or edit it.
5951 # By default, configure uses ./config.cache as the cache file,
5952 # creating it if it does not exist already. You can give configure
5953 # the --cache-file=FILE option to use a different cache file; that is
5954 # what configure does when it calls configure scripts in
5955 # subdirectories, so they share the cache.
5956 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5957 # config.status only pays attention to the cache file if you give it the
5958 # --recheck option to rerun configure.
5961 # The following way of writing the cache mishandles newlines in values,
5962 # but we know of no workaround that is simple, portable, and efficient.
5963 # So, don't put newlines in cache variables' values.
5964 # Ultrix sh set writes to stderr and can't be redirected directly,
5965 # and sets the high bit in the cache file unless we assign to the vars.
5967 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5969 # `set' does not quote correctly, so add quotes (double-quote substitution
5970 # turns \\\\ into \\, and sed turns \\ into \).
5972 -e "s/'/'\\\\''/g" \
5973 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5976 # `set' quotes correctly as required by POSIX, so do not add quotes.
5977 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5980 if cmp -s $cache_file confcache
; then
5983 if test -w $cache_file; then
5984 echo "updating cache $cache_file"
5985 cat confcache
> $cache_file
5987 echo "not updating unwritable cache $cache_file"
5992 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5994 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5995 # Let make expand exec_prefix.
5996 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5998 # Any assignment to VPATH causes Sun make to only execute
5999 # the first set of double-colon rules, so remove it if not needed.
6000 # If there is a colon in the path, we need to keep it.
6001 if test "x$srcdir" = x.
; then
6002 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6005 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6007 DEFS
=-DHAVE_CONFIG_H
6009 # Without the "./", some shells look in PATH for config.status.
6010 : ${CONFIG_STATUS=./config.status}
6012 echo creating
$CONFIG_STATUS
6013 rm -f $CONFIG_STATUS
6014 cat > $CONFIG_STATUS <<EOF
6016 # Generated automatically by configure.
6017 # Run this file to recreate the current configuration.
6018 # This directory was configured as follows,
6019 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6021 # $0 $ac_configure_args
6023 # Compiler output produced by configure, useful for debugging
6024 # configure, is in ./config.log if it exists.
6026 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6029 case "\$ac_option" in
6030 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6031 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6032 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6033 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6034 echo "$CONFIG_STATUS generated by autoconf version 2.14.1"
6036 -help | --help | --hel | --he | --h)
6037 echo "\$ac_cs_usage"; exit 0 ;;
6038 *) echo "\$ac_cs_usage"; exit 1 ;;
6042 ac_given_srcdir=$srcdir
6044 trap 'rm -fr `echo "Makefile \
6049 Modules/Makefile.pre \
6050 Modules/Setup.config config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6052 cat >> $CONFIG_STATUS <<EOF
6054 # Protect against being on the right side of a sed subst in config.status.
6055 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6056 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6060 s%@CFLAGS@%$CFLAGS%g
6061 s%@CPPFLAGS@%$CPPFLAGS%g
6062 s%@CXXFLAGS@%$CXXFLAGS%g
6063 s%@FFLAGS@%$FFLAGS%g
6065 s%@LDFLAGS@%$LDFLAGS%g
6067 s%@exec_prefix@%$exec_prefix%g
6068 s%@prefix@%$prefix%g
6069 s%@program_transform_name@%$program_transform_name%g
6070 s%@bindir@%$bindir%g
6071 s%@sbindir@%$sbindir%g
6072 s%@libexecdir@%$libexecdir%g
6073 s%@datadir@%$datadir%g
6074 s%@sysconfdir@%$sysconfdir%g
6075 s%@sharedstatedir@%$sharedstatedir%g
6076 s%@localstatedir@%$localstatedir%g
6077 s%@libdir@%$libdir%g
6078 s%@includedir@%$includedir%g
6079 s%@oldincludedir@%$oldincludedir%g
6080 s%@infodir@%$infodir%g
6081 s%@mandir@%$mandir%g
6082 s%@VERSION@%$VERSION%g
6083 s%@MACHDEP@%$MACHDEP%g
6084 s%@SGI_ABI@%$SGI_ABI%g
6085 s%@SET_CXX@%$SET_CXX%g
6086 s%@MAINOBJ@%$MAINOBJ%g
6089 s%@MAKE_LDLIBRARY@%$MAKE_LDLIBRARY%g
6090 s%@LDLIBRARY@%$LDLIBRARY%g
6091 s%@LINKCC@%$LINKCC%g
6092 s%@RANLIB@%$RANLIB%g
6094 s%@INSTALL@%$INSTALL%g
6095 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6096 s%@INSTALL_DATA@%$INSTALL_DATA%g
6100 s%@LIBTOOL_CRUFT@%$LIBTOOL_CRUFT%g
6102 s%@LDSHARED@%$LDSHARED%g
6103 s%@CCSHARED@%$CCSHARED%g
6104 s%@LINKFORSHARED@%$LINKFORSHARED%g
6105 s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g
6106 s%@LDLAST@%$LDLAST%g
6107 s%@USE_GC_MODULE@%$USE_GC_MODULE%g
6108 s%@USE_BSDDB_MODULE@%$USE_BSDDB_MODULE%g
6109 s%@HAVE_LIBDB@%$HAVE_LIBDB%g
6110 s%@DLINCLDIR@%$DLINCLDIR%g
6111 s%@DYNLOADFILE@%$DYNLOADFILE%g
6112 s%@LIBOBJS@%$LIBOBJS%g
6113 s%@HAVE_GETHOSTBYNAME_R_6_ARG@%$HAVE_GETHOSTBYNAME_R_6_ARG%g
6114 s%@HAVE_GETHOSTBYNAME_R_5_ARG@%$HAVE_GETHOSTBYNAME_R_5_ARG%g
6115 s%@HAVE_GETHOSTBYNAME_R_3_ARG@%$HAVE_GETHOSTBYNAME_R_3_ARG%g
6116 s%@HAVE_GETHOSTBYNAME_R@%$HAVE_GETHOSTBYNAME_R%g
6117 s%@HAVE_GETHOSTBYNAME@%$HAVE_GETHOSTBYNAME%g
6124 cat >> $CONFIG_STATUS <<\EOF
6126 # Split the substitutions into bite-sized pieces for seds with
6127 # small command number limits, like on Digital OSF/1 and HP-UX.
6128 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6129 ac_file
=1 # Number of current file.
6130 ac_beg
=1 # First line for current file.
6131 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6134 while $ac_more_lines; do
6135 if test $ac_beg -gt 1; then
6136 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6138 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6140 if test ! -s conftest.s
$ac_file; then
6142 rm -f conftest.s
$ac_file
6144 if test -z "$ac_sed_cmds"; then
6145 ac_sed_cmds
="sed -f conftest.s$ac_file"
6147 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6149 ac_file
=`expr $ac_file + 1`
6151 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6154 if test -z "$ac_sed_cmds"; then
6159 cat >> $CONFIG_STATUS <<EOF
6161 CONFIG_FILES=\${CONFIG_FILES-"Makefile \
6166 Modules/Makefile.pre \
6167 Modules/Setup.config"}
6169 cat >> $CONFIG_STATUS <<\EOF
6170 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6171 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6173 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6174 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6175 *) ac_file_in
="${ac_file}.in" ;;
6178 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6180 # Remove last slash and all that follows it. Not all systems have dirname.
6181 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6182 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6183 # The file is in a subdirectory.
6184 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6185 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6186 # A "../" for each directory in $ac_dir_suffix.
6187 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6189 ac_dir_suffix
= ac_dots
=
6192 case "$ac_given_srcdir" in
6194 if test -z "$ac_dots"; then top_srcdir
=.
6195 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6196 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6198 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6199 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6203 echo creating
"$ac_file"
6205 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6207 *Makefile
*) ac_comsub
="1i\\
6208 # $configure_input" ;;
6212 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6214 s%@configure_input@%$configure_input%g
6215 s%@srcdir@%$srcdir%g
6216 s%@top_srcdir@%$top_srcdir%g
6217 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6221 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6222 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6224 # ac_d sets the value in "#define NAME VALUE" lines.
6225 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6226 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6229 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6230 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6231 ac_uB
='\([ ]\)%\1#\2define\3'
6234 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6235 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6236 ac_eB
='$%\1#\2define\3'
6240 if test "${CONFIG_HEADERS+set}" != set; then
6242 cat >> $CONFIG_STATUS <<EOF
6243 CONFIG_HEADERS="config.h"
6245 cat >> $CONFIG_STATUS <<\EOF
6247 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6248 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6250 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6251 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6252 *) ac_file_in
="${ac_file}.in" ;;
6255 echo creating
$ac_file
6257 rm -f conftest.frag conftest.
in conftest.out
6258 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6259 cat $ac_file_inputs > conftest.
in
6263 # Transform confdefs.h into a sed script conftest.vals that substitutes
6264 # the proper values into config.h.in to produce config.h. And first:
6265 # Protect against being on the right side of a sed subst in config.status.
6266 # Protect against being in an unquoted here document in config.status.
6268 cat > conftest.hdr
<<\EOF
6271 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6275 sed -n -f conftest.hdr confdefs.h > conftest.vals
6278 # This sed command replaces #undef with comments. This is necessary, for
6279 # example, in the case of _POSIX_SOURCE, which is predefined and required
6280 # on some systems where configure will not decide to define it.
6281 cat >> conftest.vals <<\EOF
6282 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6285 # Break up conftest.vals because some shells have a limit on
6286 # the size of here documents, and old seds have small limits too.
6291 ac_lines=`grep -c . conftest.vals
`
6292 # grep -c gives empty output for an empty file on some AIX systems.
6293 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6294 # Write a limited-size here document to conftest.frag.
6295 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6296 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6298 sed -f conftest.frag conftest.in > conftest.out
6300 mv conftest.out conftest.in
6302 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6304 mv conftest.tail conftest.vals
6308 cat >> $CONFIG_STATUS <<\EOF
6309 rm -f conftest.frag conftest.h
6310 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6311 cat conftest.in >> conftest.h
6313 if cmp -s $ac_file conftest.h 2>/dev/null; then
6314 echo "$ac_file is unchanged"
6317 # Remove last slash and all that follows it. Not all systems have dirname.
6318 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6319 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6320 # The file is in a subdirectory.
6321 test ! -d "$ac_dir" && mkdir "$ac_dir"
6324 mv conftest.h $ac_file
6329 cat >> $CONFIG_STATUS <<EOF
6332 cat >> $CONFIG_STATUS <<\EOF
6336 chmod +x $CONFIG_STATUS
6337 rm -fr confdefs* $ac_clean_files
6338 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1